/* Studio presentation is scoped; the shared V1 composer and handlers are retained. */
body.studio-active {
  background: #101213;
  color: #f0f1ed;
}
body.studio-active #workspace {
  max-width: none;
  margin: 0 0 0 240px;
  padding: 0;
}
body.studio-active .notice {
  z-index: 120;
}
.studio-workspace {
  display: flex !important;
  flex-direction: column;
  width: 100%;
  max-width: none;
  height: auto;
  min-height: 100dvh;
  padding: 34px 32px 60px;
  margin: 0;
  border: 1px solid #242627;
  border-radius: 20px;
}
#studio-sidebar {
  position: fixed;
  inset: var(--header-h) auto 0 0;
  width: 240px;
  background: #111415;
  border-right: 1px solid #27292a;
  z-index: 30;
  display: flex;
  flex-direction: column;
  padding: 14px 12px;
  gap: 26px;
}
#studio-intro {
  order: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  text-align: center;
  padding: 14px 0 32px;
}
#studio-intro h1 {
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -1px;
  text-transform: uppercase;
  font-weight: 750;
  margin: 0;
  max-width: 820px;
  color: #e9ece7;
}
#studio-hero {
  height: 172px;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  max-width: 100%;
  gap: 0;
}
#studio-hero button {
  width: 230px;
  height: 140px;
  padding: 0;
  border: 1px solid #646862;
  border-radius: 14px;
  overflow: hidden;
  background: #242929;
  box-shadow: 0 18px 40px #0006;
  transform: rotate(-3deg);
}
#studio-hero button:nth-child(2) {
  width: 280px;
  height: 170px;
  z-index: 1;
  margin: 0 -25px;
  transform: none;
}
#studio-hero button:nth-child(3) {
  transform: rotate(3deg);
}
#studio-hero button:only-child {
  width: 290px;
  height: 170px;
  transform: none;
}
#studio-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.studio-hero-mark {
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid #3c4735;
  border-radius: 24px;
  padding: 24px 40px;
  background: radial-gradient(ellipse at top left, #37472a, #171c18 70%);
  box-shadow: 0 16px 45px #0004;
  transform: rotate(-3deg);
}
.studio-hero-mark span {
  font-size: 85px;
  color: #d5ff37;
  line-height: 1;
}
.studio-hero-mark small {
  text-align: left;
  letter-spacing: 2px;
  font-size: 12px;
  line-height: 1.8;
  color: #cdd5c9;
}
.studio-workspace .composer-wrap {
  order: 1;
  position: relative;
  inset: auto;
  width: min(900px, calc(100% - 72px));
  max-width: 900px;
  padding: 0;
  margin: 4px auto 48px;
  transform: translateX(30px);
  z-index: 5;
  background: none;
}
#studio-heading {
  position: absolute;
  left: -76px;
  bottom: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}
#studio-heading > div:first-child {
  display: none;
}
.studio-workspace .composer-top {
  display: none;
}
.studio-workspace #references:empty {
  display: none;
}
.studio-workspace #references {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 3px 3px 0;
  margin: 0;
}
.studio-workspace .reference {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: visible;
  background: #272c2c;
}
.studio-workspace .reference img,
.studio-workspace .reference video {
  border-radius: 10px;
}
.studio-workspace .reference select {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  font-size: 11px; /* was 9px; review L8 */
  background: #101716df;
  min-height: 20px;
  padding: 2px;
  border: 0;
}
.studio-workspace .reference select:focus {
  min-height: 44px;
  font-size: 12px;
}
.studio-workspace .reference button {
  width: 26px;
  height: 26px;
  min-height: 26px;
  top: -3px;
  right: -3px;
}
#studio-creative-controls {
  display: grid;
  grid-template-columns: 0.85fr 1.05fr 1fr 1fr 1fr;
  gap: 6px;
}
#studio-creative-controls:has(> button:nth-child(4):last-child) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.studio-workspace #prompt {
  font-family: inherit;
  width: 100%;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  padding: 8px 3px;
  min-height: 96px;
  /* A long prompt scrolls inside the box (the highlight layer follows it), so the count and Generate stay on screen. */
  max-height: 40vh;
  resize: none;
  overflow: hidden auto;
  font-size: 16px;
  line-height: 1.6;
}
.studio-workspace #prompt:focus {
  outline: none;
}
.studio-camera-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.studio-camera-chips:empty {
  display: none;
}
.studio-camera-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #8db8ff;
  background: #273b57;
  border: 1px solid #385476;
  border-radius: 5px;
  padding: 2px 5px 2px 7px;
  font-size: 13px;
}
.studio-camera-chip small {
  color: #86a2ce;
  font-size: 11px; /* was 9px; review L8 */
}
.studio-camera-chip button {
  border: 0;
  background: transparent;
  color: #93bfff;
  font-size: 17px;
  padding: 2px 5px;
  min-height: 24px;
}
.studio-workspace #selection-chips:empty {
  display: none;
}
.studio-workspace .selection-chips {
  gap: 5px;
  padding: 0;
}
.studio-workspace > .gallery-heading {
  order: 2;
  margin: 0 auto 16px;
  width: 100%;
  max-width: 1040px;
  padding: 0;
  scroll-margin-top: 24px;
}
.studio-workspace .gallery-heading h1 {
  font-size: 20px;
  margin: 0;
}
.studio-workspace .gallery-tools {
  gap: 7px;
  flex-wrap: wrap;
}
.studio-workspace .gallery-tools button,
.studio-workspace .history-more summary {
  min-height: 36px;
}
.studio-workspace #history-filters {
  order: 3;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto 16px;
  flex-wrap: wrap;
}
.studio-workspace .studio-gallery {
  order: 4;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0;
}
.studio-gallery .batch {
  background: #191e1d;
  border: 1px solid #303635;
  border-radius: 16px;
  padding: 12px;
  min-width: 0;
  max-width: 100%;
}
.studio-gallery .batch-head {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 11px; /* was 10px; review L8 */
  color: #9ca89f;
  margin-bottom: 10px;
}
.studio-gallery .batch-head p {
  flex: 1 1 100%;
  max-width: 100%;
  min-width: 0;
}
.studio-gallery .batch-head > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.studio-gallery .batch-head time {
  margin-left: auto;
}
.studio-gallery .tiles {
  min-width: 0;
  max-width: 100%;
}
.studio-gallery .image-tile {
  border-radius: 10px;
}
.studio-empty {
  grid-column: 1/-1;
  text-align: center;
  border: 1px dashed #39413a;
  border-radius: 18px;
  padding: 35px 20px;
  color: #9ca79f;
}
.studio-empty > span {
  font-size: 30px;
  color: #91ab70;
}
.studio-empty h2 {
  font-size: 18px;
  font-weight: 500;
  color: #dce4d6;
  margin: 12px 0;
}
.studio-empty p {
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
}
.studio-panel {
  max-width: 380px;
}
.studio-panel h2,
.studio-movement-dialog h2 {
  font-size: 20px;
  margin: 0;
}
.studio-panel .modal-heading,
.studio-movement-dialog .modal-heading {
  margin-bottom: 14px;
}
.studio-panel p {
  font-size: 12px;
  line-height: 1.6;
}
.studio-single-shot {
  background: #29322b;
  border-radius: 12px;
  padding: 18px;
  color: #d1e4b8;
}
.studio-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.studio-choice-grid button {
  font-size: 12px;
  text-align: left;
  padding: 12px;
  min-height: 44px;
  background: #272e2c;
}
.studio-choice-grid button[aria-pressed='true'] {
  border-color: #b8d677;
  background: #34402b;
  color: #def4b8;
}
#studio-camera-setup {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
#studio-camera-setup label,
#studio-panel label,
#settings-fields [data-studio-native] {
  font-size: 13px;
}
#studio-camera-setup small,
#studio-panel label small {
  display: block;
  font-size: 11px; /* was 10px; review L8 */
  color: #9fae9e;
  margin: 5px 0;
}
#studio-camera-setup select {
  width: 100%;
  font-size: 13px;
  min-height: 44px;
}
.native-tag {
  color: #bad98a !important;
}
.studio-camera-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.studio-camera-tabs button {
  flex: 1;
  min-height: 44px;
  background: #252b29;
}
.studio-camera-tabs button.active {
  border-color: #c6e48b;
  background: #35422c;
}
.studio-movement-dialog {
  width: calc(100% - 32px);
  max-width: 640px;
}
.studio-movement-dialog .eyebrow {
  color: #a0ac99;
  font-size: 11px; /* was 9px; review L8 */
}
.studio-movement-dialog > p {
  font-size: 12px;
  line-height: 1.6;
}
.studio-movement-dialog > input {
  width: 100%;
  min-height: 44px;
  margin: 10px 0;
}
#studio-movement-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-height: 340px;
  overflow: auto;
}
#studio-movement-grid button {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 5px;
  padding: 12px;
  background: #222b27;
  border: 1px solid #39473c;
  min-height: 100px;
}
#studio-movement-grid button.selected {
  background: #213249;
  border-color: #6894c7;
}
#studio-movement-grid strong {
  font-size: 12px;
  font-weight: 500;
}
#studio-movement-grid small {
  font-size: 11px; /* was 9px; review L8 */
  color: #a3ada7;
  line-height: 1.5;
}
.movement-glyph {
  font-size: 24px;
  line-height: 1;
  color: #8fbcff;
}
.studio-reference-action {
  display: block;
  padding: 8px;
  font-size: 11px; /* was 10px; review L8 */
  color: #c7ef83;
}
.studio-detail-guidance {
  white-space: pre-wrap;
}
.studio-detail .detail-info {
  min-width: 0;
}
.studio-detail .detail-actions > * {
  flex: 1 1 130px;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}
#studio-sidebar[hidden],
#studio-drawer-shade[hidden],
#studio-intro[hidden],
#studio-heading[hidden],
#studio-reference-heading[hidden],
#studio-camera-chips[hidden],
#studio-creative-controls[hidden],
#studio-guidance[hidden],
#studio-native-heading[hidden],
#studio-hash-suggestions[hidden],
#studio-prompt-surface[hidden],
#studio-camera-setup[hidden],
#studio-camera-tabs[hidden],
#studio-movement-grid[hidden],
.studio-workspace [hidden] {
  display: none !important;
}
@media (max-width: 1100px) and (min-width: 761px) {
  #studio-sidebar {
    width: 210px;
  }
  body.studio-active #workspace {
    margin-left: 210px;
  }
  .studio-workspace {
    padding: 24px 18px 40px;
  }
  #studio-intro h1 {
    font-size: 25px;
  }
  #studio-hero button {
    width: 180px;
  }
  #studio-hero button:nth-child(2) {
    width: 230px;
  }
}
@media (max-width: 760px) {
  body.studio-active #workspace {
    margin-left: 0;
  }
  #studio-sidebar {
    width: 240px;
    transform: translateX(-100%);
    transition: transform 0.16s ease;
    z-index: 50;
  }
  body.studio-drawer-open #studio-sidebar {
    transform: none;
  }
  #studio-drawer-shade {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: #0009;
    border: 0;
    border-radius: 0;
  }
  .studio-workspace {
    padding: 10px 12px 30px;
    border: 0;
    border-radius: 0;
    min-height: calc(100dvh - 56px);
  }
  #studio-intro {
    gap: 10px;
    padding: 5px 0 15px;
  }
  #studio-intro h1 {
    font-size: 19px;
    letter-spacing: -0.4px;
    max-width: 345px;
  }
  #studio-hero {
    height: 76px;
    width: 100%;
  }
  #studio-hero button {
    width: 100px;
    height: 59px;
    border-radius: 9px;
  }
  #studio-hero button:nth-child(2) {
    width: 130px;
    height: 75px;
    margin: 0 -12px;
  }
  #studio-hero button:only-child {
    width: 160px;
    height: 76px;
  }
  .studio-hero-mark {
    padding: 10px 24px;
    gap: 12px;
    border-radius: 15px;
  }
  .studio-hero-mark span {
    font-size: 46px;
  }
  .studio-hero-mark small {
    font-size: 11px; /* was 8px; review L8 */
    letter-spacing: 1px;
  }
  .studio-workspace .composer-wrap {
    width: 100%;
    transform: none;
    margin: 0 0 28px;
  }
  #studio-heading {
    position: static;
    order: -1;
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .studio-workspace .reference {
    width: 56px;
    height: 56px;
  }
  .studio-workspace .reference button {
    width: 44px;
    min-height: 44px;
    height: 44px;
  }
  .studio-workspace #references {
    gap: 9px;
  }
  #studio-creative-controls,
  #studio-creative-controls:has(> button:nth-child(4):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .studio-workspace #prompt {
    font-size: 16px;
    min-height: 96px;
    padding: 5px 2px;
    line-height: 1.55;
  }
  .studio-camera-chip button {
    min-height: 44px;
    padding: 2px 7px;
  }
  .studio-camera-chip {
    padding: 0 2px 0 7px;
  }
  .studio-workspace > .gallery-heading {
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    scroll-margin-top: 70px;
  }
  .studio-workspace .gallery-heading h1 {
    font-size: 18px;
  }
  .studio-workspace .gallery-tools button,
  .studio-workspace .history-more summary {
    min-height: 44px;
  }
  .studio-workspace .studio-gallery {
    grid-template-columns: 1fr;
  }
  body.studio-active dialog.studio-dialog:not(.detail-modal) {
    position: fixed;
    inset: auto 0 0;
    margin: 0;
    width: 100%;
    max-width: none;
    max-height: 85dvh;
    border-radius: 20px 20px 0 0;
    padding: 18px 16px;
    overflow: auto;
  }
  body.studio-active .library-modal .library-tabs {
    gap: 2px;
    flex-wrap: wrap;
  }
  body.studio-active .library-tabs button {
    min-height: 44px;
    font-size: 11px;
    padding: 7px;
  }
  body.studio-active .library-toolbar {
    flex-wrap: wrap;
  }
  body.studio-active .library-toolbar > * {
    min-width: 0;
    max-width: 100%;
  }
  body.studio-active .library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #studio-movement-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 45dvh;
  }
  .studio-dialog button,
  .studio-dialog select {
    min-height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #studio-sidebar {
    transition: none;
  }
}
@media (max-width: 760px) {
  .studio-workspace .reference button {
    top: -12px;
    right: -12px;
    border: 0;
    background: radial-gradient(circle, #151c19 0 12px, transparent 13px);
  }
  .studio-workspace .reference select {
    height: 44px;
    min-height: 44px;
    padding: 24px 1px 2px;
    background: linear-gradient(transparent 0 20px, #101716df 20px);
    border-radius: 0;
  }
}
.studio-workspace #selection-chips:not(:has(> :not([hidden]))) {
  display: none;
}
#studio-element-picker {
  position: fixed;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: min(550px, calc(100dvh - 16px));
  padding: 12px;
  background: #25292a;
  border: 1px solid #454a4b;
  border-radius: 18px;
  box-shadow: 0 14px 48px #0009;
  color: var(--text, #f4f5f0);
}
#studio-element-picker[hidden] {
  display: none;
}
#studio-element-picker header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 4px;
}
#studio-element-picker header button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 9px;
  background: #343839;
  color: inherit;
  font-size: 22px;
}
#studio-element-search {
  width: 100%;
  min-height: 40px;
  background: #181b1c;
  border: 1px solid #464b4c;
  border-radius: 10px;
  padding: 10px 12px;
  color: inherit;
}
#studio-element-categories {
  display: flex;
  gap: 4px;
}
#studio-element-categories button {
  flex: 1;
  min-height: 36px;
  padding: 5px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #adb5b4;
  font-size: 12px;
}
#studio-element-categories button[aria-pressed='true'] {
  background: #3b4140;
  color: #d8ff4a;
}
#studio-element-list {
  overflow-y: auto;
  min-height: 0;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
#studio-element-list [role='option'] {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 68px;
  padding: 8px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  text-align: left;
}
#studio-element-list [role='option']:hover,
#studio-element-list [role='option']:focus-visible,
#studio-element-list .highlighted {
  background: #3a3f40;
}
#studio-element-list [role='option'][aria-disabled='true']:not([aria-selected='true']) {
  opacity: 0.55;
}
#studio-element-list :is(img, .mention-thumb) {
  margin-right: 0;
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  background: #161919;
}
#studio-element-list [role='option'] > span:not(.studio-element-tick, .mention-thumb) {
  min-width: 0;
  flex: 1;
}
#studio-element-list strong {
  display: block;
  font-size: 16px;
  overflow-wrap: anywhere;
}
#studio-element-list small {
  display: block;
  font-size: 11px;
  color: #aab1b1;
  margin-top: 4px;
}
/* A quiet label over each kind of row when the list holds both ("In this draft", "Elements"). It is text, not a row. */
#studio-element-list .studio-element-group-label {
  padding: 8px 8px 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #aab1b1;
  cursor: default;
  user-select: none;
}
#studio-element-list [role='group'] + [role='group'] > .studio-element-group-label {
  margin-top: 4px;
  border-top: 1px solid #343839;
  padding-top: 12px;
}
/* The arrow keys bring a row into view, and the first row of a group brings its label along. */
#studio-element-list .studio-element-group-label + [role='option'] {
  scroll-margin-top: 36px;
}
.studio-element-tick {
  color: #d8ff4a;
  font-size: 22px;
}
#studio-element-help,
#studio-element-error,
.studio-element-empty {
  margin: 0;
  padding: 2px 4px;
  font-size: 12px;
  line-height: 1.45;
  color: #b3bbba;
}
#studio-element-error:empty {
  display: none;
}
#studio-element-error {
  color: #ffb4a7;
}
@media (max-width: 760px) {
  #studio-element-picker {
    max-height: min(520px, 65dvh);
    padding: 10px;
  }
  #studio-element-picker header button,
  #studio-element-search,
  #studio-element-categories button {
    min-height: 44px;
  }
  #studio-element-picker header button {
    min-width: 44px;
  }
}

/* Camera is a centred workspace dialog, rather than an anchored selector. */
body.studio-active #studio-movements.studio-dialog[open] {
  width: calc(100% - 48px);
  max-width: 960px;
  max-height: calc(100dvh - 48px);
  margin: auto;
  inset: 0;
  padding: 22px;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  gap: 20px;
  border-radius: 26px;
  background: #1c2021;
  overflow: auto;
}
#studio-movements .modal-heading {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}
#studio-movements .modal-heading > div {
  flex: 1;
}
#studio-movements h2 {
  font-size: 25px;
}
#studio-camera-reset {
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 24px;
  background: #323637;
}
#studio-movement-close {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 50%;
  background: #2c3031;
  font-size: 26px;
}
#studio-camera-tabs {
  flex-direction: column;
  justify-content: flex-start;
  margin: 0;
  padding: 10px 12px 10px 0;
  border-right: 1px solid #363b3c;
  gap: 8px;
}
#studio-camera-tabs button {
  flex: none;
  min-height: 54px;
  text-align: left;
  padding: 12px 16px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  font-size: 16px;
}
#studio-camera-tabs button.active {
  background: #353a38;
  color: #d9faaa;
}
#studio-camera-body {
  min-width: 0;
  min-height: 390px;
  border-radius: 18px;
  background: #25292a;
  padding: 22px;
}
#studio-camera-setup {
  display: block;
}
.studio-camera-default {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 230px;
  min-height: 170px;
  max-width: 100%;
  margin: 14px auto 18px;
  border: 2px solid #b9d68c;
  border-radius: 90px;
  background: #383e39;
}
.studio-camera-default > span {
  font-size: 45px;
  color: #d3e6b3;
}
.studio-camera-default strong {
  font-size: 22px;
}
.studio-camera-default small {
  font-size: 11px;
  color: #b0bab1;
}
.studio-camera-note {
  text-align: center;
  font-size: 12px;
  color: #a7b1aa;
  margin: 0 0 26px;
}
.studio-camera-default > span {
  line-height: 1;
}
.studio-shot-guidance {
  border-top: 1px solid #424846;
  padding-top: 14px;
}
.studio-shot-guidance summary {
  cursor: pointer;
  font-size: 14px;
  min-height: 44px;
  line-height: 1.5;
}
.studio-shot-guidance summary small {
  display: inline-block;
  margin-left: 8px;
  font-size: 11px;
  color: #acb6ac;
}
.studio-shot-guidance > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding-top: 10px;
}
.studio-camera-native-heading {
  font-size: 11px;
  letter-spacing: 1px;
  color: #aab4a9;
  margin-bottom: 14px;
}
.studio-camera-native-heading small {
  display: block;
  font-size: 11px; /* was 10px; review L8 */
  letter-spacing: 0;
  color: #c9e69e;
  margin-top: 5px;
}
.studio-camera-style-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}
.studio-camera-style-grid button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 120px;
  border-radius: 60px;
  background: #333839;
  border: 1px solid #555e57;
}
.studio-camera-style-grid button[aria-pressed='true'] {
  border: 2px solid #c0de91;
  background: #394334;
  color: #e0f4c6;
}
.studio-camera-style-grid button > span {
  font-size: 32px;
}
.studio-camera-style-grid strong {
  font-size: 12px;
}
#studio-camera-body #studio-movement-search {
  width: 100%;
  min-height: 44px;
  margin: 10px 0 14px;
}
#studio-camera-body #studio-camera-help {
  font-size: 12px;
  color: #b2bcb2;
  margin: 0;
  line-height: 1.6;
}
#studio-camera-body #studio-movement-grid {
  max-height: 380px;
}
#studio-camera-body #studio-movement-count {
  font-size: 11px;
  color: #aebaae;
  margin-bottom: 0;
}
#studio-movements:has(#studio-camera-tabs[hidden]) #studio-camera-body {
  grid-column: 1/-1;
}
@media (max-width: 760px) {
  body.studio-active #studio-movements.studio-dialog[open] {
    inset: auto 0 0;
    margin: 0;
    width: 100%;
    max-width: none;
    max-height: 85dvh;
    padding: 16px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 12px;
    border-radius: 22px 22px 0 0;
  }
  #studio-movements h2 {
    font-size: 22px;
  }
  #studio-camera-reset {
    font-size: 12px;
    padding: 8px 14px;
  }
  #studio-camera-tabs {
    flex-direction: row;
    padding: 0;
    border: 0;
    gap: 6px;
  }
  #studio-camera-tabs button {
    flex: 1;
    min-height: 44px;
    text-align: center;
    font-size: 14px;
  }
  #studio-camera-body {
    padding: 16px;
    min-height: 0;
  }
  .studio-camera-default {
    width: 200px;
    min-height: 145px;
    margin-top: 0;
  }
  .studio-shot-guidance > div {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .studio-shot-guidance summary small {
    display: block;
    margin-left: 0;
  }
  .studio-camera-style-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .studio-camera-style-grid button {
    min-height: 100px;
  }
  #studio-camera-body #studio-movement-grid {
    max-height: 37dvh;
  }
}
body.studio-active .studio-workspace {
  min-height: calc(100dvh - var(--header-h));
}
@media (max-width: 760px) {
  body.studio-active #studio-intro {
    gap: 6px;
    padding-bottom: 10px;
  }
  body.studio-active #studio-hero {
    height: 56px;
  }
  body.studio-active #studio-hero button {
    height: 44px;
  }
  body.studio-active #studio-hero button:nth-child(2),
  body.studio-active #studio-hero button:only-child {
    height: 56px;
  }
  body.studio-active .studio-hero-mark {
    padding: 6px 20px;
  }
  body.studio-active .studio-hero-mark span {
    font-size: 34px;
  }
  /* On a phone the prompt sits under the creative controls, so it stops shorter to leave Generate on screen. */
  body.studio-active .studio-workspace #prompt {
    min-height: 84px;
    max-height: 200px;
  }
}
@media (max-width: 760px) {
  body.studio-active #studio-sidebar {
    top: 0;
  }
  body.studio-active .studio-workspace {
    min-height: calc(100dvh - 100px);
  }
}
