/* 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/components/studio-upload-status.css */
.h3-upload-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 238px;
}
.h3-upload-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 24px;
  margin-bottom: 10px;
}
.h3-upload-heading > strong {
  margin: 0;
  font-size: 14px;
  line-height: 24px;
  white-space: nowrap;
  flex-shrink: 0;
}
.h3-upload-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  border-radius: 20px;
  padding: 3px 7px;
  background: #edf3ff;
  color: #2459df;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  white-space: nowrap;
}
.h3-upload-badge.is-queued {
  color: #64748b;
  background: #f0f3f8;
}
.h3-upload-badge.is-uploaded {
  color: #14835e;
  background: #eaf9f1;
}
.h3-upload-badge.is-failed {
  color: #c34747;
  background: #fff0ef;
}
.h3-upload-dot {
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
}
.is-uploading > .h3-upload-dot {
  animation: h3-upload-pulse 1.4s ease-in-out infinite;
}
.h3-upload-card .h3-image-dropzone {
  position: relative;
  flex-shrink: 0;
  background: #f6f8fc;
  transition: border-color .2s, box-shadow .2s;
}
.h3-upload-card .h3-image-dropzone[aria-disabled=true] {
  opacity: 1;
}
.h3-upload-card.is-uploading .h3-image-dropzone {
  border-style: solid;
  border-color: #bdd0ff;
  box-shadow: 0 0 0 3px #2459df08;
}
.h3-upload-card.is-queued .h3-image-dropzone {
  border-color: #cbd5e1;
}
.h3-upload-card.is-uploaded .h3-image-dropzone {
  border-style: solid;
  border-color: #c5e5d7;
}
.h3-upload-card.is-failed .h3-image-dropzone {
  border-color: #f0c1c1;
}
.h3-upload-card .h3-placeholder {
  align-content: center;
  gap: 5px;
}
.h3-upload-card .h3-image-help {
  font-size: 11px;
  line-height: 1.7;
  padding: 0 6px;
}
.h3-upload-empty-icon {
  width: 26px;
  height: 26px;
  margin: 0 auto;
  color: #94a8c8;
}
.h3-upload-overlay {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  padding: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background:
    linear-gradient(
      145deg,
      #f8fbffed,
      #eef4fff5);
  color: #2459df;
  pointer-events: none;
  backdrop-filter: blur(3px);
}
.h3-upload-overlay.is-queued {
  background:
    linear-gradient(
      145deg,
      #fafcffef,
      #f0f4f9f5);
  color: #71819b;
}
.h3-upload-orbit {
  position: relative;
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  margin-bottom: 2px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 3px 12px #2459df0c;
}
.h3-upload-orbit:before {
  content: "";
  position: absolute;
  inset: -1px;
  border: 2px solid #dce7ff;
  border-top-color: #3d6ef0;
  border-radius: 50%;
  animation: h3-upload-spin 1.2s linear infinite;
}
.h3-upload-overlay.is-queued .h3-upload-orbit:before {
  border-color: #dce3ed;
  animation: h3-upload-pulse 1.8s ease-in-out infinite;
}
.h3-upload-title {
  font-size: 14px;
  font-weight: 650;
  line-height: 20px;
}
.h3-upload-subtitle {
  font-size: 11px;
  line-height: 17px;
  color: #7890b3;
}
.h3-upload-track {
  display: block;
  position: relative;
  width: 100px;
  height: 3px;
  margin-top: 4px;
  border-radius: 6px;
  background: #dce7fc;
  overflow: hidden;
}
.h3-upload-track > span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 45%;
  border-radius: 6px;
  background:
    linear-gradient(
      90deg,
      #81a6ff,
      #3b6bf0);
  animation: h3-upload-slide 1.6s ease-in-out infinite;
}
.h3-upload-overlay.is-queued .h3-upload-track {
  background: #e0e6ef;
}
.h3-upload-overlay.is-queued .h3-upload-track > span {
  background: #aebbd0;
  animation-duration: 2.8s;
}
.h3-upload-card .h3-image-actions {
  margin: 11px 0 7px;
  gap: 7px;
  min-height: 36px;
}
.h3-upload-card .h3-image-actions .btn {
  min-height: 34px;
  font-size: 12px;
}
.h3-upload-feedback {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 31px;
  font-size: 11px;
  line-height: 17px;
  color: #91a0b6;
}
.h3-upload-feedback.is-uploading {
  color: #416ab8;
}
.h3-upload-feedback.is-uploaded {
  color: #19845f;
}
.h3-upload-feedback.is-failed {
  color: #c34747;
}
.h3-upload-indicator {
  display: grid;
  place-items: center;
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}
.h3-upload-indicator svg {
  width: 13px;
  height: 13px;
}
.h3-upload-indicator.is-spinning {
  box-sizing: border-box;
  border: 1.5px solid #cbdcff;
  border-top-color: #3b6bf0;
  border-radius: 50%;
  animation: h3-upload-spin .9s linear infinite;
}
.h3-upload-filename {
  flex-basis: 100%;
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #91a0b6;
  font-size: 10px;
}
@keyframes h3-upload-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes h3-upload-pulse {
  0%, 100% {
    opacity: .4;
  }
  50% {
    opacity: 1;
  }
}
@keyframes h3-upload-slide {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(330%);
  }
}
@media (max-width:480px) {
  .h3-images:has(.h3-upload-card) {
    grid-template-columns: minmax(0, 1fr);
  }
  .h3-upload-card .h3-image-help {
    font-size: 12px;
  }
  .h3-upload-card .h3-image-actions .btn {
    min-height: 38px;
  }
  .h3-upload-feedback {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion:reduce) {
  .h3-upload-card *,
  .h3-upload-card *:before {
    animation: none !important;
    transition: none !important;
  }
  .h3-upload-track > span {
    left: 28%;
  }
}

/* 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;
  }
}
.latest-studio-scope .latest-connection {
  font-size: 13px;
  color: #64748b;
  padding: 9px 13px;
  border-radius: 20px;
  background: #eef2f7;
}
.latest-studio-scope .latest-connection.is-ready {
  color: #13795b;
  background: #e8f8f1;
}
.latest-studio-scope .latest-message {
  padding: 14px 18px;
  border: 1px solid #d5e3ff;
  background: #f0f6ff;
  color: #31528a;
  border-radius: 10px;
  margin: 14px 0;
  line-height: 1.7;
}
.latest-studio-scope .latest-message.is-error {
  background: #fff4f3;
  color: #b1372f;
  border-color: #f2cfca;
}
.latest-studio-scope .latest-message button {
  float: right;
  border: 0;
  background: none;
  color: inherit;
  font-size: 20px;
}
.latest-studio-scope .latest-section-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 12px;
}
.latest-studio-scope .latest-section-label span {
  font-size: 13px;
  color: #6b7e96;
}
.latest-studio-scope .latest-reference-section {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid #dce5f0;
  border-radius: 12px;
  background: #fafcff;
}
.latest-studio-scope .latest-reference-section > summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 650;
}
.latest-studio-scope .latest-reference-section > summary span {
  float: right;
  font-size: 12px;
  font-weight: 400;
  color: #6b7e96;
}
.latest-studio-scope .latest-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.latest-studio-scope .latest-media-slot {
  padding: 16px;
  border: 1px solid #dce5f0;
  background: #fff;
  border-radius: 12px;
  min-width: 0;
}
.latest-studio-scope .latest-media-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 125px;
  gap: 10px;
  margin-top: 12px;
  background: #f5f8fd;
  border: 1px dashed #d5dfef;
  border-radius: 9px;
}
.latest-studio-scope .latest-media-placeholder > span {
  font-size: 26px;
  color: #416fea;
}
.latest-studio-scope .latest-media-placeholder p {
  margin: 0 8px;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
.latest-studio-scope .latest-media-placeholder small {
  font-size: 11px;
  color: #8290a5;
}
.latest-studio-scope .latest-upload-status {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: #3561d7;
  padding: 9px 0;
}
.latest-studio-scope .latest-upload-status .machine-creation-spinner {
  width: 15px;
  height: 15px;
  display: inline-block;
}
.latest-studio-scope .latest-image-uploading .h3-image-dropzone {
  background:
    linear-gradient(
      110deg,
      #f1f6ff,
      #e5eeff,
      #f1f6ff);
  background-size: 200% 100%;
  animation: latest-upload-glow 2s linear infinite;
}
.latest-studio-scope .latest-settings-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 18px;
}
.latest-studio-scope .latest-settings-main > label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.latest-studio-scope .latest-settings-main select {
  min-width: 115px;
}
.latest-studio-scope .latest-settings-main .latest-martial {
  margin-left: auto;
  padding: 14px 18px;
  border: 1px solid #dce5f0;
  border-radius: 10px;
  background: #f8faff;
}
.latest-studio-scope .latest-martial input {
  appearance: none;
  width: 38px;
  height: 22px;
  border-radius: 15px;
  background: #c7d2e2;
  border: 0;
  position: relative;
  cursor: pointer;
  transition: background .2s;
}
.latest-studio-scope .latest-martial input:after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
}
.latest-studio-scope .latest-martial input:checked {
  background: #2b5ef0;
}
.latest-studio-scope .latest-martial input:checked:after {
  transform: translateX(16px);
}
.latest-studio-scope .latest-martial strong,
.latest-studio-scope .latest-martial small {
  display: block;
}
.latest-studio-scope .latest-martial small {
  font-size: 12px;
  color: #6b7e96;
  margin-top: 5px;
}
.latest-studio-scope .latest-advanced {
  padding: 18px;
  margin-top: 20px;
  background: #f7f9fe;
  border: 1px dashed #cbd8ea;
  border-radius: 10px;
}
.latest-studio-scope .latest-advanced summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}
.latest-studio-scope .latest-advanced .latest-parameter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-top: 16px;
}
.latest-studio-scope .latest-range {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.latest-studio-scope .latest-range label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.latest-studio-scope .latest-range input {
  width: 78px;
}
.latest-studio-scope .latest-connected input:not([type=checkbox]):not([type=file]),
.latest-studio-scope .latest-connected select {
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #d4deed;
  border-radius: 8px;
  color: inherit;
  font: inherit;
  background: #fff;
  box-sizing: border-box;
}
.latest-studio-scope .latest-connected textarea {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  border: 1px solid #d4deed;
  border-radius: 10px;
  padding: 15px;
  line-height: 1.8;
  font: 13px/1.8 monospace;
  margin-top: 12px;
  min-height: 240px;
}
.latest-studio-scope .latest-connected input:focus-visible,
.latest-studio-scope .latest-connected select:focus-visible,
.latest-studio-scope .latest-connected textarea:focus-visible {
  outline: 2px solid #b9d0ff;
  outline-offset: 2px;
}
.latest-studio-scope .latest-connected input:disabled,
.latest-studio-scope .latest-connected select:disabled,
.latest-studio-scope .latest-connected textarea:disabled {
  background: #f2f5fa;
}
.latest-studio-scope .latest-save-settings {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
  margin: 20px 0;
}
.latest-studio-scope .latest-save-settings label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
}
.latest-studio-scope .latest-save-settings label input:not([type=checkbox]) {
  max-width: 230px;
}
.latest-studio-scope .latest-generate-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 20px 0;
}
.latest-studio-scope .latest-generate-actions > .btn-primary {
  min-width: 230px;
  min-height: 44px;
}
.latest-studio-scope .latest-generate-actions > span {
  font-size: 13px;
  color: #6b7e96;
}
.latest-studio-scope .latest-results-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.latest-studio-scope .latest-result-stamp {
  padding: 6px 12px;
  color: #a66420;
  border: 2px solid currentColor;
  border-radius: 5px;
  transform: rotate(-5deg);
  font-size: 19px;
  font-weight: 750;
  white-space: nowrap;
}
.latest-studio-scope .latest-result-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 22px 0 14px;
}
.latest-studio-scope .latest-segment-list {
  border: 1px solid #dde5f0;
  border-radius: 11px;
  margin-top: 20px;
  overflow: hidden;
}
.latest-studio-scope .latest-segment-list article {
  display: grid;
  grid-template-columns: 100px 90px minmax(90px, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 10px 16px;
  box-sizing: border-box;
  border-bottom: 1px solid #edf1f6;
  font-size: 13px;
}
.latest-studio-scope .latest-segment-list article:last-child {
  border-bottom: 0;
}
.latest-studio-scope .latest-segment-list article > div {
  display: flex;
  gap: 8px;
}
.latest-studio-scope .latest-segment-list .is-ready {
  color: #07845e;
}
.latest-studio-scope .latest-empty {
  padding: 60px 20px;
  text-align: center;
  color: #7d8da3;
  font-size: 14px;
}
.latest-studio-scope .latest-history {
  margin: 20px 0;
}
.latest-studio-scope .latest-history .btn {
  margin: 10px 8px 0 0;
  font-size: 12px;
}
.latest-studio-scope .latest-log-list {
  max-height: 540px;
  overflow: auto;
  margin-top: 24px;
  border: 1px solid #dce5f0;
  border-radius: 10px;
  padding: 6px 16px;
}
.latest-studio-scope .latest-log-list > div {
  display: flex;
  gap: 22px;
  padding: 13px 0;
  border-bottom: 1px solid #edf1f6;
  font-size: 13px;
  line-height: 1.7;
}
.latest-studio-scope .latest-log-list time {
  color: #7d8da3;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
@keyframes latest-upload-glow {
  to {
    background-position: -200% 0;
  }
}
@media (max-width:900px) {
  .latest-studio-scope .latest-advanced .latest-parameter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .latest-studio-scope .latest-settings-main .latest-martial {
    margin-left: 0;
  }
  .latest-studio-scope .latest-segment-list article {
    grid-template-columns: 70px 60px 1fr;
  }
  .latest-studio-scope .latest-segment-list article > div {
    grid-column: 1/-1;
    justify-content: flex-end;
  }
}
@media (max-width:650px) {
  .latest-studio-scope .latest-media-grid {
    grid-template-columns: 1fr;
  }
  .latest-studio-scope .latest-reference-section {
    padding: 14px;
  }
  .latest-studio-scope .latest-save-settings {
    display: block;
  }
  .latest-studio-scope .latest-save-settings label {
    margin: 12px 0;
  }
  .latest-studio-scope .latest-range {
    gap: 8px;
  }
  .latest-studio-scope .latest-range input {
    width: 62px;
  }
  .latest-studio-scope .latest-generate-actions > .btn-primary {
    flex: 1;
    min-width: 160px;
  }
  .latest-studio-scope .latest-results-heading {
    align-items: flex-start;
  }
}
@media (max-width:480px) {
  .latest-studio-scope .latest-advanced .latest-parameter-grid {
    grid-template-columns: 1fr;
  }
  .latest-studio-scope .latest-settings-main > label {
    flex: 1;
  }
  .latest-studio-scope .latest-settings-main .latest-martial {
    flex-basis: 100%;
  }
  .latest-studio-scope .latest-save-settings label input:not([type=checkbox]) {
    width: 100%;
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .latest-image-uploading .h3-image-dropzone {
    animation: none;
  }
}
.latest-studio-scope .latest-connected .h3-task-progress {
  scroll-margin-top: 135px;
}
.latest-studio-scope .latest-workbench .h3-upload-card {
  min-height: 294px;
  height: 100%;
  box-sizing: border-box;
}
.latest-studio-scope .latest-workbench .h3-upload-heading {
  min-height: 22px;
}
.latest-studio-scope .latest-workbench .h3-upload-status {
  margin-top: 10px;
}
.latest-studio-scope .latest-media-saved {
  display: block;
  color: #07876a;
  font-size: 12px;
  margin-top: 10px;
}
.latest-studio-scope .latest-upload-retry {
  margin-top: 8px;
}
.latest-studio-scope .latest-media-slot .h3-upload-track {
  display: inline-block;
  width: 100px;
}
.latest-studio-scope .latest-media-slot .latest-media-placeholder {
  min-height: 140px;
}
.latest-studio-scope .latest-settings-main .latest-martial-card {
  gap: 12px;
  padding: 16px;
  cursor: pointer;
  background:
    linear-gradient(
      135deg,
      #fafcff,
      #f3f7ff);
  border-color: #dce6f6;
  border-radius: 14px;
  box-shadow: 0 2px 7px #203d6910;
  transition:
    border-color .2s,
    box-shadow .2s,
    background .2s;
}
.latest-studio-scope .latest-martial-card:hover:not(.is-locked) {
  border-color: #9db9ff;
  box-shadow: 0 4px 14px #285be91c;
}
.latest-studio-scope .latest-martial-card:focus-within {
  outline: 2px solid #779cff;
  outline-offset: 3px;
}
.latest-studio-scope .latest-settings-main .latest-martial-card.is-enabled {
  background:
    linear-gradient(
      135deg,
      #edf4ff,
      #f5f1ff);
  border-color: #9ab8ff;
  box-shadow: 0 3px 12px #406bf21a;
}
.latest-studio-scope .latest-martial-emblem {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #eaf0fb;
  color: #7c90b1;
  transition: color .2s, background .2s;
}
.latest-studio-scope .is-enabled .latest-martial-emblem {
  color: #3664eb;
  background: #dfe9ff;
}
.latest-studio-scope .latest-martial-copy {
  min-width: 0;
}
.latest-studio-scope .latest-martial-copy strong {
  font-size: 14px;
  line-height: 1.5;
  color: #203552;
}
.latest-studio-scope .latest-martial-copy small {
  font-size: 11px;
  line-height: 1.6;
  margin-top: 3px;
}
.latest-studio-scope .latest-martial-control {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  flex-shrink: 0;
}
.latest-studio-scope .latest-martial-status {
  font-size: 11px;
  white-space: nowrap;
  color: #8190a6;
}
.latest-studio-scope .is-enabled .latest-martial-status {
  color: #3966dc;
}
.latest-studio-scope .latest-martial-card input {
  flex-shrink: 0;
  margin: 0;
  width: 42px;
  height: 24px;
  box-shadow: inset 0 1px 3px #122e4620;
}
.latest-studio-scope .latest-martial-card input:after {
  width: 18px;
  height: 18px;
  box-shadow: 0 1px 3px #142c4b33;
}
.latest-studio-scope .latest-martial-card input:checked:after {
  transform: translateX(18px);
}
.latest-studio-scope .latest-martial-card.is-locked {
  cursor: not-allowed;
  opacity: .65;
}
.latest-studio-scope .latest-martial-card input:disabled {
  cursor: not-allowed;
}
@media (max-width:480px) {
  .latest-studio-scope .latest-settings-main .latest-martial-card {
    padding: 14px 12px;
    gap: 9px;
  }
  .latest-studio-scope .latest-martial-emblem {
    width: 30px;
    height: 34px;
  }
  .latest-studio-scope .latest-martial-control {
    margin-left: auto;
    gap: 4px;
  }
  .latest-studio-scope .latest-martial-status {
    display: none;
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .latest-martial-card,
  .latest-studio-scope .latest-martial-card input,
  .latest-studio-scope .latest-martial-card input:after,
  .latest-studio-scope .latest-martial-emblem {
    transition: none;
  }
}
.latest-studio-scope .latest-prompt-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}
.latest-studio-scope .latest-prompt-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
}
.latest-studio-scope .latest-prompt-actions .latest-prompt-clear {
  min-width: 38px;
  width: 38px;
  padding: 0;
  color: #7d8ba1;
}
.latest-studio-scope .latest-prompt-clear:not(:disabled):hover {
  color: #d04443;
  background: #fff2f1;
  border-color: #f2b9b5;
}
.latest-studio-scope .latest-prompt-copy:not(:disabled):hover {
  color: #2b5fe7;
  background: #f0f5ff;
  border-color: #b9ceff;
}
.latest-studio-scope .latest-resolution-hint {
  font-size: 12px;
  color: #8292aa;
  line-height: 1.6;
}
.latest-studio-scope .latest-prompt-actions .latest-prompt-undo {
  min-width: 38px;
  width: 38px;
  padding: 0;
  color: #55749e;
}
.latest-studio-scope .latest-prompt-undo:not(:disabled):hover {
  color: #2b5fe7;
  background: #f0f5ff;
  border-color: #b9ceff;
}

/* apps/web/src/pages/latest/latest-results.css */
.latest-studio-scope .latest-results-table {
  background: #fff;
  border-color: #e1e8f2;
  border-radius: 12px;
}
.latest-studio-scope .latest-results-table .latest-segment-head,
.latest-studio-scope .latest-results-table article {
  display: grid;
  grid-template-columns: 90px 100px minmax(130px, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px 20px;
}
.latest-studio-scope .latest-results-table .latest-segment-head {
  background: #f6f8fc;
  color: #72819a;
  font-size: 12px;
  font-weight: 600;
  border-bottom: 1px solid #e8edf5;
}
.latest-studio-scope .latest-results-table .latest-segment-head > span:last-child {
  text-align: right;
}
.latest-studio-scope .latest-results-table article {
  min-height: 80px;
  font-size: 14px;
}
.latest-studio-scope .latest-segment-name {
  white-space: nowrap;
  color: #182d4c;
}
.latest-studio-scope .latest-segment-duration {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: #687994;
}
.latest-studio-scope .latest-segment-state {
  justify-self: start;
  line-height: 1.5;
  color: #526886;
  padding: 5px 10px;
  background: #f2f5fa;
  border-radius: 6px;
  overflow-wrap: anywhere;
}
.latest-studio-scope .latest-segment-state.is-ready {
  color: #07845e;
  background: #edf9f3;
}
.latest-studio-scope .latest-results-table article > .latest-segment-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  grid-column: auto;
  flex-wrap: wrap;
}
.latest-studio-scope .latest-segment-actions .btn {
  font-size: 13px;
  min-height: 38px;
  white-space: nowrap;
  padding: 8px 12px;
}
.latest-studio-scope .latest-segment-editor-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 29, 51, .38);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.latest-studio-scope .latest-segment-editor {
  box-sizing: border-box;
  width: min(900px, 100%);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  padding: 26px;
  background: #fff;
  border: 1px solid #dce5f2;
  border-radius: 16px;
  box-shadow: 0 22px 70px #14284433;
}
.latest-studio-scope .latest-segment-editor-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.latest-studio-scope .latest-segment-editor-heading h2 {
  margin: 0;
  font-size: 20px;
}
.latest-studio-scope .latest-segment-editor p {
  font-size: 13px;
  line-height: 1.8;
  color: #6b7d96;
  margin: 14px 0 20px;
}
.latest-studio-scope .latest-segment-editor textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 280px;
  max-height: 48dvh;
  resize: vertical;
  padding: 16px;
  margin-top: 10px;
  border: 1px solid #cedbf0;
  border-radius: 10px;
  font:
    14px/1.8 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  color: #19314f;
  background: #fbfcff;
}
.latest-studio-scope .latest-segment-editor textarea:focus {
  outline: 2px solid #d9e4ff;
  border-color: #799bff;
}
.latest-studio-scope .latest-segment-editor-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
@media (max-width:1050px) {
  .latest-studio-scope .latest-results-table .latest-segment-head,
  .latest-studio-scope .latest-results-table article {
    grid-template-columns: 75px 85px minmax(100px, 1fr) auto;
    gap: 10px;
    padding: 14px;
  }
  .latest-studio-scope .latest-segment-actions {
    max-width: 245px;
  }
}
@media (max-width:720px) {
  .latest-studio-scope .latest-results-table .latest-segment-head {
    display: none;
  }
  .latest-studio-scope .latest-results-table article {
    grid-template-columns: 75px 85px minmax(0, 1fr);
    gap: 12px;
  }
  .latest-studio-scope .latest-results-table article > .latest-segment-actions {
    grid-column: 1/-1;
    justify-content: flex-start;
    max-width: none;
  }
  .latest-studio-scope .latest-segment-editor-backdrop {
    padding: 12px;
  }
  .latest-studio-scope .latest-segment-editor {
    padding: 18px;
    max-height: calc(100dvh - 24px);
  }
  .latest-studio-scope .latest-segment-editor textarea {
    min-height: 220px;
  }
}
.latest-studio-scope .latest-segment-editor p.latest-segment-editor-error {
  color: #c33131;
}
.latest-studio-scope .latest-live-summary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 22px 0 18px;
  padding: 22px 24px;
  border: 1px solid #dbe5f8;
  border-radius: 14px;
  background:
    linear-gradient(
      115deg,
      #f3f7ff,
      #fcfdff);
  box-shadow: 0 4px 18px #2c5ac907;
}
.latest-studio-scope .latest-live-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}
.latest-studio-scope .latest-live-emblem {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  color: #315df4;
  background: #e4edff;
  font-size: 24px;
}
.latest-studio-scope .latest-live-heading strong {
  font-size: 18px;
  color: #193962;
  line-height: 1.5;
}
.latest-studio-scope .latest-live-heading p {
  margin: 5px 0 0;
  color: #73849d;
  font-size: 13px;
  line-height: 1.7;
}
.latest-studio-scope .latest-live-elapsed {
  margin-left: auto;
  white-space: nowrap;
  color: #4c668c;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  padding: 8px 12px;
  border: 1px solid #dfe7f5;
  border-radius: 8px;
  background: #ffffffa8;
}
.latest-studio-scope .latest-live-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid #e0e8f7;
  color: #7184a1;
  font-size: 13px;
}
.latest-studio-scope .latest-live-footer strong {
  color: #315df4;
  font-size: 16px;
}
.latest-studio-scope .latest-live-sampling {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 14px;
  font-size: 12px;
  color: #5477b2;
}
.latest-studio-scope .latest-live-sampling progress {
  height: 6px;
  flex: 1;
  min-width: 80px;
  accent-color: #4778ff;
  border-radius: 10px;
  overflow: hidden;
}
.latest-studio-scope .latest-live-flow {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background:
    linear-gradient(
      90deg,
      transparent,
      #91bdff,
      #3e70fa,
      transparent);
  background-size: 200% 100%;
  animation: latest-execution-flow 2.6s linear infinite;
  pointer-events: none;
}
.latest-studio-scope .latest-results-table article.latest-segment-row {
  position: relative;
  isolation: isolate;
  transition: background-color .3s, box-shadow .3s;
}
.latest-studio-scope .latest-results-table article.latest-segment-row.is-working {
  background:
    linear-gradient(
      110deg,
      #f1f6ff,
      #fbfdff);
  box-shadow: inset 3px 0 #4275ff;
}
.latest-studio-scope .latest-segment-row.is-working::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  background:
    linear-gradient(
      100deg,
      transparent 20%,
      #b9d2ff 38%,
      #4d7bff 50%,
      #afceff 62%,
      transparent 80%);
  background-size: 250% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: latest-execution-flow 3s linear infinite;
  pointer-events: none;
}
.latest-studio-scope .latest-segment-row.is-working .latest-segment-name {
  color: #2855c5;
}
.latest-studio-scope .latest-segment-state.is-working {
  color: #2e5bcf;
  background: #e7efff;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  white-space: nowrap;
}
.latest-studio-scope .latest-segment-state.is-waiting {
  color: #8391a6;
  background: #f4f6f9;
}
.latest-studio-scope .latest-segment-state small {
  font-size: 12px;
  font-weight: 400;
}
.latest-studio-scope .latest-segment-running-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border: 2px solid #b8ceff;
  border-top-color: #3c6ef0;
  border-radius: 50%;
  animation: latest-execution-spin 1s linear infinite;
}
@keyframes latest-execution-flow {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -50% 0;
  }
}
@keyframes latest-execution-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width:720px) {
  .latest-studio-scope .latest-live-summary {
    padding: 18px 16px;
  }
  .latest-studio-scope .latest-live-heading {
    flex-wrap: wrap;
    gap: 10px;
  }
  .latest-studio-scope .latest-live-heading > div {
    flex: 1;
    min-width: 160px;
  }
  .latest-studio-scope .latest-live-heading strong {
    font-size: 16px;
  }
  .latest-studio-scope .latest-live-elapsed {
    margin-left: 52px;
  }
  .latest-studio-scope .latest-live-footer {
    flex-wrap: wrap;
    gap: 8px;
  }
  .latest-studio-scope .latest-live-sampling {
    flex-wrap: wrap;
    gap: 8px;
  }
  .latest-studio-scope .latest-segment-state.is-working {
    white-space: normal;
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .latest-live-flow,
  .latest-studio-scope .latest-segment-row.is-working::after,
  .latest-studio-scope .latest-segment-running-dot {
    animation: none;
  }
  .latest-studio-scope .latest-results-table article.latest-segment-row {
    transition: none;
  }
}
.latest-studio-scope .latest-live-sampling progress {
  appearance: none;
  -webkit-appearance: none;
  background: #e5edfc;
  border: 0;
}
.latest-studio-scope .latest-live-sampling progress::-webkit-progress-bar {
  background: #e5edfc;
  border-radius: 10px;
}
.latest-studio-scope .latest-live-sampling progress::-webkit-progress-value {
  background:
    linear-gradient(
      90deg,
      #729bff,
      #3c69f4);
  border-radius: 10px;
  transition: width .4s;
}
.latest-studio-scope .latest-live-sampling progress::-moz-progress-bar {
  background: #4d7bf5;
  border-radius: 10px;
}
@media (max-width:720px) {
  .latest-studio-scope .latest-results-table article {
    grid-template-columns: 60px 65px minmax(0, 1fr);
    gap: 8px;
  }
  .latest-studio-scope .latest-segment-state {
    padding: 5px 8px;
  }
  .latest-studio-scope .latest-workbench .h3-workspace-tabs {
    display: flex;
    flex-wrap: wrap;
  }
  .latest-studio-scope .latest-workbench .h3-workspace-tabs > button {
    flex: 1 1 auto;
    font-size: 12px;
    padding: 12px 8px;
    min-width: 0;
    white-space: normal;
    line-height: 1.5;
  }
}
.latest-studio-scope .latest-results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 12px 0 16px;
}
.latest-studio-scope .latest-results-toolbar > .h3-field-hint {
  margin: 0;
  flex: 1;
  min-width: 200px;
}
.latest-studio-scope .latest-results-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.latest-studio-scope .latest-results-page-count {
  font-size: 12px;
  color: #72839c;
  margin-right: 5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.latest-studio-scope .latest-results-pagination .btn {
  font-size: 13px;
  min-height: 36px;
  padding: 8px 12px;
}
.latest-studio-scope .latest-results-toolbar + .latest-results-table {
  margin-top: 0;
}
.latest-studio-scope .latest-result-stamp.latest-status-stamp {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 18px;
  line-height: 1.4;
  border-radius: 8px;
  border: 2px solid currentColor;
  box-shadow: 0 3px 10px #24478009;
  color: #7d8ba0;
  background: #fafbfd;
  transform: rotate(-4deg);
  white-space: nowrap;
  flex-shrink: 0;
}
.latest-studio-scope .latest-status-stamp .latest-stamp-icon {
  display: inline-grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  font-size: 15px;
  line-height: 1;
}
.latest-studio-scope .latest-status-stamp.is-running {
  color: #3167e3;
  background: #f0f5ff;
  box-shadow: 0 3px 14px #3976f51a;
}
.latest-studio-scope .latest-status-stamp.is-running::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  background:
    linear-gradient(
      110deg,
      transparent 15%,
      #aecbff 35%,
      #2459e5 50%,
      #a8caff 65%,
      transparent 85%);
  background-size: 220% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: latest-execution-flow 2.4s linear infinite;
  pointer-events: none;
}
.latest-studio-scope .latest-status-stamp.is-running .latest-stamp-icon {
  animation: latest-execution-spin 2s linear infinite;
}
.latest-studio-scope .latest-status-stamp.is-complete {
  color: #078657;
  background: #eefbf5;
  border-color: #34ab7d;
  box-shadow: 0 3px 12px #149e6910;
}
.latest-studio-scope .latest-status-stamp.is-failed {
  color: #c8353e;
  background: #fff2f3;
  border-color: #de5c63;
  box-shadow: 0 3px 12px #d3434b10;
}
.latest-studio-scope .latest-status-stamp.is-stopped {
  color: #7a879a;
  background: #f4f6f9;
}
@media (max-width:720px) {
  .latest-studio-scope .latest-results-pagination {
    justify-content: flex-start;
    width: 100%;
  }
  .latest-studio-scope .latest-results-page-count {
    flex: 1;
  }
  .latest-studio-scope .latest-result-stamp.latest-status-stamp {
    font-size: 15px;
    padding: 8px 10px;
    gap: 6px;
  }
  .latest-studio-scope .latest-results-heading {
    gap: 12px;
  }
}
@media (prefers-reduced-motion:reduce) {
  .latest-studio-scope .latest-status-stamp.is-running::after,
  .latest-studio-scope .latest-status-stamp.is-running .latest-stamp-icon {
    animation: none;
  }
}
.latest-studio-scope .latest-live-summary .latest-live-meter {
  margin-top: 18px;
  display: block;
}
.latest-studio-scope .latest-live-summary .latest-live-meter > label {
  display: block;
  color: #315076;
  font-size: 13px;
  line-height: 1.7;
}
.latest-studio-scope .latest-live-summary .latest-live-meter .h3-progress-track {
  width: 100%;
  margin-top: 10px;
}
.latest-studio-scope .latest-results-table .latest-segment-head,
.latest-studio-scope .latest-results-table article {
  grid-template-columns: 75px 85px minmax(105px, 1fr) 120px auto;
  gap: 14px;
}
.latest-studio-scope .latest-segment-thumbnail {
  min-width: 0;
}
.latest-studio-scope .latest-thumbnail-button {
  position: relative;
  display: block;
  width: 120px;
  height: 68px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dce5f2;
  border-radius: 8px;
  background: #f2f5fa;
  cursor: zoom-in;
}
.latest-studio-scope .latest-thumbnail-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.latest-studio-scope .latest-thumbnail-button > small {
  position: absolute;
  left: 3px;
  bottom: 3px;
  padding: 1px 5px;
  color: #fff;
  background: #173253bb;
  border-radius: 3px;
  font-size: 10px;
}
.latest-studio-scope .latest-thumbnail-zoom {
  position: absolute;
  right: 4px;
  bottom: 3px;
  padding: 0 4px;
  border-radius: 3px;
  color: white;
  background: #17325399;
  opacity: 0;
  transition: opacity .2s;
}
.latest-studio-scope .latest-thumbnail-button:hover {
  border-color: #739aff;
  box-shadow: 0 2px 8px #3267e91a;
}
.latest-studio-scope .latest-thumbnail-button:hover .latest-thumbnail-zoom,
.latest-studio-scope .latest-thumbnail-button:focus-visible .latest-thumbnail-zoom {
  opacity: 1;
}
.latest-studio-scope .latest-thumbnail-placeholder {
  box-sizing: border-box;
  width: 120px;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  background: #f6f8fb;
  border: 1px dashed #dce4f1;
  border-radius: 8px;
  color: #a0aec1;
}
.latest-studio-scope .latest-thumbnail-placeholder small {
  font-size: 11px;
}
.latest-studio-scope .latest-thumbnail-placeholder > span {
  font-size: 20px;
  line-height: 1;
}
.latest-studio-scope .latest-thumbnail-placeholder button {
  padding: 0 5px;
  background: none;
  border: 0;
  color: #416bcb;
  font-size: 11px;
  cursor: pointer;
}
.latest-studio-scope .latest-thumbnail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1250;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #10213b66;
  padding: 20px;
}
.latest-studio-scope .latest-thumbnail-backdrop > section {
  background: white;
  padding: 20px;
  border-radius: 14px;
  width: min(560px, 100%);
  box-sizing: border-box;
  box-shadow: 0 18px 60px #10213b33;
}
.latest-studio-scope .latest-thumbnail-backdrop section > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.latest-studio-scope .latest-thumbnail-backdrop img {
  display: block;
  width: 100%;
  height: auto;
  background: #111c2d;
  border-radius: 8px;
}
.latest-studio-scope .latest-thumbnail-backdrop p {
  font-size: 12px;
  color: #8292aa;
  margin-bottom: 0;
}
@media (max-width:1100px) and (min-width:721px) {
  .latest-studio-scope .latest-results-table .latest-segment-head,
  .latest-studio-scope .latest-results-table article {
    grid-template-columns: 65px 70px minmax(90px, 1fr) 105px auto;
    gap: 10px;
  }
  .latest-studio-scope .latest-thumbnail-button,
  .latest-studio-scope .latest-thumbnail-placeholder {
    width: 105px;
  }
  .latest-studio-scope .latest-results-table article > .latest-segment-actions {
    max-width: 220px;
  }
}
@media (max-width:720px) {
  .latest-studio-scope .latest-results-table article {
    grid-template-columns: 60px 65px minmax(0, 1fr);
    gap: 10px;
  }
  .latest-studio-scope .latest-segment-thumbnail {
    grid-column: 1/-1;
  }
  .latest-studio-scope .latest-thumbnail-button,
  .latest-studio-scope .latest-thumbnail-placeholder {
    width: 120px;
  }
  .latest-studio-scope .latest-results-table article > .latest-segment-actions {
    grid-column: 1/-1;
  }
}
.latest-studio-scope .latest-results-table .latest-segment-head,
.latest-studio-scope .latest-results-table article {
  grid-template-columns: 75px 85px minmax(105px, 1fr) 120px 290px;
}
.latest-studio-scope .latest-results-table article > .latest-segment-thumbnail {
  display: block;
  grid-column: auto;
}
@media (max-width:1100px) and (min-width:721px) {
  .latest-studio-scope .latest-results-table .latest-segment-head,
  .latest-studio-scope .latest-results-table article {
    grid-template-columns: 65px 70px minmax(90px, 1fr) 105px 220px;
  }
}
@media (max-width:720px) {
  .latest-studio-scope .latest-results-table article {
    grid-template-columns: 60px 65px minmax(0, 1fr);
  }
  .latest-studio-scope .latest-results-table article > .latest-segment-thumbnail {
    grid-column: 1/-1;
  }
}
.latest-studio-scope .latest-logs-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}
.latest-studio-scope .latest-logs-toolbar h2 {
  margin: 0 0 10px;
  font-size: 20px;
}
.latest-studio-scope .latest-logs-toolbar .h3-field-hint {
  margin: 0;
}
.latest-studio-scope .latest-logs-pagination {
  padding-top: 2px;
  margin-left: auto;
}
.latest-studio-scope .latest-logs-pagination .has-updates {
  color: #285fe2;
  background: #edf3ff;
  border-color: #cbdcff;
}
.latest-studio-scope .latest-log-page-hint {
  margin: 20px 0 12px;
  color: #8a9ab0;
  font-size: 12px;
  line-height: 1.6;
}
.latest-studio-scope .latest-log-list.latest-log-paged {
  max-height: none;
  overflow: visible;
  margin-top: 0;
  padding: 2px 16px;
  background: #fff;
}
.latest-studio-scope .latest-log-paged > div {
  min-height: 44px;
  box-sizing: border-box;
  align-items: flex-start;
  gap: 18px;
  padding: 12px 0;
}
.latest-studio-scope .latest-log-paged > div:last-child {
  border-bottom: 0;
}
.latest-studio-scope .latest-log-paged > div > span {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.latest-studio-scope .latest-logs-empty {
  padding: 35px 10px;
  text-align: center;
  color: #8b9bb1;
  font-size: 13px;
}
@media (max-width:720px) {
  .latest-studio-scope .latest-logs-toolbar {
    gap: 16px;
  }
  .latest-studio-scope .latest-logs-pagination {
    margin-left: 0;
    justify-content: flex-start;
  }
  .latest-studio-scope .latest-logs-pagination .latest-results-page-count {
    width: 100%;
    flex-basis: 100%;
  }
  .latest-studio-scope .latest-log-paged > div {
    gap: 10px;
  }
  .latest-studio-scope .latest-log-list.latest-log-paged {
    padding: 2px 12px;
  }
}
.latest-studio-scope dialog.latest-thumbnail-backdrop {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(600px, 100vw);
  height: fit-content;
  max-height: calc(100dvh - 32px);
  max-width: 100vw;
  overflow: auto;
  padding: 20px;
  border: 0;
  background: transparent;
  box-sizing: border-box;
}
.latest-studio-scope dialog.latest-thumbnail-backdrop:not([open]) {
  display: none;
}
.latest-studio-scope dialog.latest-thumbnail-backdrop::backdrop {
  background: rgba(16, 33, 59, .55);
}
.latest-studio-scope dialog.latest-thumbnail-backdrop > section {
  width: 100%;
}
.latest-studio-scope .latest-logs-jump {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.latest-studio-scope .latest-logs-jump label {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 12px;
  color: #6f829f;
}
.latest-studio-scope .latest-logs-jump input {
  box-sizing: border-box;
  width: 62px;
  min-width: 0;
  height: 38px;
  padding: 6px 8px;
  border: 1px solid #dce5f2;
  border-radius: 8px;
  text-align: center;
  background: #fff;
  color: #183555;
}
.latest-studio-scope .latest-completion-sound {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.latest-studio-scope .latest-completion-sound .latest-sound-choice {
  width: auto;
  min-width: 112px;
  min-height: 38px;
  padding: 8px 28px 8px 10px;
  border: 1px solid #dce5f2;
  border-radius: 9px;
  background-color: #fff;
  color: #294260;
  font-size: 13px;
  cursor: pointer;
}
.latest-studio-scope .latest-sound-choice:focus-visible {
  outline: 2px solid #779cff;
  outline-offset: 2px;
}

/* apps/web/src/pages/latest/latest-form-layout.css */
.latest-studio-scope .latest-connected .latest-form-layout {
  padding: 24px 26px;
}
.latest-form-layout .latest-form-section {
  min-width: 0;
}
.latest-form-layout .latest-form-section + .latest-form-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e9eef6;
}
.latest-form-layout .h3-step-heading {
  margin: 0 0 16px;
}
.latest-form-layout .h3-step-heading h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: 17px;
  line-height: 26px;
  font-weight: 650;
}
.latest-form-layout .h3-step-heading p {
  margin: 7px 0 0;
  font-size: 13px;
  line-height: 1.75;
  color: #72839c;
}
.latest-form-layout .h3-step-number {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #edf2ff;
  color: #3260e8;
  font-size: 12px;
}
.latest-form-layout .latest-section-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  font-size: 13px;
}
.latest-form-layout .latest-section-label span {
  color: #71839e;
  font-size: 12px;
  white-space: nowrap;
}
.latest-studio-scope .latest-form-layout .h3-images {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 16px;
  align-items: stretch;
}
.latest-studio-scope .latest-form-layout .h3-images > div {
  min-width: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  position: relative;
}
.latest-studio-scope .latest-form-layout .h3-upload-card {
  height: 272px;
  min-height: 272px;
  padding: 13px 14px;
  box-sizing: border-box;
  border: 1px solid #e0e7f1;
  border-radius: 12px;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.latest-form-layout .h3-upload-heading {
  min-height: 24px;
  margin: 0 0 9px;
}
.latest-studio-scope .latest-form-layout .h3-upload-heading strong {
  margin: 0;
  font-size: 13px;
  line-height: 24px;
}
.latest-form-layout .h3-upload-badge {
  font-size: 10px;
  padding: 2px 7px;
  line-height: 18px;
}
.latest-studio-scope .latest-form-layout .h3-image-dropzone {
  height: 136px;
  min-height: 136px;
}
.latest-studio-scope .latest-form-layout .h3-image-dropzone img,
.latest-studio-scope .latest-form-layout .h3-image-dropzone .h3-placeholder {
  height: 100%;
  min-height: 0;
  width: 100%;
  object-fit: contain;
}
.latest-studio-scope .latest-form-layout .h3-image-actions {
  display: flex;
  gap: 8px;
  margin: 10px 0 0;
  min-height: 34px;
  flex-wrap: nowrap;
}
.latest-form-layout .h3-image-actions .btn {
  height: 34px;
  min-height: 34px;
  padding: 0 13px;
  font-size: 12px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.latest-form-layout .h3-upload-feedback {
  min-height: 20px;
  margin-top: 7px;
  font-size: 11px;
  line-height: 17px;
  gap: 5px;
  flex-wrap: nowrap;
}
.latest-form-layout .h3-upload-feedback > span:not(.h3-upload-indicator) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.latest-form-layout .h3-upload-feedback .h3-upload-filename {
  display: none;
}
.latest-form-layout .latest-upload-retry {
  position: absolute;
  right: 14px;
  bottom: 33px;
  height: 34px;
  min-height: 34px;
  margin: 0;
  font-size: 12px;
}
.latest-studio-scope .latest-form-layout .latest-reference-section {
  padding: 14px 16px;
  margin: 10px 0 0;
  border: 1px solid #e1e8f3;
  border-radius: 12px;
  background: #f9fbfe;
}
.latest-form-layout .latest-reference-section summary {
  display: list-item;
  font-size: 14px;
  font-weight: 600;
  line-height: 24px;
  color: #263f61;
}
.latest-form-layout .latest-reference-section summary::marker {
  color: #8598b5;
  font-size: 11px;
}
.latest-form-layout .latest-reference-section summary > span {
  float: right;
  margin-left: 12px;
  font-size: 12px;
  font-weight: 400;
  color: #7386a0;
}
.latest-form-layout .latest-reference-help {
  margin: 9px 0 12px;
  line-height: 1.7;
  font-size: 12px;
  color: #7b8da5;
}
.latest-studio-scope .latest-form-layout .latest-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  align-items: stretch;
}
.latest-studio-scope .latest-form-layout .latest-media-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 136px;
  min-height: 136px;
  margin: 0;
  background: #f6f8fc;
  border: 1px dashed #dce3ec;
  border-radius: 9px;
  box-sizing: border-box;
}
.latest-form-layout .latest-media-placeholder p {
  font-size: 12px;
  line-height: 1.6;
  max-width: 90%;
  margin: 0;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.latest-form-layout .latest-media-placeholder small {
  font-size: 11px;
}
.latest-form-layout .latest-media-placeholder > span {
  font-size: 25px;
  color: #8ba4cd;
  line-height: 1;
}
.latest-form-layout .latest-media-saved,
.latest-form-layout .latest-upload-status {
  margin: 7px 0 0;
  padding: 0;
  font-size: 11px;
  line-height: 18px;
  min-height: 20px;
}
.latest-form-layout .latest-upload-status {
  flex-wrap: wrap;
  gap: 5px;
}
.latest-form-layout .latest-upload-status .h3-upload-track {
  width: 52px;
  margin-top: 0;
}
.latest-form-layout .h3-prompt-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0;
}
.latest-form-layout .h3-prompt-heading .h3-field-label {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #415676;
}
.latest-form-layout .latest-prompt-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
.latest-form-layout .latest-prompt-actions .btn {
  height: 36px;
  min-height: 36px;
  padding: 0 12px;
  font-size: 12px;
  border-radius: 8px;
}
.latest-form-layout .latest-prompt-actions .latest-prompt-clear,
.latest-form-layout .latest-prompt-actions .latest-prompt-undo {
  width: 36px;
  min-width: 36px;
  padding: 0;
}
.latest-studio-scope .latest-form-layout #latest-prompt {
  display: block;
  min-height: 260px;
  height: 300px;
  max-height: 650px;
  margin: 12px 0 0;
  padding: 14px 16px;
  background: #fcfdff;
  font:
    13px/1.85 Consolas,
    "SFMono-Regular",
    monospace;
  resize: vertical;
}
.latest-studio-scope .latest-form-layout .latest-settings-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0;
}
.latest-form-layout .latest-resolution-settings {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  min-width: 0;
  flex: 1;
}
.latest-form-layout .latest-resolution-label {
  font-size: 13px;
  font-weight: 600;
  color: #304665;
  white-space: nowrap;
}
.latest-form-layout .latest-resolution-settings label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  white-space: nowrap;
}
.latest-studio-scope .latest-form-layout .latest-resolution-settings select {
  width: 102px;
  min-width: 102px;
  height: 38px;
  min-height: 38px;
  padding: 7px 10px;
  font-size: 13px;
}
.latest-form-layout .latest-resolution-hint {
  flex-basis: 100%;
  font-size: 12px;
  line-height: 1.7;
  color: #7b8da6;
}
.latest-studio-scope .latest-form-layout .latest-settings-main .latest-martial-card {
  margin: 0;
  padding: 12px 14px;
  min-height: 76px;
  gap: 10px;
  border-radius: 12px;
  box-shadow: none;
  flex-shrink: 0;
}
.latest-form-layout .latest-martial-copy strong {
  font-size: 13px;
}
.latest-form-layout .latest-martial-copy small {
  font-size: 11px;
}
.latest-form-layout .latest-martial-emblem {
  width: 32px;
  height: 34px;
}
.latest-form-layout .latest-generation-range .h3-step-heading {
  margin-bottom: 14px;
}
.latest-studio-scope .latest-form-layout .latest-range {
  gap: 10px;
  font-size: 13px;
}
.latest-form-layout .latest-range > label {
  display: flex;
  gap: 9px;
  align-items: center;
}
.latest-studio-scope .latest-form-layout .latest-range input {
  width: 82px;
  min-height: 38px;
  height: 38px;
  font-size: 13px;
}
.latest-form-layout .latest-generation-range > .h3-field-hint {
  margin: 10px 0 14px;
  font-size: 12px;
  color: #7385a0;
  line-height: 1.7;
}
.latest-studio-scope .latest-form-layout .latest-save-settings {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin: 0;
}
.latest-form-layout .latest-save-settings > label {
  font-size: 13px;
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0;
}
.latest-studio-scope .latest-form-layout .latest-save-settings input:not([type=checkbox]) {
  width: 230px;
  max-width: 100%;
  height: 38px;
  min-height: 38px;
  font-size: 13px;
}
.latest-form-layout input[type=checkbox] {
  accent-color: #2f61ed;
}
.latest-form-layout .latest-save-settings input[type=checkbox] {
  width: 15px;
  height: 15px;
  margin: 0;
  flex-shrink: 0;
}
.latest-form-layout .latest-generate-actions {
  margin: 24px 0 12px;
  gap: 10px;
}
.latest-form-layout > .h3-field-hint {
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 0;
}
@media (max-width:960px) {
  .latest-form-layout .latest-resolution-settings {
    flex-basis: 100%;
  }
  .latest-studio-scope .latest-form-layout .latest-settings-main .latest-martial-card {
    width: 100%;
    justify-content: flex-start;
    box-sizing: border-box;
  }
  .latest-form-layout .latest-martial-control {
    margin-left: auto;
  }
}
@media (max-width:650px) {
  .latest-studio-scope .latest-connected .latest-form-layout {
    padding: 16px;
  }
  .latest-form-layout .latest-form-section + .latest-form-section {
    margin-top: 20px;
    padding-top: 20px;
  }
  .latest-studio-scope .latest-form-layout .h3-images {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .latest-studio-scope .latest-form-layout .h3-upload-card {
    padding: 10px 8px;
    height: 252px;
    min-height: 252px;
  }
  .latest-form-layout .h3-upload-heading {
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 0;
    min-height: 42px;
    margin-bottom: 6px;
  }
  .latest-form-layout .h3-upload-badge {
    font-size: 9px;
    padding: 1px 5px;
    line-height: 16px;
  }
  .latest-studio-scope .latest-form-layout .h3-image-dropzone {
    height: 112px;
    min-height: 112px;
  }
  .latest-studio-scope .latest-form-layout .h3-image-help {
    font-size: 10px;
    line-height: 1.6;
    padding: 0 3px;
  }
  .latest-form-layout .h3-image-actions {
    gap: 4px;
  }
  .latest-form-layout .h3-image-actions .btn {
    font-size: 11px;
    padding: 0 4px;
    min-width: 0;
    white-space: nowrap;
    flex: 1;
  }
  .latest-form-layout .h3-upload-feedback {
    font-size: 10px;
  }
  .latest-studio-scope .latest-form-layout .latest-media-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .latest-form-layout .latest-media-grid .h3-upload-heading {
    min-height: 24px;
    flex-wrap: nowrap;
  }
  .latest-studio-scope .latest-form-layout .latest-reference-section {
    padding: 12px;
  }
  .latest-form-layout .latest-prompt-actions {
    gap: 6px;
  }
  .latest-studio-scope .latest-form-layout #latest-prompt {
    height: 280px;
    min-height: 220px;
    padding: 12px;
    font-size: 12px;
  }
  .latest-form-layout .latest-resolution-settings {
    gap: 12px;
  }
  .latest-form-layout .latest-resolution-label {
    flex-basis: 100%;
  }
  .latest-studio-scope .latest-form-layout .latest-resolution-settings select {
    width: 92px;
    min-width: 92px;
  }
  .latest-form-layout .latest-save-settings > label {
    max-width: 100%;
    flex-wrap: wrap;
  }
  .latest-studio-scope .latest-form-layout .latest-save-settings input:not([type=checkbox]) {
    width: 210px;
  }
}
