/*! tailwindcss v4.1.7 | MIT License | https://tailwindcss.com */
@layer properties;
@layer theme, base, components, utilities;
@layer theme {
  :root, :host {
    --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
      "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --color-gray-900: oklch(21% 0.034 264.665);
    --color-white: #fff;
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --default-transition-duration: 150ms;
    --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}
@layer base {
  *, ::after, ::before, ::backdrop, ::file-selector-button {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid;
  }
  html, :host {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }
  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }
  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }
  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }
  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }
  b, strong {
    font-weight: bolder;
  }
  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }
  small {
    font-size: 80%;
  }
  sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }
  sub {
    bottom: -0.25em;
  }
  sup {
    top: -0.5em;
  }
  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }
  :-moz-focusring {
    outline: auto;
  }
  progress {
    vertical-align: baseline;
  }
  summary {
    display: list-item;
  }
  ol, ul, menu {
    list-style: none;
  }
  img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
    vertical-align: middle;
  }
  img, video {
    max-width: 100%;
    height: auto;
  }
  button, input, select, optgroup, textarea, ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    border-radius: 0;
    background-color: transparent;
    opacity: 1;
  }
  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }
  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }
  ::file-selector-button {
    margin-inline-end: 4px;
  }
  ::placeholder {
    opacity: 1;
  }
  @supports (not (-webkit-appearance: -apple-pay-button))  or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentcolor;
      @supports (color: color-mix(in lab, red, red)) {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }
  textarea {
    resize: vertical;
  }
  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }
  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }
  ::-webkit-datetime-edit {
    display: inline-flex;
  }
  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }
  ::-webkit-datetime-edit, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }
  :-moz-ui-invalid {
    box-shadow: none;
  }
  button, input:where([type="button"], [type="reset"], [type="submit"]), ::file-selector-button {
    appearance: button;
  }
  ::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
    height: auto;
  }
  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}
@layer utilities {
  .collapse {
    visibility: collapse;
  }
  .invisible {
    visibility: hidden;
  }
  .visible {
    visibility: visible;
  }
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
  }
  .fixed {
    position: fixed;
  }
  .relative {
    position: relative;
  }
  .static {
    position: static;
  }
  .container {
    width: 100%;
    @media (width >= 40rem) {
      max-width: 40rem;
    }
    @media (width >= 48rem) {
      max-width: 48rem;
    }
    @media (width >= 64rem) {
      max-width: 64rem;
    }
    @media (width >= 80rem) {
      max-width: 80rem;
    }
    @media (width >= 96rem) {
      max-width: 96rem;
    }
  }
  .block {
    display: block;
  }
  .contents {
    display: contents;
  }
  .flex {
    display: flex;
  }
  .grid {
    display: grid;
  }
  .hidden {
    display: none;
  }
  .inline {
    display: inline;
  }
  .table {
    display: table;
  }
  .grow {
    flex-grow: 1;
  }
  .transform {
    transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
  }
  .resize {
    resize: both;
  }
  .rounded {
    border-radius: 0.25rem;
  }
  .border {
    border-style: var(--tw-border-style);
    border-width: 1px;
  }
  .bg-white {
    background-color: var(--color-white);
  }
  .text-center {
    text-align: center;
  }
  .text-gray-900 {
    color: var(--color-gray-900);
  }
  .shadow {
    --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }
  .shadow-md {
    --tw-shadow: 0 4px 6px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 2px 4px -2px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }
  .outline {
    outline-style: var(--tw-outline-style);
    outline-width: 1px;
  }
  .blur {
    --tw-blur: blur(8px);
    filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
  }
  .filter {
    filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
  }
  .transition {
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, visibility, content-visibility, overlay, pointer-events;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }
  .ease-in-out {
    --tw-ease: var(--ease-in-out);
    transition-timing-function: var(--ease-in-out);
  }
}
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-4px);
  }
}
.float-animation {
  animation: float 3s ease-in-out infinite;
}
.float-delay-1 {
  animation-delay: 0s;
}
.float-delay-2 {
  animation-delay: 0.5s;
}
.float-delay-3 {
  animation-delay: 1s;
}
.float-delay-4 {
  animation-delay: 1.5s;
}
.float-delay-5 {
  animation-delay: 2s;
}
.glass-card {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
html {
  font-size: 100%;
}
body {
  background: linear-gradient(135deg, #ffffff 0%, #ebf5fb 25%, #ffffff 50%, #e7e3f5 75%, #def9e3 100%);
  background-size: 300% 100%;
  animation: gradientShift 20s ease-in-out infinite;
  color: #1f2937;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.02);
  pointer-events: none;
  z-index: 0;
}
a, a:hover, a:visited, a:active {
  text-decoration: none;
}
#app {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
#main-app {
  display: flex;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  justify-content: center;
  align-items: center;
  padding: 20px;
  transition: all 0.3s ease-in-out;
}
#main-app.player-visible {
  justify-content: flex-start;
  padding: 0;
}
.hidden {
  display: none !important;
}
#interaction-area {
  width: 1200px;
  max-width: 1200px;
  height: 100vh;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  min-width: 400px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  overflow: auto;
  position: relative;
  transition: all 0.3s ease-in-out;
  margin: auto;
  z-index: 1;
}
#main-app.player-visible #interaction-area {
  width: 400px;
  min-width: 400px;
  max-width: 600px;
  height: 100vh;
  margin: 20px;
  top: 30px;
}
#screencast-logo {
  transform: translateY(-4px);
  transition: fill 0.5s ease-in-out;
}
#screencast-logo.loading #logo-black {
  fill: url(#gradient-animation);
}
#screencast-logo.loading #logo-gold {
  fill: url(#gradient-animation);
}
@keyframes gradient-animation {
  0% {
    stop-color: #ff00f7;
  }
  50% {
    stop-color: #ffd900;
  }
  100% {
    stop-color: #ff00cc;
  }
}
#screencast-logo defs {
  animation: gradient-animation 0.2s infinite;
}
.area-title {
  padding: 20px 20px 0px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  animation: fadeIn 0.8s ease-out;
}
.area-title .logo-container {
  display: flex;
  align-items: center;
  gap: 8px;
  animation: fadeInUp 0.8s ease-out;
}
.area-title span {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
}
.header-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}
.header-controls button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #6b7280;
  transition: color 0.2s ease;
  padding: 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.header-controls button:hover {
  color: #111827;
  background: rgba(0, 0, 0, 0.05);
}
.header-controls input[type="checkbox"] {
  margin: 0 4px;
}
.header-controls label {
  font-size: 0.875rem;
  color: #6b7280;
}
#chat-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
  overflow-y: hidden;
  background: rgba(255, 255, 255, 0.7);
}
.chat-message {
  background: #ffffff;
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  line-height: 1.6;
}
.chat-message pre {
  background: #f9fafb;
  border-radius: 4px;
  padding: 6px;
  overflow-x: auto;
  font-family: 'Inter', sans-serif;
}
#chat-message {
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 16px;
  padding: 20px;
  font-size: 20px;
  font-weight: 400;
  color: #1f2937;
  resize: none;
  height: 100px;
  box-sizing: border-box;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
}
#chat-message::placeholder {
  color: #9ca3af;
  font-size: 20px;
  font-weight: 400;
  font-family: 'Inter', sans-serif;
}
#chat-message:focus {
  outline: none;
  background: #ffffff;
}
.upload-image-button {
  min-width: 160px;
  background: #ffffff;
  color: #6B7280;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  white-space: nowrap;
}
.upload-image-button:hover {
  background: #f9fafb;
  color: #111827;
}
.button-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
button {
  background: #1f2937;
  border: none;
  color: white;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}
button:hover {
  background: #111827;
}
button:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}
#library-area {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
}
#library-area select {
  width: 100%;
  padding: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
}
#library-area button {
  align-self: flex-start;
}
#player-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 1.5rem;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s ease-in-out;
  display: none;
}
#main-app.player-visible #player-area {
  transform: translateX(0);
  opacity: 1;
  display: flex;
  height: 100vh;
}
.canvas-container {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 0;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000000;
  max-height: calc(100vh - 100px - 80px - 20px);
}
#demoCanvas {
  display: block;
  max-width: 100%;
  max-height: 100%;
  height: auto;
  border-radius: 8px;
}
.playback-controls {
  position: sticky;
  bottom: 0;
  padding: 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 0 0 20px 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 100;
  min-height: 64px;
}
.progress-bar {
  position: relative;
  width: 100%;
  height: 4px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.progress-bar .control-button {
  flex-shrink: 0;
}
.video-duration {
  flex-shrink: 0;
  font-size: 14px;
  color: #666;
  font-family: monospace;
  min-width: 40px;
  text-align: right;
}
.slider {
  flex-grow: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: #e0e0e0;
  outline: none;
  border-radius: 2px;
  transition: background 0.2s;
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  border: 2px solid #333;
  cursor: pointer;
  transition: all 0.2s;
}
.slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}
.slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  border: 2px solid #333;
  cursor: pointer;
  transition: all 0.2s;
}
.slider::-moz-range-thumb:hover {
  transform: scale(1.2);
}
.control-buttons {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
}
.control-button {
  background: white;
  border: 1px solid #333;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}
.control-button:hover {
  background: #f8f8f8;
}
.control-button i {
  font-size: 16px;
  color: #333;
}
#play-pause-button {
  width: 48px;
  height: 48px;
}
#play-pause-button i {
  font-size: 18px;
}
.progress-dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 4px;
  background: #666;
  border-radius: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
#lua-section {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  max-width: 1600px;
  background: #1e1e1e;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  overflow: hidden;
}
#lua-section.hidden {
  display: none !important;
}
.lua-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  backdrop-filter: blur(2px);
  display: none;
}
.lua-overlay.visible {
  display: block;
}
.lua-header {
  background: #252526;
  color: #ffffff;
  padding: 12px 20px;
  border-bottom: 1px solid #333333;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.lua-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
}
#running-lua {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  gap: 8px;
  padding: 16px;
  height: calc(100% - 60px);
}
#lua-script {
  flex: 1;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
}
#lua-output {
  height: 150px;
  background: #252526;
  border: 1px solid #333333;
  border-radius: 4px;
  color: #d4d4d4;
  font-family: 'Consolas', 'Monaco', monospace;
  padding: 12px;
  resize: vertical;
  min-height: 100px;
}
.lua-header .header-controls {
  display: flex;
  gap: 12px;
  align-items: center;
}
.lua-header .header-controls button {
  background: transparent;
  border: 1px solid #454545;
  color: #d4d4d4;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.lua-header .header-controls button:hover {
  background: #454545;
  color: #ffffff;
}
.lua-header .header-controls button i {
  font-size: 14px;
}
.lua-header .header-controls .vim-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #d4d4d4;
}
.lua-header .header-controls .vim-toggle input[type="checkbox"] {
  accent-color: #007acc;
}
button.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  width: 40px;
  height: 40px;
  background: #1f2937;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease;
}
button.icon-button:hover {
  background: #111827;
}
button.icon-button:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}
.modern-file-input {
  position: relative;
  display: inline-block;
  margin: 4px;
  min-width: 120px;
  height: 36px;
}
.modern-file-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #1f2937;
  color: white;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  height: 100%;
}
.modern-file-label:hover {
  background: #111827;
  transform: translateY(-1px);
}
.modern-file-label svg {
  width: 16px;
  height: 16px;
}
#add-source-button {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}
.upload-button-wrapper {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 32px;
  height: 32px;
}
.hidden-file-input {
  display: none;
}
.upload-button {
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.071);
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 20px;
  color: #6B7280;
  display: flex;
  align-items: center;
  justify-content: center;
}
.upload-button:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #374151;
}
.upload-button svg {
  width: 18px;
  height: 18px;
}
.upload-button-content {
  position: relative;
}
.upload-button-content:before {
  content: "Add Screenshots";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-120%) translateY(22px);
  padding: 5px 10px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s;
}
.upload-button-content:hover:before {
  opacity: 1;
  visibility: visible;
}
#chat-message {
  pointer-events: auto;
  z-index: auto;
}
.upload-button-wrapper {
  pointer-events: auto;
  z-index: auto;
}
.player-controls-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding: 30px 10px;
  background: transparent;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  flex-wrap: nowrap;
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 100px;
}
.player-controls-header > * {
  flex-shrink: 0;
}
.export-dropdown {
  position: relative;
  z-index: 1001;
}
.export-dropdown button {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: none;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
}
.lua-header .header-controls {
  display: flex;
  gap: 12px;
  align-items: center;
}
.lua-header .header-controls input[type="checkbox"] {
  margin: 0;
}
.lua-header .header-controls label {
  font-size: 14px;
  color: #6b7280;
  margin-right: 12px;
}
#loading-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 88px;
  z-index: 0;
  background: linear-gradient( 90deg, rgba(255, 255, 255, 0.8) 0%, rgb(255, 0, 217, 0.8) 33%, rgba(255, 217, 0, 0.8) 77%, rgb(255, 255, 255) 100% );
  background-size: 300% 100%;
  animation: loading-gradient 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  filter: blur(88px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease-in-out, visibility 1s ease-in-out, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
#loading-indicator.loading-progress {
  opacity: 1;
  visibility: visible;
}
#loading-indicator.loading-complete {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
}
@keyframes loading-gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.bot-switch {
  display: none;
  gap: 8px;
  margin-bottom: 16px;
}
body[data-debug="true"] .bot-switch {
  display: flex;
}
.switch-button {
  padding: 8px 16px;
  border: none;
  background: transparent;
  color: #6b7280;
  font-size: 14px;
  font-weight: 500;
  border-radius: 32px;
  cursor: pointer;
  transition: all 0.2s;
}
.switch-button.hidden {
  display: none;
}
.switch-button:not(.active) {
  background-color: transparent;
}
.switch-button:hover:not(.active) {
  background-color: rgba(0, 0, 0, 0.05);
}
.switch-button.active {
  background-color: #1f2937;
  color: white;
}
.switch-button:hover:not(.active) {
  background-color: #f3f4f6;
}
.chat-controls {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 8px;
}
body[data-debug="true"] .chat-controls {
  display: flex;
}
.debug-only {
  display: none !important;
}
body[data-debug="true"] .debug-only {
  display: block !important;
}
.bot-switch {
  display: inline-flex;
  background-color: #f3f4f6;
  padding: 0.25rem;
  border-radius: 9999px;
  gap: 4px;
  margin: 0 auto;
}
.lua-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
}
.lua-controls select {
  flex: 1;
  min-width: 200px;
  padding: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
}
.lua-controls button {
  white-space: nowrap;
}
.lua-only {
  display: none;
}
[data-active-bot="1"] .lua-only {
  display: flex;
}
[data-active-bot="1"] .button-list .lua-only {
  display: inline-flex;
}
.button-list select.lua-only {
  flex: 1;
  min-width: 200px;
  padding: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
}
#play-pause-button span {
  display: none;
}
.small-control {
  background: transparent;
  border: none;
  width: 24px;
  height: 24px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #666;
  transition: opacity 0.2s;
  margin-right: 4px;
}
.small-control:hover {
  opacity: 0.7;
}
.small-control i {
  font-size: 0.875rem;
}
#lua-script .ace_editor {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
}
.system-message-editor {
  width: 100%;
  height: 200px;
  margin: 10px 0;
  background: #1e1e1e;
  border: 1px solid #333333;
  border-radius: 4px;
  transition: all 0.3s ease;
}
.system-message-editor.large-editor {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  max-width: 1600px;
  z-index: 1002;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}
#settings-area {
  padding: 16px;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
}
.settings-area-bot-property {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}
.settings-area-bot-property label {
  font-size: 14px;
  color: #374151;
  min-width: 60px;
}
.settings-area-bot-property input {
  width: 80px;
  padding: 4px 8px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  font-size: 14px;
}
.header-whitespace {
  flex: 1;
}
.system-message-editor .ace_editor {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 14px;
}
#settings-area hr {
  margin: 20px 0;
  border: none;
  border-top: 1px solid #e5e7eb;
}
#settings-area button {
  margin: 8px 0;
}
.export-dropdown {
  position: relative;
}
.chevron {
  transition: transform 0.3s ease;
}
.export-dropdown.active .chevron {
  transform: rotate(180deg);
}
.export-dropdown .dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 250px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}
.export-dropdown.active .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-panel button {
  background: transparent;
  color: #111827;
  text-align: left;
  padding: 10px 14px;
  border-radius: 6px;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  cursor: pointer;
}
.dropdown-panel button:hover {
  background: rgba(59, 130, 246, 0.1);
  color: #1d4ed8;
  border-color: rgba(59, 130, 246, 0.2);
}
.dropdown-panel button:focus {
  outline: none;
  background: rgba(59, 130, 246, 0.1);
  color: #1d4ed8;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.dropdown-panel button:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}
.export-dropdown .dropdown-panel button {
  font-size: 16px;
  white-space: nowrap;
}
.export-dropdown .dropdown-panel button .camtasia-icon {
  margin-right: 0;
  flex-shrink: 0;
  vertical-align: middle;
  display: inline-block;
}
.export-dropdown .dropdown-panel a.dropdown-panel-link-button, .export-dropdown .dropdown-panel a.dropdown-panel-link-button:hover, .export-dropdown .dropdown-panel a.dropdown-panel-link-button:visited, .export-dropdown .dropdown-panel a.dropdown-panel-link-button:active {
  text-decoration: none;
  color: inherit;
  display: block;
}
.export-dropdown .dropdown-panel a.dropdown-panel-link-button button {
  width: 100%;
  border: none;
}
.dropdown-panel hr.dropdown-divider {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin: 4px 0;
}
.menu-dropdown {
  position: relative;
  z-index: 1000;
  animation: fadeIn 0.8s ease-out 0.4s backwards;
}
#menu-dropdown-button {
  background: transparent;
  border: none;
  padding: 12px;
  border-radius: 12px;
  font-size: 16px;
  color: #6B7280;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
}
#menu-dropdown-button:hover {
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
}
.menu-dropdown.active #menu-dropdown-button {
  background: #696c71;
  color: white;
}
#screencast-logo {
  margin-right: 4px;
  vertical-align: middle;
  text-align: left;
}
.area-title span {
  vertical-align: middle;
  display: inline-block;
}
.btn-outline {
  background-color: transparent;
  color: #373737;
  border: 1px solid #696c716b;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn-outline:hover {
  background-color: #ffffff;
  border-color: #4d505c;
  color: #373737;
}
.btn-outline svg {
  flex-shrink: 0;
}
.start-over-btn {
  display: none;
  animation: fadeIn 0.8s ease-out 0.4s backwards;
}
#chat-area:not(:has(.welcome-content.visible)) .start-over-btn {
  display: inline-flex;
}
#main-app.player-visible #chat-reset-all-button {
  display: none;
}
#main-app.player-visible #player-reset-all-button {
  display: inline-flex;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
#menu-dropdown-button:hover {
  background: rgba(17, 24, 39, 0.9);
}
.menu-dropdown .dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 200px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}
.menu-dropdown.active .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#screencast-logo {
  display: block;
  width: 24px;
  height: 24px;
}
#screencast-logo-text {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.4;
}
.welcome-cards {
  display: flex;
  gap: clamp(28px, 2vw, 8px);
  margin-bottom: 0;
  padding: 24px 16px;
  min-width: min-content;
  animation: fadeIn 0.8s ease-out 0.6s backwards;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
  padding-left: calc(50% - 150px);
  overflow-x: hidden;
}
.welcome-cards::-webkit-scrollbar {
  height: 4px;
}
.welcome-cards::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}
.welcome-cards::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  transition: background 0.3s ease;
}
.welcome-cards::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.2);
}
.welcome-card {
  flex: 0 0 min(300px, 80vw);
  padding: clamp(12px, 3vw, 16px);
}
@media (max-width: 768px) {
  #interaction-area {
    width: 100%;
    max-width: 100%;
    height: 100vh;
    margin: 0;
    border-radius: 0;
    border: none;
  }
  .area-title {
    border-radius: 0;
  }
  .welcome-header h1 {
    font-size: min(48px, max(28px, 6vh));
    padding: 0 8px;
  }
  .welcome-header p {
    font-size: 14px;
    padding: 0 24px;
  }
  .welcome-header br {
    display: none;
  }
  .welcome-cards {
    gap: 24px;
    padding: 8px 12px;
    padding-left: 12px;
  }
  .welcome-card {
    padding: 12px;
  }
  .card-icon {
    width: 32px;
    height: 32px;
  }
  .card-content h3 {
    font-size: 15px;
  }
  .card-content p {
    font-size: 13px;
  }
}
@media (max-width: 480px) {
  .welcome-header {
    padding: 16px 12px 12px;
  }
  .welcome-header h1 {
    font-size: min(36px, max(24px, 5vh));
  }
  .welcome-card {
    flex: 0 0 85vw;
    min-height: 80px;
  }
}
.welcome-card {
  flex: 0 0 300px;
  display: flex;
  align-items: flex-start;
  padding: 20px;
  background: linear-gradient(145deg, rgba(255,255,255,0.25), rgba(255,255,255,0.1));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 4px 6px rgba(0, 0, 0, 0.08), 0 12px 24px rgba(0, 0, 0, 0.06);
  transform-style: preserve-3d;
  perspective: 1000px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  animation: fadeInUp 0.8s ease-out backwards;
}
.welcome-card:nth-child(1) {
  animation-delay: 0.1s;
}
.welcome-card:nth-child(2) {
  animation-delay: 0.2s;
}
.welcome-card:nth-child(3) {
  animation-delay: 0.3s;
}
.welcome-card:nth-child(4) {
  animation-delay: 0.4s;
}
.welcome-card:nth-child(5) {
  animation-delay: 0.5s;
}
.welcome-card:hover {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: rotateX(2deg) rotateY(-2deg) scale(1.02);
}
.welcome-card:active {
  transform: translateY(-4px) scale(0.98);
  transition: all 0.1s ease;
}
.welcome-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2), transparent 70%);
  border-radius: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  filter: blur(20px);
}
.welcome-card:hover::before {
  opacity: 1;
}
.card-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.welcome-card:hover .card-icon {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.welcome-card:nth-child(1) .card-icon i {
  color: #FF6B9D;
}
.welcome-card:nth-child(2) .card-icon i {
  color: #10B981;
}
.welcome-card:nth-child(3) .card-icon i {
  color: #8B5CF6;
}
.welcome-card:nth-child(4) .card-icon i {
  color: #F59E0B;
}
.welcome-card:nth-child(5) .card-icon i {
  color: #06B6D4;
}
.card-icon i {
  font-size: 24px;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}
.welcome-card:hover .card-icon i {
  transform: scale(1.1);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}
.card-content h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #111827;
  line-height: 1.3;
  transition: color 0.3s ease;
}
.welcome-card:hover .card-content h3 {
  color: rgba(17, 24, 39, 1);
}
.card-content p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #4B5563;
  transition: color 0.3s ease;
}
.welcome-card:hover .card-content p {
  color: rgba(107, 114, 128, 1);
}
.welcome-message {
  text-align: center;
  padding-top: 70px;
  max-width: 600px;
  margin: 0 auto;
}
.welcome-header {
  max-width: 800px;
  margin: 0 auto;
  order: 0;
  display: none;
  animation: fadeInUp 0.8s ease-out;
  padding: min(40px, max(16px, 4vh)) 20px 16px;
}
.welcome-header h1 {
  font-size: min(70px, max(32px, 7vh));
  font-weight: 1000;
  color: transparent;
  background-image: linear-gradient(135deg, #000000, #959595);
  -webkit-background-clip: text;
  background-clip: text;
  margin: 0 0 8px 0;
  animation: fadeInUp 1s ease-out 0.2s backwards;
  line-height: 1.1;
}
.welcome-header p {
  font-size: min(16px, max(14px, 1.8vh));
  color: #6b7280;
  line-height: 1.5;
  animation: fadeIn 1s ease-out 0.2s backwards;
  margin: 0;
  padding: 0 16px;
}
.card-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.card-icon i {
  font-size: 20px;
  color: #666;
}
.card-content h3 {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}
.card-content p {
  margin: 0;
  font-size: 14px;
  color: #666;
  line-height: 1.4;
}
.welcome-content {
  transition: opacity 0.3s ease-in-out;
  display: none;
  padding: 8px;
  -webkit-overflow-scrolling: touch;
  overflow-x: auto;
}
.welcome-content.visible {
  display: block;
}
#main-app.player-visible .welcome-content {
  display: none;
}
.welcome-content.visible ~ #chat-history .ace_content .ace_placeholder {
  display: none !important;
}
.welcome-content.visible ~ #chat-history {
  display: none !important;
}
.welcome-content.visible ~ .bot-switch {
  display: none;
}
.welcome-content.visible ~ .chat-controls .bot-switch {
  display: none !important;
}
#chat-area:has(.welcome-content.visible) .welcome-header {
  display: block;
}
.screenshot-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  backdrop-filter: blur(4px);
}
.modal-content {
  position: relative;
  background-color: #fff;
  margin: 40px auto;
  padding: 20px;
  width: 90%;
  max-width: 1200px;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 20px;
}
.modal-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #111827;
}
.close-modal {
  background: none;
  border: none;
  color: #000000;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
  margin-left: auto;
  display: flex;
  align-items: center;
}
.close-modal:hover {
  background: #f3f4f6;
  color: #111827;
}
.modal-body {
  flex: 1;
  overflow-y: auto;
  padding-right: 8px;
}
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  padding: 8px;
}
.screenshot-item {
  position: relative;
  aspect-ratio: 16/9;
  background: #f3f4f6;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.screenshot-item:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.screenshot-item:focus {
  outline: 2px solid #0066cc;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.2);
}
.screenshot-item:focus-visible {
  outline: 2px solid #0066cc;
  outline-offset: 2px;
}
.screenshot-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.screenshot-item .filename {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 0.75rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.screenshot-item:hover .filename {
  opacity: 1;
}
.snagit-library-button {
  background: #ffffff;
  color: #6B7280;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  white-space: nowrap;
}
.snagit-library-button:hover {
  background: #f9fafb;
  color: #111827;
}
.snagit-library-button svg {
  width: 16px;
  height: 16px;
}
.upload-image-button {
  background: #ffffff;
  color: #6B7280;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  white-space: nowrap;
}
.upload-image-button:hover {
  background: #f9fafb;
  color: #111827;
}
.no-screenshots, .screenshot-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
  color: #6b7280;
  background: #f9fafb;
  border-radius: 8px;
  grid-column: 1 / -1;
}
.no-screenshots i, .screenshot-error i {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}
.no-screenshots p, .screenshot-error p {
  margin: 0;
  font-size: 14px;
}
.screenshot-error {
  color: #991b1b;
  background: #fee2e2;
}
.screenshot-item .screenshot-error {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  border-radius: 0;
}
.file-type {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 12px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.screenshot-item:hover .file-type {
  opacity: 1;
}
.screenshot-buttons {
  display: flex;
  gap: 8px;
  justify-content: flex-start;
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
}
.screenshot-buttons span {
  flex-grow: 0.9;
}
.chat-input-footer {
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  width: 100%;
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 0px 20px;
}
.screenshot-item {
  position: relative;
}
.sequence-number {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 42px;
  height: 42px;
  background: #FFC700;
  color: #000000;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.screenshot-item.selected .sequence-number {
  opacity: 1;
}
.screenshot-item.selected::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 3px solid #FFC700;
  border-radius: 8px;
  pointer-events: none;
}
.modal-header {
  padding: 16px 20px;
}
.modal-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.attach-selected-button {
  background: #1f2937;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.attach-selected-button:hover {
  background: #111827;
}
.attach-selected-button:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}
.snagit-library-button.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.snagit-library-button.disabled:hover {
  background-color: inherit;
}
.onboarding-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 20px 0;
}
.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.step-number {
  width: 32px;
  height: 32px;
  background: #5CA7DB;
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
}
.step-content {
  flex: 1;
}
.step-content h3 {
  margin: 0 0 8px 0;
  font-size: 16px;
  color: #111827;
}
.step-content p {
  margin: 0;
  color: #6B7280;
}
.step-content code {
  display: block;
  background: #F3F4F6;
  padding: 12px;
  border-radius: 6px;
  margin-top: 8px;
  font-family: monospace;
  color: #111827;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid #E5E7EB;
}
.primary-button {
  background: #5CA7DB;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
}
.primary-button:hover {
  background: #4B95C9;
}
.secondary-button {
  background: transparent;
  color: #6B7280;
  border: 1px solid #E5E7EB;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.secondary-button:hover {
  background: #F9FAFB;
  color: #111827;
}
#snagit-onboarding-modal.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  backdrop-filter: blur(4px);
}
#snagit-onboarding-modal .modal-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 24px;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}
#snagit-onboarding-modal .modal-footer {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
#snagit-onboarding-modal .close-modal {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: #6B7280;
}
#snagit-onboarding-modal .close-modal:hover {
  color: #111827;
}
.screenshot-controls {
  padding: 16px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: flex-end;
}
.change-folder-button {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  padding: 8px 16px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
  color: #1f2937;
  font-size: 14px;
  font-weight: 500;
}
.change-folder-button:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}
.change-folder-button:focus {
  outline: 2px solid #0066cc;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.2);
}
.change-folder-button i {
  color: #6b7280;
}
.images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  padding: 16px;
}
.screenshot-grid {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
.screenshot-grid .images-grid {
  flex: 1;
  overflow-y: auto;
}
.screenshot-item.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  min-height: 200px;
}
.loading-indicator {
  color: #6b7280;
  font-size: 24px;
}
.loading-indicator i {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.loaded-media-preview:not(:has(.media-thumbnails *)) {
  display: none;
}
.media-thumbnails:empty ~ .loaded-media-preview {
  display: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.media-thumbnails {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
  scroll-behavior: smooth;
  padding: 4px;
}
.media-thumbnail {
  position: relative;
  flex: 0 0 auto;
  width: 50px;
  height: 30px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #d1d5db;
  transition: all 0.2s ease;
  background: white;
  cursor: grab;
  user-select: none;
}
.media-thumbnail:focus {
  outline: 2px solid #0066cc;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.2);
}
.media-thumbnail:focus-visible {
  outline: 2px solid #0066cc;
  outline-offset: 2px;
}
.media-thumbnail:hover {
  border-color: #9ca3af;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}
.media-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-thumbnail .filename {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 4px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 0.75rem;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.media-thumbnail:hover .filename {
  opacity: 0;
}
.media-thumbnail .remove-button {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 10;
}
.media-thumbnail .remove-button:focus {
  outline: 2px solid #0066cc;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.2);
  opacity: 1;
}
.media-thumbnail .remove-button:focus-visible {
  outline: 2px solid #0066cc;
  outline-offset: 2px;
}
.media-thumbnail .remove-button i {
  font-size: 0.625rem;
}
.media-thumbnail:hover .remove-button {
  opacity: 1;
}
.media-thumbnail:focus .remove-button {
  opacity: 1;
}
.chat-input-area {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  animation: fadeInUp 0.5s ease-out 1s backwards;
  width: 70%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 20px;
  min-width: 450px;
}
.powered-by-text {
  padding: 8px 20px;
  margin-bottom: 12px;
}
#main-app.player-visible .powered-by-text {
  padding: 4px 12px;
  margin-bottom: 20px;
}
#main-app.player-visible .chat-input-area {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 0;
  min-width: unset;
}
.chat-input-container {
  display: flex;
  flex-direction: column;
  background: white;
}
#chat-message::placeholder {
  color: #9ca3af;
  font-size: 16px;
}
#chat-message:focus {
  outline: none;
}
.loaded-media-preview {
  padding: 12px 20px;
  margin-bottom: 8px;
}
.loaded-media-preview:empty {
  display: none;
}
#image-preview-modal.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}
.image-preview-content {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  background: white;
  max-width: 95vw !important;
  max-height: 95vh !important;
  padding: 0 !important;
  width: auto !important;
  display: flex;
  justify-content: center;
  align-items: center;
}
.image-preview-container {
  position: relative;
  max-width: 100%;
  max-height: 95vh;
  display: flex;
  justify-content: center;
  align-items: center;
}
.image-preview-container img {
  max-width: 100%;
  max-height: 95vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}
.image-preview-filename {
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
  color: rgb(0, 0, 0);
  padding: 8px 16px;
  font-size: 14px;
  white-space: nowrap;
  z-index: 2001;
}
.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.nav-button:hover {
  background: rgba(0, 0, 0, 0.9);
}
.prev-button {
  left: 16px;
}
.next-button {
  right: 16px;
}
#video-generation-modal.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  backdrop-filter: blur(4px);
}
#video-generation-modal textarea {
  width: 100%;
  height: 120px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  resize: none;
}
.media-thumbnails {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
  scroll-behavior: smooth;
  padding: 4px 0;
}
.media-thumbnail.dragging {
  opacity: 0.5;
  cursor: grabbing;
}
.media-thumbnail.drag-over {
  transform: translateX(4px);
}
.media-thumbnail.drag-target::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #FFC700;
}
.image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}
.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
body.exporting #screencast-logo #logo-black, body.exporting #screencast-logo #logo-gold {
  fill: url(#gradient-animation);
}
#export-button:disabled {
  opacity: 1;
  background: #f3f4f6;
  cursor: progress;
  position: relative;
  overflow: hidden;
}
#export-button:disabled::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient( 90deg, transparent 0%, rgba(255, 255, 255, 0.2) 25%, rgba(255, 255, 255, 0.2) 75%, transparent 100% );
  animation: loading-shimmer 2s infinite;
}
@keyframes loading-shimmer {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(50%);
  }
}
#download-mp4-button {
  display: none;
}
#download-mp4-button.export-complete {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #111827;
  cursor: pointer;
}
#download-mp4-button.export-complete:hover {
  background: rgba(59, 130, 246, 0.1);
  color: #1d4ed8;
  border-color: rgba(59, 130, 246, 0.2);
}
.template-feedback {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 9999;
  animation: feedbackAnimation 3s ease-in-out;
}
.template-feedback.success {
  background: rgba(0, 0, 0, 0.8);
  color: white;
}
.template-feedback.error {
  background: rgba(220, 38, 38, 0.9);
  color: white;
}
@keyframes feedbackAnimation {
  0% {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  15% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  85% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
}
#swap-template-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 14px;
  transition: all 0.2s ease;
}
#swap-template-button .current-template {
  font-weight: 600;
  color: #111827;
}
#swap-template-button .template-arrow {
  color: #6B7280;
  font-size: 12px;
}
#swap-template-button .next-template {
  color: #6B7280;
}
#swap-template-button:hover .next-template {
  color: #111827;
}
#swap-template-button:hover .template-arrow {
  transform: translateX(2px);
  color: #111827;
}
.preload * {
  animation: none !important;
  transition: none !important;
}
@media screen and (max-height: 600px) {
  .welcome-header {
    padding: min(20px, 2vh) 0px 12px;
    padding-bottom: 60px;
  }
  .welcome-header h1 {
    margin-bottom: 0px;
  }
  .welcome-header p {
    margin-bottom: -50px;
  }
  .welcome-cards {
    display: none;
  }
}
@media screen and (min-height: 601px) {
  .welcome-cards {
    display: flex;
    margin-bottom: 4vh;
  }
  .welcome-header::after {
    display: none;
  }
}
.new-prompt-box {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 28px;
  padding: 8px;
  position: relative;
  gap: 8px;
  margin: 20px;
}
.player-visible .new-prompt-box {
  min-height: 150px;
}
.new-prompt-box textarea#chat-message {
  flex-grow: 1;
  border: none;
  background-color: transparent;
  resize: none;
  outline: none;
  font-size: 16px;
  padding: 8px;
  min-height: 50px;
  max-height: 300px;
  color: #1f2937;
  width: 100%;
  box-sizing: border-box;
}
.new-prompt-box textarea#chat-message::placeholder {
  font-size: 16px;
  color: #9ca3af;
}
.new-prompt-box textarea#chat-message.empty-iue-state {
  border: 2px dashed #d1d5db;
  background-color: #f9fafb;
  padding-top: 20px;
  padding-bottom: 20px;
  min-height: 70px;
  text-align: center;
}
#main-app.player-visible .new-prompt-box textarea#chat-message.empty-iue-state {
  border: none;
  background-color: #ffffff;
  padding-top: 8px;
  padding-bottom: 8px;
  min-height: 50px;
  text-align: left;
}
.new-prompt-box.drag-over-box {
  background-color: #eef2ff;
  outline: 2px dashed #6366f1;
  outline-offset: -2px;
}
.prompt-controls-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  width: 100%;
}
.new-prompt-box .media-thumbnails {
  display: flex;
  flex-grow: 1;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px;
  scrollbar-width: thin;
  scrollbar-color: #a0aec0 #e2e8f0;
  min-height: 36px;
  align-items: flex-end;
}
.new-prompt-box .media-thumbnails::-webkit-scrollbar {
  height: 6px;
}
.new-prompt-box .media-thumbnails::-webkit-scrollbar-track {
  background: #e2e8f0;
  border-radius: 4px;
}
.new-prompt-box .media-thumbnails::-webkit-scrollbar-thumb {
  background: #a0aec0;
  border-radius: 4px;
}
.new-prompt-box .media-thumbnails::-webkit-scrollbar-thumb:hover {
  background: #718096;
}
.new-prompt-box .prompt-button {
  background-color: transparent;
  border: none;
  color: #6b7280;
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
}
.new-prompt-box .prompt-button:hover {
  background-color: #f3f4f6;
  color: #1f2937;
}
.new-prompt-box .prompt-button.add-button {
  margin-right: 8px;
  border: 1px solid #d1d5db;
}
.new-prompt-box .prompt-button.send-button {
  margin-left: 8px;
  background-color: #1f2937;
  color: #ffffff;
}
.new-prompt-box .prompt-button.send-button:hover {
  background-color: #111827;
}
.new-prompt-box .prompt-button.send-button:disabled, .new-prompt-box .prompt-button.send-button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.new-prompt-box .prompt-button.send-button:disabled:hover, .new-prompt-box .prompt-button.send-button.disabled:hover {
  background-color: #1f2937;
}
.new-prompt-box .prompt-button i {
  font-size: 16px;
}
.add-menu-dropdown {
  position: relative;
  z-index: 999;
}
.dropdown-like-menu .dropdown-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 240px;
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.15), 0 2px 8px -2px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out, transform 0.2s ease-in-out;
}
.add-menu-dropdown.active .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-like-menu .dropdown-panel button {
  color: #1f2937;
  gap: 10px;
  border: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.dropdown-like-menu .dropdown-panel button:hover {
  background: rgba(31, 41, 55, 0.05);
  color: #111827;
  border-color: transparent;
}
.dropdown-like-menu .dropdown-panel button i {
  font-size: 14px;
  color: #4b5563;
  transition: color 0.2s ease;
}
.dropdown-like-menu .dropdown-panel button:hover i {
  color: #1f2937;
}
.add-menu-dropdown.active .prompt-button.add-button {
  background-color: #e5e7eb;
  border-color: #adb5bd;
  color: #1f2937;
}
.add-menu-dropdown.open-upward .dropdown-panel {
  top: auto;
  bottom: calc(100% + 4px);
  transform: translateY(10px);
}
.add-menu-dropdown.open-upward.active .dropdown-panel {
  transform: translateY(0);
}
.new-prompt-box #generate-video {
  background-color: #ffc703;
  color: #000000;
  border: none;
  border-radius: 8px;
  padding: 10px 15px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 120px;
  margin: 0 8px;
}
.new-prompt-box #generate-video:hover {
  background-color: #ffe283;
}
.new-prompt-box #generate-video:active {
  transform: translateY(0px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.new-prompt-box #generate-video i {
  font-size: 16px;
}
.new-prompt-box .prompt-button i {
  font-size: 16px;
}
#generate-video {
  background-color: #ffc703;
  color: #000000;
  border: none;
  border-radius: 8px;
  padding: 10px 15px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}
#generate-video:hover {
  background-color: #f0b900;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
#generate-video:active {
  transform: translateY(0px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
#generate-video i {
  font-size: 16px;
  color: #000000;
}
#start-video-generation-button {
  background-color: #ffc703;
  color: #000000 !important;
  border: none;
  border-radius: 8px;
  padding: 10px 15px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}
#start-video-generation-button:hover {
  background-color: #f0b900 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
#start-video-generation-button:active {
  transform: translateY(0px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
#start-video-generation-button i {
  font-size: 16px;
  color: #000000;
}
#main-app.player-visible .new-prompt-box .media-thumbnails {
  display: none;
}
#main-app.player-visible .new-prompt-box {
  flex-direction: column;
}
#main-app.player-visible .new-prompt-box #generate-video {
  flex-grow: 1;
  width: auto;
  margin: 0 8px;
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 500;
  justify-content: center;
  min-width: unset;
}
#main-app.player-visible .new-prompt-box #generate-video:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}
@keyframes loading-gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
#progress-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  justify-content: center;
  align-items: center;
}
.progress-content {
  background: white;
  padding: 32px;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  text-align: center;
}
.progress-content h3 {
  margin: 0 0 24px 0;
  font-size: 20px;
  font-weight: 600;
  color: #111827;
  text-align: center;
}
.progress-text {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  height: 200px;
  overflow-y: auto;
  overflow-x: hidden;
  white-space: pre-wrap;
  word-wrap: break-word;
  word-break: break-word;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.4;
  color: #374151;
  margin-top: 16px;
  text-align: left;
  box-sizing: border-box;
}
.lottie-animation {
  width: 200px;
  height: 200px;
  margin: 0 auto 16px auto;
}
.fa-spinner {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
#main-app.player-visible .header-actions .start-over-btn {
  display: none;
}
.image-preview-container {
  text-align: center;
  max-width: 100%;
  max-height: 80vh;
  overflow: auto;
}
.image-preview-container img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
}
.text-preview {
  width: 100%;
  height: 70vh;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: monospace;
  font-size: 14px;
  white-space: pre-wrap;
  overflow: auto;
  background-color: #f8f8f8;
  color: #333;
  resize: none;
}
.text-preview-stats {
  font-size: 12px;
  color: #666;
  margin: 8px 0;
  text-align: right;
  font-family: monospace;
}
.image-preview-filename {
  margin-top: 10px;
  font-size: 14px;
  color: #666;
}
.image-preview-modal .modal-content.image-preview-content {
  max-width: 90%;
  width: 90%;
}
a {
  text-decoration: none !important;
}
a:hover {
  text-decoration: none !important;
}
.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;
}
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #000;
  color: #fff;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 9999;
  font-weight: bold;
}
.skip-link:focus {
  top: 6px;
}
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid #0066cc;
  outline-offset: 2px;
}
.dropdown-panel button:focus {
  outline: 2px solid #0066cc;
  outline-offset: 1px;
  background: rgba(0, 102, 204, 0.1);
}
.btn-outline:focus-visible, a.btn-outline:focus-visible {
  outline: 2px solid #0066cc;
  outline-offset: 2px;
}
.logo-container img {
  height: 34px;
  width: auto;
  object-fit: contain;
}
.header {
  font-size: 1.5em;
}
.labs-sticker-container {
  position: absolute;
  top: 87%;
  left: 0;
  transform: translateX(10px);
  z-index: 1;
  pointer-events: none;
  animation: slideInSticker 1.5s ease-in-out 2s forwards;
  opacity: 0;
}
.labs-sticker-container img {
  width: 230px;
  height: auto;
  object-fit: contain;
}
@keyframes slideInSticker {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px) scale(1.5);
  }
  100% {
    opacity: 1;
    transform: translateX(10px) translateY(0);
  }
}
@media (max-width: 768px) {
  .labs-sticker-container {
    transform: translateX(0);
  }
  .labs-sticker-container img {
    width: 180px;
    height: auto;
  }
  @keyframes slideInSticker {
    100% {
      transform: translateX(0) translateY(0);
    }
  }
}
#main-app.player-visible .labs-sticker-container {
  position: absolute;
  top: 100%;
  left: 0;
  transform: translateX(0);
}
@media (max-width: 768px) {
  #main-app.player-visible .labs-sticker-container {
    transform: translateX(0);
  }
  #main-app.player-visible .labs-sticker-container img {
    width: 150px;
    height: auto;
  }
}
.image-required-notification {
  background-color: #fef3cd;
  border: 1px solid #ffd60a;
  border-radius: 22px;
  color: #856404;
  padding: 8px 12px;
  margin-top: 8px;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideDown 0.3s ease-out;
}
.image-required-notification.hidden {
  display: none;
}
.image-required-notification i {
  color: #f59e0b;
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media screen and (max-height: 1200px) {
  #main-app.player-visible .player-controls-header {
    padding: 8px 12px;
    min-height: 44px;
  }
  #main-app.player-visible .playback-controls {
    padding: 12px;
    min-height: 56px;
  }
  #main-app.player-visible .canvas-container {
    max-height: calc(100vh - 44px - 56px - 16px);
  }
}
@media screen and (max-height: 1080px) {
  #main-app.player-visible .player-controls-header {
    padding: 8px 12px;
    min-height: 22px;
  }
  #main-app.player-visible .playback-controls {
    padding: 10px;
    min-height: 50px;
  }
  #main-app.player-visible .canvas-container {
    max-height: calc(100vh - 22px - 50px - 12px);
  }
}
@media screen and (max-height: 900px) {
  #main-app.player-visible .player-controls-header {
    padding: 6px 8px;
    min-height: 36px;
    gap: 8px;
  }
  #main-app.player-visible .playback-controls {
    padding: 8px;
    min-height: 44px;
  }
  #main-app.player-visible .canvas-container {
    max-height: calc(100vh - 36px - 44px - 8px);
  }
  #main-app.player-visible .btn-outline {
    padding: 6px 12px;
    font-size: 14px;
  }
  #main-app.player-visible .export-dropdown button {
    padding: 6px 12px;
    font-size: 14px;
  }
}
@media screen and (min-width: 1600px) {
  #interaction-area {
    width: 1400px;
    max-width: 1400px;
  }
}
@media screen and (min-width: 2560px) {
  #interaction-area {
    width: 1800px;
    max-width: 1800px;
  }
}
@media screen and (min-width: 3440px) {
  #interaction-area {
    width: 2200px;
    max-width: 2200px;
  }
}
@media screen and (min-width: 3840px) {
  #interaction-area {
    width: 2600px;
    max-width: 2600px;
  }
}
.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;
}
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #000;
  color: #fff;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 9999;
  font-weight: bold;
}
.skip-link:focus {
  top: 6px;
}
.timeline-skip {
  left: 12px;
  transform: none;
}
.timeline-card:focus {
  outline: 3px solid #0066cc;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(0, 102, 204, 0.2);
}
.timeline-card:focus-visible {
  outline: 3px solid #0066cc;
  outline-offset: 2px;
}
.timeline-text-display:focus, .timeline-title-display:focus {
  outline: 2px solid #0066cc;
  outline-offset: 1px;
  background-color: rgba(0, 102, 204, 0.05);
}
.timeline-card[aria-current="true"] {
  border-left: 4px solid #0066cc;
}
.welcome-card:focus {
  outline: 3px solid #0066cc;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(0, 102, 204, 0.2);
}
.welcome-card:focus-visible {
  outline: 3px solid #0066cc;
  outline-offset: 2px;
}
#chat-and-timeline-wrapper {
  position: relative;
  flex: 1;
  overflow: hidden;
  margin-bottom: 2vh;
}
#timeline-area {
  position: absolute;
  border-radius: 12px;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: all 0.3s ease-in-out;
  z-index: 1;
}
.welcome-content.visible ~ #chat-and-timeline-wrapper #timeline-area {
  display: none !important;
}
.welcome-content.visible ~ #chat-and-timeline-wrapper {
  display: none !important;
}
.timeline-scroll-container {
  display: flex;
  gap: 24px;
  padding: 24px 24px;
  min-height: 200px;
  scroll-behavior: smooth;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-left: calc(50% - 200px);
  cursor: grab;
}
.timeline-scroll-container:active {
  cursor: grabbing;
}
.timeline-card {
  flex: 0 0 500px;
  height: auto;
  min-height: 380px;
  max-height: 777px;
  background: #ffffff;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  scroll-snap-align: center;
  opacity: 1;
  transform: none;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  padding: 0;
  position: relative;
  overflow: hidden;
}
.timeline-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(63, 87, 107, 0.15), 0 8px 10px rgba(24, 26, 44, 0.1);
}
.timeline-scene-number {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 24px;
  font-weight: bold;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 12px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  margin: 0;
}
.timeline-thumbnail {
  width: 100%;
  height: 0;
  padding-top: 56.25%;
  position: relative;
  overflow: hidden;
  margin: 0;
  box-sizing: border-box;
  background-color: #596771;
}
.timeline-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease-in-out;
  margin: 0;
  padding: 0;
}
.focal-point-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.focal-point-indicator {
  position: absolute;
  border: 2px solid #ffd000;
  background-color: rgba(255, 208, 0, 0.15);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3), 0 0 8px rgba(255, 208, 0, 0.5);
  pointer-events: none;
  transition: all 0.3s ease-in-out;
  margin: 0;
  padding: 0;
  transform: translate(0, 0);
  box-sizing: border-box;
}
.focal-point-toggle {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.timeline-card:hover .focal-point-toggle {
  opacity: 1 !important;
}
.focal-point-toggle:hover {
  background: rgba(0, 0, 0, 0.9);
}
.timeline-thumbnail.preview-active .focal-point-toggle {
  opacity: 1 !important;
}
.timeline-thumbnail.preview-active img {
  transition: transform 0.5s ease-in-out;
}
.timeline-thumbnail.preview-active .focal-point-indicator {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}
#main-app.player-visible .timeline-card.collapsed .timeline-thumbnail.preview-active::after {
  display: none;
}
.timeline-title-container {
  padding: 16px;
  width: 100%;
  box-sizing: border-box;
}
.timeline-title-display {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.3;
  cursor: text;
}
.timeline-title-display[contenteditable="true"] {
  background: #f3f4f6;
  padding: 8px;
  border-radius: 4px;
  margin: -8px;
}
.timeline-collapsible {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px;
  margin-bottom: 50px;
  max-height: none;
}
.timeline-card-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 16px;
}
.timeline-field-label {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.timeline-field-group {
  margin-bottom: 12px;
  position: relative;
}
.timeline-field-group:last-child {
  margin-bottom: 0;
}
.timeline-field-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 8px;
}
.timeline-field-header .refresh-scene-button, .timeline-field-header .focal-point-toggle {
  font-size: 0.7rem !important;
  padding: 0.2rem 0.5rem !important;
  border: 1px solid #d1d5db !important;
  background-color: #f9fafb !important;
  color: #374151 !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  min-width: auto !important;
  height: auto !important;
  font-weight: 500 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}
.timeline-field-header .refresh-scene-button:hover, .timeline-field-header .focal-point-toggle:hover {
  background-color: #e5e7eb !important;
  color: #1f2937 !important;
  border-color: #9ca3af !important;
}
.timeline-field-header .refresh-scene-button:focus, .timeline-field-header .focal-point-toggle:focus {
  outline: 2px solid #0066cc !important;
  outline-offset: 1px !important;
  background-color: #dbeafe !important;
  border-color: #3b82f6 !important;
}
.timeline-text-display {
  font-size: 14px;
  line-height: 1.5;
  color: #1f2937;
  padding: 8px;
  background: #f9fafb;
  border-radius: 6px;
  white-space: pre-wrap;
  min-height: 24px;
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.timeline-text-display[contenteditable="true"] {
  background: #ffffff;
  border: 1px solid #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
  outline: none;
  padding: 7px;
}
.timeline-card-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  padding: 8px 16px;
  border-top: 1px solid #e5e7eb;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.timeline-actions-left {
  display: flex;
  gap: 8px;
  padding: 8px;
}
.timeline-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 8px;
}
.timeline-actions button {
  background: rgba(255, 255, 255, 0.05);
  color: #373737;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0.7;
  padding: 0;
}
.timeline-actions button.edit-focal-point-button {
  border-radius: 6px;
  color: #000000;
  width: auto;
  padding: 0 12px;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.timeline-actions-left button {
  background: rgba(0, 0, 0, 0.05);
  color: #000000;
  border: none;
  border-radius: 6px;
  height: 36px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0.7;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.timeline-actions-left button[title="Delete scene"] {
  border-radius: 50%;
  width: 36px;
  padding: 0;
  gap: 0;
}
.timeline-card:hover .timeline-actions button, .timeline-card:hover .timeline-actions-left button {
  opacity: 1;
}
.timeline-actions button:hover, .timeline-actions-left button:hover {
  background: rgba(248, 141, 141, 0.1);
  color: rgb(236, 68, 68);
}
.timeline-actions button.edit-focal-point-button:hover {
  background: rgba(0, 0, 0, 0.1) !important;
  color: #000000 !important;
}
.timeline-actions button i {
  font-size: 16px;
}
.timeline-card::after {
  content: '';
  position: sticky;
  bottom: 50px;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
  pointer-events: none;
  z-index: 2;
}
#main-app.player-visible #timeline-area {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0;
  overflow-x: visible;
}
#main-app.player-visible #chat-and-timeline-wrapper {
  height: 500px;
}
#main-app.player-visible .timeline-scroll-container {
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 16px 16px;
  gap: 14px;
  overflow-y: auto;
  cursor: default;
}
#main-app.player-visible .timeline-card {
  width: 100% !important;
  margin: 0;
  box-sizing: border-box;
  transform: translateZ(0);
  -webkit-font-smoothing: antialiased;
}
#main-app.player-visible .timeline-card.collapsed {
  height: 60px !important;
  min-height: 60px !important;
  max-height: 60px !important;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0;
  cursor: pointer;
}
#main-app.player-visible .timeline-card.collapsed .timeline-scene-number {
  position: static;
  width: 30px;
  height: 30px;
  font-size: 16px;
  margin: 0 12px;
  flex-shrink: 0;
  display: flex;
}
#main-app.player-visible .timeline-card.collapsed .timeline-thumbnail {
  display: none;
}
#main-app.player-visible .timeline-card.collapsed .timeline-title-container {
  flex: 1;
  min-width: 0;
  padding: 0;
  margin-right: 12px;
  cursor: pointer;
}
#main-app.player-visible .timeline-card.collapsed .timeline-title-display {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}
#main-app.player-visible .timeline-card.collapsed .timeline-collapsible, #main-app.player-visible .timeline-card.collapsed .timeline-card-footer, #main-app.player-visible .timeline-card.collapsed::after {
  display: none;
}
#main-app.player-visible .timeline-card.collapsed:focus {
  outline: 3px solid #0066cc;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(0, 102, 204, 0.2);
}
#main-app.player-visible .timeline-card.collapsed:focus-visible {
  outline: 3px solid #0066cc;
  outline-offset: 2px;
}
#main-app.player-visible .timeline-card.expanded {
  height: auto !important;
  max-height: none;
  display: flex;
  flex-direction: column;
}
#main-app.player-visible .timeline-card.expanded .timeline-scene-number {
  position: absolute;
  top: 12px;
  left: 12px;
}
#main-app.player-visible .timeline-card.expanded .timeline-thumbnail {
  width: 100%;
  padding-top: 56.25%;
}
#main-app.player-visible .timeline-card.expanded .timeline-title-container {
  padding: 16px;
}
#main-app.player-visible .timeline-card.expanded .timeline-title-display {
  cursor: text;
  user-select: text;
}
#main-app.player-visible .timeline-card.expanded .timeline-collapsible, #main-app.player-visible .timeline-card.expanded .timeline-card-footer, #main-app.player-visible .timeline-card.expanded::after {
  display: block;
}
#main-app.player-visible .timeline-card.expanded .timeline-card-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  padding: 8px 16px;
  border-top: 1px solid #e5e7eb;
  z-index: 7;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#main-app.player-visible .timeline-card.expanded .timeline-actions-left {
  display: flex;
  gap: 8px;
  padding: 8px;
}
#main-app.player-visible .timeline-card.expanded .timeline-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 8px;
}
#main-app.player-visible .timeline-card.expanded .timeline-actions button {
  background: rgba(255, 255, 255, 0.05);
  color: #000000;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0.7;
  padding: 0;
}
#main-app.player-visible .timeline-card.expanded .timeline-actions button.edit-focal-point-button {
  border-radius: 6px;
  color: #000000;
  width: auto;
  padding: 0 12px;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
#main-app.player-visible .timeline-card.expanded .timeline-actions-left button {
  background: rgba(0, 0, 0, 0.05);
  color: #000000;
  border: none;
  border-radius: 6px;
  height: 36px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0.7;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
#main-app.player-visible .timeline-card.expanded .timeline-actions-left button[title="Delete scene"] {
  border-radius: 50%;
  width: 36px;
  padding: 0;
  gap: 0;
}
#main-app.player-visible .timeline-card.expanded .timeline-actions-left button:hover {
  opacity: 1;
  background: rgba(248, 141, 141, 0.1);
  color: rgb(236, 68, 68);
}
#main-app.player-visible .timeline-card.expanded .timeline-actions button.edit-focal-point-button:hover {
  background: rgba(0, 0, 0, 0.1) !important;
  color: #000000 !important;
}
#main-app.player-visible .timeline-card.expanded .timeline-actions button:focus, #main-app.player-visible .timeline-card.expanded .timeline-actions-left button:focus {
  outline: 2px solid #0066cc;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.2);
}
#main-app.player-visible .timeline-card.expanded .timeline-actions button:focus-visible, #main-app.player-visible .timeline-card.expanded .timeline-actions-left button:focus-visible {
  outline: 2px solid #0066cc;
  outline-offset: 2px;
}
#main-app.player-visible .timeline-card.expanded .focal-point-toggle:focus, #main-app.player-visible .timeline-card.expanded .focal-point-edit:focus {
  outline: 2px solid #0066cc;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.2);
}
#main-app.player-visible .timeline-card.expanded .focal-point-toggle:focus-visible, #main-app.player-visible .timeline-card.expanded .focal-point-edit:focus-visible {
  outline: 2px solid #0066cc;
  outline-offset: 2px;
}
#main-app.player-visible .timeline-text-display, #main-app.player-visible .focal-point-controls, #main-app.player-visible .timeline-actions button, #main-app.player-visible .timeline-thumbnail img {
  pointer-events: auto;
}
#main-app.player-visible .timeline-card.expanded .focal-point-controls {
  opacity: 1;
}
#main-app.player-visible .timeline-card.expanded .focal-point-toggle, #main-app.player-visible .timeline-card.expanded .focal-point-edit {
  padding: 8px 12px;
  font-size: 14px;
}
#main-app.player-visible .timeline-card.expanded .timeline-title-display {
  pointer-events: auto;
}
#main-app.player-visible .timeline-card.expanded .timeline-text-display {
  position: relative;
  z-index: 10;
  cursor: text;
  transition: background-color 0.2s, border-color 0.2s;
  min-height: 24px;
  padding: 8px;
  background: #f9fafb;
  border-radius: 6px;
  border: 1px solid transparent;
}
#main-app.player-visible .timeline-card.expanded .timeline-text-display:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}
#main-app.player-visible .timeline-card.expanded .timeline-text-display:focus {
  outline: 2px solid #0066cc;
  outline-offset: 1px;
  background-color: rgba(0, 102, 204, 0.05);
}
#main-app.player-visible .timeline-card.expanded .timeline-text-display[contenteditable="true"] {
  background: #ffffff;
  border: 1px solid #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
  outline: none;
  padding: 7px;
}
#main-app.player-visible .timeline-card.expanded .timeline-field-group {
  position: relative;
  z-index: 5;
  margin-bottom: 12px;
}
#main-app.player-visible .timeline-card.expanded .timeline-field-group:hover {
  background: rgba(0, 0, 0, 0.02);
  border-radius: 4px;
}
#main-app.player-visible .timeline-card.expanded .timeline-field-group:focus-within {
  background: rgba(0, 102, 204, 0.05);
  border-radius: 4px;
  border: 1px solid rgba(0, 102, 204, 0.2);
}
#main-app.player-visible .timeline-card.expanded .timeline-field-label {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  margin-bottom: 4px;
  pointer-events: none;
}
#main-app.player-visible .timeline-card.expanded .timeline-title-display {
  cursor: text;
  user-select: text;
  padding: 8px;
  border-radius: 4px;
  transition: background-color 0.2s;
}
#main-app.player-visible .timeline-card.expanded .timeline-title-display:hover {
  background: rgba(0, 0, 0, 0.02);
}
#main-app.player-visible .timeline-card.expanded .timeline-title-display:focus {
  outline: 2px solid #0066cc;
  outline-offset: 1px;
  background-color: rgba(0, 102, 204, 0.05);
}
#main-app.player-visible .timeline-card.expanded .timeline-title-display[contenteditable="true"] {
  background: #f3f4f6;
  padding: 8px;
  border-radius: 4px;
  margin: -8px;
  border: 1px solid #d1d5db;
}
#main-app.player-visible .timeline-card.expanded .timeline-collapsible {
  position: relative;
  z-index: 5;
  max-height: 165px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 16px;
  margin-bottom: 50px;
}
#main-app.player-visible .timeline-card.expanded .timeline-card-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 0;
}
#main-app.player-visible .timeline-card.expanded .timeline-field-group {
  margin-bottom: 12px;
  position: relative;
}
#main-app.player-visible .timeline-card.expanded .timeline-field-group:last-child {
  margin-bottom: 0;
}
#main-app.player-visible .timeline-card.expanded .timeline-field-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 6px;
}
#main-app.player-visible .timeline-card.expanded .timeline-field-header .refresh-scene-button, #main-app.player-visible .timeline-card.expanded .timeline-field-header .focal-point-toggle {
  font-size: 0.65rem !important;
  padding: 0.15rem 0.4rem !important;
}
#main-app.player-visible .timeline-card.expanded::after {
  content: '';
  position: absolute;
  bottom: 50px;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
  z-index: 4;
  pointer-events: none;
}
.timeline-card-footer {
  position: sticky;
  left: 0;
  right: 0;
  bottom: 0;
}
#main-app.player-visible .timeline-card.expanded .timeline-card-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}
#main-app.player-visible .chat-input-footer button {
  display: flex;
  opacity: 1;
}
#main-app.player-visible .chat-input-footer button {
  gap: 8px;
  padding: 12px 16px;
}
#main-app.player-visible .chat-input-footer {
  flex-direction: row;
  gap: 8px;
  padding: 12px;
  justify-content: space-between;
}
#main-app.player-visible #create-video-button, #main-app.player-visible #send-button {
  display: inline-flex;
  flex: 1;
  min-width: 120px;
  justify-content: center;
  padding: 12px 16px;
  font-size: 14px;
}
#main-app.player-visible .upload-image-button, #main-app.player-visible .snagit-library-button {
  display: none !important;
}
.focal-point-editor-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 4;
}
.focal-point-editor {
  position: absolute;
  width: 200px;
  height: 200px;
  border: 2px dashed #ffd000;
  background-color: rgba(255, 208, 0, 0.2);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3), 0 0 8px rgba(255, 208, 0, 0.5);
  box-sizing: border-box;
  cursor: move;
  pointer-events: all;
  touch-action: none;
  transform: translate(0, 0);
  z-index: 5;
  transition: width 0.1s ease, height 0.1s ease, transform 0.1s ease;
}
.resize-handle {
  position: absolute;
  width: 14px;
  height: 14px;
  background-color: white;
  border: 2px solid #ffd000;
  border-radius: 50%;
  pointer-events: all;
  z-index: 6;
}
.resize-handle.nw {
  top: -7px;
  left: -7px;
  cursor: nwse-resize;
}
.resize-handle.ne {
  top: -7px;
  right: -7px;
  cursor: nesw-resize;
}
.resize-handle.sw {
  bottom: -7px;
  left: -7px;
  cursor: nesw-resize;
}
.resize-handle.se {
  bottom: -7px;
  right: -7px;
  cursor: nwse-resize;
}
.confirmation-modal .modal-content {
  max-width: 500px;
}
.focal-point-info {
  background-color: #f5f5f5;
  border-radius: 8px;
  padding: 12px;
  margin-top: 16px;
}
.focal-point-info ul {
  margin: 8px 0 0 0;
  padding-left: 20px;
}
.focal-point-info li {
  margin-bottom: 4px;
}
.update-scene-button {
  position: relative;
  background-color: #ffd000 !important;
  color: #000000 !important;
  border: none;
  padding: 8px 16px !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
  margin-left: 16px !important;
}
.update-scene-button:hover {
  background-color: #ffda3a !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
  transform: translateY(-1px) !important;
}
.update-scene-button:active {
  transform: translateY(1px) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}
.update-scene-button i {
  font-size: 16px !important;
}
#storyboard-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #333;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 1010;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
#storyboard-notification.visible {
  opacity: 1;
  transform: translateY(0);
}
.timeline-card.updating .timeline-thumbnail::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 208, 0, 0.3), transparent);
  background-size: 200% 100%;
  animation: updating-animation 1s ease-in-out infinite;
  pointer-events: none;
}
@keyframes updating-animation {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.refresh-scene-button {
  background: rgba(0, 0, 0, 0.05) !important;
  color: #666 !important;
}
.refresh-scene-button:hover {
  background: rgba(0, 0, 0, 0.1) !important;
  color: #333 !important;
}
.refresh-scene-button[disabled] {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}
.refresh-scene-button .fa-spinner {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.timeline-card.updating {
  position: relative;
  overflow: hidden;
}
.timeline-card.updating::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #333333, transparent);
  animation: loading-bar 1.5s infinite ease-in-out;
  z-index: 10;
}
@keyframes loading-bar {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}
.timeline-card.updating .timeline-thumbnail::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #333;
  z-index: 5;
  animation: updating-animation 2s infinite ease-in-out;
}
@keyframes updating-animation {
  0% {
    background-color: rgba(255, 255, 255, 0.7);
  }
  50% {
    background-color: rgba(0, 0, 0, 0.05);
  }
  100% {
    background-color: rgba(255, 255, 255, 0.7);
  }
}
.timeline-card.expanded {
  overflow-y: auto;
  overflow-x: hidden;
}
.timeline-card.collapsed {
  overflow: hidden;
}
.timeline-card.expanded .timeline-collapsible {
  overflow: visible;
}
#main-app.player-visible .timeline-card.expanded {
  overflow: hidden;
}
#main-app.player-visible .timeline-card.expanded .timeline-collapsible {
  overflow-y: auto;
  max-height: 165px;
}
@property --tw-rotate-x {
  syntax: "*";
  inherits: false;
}
@property --tw-rotate-y {
  syntax: "*";
  inherits: false;
}
@property --tw-rotate-z {
  syntax: "*";
  inherits: false;
}
@property --tw-skew-x {
  syntax: "*";
  inherits: false;
}
@property --tw-skew-y {
  syntax: "*";
  inherits: false;
}
@property --tw-border-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}
@property --tw-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-shadow-color {
  syntax: "*";
  inherits: false;
}
@property --tw-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-inset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-inset-shadow-color {
  syntax: "*";
  inherits: false;
}
@property --tw-inset-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-ring-color {
  syntax: "*";
  inherits: false;
}
@property --tw-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-inset-ring-color {
  syntax: "*";
  inherits: false;
}
@property --tw-inset-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-ring-inset {
  syntax: "*";
  inherits: false;
}
@property --tw-ring-offset-width {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}
@property --tw-ring-offset-color {
  syntax: "*";
  inherits: false;
  initial-value: #fff;
}
@property --tw-ring-offset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-outline-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}
@property --tw-blur {
  syntax: "*";
  inherits: false;
}
@property --tw-brightness {
  syntax: "*";
  inherits: false;
}
@property --tw-contrast {
  syntax: "*";
  inherits: false;
}
@property --tw-grayscale {
  syntax: "*";
  inherits: false;
}
@property --tw-hue-rotate {
  syntax: "*";
  inherits: false;
}
@property --tw-invert {
  syntax: "*";
  inherits: false;
}
@property --tw-opacity {
  syntax: "*";
  inherits: false;
}
@property --tw-saturate {
  syntax: "*";
  inherits: false;
}
@property --tw-sepia {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow-color {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-drop-shadow-size {
  syntax: "*";
  inherits: false;
}
@property --tw-ease {
  syntax: "*";
  inherits: false;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@layer properties {
  @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
    *, ::before, ::after, ::backdrop {
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
      --tw-border-style: solid;
      --tw-shadow: 0 0 #0000;
      --tw-shadow-color: initial;
      --tw-shadow-alpha: 100%;
      --tw-inset-shadow: 0 0 #0000;
      --tw-inset-shadow-color: initial;
      --tw-inset-shadow-alpha: 100%;
      --tw-ring-color: initial;
      --tw-ring-shadow: 0 0 #0000;
      --tw-inset-ring-color: initial;
      --tw-inset-ring-shadow: 0 0 #0000;
      --tw-ring-inset: initial;
      --tw-ring-offset-width: 0px;
      --tw-ring-offset-color: #fff;
      --tw-ring-offset-shadow: 0 0 #0000;
      --tw-outline-style: solid;
      --tw-blur: initial;
      --tw-brightness: initial;
      --tw-contrast: initial;
      --tw-grayscale: initial;
      --tw-hue-rotate: initial;
      --tw-invert: initial;
      --tw-opacity: initial;
      --tw-saturate: initial;
      --tw-sepia: initial;
      --tw-drop-shadow: initial;
      --tw-drop-shadow-color: initial;
      --tw-drop-shadow-alpha: 100%;
      --tw-drop-shadow-size: initial;
      --tw-ease: initial;
    }
  }
}
