[data-sora-app],
[data-sora-demo] {
  --soram-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Arial, sans-serif;
  --soram-bg: #232323;
  --soram-panel: #303030;
  --soram-panel-2: #292929;
  --soram-line: #414142;
  --soram-white: #f7f7f3;
  --soram-muted: #a1a1a7;
  --soram-soft: #747475;
  --soram-lime: #c0ed41;
  --soram-lime-ink: #1b202b;
  --soram-error: #f45d5d;
  --soram-safe-top: 50px;
  --soram-safe-bottom: 20px;
  --soram-ease: cubic-bezier(.22, 1, .36, 1);
}

[data-sora-app],
[data-sora-app] *,
[data-sora-app] *::before,
[data-sora-app] *::after,
[data-sora-demo],
[data-sora-demo] *,
[data-sora-demo] *::before,
[data-sora-demo] *::after { box-sizing: border-box; }

html body [data-sora-app],
html body [data-sora-app] *,
html body [data-sora-demo],
html body [data-sora-demo] * { font-family: var(--soram-font) !important; }

html.brawus-v2-html body#body.brawus-v2 [data-sora-app],
html.brawus-v2-html body#body.brawus-v2 [data-sora-app] *,
html.brawus-v2-html body#body.brawus-v2 [data-sora-demo],
html.brawus-v2-html body#body.brawus-v2 [data-sora-demo] * { font-family: var(--soram-font) !important; }

html body [data-sora-app] {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  color: var(--soram-white);
  background:
    radial-gradient(circle at 91% 5%, rgba(192, 237, 65, .055), transparent 31%),
    var(--soram-bg);
  font-size: 14px;
  line-height: 1.35;
  container: soram-phone / size;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none !important;
  user-select: none !important;
  touch-action: manipulation;
}

html body [data-sora-app][data-soram-inactive] { pointer-events: none; }
html body [data-sora-app] [hidden] { display: none !important; }

html body [data-sora-app] :is(h1, h2, h3, p, figure, ul, ol, dl, dd, fieldset, legend) {
  margin: 0 !important;
  color: inherit !important;
}

html body [data-sora-app] :is(button, textarea, input) {
  min-width: 0;
  margin: 0 !important;
  color: inherit;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font: inherit;
  letter-spacing: inherit !important;
  text-transform: none !important;
  appearance: none;
  -webkit-appearance: none;
}

html body [data-sora-app] button {
  min-height: 44px;
  padding: 0;
  cursor: pointer;
  -webkit-user-select: none !important;
  user-select: none !important;
}

html body [data-sora-app] textarea {
  -webkit-user-select: text !important;
  user-select: text !important;
}

html body [data-sora-app] button:disabled { cursor: default; }

html body [data-sora-app] :is(button, textarea, input):focus-visible {
  outline: 3px solid rgba(192, 237, 65, .48) !important;
  outline-offset: 2px !important;
}

html body [data-sora-app] :is(h1, h2)[tabindex="-1"]:focus { outline: none !important; }

html body [data-sora-app] img {
  display: block;
  max-width: none;
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  pointer-events: none;
  -webkit-user-drag: none;
  user-drag: none;
}

html body [data-sora-demo] [data-sora-app] img,
html body [data-sora-demo] [data-sora-app] img.ed-real-media,
html body [data-sora-demo] [data-sora-app] figure:hover img.ed-real-media,
body.brawus-v2 [data-sora-app] img,
body.brawus-v2 [data-sora-app] img.ed-real-media,
body.brawus-v2 [data-sora-app] figure:hover img.ed-real-media {
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

[data-sora-app] .soram-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

html body [data-sora-app] .soram-panel {
  position: absolute;
  z-index: 1;
  inset: 0;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(12px, 0, 0) scale(.994);
  transition: opacity .2s ease, transform .42s var(--soram-ease), visibility 0s .42s;
}

html body [data-sora-app] .soram-panel.soram-is-active {
  z-index: 3;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: none;
  transition-delay: 0s;
}

html body [data-sora-app] .soram-scroll {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

html body [data-sora-app] .soram-scroll::-webkit-scrollbar { display: none; }

/* Create */
html body [data-sora-app] .soram-create-form {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
}

html body [data-sora-app] .soram-create-scroll {
  flex: 1 1 auto;
  padding: var(--soram-safe-top) 16px 22px;
}

html body [data-sora-app] .soram-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 45px;
  margin-bottom: 12px;
}

html body [data-sora-app] .soram-wordmark {
  display: flex;
  gap: 6px;
  align-items: baseline;
  color: var(--soram-white);
  font-style: italic;
  letter-spacing: -.075em;
}

html body [data-sora-app] .soram-wordmark b {
  color: var(--soram-lime) !important;
  font-size: 29px;
  font-weight: 850;
  line-height: .9;
  transform: skewX(-7deg);
}

html body [data-sora-app] .soram-wordmark i {
  color: inherit;
  font-size: 14px;
  font-style: italic;
  font-weight: 720;
  line-height: 1;
}

html body [data-sora-app] .soram-pro-chip {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 35px;
  padding: 0 12px;
  color: var(--soram-white);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  background: rgba(255, 255, 255, .045);
  font-size: 10px;
  font-weight: 650;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

html body [data-sora-app] .soram-pro-chip svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--soram-lime);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

html body [data-sora-app] .soram-pro-chip:active { transform: scale(.97); }

html body [data-sora-app] .soram-create-heading { display: grid; gap: 6px; margin-bottom: 16px; }
html body [data-sora-app] .soram-create-heading > span,
html body [data-sora-app] .soram-page-head > div > span,
html body [data-sora-app] .soram-library-head > div > span {
  color: var(--soram-lime);
  font-size: 8px;
  font-weight: 720;
  letter-spacing: .17em;
}

html body [data-sora-app] .soram-create-heading h2 {
  max-width: 330px;
  font-size: clamp(29px, 8.8cqw, 35px);
  font-weight: 720;
  letter-spacing: -.055em !important;
  line-height: .96;
  text-wrap: balance;
}

html body [data-sora-app] .soram-create-heading h2 em {
  color: var(--soram-lime);
  font-style: italic;
  font-weight: 540;
}

html body [data-sora-app] .soram-create-heading p {
  max-width: 330px;
  color: var(--soram-muted) !important;
  font-size: 11px;
  line-height: 1.45;
  text-wrap: pretty;
}

html body [data-sora-app] .soram-prompt-block { position: relative; margin-bottom: 17px; }

html body [data-sora-app] .soram-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}

html body [data-sora-app] .soram-field-head label {
  color: var(--soram-white);
  font-size: 12px;
  font-weight: 650;
}

html body [data-sora-app] .soram-field-head output {
  color: var(--soram-soft);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

html body [data-sora-app] .soram-prompt-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--soram-line);
  border-radius: 13px;
  background: var(--soram-panel);
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
  transition: border-color .22s ease, box-shadow .22s ease;
}

html body [data-sora-app] .soram-prompt-shell:focus-within {
  border-color: rgba(192, 237, 65, .62);
  box-shadow: inset 0 1px rgba(255, 255, 255, .035), 0 0 0 3px rgba(192, 237, 65, .075);
}

html body [data-sora-app] .soram-prompt-shell textarea {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 112px;
  resize: none;
  padding: 13px 14px 28px;
  color: var(--soram-white);
  caret-color: var(--soram-lime);
  background: transparent;
  font-size: 12px;
  line-height: 1.48;
}

html body [data-sora-app] .soram-prompt-shell textarea::placeholder { color: #727275; opacity: 1; }

html body [data-sora-app] .soram-prompt-glow {
  position: absolute;
  right: -40px;
  bottom: -50px;
  width: 120px;
  height: 90px;
  border-radius: 50%;
  background: var(--soram-lime);
  opacity: .055;
  filter: blur(18px);
  pointer-events: none;
}

html body [data-sora-app] .soram-surprise {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  float: right;
  min-height: 35px;
  margin-top: 8px !important;
  padding: 0 13px;
  color: var(--soram-white);
  border: 1px solid var(--soram-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .025);
  font-size: 10px;
  font-weight: 610;
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
}

html body [data-sora-app] .soram-surprise span { color: var(--soram-lime); font-size: 15px; }
html body [data-sora-app] .soram-surprise:active { transform: scale(.97); }

html body [data-sora-app] .soram-options { min-width: 0; padding: 0; border: 0; }
html body [data-sora-app] .soram-options legend { width: 100%; padding: 0; }
html body [data-sora-app] .soram-options legend > span { font-size: 12px; font-weight: 650; }
html body [data-sora-app] .soram-options legend > small { float: right; color: var(--soram-soft); font-size: 9px; }
html body [data-sora-app] .soram-options--ratio { clear: both; padding-top: 5px; margin-bottom: 16px; }

html body [data-sora-app] .soram-segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 8px;
}

html body [data-sora-app] .soram-segmented button {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 0 8px;
  color: var(--soram-muted);
  border: 1px solid var(--soram-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .018);
  font-size: 10px;
  font-weight: 640;
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}

html body [data-sora-app] .soram-segmented button.soram-is-selected {
  color: var(--soram-lime-ink);
  border-color: var(--soram-lime);
  background: var(--soram-lime);
}

html body [data-sora-app] .soram-segmented button:active { transform: scale(.97); }

html body [data-sora-app] .soram-ratio-icon {
  position: relative;
  display: block;
  width: 15px;
  height: 15px;
  border: 1.5px solid currentColor;
  border-radius: 4px;
}

html body [data-sora-app] .soram-ratio-icon::before,
html body [data-sora-app] .soram-ratio-icon::after {
  position: absolute;
  width: 4px;
  height: 4px;
  content: "";
  border-color: currentColor;
}

html body [data-sora-app] .soram-ratio-icon::before { top: -3px; left: -3px; border-top: 1.5px solid; border-left: 1.5px solid; }
html body [data-sora-app] .soram-ratio-icon::after { right: -3px; bottom: -3px; border-right: 1.5px solid; border-bottom: 1.5px solid; }
html body [data-sora-app] .soram-ratio-icon--wide { width: 18px; height: 11px; }
html body [data-sora-app] .soram-ratio-icon--tall { width: 10px; height: 17px; }
html body [data-sora-app] .soram-ratio-icon--square { width: 15px; height: 15px; }

html body [data-sora-app] .soram-compact-options {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(94px, .72fr);
  gap: 12px;
  align-items: start;
}

html body [data-sora-app] .soram-style-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

html body [data-sora-app] .soram-style-grid button {
  display: grid;
  min-height: 62px;
  align-content: center;
  gap: 2px;
  padding: 7px 5px;
  color: var(--soram-muted);
  border: 1px solid var(--soram-line);
  border-radius: 12px;
  background: var(--soram-panel-2);
  text-align: left;
  transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease;
}

html body [data-sora-app] .soram-style-grid button i {
  display: block;
  width: 17px;
  height: 3px;
  margin-bottom: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, #ff6946, #bd77ff);
}

html body [data-sora-app] .soram-style-grid button:nth-child(2) i { background: linear-gradient(90deg, #f4f4f0, #616164); }
html body [data-sora-app] .soram-style-grid button:nth-child(3) i { background: linear-gradient(90deg, #85d8ee, #c0ed41); }
html body [data-sora-app] .soram-style-grid button span { font-size: 9px; font-weight: 680; }
html body [data-sora-app] .soram-style-grid button small { color: var(--soram-soft); font-size: 7px; }
html body [data-sora-app] .soram-style-grid button.soram-is-selected { color: var(--soram-white); border-color: rgba(192, 237, 65, .68); background: #34382b; }
html body [data-sora-app] .soram-style-grid button:active { transform: scale(.97); }

html body [data-sora-app] .soram-duration-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-top: 8px;
  padding: 4px;
  border: 1px solid var(--soram-line);
  border-radius: 12px;
  background: var(--soram-panel-2);
}

html body [data-sora-app] .soram-duration-row button {
  min-height: 34px;
  color: var(--soram-soft);
  border-radius: 8px;
  font-size: 9px;
  font-weight: 660;
}

html body [data-sora-app] .soram-duration-row button.soram-is-selected { color: var(--soram-lime-ink); background: var(--soram-lime); }

html body [data-sora-app] .soram-create-footer {
  position: relative;
  z-index: 7;
  flex: 0 0 auto;
  padding: 10px 16px 0;
  border-top: 1px solid rgba(255, 255, 255, .055);
  background: linear-gradient(180deg, rgba(35, 35, 35, .94), var(--soram-bg) 30%);
}

html body [data-sora-app] .soram-generate-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 49px;
  padding: 0 18px;
  color: var(--soram-lime-ink);
  border-radius: 999px;
  background: var(--soram-lime);
  box-shadow: 0 13px 28px rgba(151, 193, 38, .13);
  font-size: 13px;
  font-weight: 720;
  transition: opacity .2s ease, transform .2s ease, filter .2s ease;
}

html body [data-sora-app] .soram-generate-button i { font-size: 18px; font-style: normal; }
html body [data-sora-app] .soram-generate-button:disabled { opacity: .36; filter: saturate(.55); }
html body [data-sora-app] .soram-generate-button:not(:disabled):active { transform: scale(.985); }

html body [data-sora-app] .soram-tabbar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 57px;
}

html body [data-sora-app] .soram-tabbar button {
  display: grid;
  min-height: 52px;
  align-content: center;
  gap: 2px;
  justify-items: center;
  color: #79797d;
}

html body [data-sora-app] .soram-tabbar button.soram-is-active { color: var(--soram-white); }
html body [data-sora-app] .soram-tabbar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
html body [data-sora-app] .soram-tabbar small { font-size: 8px; font-weight: 600; }

/* Generating */
html body [data-sora-app] .soram-panel--generating { background: #202020; }

html body [data-sora-app] .soram-close-control,
html body [data-sora-app] .soram-back-control,
html body [data-sora-app] .soram-icon-control {
  display: grid;
  width: 44px;
  height: 44px;
  min-height: 44px;
  place-items: center;
  color: var(--soram-white);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 50%;
  background: rgba(255, 255, 255, .035);
  transition: background .2s ease, transform .2s ease;
}

html body [data-sora-app] :is(.soram-close-control, .soram-back-control, .soram-icon-control) svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
html body [data-sora-app] :is(.soram-close-control, .soram-back-control, .soram-icon-control):active { transform: scale(.94); }

html body [data-sora-app] .soram-close-control {
  position: absolute;
  top: calc(var(--soram-safe-top) + 3px);
  right: 14px;
  z-index: 7;
  background: rgba(20, 20, 20, .38);
  backdrop-filter: blur(12px);
}

html body [data-sora-app] .soram-generation-visual {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

html body [data-sora-app] .soram-generation-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  animation: soramGeneratingDrift 5s ease-in-out infinite alternate;
}

html body [data-sora-app] .soram-generation-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17, 17, 17, .18), rgba(20, 20, 20, .7) 58%, #202020 86%),
    linear-gradient(115deg, rgba(190, 73, 255, .2), transparent 42%, rgba(192, 237, 65, .08));
}

html body [data-sora-app] .soram-generation-scan {
  position: absolute;
  top: 10%;
  right: 8%;
  left: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--soram-lime), transparent);
  box-shadow: 0 0 16px var(--soram-lime);
  opacity: .75;
  animation: soramScan 1.45s ease-in-out infinite;
}

html body [data-sora-app] .soram-generation-orbit {
  position: absolute;
  top: 25%;
  left: 50%;
  width: 154px;
  height: 154px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: soramOrbit 5s linear infinite;
}

html body [data-sora-app] .soram-generation-orbit::before,
html body [data-sora-app] .soram-generation-orbit::after {
  position: absolute;
  inset: 15px;
  content: "";
  border: 1px solid rgba(192, 237, 65, .34);
  border-radius: 43% 57% 52% 48%;
}

html body [data-sora-app] .soram-generation-orbit::after { inset: 35px; border-color: rgba(255, 255, 255, .18); }
html body [data-sora-app] .soram-generation-orbit i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--soram-lime); box-shadow: 0 0 13px var(--soram-lime); }
html body [data-sora-app] .soram-generation-orbit i:nth-child(1) { top: 12px; left: 44px; }
html body [data-sora-app] .soram-generation-orbit i:nth-child(2) { right: 10px; bottom: 45px; width: 4px; height: 4px; }
html body [data-sora-app] .soram-generation-orbit i:nth-child(3) { bottom: 7px; left: 56px; width: 3px; height: 3px; background: #fff; }

html body [data-sora-app] .soram-generation-copy {
  position: absolute;
  right: 19px;
  bottom: calc(var(--soram-safe-bottom) + 28px);
  left: 19px;
  z-index: 4;
  display: grid;
  gap: 10px;
}

html body [data-sora-app] .soram-generation-copy > span { color: var(--soram-lime); font-size: 8px; font-weight: 720; letter-spacing: .17em; }

html body [data-sora-app] .soram-generation-copy h2 {
  font-size: clamp(34px, 10cqw, 42px);
  font-weight: 720;
  letter-spacing: -.055em !important;
  line-height: .98;
}

html body [data-sora-app] .soram-generation-copy h2 em { color: var(--soram-lime); font-style: italic; font-weight: 520; }

html body [data-sora-app] .soram-progress-row { display: grid; grid-template-columns: 1fr 38px; gap: 12px; align-items: center; margin-top: 8px; }

html body [data-sora-app] .soram-progress-track { height: 3px; overflow: hidden; border-radius: 4px; background: rgba(255, 255, 255, .16); }
html body [data-sora-app] .soram-progress-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--soram-lime); box-shadow: 0 0 13px rgba(192, 237, 65, .62); transition: width .08s linear; }
html body [data-sora-app] .soram-progress-row output { color: var(--soram-white); font-size: 11px; font-variant-numeric: tabular-nums; text-align: right; }
html body [data-sora-app] .soram-generation-copy > p { color: var(--soram-white) !important; font-size: 11px; }
html body [data-sora-app] .soram-generation-copy > small { max-width: 300px; color: rgba(255, 255, 255, .48); font-size: 8px; line-height: 1.45; }

/* Result */
html body [data-sora-app] .soram-panel--result {
  display: flex;
  flex-direction: column;
  background: #232323;
}

html body [data-sora-app] .soram-page-head {
  position: relative;
  z-index: 7;
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 10px;
  align-items: center;
  min-height: calc(var(--soram-safe-top) + 61px);
  padding: var(--soram-safe-top) 14px 10px;
}

html body [data-sora-app] .soram-page-head > div { display: grid; gap: 2px; text-align: center; }
html body [data-sora-app] .soram-page-head h2 { font-size: 17px; font-weight: 680; letter-spacing: -.03em !important; }

html body [data-sora-app] .soram-result-stage {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 4px 16px 8px;
}

html body [data-sora-app] .soram-result-media {
  position: relative;
  width: min(72%, 270px);
  max-height: 100%;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  border-radius: 15px;
  background: #343434;
  box-shadow: 0 24px 44px rgba(0, 0, 0, .24), inset 0 0 0 1px rgba(255, 255, 255, .08);
  transition: width .46s var(--soram-ease), aspect-ratio .46s var(--soram-ease);
}

html body [data-sora-app][data-soram-aspect="16:9"] .soram-result-media { width: min(100%, 345px); aspect-ratio: 16 / 9; }
html body [data-sora-app][data-soram-aspect="1:1"] .soram-result-media { width: min(86%, 320px); aspect-ratio: 1 / 1; }

html body [data-sora-app] .soram-result-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.001);
  will-change: transform;
}

html body [data-sora-app] .soram-result-media.soram-is-playing > img { animation: soramVideoDrift 8s ease-in-out infinite alternate; }

html body [data-sora-app] .soram-result-grade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(18, 16, 15, .48));
  pointer-events: none;
}

html body [data-sora-app] .soram-result-grade::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -36%;
  width: 24%;
  content: "";
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(244,247,241,.15), transparent);
  transform: skewX(-12deg);
}

html body [data-sora-app] .soram-result-media.soram-is-playing .soram-result-grade::before {
  opacity: 1;
  animation: soramPlaybackSweep 2.7s linear infinite;
}

html body [data-sora-app] .soram-play-control {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 55px;
  height: 55px;
  min-height: 55px;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 50%;
  background: rgba(25, 22, 22, .34);
  box-shadow: inset 0 1px rgba(255, 255, 255, .18), 0 12px 25px rgba(0, 0, 0, .18);
  transform: translate(-50%, -50%);
  transition: transform .22s ease, opacity .22s ease;
  backdrop-filter: blur(10px);
}

html body [data-sora-app] .soram-play-control svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; }
html body [data-sora-app] .soram-play-control .soram-play-icon { transform: translateX(1px); fill: rgba(255, 255, 255, .18); }
html body [data-sora-app] .soram-play-control .soram-pause-icon { display: none; }
html body [data-sora-app] .soram-result-media.soram-is-playing .soram-play-control { opacity: .78; }
html body [data-sora-app] .soram-result-media.soram-is-playing .soram-play-control .soram-play-icon { display: none; }
html body [data-sora-app] .soram-result-media.soram-is-playing .soram-play-control .soram-pause-icon { display: block; }
html body [data-sora-app] .soram-play-control:active { transform: translate(-50%, -50%) scale(.92); }

html body [data-sora-app] .soram-player-bar {
  position: absolute;
  right: 14px;
  bottom: 12px;
  left: 14px;
  display: grid;
  gap: 7px;
}

html body [data-sora-app] .soram-player-bar input[type="range"] {
  width: 100%;
  height: 14px;
  cursor: pointer;
  background: linear-gradient(90deg, var(--soram-lime) 0 var(--soram-playback, 0%), rgba(255, 255, 255, .42) var(--soram-playback, 0%) 100%) center / 100% 2px no-repeat;
}

html body [data-sora-app] .soram-player-bar input[type="range"]::-webkit-slider-thumb {
  width: 10px;
  height: 10px;
  border: 2px solid var(--soram-lime);
  border-radius: 50%;
  background: #262625;
  box-shadow: 0 0 0 2px rgba(192, 237, 65, .14);
  appearance: none;
  -webkit-appearance: none;
}

html body [data-sora-app] .soram-player-bar input[type="range"]::-moz-range-thumb {
  width: 7px;
  height: 7px;
  border: 2px solid var(--soram-lime);
  border-radius: 50%;
  background: #262625;
}

html body [data-sora-app] .soram-player-bar > div { display: flex; gap: 4px; align-items: center; color: rgba(255, 255, 255, .82); font-size: 8px; font-variant-numeric: tabular-nums; }
html body [data-sora-app] .soram-player-bar > div b { margin-left: auto; color: var(--soram-lime); font-size: 8px; font-weight: 700; }

html body [data-sora-app] .soram-result-caption { display: flex; width: min(100%, 345px); gap: 8px; align-items: center; justify-content: center; overflow: hidden; }
html body [data-sora-app] .soram-result-caption span { flex: 0 0 auto; color: var(--soram-lime); font-size: 7px; font-weight: 730; letter-spacing: .13em; }
html body [data-sora-app] .soram-result-caption strong { overflow: hidden; color: var(--soram-muted) !important; font-size: 9px; font-weight: 520; text-overflow: ellipsis; white-space: nowrap; }

html body [data-sora-app] .soram-result-actions {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 5px 10px 2px;
}

html body [data-sora-app] .soram-result-actions button {
  display: grid;
  min-height: 71px;
  align-content: center;
  gap: 6px;
  justify-items: center;
  color: var(--soram-white);
}

html body [data-sora-app] .soram-result-actions button > span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .055);
  border-radius: 50%;
  background: rgba(255, 255, 255, .04);
  transition: background .2s ease, transform .2s ease;
}

html body [data-sora-app] .soram-result-actions button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.75; }
html body [data-sora-app] .soram-result-actions button small { font-size: 8px; font-weight: 560; }
html body [data-sora-app] .soram-result-actions button:active > span { transform: scale(.92); }
html body [data-sora-app] .soram-result-actions .soram-save-action > span { color: var(--soram-lime-ink); border-color: rgba(192, 237, 65, .34); background: var(--soram-lime); }
html body [data-sora-app] .soram-result-actions .soram-save-action.soram-is-saved > span { color: var(--soram-lime); background: rgba(192, 237, 65, .09); }

html body [data-sora-app] .soram-simulation-note {
  flex: 0 0 auto;
  padding: 3px 16px calc(var(--soram-safe-bottom) + 3px);
  color: #68686b !important;
  font-size: 7px;
  line-height: 1.35;
  text-align: center;
}

/* Library */
html body [data-sora-app] .soram-panel--library { background: #232323; }

html body [data-sora-app] .soram-library-scroll { padding: var(--soram-safe-top) 12px calc(var(--soram-safe-bottom) + 76px); }

html body [data-sora-app] .soram-library-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 4px 12px;
}

html body [data-sora-app] .soram-library-head > div { display: grid; gap: 3px; }
html body [data-sora-app] .soram-library-head h2 { font-size: 31px; font-weight: 720; letter-spacing: -.05em !important; line-height: 1; }

html body [data-sora-app] .soram-new-control {
  display: flex;
  gap: 7px;
  align-items: center;
  min-height: 39px;
  padding: 0 12px;
  color: var(--soram-lime-ink);
  border-radius: 999px;
  background: var(--soram-lime);
}

html body [data-sora-app] .soram-new-control > span { font-size: 18px; line-height: 1; }
html body [data-sora-app] .soram-new-control small { font-size: 9px; font-weight: 700; }

html body [data-sora-app] .soram-filter-rail {
  display: flex;
  gap: 7px;
  margin: 0 -12px 10px;
  padding: 0 16px 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

html body [data-sora-app] .soram-filter-rail::-webkit-scrollbar { display: none; }

html body [data-sora-app] .soram-filter-rail button {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
  align-items: center;
  min-height: 39px;
  padding: 0 15px;
  color: var(--soram-muted);
  border: 1px solid var(--soram-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .016);
  font-size: 9px;
  font-weight: 630;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}

html body [data-sora-app] .soram-filter-rail button.soram-is-selected { color: var(--soram-lime-ink); border-color: var(--soram-lime); background: var(--soram-lime); }
html body [data-sora-app] .soram-filter-rail .soram-ratio-icon { transform: scale(.72); }

html body [data-sora-app] .soram-library-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

html body [data-sora-app] .soram-library-column { display: grid; align-content: start; gap: 10px; min-width: 0; }

html body [data-sora-app] .soram-library-card {
  position: relative;
  display: block;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .055);
  border-radius: 13px;
  background: #353535;
  text-align: left;
  transform: translateZ(0);
  transition: transform .24s var(--soram-ease), border-color .24s ease;
}

html body [data-sora-app] .soram-library-card--generated { height: 258px; border-color: rgba(192, 237, 65, .5); }
html body [data-sora-app] .soram-library-card--portrait { height: 246px; }
html body [data-sora-app] .soram-library-card--landscape { height: 158px; }
html body [data-sora-app] .soram-library-card--square { height: 173px; }
html body [data-sora-app] .soram-library-card--mid { height: 205px; }

html body [data-sora-app] .soram-library-card img { width: 100%; height: 100%; object-fit: cover; }
html body [data-sora-app] .soram-library-card--portrait img { object-position: center; }
html body [data-sora-app] .soram-library-card::after { position: absolute; inset: 45% 0 0; content: ""; background: linear-gradient(180deg, transparent, rgba(15, 15, 15, .48)); pointer-events: none; }

html body [data-sora-app] .soram-card-play {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  background: rgba(20, 20, 20, .3);
  font-size: 11px;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(7px);
}

html body [data-sora-app] .soram-library-card small,
html body [data-sora-app] .soram-library-card > i {
  position: absolute;
  z-index: 3;
  bottom: 9px;
  padding: 4px 6px;
  color: #fff;
  border-radius: 5px;
  background: rgba(20, 20, 20, .38);
  font-size: 7px;
  font-style: normal;
  font-weight: 610;
  backdrop-filter: blur(7px);
}

html body [data-sora-app] .soram-library-card small { left: 9px; }
html body [data-sora-app] .soram-library-card > i { right: 9px; color: var(--soram-lime); }
html body [data-sora-app] .soram-library-card:hover,
html body [data-sora-app] .soram-library-card:focus-visible { border-color: rgba(192, 237, 65, .5); transform: translateY(-2px); }
html body [data-sora-app] .soram-library-card:active { transform: scale(.98); }

html body [data-sora-app] .soram-library-empty { padding: 56px 24px; color: var(--soram-muted) !important; font-size: 11px; text-align: center; }

html body [data-sora-app] .soram-tabbar--library {
  position: absolute;
  z-index: 8;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 3px 16px var(--soram-safe-bottom);
  border-top: 1px solid rgba(255, 255, 255, .055);
  background: rgba(35, 35, 35, .94);
  backdrop-filter: blur(18px);
}

/* Toast */
html body [data-sora-app] .soram-toast {
  position: absolute;
  z-index: 30;
  right: 14px;
  bottom: calc(var(--soram-safe-bottom) + 16px);
  left: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 56px;
  padding: 9px 12px;
  color: var(--soram-white);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 17px;
  background: rgba(37, 37, 37, .88);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity .22s ease, transform .3s var(--soram-ease);
  backdrop-filter: blur(18px) saturate(1.2);
}

html body [data-sora-app] .soram-toast.soram-is-visible { opacity: 1; transform: none; }

html body [data-sora-app] .soram-toast > span {
  display: grid;
  flex: 0 0 37px;
  width: 37px;
  height: 37px;
  place-items: center;
  color: var(--soram-lime-ink);
  border-radius: 12px;
  background: var(--soram-lime);
  font-size: 13px;
  font-style: italic;
  font-weight: 850;
}

html body [data-sora-app] .soram-toast p { display: grid; gap: 2px; }
html body [data-sora-app] .soram-toast strong { color: var(--soram-white) !important; font-size: 10px; font-weight: 690; }
html body [data-sora-app] .soram-toast small { color: var(--soram-muted); font-size: 8px; line-height: 1.35; }

/* Standalone case demo */
html body [data-sora-demo] {
  position: relative;
  isolation: isolate;
  width: 100%;
  overflow: hidden;
  padding: clamp(82px, 10vw, 154px) 24px clamp(94px, 11vw, 172px);
  color: #f4f4ef;
  background:
    radial-gradient(circle at 82% 18%, rgba(192, 237, 65, .12), transparent 25rem),
    radial-gradient(circle at 13% 78%, rgba(118, 83, 255, .13), transparent 34rem),
    #111311;
}

html body [data-sora-demo]::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background-image: linear-gradient(rgba(255, 255, 255, .032) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .032) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
}

html body [data-sora-demo] .soram-demo__shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  gap: clamp(56px, 9vw, 148px);
  align-items: center;
  width: min(1180px, 100%);
  margin: 0 auto;
}

html body [data-sora-demo] .soram-demo__intro { display: grid; justify-items: start; }

html body [data-sora-demo] .soram-demo__brand { display: flex; gap: 11px; align-items: center; margin-bottom: clamp(48px, 7vw, 88px); }

html body [data-sora-demo] .soram-demo__brand-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: #1b202b;
  border-radius: 15px 15px 15px 5px;
  background: var(--soram-lime);
  box-shadow: 0 16px 34px rgba(146, 188, 34, .18);
  font-size: 22px;
  font-style: italic;
  font-weight: 850;
  letter-spacing: -.08em;
  transform: rotate(-5deg);
}

html body [data-sora-demo] .soram-demo__brand > span:last-child { display: grid; gap: 2px; }
html body [data-sora-demo] .soram-demo__brand strong { color: #f4f4ef !important; font-size: 18px; font-style: italic; font-weight: 760; letter-spacing: -.05em; }
html body [data-sora-demo] .soram-demo__brand small { color: rgba(255, 255, 255, .48); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }

html body [data-sora-demo] .soram-demo__kicker { margin: 0 0 17px !important; color: var(--soram-lime) !important; font-size: 10px; font-weight: 720; letter-spacing: .18em; }

html body [data-sora-demo] .soram-demo__intro h2 {
  max-width: 720px;
  margin: 0 !important;
  color: #f4f4ef !important;
  font-size: clamp(46px, 5.4vw, 78px);
  font-weight: 650;
  letter-spacing: -.062em !important;
  line-height: .94;
  text-wrap: balance;
}

html body [data-sora-demo] .soram-demo__lead {
  max-width: 570px;
  margin: 26px 0 0 !important;
  color: rgba(255, 255, 255, .58) !important;
  font-size: clamp(15px, 1.5vw, 19px);
  line-height: 1.55;
  text-wrap: pretty;
}

html body [data-sora-demo] .soram-demo__flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  width: min(600px, 100%);
  margin: clamp(38px, 5vw, 62px) 0 0 !important;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, .13);
  list-style: none;
}

html body [data-sora-demo] .soram-demo__flow li { display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: start; min-height: 83px; padding: 16px 14px 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .13); }
html body [data-sora-demo] .soram-demo__flow li:nth-child(odd) { border-right: 1px solid rgba(255, 255, 255, .13); }
html body [data-sora-demo] .soram-demo__flow li:nth-child(even) { padding-left: 16px; }
html body [data-sora-demo] .soram-demo__flow li > span { color: var(--soram-lime); font-size: 10px; font-variant-numeric: tabular-nums; font-weight: 720; letter-spacing: .1em; }
html body [data-sora-demo] .soram-demo__flow p { display: grid; gap: 4px; margin: 0 !important; }
html body [data-sora-demo] .soram-demo__flow strong { color: #fff !important; font-size: 13px; font-weight: 650; }
html body [data-sora-demo] .soram-demo__flow small { color: rgba(255, 255, 255, .46); font-size: 9px; line-height: 1.35; }

html body [data-sora-demo] .soram-demo__note { display: flex; gap: 9px; align-items: flex-start; max-width: 560px; margin: 22px 0 0 !important; color: rgba(255, 255, 255, .4) !important; font-size: 9px; line-height: 1.5; }
html body [data-sora-demo] .soram-demo__note span { color: var(--soram-lime); font-size: 14px; }

html body [data-sora-demo] .soram-demo__stage { position: relative; display: grid; justify-items: center; }

html body [data-sora-demo] .soram-demo__halo {
  position: absolute;
  z-index: -1;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(192, 237, 65, .16);
  border-radius: 42% 58% 67% 33% / 52% 38% 62% 48%;
  pointer-events: none;
}

html body [data-sora-demo] .soram-demo__halo--one { top: 9%; left: -22%; transform: rotate(-14deg); animation: soramDemoOrbit 17s linear infinite; }
html body [data-sora-demo] .soram-demo__halo--two { right: -25%; bottom: 6%; width: 310px; height: 310px; border-color: rgba(145, 112, 255, .16); transform: rotate(22deg); animation: soramDemoOrbitTwo 21s linear infinite; }

html body [data-sora-demo] .soram-phone {
  position: relative;
  width: min(393px, 100%);
  aspect-ratio: 393 / 852;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 62px;
  background: linear-gradient(145deg, #59606a, #0b0d10 18%, #030405 72%, #777e87);
  box-shadow: inset 0 0 0 2px #0a0c0f, inset 0 0 0 4px rgba(255, 255, 255, .16), 0 42px 82px rgba(0, 0, 0, .44), 0 0 85px rgba(192, 237, 65, .06);
}

html body [data-sora-demo] .soram-phone__screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 52px; background: var(--soram-bg); }
html body [data-sora-demo] .soram-phone__viewport { position: absolute; inset: 0; overflow: hidden; }

html body [data-sora-demo] .soram-phone__island {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 40;
  width: 122px;
  height: 31px;
  border-radius: 999px;
  background: #050607;
  box-shadow: inset 0 -1px rgba(255, 255, 255, .08);
  transform: translateX(-50%);
  pointer-events: none;
}

html body [data-sora-demo] .soram-phone__status {
  position: absolute;
  top: 18px;
  right: 28px;
  left: 28px;
  z-index: 41;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, .92);
  font-size: 11px;
  font-weight: 700;
  pointer-events: none;
}

html body [data-sora-demo] .soram-phone__home { position: absolute; z-index: 42; bottom: 7px; left: 50%; width: 138px; height: 5px; border-radius: 6px; background: rgba(255, 255, 255, .34); transform: translateX(-50%); pointer-events: none; }
html body [data-sora-demo] .soram-demo__status { width: min(360px, 100%); margin: 18px 0 0 !important; color: rgba(255, 255, 255, .43) !important; font-size: 9px; line-height: 1.45; text-align: center; }

/* Route authority: preserve the phone UI against late global form/button passes. */
html body.brawus-v2 [data-sora-app] .soram-prompt-shell textarea,
html body.brawus-v2 [data-sora-app] .soram-prompt-shell textarea:focus {
  width: 100% !important;
  min-height: 0 !important;
  height: 112px !important;
  padding: 13px 14px 28px !important;
  color: var(--soram-white) !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  caret-color: var(--soram-lime) !important;
  resize: none !important;
}

html body.brawus-v2 [data-sora-app] .soram-prompt-shell textarea::placeholder {
  color: #727275 !important;
  opacity: 1 !important;
}

html body.brawus-v2 [data-sora-app] .soram-player-bar input[type="range"],
html body.brawus-v2 [data-sora-app] .soram-player-bar input[type="range"]:focus {
  min-height: 0 !important;
  height: 14px !important;
  padding: 0 !important;
  color: inherit !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: linear-gradient(90deg, var(--soram-lime) 0 var(--soram-playback, 0%), rgba(255, 255, 255, .42) var(--soram-playback, 0%) 100%) center / 100% 2px no-repeat !important;
  box-shadow: none !important;
}

html body.brawus-v2 [data-sora-app] button.soram-generate-button {
  min-height: 49px !important;
  padding: 0 18px !important;
  color: var(--soram-lime-ink) !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--soram-lime) !important;
  box-shadow: 0 13px 28px rgba(151, 193, 38, .13) !important;
}

@keyframes soramGeneratingDrift { from { transform: scale(1.1) translate3d(-1.5%, 0, 0); } to { transform: scale(1.18) translate3d(1.5%, -1.5%, 0); } }
@keyframes soramScan { 0% { top: 12%; opacity: 0; } 12%, 78% { opacity: .8; } 100% { top: 78%; opacity: 0; } }
@keyframes soramOrbit { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes soramVideoDrift { from { transform: scale(1.015) translate3d(-.8%, 0, 0); } to { transform: scale(1.09) translate3d(1.2%, -1.3%, 0); } }
@keyframes soramDemoOrbit { to { transform: rotate(346deg); } }
@keyframes soramDemoOrbitTwo { to { transform: rotate(382deg); } }

@container soram-phone (max-height: 680px) {
  html body [data-sora-app] .soram-create-heading p { display: none; }
  html body [data-sora-app] .soram-create-heading { margin-bottom: 10px; }
  html body [data-sora-app] .soram-prompt-shell textarea { height: 92px !important; }
  html body.brawus-v2 [data-sora-app] .soram-prompt-shell textarea { height: 92px !important; }
  html body [data-sora-app] .soram-prompt-block { margin-bottom: 11px; }
  html body [data-sora-app] .soram-options--ratio { margin-bottom: 11px; }
  html body [data-sora-app] .soram-style-grid button { min-height: 54px; }
  html body [data-sora-app] .soram-result-media { width: min(64%, 236px); }
  html body [data-sora-app][data-soram-aspect="16:9"] .soram-result-media { width: min(92%, 330px); }
  html body [data-sora-app][data-soram-aspect="1:1"] .soram-result-media { width: min(75%, 280px); }
}

@media (max-width: 920px) {
  html body [data-sora-demo] { padding: 76px 18px 104px; }
  html body [data-sora-demo] .soram-demo__shell { grid-template-columns: 1fr; gap: 70px; }
  html body [data-sora-demo] .soram-demo__intro { justify-items: center; text-align: center; }
  html body [data-sora-demo] .soram-demo__brand { margin-bottom: 46px; }
  html body [data-sora-demo] .soram-demo__lead,
  html body [data-sora-demo] .soram-demo__note { justify-content: center; }
  html body [data-sora-demo] .soram-demo__flow { text-align: left; }
}

@media (max-width: 520px) {
  html body [data-sora-demo] { padding: 64px 12px 84px; }
  html body [data-sora-demo] .soram-demo__intro h2 { font-size: clamp(39px, 12vw, 58px); }
  html body [data-sora-demo] .soram-demo__lead { font-size: 14px; }
  html body [data-sora-demo] .soram-demo__flow { grid-template-columns: 1fr; width: min(390px, 100%); }
  html body [data-sora-demo] .soram-demo__flow li:nth-child(odd) { border-right: 0; }
  html body [data-sora-demo] .soram-demo__flow li:nth-child(even) { padding-left: 0; }
  html body [data-sora-demo] .soram-phone { width: min(375px, calc(100vw - 24px)); border-radius: 56px; }
  html body [data-sora-demo] .soram-phone__screen { border-radius: 47px; }
}

@media (hover: hover) {
  html body [data-sora-app] :is(.soram-pro-chip, .soram-surprise):hover { color: var(--soram-lime); border-color: rgba(192, 237, 65, .42); }
  html body [data-sora-app] .soram-generate-button:not(:disabled):hover { filter: brightness(1.05); transform: translateY(-1px); }
  html body [data-sora-app] :is(.soram-close-control, .soram-back-control, .soram-icon-control):hover { background: rgba(255, 255, 255, .09); }
  html body [data-sora-app] .soram-result-actions button:hover > span { background: rgba(255, 255, 255, .09); }
}

@media (prefers-reduced-motion: reduce) {
  html body [data-sora-app] *,
  html body [data-sora-app] *::before,
  html body [data-sora-app] *::after,
  html body [data-sora-demo] .soram-demo__halo {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* 2026-08 premium product pass: host-proof contrast, restrained geometry and complete sheets. */
[data-sora-app],
[data-sora-demo] {
  --soram-bg: #111411;
  --soram-panel: #1a1e1a;
  --soram-panel-2: #202520;
  --soram-line: rgba(241, 246, 238, .14);
  --soram-white: #f4f7f1;
  --soram-muted: #adb5ac;
  --soram-soft: #7f877f;
  --soram-lime: #b8ef43;
  --soram-lime-ink: #152006;
}

html body [data-sora-app] {
  max-width: 100%;
  overflow: hidden;
  color: var(--soram-white) !important;
  background:
    radial-gradient(circle at 90% 4%, rgba(184, 239, 67, .09), transparent 29%),
    linear-gradient(180deg, #141714, var(--soram-bg) 38%);
}

html body [data-sora-app]::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: .13;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, #000, transparent 42%);
}

html body [data-sora-app] .soram-panel,
html body [data-sora-app] .soram-scroll,
html body [data-sora-app] .soram-create-form {
  width: 100%;
  max-width: 100%;
}

html body [data-sora-app] .soram-panel { transform: translate3d(0, 8px, 0) scale(.996); }
html body [data-sora-app] .soram-panel.soram-is-active { transform: none; }

html.brawus-v2-html body#body.brawus-v2 [data-sora-app] :is(.soram-create-heading h2, .soram-page-head h2, .soram-library-head h2, .soram-generation-copy h2, .soram-overlay-sheet h2),
html body [data-sora-app] :is(.soram-create-heading h2, .soram-page-head h2, .soram-library-head h2, .soram-generation-copy h2, .soram-overlay-sheet h2) {
  color: var(--soram-white) !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

html.brawus-v2-html body#body.brawus-v2 [data-sora-app] :is(.soram-create-heading h2, .soram-generation-copy h2) em,
html body [data-sora-app] :is(.soram-create-heading h2, .soram-generation-copy h2) em {
  color: var(--soram-lime) !important;
}

html body [data-sora-app] .soram-create-scroll { padding: var(--soram-safe-top) 18px 28px; }

html body [data-sora-app] .soram-brand-row {
  min-height: 50px;
  margin-bottom: 17px;
}

html body [data-sora-app] .soram-wordmark { gap: 7px; letter-spacing: -.055em; }
html body [data-sora-app] .soram-wordmark b { font-size: 31px; }
html body [data-sora-app] .soram-wordmark i { color: var(--soram-white) !important; font-size: 13px; letter-spacing: -.025em; }

html body [data-sora-app] .soram-pro-chip {
  min-height: 44px;
  padding: 0 13px;
  border-color: var(--soram-line);
  border-radius: 13px;
  background: rgba(244,247,241,.055);
  font-size: 11px;
}

html body [data-sora-app] .soram-create-heading { gap: 9px; margin-bottom: 22px; }
html body [data-sora-app] .soram-create-heading > span,
html body [data-sora-app] .soram-page-head > div > span,
html body [data-sora-app] .soram-library-head > div > span { font-size: 9px; letter-spacing: .18em; }

html body [data-sora-app] .soram-create-heading h2 {
  max-width: 100%;
  font-size: clamp(32px, 9.5cqw, 39px);
  font-weight: 740;
  line-height: .95;
  letter-spacing: -.062em !important;
}

html body [data-sora-app] .soram-create-heading p {
  max-width: 35ch;
  color: var(--soram-muted) !important;
  font-size: 12px;
  line-height: 1.48;
}

html body [data-sora-app] .soram-prompt-block { margin-bottom: 21px; }
html body [data-sora-app] .soram-field-head { margin-bottom: 9px; }
html body [data-sora-app] .soram-field-head label { font-size: 13px; }
html body [data-sora-app] .soram-field-head output { color: var(--soram-muted); font-size: 10px; }

html body [data-sora-app] .soram-prompt-shell {
  border-color: var(--soram-line);
  border-radius: 17px;
  background: rgba(30, 35, 30, .94);
  box-shadow: inset 0 1px rgba(255,255,255,.04), 0 16px 34px rgba(2,8,3,.12);
}

html body [data-sora-app] .soram-prompt-shell textarea,
html body.brawus-v2 [data-sora-app] .soram-prompt-shell textarea,
html body.brawus-v2 [data-sora-app] .soram-prompt-shell textarea:focus {
  height: 124px !important;
  padding: 16px 16px 30px !important;
  color: var(--soram-white) !important;
  font-size: 13px;
  line-height: 1.5;
}

html body [data-sora-app] .soram-surprise {
  min-height: 44px;
  margin-top: 9px !important;
  padding: 0 13px;
  border-color: var(--soram-line);
  border-radius: 12px;
  background: rgba(244,247,241,.045);
  font-size: 11px;
}

html body [data-sora-app] .soram-options legend > span { font-size: 13px; }
html body [data-sora-app] .soram-options legend > small { color: var(--soram-muted); font-size: 10px; }
html body [data-sora-app] .soram-options--ratio { margin-bottom: 22px; }
html body [data-sora-app] .soram-segmented { gap: 8px; margin-top: 10px; }

html body [data-sora-app] .soram-segmented button {
  min-height: 52px;
  border-color: var(--soram-line);
  border-radius: 14px;
  background: var(--soram-panel);
  color: var(--soram-muted);
  font-size: 11px;
}

html body [data-sora-app] .soram-segmented button.soram-is-selected {
  color: var(--soram-lime-ink);
  border-color: var(--soram-lime);
  background: var(--soram-lime);
  box-shadow: 0 9px 20px rgba(123,169,22,.13);
}

html body [data-sora-app] .soram-compact-options { grid-template-columns: minmax(0, 1fr); gap: 20px; }
html body [data-sora-app] .soram-style-grid { gap: 8px; margin-top: 10px; }

html body [data-sora-app] .soram-style-grid button {
  min-height: 72px;
  gap: 3px;
  padding: 10px;
  border-color: var(--soram-line);
  border-radius: 14px;
  background: var(--soram-panel);
}

html body [data-sora-app] .soram-style-grid button i { width: 25px; height: 4px; margin-bottom: 6px; }
html body [data-sora-app] .soram-style-grid button span { font-size: 10px; }
html body [data-sora-app] .soram-style-grid button small { color: var(--soram-muted); font-size: 8px; }
html body [data-sora-app] .soram-style-grid button.soram-is-selected { color: var(--soram-white); border-color: rgba(184,239,67,.72); background: #252d1d; }

html body [data-sora-app] .soram-duration-row {
  gap: 6px;
  margin-top: 10px;
  padding: 5px;
  border-color: var(--soram-line);
  border-radius: 14px;
  background: var(--soram-panel);
}

html body [data-sora-app] .soram-duration-row button { min-height: 44px; border-radius: 10px; color: var(--soram-muted); font-size: 11px; }

html body [data-sora-app] .soram-create-footer {
  padding: 12px 18px 0;
  background: rgba(17,20,17,.96);
  backdrop-filter: blur(18px);
}

html body [data-sora-app] .soram-generate-button,
html body.brawus-v2 [data-sora-app] button.soram-generate-button {
  min-height: 54px !important;
  padding: 0 18px !important;
  border-radius: 15px !important;
  font-size: 14px;
}

html body [data-sora-app] .soram-tabbar { min-height: 64px; }
html body [data-sora-app] .soram-tabbar button { min-height: 58px; gap: 4px; color: #7f877f; }
html body [data-sora-app] .soram-tabbar button.soram-is-active { color: var(--soram-lime); }
html body [data-sora-app] .soram-tabbar svg { width: 20px; height: 20px; }
html body [data-sora-app] .soram-tabbar small { font-size: 9px; }

html body [data-sora-app] :is(.soram-close-control, .soram-back-control, .soram-icon-control) {
  width: 48px;
  height: 44px;
  min-height: 44px;
  border-color: var(--soram-line);
  border-radius: 13px;
  background: rgba(244,247,241,.07);
}

html body [data-sora-app] .soram-generation-copy { right: 20px; bottom: calc(var(--soram-safe-bottom) + 34px); left: 20px; gap: 12px; }
html body [data-sora-app] .soram-generation-copy h2 { font-size: clamp(36px, 10.5cqw, 44px); }
html body [data-sora-app] .soram-generation-wash { background: linear-gradient(180deg, rgba(10,13,10,.14), rgba(10,13,10,.74) 60%, #111411 89%); }

html body [data-sora-app] .soram-page-head { grid-template-columns: 48px minmax(0,1fr) 48px; gap: 10px; padding-right: 16px; padding-left: 16px; }
html body [data-sora-app] .soram-page-head h2 { font-size: 19px; }
html body [data-sora-app] .soram-panel--result,
html body [data-sora-app] .soram-panel--library { background: var(--soram-bg); }

html body [data-sora-app] .soram-result-media { border-radius: 19px; box-shadow: 0 24px 52px rgba(1,8,2,.34), inset 0 0 0 1px rgba(255,255,255,.1); }
html body [data-sora-app] .soram-play-control { width: 58px; height: 58px; min-height: 58px; border-radius: 17px; background: rgba(17,20,17,.68); }
html body [data-sora-app] .soram-result-caption { min-height: 26px; }

html body [data-sora-app] .soram-result-actions { gap: 6px; padding: 7px 12px 3px; }
html body [data-sora-app] .soram-result-actions button { min-height: 76px; border-radius: 14px; background: rgba(244,247,241,.025); }
html body [data-sora-app] .soram-result-actions button > span { width: 48px; height: 46px; border-radius: 13px; background: rgba(244,247,241,.07); }
html body [data-sora-app] .soram-result-actions button small { font-size: 9px; }
html body [data-sora-app] .soram-result-actions .soram-save-action > span { border-radius: 13px; }
html body [data-sora-app] .soram-result-actions button.soram-is-feedback > span { color: var(--soram-lime); border-color: rgba(184,239,67,.35); background: rgba(184,239,67,.09); }

html body [data-sora-app] .soram-library-scroll { padding: var(--soram-safe-top) 14px calc(var(--soram-safe-bottom) + 82px); }
html body [data-sora-app] .soram-library-head { padding: 8px 2px 18px; }
html body [data-sora-app] .soram-library-head h2 { font-size: 37px; }
html body [data-sora-app] .soram-new-control { min-height: 46px; padding: 0 14px; border: 1px solid var(--soram-line); border-radius: 13px; background: rgba(244,247,241,.055); color: var(--soram-white); }
html body [data-sora-app] .soram-new-control small { font-size: 10px; }

html body [data-sora-app] .soram-filter-rail { gap: 8px; margin: 0 0 14px; padding: 0 0 4px; }
html body [data-sora-app] .soram-filter-rail button { min-height: 44px; padding: 0 14px; border-color: var(--soram-line); border-radius: 12px; background: var(--soram-panel); font-size: 10px; }
html body [data-sora-app] .soram-library-grid { gap: 10px; }
html body [data-sora-app] .soram-library-card { border-color: rgba(255,255,255,.09); border-radius: 18px; background: var(--soram-panel); }
html body [data-sora-app] .soram-library-card::after { inset: 35% 0 0; background: linear-gradient(180deg, transparent, rgba(8,11,8,.82)); }
html body [data-sora-app] .soram-card-play { width: 46px; height: 46px; border-radius: 15px; background: rgba(17,20,17,.62); }

html body [data-sora-app] .soram-card-title {
  position: absolute;
  z-index: 3;
  right: 10px;
  bottom: 34px;
  left: 10px;
  overflow: hidden;
  color: #fff !important;
  font-size: 10px;
  font-weight: 680;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html body [data-sora-app] .soram-library-card small,
html body [data-sora-app] .soram-library-card > i { bottom: 10px; color: rgba(255,255,255,.78); background: rgba(8,11,8,.58); font-size: 8px; }
html body [data-sora-app] .soram-library-card > i { color: var(--soram-lime); }
html body [data-sora-app] .soram-tabbar--library { padding-top: 5px; background: rgba(17,20,17,.94); }

html body [data-sora-app] .soram-toast { bottom: calc(var(--soram-safe-bottom) + 86px); border-radius: 15px; background: rgba(26,30,26,.96); }

html body [data-sora-app] .soram-overlay {
  position: absolute;
  z-index: 24;
  inset: 0;
  display: grid;
  align-items: end;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, visibility 0s .32s;
}

html body [data-sora-app] .soram-overlay.soram-is-open { visibility: visible; opacity: 1; pointer-events: auto; transition-delay: 0s; }
html body [data-sora-app] .soram-overlay-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; background: rgba(3,7,3,.7); backdrop-filter: blur(9px); }

html body [data-sora-app] .soram-overlay-sheet {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 18px;
  width: 100%;
  padding: 22px 18px calc(var(--soram-safe-bottom) + 22px);
  border: 1px solid rgba(255,255,255,.11);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  background: #1b201b;
  box-shadow: 0 -24px 70px rgba(0,0,0,.34);
  transform: translate3d(0, 24px, 0);
  transition: transform .38s var(--soram-ease);
}

html body [data-sora-app] .soram-overlay.soram-is-open .soram-overlay-sheet { transform: none; }
html body [data-sora-app] .soram-overlay-sheet header { display: grid; grid-template-columns: minmax(0,1fr) 44px; gap: 14px; align-items: start; }
html body [data-sora-app] .soram-overlay-sheet header > div { display: grid; gap: 6px; }
html body [data-sora-app] .soram-overlay-sheet header span { color: var(--soram-lime); font-size: 9px; font-weight: 720; letter-spacing: .16em; }
html body [data-sora-app] .soram-overlay-sheet h2 { max-width: 15ch; font-size: 25px; font-weight: 720; line-height: 1.02; letter-spacing: -.045em !important; text-wrap: balance; }
html body [data-sora-app] .soram-overlay-sheet header > button { width: 44px; height: 44px; border: 1px solid var(--soram-line); border-radius: 12px; background: rgba(255,255,255,.055); font-size: 22px; }

html body [data-sora-app] .soram-plan-options,
html body [data-sora-app] .soram-share-options { display: grid; gap: 9px; }
html body [data-sora-app] :is(.soram-plan-options, .soram-share-options) > button { display: grid; min-height: 70px; border: 1px solid var(--soram-line); border-radius: 15px; background: var(--soram-panel-2); text-align: left; }
html body [data-sora-app] .soram-plan-options > button { grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; }
html body [data-sora-app] .soram-plan-options > button > span { display: grid; gap: 3px; }
html body [data-sora-app] .soram-plan-options strong,
html body [data-sora-app] .soram-share-options strong { color: var(--soram-white) !important; font-size: 12px; font-weight: 680; }
html body [data-sora-app] .soram-plan-options small,
html body [data-sora-app] .soram-share-options small { color: var(--soram-muted); font-size: 9px; }
html body [data-sora-app] .soram-plan-options b { display: grid; width: 43px; height: 43px; place-items: center; border-radius: 11px; background: var(--soram-lime); color: var(--soram-lime-ink); font-size: 15px; }
html body [data-sora-app] .soram-plan-options > button.soram-is-selected { border-color: rgba(184,239,67,.72); background: #252d1d; box-shadow: inset 3px 0 var(--soram-lime); }
html body [data-sora-app] .soram-overlay-sheet > p { color: var(--soram-muted) !important; font-size: 9px; line-height: 1.5; }

html body [data-sora-app] .soram-share-options > button { grid-template-columns: 44px minmax(0,1fr); grid-template-rows: auto auto; column-gap: 11px; align-items: center; padding: 12px 14px; }
html body [data-sora-app] .soram-share-options > button > span { grid-row: 1 / 3; display: grid; width: 44px; height: 44px; place-items: center; border-radius: 12px; background: rgba(184,239,67,.1); color: var(--soram-lime); font-size: 17px; }

@container soram-phone (max-width: 340px) {
  html body [data-sora-app] .soram-create-scroll { padding-right: 14px; padding-left: 14px; }
  html body [data-sora-app] .soram-create-heading h2 { font-size: 31px; }
  html body [data-sora-app] .soram-create-heading p { font-size: 11px; }
  html body [data-sora-app] .soram-segmented button { gap: 5px; padding: 0 5px; font-size: 10px; }
  html body [data-sora-app] .soram-style-grid button { padding: 8px 6px; }
  html body [data-sora-app] .soram-library-scroll { padding-right: 10px; padding-left: 10px; }
  html body [data-sora-app] .soram-library-grid { gap: 8px; }
}

@container soram-phone (max-height: 680px) {
  html body [data-sora-app] .soram-prompt-shell textarea,
  html body.brawus-v2 [data-sora-app] .soram-prompt-shell textarea { height: 96px !important; }
  html body [data-sora-app] .soram-style-grid button { min-height: 64px; }
}

@keyframes soramPlaybackSweep { to { transform: translate3d(600%,0,0) skewX(-12deg); } }
