:root {
  --cloud-white: #ffffff;
  --cloud-canvas: #f4f7fc;
  --cloud-blue-wash: #eff1f2;
  --cloud-ink: #15171b;
  --cloud-copy: #5a657b;
  --cloud-muted: #8d96a6;
  --cloud-line: #e7e8ea;
  --cloud-line-strong: #d5d9de;
  --cloud-blue: #6f93c8;
  --cloud-blue-deep: #4d6f9f;
  --cloud-green: #5c9864;
  --cloud-green-wash: #eef7ef;
  --cloud-amber: #a86509;
  --cloud-amber-wash: #fff6df;
  --cloud-red: #b94343;
  --cloud-red-wash: #fff0f0;
  --cloud-shadow: 0 16px 45px rgba(43, 54, 75, 0.09);
  --cloud-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Inter, ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --cloud-display: var(--cloud-ui);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background: var(--cloud-canvas);
  color: var(--cloud-ink);
  font-family: var(--cloud-ui);
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  transform: translateY(-160%);
  border: 1px solid var(--cloud-line-strong);
  border-radius: 6px;
  background: white;
  text-decoration: none;
}

.skip-link:focus {
  transform: none;
}

.cloud-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  height: 100dvh;
  min-height: 640px;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0) 48%, rgba(224, 244, 255, 0.56) 100%),
    var(--cloud-canvas);
}

.run-rail {
  position: relative;
  z-index: 20;
  display: flex;
  min-width: 0;
  flex-direction: column;
  border-right: 1px solid var(--cloud-line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
}

.rail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  padding: 0 22px;
  border-bottom: 1px solid var(--cloud-line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--cloud-line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.82);
}

.icon-button:hover,
.icon-button:focus-visible {
  border-color: #99cceb;
  background: white;
}

.rail-close,
.rail-open {
  display: none;
}

.rail-close span {
  font-size: 24px;
  line-height: 1;
}

.product-nav {
  display: grid;
  gap: 4px;
  padding: 15px 14px 10px;
}

.product-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #506172;
  font-size: 14px;
  font-weight: 620;
  text-decoration: none;
}

.product-nav a:hover,
.product-nav a:focus-visible {
  color: var(--cloud-ink);
  background: #f5f9fc;
}

.product-nav a.active {
  border-color: #d6e6f2;
  background: #f1f9ff;
  color: var(--cloud-ink);
}

.nav-symbol {
  display: grid;
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #bdcad5;
  border-radius: 5px;
  font-family: var(--cloud-display);
  font-size: 12px;
}

.cloud-symbol {
  position: relative;
  border: 0;
}

.cloud-symbol::before,
.cloud-symbol::after {
  position: absolute;
  content: "";
}

.cloud-symbol::before {
  width: 20px;
  height: 10px;
  border: 1.5px solid currentColor;
  border-radius: 50% 50% 42% 42%;
  border-top-color: transparent;
  bottom: 4px;
}

.cloud-symbol::after {
  width: 9px;
  height: 9px;
  border: 1.5px solid currentColor;
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  top: 4px;
  transform: rotate(40deg);
}

.new-run-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 5px 14px 15px;
  gap: 9px;
  border: 1px solid var(--cloud-ink);
  border-radius: 6px;
  background: var(--cloud-ink);
  color: white;
  font-size: 14px;
  font-weight: 670;
  box-shadow: 0 10px 24px rgba(17, 24, 32, 0.12);
}

.new-run-button:hover,
.new-run-button:focus-visible {
  background: #24313e;
}

.new-run-button span:first-child {
  font-size: 20px;
  font-weight: 350;
  line-height: 1;
}

.run-tools {
  padding: 0 14px 13px;
  border-bottom: 1px solid var(--cloud-line);
}

.search-control {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  min-height: 38px;
  padding: 0 10px;
  gap: 7px;
  border: 1px solid var(--cloud-line);
  border-radius: 6px;
  background: #fbfdff;
}

.search-control:focus-within {
  border-color: #87c8ee;
  box-shadow: 0 0 0 3px rgba(82, 185, 255, 0.13);
}

.search-icon {
  position: relative;
  width: 13px;
  height: 13px;
  border: 1.5px solid #79899a;
  border-radius: 50%;
}

.search-icon::after {
  position: absolute;
  right: -4px;
  bottom: -3px;
  width: 5px;
  height: 1.5px;
  transform: rotate(45deg);
  background: #79899a;
  content: "";
}

.search-control input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--cloud-ink);
  font-size: 13px;
}

.run-filters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 10px;
  padding: 3px;
  border: 1px solid var(--cloud-line);
  border-radius: 6px;
  background: #f6f9fc;
}

.run-filters button {
  min-height: 28px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #718091;
  font-size: 11px;
  font-weight: 650;
}

.run-filters button.active {
  background: white;
  color: var(--cloud-ink);
  box-shadow: 0 2px 8px rgba(55, 102, 137, 0.1);
}

.run-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 10px;
  scrollbar-width: thin;
  scrollbar-color: #c5d5e1 transparent;
}

.run-list-empty {
  padding: 28px 15px;
  color: var(--cloud-muted);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.run-list-item {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  align-items: start;
  width: 100%;
  min-height: 76px;
  padding: 13px 12px;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  text-align: left;
}

.run-list-item:hover,
.run-list-item:focus-visible {
  background: #f7fbfe;
}

.run-list-item.active {
  border-color: #cfe4f2;
  background: #eff9ff;
}

.run-list-item .list-status {
  width: 7px;
  height: 7px;
  margin-top: 5px;
  border-radius: 50%;
  background: #92a0ad;
}

.run-list-item[data-status="running"] .list-status,
.run-list-item[data-status="queued"] .list-status {
  background: var(--cloud-blue);
  box-shadow: 0 0 0 4px rgba(22, 143, 223, 0.1);
}

.run-list-item[data-status="awaiting_approval"] .list-status {
  background: #ec9c20;
  box-shadow: 0 0 0 4px rgba(236, 156, 32, 0.11);
}

.run-list-item[data-status="completed"] .list-status {
  background: var(--cloud-green);
}

.run-list-item[data-status="failed"] .list-status,
.run-list-item[data-status="cancelled"] .list-status {
  background: var(--cloud-red);
}

.run-list-copy {
  min-width: 0;
}

.run-list-copy strong,
.run-list-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.run-list-copy strong {
  font-size: 13px;
  font-weight: 670;
}

.run-list-copy small {
  margin-top: 6px;
  color: #758596;
  font-size: 11px;
}

.run-list-item time {
  color: #91a0ae;
  font-size: 10px;
  white-space: nowrap;
}

.rail-footer {
  padding: 14px;
  border-top: 1px solid var(--cloud-line);
}

.worker-summary {
  display: flex;
  align-items: center;
  gap: 10px;
}

.runtime-light {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #99a5b1;
}

.runtime-light.ready {
  background: var(--cloud-green);
  box-shadow: 0 0 0 5px rgba(22, 134, 91, 0.09);
}

.runtime-light.error {
  background: var(--cloud-red);
}

.worker-summary strong,
.worker-summary small {
  display: block;
}

.worker-summary strong {
  font-size: 12px;
}

.worker-summary small {
  margin-top: 3px;
  color: var(--cloud-muted);
  font-size: 10px;
}

.rail-footer > a {
  display: inline-block;
  margin-top: 14px;
  color: #647586;
  font-size: 11px;
  text-decoration: none;
}

.cloud-workspace {
  position: relative;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.workspace-topbar {
  position: sticky;
  z-index: 15;
  top: 0;
  display: flex;
  align-items: center;
  height: 74px;
  padding: 0 clamp(24px, 4vw, 58px);
  border-bottom: 1px solid var(--cloud-line);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px) saturate(1.15);
}

.workspace-identity {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.workspace-identity span {
  color: var(--cloud-muted);
  font-family: var(--cloud-display);
  font-size: 12px;
}

.workspace-identity strong {
  font-size: 14px;
}

.topbar-status {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 12px;
}

.environment-label {
  padding: 6px 9px;
  border: 1px solid var(--cloud-line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: #667789;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.topbar-link {
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid var(--cloud-line-strong);
  border-radius: 6px;
  background: white;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}

.launch-view {
  display: grid;
  grid-template-columns: minmax(290px, 0.82fr) minmax(480px, 1.18fr);
  align-items: center;
  min-height: calc(100dvh - 74px);
  width: min(1420px, calc(100% - 64px));
  margin: 0 auto;
  padding: 54px 0;
  gap: clamp(36px, 5vw, 90px);
}

.launch-copy {
  align-self: center;
}

.section-index {
  display: block;
  margin-bottom: 22px;
  color: #708194;
  font-family: var(--cloud-display);
  font-size: 13px;
}

.launch-copy h1 {
  max-width: 690px;
  margin: 0;
  font-family: var(--cloud-display);
  font-size: clamp(38px, 4.2vw, 58px);
  font-weight: 680;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.launch-copy p {
  max-width: 560px;
  margin: 28px 0 0;
  color: var(--cloud-copy);
  font-family: var(--cloud-display);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.62;
}

.launch-console {
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--cloud-line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--cloud-shadow);
}

.objective-field {
  display: block;
}

.objective-field > span,
.agent-team-picker legend {
  display: block;
  margin-bottom: 10px;
  color: #465869;
  font-size: 12px;
  font-weight: 700;
}

.objective-field textarea {
  width: 100%;
  min-height: 138px;
  padding: 17px 18px 30px;
  resize: vertical;
  border: 1px solid var(--cloud-line-strong);
  border-radius: 6px;
  outline: 0;
  background: #fbfdff;
  color: var(--cloud-ink);
  font-size: 15px;
  line-height: 1.55;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.objective-field textarea:focus {
  border-color: #76bfe9;
  box-shadow: 0 0 0 4px rgba(82, 185, 255, 0.12);
}

.objective-field textarea::placeholder {
  color: #9aa8b5;
}

.objective-field {
  position: relative;
}

.objective-field > small {
  position: absolute;
  right: 12px;
  bottom: 10px;
  color: #98a5b2;
  font-size: 10px;
}

.agent-team-picker {
  min-width: 0;
  margin: 25px 0 0;
  padding: 0;
  border: 0;
}

.team-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.team-option {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  min-height: 90px;
  padding: 13px;
  gap: 10px;
  border: 1px solid var(--cloud-line);
  border-radius: 6px;
  background: #fbfdff;
  cursor: pointer;
}

.team-option:hover {
  border-color: #9ccfed;
}

.team-option.active {
  border-color: #69b9e8;
  background: #f1faff;
  box-shadow: inset 0 0 0 1px rgba(105, 185, 232, 0.16);
}

.team-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.team-option > span:nth-of-type(2) {
  min-width: 0;
}

.team-option strong,
.team-option small {
  display: block;
}

.team-option strong {
  font-size: 12px;
}

.team-option small {
  margin-top: 5px;
  color: #768697;
  font-size: 9px;
  line-height: 1.35;
}

.team-mark {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #c6d8e6;
  border-radius: 6px;
  background: white;
}

.operator-mark {
  background: #111820;
  color: white;
  font-family: var(--cloud-display);
  font-size: 15px;
}

.commerce-mark::before {
  width: 13px;
  height: 10px;
  border: 1.5px solid #168fdf;
  border-top: 0;
  border-radius: 0 0 3px 3px;
  content: "";
}

.commerce-mark::after {
  position: absolute;
  top: 8px;
  width: 17px;
  height: 7px;
  border: 1.5px solid #168fdf;
  border-radius: 4px 4px 2px 2px;
  content: "";
}

.connector-mark::before,
.connector-mark::after {
  position: absolute;
  width: 9px;
  height: 9px;
  border: 1.5px solid #168fdf;
  border-radius: 50%;
  content: "";
}

.connector-mark::before {
  left: 6px;
}

.connector-mark::after {
  right: 6px;
}

.connector-mark {
  background: linear-gradient(#168fdf, #168fdf) center / 10px 1.5px no-repeat, white;
}

.launch-settings {
  margin-top: 22px;
  border-top: 1px solid var(--cloud-line);
}

.approval-setting,
.run-behavior {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 66px;
  gap: 12px;
  border-bottom: 1px solid var(--cloud-line);
}

.approval-setting {
  cursor: pointer;
}

.approval-setting strong,
.approval-setting small,
.run-behavior strong,
.run-behavior small {
  display: block;
}

.approval-setting strong,
.run-behavior strong {
  font-size: 12px;
}

.approval-setting small,
.run-behavior small {
  margin-top: 4px;
  color: #7a8998;
  font-size: 10px;
}

.setting-icon {
  position: relative;
  display: block;
  width: 30px;
  height: 30px;
  border: 1px solid #c9dbe8;
  border-radius: 50%;
  background: #f8fcff;
}

.lock-icon::before {
  position: absolute;
  top: 12px;
  left: 9px;
  width: 10px;
  height: 9px;
  border: 1.5px solid #4c6579;
  border-radius: 2px;
  content: "";
}

.lock-icon::after {
  position: absolute;
  top: 7px;
  left: 11px;
  width: 6px;
  height: 7px;
  border: 1.5px solid #4c6579;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  content: "";
}

.history-icon::before {
  position: absolute;
  top: 7px;
  left: 7px;
  width: 14px;
  height: 14px;
  border: 1.5px solid #4c6579;
  border-radius: 50%;
  content: "";
}

.history-icon::after {
  position: absolute;
  top: 11px;
  left: 14px;
  width: 1.5px;
  height: 6px;
  transform-origin: bottom;
  transform: rotate(-36deg);
  background: #4c6579;
  content: "";
}

.desktop-setting-icon::before {
  position: absolute;
  top: 8px;
  left: 6px;
  width: 16px;
  height: 11px;
  border: 1.5px solid #4c6579;
  border-radius: 2px;
  content: "";
}

.desktop-setting-icon::after {
  position: absolute;
  bottom: 6px;
  left: 11px;
  width: 7px;
  height: 1.5px;
  background: #4c6579;
  content: "";
}

.approval-setting input {
  position: absolute;
  opacity: 0;
}

.approval-setting > i {
  position: relative;
  width: 40px;
  height: 23px;
  border-radius: 999px;
  background: #becbd6;
  transition: background 160ms ease;
}

.approval-setting > i::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 5px rgba(42, 76, 101, 0.24);
  content: "";
  transition: transform 160ms ease;
}

.approval-setting input:checked + i {
  background: var(--cloud-blue);
}

.approval-setting input:checked + i::after {
  transform: translateX(17px);
}

.run-behavior em {
  color: var(--cloud-green);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
}

.launch-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  gap: 18px;
}

.launch-actions p {
  margin: 0;
  color: #7b8b9a;
  font-size: 11px;
}

.primary-button,
.secondary-button,
.text-button {
  border-radius: 6px;
  font-weight: 670;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 17px;
  gap: 22px;
  border: 1px solid var(--cloud-ink);
  background: var(--cloud-ink);
  color: white;
  font-size: 12px;
  box-shadow: 0 10px 24px rgba(17, 24, 32, 0.12);
}

.primary-button:hover,
.primary-button:focus-visible {
  background: #263442;
}

.primary-button:disabled,
.secondary-button:disabled,
.text-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.primary-button i {
  font-size: 17px;
  font-style: normal;
  font-weight: 400;
}

.secondary-button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--cloud-line-strong);
  background: white;
  color: #425465;
  font-size: 11px;
}

.secondary-button:hover,
.secondary-button:focus-visible {
  border-color: #88c5e8;
}

.danger-button {
  color: var(--cloud-red);
}

.text-button {
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--cloud-blue-deep);
  font-size: 11px;
}

.run-view {
  width: min(1430px, calc(100% - 64px));
  margin: 0 auto;
  padding: 46px 0 72px;
}

.run-view[hidden],
.launch-view[hidden] {
  display: none;
}

.run-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.run-heading {
  min-width: 0;
}

.run-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #697b8c;
  font-size: 11px;
  font-weight: 670;
  text-transform: uppercase;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #91a0ad;
}

.status-dot.running,
.status-dot.queued {
  background: var(--cloud-blue);
  box-shadow: 0 0 0 5px rgba(22, 143, 223, 0.1);
}

.status-dot.awaiting_approval {
  background: #ec9c20;
  box-shadow: 0 0 0 5px rgba(236, 156, 32, 0.11);
}

.status-dot.completed {
  background: var(--cloud-green);
}

.status-dot.failed,
.status-dot.cancelled {
  background: var(--cloud-red);
}

.run-id {
  padding-left: 8px;
  border-left: 1px solid #c8d6e1;
  color: #93a1ae;
  font-family: var(--cloud-display);
  font-weight: 400;
  text-transform: none;
}

.run-heading h1 {
  max-width: 900px;
  margin: 15px 0 0;
  font-family: var(--cloud-display);
  font-size: clamp(31px, 3.2vw, 46px);
  font-weight: 680;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.run-heading > p {
  max-width: 870px;
  margin: 15px 0 0;
  color: var(--cloud-copy);
  font-family: var(--cloud-display);
  font-size: 15px;
  line-height: 1.6;
}

.run-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.mobile-back {
  display: none;
}

.run-progress {
  margin: 34px 0 27px;
}

.run-progress > div {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe9f1;
}

.run-progress > div span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--cloud-blue);
  transition: width 350ms ease;
}

.run-progress p {
  display: flex;
  justify-content: space-between;
  margin: 8px 0 0;
  color: #8795a3;
  font-size: 10px;
}

.run-progress p strong {
  color: #5f7182;
  font-weight: 650;
}

.run-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.72fr);
  align-items: start;
  gap: 22px;
}

.run-primary,
.run-context {
  display: grid;
  gap: 22px;
}

.activity-section,
.result-section,
.approval-panel,
.context-panel {
  border: 1px solid var(--cloud-line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 38px rgba(55, 102, 137, 0.07);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--cloud-line);
}

.panel-heading span,
.context-panel header span {
  display: block;
  color: #8494a3;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.panel-heading h2,
.context-panel header h2 {
  margin: 5px 0 0;
  font-family: var(--cloud-display);
  font-size: 18px;
  font-weight: 650;
}

.refresh-icon {
  position: relative;
  width: 15px;
  height: 15px;
  border: 1.5px solid #5b7183;
  border-left-color: transparent;
  border-radius: 50%;
}

.refresh-icon::after {
  position: absolute;
  top: -2px;
  left: -1px;
  width: 5px;
  height: 5px;
  border-left: 1.5px solid #5b7183;
  border-bottom: 1.5px solid #5b7183;
  content: "";
}

.step-list {
  margin: 0;
  padding: 0 20px;
  list-style: none;
}

.step-row {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: start;
  min-height: 86px;
  padding: 18px 0;
  gap: 13px;
  border-bottom: 1px solid var(--cloud-line);
}

.step-row:last-child {
  border-bottom: 0;
}

.step-indicator {
  position: relative;
  z-index: 1;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #c9d9e6;
  border-radius: 50%;
  background: white;
  color: #7a8b9a;
  font-family: var(--cloud-display);
  font-size: 10px;
}

.step-row:not(:last-child) .step-indicator::after {
  position: absolute;
  z-index: -1;
  top: 27px;
  left: 13px;
  width: 1px;
  height: 59px;
  background: #dce7ef;
  content: "";
}

.step-row[data-status="completed"] .step-indicator {
  border-color: var(--cloud-green);
  background: var(--cloud-green);
  color: white;
}

.step-row[data-status="running"] .step-indicator {
  border-color: var(--cloud-blue);
  color: var(--cloud-blue-deep);
  box-shadow: 0 0 0 5px rgba(22, 143, 223, 0.08);
}

.step-row[data-status="awaiting_approval"] .step-indicator {
  border-color: #e7a33b;
  background: var(--cloud-amber-wash);
  color: var(--cloud-amber);
}

.step-row[data-status="warning"] .step-indicator {
  border-color: #e7a33b;
  background: var(--cloud-amber-wash);
  color: var(--cloud-amber);
}

.step-row[data-status="failed"] .step-indicator,
.step-row[data-status="cancelled"] .step-indicator {
  border-color: #e4a1a1;
  background: var(--cloud-red-wash);
  color: var(--cloud-red);
}

.step-copy {
  min-width: 0;
}

.step-copy strong {
  display: block;
  font-size: 13px;
}

.step-copy p {
  margin: 6px 0 0;
  overflow: hidden;
  color: #728293;
  font-size: 11px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.step-meta {
  padding-top: 2px;
  color: #91a0ad;
  font-size: 9px;
  text-transform: uppercase;
}

.step-meta.running,
.step-meta.queued {
  color: var(--cloud-blue-deep);
}

.step-meta.awaiting_approval {
  color: var(--cloud-amber);
}

.step-meta.warning {
  color: var(--cloud-amber);
}

.step-meta.completed {
  color: var(--cloud-green);
}

.step-meta.failed,
.step-meta.cancelled {
  color: var(--cloud-red);
}

.result-empty {
  display: flex;
  min-height: 180px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  color: #8695a4;
  text-align: center;
}

.result-empty p {
  max-width: 340px;
  margin: 14px 0 0;
  font-family: var(--cloud-display);
  font-size: 13px;
  line-height: 1.6;
}

.result-glyph {
  position: relative;
  width: 34px;
  height: 38px;
  border: 1.5px solid #a8bac8;
  border-radius: 4px;
}

.result-glyph::before,
.result-glyph::after {
  position: absolute;
  right: 7px;
  left: 7px;
  height: 1.5px;
  background: #a8bac8;
  content: "";
}

.result-glyph::before {
  top: 13px;
}

.result-glyph::after {
  top: 21px;
}

.result-output {
  max-height: 560px;
  margin: 0;
  overflow: auto;
  padding: 24px;
  background: transparent;
  color: #263746;
  font-family: var(--cloud-display);
  font-size: 12px;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}

.approval-panel {
  overflow: hidden;
  padding: 22px;
  border-color: #e7bf77;
  background: linear-gradient(145deg, #fffdf7, #fff8e9);
}

.approval-panel[hidden] {
  display: none;
}

.approval-lock {
  position: relative;
  display: block;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border: 1px solid #e4b25f;
  border-radius: 50%;
  background: white;
}

.approval-lock::before {
  position: absolute;
  top: 17px;
  left: 12px;
  width: 12px;
  height: 10px;
  border: 1.5px solid var(--cloud-amber);
  border-radius: 2px;
  content: "";
}

.approval-lock::after {
  position: absolute;
  top: 10px;
  left: 15px;
  width: 6px;
  height: 8px;
  border: 1.5px solid var(--cloud-amber);
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
  content: "";
}

.approval-panel small {
  color: var(--cloud-amber);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.approval-panel h2 {
  margin: 7px 0 0;
  font-family: var(--cloud-display);
  font-size: 23px;
  font-weight: 400;
}

.approval-panel p {
  margin: 10px 0 19px;
  color: #725c36;
  font-size: 11px;
  line-height: 1.55;
}

.approval-panel label {
  display: block;
  margin-bottom: 7px;
  color: #655a49;
  font-size: 10px;
  font-weight: 700;
}

.approval-panel label span {
  color: #9c8c73;
  font-weight: 400;
}

.approval-panel textarea {
  width: 100%;
  min-height: 76px;
  padding: 10px;
  resize: vertical;
  border: 1px solid #e5cda4;
  border-radius: 6px;
  outline: 0;
  background: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  line-height: 1.45;
}

.approval-panel textarea:focus {
  border-color: #d9a247;
  box-shadow: 0 0 0 3px rgba(217, 162, 71, 0.12);
}

.approval-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  margin-top: 12px;
  gap: 8px;
}

.context-panel header {
  padding: 17px 18px 14px;
  border-bottom: 1px solid var(--cloud-line);
}

.context-panel dl {
  margin: 0;
  padding: 6px 18px;
}

.context-panel dl div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  gap: 12px;
  border-bottom: 1px solid #e7eef4;
}

.context-panel dl div:last-child {
  border-bottom: 0;
}

.context-panel dt,
.context-panel dd {
  margin: 0;
  font-size: 10px;
}

.context-panel dt {
  color: #82919f;
}

.context-panel dd {
  color: #334655;
  font-weight: 650;
  text-align: right;
}

.queue-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 17px 14px;
  gap: 4px;
}

.queue-metrics div {
  text-align: center;
}

.queue-metrics div + div {
  border-left: 1px solid var(--cloud-line);
}

.queue-metrics strong,
.queue-metrics span {
  display: block;
}

.queue-metrics strong {
  font-family: var(--cloud-display);
  font-size: 20px;
  font-weight: 400;
}

.queue-metrics span {
  margin-top: 4px;
  color: #8493a1;
  font-size: 9px;
}

.queue-panel > .text-button {
  margin: 0 18px 17px;
}

.live-heading-actions,
.stream-state {
  display: flex;
  align-items: center;
}

.live-heading-actions {
  gap: 14px;
}

.stream-state {
  gap: 7px;
  color: #738493;
}

.stream-state i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #94a3af;
}

.stream-state b {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.stream-state[data-state="live"] {
  color: var(--cloud-green);
}

.stream-state[data-state="live"] i {
  background: var(--cloud-green);
  box-shadow: 0 0 0 5px rgba(22, 134, 91, 0.09);
  animation: cloud-live-pulse 1.8s ease-in-out infinite;
}

.stream-state[data-state="reconnecting"] {
  color: var(--cloud-amber);
}

.guide-form {
  padding: 17px 20px 20px;
  border-top: 1px solid var(--cloud-line);
  background: #f8fbfd;
}

.guide-form > label {
  display: block;
  margin-bottom: 9px;
  color: #4c6071;
  font-size: 10px;
  font-weight: 700;
}

.guide-form > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 9px;
}

.guide-form textarea {
  width: 100%;
  min-height: 52px;
  padding: 10px 12px;
  resize: vertical;
  border: 1px solid var(--cloud-line-strong);
  border-radius: 6px;
  outline: 0;
  background: white;
  color: var(--cloud-ink);
  font-size: 11px;
  line-height: 1.45;
}

.guide-form textarea:focus {
  border-color: #76bfe9;
  box-shadow: 0 0 0 3px rgba(82, 185, 255, 0.11);
}

.guide-form .primary-button {
  min-height: 52px;
  align-self: stretch;
  box-shadow: none;
}

.guide-form > p {
  margin: 8px 0 0;
  color: #8493a1;
  font-size: 9px;
  line-height: 1.45;
}

.live-monitor {
  overflow: hidden;
}

.monitor-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0 14px;
  border-bottom: 1px solid var(--cloud-line);
  background: #f8fbfd;
}

.monitor-tabs button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  gap: 7px;
  border: 0;
  background: transparent;
  color: #758696;
  font-size: 10px;
  font-weight: 680;
}

.monitor-tabs button::after {
  position: absolute;
  right: 12px;
  bottom: -1px;
  left: 12px;
  height: 2px;
  transform: scaleX(0);
  background: var(--cloud-blue);
  content: "";
  transition: transform 160ms ease;
}

.monitor-tabs button.active {
  color: #263b4c;
}

.monitor-tabs button.active::after {
  transform: scaleX(1);
}

.worklog-icon,
.desktop-icon {
  position: relative;
  display: inline-block;
  width: 14px;
  height: 14px;
}

.worklog-icon {
  border: 1.4px solid currentColor;
  border-radius: 2px;
}

.worklog-icon::before,
.worklog-icon::after {
  position: absolute;
  right: 2px;
  left: 4px;
  height: 1px;
  background: currentColor;
  content: "";
}

.worklog-icon::before { top: 4px; }
.worklog-icon::after { top: 8px; }

.desktop-icon {
  border: 1.4px solid currentColor;
  border-radius: 2px;
}

.desktop-icon::before {
  position: absolute;
  right: 3px;
  bottom: -3px;
  left: 3px;
  height: 1px;
  background: currentColor;
  content: "";
}

.live-stage {
  display: flex;
  min-height: 200px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px 18px;
  background: linear-gradient(180deg, #f8fcff 0%, #f1f8fc 100%);
  text-align: center;
}

.live-orbit {
  position: relative;
  width: 70px;
  height: 70px;
  margin-bottom: 18px;
  border: 1px solid #bfdced;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 0 0 12px rgba(22, 143, 223, 0.035);
}

.live-orbit::before,
.live-orbit::after,
.live-orbit i {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.live-orbit::before {
  inset: 22px;
  background: var(--cloud-blue);
  box-shadow: 0 0 0 7px rgba(22, 143, 223, 0.1);
}

.live-orbit::after {
  inset: 8px;
  border: 1px dashed rgba(22, 143, 223, 0.32);
  animation: cloud-orbit-spin 8s linear infinite;
}

.live-orbit i {
  width: 5px;
  height: 5px;
  background: #72bce8;
}

.live-orbit i:nth-child(1) { top: 9px; left: 32px; }
.live-orbit i:nth-child(2) { right: 10px; bottom: 17px; }
.live-orbit i:nth-child(3) { bottom: 16px; left: 11px; }

.live-stage[data-status="completed"] .live-orbit::before {
  background: var(--cloud-green);
  box-shadow: 0 0 0 7px rgba(22, 134, 91, 0.1);
}

.live-stage[data-status="failed"] .live-orbit::before,
.live-stage[data-status="cancelled"] .live-orbit::before {
  background: var(--cloud-red);
  box-shadow: 0 0 0 7px rgba(181, 66, 66, 0.1);
}

.live-stage strong {
  max-width: 250px;
  font-family: var(--cloud-display);
  font-size: 14px;
  font-weight: 500;
}

.live-stage p {
  max-width: 255px;
  margin: 7px 0 0;
  color: #748697;
  font-size: 10px;
  line-height: 1.5;
}

.live-facts {
  border-top: 1px solid var(--cloud-line);
  border-bottom: 1px solid var(--cloud-line);
}

.monitor-timeline {
  max-height: 210px;
  margin: 0;
  overflow-y: auto;
  padding: 8px 18px 14px 36px;
}

.desktop-panel[hidden] {
  display: none;
}

.desktop-empty[hidden],
.desktop-viewport > img[hidden] {
  display: none;
}

.desktop-toolbar {
  display: grid;
  padding: 10px 12px 11px;
  gap: 9px;
  border-bottom: 1px solid var(--cloud-line);
  background: #f7fafc;
  color: #7a8b99;
  font-size: 9px;
}

.desktop-toolbar-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  gap: 12px;
}

.desktop-toolbar-status > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.desktop-actions {
  display: grid;
  grid-template-columns: auto 34px auto auto;
  gap: 6px;
}

.desktop-action {
  display: inline-flex;
  min-width: 0;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  gap: 6px;
  border: 1px solid #cbd9e3;
  border-radius: 5px;
  background: #fff;
  color: #4a5d6d;
  font-size: 9px;
  font-weight: 700;
}

.desktop-action:hover,
.desktop-action:focus-visible {
  border-color: #83bee2;
  background: #f5fbff;
}

.desktop-action:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.desktop-action.primary {
  border-color: var(--cloud-blue-deep);
  background: var(--cloud-blue-deep);
  color: #fff;
}

.desktop-action.primary:hover,
.desktop-action.primary:focus-visible {
  background: #136f9f;
}

.desktop-action.icon-only {
  width: 34px;
  padding: 0;
}

.desktop-action.watching[aria-pressed="true"] {
  border-color: #91cdb0;
  background: #edf9f3;
  color: #16714f;
}

.desktop-action-icon {
  position: relative;
  display: inline-block;
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
}

.desktop-action-icon.start::before {
  position: absolute;
  top: 2px;
  left: 4px;
  border-top: 4.5px solid transparent;
  border-bottom: 4.5px solid transparent;
  border-left: 7px solid currentColor;
  content: "";
}

.desktop-action-icon.refresh::before {
  position: absolute;
  inset: -2px 0 0;
  content: "\21BB";
  font-size: 17px;
  font-weight: 500;
  line-height: 13px;
}

.desktop-action-icon.capture {
  width: 14px;
  height: 10px;
  margin-top: 1px;
  border: 1.3px solid currentColor;
  border-radius: 2px;
}

.desktop-action-icon.capture::before {
  position: absolute;
  top: -4px;
  left: 3px;
  width: 6px;
  height: 3px;
  border: 1.3px solid currentColor;
  border-bottom: 0;
  border-radius: 2px 2px 0 0;
  content: "";
}

.desktop-action-icon.capture::after {
  position: absolute;
  top: 2px;
  left: 4px;
  width: 4px;
  height: 4px;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "";
}

.desktop-action-icon.watch {
  width: 14px;
  height: 9px;
  margin-top: 1px;
  border: 1.2px solid currentColor;
  border-radius: 50% 50% 45% 45%;
}

.desktop-action-icon.watch::after {
  position: absolute;
  top: 2px;
  left: 4.5px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.desktop-live-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #81919f;
}

.desktop-live-state i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a2adb6;
}

.desktop-live-state b {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.desktop-live-state[data-state="live"] {
  color: var(--cloud-green);
}

.desktop-live-state[data-state="live"] i {
  background: var(--cloud-green);
  box-shadow: 0 0 0 4px rgba(22, 134, 91, 0.1);
}

.desktop-live-state[data-state="waiting"] {
  color: var(--cloud-amber);
}

.desktop-live-state[data-state="waiting"] i {
  background: #e49a28;
}

.desktop-live-state[data-state="paused"] {
  color: #6d7f8f;
}

.desktop-live-state[data-state="paused"] i {
  background: #7f909e;
}

.desktop-viewport {
  position: relative;
  display: grid;
  min-height: 320px;
  overflow: hidden;
  place-items: center;
  border-bottom: 1px solid var(--cloud-line);
  background:
    linear-gradient(rgba(190, 212, 226, 0.19) 1px, transparent 1px),
    linear-gradient(90deg, rgba(190, 212, 226, 0.19) 1px, transparent 1px),
    linear-gradient(145deg, #f8fcff, #eaf5fc);
  background-size: 28px 28px, 28px 28px, auto;
}

.desktop-viewport[data-state="live"] {
  background: #eef4f8;
}

.desktop-viewport[data-state="paused"]::after {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 7px;
  border: 1px solid rgba(132, 151, 164, 0.4);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.9);
  color: #617585;
  content: "Paused frame";
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.desktop-viewport > img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: contain;
  background: #edf3f7;
}

.desktop-empty {
  display: flex;
  max-width: 290px;
  flex-direction: column;
  align-items: center;
  padding: 32px 18px;
  color: #6d7f8f;
  text-align: center;
}

.desktop-empty strong {
  margin-top: 17px;
  color: #304657;
  font-family: var(--cloud-display);
  font-size: 14px;
  font-weight: 500;
}

.desktop-empty p {
  margin: 9px 0 0;
  font-size: 10px;
  line-height: 1.55;
}

.desktop-screen-icon {
  position: relative;
  display: block;
  width: 54px;
  height: 38px;
  border: 1.5px solid #85a5bb;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 22px rgba(62, 106, 138, 0.1);
}

.desktop-screen-icon::before {
  position: absolute;
  bottom: -8px;
  left: 20px;
  width: 12px;
  height: 7px;
  border-bottom: 1.5px solid #85a5bb;
  content: "";
}

.desktop-screen-icon::after {
  position: absolute;
  right: 8px;
  bottom: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cloud-blue);
  content: "";
}

.desktop-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 66px;
  padding: 11px 13px;
  gap: 12px;
}

.desktop-footer strong,
.desktop-footer small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.desktop-footer strong {
  font-size: 10px;
}

.desktop-footer small {
  margin-top: 4px;
  color: #8796a4;
  font-size: 9px;
}

.desktop-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.desktop-control[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.48;
  pointer-events: none;
}

.desktop-snapshot-dialog {
  width: min(1040px, calc(100vw - 48px));
  max-height: calc(100dvh - 48px);
  padding: 0;
  overflow: hidden;
  border: 1px solid #b9cbd8;
  border-radius: 8px;
  background: #fff;
  color: var(--cloud-ink);
  box-shadow: 0 30px 100px rgba(28, 55, 76, 0.28);
}

.desktop-snapshot-dialog::backdrop {
  background: rgba(35, 55, 70, 0.42);
}

.desktop-snapshot-dialog header,
.desktop-snapshot-dialog footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 15px;
  gap: 16px;
}

.desktop-snapshot-dialog header {
  border-bottom: 1px solid var(--cloud-line);
}

.desktop-snapshot-dialog header span,
.desktop-snapshot-dialog footer span {
  color: #7b8c9a;
  font-size: 9px;
}

.desktop-snapshot-dialog h2 {
  margin: 3px 0 0;
  font-family: var(--cloud-display);
  font-size: 16px;
  font-weight: 550;
}

.desktop-snapshot-dialog header button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--cloud-line-strong);
  border-radius: 5px;
  background: #fff;
  color: #536777;
  font-size: 20px;
}

.desktop-snapshot-dialog > img {
  display: block;
  width: 100%;
  max-height: calc(100dvh - 174px);
  object-fit: contain;
  background: #edf3f7;
}

.desktop-snapshot-dialog footer {
  border-top: 1px solid var(--cloud-line);
}

.desktop-snapshot-dialog footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.monitor-timeline li {
  position: relative;
  padding: 8px 0;
  color: #687b8c;
  font-size: 9px;
  line-height: 1.4;
}

.monitor-timeline li::marker {
  color: #8ac8eb;
}

.monitor-timeline strong,
.monitor-timeline time {
  display: block;
}

.monitor-timeline strong {
  color: #3c5061;
  font-size: 10px;
}

.monitor-timeline time {
  margin-top: 2px;
  color: #95a3af;
}

@keyframes cloud-live-pulse {
  50% { box-shadow: 0 0 0 8px rgba(22, 134, 91, 0.02); }
}

@keyframes cloud-orbit-spin {
  to { transform: rotate(360deg); }
}

.toast {
  position: fixed;
  z-index: 80;
  right: 24px;
  bottom: 24px;
  max-width: min(380px, calc(100vw - 48px));
  padding: 12px 15px;
  border: 1px solid #bad8e9;
  border-radius: 6px;
  background: #f5fbff;
  color: #355369;
  font-size: 12px;
  box-shadow: 0 14px 38px rgba(55, 102, 137, 0.17);
}

.toast.error {
  border-color: #e4b1b1;
  background: #fff6f6;
  color: #8d3535;
}

@media (max-width: 1120px) {
  .cloud-shell {
    grid-template-columns: 268px minmax(0, 1fr);
  }

  .launch-view {
    grid-template-columns: 1fr;
    width: min(850px, calc(100% - 48px));
    padding: 50px 0 70px;
    gap: 40px;
  }

  .launch-copy h1 {
    font-size: 58px;
  }

  .launch-copy p {
    max-width: 680px;
  }

  .run-layout {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.7fr);
  }
}

@media (max-width: 880px) {
  body {
    overflow: hidden;
  }

  .cloud-shell {
    display: block;
    min-height: 100dvh;
  }

  .run-rail {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(340px, calc(100vw - 40px));
    transform: translateX(-105%);
    box-shadow: 30px 0 70px rgba(39, 76, 104, 0.2);
    transition: transform 220ms ease;
  }

  .cloud-shell.rail-visible::after {
    position: fixed;
    z-index: 19;
    inset: 0;
    background: rgba(25, 46, 62, 0.28);
    content: "";
  }

  .cloud-shell.rail-visible .run-rail {
    transform: none;
  }

  .rail-close,
  .rail-open {
    display: inline-grid;
  }

  .rail-open {
    margin-right: 12px;
  }

  .rail-open span {
    display: block;
    width: 15px;
    height: 1.5px;
    margin: 1.5px;
    background: #4c6071;
  }

  .cloud-workspace {
    height: 100dvh;
  }

  .workspace-topbar {
    padding: 0 18px;
  }

  .launch-view,
  .run-view {
    width: min(100% - 36px, 760px);
  }

  .run-layout {
    grid-template-columns: 1fr;
  }

  .run-context {
    grid-row: 1;
  }

  .run-primary {
    grid-row: 2;
  }

  .approval-panel {
    order: -1;
  }

  .run-context .context-panel {
    display: none;
  }

  .run-context .live-monitor {
    display: block;
  }
}

@media (max-width: 640px) {
  .cloud-shell {
    min-height: 560px;
  }

  .workspace-topbar {
    height: 64px;
  }

  .workspace-identity span,
  .environment-label {
    display: none;
  }

  .topbar-link {
    min-height: 32px;
    padding: 7px 10px;
  }

  .launch-view {
    display: block;
    width: calc(100% - 28px);
    min-height: auto;
    padding: 38px 0 48px;
  }

  .launch-copy {
    padding: 0 4px;
  }

  .section-index {
    margin-bottom: 14px;
    font-size: 10px;
  }

  .launch-copy h1 {
    font-size: 39px;
    line-height: 1.08;
  }

  .launch-copy p {
    margin-top: 18px;
    font-size: 14px;
    line-height: 1.65;
  }

  .launch-console {
    margin-top: 30px;
    padding: 18px;
  }

  .objective-field textarea {
    min-height: 124px;
    font-size: 14px;
  }

  .team-options {
    grid-template-columns: 1fr;
  }

  .team-option {
    min-height: 68px;
    grid-template-columns: 34px minmax(0, 1fr) 14px;
  }

  .team-option > i {
    width: 12px;
    height: 12px;
    border: 1px solid #b9c8d4;
    border-radius: 50%;
  }

  .team-option.active > i {
    border: 4px solid var(--cloud-blue);
  }

  .approval-setting,
  .run-behavior {
    min-height: 72px;
  }

  .approval-setting small,
  .run-behavior small {
    line-height: 1.35;
  }

  .launch-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .launch-actions .primary-button {
    width: 100%;
    justify-content: space-between;
  }

  .run-view {
    width: calc(100% - 28px);
    padding: 27px 0 52px;
  }

  .run-header {
    display: block;
  }

  .mobile-back {
    display: inline-block;
    margin-bottom: 16px;
  }

  .run-heading h1 {
    font-size: 33px;
  }

  .run-heading > p {
    font-size: 13px;
  }

  .run-actions {
    margin-top: 20px;
  }

  .run-actions button {
    flex: 1;
  }

  .run-progress {
    margin-top: 26px;
  }

  .panel-heading {
    padding: 14px 16px;
  }

  .stream-state b {
    display: none;
  }

  .step-list {
    padding: 0 16px;
  }

  .step-row {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .step-meta {
    grid-column: 2;
    padding-top: 0;
  }

  .step-copy p {
    white-space: normal;
  }

  .guide-form {
    padding: 15px 16px 17px;
  }

  .guide-form > div {
    grid-template-columns: 1fr;
  }

  .result-output {
    padding: 18px;
    font-size: 11px;
  }

  .toast {
    right: 14px;
    bottom: 14px;
    max-width: calc(100vw - 28px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
