.spark-compare {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 24px;
  background: #101820;
  isolation: isolate;
  --split: 50%;
}
.spark-compare > img,
.spark-compare > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.spark-compare > .compare-before {
  z-index: 1;
  clip-path: inset(0 calc(100% - var(--split)) 0 0);
}
.compare-labels {
  position: absolute;
  inset: 18px 18px auto;
  display: flex;
  justify-content: space-between;
  z-index: 2;
  pointer-events: none;
}
.compare-labels span {
  background: #0c1429d9;
  border: 1px solid #ffffff22;
  padding: 7px 14px;
  border-radius: 100px;
  font: 600 12px system-ui;
  color: #fff;
}
.compare-divider {
  position: absolute;
  left: var(--split);
  top: 0;
  bottom: 0;
  width: 2px;
  background: #ffffffd9;
  z-index: 2;
  pointer-events: none;
}
.compare-divider b {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: #f0fff0;
  color: #142026;
  border-radius: 50%;
  box-shadow: 0 4px 26px #0007;
  font: 700 20px system-ui;
}
.spark-compare > input {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
}
.spark-compare:focus-within {
  outline: 2px solid #b8f593;
  outline-offset: 4px;
}
.compare-video-controls {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  z-index: 4;
  display: flex;
  gap: 14px;
  background: #09111ce8;
  padding: 10px;
  border-radius: 14px;
}
.compare-video-controls input {
  min-width: 0;
  flex: 1;
  accent-color: #b8f593;
}
.compare-video-controls button {
  color: #fff;
  background: none;
  border: 0;
  font: inherit;
}
.demo-tabs {
  display: flex;
  gap: 8px;
  margin: 16px 0 10px;
  flex-wrap: wrap;
}
.demo-tabs button {
  border: 1px solid #ffffff22;
  background: #ffffff08;
  color: #ccd4dc;
  border-radius: 100px;
  padding: 10px 16px;
  cursor: pointer;
  font: 500 13px system-ui;
  transition:
    background 0.2s,
    color 0.2s;
}
.demo-tabs button[aria-pressed="true"] {
  background: #d7fcb6;
  color: #182819;
  border-color: #d7fcb6;
}
.demo-hint {
  font: 12px/1.6 system-ui;
  color: #9da9ba;
  margin: 8px 0;
}
.browser-feature {
  display: none !important;
}
.browser-app .browser-feature {
  display: flex !important;
}
.browser-app .web-mode-bar {
  gap: 8px;
  margin-right: auto;
  align-items: center;
}
.web-mode-bar button {
  padding: 10px 16px;
  border-radius: 100px;
  background: #ffffff09;
  border: 1px solid #ffffff22;
  color: #e6eaf1;
  cursor: pointer;
}
.web-mode-bar button[aria-pressed="true"] {
  background: #d4efac;
  color: #1b2618;
  box-shadow: 0 0 28px #cdf0ac15;
}
.browser-app .topbar {
  gap: 18px;
}
.browser-app .exclusive-badge {
  font-size: 9px;
  color: #caf295;
  border: 1px solid #caf29544;
  border-radius: 100px;
  padding: 3px 6px;
  white-space: nowrap;
}
.browser-app .magic-intro {
  margin-bottom: 22px;
  padding: 22px;
  border: 1px solid #d6edbd30;
  background: linear-gradient(115deg, #9cf4d90c, #d4ebbd09);
  border-radius: 20px;
  color: #c8d0dc;
}
.magic-intro h2 {
  margin: 0 0 8px;
  color: #eaffd7;
  font-size: 26px;
}
.magic-intro p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}
.browser-app .igaming-panel {
  padding: 24px;
  margin: 0 0 22px;
  background: linear-gradient(120deg, #302545c9, #141c28ed);
  border: 1px solid #ccb3ff33;
  border-radius: 24px;
}
.igaming-panel h2 {
  margin: 0;
  font-size: 27px;
  color: #f3ebff;
}
.igaming-panel p {
  color: #b8b4c7;
  font-size: 14px;
  line-height: 1.6;
}
.igaming-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
}
.igaming-heading small {
  letter-spacing: 0.16em;
  color: #cba4fa;
}
.igaming-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.igaming-fields label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  color: #bdc4d2;
}
.igaming-fields select,
.igaming-panel textarea {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #ffffff1c;
  background: #141724;
  color: #f4f4f8;
  width: 100%;
  font: inherit;
}
.igaming-fields select:focus,
.igaming-panel textarea:focus {
  outline: 2px solid #cba4fa;
}
.igaming-bottom {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 18px;
}
.igaming-bottom button {
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid #ffffff28;
  background: #ffffff0c;
  color: #fff;
  cursor: pointer;
}
.igaming-bottom .igaming-apply {
  background: #d4efac;
  color: #1b2618;
  font-weight: 700;
  margin-left: auto;
}
.igaming-panel textarea {
  height: 82px;
  margin-top: 16px;
  resize: vertical;
}
.igaming-prompt-label {
  display: block;
  margin-top: 18px;
  font-size: 12px;
  color: #bdc4d2;
}
.browser-app.igaming-mode .desktop-sidebar {
  border-color: #b79bdb26;
  background: linear-gradient(180deg, #272134e8, #11151ee8);
}
.browser-app.igaming-mode .desktop-brand .brand-mark {
  background: linear-gradient(135deg, #e1c3ff, #77dacb);
  color: #251630;
}
.web-welcome {
  width: min(1140px, calc(100% - 40px));
  max-height: 92dvh;
  overflow: auto;
  border: 1px solid #d8f4cf30;
  border-radius: 30px;
  background:
    radial-gradient(ellipse at 5% 0%, #7160a346, transparent 65%),
    radial-gradient(ellipse at 100% 100%, #9ae79a24, transparent 65%),
    linear-gradient(135deg, #202331, #131a24);
  color: #f6f9f4;
  padding: 0;
  box-shadow:
    0 40px 150px #000b,
    0 0 80px #b4a1ff20,
    inset 0 1px 0 #ffffff20;
}
.web-welcome::backdrop {
  background: #04080dc9;
  backdrop-filter: blur(10px);
}
.web-welcome-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  padding: 48px;
}
.welcome-copy {
  align-self: center;
}
.welcome-copy > small {
  color: #d4efac;
  letter-spacing: 0.2em;
  font-size: 11px;
}
.welcome-copy h2 {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.045em;
  margin: 20px 0;
}
.welcome-copy p {
  font-size: 15px;
  line-height: 1.7;
  color: #bdc8d5;
}
.welcome-trial {
  border: 1px solid #c7f6a22a;
  border-radius: 15px;
  padding: 16px;
  color: #d9f7bb !important;
  background: #bcf39307;
  font-size: 13px !important;
}
.welcome-start {
  display: block;
  width: 100%;
  padding: 16px 20px;
  border: 0;
  border-radius: 14px;
  background: #d4efac;
  color: #1b2618;
  font: 700 15px system-ui;
  cursor: pointer;
  margin-top: 22px;
}
.welcome-skip {
  display: block;
  margin: 14px auto 0;
  border: 0;
  background: none;
  color: #adb9c9;
  cursor: pointer;
  padding: 8px;
  font: inherit;
}
.web-welcome-close {
  position: absolute;
  right: 16px;
  top: 12px;
  background: none;
  border: 0;
  color: #bdc8d5;
  font-size: 26px;
  padding: 5px;
  cursor: pointer;
}
.browser-app .queue-demo {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #ffffff12;
}
.queue-demo h3 {
  font-size: 14px;
  color: #d9e7ef;
}
.queue-demo .demo-tabs button {
  font-size: 11px;
  padding: 7px 10px;
}
.browser-app .result-sheet {
  max-width: 960px;
}
.browser-app .result-media .spark-compare {
  max-height: 65dvh;
  aspect-ratio: 4/3;
  width: 100%;
}
.browser-app .result-media .spark-compare img,
.browser-app .result-media .spark-compare video {
  max-height: none;
}
.compare-toggle {
  padding: 10px 16px;
  background: #d4efac;
  color: #20301b;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  margin-bottom: 12px;
}
@media (min-width: 1000px) {
  .browser-app .topbar .brand {
    display: none;
  }
  .browser-app .topbar {
    display: flex;
    justify-content: end;
  }
}
@media (max-width: 1000px) {
  .web-welcome-layout {
    grid-template-columns: 1fr;
    padding: 30px;
    gap: 24px;
  }
  .web-welcome-layout .welcome-copy h2 {
    font-size: 34px;
  }
  .igaming-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .browser-app .web-mode-bar {
    order: 3;
    width: 100%;
    margin: 0;
  }
  .browser-app .topbar {
    flex-wrap: wrap;
  }
  .browser-app .igaming-panel {
    padding: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .browser-app *,
  .browser-app *::before,
  .browser-app *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .demo-tabs button {
    transition: none;
  }
}

.browser-app .files-wait-demo {
  max-width: 680px;
  margin: 24px 0 40px;
  padding: 24px;
  border: 1px solid #ffffff20;
  border-radius: 24px;
  background: #ffffff06;
}
.browser-app.igaming-mode {
  --aqua: #b8a0ff;
  --lime: #dcc7ff;
  --line-strong: rgba(181, 148, 255, 0.3);
  --line: rgba(181, 148, 255, 0.16);
  background:
    radial-gradient(ellipse at 80% 0%, #25143e 0, transparent 55%), #0d0b13;
}
.browser-app.igaming-mode .topbar {
  background: rgba(17, 12, 27, 0.94);
}
.browser-app.igaming-mode .web-mode-bar button[aria-pressed="true"] {
  background: #d5b5ff;
  color: #20132f;
}
.browser-app.igaming-mode .desktop-sidebar button.active {
  color: #e2c9ff;
  background: #39234d;
  border-color: #775695;
}
.browser-app.igaming-mode .desktop-sidebar {
  background: linear-gradient(165deg, #191024, #0e0b16);
  border-color: #39274e;
}
.browser-app.igaming-mode .studio-card,
.browser-app.igaming-mode .desktop-inspector {
  background: rgba(26, 19, 37, 0.88);
}
.browser-app.igaming-mode .igaming-panel {
  background: linear-gradient(
    130deg,
    rgba(49, 28, 77, 0.92),
    rgba(22, 17, 32, 0.96)
  );
  border-color: #735096;
}
.browser-app.igaming-mode .igaming-apply,
.browser-app.igaming-mode .studio-generate {
  background: linear-gradient(115deg, #d5b5ff, #ac91ff);
  color: #20132f;
}
.gaming-game-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0 12px;
}
.gaming-game-grid button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-height: 124px;
  padding: 16px;
  border: 1px solid #49335f;
  border-radius: 16px;
  color: #f3ebff;
  background: rgba(18, 12, 28, 0.65);
  text-align: left;
  cursor: pointer;
}
.gaming-game-grid button > span {
  font-size: 26px;
}
.gaming-game-grid button small {
  color: #c3b4d1;
  line-height: 1.4;
}
.gaming-game-grid button[aria-pressed="true"] {
  border-color: #c8a4ff;
  background: #3e2858;
  box-shadow: inset 0 0 0 1px #c8a4ff;
}
.gaming-game-grid button:hover {
  border-color: #b997df;
}
.gaming-game-grid button:focus-visible {
  outline: 2px solid #dfc9ff;
  outline-offset: 3px;
}
.gaming-selection-summary {
  padding: 12px 14px;
  background: rgba(190, 151, 255, 0.09);
  border-radius: 10px;
  color: #e4d1ff !important;
}
.igaming-fields input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid #624579;
  border-radius: 10px;
  background: #191320;
  color: #f3ebff;
  font: inherit;
}
.gaming-extra-fields {
  margin-top: 16px;
}
.gaming-prompt-preview {
  margin: 16px 0;
  border: 1px solid #49335f;
  border-radius: 12px;
  padding: 14px;
  color: #e2d2f3;
}
.gaming-prompt-preview summary {
  cursor: pointer;
}
.gaming-prompt-preview pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  font-size: 13px;
  line-height: 1.7;
}
@media (max-width: 700px) {
  .gaming-game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 1000px) {
  .browser-app .topbar {
    height: auto;
    min-height: 90px;
    padding: 12px 0;
  }
  .browser-app .web-mode-bar {
    flex-wrap: wrap;
    gap: 6px;
  }
  .web-mode-bar button {
    padding: 9px 11px;
    font-size: 12px;
  }
}
/* Browser-only glass surfaces; Telegram keeps its existing presentation. */
body.browser-app .gaming-mode-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  background: linear-gradient(130deg, #493463, #211b33);
  color: #eee3ff;
  border-color: #a487c8;
}
.gaming-mode-switch small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: #d5c7e7;
}
body.browser-app.igaming-mode
  .web-mode-bar
  .gaming-mode-switch[aria-pressed="true"] {
  background: linear-gradient(135deg, #e2caff, #b8a0f2);
  color: #281b3b;
}
body.browser-app.igaming-mode .gaming-mode-switch[aria-pressed="true"] small {
  color: #49335f;
}
.gaming-mode-state {
  padding: 4px 7px;
  border-radius: 8px;
  font-size: 10px;
  background: #ffffff15;
}
body.browser-app .gaming-mode-switch[aria-pressed="true"] {
  box-shadow:
    inset 0 1px 0 #ffffff40,
    0 0 22px #b78aff25;
}
.gaming-workflow {
  color: #d5c7e7;
  font-size: 13px;
  line-height: 1.8;
}
.gaming-direction {
  color: #d5c7e7;
  line-height: 1.6;
  font-size: 14px;
}
.gaming-reference {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.gaming-reference button {
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid #a487c8;
  border-radius: 14px;
  color: #eee3ff;
  background: #ffffff0d;
  cursor: pointer;
}
.gaming-reference span {
  color: #d5c7e7;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.gaming-apply-status {
  color: #dcc7ff;
  line-height: 1.6;
}
body.browser-app .setting-button div small,
body.browser-app .studio-card-head small,
body.browser-app .studio-dropzone small,
body.browser-app .studio-dropzone em,
body.browser-app .desktop-sidebar button:not(.active),
body.browser-app .desktop-studio-heading p {
  color: #beced1;
}
body.browser-app {
  --glass-tint: 90, 220, 209;
  --glass-accent: #9af3e3;
  background:
    radial-gradient(ellipse at 85% 12%, #163d46 0, transparent 48%),
    radial-gradient(ellipse at 10% 65%, #12372d 0, transparent 48%), #091416;
}
body.browser-app.igaming-mode {
  --glass-tint: 190, 151, 255;
  --glass-accent: #dcc7ff;
  background:
    radial-gradient(ellipse at 85% 12%, #392350 0, transparent 48%),
    radial-gradient(ellipse at 10% 65%, #202341 0, transparent 48%), #100e1b;
}
body.browser-app .topbar,
body.browser-app .desktop-sidebar,
body.browser-app .studio-card,
body.browser-app .desktop-inspector,
body.browser-app .igaming-panel {
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.085),
      rgba(255, 255, 255, 0.018)
    ),
    #142226;
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 16px 44px rgba(0, 0, 0, 0.18);
}
body.browser-app.igaming-mode .topbar,
body.browser-app.igaming-mode .desktop-sidebar,
body.browser-app.igaming-mode .studio-card,
body.browser-app.igaming-mode .desktop-inspector,
body.browser-app.igaming-mode .igaming-panel {
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.09),
      rgba(255, 255, 255, 0.018)
    ),
    #211b30;
}
@supports (
  (backdrop-filter: blur(20px)) or (-webkit-backdrop-filter: blur(20px))
) {
  body.browser-app .topbar,
  body.browser-app .desktop-sidebar {
    background:
      linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.09),
        rgba(255, 255, 255, 0.025)
      ),
      rgba(12, 24, 28, 0.76);
    -webkit-backdrop-filter: blur(20px) saturate(145%);
    backdrop-filter: blur(20px) saturate(145%);
  }
  body.browser-app.igaming-mode .topbar,
  body.browser-app.igaming-mode .desktop-sidebar {
    background:
      linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.09),
        rgba(255, 255, 255, 0.025)
      ),
      rgba(24, 17, 36, 0.76);
  }
}
body.browser-app .web-mode-bar {
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.2);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.25);
}
body.browser-app .web-mode-bar button {
  min-height: 44px;
  border-radius: 17px;
}
body.browser-app .web-mode-bar button[aria-pressed="true"],
body.browser-app .desktop-sidebar button.active {
  color: var(--glass-accent);
  background: linear-gradient(
    145deg,
    rgba(var(--glass-tint), 0.23),
    rgba(var(--glass-tint), 0.09)
  );
  border-color: rgba(var(--glass-tint), 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 4px 12px rgba(0, 0, 0, 0.16);
}
body.browser-app .setting-button,
body.browser-app .studio-mode-tabs button,
body.browser-app .audio-mode-tabs button,
body.browser-app .gaming-game-grid button {
  min-height: 44px;
  border-color: rgba(255, 255, 255, 0.17);
  background: linear-gradient(
    150deg,
    rgba(255, 255, 255, 0.09),
    rgba(255, 255, 255, 0.03)
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09);
}
body.browser-app .gaming-game-grid button[aria-pressed="true"],
body.browser-app .studio-mode-tabs button.active,
body.browser-app .audio-mode-tabs button.active {
  border-color: var(--glass-accent);
  background: rgba(var(--glass-tint), 0.18);
}
body.browser-app .studio-generate,
body.browser-app .igaming-apply {
  min-height: 48px;
  border-radius: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 6px 20px rgba(var(--glass-tint), 0.14);
}
.gaming-copy-prompt,
.gaming-remove-file {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--glass-accent, #85dfab);
  border-radius: 12px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.gaming-copy-prompt {
  margin-top: 12px;
}
.gaming-reference span,
[data-gaming-logo-status] {
  min-width: 0;
  overflow-wrap: anywhere;
}
.igaming-panel[aria-busy="true"] button,
.igaming-panel[aria-busy="true"] input,
.igaming-panel[aria-busy="true"] select,
.igaming-panel[aria-busy="true"] textarea {
  cursor: wait;
  opacity: 0.65;
}
body.browser-app button {
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}
body.browser-app button:focus-visible,
body.browser-app input:focus-visible,
body.browser-app select:focus-visible,
body.browser-app textarea:focus-visible {
  outline: 2px solid var(--glass-accent);
  outline-offset: 4px;
}
@media (hover: hover) {
  body.browser-app button:not(:disabled):hover {
    border-color: var(--glass-accent);
    transform: translateY(-1px);
  }
}
body.browser-app button:not(:disabled):active {
  transform: scale(0.985);
}
@media (prefers-reduced-motion: reduce) {
  body.browser-app button {
    transition: none;
  }
  body.browser-app button:not(:disabled):hover,
  body.browser-app button:not(:disabled):active {
    transform: none;
  }
}

/* Shared premium welcome identity: landing and first-visit studio dialog. */
.welcome-copy h2 em {
  font-style: normal;
  color: #c9ff85;
  background: linear-gradient(100deg, #c9ff85, #97ead6 55%, #c4a7ff);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.welcome-highlights {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}
.welcome-highlight {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 15px;
  border: 1px solid #eee8ff26;
  border-radius: 18px;
  background: linear-gradient(115deg, #ffffff09, #ffffff03);
  box-shadow: inset 0 1px 0 #ffffff0c;
  color: #f8f8fc;
  text-decoration: none;
}
a.welcome-highlight:hover {
  border-color: #c9ff8580;
  background: #c9ff850d;
}
.welcome-highlight-icon {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  height: 42px;
  border-radius: 13px;
  color: #c9ff85;
  font-size: 25px;
  background: linear-gradient(145deg, #bfff8526, #a28bff26);
  border: 1px solid #d1edac30;
}
.welcome-highlight > div {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 4px;
}
.welcome-highlight small {
  color: #c6b8ef;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
}
.welcome-highlight strong {
  font-size: 17px;
  line-height: 1.2;
}
.welcome-highlight div > span {
  color: #c6cbd6;
  font-size: 12px;
  line-height: 1.5;
}
.welcome-highlight > b {
  color: #c9ff85;
}
.welcome-highlight .welcome-soon {
  font-size: 10px;
  border-radius: 20px;
  padding: 5px 8px;
  background: #c4a7ff18;
  color: #d4c5f4;
}
.welcome-start {
  background: linear-gradient(110deg, #c9ff85, #a4f3bd);
  box-shadow:
    0 8px 30px #a7eeae24,
    inset 0 1px 0 #ffffff60;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
}
.welcome-start:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px #a7eeae40;
}
.web-welcome-layout {
  grid-template-columns: 1fr 1.05fr;
  gap: 32px;
}
.web-welcome .welcome-copy h2 {
  margin: 15px 0;
}
.web-welcome .welcome-copy > p {
  font-size: 14px;
  line-height: 1.5;
}
.web-welcome .welcome-trial {
  padding: 12px 14px;
}
@media (max-width: 900px) {
  .web-welcome-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .welcome-highlight {
    padding: 12px;
    gap: 10px;
  }
  .welcome-highlight-icon {
    flex-basis: 35px;
    height: 35px;
    font-size: 21px;
  }
  .welcome-highlight strong {
    font-size: 15px;
  }
  .welcome-highlight .welcome-soon {
    padding: 4px 6px;
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .welcome-start {
    transition: none;
  }
  .welcome-start:hover {
    transform: none;
  }
}

.work-library {
  display: none;
}
@media (min-width: 1100px) {
  body.browser-app .work-library {
    display: block;
    margin-top: 28px;
    min-width: 0;
  }
  .work-library-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
  }
  .work-library-heading h2 {
    margin: 6px 0 0;
    font-size: 22px;
  }
  .work-library-search {
    width: 280px;
    max-width: 40%;
    padding: 12px 15px;
    background: #152025;
    color: #eef5f4;
    border: 1px solid #b5d5d330;
    border-radius: 12px;
    font: inherit;
  }
  .work-library-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 16px;
  }
  .work-card {
    min-width: 0;
    overflow: hidden;
    background: linear-gradient(145deg, #192329, #121a20);
    border: 1px solid #aec7d32b;
    border-radius: 20px;
    padding: 12px;
  }
  .work-result {
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    background: #0a1014;
    display: grid;
    place-items: center;
  }
  .work-result img,
  .work-result video {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .work-result audio {
    width: 100%;
  }
  .work-card-meta {
    display: flex;
    gap: 8px;
    justify-content: space-between;
    align-items: center;
    margin: 14px 2px;
    font-size: 12px;
  }
  .work-card-meta b {
    overflow-wrap: anywhere;
  }
  .work-card-meta small {
    color: #aebfc5;
    white-space: nowrap;
  }
  .work-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0;
  }
  .work-action {
    padding: 8px 10px;
    font: inherit;
    font-size: 11px;
    color: #dae6ec;
    background: #ffffff08;
    border: 1px solid #b6c7df30;
    border-radius: 9px;
    cursor: pointer;
  }
  .work-action.primary {
    background: #b6f681;
    border-color: #b6f681;
    color: #1a2818;
    font-weight: 700;
  }
  .work-action:hover {
    border-color: #b6f681;
  }
  .work-action:disabled {
    opacity: 0.5;
    cursor: wait;
  }
  .work-action:focus-visible,
  .work-library-search:focus-visible {
    outline: 2px solid #c5a5ff;
    outline-offset: 3px;
  }
  .work-prompt-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.6;
    color: #bfcdd2;
    margin: 14px 2px 8px;
    overflow-wrap: anywhere;
  }
  .work-prompt {
    font-size: 11px;
    color: #d8c5fc;
  }
  .work-prompt summary {
    cursor: pointer;
    padding: 4px 0;
  }
  .work-prompt p {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    max-height: 220px;
    overflow: auto;
    color: #cad5d9;
    line-height: 1.6;
  }
  .work-materials {
    border-top: 1px solid #b6c7df20;
    padding-top: 12px;
    margin-top: 12px;
  }
  .work-materials-label {
    color: #adb7c9;
    letter-spacing: 0.08em;
    font-size: 9px;
  }
  .work-material {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    padding-top: 10px;
    font-size: 11px;
  }
  .work-material > span {
    flex: 1;
  }
  .work-material > small {
    color: #d3b58b;
  }
  .work-input {
    width: 68px;
    height: 50px;
    overflow: hidden;
    border-radius: 7px;
    background: #0a1014;
  }
  .work-input img,
  .work-input video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .work-input:has(audio) {
    width: 100%;
  }
  .work-input audio {
    width: 100%;
    height: 45px;
  }
  .work-materials-empty,
  .work-library-message {
    color: #aabac1;
    font-size: 12px;
    line-height: 1.5;
  }
  .work-library-message:empty {
    display: none;
  }
}

.owner-login-flow {
  margin: 20px 0;
  padding: 18px;
  border: 1px solid #cbb0ff55;
  border-radius: 16px;
  background: #79609416;
}
.owner-login-flow[hidden] {
  display: none;
}
.owner-login-flow strong {
  display: block;
  font-size: 36px;
  letter-spacing: 0.22em;
  color: #cbff86;
  margin: 12px 0;
}
.owner-login-flow small {
  display: block;
  margin-top: 12px;
  color: #b9c5cc;
  line-height: 1.5;
}
#ownerLoginButton {
  margin-top: 12px;
  width: 100%;
  padding: 14px;
  border: 1px solid #c7a4ff66;
  border-radius: 14px;
  background: #a275f01a;
  color: #eee5ff;
  cursor: pointer;
}
#ownerLoginButton[hidden] {
  display: none;
}

.auth-welcome {
  display: none;
}
body.browser-app .auth-screen {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.85fr);
  align-items: center;
  justify-content: center;
  gap: 54px;
  max-width: 1200px;
  margin: auto;
  padding: 36px;
}
body.browser-app .auth-welcome {
  display: block;
  min-width: 0;
}
.auth-welcome > small {
  color: #dfc9ff;
  letter-spacing: 0.18em;
  font-size: 10px;
}
.auth-welcome h1 {
  margin: 16px 0;
  font-size: clamp(40px, 4.5vw, 64px);
  line-height: 1.03;
  letter-spacing: -0.05em;
}
.auth-welcome h1 em {
  font-style: normal;
  background: linear-gradient(110deg, #c9ff85, #a0e9dd 50%, #c4a7ff);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.auth-welcome > p {
  color: #c4ced3;
  font-size: 14px;
  line-height: 1.6;
  max-width: 50ch;
}
.auth-feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}
.auth-feature-tags span {
  font-size: 11px;
  color: #e6d0ab;
  padding: 7px 10px;
  background: #cda5ff10;
  border: 1px solid #d7b56c40;
  border-radius: 999px;
}
.auth-welcome .spark-compare {
  aspect-ratio: 16 / 10;
  box-shadow: 0 0 55px #a375db22;
}
body.browser-app .auth-card {
  width: 100%;
  min-width: 0;
  margin: 0;
  border-color: #c2a1ff40;
  background: linear-gradient(145deg, #1a242bd9, #10191fee);
}
@media (max-width: 900px) {
  body.browser-app .auth-screen {
    grid-template-columns: minmax(0, 1fr);
    max-width: 600px;
    padding: 24px;
    gap: 28px;
  }
  body.browser-app .auth-card {
    order: -1;
  }
  .auth-welcome h1 {
    font-size: 44px;
  }
}
