/* apps/web/src/components/creation-versions.css */
.creation-version-entry {
  max-width: 1200px;
  margin: 24px auto 32px;
  padding: 0 24px;
  color: var(--ink,#102544);
}
.creation-version-entry header {
  margin-bottom: 24px;
}
.creation-version-eyebrow {
  font-size: 11px;
  letter-spacing: .16em;
  color: #526e9a;
  font-weight: 700;
}
.creation-version-entry h1 {
  margin: 12px 0;
  font-size: 30px;
  letter-spacing: -.04em;
}
.creation-version-entry header p {
  color: #65748b;
}
.creation-version-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.creation-version-card {
  padding: 28px;
  border: 1px solid #dbe5f2;
  border-radius: 18px;
  background:
    linear-gradient(
      140deg,
      #fff,
      #f1f5fb);
  box-shadow: 0 8px 28px #193b7010;
  overflow: hidden;
}
.creation-version-card.is-latest {
  background:
    linear-gradient(
      140deg,
      #f0f5ff,
      #fff 70%);
  border-color: #b9cff8;
}
.creation-version-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  letter-spacing: .1em;
  color: #5b7193;
}
.creation-version-tag {
  letter-spacing: 0;
  border: 1px solid #d7e5f8;
  background: #fff9;
  border-radius: 30px;
  padding: 5px 10px;
  color: #345e9a;
}
.creation-version-card h2 {
  font-size: 23px;
  margin: 24px 0 12px;
}
.creation-version-card p {
  font-size: 14px;
  color: #637591;
  line-height: 1.8;
}
.creation-version-spec {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 25px 0;
  color: #254e8d;
}
.creation-version-spec strong {
  font-size: 62px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.07em;
}
.creation-version-spec span {
  font-size: 13px;
  line-height: 1.9;
}
.creation-version-card > .btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  min-height: 44px;
}
.creation-version-nav {
  max-width: 1200px;
  margin: 20px auto 0;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
}
.creation-version-nav > div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.creation-version-nav a {
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 8px;
  color: #476080;
  text-decoration: none;
}
.creation-version-nav a[aria-current=page] {
  background: #e5eeff;
  color: #2459df;
  font-weight: 700;
}
.creation-version-nav a:focus-visible {
  outline: 2px solid #2459df;
  outline-offset: 2px;
}
.creation-version-nav .creation-version-current {
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 8px;
  background: #e5eeff;
  color: #2459df;
  font-weight: 700;
}
@media (max-width:650px) {
  .creation-version-entry {
    padding: 0 16px;
  }
  .creation-version-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .creation-version-card {
    padding: 22px;
  }
  .creation-version-entry h1 {
    font-size: 25px;
  }
  .creation-version-nav {
    padding: 0 16px;
  }
  .creation-version-nav > div {
    gap: 2px;
  }
  .creation-version-nav a {
    padding: 8px;
    font-size: 12px;
  }
}

/* apps/web/src/styles/instance-badge.css */

/* packages/shared/src/withdrawals.css */
.withdrawal-history {
  display: grid;
  gap: 14px;
  min-width: 0;
  color: var(--ink,#142844);
}
.withdrawal-history-table {
  overflow-x: auto;
  max-width: 100%;
  border: 1px solid var(--line,#dfe7f1);
  border-radius: 10px;
}
.withdrawal-history table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 980px;
}
.withdrawal-history.is-admin table {
  min-width: 1450px;
}
.withdrawal-history th,
.withdrawal-history td {
  padding: 11px 12px;
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
}
.withdrawal-history th {
  font-weight: 500;
  font-size: 12px;
  background: var(--surface-2,#f2f6fc);
  white-space: nowrap;
}
.withdrawal-history tbody tr + tr {
  border-top: 1px solid var(--line,#dfe7f1);
}
.withdrawal-history small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: var(--ink-2,#60708a);
}
.withdrawal-history-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
}
.withdrawal-history-status.is-success {
  color: #087443;
  background: #eaf8f0;
}
.withdrawal-history-status.is-pending {
  color: #8a5a0a;
  background: #fff6e6;
}
.withdrawal-history-status.is-danger {
  color: #b13438;
  background: #fff0f0;
}
.withdrawal-history-status.is-neutral {
  color: #50637a;
  background: #f0f3f7;
}
.withdrawal-history-reason {
  min-width: 140px;
  max-width: 260px;
  overflow-wrap: anywhere;
}
.withdrawal-history-event {
  min-width: 230px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line,#dfe7f1);
}
.withdrawal-history-actions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  min-width: 130px;
}
.withdrawal-history details summary {
  cursor: pointer;
  white-space: nowrap;
}
.withdrawal-history-empty {
  margin: 0;
  padding: 28px;
  text-align: center;
  color: var(--ink-2,#60708a);
}
.withdrawal-history-filters,
.withdrawal-history-pagination,
.withdrawal-history-pagination > div,
.withdrawal-history-pagination label,
.withdrawal-history-pagination form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.withdrawal-history-filters .input:first-child {
  width: 260px;
  max-width: 100%;
}
.withdrawal-history-filters select {
  width: auto;
}
.withdrawal-history-pagination {
  justify-content: space-between;
  font-size: 12px;
}
.withdrawal-history-pagination input {
  width: 48px;
  text-align: center;
}
.withdrawal-history-pagination select,
.withdrawal-history-pagination input {
  height: 32px;
  border: 1px solid var(--line,#dfe7f1);
  border-radius: 6px;
  background: var(--surface,#fff);
  color: inherit;
  padding: 4px;
}
.withdrawal-history-pagination .btn {
  min-height: 32px;
  padding: 4px 9px;
  font-size: 12px;
}
.withdrawal-history-pagination > div > span {
  min-width: 80px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
@media (max-width:600px) {
  .withdrawal-history:not(.is-admin) .withdrawal-history-table {
    border: 0;
    overflow: visible;
  }
  .withdrawal-history:not(.is-admin) table,
  .withdrawal-history:not(.is-admin) tbody {
    display: block;
    min-width: 0;
  }
  .withdrawal-history:not(.is-admin) thead {
    position: absolute;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
    overflow: hidden;
  }
  .withdrawal-history:not(.is-admin) tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    border: 1px solid var(--line,#dfe7f1);
    border-radius: 10px;
    padding: 12px;
  }
  .withdrawal-history:not(.is-admin) tbody tr + tr {
    margin-top: 10px;
  }
  .withdrawal-history:not(.is-admin) td {
    display: grid;
    gap: 3px;
    padding: 0;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .withdrawal-history:not(.is-admin) td::before {
    content: attr(data-label);
    font-size: 11px;
    color: var(--ink-2,#60708a);
  }
  .withdrawal-history:not(.is-admin) td:last-child {
    grid-column: 1/-1;
  }
  .withdrawal-history-pagination {
    justify-content: flex-start;
  }
  .withdrawal-history-filters .input:first-child {
    width: 100%;
  }
}

/* apps/web/src/pages/latest/latest-studio.css */
.latest-studio-scope .h3-studio {
  max-width: 1200px;
  margin: auto;
  padding: 28px 24px 60px;
  color: #102544;
}
.latest-studio-scope .h3-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-header h1 {
  font-size: 26px;
}
.latest-studio-scope .h3-note {
  color: #64748b;
  font-size: 13px;
}
.latest-studio-scope .h3-inputs,
.latest-studio-scope .h3-results {
  padding: 24px;
  margin-top: 20px;
}
.latest-studio-scope .h3-studio h2 {
  font-size: 19px;
}
.latest-studio-scope .h3-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.latest-studio-scope .h3-studio select {
  padding: 8px;
  border: 1px solid #dce3ee;
  border-radius: 8px;
  background: white;
}
.latest-studio-scope .h3-images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 20px 0;
}
.latest-studio-scope .h3-images > div {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
}
.latest-studio-scope .h3-images strong {
  display: block;
  margin-bottom: 8px;
}
.latest-studio-scope .h3-images img,
.latest-studio-scope .h3-placeholder {
  width: 100%;
  height: 140px;
  object-fit: contain;
  border-radius: 8px;
  background: #f8fafc;
}
.latest-studio-scope .h3-placeholder {
  display: grid;
  place-items: center;
  color: #94a3b8;
}
.latest-studio-scope .h3-studio textarea {
  width: 100%;
  box-sizing: border-box;
  margin-top: 10px;
  padding: 14px;
  line-height: 1.6;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  resize: vertical;
  font-family: inherit;
}
.latest-studio-scope .h3-review {
  padding: 16px;
  background: #f1f5ff;
  border-radius: 10px;
}
.latest-studio-scope .h3-studio pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
}
.latest-studio-scope .h3-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.latest-studio-scope .h3-result-grid img,
.latest-studio-scope .h3-result-grid video {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  background: #0f172a;
}
.latest-studio-scope .h3-studio details {
  margin: 14px 0;
}
.latest-studio-scope .h3-studio summary {
  cursor: pointer;
}
.latest-studio-scope .h3-studio .alert {
  margin-top: 14px;
}
@media (max-width:650px) {
  .latest-studio-scope .h3-images {
    grid-template-columns: repeat(2, 1fr);
  }
  .latest-studio-scope .h3-studio {
    padding: 16px;
  }
  .latest-studio-scope .h3-inputs,
  .latest-studio-scope .h3-results {
    padding: 16px;
  }
  .latest-studio-scope .h3-header h1 {
    font-size: 22px;
  }
}
.latest-studio-scope .h3-image-dropzone {
  border: 1px dashed #dce3ec;
  border-radius: 10px;
  cursor: pointer;
  outline: none;
  height: 140px;
  box-sizing: border-box;
  overflow: hidden;
}
.latest-studio-scope .h3-image-dropzone img,
.latest-studio-scope .h3-image-dropzone .h3-placeholder {
  display: grid;
  height: 100%;
  border-radius: 9px;
}
.latest-studio-scope .h3-image-dropzone .h3-image-help {
  text-align: center;
  margin: 0;
  padding: 8px;
  line-height: 1.8;
}
.latest-studio-scope .h3-image-dropzone:focus,
.latest-studio-scope .h3-image-dropzone.is-dragging {
  border-color: var(--brand,#2459df);
  background: var(--surface,#f1f5ff);
}
.latest-studio-scope .h3-image-dropzone[aria-disabled=true] {
  cursor: default;
  opacity: .7;
}
.latest-studio-scope .h3-image-dropzone[draggable=true] {
  cursor: grab;
  transition:
    border-color .18s,
    box-shadow .18s,
    opacity .18s;
}
.latest-studio-scope .h3-image-dropzone[draggable=true]:active {
  cursor: grabbing;
}
.latest-studio-scope .h3-image-dropzone.is-moving {
  opacity: .5;
}
.latest-studio-scope .h3-image-dropzone.is-dragging {
  box-shadow: 0 0 0 3px rgba(36, 89, 223, .13);
}
.latest-studio-scope .h3-image-help {
  display: block;
  color: var(--ink-3,#64748b);
  font-size: 12px;
  line-height: 1.5;
  margin: 8px 0;
}
.latest-studio-scope .h3-image-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
  margin-bottom: 8px;
}
.latest-studio-scope .h3-image-slot > small {
  display: block;
  line-height: 1.5;
}
.latest-studio-scope .h3-workspace {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.latest-studio-scope .h3-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-left: auto;
}
.latest-studio-scope .h3-mode-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.latest-studio-scope .h3-mode-control select {
  height: 40px;
  min-width: 128px;
  font-weight: 400;
}
.latest-studio-scope .h3-header-actions > .btn {
  min-height: 40px;
}
@media (max-width:650px) {
  .latest-studio-scope .h3-header-actions {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }
  .latest-studio-scope .h3-mode-control select {
    min-width: 110px;
  }
}
.latest-studio-scope .h3-task-metrics .h3-segment-remaining {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-produced-link {
  font-size: 13px;
  color: var(--brand,#2459df);
  text-decoration: none;
}
.latest-studio-scope .h3-produced-link:hover {
  text-decoration: underline;
}
.latest-studio-scope #studio-results {
  scroll-margin-top: 100px;
}
.latest-studio-scope .h3-stop-dialog {
  border: 0;
  margin: auto;
  color: var(--ink,#102544);
}
.latest-studio-scope .h3-stop-dialog:not([open]) {
  display: none;
}
.latest-studio-scope .h3-stop-dialog::backdrop {
  background: rgba(15, 23, 42, .5);
  backdrop-filter: blur(3px);
}
.latest-studio-scope .h3-prompt-editor.is-dragging textarea {
  border-color: var(--brand,#2459df);
  background: #f5f8ff;
  box-shadow: 0 0 0 2px rgba(36, 89, 223, .1);
}
.latest-studio-scope .h3-prompt-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.latest-studio-scope .h3-prompt-import {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.latest-studio-scope .h3-prompt-import .btn {
  min-width: 96px;
  height: 34px;
  padding: 0 12px;
  font-size: 13px;
}
.latest-studio-scope .h3-prompt-import .h3-field-hint {
  margin: 0;
}
.latest-studio-scope .h3-header .h3-creation-title {
  font-size: 24px;
}
.latest-studio-scope .h3-studio .h3-inputs > h2,
.latest-studio-scope .h3-studio .h3-results > h2 {
  font-size: 18px;
  font-weight: 700;
}
.latest-studio-scope .h3-step-heading {
  margin: 24px 0 12px;
}
.latest-studio-scope .h3-step-heading h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}
.latest-studio-scope .h3-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #eaf0ff;
  color: var(--brand,#2459df);
  font-size: 13px;
  font-weight: 600;
}
.latest-studio-scope .h3-step-heading p,
.latest-studio-scope .h3-field-hint {
  margin: 6px 0 0;
  color: var(--ink-2,#64748b);
  font-size: 13px;
  line-height: 1.7;
}
.latest-studio-scope .h3-inputs .h3-row > label {
  font-size: 14px;
  font-weight: 600;
}
.latest-studio-scope .h3-inputs select,
.latest-studio-scope .h3-inputs input {
  font-weight: 400;
}
.latest-studio-scope .h3-field-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}
.latest-studio-scope .h3-required-label {
  padding: 1px 6px;
  border-radius: 4px;
  background: #fff0ef;
  color: #c1372d;
  font-size: 12px;
  font-weight: 500;
}
.latest-studio-scope .h3-step-heading + .h3-images {
  margin-top: 12px;
}
.latest-studio-scope .h3-results > h2 + .h3-field-hint {
  margin-top: -4px;
  margin-bottom: 16px;
}
@media (max-width:650px) {
  .latest-studio-scope .h3-header .h3-creation-title {
    font-size: 22px;
  }
}
.latest-studio-scope .h3-studio .h3-prompt-check {
  width: auto;
  min-width: 104px;
  padding: 0 14px;
  flex: none;
  white-space: nowrap;
  justify-content: center;
  gap: 6px;
}
.latest-studio-scope .h3-check-icon {
  display: inline-block;
  flex: none;
  width: 16px;
  height: 16px;
  box-sizing: border-box;
}
.latest-studio-scope .h3-action-feedback {
  flex: 0 1 240px;
  min-height: 20px;
  line-height: 20px;
  font-size: 13px;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-check-report {
  margin: 16px 0;
  border: 1px solid var(--line,#dce3ee);
  border-radius: 12px;
  padding: 16px;
  background: var(--surface,#fff);
}
.latest-studio-scope .h3-check-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-check-summary h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.latest-studio-scope .h3-check-summary p {
  margin: 0;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-check-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-check-details {
  max-height: 420px;
  overflow: auto;
  overscroll-behavior: contain;
  margin-top: 14px;
  border-top: 1px solid var(--line,#dce3ee);
  padding-top: 8px;
}
.latest-studio-scope .h3-check-details[hidden] {
  display: none;
}
.latest-studio-scope .h3-check-explanation {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
}
.latest-studio-scope .h3-check-category {
  border: 1px solid var(--line,#dce3ee);
  border-radius: 8px;
  padding: 10px;
}
.latest-studio-scope .h3-check-category > summary {
  font-weight: 600;
}
.latest-studio-scope .h3-check-occurrences {
  max-height: 280px;
  overflow: auto;
  overscroll-behavior: contain;
  padding-right: 8px;
}
.latest-studio-scope .h3-check-occurrences:focus-visible {
  outline: 2px solid var(--brand,#2459df);
  outline-offset: 2px;
}
.latest-studio-scope .h3-check-group > summary {
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.latest-studio-scope .h3-check-count {
  margin-left: 8px;
  color: var(--ink-2,#64748b);
  white-space: nowrap;
}
.latest-studio-scope .h3-check-group ul {
  padding-left: 22px;
}
.latest-studio-scope .h3-check-group li {
  padding: 8px 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.latest-studio-scope .h3-check-group li p {
  margin: 6px 0;
}
.latest-studio-scope .h3-review > details {
  max-height: 320px;
  overflow: auto;
  overscroll-behavior: contain;
}
.latest-studio-scope .h3-studio .h3-generate-button {
  width: auto;
  min-width: 120px;
  padding: 0 20px;
  flex: none;
  white-space: nowrap;
  justify-content: center;
  gap: 8px;
}
.latest-studio-scope .h3-generate-button .machine-creation-spinner {
  border-color: rgba(255, 255, 255, .4);
  border-top-color: currentColor;
}
.latest-studio-scope .h3-studio .h3-generate-button.is-generating {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  opacity: 1;
}
.latest-studio-scope .h3-generate-button.is-generating::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      100deg,
      transparent 20%,
      rgba(255, 255, 255, .2) 50%,
      transparent 80%);
  transform: translateX(-100%);
  animation: latest-h3-generation-shimmer 2.8s ease-in-out infinite;
}
@keyframes latest-h3-generation-shimmer {
  0%, 15% {
    transform: translateX(-100%);
  }
  85%, 100% {
    transform: translateX(100%);
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .h3-generate-button.is-generating::after {
    animation: none;
    display: none;
  }
}
.latest-studio-scope .h3-generation-guidance {
  min-height: 0;
  line-height: 20px;
  font-size: 13px;
  color: var(--ink-2,#64748b);
  overflow-wrap: anywhere;
  margin: 8px 0;
}
.latest-studio-scope .h3-action-feedback {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.latest-studio-scope .h3-analysis-hourglass {
  flex: none;
  font-size: 16px;
  line-height: 20px;
}
.latest-studio-scope .h3-task-progress {
  margin: 16px 0;
  padding: 18px;
  border: 1px solid var(--line,#dce3ee);
  border-radius: 12px;
  background: var(--surface,#f8faff);
}
@property --latest-h3-border-angle { syntax:"<angle>";inherits:false;initial-value:0deg }
.latest-studio-scope .h3-task-progress.is-generating {
  position: relative;
  isolation: isolate;
}
.latest-studio-scope .h3-task-progress.is-generating::before {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 2px;
  border-radius: inherit;
  pointer-events: none;
  background:
    conic-gradient(
      from var(--latest-h3-border-angle),
      transparent 0deg 235deg,
      #c4b5fd 275deg,
      #7954ed 305deg,
      #22c8f3 335deg,
      transparent 360deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  filter: drop-shadow(0 0 3px rgba(94, 104, 245, .3));
  animation: latest-h3-border-orbit 24s linear infinite;
}
@keyframes latest-h3-border-orbit {
  to {
    --latest-h3-border-angle:360deg;
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .h3-task-progress.is-generating::before {
    animation: none;
  }
}
.latest-studio-scope .h3-task-progress-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-task-progress-heading > span:last-child {
  margin-left: auto;
  color: var(--ink-2,#64748b);
  font-size: 13px;
}
.latest-studio-scope .h3-task-phases {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  list-style: none;
  margin: 16px 0;
  padding: 0;
}
.latest-studio-scope .h3-task-phases li {
  padding: 6px 10px;
  background: var(--bg,#eef2f7);
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-task-phases .is-current {
  color: var(--brand,#2459df);
  background: #e8efff;
  font-weight: 600;
}
.latest-studio-scope .h3-task-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.latest-studio-scope .h3-task-metrics > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.latest-studio-scope .h3-task-metrics span,
.latest-studio-scope .h3-progress-note {
  color: var(--ink-2,#64748b);
  font-size: 12px;
}
.latest-studio-scope .h3-task-metrics strong {
  font-size: 14px;
  overflow-wrap: anywhere;
  font-weight: 500;
}
.latest-studio-scope .h3-real-progress {
  margin-top: 16px;
}
.latest-studio-scope .h3-real-progress label {
  font-size: 13px;
}
.latest-studio-scope .h3-real-progress progress {
  display: block;
  width: 100%;
  height: 10px;
  margin-top: 8px;
  accent-color: var(--brand,#2459df);
}
.latest-studio-scope .h3-progress-note {
  margin: 12px 0 0;
  line-height: 1.6;
}
.latest-studio-scope .h3-task-followup {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 16px 0;
}
.latest-studio-scope .h3-task-followup span {
  font-size: 12px;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-result-media video,
.latest-studio-scope .h3-result-media img {
  border-radius: 8px;
}
.latest-studio-scope .h3-result-media p {
  font-size: 13px;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-real-progress .h3-progress-native {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.latest-studio-scope .h3-progress-track {
  height: 14px;
  margin-top: 12px;
  padding: 2px;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid #dbe5fa;
  border-radius: 999px;
  background:
    linear-gradient(
      180deg,
      #e8eef8,
      #f3f6fc);
  box-shadow: inset 0 1px 3px rgba(35, 66, 125, .1);
}
.latest-studio-scope .h3-progress-fill {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background:
    linear-gradient(
      90deg,
      #3258f5 0%,
      #7954ed 48%,
      #22c8f3 100%);
  box-shadow: 0 0 12px rgba(79, 104, 244, .45), inset 0 1px 1px rgba(255, 255, 255, .55);
  transition: width .55s ease;
}
.latest-studio-scope .h3-progress-fill::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      115deg,
      transparent 0 12px,
      rgba(255, 255, 255, .17) 12px 20px);
  background-size: 44px 100%;
}
.latest-studio-scope .h3-progress-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      100deg,
      transparent 25%,
      rgba(255, 255, 255, .65) 50%,
      transparent 75%);
  transform: translateX(-100%);
}
.latest-studio-scope .h3-progress-track.is-active .h3-progress-fill::before {
  animation: latest-h3-progress-flow 1.5s linear infinite;
}
.latest-studio-scope .h3-progress-track.is-active .h3-progress-fill::after {
  animation: latest-h3-progress-glint 2.6s ease-in-out infinite;
}
.latest-studio-scope .h3-terminal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-terminal-heading h2 {
  margin: 0 0 6px;
}
.latest-studio-scope .h3-terminal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-terminal-actions label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #536681;
}
.latest-studio-scope .h3-terminal-output {
  margin-top: 16px;
  padding: 18px 20px;
  max-height: 380px;
  min-height: 160px;
  overflow: auto;
  border: 1px solid #263651;
  border-radius: 10px;
  background: #101827;
  color: #b7e5c3;
  font:
    12px/1.8 Consolas,
    "Cascadia Code",
    monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  tab-size: 4;
  scrollbar-color: #4c607e #101827;
}
.latest-studio-scope .h3-terminal-output .is-error {
  color: #ff9b9b;
}
.latest-studio-scope .h3-terminal-output .is-warning {
  color: #f2d48b;
}
.latest-studio-scope .h3-terminal-empty {
  color: #8c9bb0;
}
.latest-studio-scope .h3-terminal-section > .h3-field-hint {
  margin-top: 12px;
}
@keyframes latest-h3-progress-flow {
  to {
    background-position: 44px 0;
  }
}
@keyframes latest-h3-progress-glint {
  0%, 10% {
    transform: translateX(-100%);
  }
  90%, 100% {
    transform: translateX(100%);
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .h3-progress-fill {
    transition: none;
  }
  .latest-studio-scope .h3-progress-track.is-active .h3-progress-fill::before,
  .latest-studio-scope .h3-progress-track.is-active .h3-progress-fill::after {
    animation: none;
  }
  .latest-studio-scope .h3-progress-fill::after {
    display: none;
  }
}
.latest-studio-scope .h3-final-video {
  margin: 24px 0;
  padding: 24px 0;
  border-top: 1px solid var(--line,#dce3ee);
  border-bottom: 1px solid var(--line,#dce3ee);
}
.latest-studio-scope .h3-final-video h3 {
  margin: 0 0 8px;
  font-size: 20px;
}
.latest-studio-scope .h3-final-video > p {
  margin: 0 0 18px;
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-final-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 680px;
  object-fit: contain;
  background: #0f172a;
}
.latest-studio-scope .h3-final-video-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
}
.latest-studio-scope .h3-machine-identity {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 24px;
  font-size: 13px;
  line-height: 1.6;
}
.latest-studio-scope .h3-provider-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}
.latest-studio-scope .h3-provider-id {
  user-select: text;
  overflow-wrap: anywhere;
}
.latest-studio-scope .h3-provider-identity > span {
  min-width: 0;
}
.latest-studio-scope .h3-provider-identity [role=status] {
  color: var(--ink-2);
}
.latest-studio-scope .h3-machine-specs {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 24px;
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.6;
}
.latest-studio-scope .h3-advanced-info > p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.6;
}
.latest-studio-scope .h3-creation-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.latest-studio-scope .h3-creation-origin {
  display: inline-flex;
  align-items: center;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}
.latest-studio-scope .h3-creation-origin .h3-origin-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 1.3em;
  height: 1.3em;
  padding: 0 .12em;
  margin-left: 4px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 1em;
  font-weight: inherit;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.latest-studio-scope .h3-task-progress {
  padding: 22px 24px;
  background:
    linear-gradient(
      145deg,
      #fff 55%,
      #f6f8ff);
  box-shadow: 0 3px 16px rgba(26, 53, 110, .035);
}
.latest-studio-scope .h3-task-progress.is-complete {
  border-color: #d4e9e2;
  background:
    linear-gradient(
      125deg,
      #fff 45%,
      #f0faf6);
}
.latest-studio-scope .h3-task-progress-heading > strong {
  font-size: 16px;
  font-weight: 650;
}
.latest-studio-scope .h3-status-emblem {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #eaf0ff;
  color: #3560e7;
  font-size: 18px;
}
.latest-studio-scope .h3-status-emblem.is-complete {
  background: #dcf5e9;
  color: #15835c;
}
.latest-studio-scope .h3-task-phases {
  gap: 0;
  flex-wrap: nowrap;
  margin: 24px 0;
  padding: 0 0 22px;
  border-bottom: 1px solid #e6ebf3;
}
.latest-studio-scope .h3-task-phases li {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  gap: 8px;
  padding: 0;
  background: none;
  border-radius: 0;
  white-space: nowrap;
  font-size: 13px;
}
.latest-studio-scope .h3-task-phases li:not(:last-child)::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #dfe6f1;
  margin: 0 14px;
}
.latest-studio-scope .h3-phase-dot {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #edf1f7;
  color: #8290a7;
  font-size: 12px;
  font-weight: 600;
}
.latest-studio-scope .h3-task-phases li.is-current {
  color: #2459df;
  background: none;
  font-weight: 650;
}
.latest-studio-scope .h3-task-phases .is-current .h3-phase-dot {
  background: #2d5be9;
  color: white;
  box-shadow: 0 0 0 4px #eaf0ff;
}
.latest-studio-scope .h3-task-phases li.is-done {
  color: #326754;
}
.latest-studio-scope .h3-task-phases .is-done .h3-phase-dot {
  background: #e1f3ea;
  color: #16825c;
}
.latest-studio-scope .h3-task-phases .is-done::after {
  background: #bfdece;
}
.latest-studio-scope .h3-task-metrics {
  align-items: start;
  gap: 20px;
}
.latest-studio-scope .h3-task-metrics .h3-current-summary {
  padding: 2px 0;
  gap: 9px;
}
.latest-studio-scope .h3-current-summary > strong {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
}
.latest-studio-scope .h3-task-metrics > div > span:first-child {
  font-size: 12px;
  color: #7a879c;
}
.latest-studio-scope .h3-task-metrics .h3-segment-summary {
  position: relative;
  padding: 0 160px 0 20px;
  border-left: 1px solid #e1e8ef;
  min-height: 76px;
  justify-content: center;
}
.latest-studio-scope .h3-task-metrics .h3-segment-count {
  font-size: 28px;
  font-weight: 650;
  line-height: 1.3;
  color: #2459df;
  font-variant-numeric: tabular-nums;
}
.latest-studio-scope .h3-segment-count small {
  font-size: 14px;
  color: #7a879c;
  font-weight: 400;
}
.latest-studio-scope .h3-segment-summary .h3-produced-link {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 9px;
  background: #eaf0ff;
  color: #2459df;
  font-size: 13px;
  font-weight: 600;
  transition: background .2s, box-shadow .2s;
}
.latest-studio-scope .h3-segment-summary .h3-produced-link:hover {
  background: #dde7ff;
  text-decoration: none;
  box-shadow: 0 3px 10px #2459df15;
}
.latest-studio-scope .h3-produced-link:focus-visible {
  outline: 2px solid #2459df;
  outline-offset: 3px;
}
@media (max-width:850px) {
  .latest-studio-scope .h3-task-phases li {
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
  }
  .latest-studio-scope .h3-task-phases li:not(:last-child)::after {
    position: absolute;
    top: 13px;
    left: calc(50% + 21px);
    right: calc(-50% + 21px);
    margin: 0;
  }
  .latest-studio-scope .h3-task-metrics .h3-segment-summary {
    padding-right: 0;
  }
  .latest-studio-scope .h3-segment-summary .h3-produced-link {
    position: static;
    transform: none;
    align-self: flex-start;
    margin-top: 5px;
  }
}
@media (max-width:520px) {
  .latest-studio-scope .h3-task-progress {
    padding: 18px 14px;
  }
  .latest-studio-scope .h3-task-phases {
    margin: 22px 0 18px;
  }
  .latest-studio-scope .h3-task-phases li {
    font-size: 11px;
  }
  .latest-studio-scope .h3-phase-dot {
    width: 24px;
    height: 24px;
  }
  .latest-studio-scope .h3-task-metrics {
    grid-template-columns: 1fr;
  }
  .latest-studio-scope .h3-task-metrics .h3-segment-summary {
    padding: 14px 0 0;
    border-left: 0;
    border-top: 1px solid #e1e8ef;
  }
}
.latest-studio-scope .h3-result-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 24px 0 16px;
}
.latest-studio-scope .h3-result-section-heading h3 {
  margin: 0;
}
.latest-studio-scope .h3-result-section-heading .btn {
  white-space: nowrap;
}
.latest-studio-scope .h3-segment-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.latest-studio-scope .h3-segment-actions .btn {
  padding: 7px 10px;
  min-height: 34px;
  font-size: 12px;
}
.latest-studio-scope .h3-segment-regenerate {
  color: #2459df;
  border-color: #cbd9ff;
  background: #f5f8ff;
}
.latest-studio-scope .h3-merge-notice {
  padding: 12px 16px;
  border: 1px solid #f0d9a8;
  border-radius: 9px;
  background: #fff9ed;
  color: #92641a;
  font-size: 13px;
}
.latest-studio-scope .h3-segment-editor {
  width: min(880px, calc(100vw - 32px));
  max-height: 85vh;
  box-sizing: border-box;
  padding: 24px;
  border: 1px solid #dce3ee;
  border-radius: 16px;
  color: #142b4a;
  background: #fff;
  box-shadow: 0 24px 80px #10254430;
}
.latest-studio-scope .h3-segment-editor::backdrop {
  background: #10254470;
  backdrop-filter: blur(4px);
}
.latest-studio-scope .h3-segment-editor header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.latest-studio-scope .h3-segment-editor h2 {
  font-size: 20px;
  margin: 4px 0 8px;
}
.latest-studio-scope .h3-segment-editor label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 18px 0 8px;
}
.latest-studio-scope .h3-segment-editor textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 320px;
  resize: vertical;
  line-height: 1.8;
  font-size: 14px;
  border: 1px solid #ccd8eb;
  border-radius: 10px;
  padding: 14px;
}
.latest-studio-scope .h3-segment-editor footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.latest-studio-scope .h3-editor-error {
  font-size: 13px;
  color: #c13737;
}
.latest-studio-scope .h3-segment-editor textarea:focus {
  outline: 2px solid #bad0ff;
  border-color: #2459df;
}
@media (max-width:650px) {
  .latest-studio-scope .h3-segment-editor {
    padding: 18px;
  }
  .latest-studio-scope .h3-segment-editor textarea {
    min-height: 240px;
  }
  .latest-studio-scope .h3-result-section-heading > .btn {
    width: 100%;
  }
}
.latest-studio-scope .main.main-studio {
  padding-top: 20px;
}
.latest-studio-scope .main-studio .h3-studio {
  padding-top: 0;
}
.latest-studio-scope .h3-header h1 {
  margin-top: 0;
}
.latest-studio-scope .h3-input-lock-note {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #edf3ff;
  color: #365c9b;
  font-size: 13px;
  line-height: 1.7;
}
.latest-studio-scope .h3-inputs textarea[readonly] {
  background: #f7f9fc;
  color: #53627a;
  cursor: default;
}
.latest-studio-scope .h3-patient-hint {
  margin: 18px 0 0;
  padding: 11px 14px;
  border-radius: 9px;
  background: #edf3ff;
  color: #4a6393;
  font-size: 13px;
  line-height: 1.8;
}
.latest-studio-scope .h3-check-reasons {
  margin: 12px 0;
  padding-left: 22px;
  font-size: 13px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.latest-studio-scope .h3-check-reasons span {
  color: var(--ink-2,#64748b);
}
.latest-studio-scope .h3-prompt-import .h3-prompt-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
  color: var(--ink-2,#64748b);
  transition:
    color .18s,
    border-color .18s,
    background .18s;
}
.latest-studio-scope .h3-prompt-import .h3-prompt-clear:not(:disabled):hover {
  color: #c1372d;
  border-color: #f1b8b3;
  background: #fff5f4;
}
.latest-studio-scope .h3-studio .h3-repair-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  color: #c1372d;
}
.latest-studio-scope .h3-repair-cancel:hover {
  background: #fff2f1;
  border-color: #f1b8b3;
}
.latest-studio-scope .h3-generation-guidance:empty {
  display: none;
}
.latest-studio-scope .h3-review-result.is-success {
  border-color: #c7e6d8;
  background: #f7fcf9;
}
.latest-studio-scope .h3-review-result.is-pending {
  border-color: #cddaff;
  background: #f8faff;
}
.latest-studio-scope .h3-review-verdict {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.latest-studio-scope .h3-review-status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff2df;
  color: #a86b12;
  font-size: 16px;
  font-weight: 700;
}
.latest-studio-scope .is-success .h3-review-status-icon {
  background: #e0f3e9;
  color: #23835b;
}
.latest-studio-scope .is-pending .h3-review-status-icon {
  background: #e9efff;
  color: var(--brand,#2459df);
}
.latest-studio-scope .h3-review-result .h3-check-summary p {
  font-size: 13px;
  line-height: 1.7;
}
.latest-studio-scope .h3-review-result .h3-check-summary h3 {
  font-size: 15px;
  margin-bottom: 3px;
}
.latest-studio-scope .h3-repair-proposal {
  margin-top: 14px;
  border-top: 1px solid var(--line,#dce3ee);
  padding-top: 12px;
}
.latest-studio-scope .h3-repair-proposal details {
  max-height: 320px;
  overflow: auto;
}
.latest-studio-scope .h3-repair-proposal-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.latest-studio-scope .h3-review-result.is-warning {
  border-color: #f0c9c5;
  background: #fffafa;
}
.latest-studio-scope .h3-review-result.is-warning .h3-review-verdict h3,
.latest-studio-scope .h3-review-result.is-warning .h3-review-verdict p,
.latest-studio-scope .h3-review-result.is-warning .h3-check-reasons,
.latest-studio-scope .h3-review-result.is-warning .h3-check-details {
  color: #b42318;
}
.latest-studio-scope .h3-review-result.is-warning .h3-review-status-icon {
  background: #fee9e7;
  color: #b42318;
}
.latest-studio-scope .h3-review-result.is-success .h3-review-verdict h3,
.latest-studio-scope .h3-review-result.is-success .h3-review-verdict p {
  color: #1f7a4f;
}
.latest-studio-scope .h3-log-summary {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #f1f5ff;
  border: 1px solid #dce5fa;
  color: #28466e;
}
.latest-studio-scope .h3-log-summary p {
  margin: 5px 0 0;
  font-size: 13px;
  line-height: 1.7;
}
.latest-studio-scope .h3-log-summary.is-success {
  background: #f3fbf7;
  border-color: #c4e9d7;
  color: #14805b;
}
.latest-studio-scope .h3-log-summary.is-error {
  background: #fff5f5;
  border-color: #f4caca;
  color: #b62b35;
}
.latest-studio-scope .h3-log-summary.is-warning {
  background: #fffbf1;
  border-color: #efdeb0;
  color: #88631b;
}
.latest-studio-scope .h3-log-view-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}
.latest-studio-scope .h3-log-view-controls [role=group] {
  display: flex;
  gap: 6px;
}
.latest-studio-scope .h3-log-view-controls button[aria-pressed=true] {
  background: #eef3ff;
  border-color: #b5c7fa;
  color: #2459d8;
}
.latest-studio-scope .h3-log-view-controls label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #536681;
  font-size: 13px;
}
.latest-studio-scope .h3-log-readable {
  max-height: 300px;
  overflow: auto;
  margin-top: 12px;
  border: 1px solid #e2e8f2;
  border-radius: 10px;
  padding: 4px 16px;
}
.latest-studio-scope .h3-log-readable ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
.latest-studio-scope .h3-log-readable li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid #edf0f6;
  font-size: 13px;
  line-height: 1.7;
  color: #344b68;
}
.latest-studio-scope .h3-log-readable li:last-child {
  border-bottom: 0;
}
.latest-studio-scope .h3-log-readable time {
  color: #71829a;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.latest-studio-scope .h3-log-readable small {
  color: #71829a;
}
.latest-studio-scope .h3-log-readable .is-warning {
  color: #88631b;
}
.latest-studio-scope .h3-log-readable .is-error {
  color: #b62b35;
}
.latest-studio-scope .h3-log-readable .is-success {
  color: #14805b;
}
.latest-studio-scope .h3-terminal-output[hidden] {
  display: none;
}
.latest-studio-scope .h3-workspace-tabs {
  display: flex;
  align-items: flex-end;
  gap: 0;
  margin-top: 24px;
  padding: 10px 18px 0;
  border: 1px solid var(--line,#dce3ee);
  border-radius: 14px 14px 0 0;
  background:
    linear-gradient(
      110deg,
      #f5f8ff,
      var(--surface,#fff) 75%);
  width: 100%;
  box-sizing: border-box;
}
.latest-studio-scope .h3-workspace-tabs [role=tab] {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  appearance: none;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  margin-bottom: -1px;
  background: transparent;
  color: #536681;
  padding: 14px 28px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background .2s,
    color .2s,
    box-shadow .2s,
    border-color .2s;
}
.latest-studio-scope .h3-workspace-tabs [role=tab]:hover {
  color: #2459df;
  background: #eaf1ff;
  box-shadow: inset 0 3px 12px #3775f50c;
}
.latest-studio-scope .h3-workspace-tabs [role=tab][aria-selected=true] {
  background:
    linear-gradient(
      180deg,
      #edf4ff 0%,
      var(--surface,#fff) 85%);
  border-color: var(--line,#dce3ee);
  color: #2459df;
  box-shadow: 0 -4px 14px #497cf519, inset 0 2px 0 #578bff;
  text-shadow: 0 0 14px #3775f52b;
}
.latest-studio-scope .h3-workspace-tabs [role=tab][aria-selected=true]::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(
      110deg,
      transparent 25%,
      #a9ceff40 50%,
      transparent 75%);
  transform: translateX(-120%);
  animation: latest-h3-tab-shine 4s ease-in-out infinite;
  pointer-events: none;
}
.latest-studio-scope .h3-workspace-tabs [role=tab]:focus-visible {
  outline: 2px solid #2459df;
  outline-offset: 3px;
}
.latest-studio-scope .h3-workspace-panel[hidden] {
  display: none !important;
}
.latest-studio-scope .h3-sync-status {
  margin: 12px 0 0;
  color: var(--ink-2,#64748b);
  font-size: 12px;
  line-height: 1.7;
}
@keyframes latest-h3-tab-shine {
  0%, 25% {
    transform: translateX(-120%);
  }
  65%, 100% {
    transform: translateX(120%);
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .h3-workspace-tabs [role=tab] {
    transition: none;
  }
  .latest-studio-scope .h3-workspace-tabs [role=tab][aria-selected=true]::after {
    animation: none;
    transform: none;
    opacity: .3;
  }
}
@media (max-width:520px) {
  .latest-studio-scope .h3-workspace-tabs {
    padding: 8px 8px 0;
    gap: 0;
  }
  .latest-studio-scope .h3-workspace-tabs [role=tab] {
    flex: 1;
    padding: 13px 8px;
    font-size: 13px;
  }
}
.latest-studio-scope .h3-workspace-panel > .card {
  margin-top: 0;
  padding: 24px;
  border-top: 0;
  border-radius: 0 0 14px 14px;
}
.latest-studio-scope .h3-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.latest-studio-scope .h3-studio .h3-panel-heading h2 {
  margin: .83em 0;
  font-size: 18px;
  font-weight: 700;
  line-height: normal;
  color: inherit;
}
.latest-studio-scope .h3-panel-heading h2 + .h3-field-hint {
  margin-top: -4px;
  margin-bottom: 16px;
}
.latest-studio-scope .h3-panel-heading .h3-terminal-actions {
  margin-top: 10px;
}
@media (max-width:650px) {
  .latest-studio-scope .h3-workspace-panel > .card {
    padding: 16px;
  }
}
.latest-studio-scope #studio-generation {
  scroll-margin-top: 130px;
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .latest-workbench {
    scroll-behavior: auto;
  }
}
.latest-studio-scope .h3-images {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.latest-studio-scope .latest-parameters {
  margin: 24px 0;
  padding: 20px;
  border: 1px dashed #bdcde4;
  background: #f6f9fe;
  border-radius: 12px;
}
.latest-studio-scope .latest-parameters > div {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.latest-studio-scope .latest-parameters p {
  font-size: 13px;
  line-height: 1.8;
  color: #64748b;
  margin: 10px 0 0;
}
.latest-studio-scope .latest-pending-badge {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 20px;
  background: #edf2fa;
  color: #526a90;
  font-size: 12px;
}
.latest-studio-scope .latest-pending-selection {
  font-size: 13px;
  color: #64748b;
  padding: 10px 0;
}
.latest-studio-scope .latest-workbench .h3-images {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.latest-studio-scope .latest-parameters .latest-parameter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.latest-studio-scope .latest-parameter-grid label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
}
.latest-studio-scope .latest-parameter-grid input,
.latest-studio-scope .latest-parameter-grid select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 9px 11px;
  background: white;
  border: 1px solid #d5dfef;
  border-radius: 8px;
  color: #18365c;
  font: inherit;
  font-weight: 400;
}
.latest-studio-scope .latest-parameter-grid input:focus,
.latest-studio-scope .latest-parameter-grid select:focus {
  outline: 2px solid #bdd0ff;
  outline-offset: 1px;
  border-color: #5784f5;
}
@media (max-width:900px) {
  .latest-studio-scope .latest-parameters .latest-parameter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width:650px) {
  .latest-studio-scope .latest-workbench .h3-images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width:480px) {
  .latest-studio-scope .latest-parameters .latest-parameter-grid {
    grid-template-columns: 1fr;
  }
}
.latest-studio-scope .h3-header {
  gap: 16px;
}
.latest-studio-scope .h3-header > div {
  min-width: 0;
}
@media (max-width:650px) {
  .latest-studio-scope .h3-images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .latest-studio-scope .h3-header {
    align-items: flex-start;
  }
  .latest-studio-scope .h3-header-actions {
    flex-wrap: wrap;
  }
  .latest-studio-scope .h3-studio h1 {
    font-size: 22px;
  }
}
@media (max-width:380px) {
  .latest-studio-scope .h3-images {
    grid-template-columns: 1fr;
  }
}
