/* Task 706: Upload-style fields, scoped to Create's regular form controls.
   Keep native selects, identity ownership, lyric canvases and consent controls. */
[data-create-journey] .workspace-form-column :is(
  .workspace-field-grid input:is([type="text"], [type="number"], [type="date"], [type="url"], [type="email"], :not([type])),
  .workspace-field-grid select,
  .workspace-wide-field input:is([type="text"], [type="number"], [type="date"], :not([type])),
  .workspace-wide-field textarea,
  .workspace-concept-language select,
  .workspace-genre-field > select,
  .workspace-duration-custom input[type="number"],
  .workspace-variance-custom-field input[type="number"],
  .workspace-genre-custom input[type="text"]
):not(:where(.workspace-owned-identity-picker *)) {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 12px 2px;
  border: 0;
  border-bottom: 2px solid #cbc5d5;
  border-radius: 0;
  outline: 0;
  color: #1b1822;
  background: transparent;
  box-shadow: none;
  font: inherit;
  line-height: 1.45;
  transition: border-color 180ms ease, background-color 180ms ease, padding-right 220ms ease;
}

[data-create-journey] .workspace-form-column :is(
  .workspace-field-grid input:is([type="text"], [type="number"], [type="date"], [type="url"], [type="email"], :not([type])),
  .workspace-field-grid select,
  .workspace-wide-field input:is([type="text"], [type="number"], [type="date"], :not([type])),
  .workspace-wide-field textarea,
  .workspace-concept-language select,
  .workspace-genre-field > select,
  .workspace-duration-custom input[type="number"],
  .workspace-variance-custom-field input[type="number"],
  .workspace-genre-custom input[type="text"]
):not(:where(.workspace-owned-identity-picker *)):focus {
  border-bottom-color: #7355e8;
  background-color: rgba(115, 85, 232, .035);
  box-shadow: 0 1px 0 #7355e8;
}

[data-create-journey] .workspace-form-column :is(
  .workspace-field-grid input:is([type="text"], [type="number"], [type="date"], [type="url"], [type="email"], :not([type])), .workspace-field-grid select,
  .workspace-wide-field input:is([type="text"], [type="number"], [type="date"], :not([type])), .workspace-wide-field textarea,
  .workspace-concept-language select, .workspace-genre-field > select,
  .workspace-duration-custom input[type="number"], .workspace-variance-custom-field input[type="number"]
):not(:where(.workspace-owned-identity-picker *))[aria-invalid="true"] {
  border-bottom-color: #b93649;
  box-shadow: 0 1px 0 #b93649;
}

[data-create-journey] .workspace-form-column :is(
  .workspace-field-grid input:is([type="text"], [type="number"], [type="date"]),
  .workspace-field-grid select, .workspace-wide-field input[type="text"],
  .workspace-wide-field textarea, .workspace-concept-language select,
  .workspace-duration-custom input[type="number"], .workspace-variance-custom-field input[type="number"]
):not(:where(.workspace-owned-identity-picker *)):disabled {
  color: #81798a;
  border-bottom-style: dashed;
  cursor: not-allowed;
}

[data-create-journey] .workspace-form-column :is(
  .workspace-field-grid input[type="text"], .workspace-wide-field textarea
):not(:where(.workspace-owned-identity-picker *))[readonly] {
  color: #655c70;
  background-color: rgba(111, 100, 128, .05);
}

[data-create-journey] .workspace-form-column :is(
  .workspace-field-grid input[type="text"], .workspace-wide-field textarea
)::placeholder {
  color: #87808e;
  opacity: 1;
}

/* Existing assistant actions stay next to their value, outside its text area. */
[data-create-journey] .workspace-form-column .workspace-duration-custom input[type="number"] {
  width: 112px;
}

[data-create-journey] .workspace-form-column .workspace-variance-custom-field input[type="number"] {
  width: 76px;
}

[data-create-journey] .workspace-form-column .workspace-assisted-input input[type="text"] {
  padding-right: 54px;
}

[data-create-journey] .workspace-form-column .workspace-assisted-input > button {
  top: 3px;
  right: 1px;
  width: 44px;
  height: 44px;
  border-color: transparent;
  border-radius: 50%;
  background: #f5f1ff;
  box-shadow: none;
}

[data-create-journey] .workspace-form-column .workspace-assisted-input > button:is(:hover, :focus-visible) {
  border-color: #7355e8;
  color: #fff;
  background: #7355e8;
}

/* The button hit target stays generous; the visible ID is Upload's compact circle.
   Width + content motion preserve Create's progressive checkmark reveal. */
[data-create-journey] .workspace-form-column .workspace-artist-identity-input input[type="text"] {
  padding-right: 54px;
}

[data-create-journey] .workspace-form-column .workspace-artist-identity-input > button {
  right: 2px;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 6px;
  gap: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  transition: width 220ms ease, min-width 220ms ease, gap 220ms ease, padding 220ms ease, background-color 180ms ease;
}

[data-create-journey] .workspace-form-column .workspace-artist-identity-input > button > span {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  color: #fff;
  background: #17151b;
  box-shadow: none;
}

[data-create-journey] .workspace-form-column .workspace-artist-identity-input > button[data-state="linked"] > span {
  box-shadow: 0 0 0 2px #81cfc3;
}

[data-create-journey] .workspace-form-column .workspace-artist-identity-input > button > small {
  max-width: 0;
  min-width: 0;
  opacity: 0;
  transform: translateX(-5px);
  transition: max-width 220ms ease, opacity 180ms ease, transform 220ms ease;
}

[data-create-journey] .workspace-form-column .workspace-artist-identity-input > button[data-state="linked"] > small {
  color: #27816c;
  font-size: 1.05rem;
}

[data-create-journey] .workspace-form-column .workspace-artist-identity-input:is(:hover, :focus-within) > button {
  width: 76px;
  min-width: 76px;
  padding-inline: 8px;
  gap: 8px;
}

[data-create-journey] .workspace-form-column .workspace-artist-identity-input:is(:hover, :focus-within) > button:not([data-state="linked"]) {
  width: 92px;
  min-width: 92px;
}

[data-create-journey] .workspace-form-column .workspace-artist-identity-input:is(:hover, :focus-within) > button > small {
  max-width: 48px;
  opacity: 1;
  transform: translateX(0);
}

[data-create-journey] .workspace-form-column .workspace-artist-identity-input:is(:hover, :focus-within) input[type="text"] {
  padding-right: 104px;
}

[data-create-journey] .workspace-form-column .workspace-artist-identity-input > button:focus-visible {
  outline: 2px solid #7355e8;
  outline-offset: 1px;
}

[data-create-journey] .workspace-form-column [data-artist-image-retry] {
  min-height: 44px;
  margin-top: 8px;
}

/* A locked shared-trial identity still opens its existing explanation. */
[data-create-journey] .workspace-form-column .workspace-artist-identity-input input[data-shared-trial-identity="true"] {
  color: #5d5965;
  background: #f3f1f6;
  cursor: pointer;
}

@media (hover: none) {
  [data-create-journey] .workspace-form-column .workspace-assisted-input > button {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-create-journey] .workspace-form-column :is(input, select, textarea),
  [data-create-journey] .workspace-form-column .workspace-artist-identity-input > button,
  [data-create-journey] .workspace-form-column .workspace-artist-identity-input > button > small,
  [data-create-journey] .workspace-form-column .workspace-assisted-input > button {
    transition: none;
  }
}

/* Task 782: Genre and its optional Style details are direct, paired fields. */
.workspace-custom-genre-host,
.workspace-simple-genre-host,
.workspace-genre-style-field,
.workspace-genre-region-field { min-width: 0; }
.workspace-genre-region-field[hidden] { display: none; }
.workspace-genre-style-field > .workspace-assisted-label { margin-bottom: 0; }
.workspace-genre-style-field > .workspace-assisted-label .workspace-random-hint { opacity: 1; }

/* Task 723: optional artwork choices and concise field-level help. */
.workspace-artwork-decide {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 9px;
  flex-shrink: 0;
  cursor: pointer;
  font-size: .82rem;
}
.workspace-choice-group[aria-describedby="workspace-artwork-subject-help"] > span,
.workspace-choice-group[aria-describedby="workspace-artwork-character-help"] > span {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 0;
}
@media (max-width: 620px) {
  .workspace-choice-group[aria-describedby="workspace-artwork-subject-help"] > span,
  .workspace-choice-group[aria-describedby="workspace-artwork-character-help"] > span {
    flex-direction: column; align-items: flex-start; gap: 0;
  }
}
[data-create-journey] .workspace-form-column .workspace-artwork-decide input[type="checkbox"] {
  appearance: none;
  width: 40px;
  min-width: 40px;
  height: 24px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 20px;
  background: #cecad3;
  position: relative;
  cursor: pointer;
}
.workspace-artwork-decide input::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 3px #0002;
}
[data-create-journey] .workspace-form-column .workspace-artwork-decide input:checked { background: #8365ed; }
.workspace-artwork-decide input:checked::before { transform: translateX(16px); }
.workspace-artwork-decide input:focus-visible { outline: 2px solid #7355e8; outline-offset: 3px; }
#workspace-artwork-subject-options[hidden], #workspace-artwork-character-options[hidden] { display: none; }
.workspace-tooltip-points { display: block; text-align: left; }
.workspace-tooltip-points > span { display: block; padding-left: 12px; position: relative; margin: 5px 0; }
.workspace-tooltip-points > span::before { content: "•"; position: absolute; left: 0; }
[data-build-terms-copy] { white-space: pre-line; overflow-wrap: anywhere; }
[data-build-terms-copy] a, [data-build-terms-copy] b { color: #6044c5; }
[data-build-terms-copy] [data-reload-build-terms] { font: inherit; color: #6044c5; background: transparent; border: 0; text-decoration: underline; cursor: pointer; }

/* Task 726: Sound uses the same open, white field layout as Concept. */
#workspace-sound .workspace-sound-reference { margin-top: 24px; }
#workspace-sound .workspace-instrumental-controls {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  margin-top: 24px;
  gap: 18px;
}
#workspace-sound .workspace-instrumental-controls > header > span {
  color: #57505e;
  font-size: .82rem;
  font-weight: 650;
}
#workspace-sound .workspace-instrumental-controls > p { font-size: .8rem; }
#workspace-sound .workspace-instrumental-controls > .workspace-field-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 18px;
}
@media (max-width: 900px) {
  #workspace-sound .workspace-instrumental-controls > .workspace-field-grid { grid-template-columns: minmax(0, 1fr); }
}
#workspace-sound .workspace-instrumental-controls .sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
#workspace-sound [data-concept-assist="soundalike"] {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

/* Task 784: clearer Sound order, guidance, and multi-value instrumental anchors. */
#workspace-sound .workspace-arrangement-modes > legend {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
#workspace-sound .workspace-arrangement-modes > legend .workspace-field-info {
  letter-spacing: normal;
  text-transform: none;
}
#workspace-sound .workspace-sound-vocals,
#workspace-sound .workspace-sound-reference { margin-top: 24px; }
#workspace-sound .workspace-instrumental-controls > header > .workspace-assisted-label-copy {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
#workspace-sound .workspace-instrumental-controls > .workspace-field-grid {
  align-items: start;
}
#workspace-sound .workspace-instrumental-controls .workspace-help-field,
#workspace-sound .workspace-instrumental-focus-field {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 7px;
}
#workspace-sound .workspace-instrumental-controls :is(
  #workspace-instrumental-palette,
  #workspace-instrumental-creativity
) {
  appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 10 5 5 5-5' fill='none' stroke='%231b1822' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 5px center;
  background-size: 18px 18px;
}
.workspace-instrumental-focus-field { position: relative; }
.workspace-instrumental-focus-combobox {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) 42px 42px;
  min-width: 0;
  min-height: 52px;
  align-items: center;
  border-bottom: 2px solid #cbc5d5;
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}
.workspace-instrumental-focus-combobox:focus-within {
  border-bottom-color: #7355e8;
  background: rgba(115, 85, 232, .035);
  box-shadow: 0 1px 0 #7355e8;
}
.workspace-instrumental-focus-values {
  grid-column: 1 / -1;
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 7px;
  padding: 8px 2px 0;
}
.workspace-instrumental-focus-values:empty { display: none; }
.workspace-instrumental-focus-values > span {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 7px;
  padding: 6px 8px 6px 11px;
  border: 1px solid #cfc3f1;
  border-radius: 999px;
  color: #4d36a4;
  background: #f3efff;
  font-size: .74rem;
  font-weight: 850;
}
.workspace-instrumental-focus-values > span > b {
  overflow: hidden;
  font: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.workspace-instrumental-focus-values > span > button {
  display: grid;
  width: 22px;
  height: 22px;
  min-width: 22px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #6049b9;
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.workspace-instrumental-focus-values > span > button:is(:hover, :focus-visible) {
  color: #fff;
  background: #7355e8;
  outline: 0;
}
[data-create-journey] .workspace-form-column .workspace-instrumental-focus-combobox > input[type="text"] {
  grid-column: 1;
  width: 100%;
  min-width: 80px;
  min-height: 48px;
  padding: 9px 6px 9px 2px;
  border: 0;
  background: transparent;
  box-shadow: none;
}
[data-create-journey] .workspace-form-column .workspace-instrumental-focus-combobox > input[type="text"]:focus {
  border: 0;
  background: transparent;
  box-shadow: none;
}
.workspace-instrumental-focus-toggle,
.workspace-instrumental-focus-generate {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #2a2530;
  background: transparent;
  cursor: pointer;
}
.workspace-instrumental-focus-toggle svg,
.workspace-instrumental-focus-generate svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.workspace-instrumental-focus-toggle svg { transition: transform 160ms ease; }
.workspace-instrumental-focus-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.workspace-instrumental-focus-generate {
  color: #7355e8;
  background: #f5f1ff;
  opacity: 0;
  pointer-events: none;
  transform: scale(.92);
  transition: opacity 150ms ease, transform 150ms ease, color 150ms ease, background-color 150ms ease;
}
.workspace-instrumental-focus-field:is(:hover, :focus-within) .workspace-instrumental-focus-generate,
.workspace-instrumental-focus-generate[data-busy="true"] {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}
.workspace-instrumental-focus-generate:is(:hover, :focus-visible) {
  color: #fff;
  background: #7355e8;
  outline: 0;
}
.workspace-instrumental-focus-toggle:focus-visible,
.workspace-instrumental-focus-generate:focus-visible {
  outline: 2px solid #7355e8;
  outline-offset: 1px;
}
.workspace-instrumental-focus-menu {
  position: absolute;
  z-index: 80;
  top: calc(100% - 18px);
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: 248px;
  gap: 6px;
  padding: 10px;
  overflow-y: auto;
  border: 1px solid #d8d0e2;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(28, 21, 36, .16);
}
.workspace-instrumental-focus-menu[hidden] { display: none !important; }
.workspace-instrumental-focus-menu > button {
  min-width: 0;
  padding: 9px 10px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #342d3a;
  background: #f7f5f8;
  font: inherit;
  font-size: .76rem;
  font-weight: 750;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}
.workspace-instrumental-focus-menu > button:is(:hover, :focus-visible) {
  border-color: #aa96ea;
  background: #f2edff;
  outline: 0;
}
.workspace-instrumental-focus-menu > button[aria-selected="true"] {
  border-color: #7355e8;
  color: #4e35aa;
  background: #ece6ff;
}
@media (max-width: 520px) {
  .workspace-instrumental-focus-menu { grid-template-columns: minmax(0, 1fr); }
}
@media (hover: none) {
  .workspace-instrumental-focus-generate {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .workspace-instrumental-focus-combobox,
  .workspace-instrumental-focus-toggle svg,
  .workspace-instrumental-focus-generate { transition: none; }
}

/* Task 805: rebalance Instrumental direction and keep focused guidance uncluttered. */
#workspace-sound .workspace-instrumental-controls {
  margin-top: 38px;
}
#workspace-sound .workspace-instrumental-controls > .workspace-field-grid {
  grid-template-columns: minmax(210px, .7fr) minmax(360px, 1.3fr);
  grid-template-areas:
    "palette focus"
    "creativity focus";
  gap: 18px 28px;
}
#workspace-sound .workspace-instrumental-palette-field { grid-area: palette; }
#workspace-sound .workspace-instrumental-focus-field { grid-area: focus; }
#workspace-sound .workspace-instrumental-creativity-field {
  grid-area: creativity;
  width: 100%;
}
#workspace-sound .workspace-instrumental-focus-guidance { display: none; }
#workspace-sound .workspace-instrumental-focus-field:focus-within > .workspace-instrumental-focus-guidance { display: block; }
#workspace-sound .workspace-instrumental-focus-menu {
  z-index: 95;
  grid-auto-rows: 44px;
  max-height: 216px;
  overscroll-behavior: contain;
  scroll-padding-block: 10px;
}
#workspace-sound .workspace-instrumental-focus-menu > button {
  min-height: 44px;
}
#workspace-sound .workspace-instrumental-focus-menu[data-placement="above"] {
  transform-origin: bottom center;
}
@media (max-width: 900px) {
  #workspace-sound .workspace-instrumental-controls > .workspace-field-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "palette" "focus" "creativity";
    gap: 22px;
  }
}

/* Task 785: deliberate duration controls and a two-step variance choice. */
#workspace-tracks .workspace-duration-custom {
  width: min(100%, 520px);
  gap: 10px;
  padding: 18px;
  border-color: #cec3ea;
  border-radius: 18px;
  background: linear-gradient(135deg, #fbf9ff 0%, #f3f0fb 66%, #eef8f6 100%);
  box-shadow: 0 12px 28px rgba(61, 45, 91, .08);
}
.workspace-duration-stepper {
  display: grid;
  grid-template-columns: 44px minmax(96px, 132px) 44px minmax(112px, 1fr);
  align-items: center;
  gap: 8px;
}
.workspace-duration-stepper > button {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid #b9acd8;
  border-radius: 12px;
  color: #4c359f;
  background: #fff;
  font: 900 1.25rem/1 system-ui, sans-serif;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(55, 39, 89, .08);
}
.workspace-duration-stepper > button:is(:hover, :focus-visible) {
  border-color: #7355e8;
  color: #fff;
  background: #7355e8;
  outline: 0;
}
[data-create-journey] .workspace-form-column .workspace-duration-stepper > input[type="text"] {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #b9acd8;
  border-radius: 12px;
  color: #17131d;
  background: #fff;
  font: 900 1rem/1.2 system-ui, sans-serif;
  text-align: center;
  box-shadow: none;
}
[data-create-journey] .workspace-form-column .workspace-duration-stepper > input[type="text"]:focus {
  border-color: #7355e8;
  outline: 3px solid rgba(115, 85, 232, .16);
  background: #fff;
  box-shadow: none;
}
.workspace-duration-stepper > b {
  justify-self: start;
  padding: 8px 11px;
  border-radius: 999px;
  color: #473c50;
  background: rgba(255, 255, 255, .72);
  font-size: .82rem;
  white-space: nowrap;
}
.workspace-variance-mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 520px);
  gap: 8px;
  padding: 6px;
  border: 1px solid #d7d0df;
  border-radius: 16px;
  background: #f2eff4;
}
.workspace-variance-mode[hidden] { display: none !important; }
.workspace-variance-mode > button {
  display: grid;
  min-width: 0;
  min-height: 58px;
  gap: 3px;
  align-content: center;
  padding: 9px 14px;
  border: 0;
  border-radius: 11px;
  color: #625b68;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}
.workspace-variance-mode > button b {
  font-size: .84rem;
  font-weight: 900;
}
.workspace-variance-mode > button small {
  color: inherit;
  font-size: .68rem;
}
.workspace-variance-mode > button[aria-pressed="true"] {
  color: #fff;
  background: #17151c;
  box-shadow: 0 7px 18px rgba(23, 21, 28, .18);
}
.workspace-variance-mode > button[data-variance-mode="studio"][aria-pressed="true"] {
  color: #3f3945;
  background: linear-gradient(135deg, #e9e6ec, #ddd9e4);
  box-shadow: inset 0 0 0 1px #d0cad7, 0 6px 14px rgba(48, 40, 56, .10);
}
.workspace-variance-mode > button:is(:hover, :focus-visible) {
  outline: 2px solid #7355e8;
  outline-offset: -2px;
}
#workspace-tracks .workspace-variance-custom {
  display: grid;
  width: min(100%, 520px);
  gap: 12px;
  padding: 14px;
  border: 1px solid #d8cff0;
  border-radius: 16px;
  background: linear-gradient(135deg, #fbfaff, #f3effc);
}
#workspace-tracks .workspace-variance-custom[hidden] { display: none !important; }
#workspace-tracks .workspace-variance-presets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
#workspace-tracks .workspace-variance-presets button {
  min-width: 0;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 11px;
}
#workspace-tracks .workspace-variance-custom-field {
  grid-template-columns: minmax(0, 1fr) 86px auto;
  padding-top: 2px;
}
#workspace-tracks .workspace-variance-custom-field input[type="number"] {
  appearance: textfield;
  margin: 0;
}
#workspace-tracks .workspace-variance-custom-field input[type="number"]::-webkit-inner-spin-button,
#workspace-tracks .workspace-variance-custom-field input[type="number"]::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}
@media (max-width: 520px) {
  .workspace-duration-stepper {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }
  .workspace-duration-stepper > b {
    grid-column: 1 / -1;
    justify-self: center;
  }
  .workspace-variance-mode { grid-template-columns: minmax(0, 1fr); }
  #workspace-tracks .workspace-variance-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .workspace-variance-mode > button { transition: none; }
}

/* Field-level Studio assistance: sparkle first, detailed circular arrows after assistance. */
.studio-assist-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  overflow: visible;
}
.studio-assist-icon--sparkle,
.studio-assist-icon--sparkle path {
  fill: currentColor;
  stroke: none;
}
.studio-assist-icon--regenerate,
.studio-assist-icon--regenerate path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}
[data-concept-assist][data-busy="true"] > .studio-assist-icon,
[data-track-taglines-regenerate-line][data-busy="true"] > .studio-assist-icon,
[data-track-taglines-regenerate-all][data-busy="true"] > .studio-assist-icon {
  animation: workspace-concept-assist-spin .8s linear infinite;
}
