:root {
  color-scheme: dark;
  --v2-bg: #080a0d;
  --v2-rail: #0a0c0f;
  --v2-surface: #101317;
  --v2-surface-2: #14181d;
  --v2-surface-3: #191e24;
  --v2-line: rgba(216, 226, 232, .1);
  --v2-line-strong: rgba(216, 226, 232, .2);
  --v2-text: #f3f5f4;
  --v2-muted: #9ba5a8;
  --v2-dim: #687276;
  --v2-green: #86e3bb;
  --v2-cyan: #79dce4;
  --v2-blue: #8eaefe;
  --v2-violet: #b7a1f6;
  --v2-amber: #e9c37a;
  --v2-red: #ee8d92;
  --v2-shadow: 0 22px 60px rgba(0, 0, 0, .34);
  --v2-rail-width: 232px;
  --v2-topbar-height: 68px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--v2-bg);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--v2-text);
  background: var(--v2-bg);
  font-size: 14px;
  line-height: 1.5;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

button,
input,
textarea,
select {
  color: inherit;
  font: inherit;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: .5;
}

a {
  color: inherit;
}

img,
video {
  display: block;
  max-width: 100%;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--v2-cyan);
  outline-offset: 2px;
}

.v2-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: currentColor;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.icon-home { --icon: url('/assets/icons/lucide/home.svg'); }
.icon-globe-2 { --icon: url('/assets/icons/lucide/globe-2.svg'); }
.icon-wand-sparkles { --icon: url('/assets/icons/lucide/wand-sparkles.svg'); }
.icon-images { --icon: url('/assets/icons/lucide/images.svg'); }
.icon-package-search { --icon: url('/assets/icons/lucide/package-search.svg'); }
.icon-package { --icon: url('/assets/icons/lucide/package.svg'); }
.icon-package-open { --icon: url('/assets/icons/lucide/package-open.svg'); }
.icon-fingerprint { --icon: url('/assets/icons/lucide/fingerprint.svg'); }
.icon-sliders-horizontal { --icon: url('/assets/icons/lucide/sliders-horizontal.svg'); }
.icon-store { --icon: url('/assets/icons/lucide/store.svg'); }
.icon-receipt-text { --icon: url('/assets/icons/lucide/receipt-text.svg'); }
.icon-panel-left-close { --icon: url('/assets/icons/lucide/panel-left-close.svg'); }
.icon-panel-left-open { --icon: url('/assets/icons/lucide/panel-left-open.svg'); }
.icon-menu { --icon: url('/assets/icons/lucide/menu.svg'); }
.icon-x { --icon: url('/assets/icons/lucide/x.svg'); }
.icon-bell { --icon: url('/assets/icons/lucide/bell.svg'); }
.icon-plus { --icon: url('/assets/icons/lucide/plus.svg'); }
.icon-arrow-right { --icon: url('/assets/icons/lucide/arrow-right.svg'); }
.icon-chevron-right { --icon: url('/assets/icons/lucide/chevron-right.svg'); }
.icon-refresh-cw { --icon: url('/assets/icons/lucide/refresh-cw.svg'); }
.icon-check { --icon: url('/assets/icons/lucide/check.svg'); }
.icon-scan-line { --icon: url('/assets/icons/lucide/scan-line.svg'); }
.icon-scan-search { --icon: url('/assets/icons/lucide/scan-search.svg'); }
.icon-network { --icon: url('/assets/icons/lucide/network.svg'); }
.icon-boxes { --icon: url('/assets/icons/lucide/boxes.svg'); }
.icon-message-square-text { --icon: url('/assets/icons/lucide/message-square-text.svg'); }
.icon-rocket { --icon: url('/assets/icons/lucide/rocket.svg'); }
.icon-badge-check { --icon: url('/assets/icons/lucide/badge-check.svg'); }
.icon-download { --icon: url('/assets/icons/lucide/download.svg'); }
.icon-link-2 { --icon: url('/assets/icons/lucide/link-2.svg'); }
.icon-settings-2 { --icon: url('/assets/icons/lucide/settings-2.svg'); }
.icon-clock-3 { --icon: url('/assets/icons/lucide/clock-3.svg'); }

.v2-shell {
  display: grid;
  grid-template-columns: var(--v2-rail-width) minmax(0, 1fr);
  min-height: 100vh;
  transition: grid-template-columns .24s ease;
}

.v2-rail {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  min-width: 0;
  height: 100vh;
  flex-direction: column;
  padding: 16px 14px 14px;
  overflow: hidden auto;
  border-right: 1px solid var(--v2-line);
  background: rgba(10, 12, 15, .98);
}

.v2-rail-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 8px;
  align-items: center;
}

.v2-lockup {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: var(--v2-text);
  text-decoration: none;
}

.v2-lockup > span:last-child {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.v2-lockup strong {
  overflow: hidden;
  font-size: 13px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-lockup small {
  overflow: hidden;
  color: var(--v2-dim);
  font-size: 8px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-logo {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 1px solid rgba(134, 227, 187, .22);
  border-radius: 8px;
  background: #111820;
}

.v2-logo img {
  width: 22px;
  height: 22px;
}

.v2-icon-button {
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--v2-line);
  border-radius: 7px;
  color: var(--v2-muted);
  background: #0e1115;
  transition: color .16s ease, border-color .16s ease, background .16s ease;
}

.v2-icon-button:hover {
  color: var(--v2-text);
  border-color: var(--v2-line-strong);
  background: var(--v2-surface-2);
}

.v2-brand-switch {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 16px;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 58px;
  margin: 20px 0 10px;
  padding: 9px;
  border: 1px solid var(--v2-line);
  border-radius: 8px;
  background: var(--v2-surface);
  text-align: left;
}

.v2-brand-switch:hover {
  border-color: var(--v2-line-strong);
  background: var(--v2-surface-2);
}

.v2-brand-switch > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.v2-brand-switch strong,
.v2-brand-switch small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-brand-switch strong {
  font-size: 12px;
}

.v2-brand-switch small {
  color: var(--v2-muted);
  font-size: 9px;
}

.v2-brand-switch > .v2-icon {
  width: 13px;
  height: 13px;
  color: var(--v2-dim);
}

.v2-brand-image {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--v2-line);
  border-radius: 7px;
  background: #171b20;
}

.v2-brand-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v2-workspace-menu {
  display: grid;
  gap: 4px;
  margin: 0 0 10px;
  padding: 8px;
  border: 1px solid var(--v2-line-strong);
  border-radius: 9px;
  background: var(--v2-surface-2);
}

.v2-workspace-menu[hidden] {
  display: none;
}

.v2-workspace-menu-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 2px 4px;
  color: var(--v2-dim);
  font-size: 9px;
  font-weight: 700;
}

.v2-workspace-menu-title em {
  color: #596267;
  font-style: normal;
}

.v2-workspace-option {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  min-height: 36px;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--v2-muted);
  background: transparent;
  font: inherit;
  text-align: left;
  transition: color .16s ease, background .16s ease, border-color .16s ease;
}

.v2-workspace-option strong {
  overflow: hidden;
  font-size: 11px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-workspace-option span {
  font-size: 9px;
}

.v2-workspace-option em {
  color: #596267;
  font-size: 9px;
  font-style: normal;
}

.v2-workspace-option:hover:not(:disabled) {
  color: var(--v2-text);
  border-color: rgba(134, 227, 187, .17);
  background: #14191c;
}

.v2-workspace-option.is-active {
  color: var(--v2-text);
  border-color: rgba(134, 227, 187, .17);
  background: #14191c;
}

.v2-workspace-option:disabled {
  cursor: default;
  opacity: .85;
}

.v2-workspace-create {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 34px;
  margin-top: 2px;
  padding: 5px 8px;
  border: 1px dashed var(--v2-line-strong);
  border-radius: 7px;
  color: var(--v2-muted);
  background: transparent;
  font: inherit;
  font-size: 11px;
  transition: color .16s ease, border-color .16s ease;
}

.v2-workspace-create:hover:not(:disabled) {
  color: var(--v2-text);
  border-color: rgba(134, 227, 187, .4);
}

.v2-workspace-create:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.v2-workspace-menu-hint {
  color: #596267;
  font-size: 9px;
  text-align: center;
}

.v2-workspace-list {
  display: grid;
  gap: 6px;
}

.v2-workspace-list-item {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 7px 10px;
  border: 1px solid var(--v2-line);
  border-radius: 8px;
  background: var(--v2-surface);
}

.v2-workspace-list-item.is-active {
  border-color: rgba(134, 227, 187, .17);
  background: #14191c;
}

.v2-workspace-list-item strong {
  display: block;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-workspace-list-item small {
  display: block;
  overflow: hidden;
  color: var(--v2-dim);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-modal-note {
  margin: 0;
  color: var(--v2-dim);
  font-size: 11px;
  line-height: 1.6;
}

.v2-channel-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.v2-channel-unconfigured {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  margin-bottom: 10px;
  border: 1px dashed var(--v2-line-strong);
  border-radius: 8px;
}

.v2-channel-unconfigured strong {
  font-size: 12px;
}

.v2-channel-unconfigured small {
  color: var(--v2-dim);
  font-size: 10px;
}

.v2-channel-list {
  display: grid;
  gap: 6px;
}

.v2-channel-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 46px;
  padding: 8px 10px;
  border: 1px solid var(--v2-line);
  border-radius: 8px;
  background: var(--v2-surface);
}

.v2-channel-item.is-active {
  border-color: rgba(134, 227, 187, .17);
}

.v2-channel-item strong {
  display: block;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-channel-item small {
  display: block;
  color: var(--v2-dim);
  font-size: 9px;
}

.v2-channel-item > div:last-child {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.v2-channel-meta {
  display: block;
  margin-top: 8px;
  color: var(--v2-dim);
  font-size: 10px;
}

.v2-channel-table td,
.v2-channel-table th {
  vertical-align: middle;
}

.v2-channel-creative {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 220px;
}

.v2-channel-creative img {
  width: 44px;
  height: 44px;
  border: 1px solid var(--v2-line);
  border-radius: 6px;
  object-fit: cover;
  background: #171b20;
}

.v2-channel-creative-placeholder {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--v2-line);
  border-radius: 6px;
  color: var(--v2-dim);
}

.v2-channel-creative strong {
  display: block;
  max-width: 220px;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-channel-creative small {
  display: block;
  color: var(--v2-dim);
  font-size: 9px;
}

.v2-channel-linked {
  display: grid;
  gap: 2px;
  justify-items: start;
}

.v2-channel-linked small {
  max-width: 160px;
  overflow: hidden;
  color: var(--v2-muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-artifact-effect {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 4px;
  color: #8fe3bd;
  font-size: 10px;
}

.v2-artifact-effect .v2-icon {
  width: 11px;
  height: 11px;
}

.v2-link-options {
  display: grid;
  max-height: 300px;
  gap: 6px;
  margin: 8px 0;
  overflow-y: auto;
}

.v2-link-option {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--v2-line);
  border-radius: 8px;
  background: var(--v2-surface);
  cursor: pointer;
}

.v2-link-option:has(input:checked) {
  border-color: rgba(134, 227, 187, .4);
  background: #14191c;
}

.v2-link-option strong {
  display: block;
  font-size: 11px;
}

.v2-link-option small {
  display: block;
  color: var(--v2-dim);
  font-size: 9px;
}

.v2-onboarding-guide {
  display: grid;
  gap: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  border: 1px solid rgba(134, 227, 187, .25);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(134, 227, 187, .06), rgba(134, 227, 187, .02));
}

.v2-onboarding-guide header {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.v2-onboarding-step {
  color: #8fe3bd;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .04em;
}

.v2-onboarding-guide h3 {
  margin: 0;
  font-size: 16px;
}

.v2-onboarding-hint {
  margin: 0;
  color: var(--v2-muted);
  font-size: 11px;
  line-height: 1.6;
}

.v2-onboarding-track {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.v2-onboarding-track .v2-onboarding-step {
  display: flex;
  gap: 8px;
  align-items: center;
  flex: 1;
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid var(--v2-line);
  border-radius: 6px;
  background: var(--v2-surface);
}

.v2-onboarding-track .v2-onboarding-step em {
  font-style: normal;
  font-size: 10px;
  color: var(--v2-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-onboarding-track .v2-onboarding-step i {
  display: grid;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  place-items: center;
  border: 1px solid var(--v2-line);
  border-radius: 50%;
  color: var(--v2-dim);
  font-size: 10px;
  font-weight: 700;
}

.v2-onboarding-track .v2-onboarding-step.is-done i {
  color: #1c2624;
  background: #8fe3bd;
  border-color: #8fe3bd;
}

.v2-onboarding-track .v2-onboarding-step.is-done em {
  color: var(--v2-muted);
}

.v2-onboarding-track .v2-onboarding-step.is-current {
  border-color: rgba(134, 227, 187, .55);
  background: rgba(134, 227, 187, .08);
}

.v2-onboarding-track .v2-onboarding-step.is-current i {
  color: #1c2624;
  background: #8fe3bd;
  border-color: #8fe3bd;
}

.v2-onboarding-track .v2-onboarding-step.is-current em {
  color: var(--v2-text);
}

.v2-onboarding-track .v2-onboarding-step.is-locked {
  opacity: .55;
}

@media (max-width: 760px) {
  .v2-onboarding-track {
    flex-direction: column;
    gap: 6px;
  }
}

.v2-nav {
  display: grid;
  gap: 2px;
}

.v2-nav > p {
  margin: 17px 9px 6px;
  color: #596267;
  font-size: 9px;
  font-weight: 750;
}

.v2-nav a,
.v2-nav button {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  width: 100%;
  min-height: 40px;
  align-items: center;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--v2-muted);
  background: transparent;
  font: inherit;
  text-align: left;
  text-decoration: none;
  transition: color .16s ease, background .16s ease, border-color .16s ease;
}

.v2-nav a:hover,
.v2-nav button:hover {
  color: var(--v2-text);
  background: var(--v2-surface);
}

.v2-nav a.is-active {
  color: var(--v2-text);
  border-color: rgba(134, 227, 187, .17);
  background: #14191c;
}

.v2-nav a.is-active::before {
  position: absolute;
  left: -9px;
  width: 2px;
  height: 20px;
  border-radius: 2px;
  background: var(--v2-green);
  content: "";
}

.v2-nav a > span,
.v2-nav button > span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #7c878a;
}

.v2-nav a.is-active > span {
  color: var(--v2-green);
  border-color: rgba(134, 227, 187, .13);
  background: rgba(134, 227, 187, .07);
}

.v2-nav a > b,
.v2-nav button > b {
  overflow: hidden;
  font-size: 12px;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-nav a > em,
.v2-nav button > em {
  min-width: 18px;
  padding: 1px 5px;
  border: 1px solid var(--v2-line);
  border-radius: 8px;
  color: var(--v2-muted);
  font-size: 9px;
  font-style: normal;
  text-align: center;
}

.v2-nav .v2-nav-soon {
  color: #778084;
}

.v2-nav .v2-nav-soon:hover {
  color: #aab1b3;
  border-color: rgba(233, 195, 122, .12);
  background: rgba(233, 195, 122, .035);
}

.v2-nav .v2-nav-soon > em {
  border-color: rgba(233, 195, 122, .18);
  color: #c6a867;
  background: rgba(233, 195, 122, .055);
}

.v2-soon-mark {
  position: relative;
}

.v2-soon-mark > .v2-icon {
  width: 15px;
  height: 15px;
}

.v2-soon-mark > i:last-child {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 5px;
  height: 5px;
  border: 1px solid #0a0c0f;
  border-radius: 50%;
  background: var(--v2-amber);
  box-shadow: 0 0 0 0 rgba(233, 195, 122, .22);
  animation: v2SoonPulse 2.4s ease-out infinite;
}

.v2-rail-foot {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
}

.v2-credit-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 8px;
  color: var(--v2-muted);
  font-size: 10px;
}

.v2-credit-line strong {
  color: var(--v2-text);
  font-size: 15px;
}

.v2-system-line {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  padding: 0 8px;
  color: var(--v2-dim);
  font-size: 9px;
}

.v2-system-line i,
.v2-context-badge i,
.v2-status-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--v2-green);
  box-shadow: 0 0 12px rgba(134, 227, 187, .38);
}

.v2-system-line span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-version-link {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 14px;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 7px 8px;
  border: 1px solid var(--v2-line);
  border-radius: 7px;
  color: var(--v2-muted);
  text-decoration: none;
}

.v2-version-link:hover {
  color: var(--v2-text);
  border-color: var(--v2-line-strong);
}

.v2-version-link > span {
  display: grid;
  height: 22px;
  place-items: center;
  border-radius: 5px;
  color: #101512;
  background: var(--v2-green);
  font-size: 9px;
  font-weight: 800;
}

.v2-version-link b {
  overflow: hidden;
  font-size: 10px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-version-link .v2-icon {
  width: 12px;
  height: 12px;
}

.v2-main {
  min-width: 0;
}

.v2-auth-view .v2-shell {
  display: block;
}

.v2-auth-view .v2-rail,
.v2-auth-view .v2-topbar {
  display: none;
}

.v2-auth-view .v2-surface {
  max-width: none;
  padding: 0 24px 40px;
}

.v2-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-width: 0;
  height: var(--v2-topbar-height);
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 24px;
  border-bottom: 1px solid var(--v2-line);
  background: rgba(8, 10, 13, .9);
  backdrop-filter: blur(18px);
}

.v2-page-heading {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.v2-page-heading span {
  color: var(--v2-dim);
  font-size: 9px;
  font-weight: 720;
}

.v2-page-heading h1 {
  overflow: hidden;
  margin: 0;
  font-size: 17px;
  font-weight: 680;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-top-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.v2-demo-switch {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(134, 227, 187, .18);
  border-radius: 7px;
  background: #0b100e;
}

.v2-demo-switch[hidden] {
  display: none;
}

.v2-demo-switch > span {
  padding: 0 7px;
  color: #83918c;
  font-size: 9px;
  font-weight: 650;
  white-space: nowrap;
}

.v2-demo-switch button {
  min-height: 26px;
  padding: 0 8px;
  border: 0;
  border-radius: 5px;
  color: #89938f;
  background: transparent;
  font-size: 9px;
  font-weight: 650;
}

.v2-demo-switch button:hover {
  color: var(--v2-text);
  background: rgba(255, 255, 255, .035);
}

.v2-demo-switch button.is-active {
  color: #0b120e;
  background: var(--v2-green);
}

.v2-context-badge {
  display: inline-flex;
  max-width: 280px;
  min-height: 32px;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  overflow: hidden;
  border: 1px solid rgba(134, 227, 187, .16);
  border-radius: 7px;
  color: #b8d9c9;
  background: rgba(30, 56, 44, .24);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-primary,
.v2-secondary,
.v2-quiet,
.v2-danger {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.v2-primary:hover,
.v2-secondary:hover,
.v2-quiet:hover,
.v2-danger:hover {
  transform: translateY(-1px);
}

.v2-primary {
  color: #08100c;
  border-color: #95e9c4;
  background: var(--v2-green);
  box-shadow: 0 12px 30px rgba(85, 177, 135, .16);
}

.v2-primary:hover {
  background: #9cecc8;
}

.v2-primary.compact {
  min-height: 34px;
  padding: 0 12px;
}

.v2-secondary {
  color: var(--v2-text);
  border-color: var(--v2-line-strong);
  background: var(--v2-surface-2);
}

.v2-secondary:hover {
  background: var(--v2-surface-3);
}

.v2-quiet {
  color: var(--v2-muted);
  border-color: var(--v2-line);
  background: transparent;
}

.v2-quiet:hover {
  color: var(--v2-text);
  border-color: var(--v2-line-strong);
}

.v2-danger {
  color: #f2b7ba;
  border-color: rgba(238, 141, 146, .2);
  background: rgba(105, 38, 42, .15);
}

.v2-mobile-menu {
  display: none;
}

.v2-surface {
  width: 100%;
  max-width: 1680px;
  min-width: 0;
  margin: 0 auto;
  padding: 20px 24px 42px;
}

.v2-page {
  display: grid;
  min-width: 0;
  gap: 16px;
  animation: v2Enter .32s ease both;
}

.v2-page-intro {
  display: flex;
  min-width: 0;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 2px 0 5px;
}

.v2-page-intro > div {
  min-width: 0;
}

.v2-page-intro small,
.v2-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--v2-green);
  font-size: 9px;
  font-weight: 760;
}

.v2-page-intro h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 660;
  line-height: 1.2;
}

.v2-page-intro p {
  max-width: 720px;
  margin: 7px 0 0;
  color: var(--v2-muted);
  font-size: 12px;
}

.v2-panel {
  min-width: 0;
  border: 1px solid var(--v2-line);
  border-radius: 8px;
  background: var(--v2-surface);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .02);
}

.v2-panel-head {
  display: flex;
  min-width: 0;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--v2-line);
}

.v2-panel-head > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.v2-panel-head > div:not(.v2-tabs) {
  flex: 1 1 auto;
}

.v2-panel-head > .v2-tabs {
  display: inline-flex;
  max-width: 62%;
  flex: 0 1 auto;
}

.v2-panel-head h2,
.v2-panel-head h3 {
  overflow: hidden;
  margin: 0;
  font-size: 13px;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-panel-head p,
.v2-panel-head small {
  overflow: hidden;
  margin: 0;
  color: var(--v2-muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-panel-body {
  min-width: 0;
  padding: 16px;
}

.v2-workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: start;
}

.v2-agent-stage {
  display: flex;
  min-width: 0;
  min-height: 680px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--v2-line-strong);
  border-radius: 8px;
  background: #0d1013;
  box-shadow: var(--v2-shadow);
}

.v2-agent-head {
  display: flex;
  min-width: 0;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--v2-line);
  background: #111519;
}

.v2-agent-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.v2-agent-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border: 1px solid rgba(121, 220, 228, .22);
  border-radius: 8px;
  color: var(--v2-cyan);
  background: rgba(47, 91, 97, .22);
}

.v2-agent-avatar .v2-icon {
  width: 19px;
  height: 19px;
}

.v2-agent-identity > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.v2-agent-identity strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-agent-identity small {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--v2-green);
  font-size: 9px;
}

.v2-run-id {
  max-width: 230px;
  overflow: hidden;
  color: var(--v2-dim);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-context-strip {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  overflow: hidden auto;
  border-bottom: 1px solid var(--v2-line);
  background: #0c0f12;
  scrollbar-width: thin;
}

.v2-context-strip > span {
  display: inline-flex;
  min-height: 26px;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border: 1px solid var(--v2-line);
  border-radius: 6px;
  color: var(--v2-muted);
  background: #12161a;
  font-size: 9px;
}

.v2-context-strip > span:first-child {
  color: #badaca;
  border-color: rgba(134, 227, 187, .15);
  background: rgba(28, 55, 43, .18);
}

.v2-message-stream {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 16px;
  flex: 1;
  padding: 22px 18px 18px;
  overflow: hidden auto;
  background: #0a0d10;
}

.v2-empty-agent {
  display: grid;
  max-width: 660px;
  margin: auto;
  place-items: center;
  padding: 36px 24px;
  text-align: center;
}

.v2-empty-agent .v2-agent-avatar {
  width: 50px;
  height: 50px;
  margin-bottom: 18px;
}

.v2-empty-agent .v2-agent-avatar .v2-icon {
  width: 23px;
  height: 23px;
}

.v2-empty-agent h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 640;
}

.v2-empty-agent p {
  max-width: 560px;
  margin: 9px 0 0;
  color: var(--v2-muted);
  font-size: 12px;
}

.v2-quick-prompts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: 20px;
}

.v2-quick-prompts button {
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid var(--v2-line);
  border-radius: 7px;
  color: var(--v2-muted);
  background: var(--v2-surface);
  font-size: 10px;
}

.v2-quick-prompts button:hover {
  color: var(--v2-text);
  border-color: var(--v2-line-strong);
  background: var(--v2-surface-2);
}

.v2-message {
  display: grid;
  max-width: 760px;
  gap: 7px;
  animation: v2Message .24s ease both;
}

.v2-message.is-user {
  justify-self: end;
}

.v2-message.is-agent {
  justify-self: start;
}

.v2-message > header {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--v2-dim);
  font-size: 9px;
}

.v2-message.is-user > header {
  justify-content: flex-end;
}

.v2-message > div {
  padding: 12px 14px;
  border: 1px solid var(--v2-line);
  border-radius: 8px;
  color: #dfe5e3;
  background: var(--v2-surface);
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.v2-message.is-user > div {
  border-color: rgba(142, 174, 254, .18);
  background: #141922;
}

.v2-pending-action {
  max-width: 760px;
  border: 1px solid rgba(233, 195, 122, .22);
  border-radius: 8px;
  background: #17150f;
}

.v2-pending-action > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border-bottom: 1px solid rgba(233, 195, 122, .14);
}

.v2-pending-action > header strong {
  font-size: 11px;
}

.v2-pending-action > header span {
  color: var(--v2-amber);
  font-size: 9px;
}

.v2-pending-body {
  padding: 13px;
}

.v2-pending-body p {
  margin: 0;
  color: #d9d8cf;
  font-size: 11px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.v2-pending-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.v2-pending-meta span {
  padding: 4px 7px;
  border: 1px solid rgba(233, 195, 122, .14);
  border-radius: 5px;
  color: #c4bfa9;
  font-size: 9px;
}

.v2-pending-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 13px 13px;
}

.v2-composer-wrap {
  padding: 12px;
  border-top: 1px solid var(--v2-line);
  background: #0f1215;
}

.v2-composer {
  display: grid;
  min-width: 0;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--v2-line-strong);
  border-radius: 8px;
  background: #090c0f;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.v2-composer:focus-within {
  border-color: rgba(121, 220, 228, .4);
  box-shadow: 0 0 0 3px rgba(121, 220, 228, .06);
}

.v2-mode-switch {
  display: inline-flex;
  width: max-content;
  padding: 3px;
  border: 1px solid var(--v2-line);
  border-radius: 7px;
  background: var(--v2-surface);
}

.v2-mode-switch button {
  min-height: 27px;
  padding: 0 10px;
  border: 0;
  border-radius: 5px;
  color: var(--v2-muted);
  background: transparent;
  font-size: 9px;
}

.v2-mode-switch button.is-active {
  color: var(--v2-text);
  background: var(--v2-surface-3);
  box-shadow: inset 0 0 0 1px var(--v2-line);
}

.v2-composer textarea {
  width: 100%;
  min-height: 70px;
  resize: vertical;
  border: 0;
  outline: 0;
  color: var(--v2-text);
  background: transparent;
  font-size: 12px;
  line-height: 1.55;
}

.v2-composer textarea::placeholder,
.v2-field input::placeholder,
.v2-field textarea::placeholder {
  color: #566166;
}

.v2-composer-foot {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.v2-composer-source {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  color: var(--v2-dim);
  font-size: 9px;
}

.v2-composer-source span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-context-column {
  display: grid;
  min-width: 0;
  gap: 12px;
}

.v2-context-list,
.v2-action-list,
.v2-plain-list {
  display: grid;
}

.v2-context-row,
.v2-action-row,
.v2-plain-row {
  display: grid;
  min-width: 0;
  align-items: center;
  border-bottom: 1px solid var(--v2-line);
}

.v2-context-row:last-child,
.v2-action-row:last-child,
.v2-plain-row:last-child {
  border-bottom: 0;
}

.v2-context-row {
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 9px;
  min-height: 53px;
  padding: 7px 14px;
}

button.v2-context-row {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--v2-line);
  color: inherit;
  background: transparent;
  text-align: left;
}

button.v2-context-row:hover {
  background: rgba(255, 255, 255, .018);
}

.v2-context-row > span:first-child {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--v2-line);
  border-radius: 6px;
  color: var(--v2-muted);
  background: var(--v2-surface-2);
}

.v2-context-row > span:first-child .v2-icon {
  width: 13px;
  height: 13px;
}

.v2-context-row > div {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.v2-context-row strong,
.v2-context-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-context-row strong {
  font-size: 10px;
  font-weight: 620;
}

.v2-context-row small {
  color: var(--v2-muted);
  font-size: 9px;
}

.v2-context-row > em {
  color: var(--v2-green);
  font-size: 9px;
  font-style: normal;
}

.v2-context-hash {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-top: 1px solid var(--v2-line);
  color: var(--v2-dim);
  font-size: 9px;
}

.v2-context-hash code {
  overflow: hidden;
  color: #98aaa4;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-action-row {
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 52px;
  padding: 7px 14px;
}

.v2-action-index {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--v2-line);
  border-radius: 50%;
  color: var(--v2-dim);
  font-size: 9px;
}

.v2-action-row.is-done .v2-action-index {
  color: #0c1712;
  border-color: var(--v2-green);
  background: var(--v2-green);
}

.v2-action-row.is-current .v2-action-index {
  color: var(--v2-amber);
  border-color: rgba(233, 195, 122, .36);
  background: rgba(111, 78, 25, .2);
  animation: v2Pulse 1.8s ease-in-out infinite;
}

.v2-action-row > div {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.v2-action-row strong {
  font-size: 10px;
}

.v2-action-row small {
  overflow: hidden;
  color: var(--v2-muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-action-row > em {
  color: var(--v2-dim);
  font-size: 9px;
  font-style: normal;
}

.v2-artifact-section {
  grid-column: 1 / -1;
}

.v2-artifact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}

.v2-artifact-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--v2-line);
  border-radius: 8px;
  background: #0d1013;
  transition: transform .18s ease, border-color .18s ease;
}

.v2-artifact-card:hover {
  border-color: var(--v2-line-strong);
  transform: translateY(-2px);
}

.v2-artifact-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #171b20;
}

.v2-artifact-media img,
.v2-artifact-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v2-artifact-media > span {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 6px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 5px;
  color: #f4f6f5;
  background: rgba(8, 10, 13, .72);
  font-size: 8px;
  backdrop-filter: blur(8px);
}

.v2-artifact-copy {
  display: grid;
  min-width: 0;
  gap: 5px;
  padding: 11px 12px;
}

.v2-artifact-copy h3 {
  overflow: hidden;
  margin: 0;
  font-size: 11px;
  font-weight: 640;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-artifact-copy p {
  overflow: hidden;
  margin: 0;
  color: var(--v2-muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-artifact-meta {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--v2-dim);
  font-size: 9px;
}

.v2-artifact-meta strong {
  color: var(--v2-amber);
  font-size: 9px;
  font-weight: 600;
}

.v2-artifact-actions {
  display: flex;
  gap: 7px;
  padding: 0 12px 12px;
}

.v2-artifact-actions > * {
  min-width: 0;
  flex: 1;
}

.v2-artifact-actions .v2-primary,
.v2-artifact-actions .v2-secondary,
.v2-artifact-actions .v2-quiet {
  min-height: 32px;
  padding: 0 8px;
  font-size: 9px;
}

.v2-empty-state {
  display: grid;
  min-height: 180px;
  place-items: center;
  padding: 28px;
  color: var(--v2-muted);
  text-align: center;
}

.v2-empty-state > div {
  display: grid;
  max-width: 420px;
  place-items: center;
  gap: 9px;
}

.v2-empty-state .v2-icon {
  width: 24px;
  height: 24px;
  color: var(--v2-dim);
}

.v2-empty-state strong {
  color: var(--v2-text);
  font-size: 12px;
}

.v2-empty-state p {
  margin: 0;
  font-size: 10px;
}

.v2-object-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--v2-line);
  border-radius: 8px;
  background: var(--v2-surface);
}

.v2-learning-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--v2-line);
  border-radius: 8px;
  background: var(--v2-surface);
}

.v2-learning-steps article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  min-height: 72px;
  align-items: center;
  padding: 12px 14px;
  border-right: 1px solid var(--v2-line);
}

.v2-learning-steps article:last-child {
  border-right: 0;
}

.v2-learning-steps article > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--v2-line);
  border-radius: 7px;
  color: var(--v2-dim);
  background: var(--v2-surface-2);
  font-size: 9px;
}

.v2-learning-steps article > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.v2-learning-steps strong,
.v2-learning-steps small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-learning-steps strong {
  font-size: 10px;
}

.v2-learning-steps small {
  color: var(--v2-muted);
  font-size: 8px;
}

.v2-learning-steps article.is-current {
  background: rgba(233, 195, 122, .04);
}

.v2-learning-steps article.is-current > span {
  color: var(--v2-amber);
  border-color: rgba(233, 195, 122, .22);
  background: rgba(91, 67, 28, .16);
}

.v2-learning-steps article.is-done > span {
  color: #0b1711;
  border-color: var(--v2-green);
  background: var(--v2-green);
}

.v2-learning-product {
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 64px;
  align-items: center;
  padding: 8px 12px;
}

.v2-learning-product > div:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.v2-learning-product strong,
.v2-learning-product small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-learning-product strong { font-size: 10px; }
.v2-learning-product small { color: var(--v2-muted); font-size: 8px; }

.v2-product-mini {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--v2-line);
  border-radius: 7px;
  color: var(--v2-dim);
  background: var(--v2-surface-2);
}

.v2-product-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v2-object-stat {
  display: grid;
  min-width: 0;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 76px;
  padding: 12px 14px;
  border-right: 1px solid var(--v2-line);
}

.v2-object-stat:last-child {
  border-right: 0;
}

.v2-object-stat > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--v2-line);
  border-radius: 7px;
  color: var(--v2-muted);
  background: var(--v2-surface-2);
}

.v2-object-stat > div {
  display: grid;
  min-width: 0;
}

.v2-object-stat strong {
  font-size: 17px;
  font-weight: 660;
}

.v2-object-stat small {
  overflow: hidden;
  color: var(--v2-muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: 16px;
  align-items: start;
}

.v2-three-column {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.v2-brand-hero {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) 210px;
  gap: 20px;
  align-items: center;
  min-height: 170px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--v2-line-strong);
  border-radius: 8px;
  background: #101418;
}

.v2-brand-hero-media {
  width: 118px;
  height: 118px;
  overflow: hidden;
  border: 1px solid var(--v2-line);
  border-radius: 8px;
  background: var(--v2-surface-2);
}

.v2-brand-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v2-brand-hero-copy {
  min-width: 0;
}

.v2-brand-hero-copy span {
  color: var(--v2-green);
  font-size: 9px;
  font-weight: 730;
}

.v2-brand-hero-copy h2 {
  margin: 6px 0 4px;
  font-size: 27px;
  font-weight: 650;
  line-height: 1.2;
}

.v2-brand-hero-copy p {
  max-width: 700px;
  margin: 0;
  color: var(--v2-muted);
  font-size: 12px;
}

.v2-brand-hero-copy a {
  display: block;
  margin-top: 9px;
  overflow: hidden;
  color: #a5b7b1;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-completeness {
  display: grid;
  gap: 9px;
  padding: 14px;
  border-left: 1px solid var(--v2-line);
}

.v2-completeness > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  color: var(--v2-muted);
  font-size: 9px;
}

.v2-completeness strong {
  color: var(--v2-text);
  font-size: 26px;
}

.v2-progress {
  height: 5px;
  overflow: hidden;
  border-radius: 5px;
  background: #22282d;
}

.v2-progress i {
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--v2-green);
}

.v2-completeness small {
  color: var(--v2-dim);
  font-size: 9px;
}

.v2-core-section {
  min-width: 0;
  border: 1px solid var(--v2-line);
  border-radius: 8px;
  background: var(--v2-surface);
}

.v2-core-section > header {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--v2-line);
}

.v2-core-section > header > div {
  display: grid;
  gap: 2px;
}

.v2-core-section > header h3 {
  margin: 0;
  font-size: 12px;
}

.v2-core-section > header small {
  color: var(--v2-muted);
  font-size: 9px;
}

.v2-core-section > header em {
  color: var(--v2-green);
  font-size: 9px;
  font-style: normal;
}

.v2-core-content {
  padding: 14px;
}

.v2-core-content > p {
  margin: 0;
  color: #dce2df;
  font-size: 12px;
  line-height: 1.7;
}

.v2-value-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.v2-value-list > div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  min-height: 41px;
  align-items: start;
  padding: 9px 0;
  border-bottom: 1px solid var(--v2-line);
}

.v2-value-list > div:last-child {
  border-bottom: 0;
}

.v2-value-list dt {
  color: var(--v2-muted);
  font-size: 9px;
}

.v2-value-list dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: #dce2df;
  font-size: 10px;
}

.v2-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.v2-chip {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border: 1px solid var(--v2-line);
  border-radius: 6px;
  color: #c7cfcc;
  background: var(--v2-surface-2);
  font-size: 9px;
}

.v2-chip.is-green { color: #bce4d1; border-color: rgba(134, 227, 187, .16); background: rgba(33, 74, 56, .15); }
.v2-chip.is-amber { color: #dfcca6; border-color: rgba(233, 195, 122, .16); background: rgba(91, 67, 28, .15); }
.v2-chip.is-violet { color: #d2c8ef; border-color: rgba(183, 161, 246, .16); background: rgba(65, 52, 99, .15); }

.v2-audience-list {
  display: grid;
  gap: 8px;
}

.v2-audience-item {
  display: grid;
  gap: 3px;
  padding: 10px 0;
  border-bottom: 1px solid var(--v2-line);
}

.v2-audience-item:last-child {
  border-bottom: 0;
}

.v2-audience-item strong {
  font-size: 10px;
}

.v2-audience-item small {
  color: var(--v2-muted);
  font-size: 9px;
}

.v2-form {
  display: grid;
  gap: 14px;
}

.v2-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.v2-field {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.v2-field.is-wide {
  grid-column: 1 / -1;
}

.v2-field > span,
.v2-field > label {
  color: var(--v2-muted);
  font-size: 9px;
  font-weight: 620;
}

.v2-field input,
.v2-field textarea,
.v2-field select {
  width: 100%;
  min-width: 0;
  min-height: 39px;
  padding: 9px 10px;
  border: 1px solid var(--v2-line);
  border-radius: 7px;
  outline: 0;
  color: var(--v2-text);
  background: #0a0d10;
  font-size: 11px;
}

.v2-field textarea {
  min-height: 86px;
  resize: vertical;
  line-height: 1.55;
}

.v2-field input:focus,
.v2-field textarea:focus,
.v2-field select:focus {
  border-color: rgba(121, 220, 228, .4);
}

.v2-check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.v2-check {
  display: flex;
  min-width: 0;
  min-height: 36px;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid var(--v2-line);
  border-radius: 7px;
  color: var(--v2-muted);
  background: #0d1013;
  font-size: 9px;
}

.v2-check input {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  accent-color: var(--v2-green);
}

.v2-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 2px;
}

.v2-tabs {
  display: inline-flex;
  max-width: 100%;
  padding: 3px;
  overflow: hidden auto;
  border: 1px solid var(--v2-line);
  border-radius: 7px;
  background: #0d1013;
}

.v2-tabs button {
  min-height: 30px;
  flex: 0 0 auto;
  padding: 0 11px;
  border: 0;
  border-radius: 5px;
  color: var(--v2-muted);
  background: transparent;
  font-size: 9px;
}

.v2-tabs button.is-active {
  color: var(--v2-text);
  background: var(--v2-surface-3);
}

.v2-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.v2-table-wrap {
  min-width: 0;
  overflow-x: auto;
}

.v2-table th,
.v2-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--v2-line);
  text-align: left;
  vertical-align: middle;
}

.v2-table th {
  color: var(--v2-dim);
  font-size: 9px;
  font-weight: 650;
}

.v2-table td {
  color: #d7dedb;
  font-size: 10px;
}

.v2-table tr:last-child td {
  border-bottom: 0;
}

.v2-table td strong,
.v2-table td small {
  display: block;
  max-width: 380px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-table td strong {
  color: var(--v2-text);
  font-size: 10px;
}

.v2-table td small {
  margin-top: 2px;
  color: var(--v2-muted);
  font-size: 9px;
}

.v2-table button {
  min-height: 29px;
  padding: 0 8px;
  border: 1px solid var(--v2-line);
  border-radius: 6px;
  color: var(--v2-muted);
  background: var(--v2-surface-2);
  font-size: 9px;
}

.v2-table button:hover {
  color: var(--v2-text);
  border-color: var(--v2-line-strong);
}

.v2-status {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  gap: 6px;
  padding: 0 7px;
  border: 1px solid var(--v2-line);
  border-radius: 5px;
  color: var(--v2-muted);
  background: var(--v2-surface-2);
  font-size: 8px;
  white-space: nowrap;
}

.v2-status::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--v2-dim);
  content: "";
}

.v2-status.is-ready,
.v2-status.is-adopted,
.v2-status.is-active,
.v2-status.is-completed,
.v2-status.is-paid,
.v2-status.is-issued {
  color: #bce0cf;
  border-color: rgba(134, 227, 187, .14);
  background: rgba(33, 74, 56, .13);
}

.v2-status.is-ready::before,
.v2-status.is-adopted::before,
.v2-status.is-active::before,
.v2-status.is-completed::before,
.v2-status.is-paid::before,
.v2-status.is-issued::before {
  background: var(--v2-green);
}

.v2-status.is-pending,
.v2-status.is-running,
.v2-status.is-submitted,
.v2-status.is-manual_required,
.v2-status.is-pending_payment {
  color: #decca7;
  border-color: rgba(233, 195, 122, .14);
  background: rgba(91, 67, 28, .13);
}

.v2-status.is-pending::before,
.v2-status.is-running::before,
.v2-status.is-submitted::before,
.v2-status.is-manual_required::before,
.v2-status.is-pending_payment::before {
  background: var(--v2-amber);
}

.v2-status.is-failed,
.v2-status.is-blocked,
.v2-status.is-rejected,
.v2-status.is-refunded,
.v2-status.is-voided {
  color: #e0b3b5;
  border-color: rgba(238, 141, 146, .14);
  background: rgba(105, 38, 42, .13);
}

.v2-status.is-failed::before,
.v2-status.is-blocked::before,
.v2-status.is-rejected::before,
.v2-status.is-refunded::before,
.v2-status.is-voided::before {
  background: var(--v2-red);
}

.v2-asset-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

.v2-asset-item {
  display: grid;
  min-width: 0;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  min-height: 82px;
  padding: 9px;
  border: 1px solid var(--v2-line);
  border-radius: 8px;
  background: #0d1013;
}

.v2-asset-thumb {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--v2-line);
  border-radius: 7px;
  color: var(--v2-dim);
  background: var(--v2-surface-2);
}

.v2-asset-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v2-asset-item > div:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.v2-asset-item strong,
.v2-asset-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-asset-item strong {
  font-size: 10px;
}

.v2-asset-item small {
  color: var(--v2-muted);
  font-size: 9px;
}

.v2-asset-item > div:last-child {
  display: grid;
  justify-items: end;
  gap: 7px;
}

.v2-switch {
  position: relative;
  width: 34px;
  height: 20px;
  border: 1px solid var(--v2-line-strong);
  border-radius: 12px;
  background: #242a2f;
}

.v2-switch::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #899397;
  content: "";
  transition: transform .18s ease, background .18s ease;
}

.v2-switch.is-on {
  border-color: rgba(134, 227, 187, .3);
  background: rgba(58, 125, 91, .35);
}

.v2-switch.is-on::after {
  background: var(--v2-green);
  transform: translateX(14px);
}

.v2-capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.v2-capability-card {
  display: flex;
  min-width: 0;
  min-height: 260px;
  flex-direction: column;
  border: 1px solid var(--v2-line);
  border-radius: 8px;
  background: var(--v2-surface);
}

.v2-capability-card > header {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 14px;
  border-bottom: 1px solid var(--v2-line);
}

.v2-capability-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--v2-line);
  border-radius: 8px;
  color: var(--v2-violet);
  background: rgba(70, 57, 102, .18);
}

.v2-capability-card > header > div:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.v2-capability-card h3 {
  overflow: hidden;
  margin: 0;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-capability-card header small {
  color: var(--v2-muted);
  font-size: 8px;
}

.v2-capability-card > div {
  display: grid;
  gap: 12px;
  flex: 1;
  padding: 13px 14px;
}

.v2-capability-card p {
  margin: 0;
  color: var(--v2-muted);
  font-size: 10px;
  line-height: 1.6;
}

.v2-scope-list {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 5px;
}

.v2-scope-list span {
  padding: 3px 6px;
  border: 1px solid var(--v2-line);
  border-radius: 5px;
  color: var(--v2-dim);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 8px;
}

.v2-capability-card > footer {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-top: 1px solid var(--v2-line);
}

.v2-capability-card > footer > span {
  color: var(--v2-amber);
  font-size: 9px;
}

.v2-agent-contract {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  min-height: 280px;
  overflow: hidden;
  border: 1px solid var(--v2-line-strong);
  border-radius: 8px;
  background: #101418;
}

.v2-agent-contract-side {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 12px;
  padding: 22px;
  border-right: 1px solid var(--v2-line);
  background: #0d1013;
}

.v2-agent-contract-side .v2-agent-avatar {
  width: 52px;
  height: 52px;
}

.v2-agent-contract-side h2 {
  margin: 0;
  font-size: 17px;
}

.v2-agent-contract-side p {
  margin: 0;
  color: var(--v2-muted);
  font-size: 10px;
}

.v2-agent-contract-main {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.v2-contract-block {
  min-width: 0;
  padding: 18px;
  border-right: 1px solid var(--v2-line);
  border-bottom: 1px solid var(--v2-line);
}

.v2-contract-block:nth-child(2n) {
  border-right: 0;
}

.v2-contract-block:nth-last-child(-n+2) {
  border-bottom: 0;
}

.v2-contract-block h3 {
  margin: 0 0 10px;
  color: var(--v2-muted);
  font-size: 9px;
}

.v2-contract-block ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.v2-contract-block li {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  color: #d4dcda;
  font-size: 9px;
}

.v2-contract-block li::before {
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 50%;
  background: var(--v2-green);
  content: "";
}

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

.v2-order-grid {
  align-items: start;
}

.v2-run-list {
  display: grid;
}

.v2-run-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 110px 86px 16px;
  gap: 12px;
  min-height: 70px;
  align-items: center;
  width: 100%;
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid var(--v2-line);
  color: inherit;
  background: transparent;
  text-align: left;
}

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

.v2-run-row:hover,
.v2-run-row.is-selected {
  background: rgba(255, 255, 255, .018);
}

.v2-run-row.is-selected {
  box-shadow: inset 2px 0 var(--v2-green);
}

.v2-run-type {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--v2-line);
  border-radius: 7px;
  color: var(--v2-cyan);
  background: var(--v2-surface-2);
}

.v2-run-row > div:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.v2-run-row strong,
.v2-run-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-run-row strong {
  font-size: 10px;
}

.v2-run-row small {
  color: var(--v2-muted);
  font-size: 9px;
}

.v2-run-row > time {
  color: var(--v2-dim);
  font-size: 9px;
  text-align: right;
}

.v2-run-row > .v2-icon {
  width: 13px;
  height: 13px;
  color: var(--v2-dim);
}

.v2-run-detail {
  position: sticky;
  top: calc(var(--v2-topbar-height) + 16px);
  overflow: hidden;
}

.v2-detail-section {
  padding: 13px 14px;
  border-bottom: 1px solid var(--v2-line);
}

.v2-detail-section:last-child {
  border-bottom: 0;
}

.v2-detail-section > h3 {
  margin: 0 0 9px;
  color: var(--v2-muted);
  font-size: 9px;
}

.v2-detail-section > p {
  margin: 0;
  color: #d5ddda;
  font-size: 10px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.v2-lineage-list {
  display: grid;
}

.v2-lineage-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 9px;
  padding: 7px 0;
  border-bottom: 1px solid var(--v2-line);
}

.v2-lineage-item:last-child {
  border-bottom: 0;
}

.v2-lineage-item span {
  color: var(--v2-dim);
  font-size: 9px;
}

.v2-lineage-item strong {
  min-width: 0;
  overflow: hidden;
  color: #d6ddda;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-governance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.v2-model-routing {
  margin-bottom: 16px;
}

.v2-model-route-list {
  display: grid;
}

.v2-model-route {
  display: grid;
  grid-template-columns: 34px minmax(118px, .72fr) minmax(140px, .9fr) minmax(180px, 1.2fr) auto 78px;
  gap: 12px;
  min-height: 70px;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--v2-line);
  transition: background .18s ease;
}

.v2-model-route:last-child {
  border-bottom: 0;
}

.v2-model-route:hover {
  background: rgba(255, 255, 255, .018);
}

.v2-model-route-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(134, 227, 187, .22);
  border-radius: 6px;
  color: var(--v2-green);
  background: rgba(134, 227, 187, .045);
}

.v2-model-route-mark .v2-icon {
  width: 14px;
  height: 14px;
}

.v2-model-route-name {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.v2-model-route-name strong {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-model-route-name small,
.v2-route-control > span,
.v2-route-readonly {
  color: var(--v2-dim);
  font-size: 8px;
}

.v2-route-control {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.v2-route-control select,
.v2-route-control input {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 0 9px;
  border: 1px solid var(--v2-line-strong);
  border-radius: 5px;
  outline: 0;
  color: var(--v2-text);
  background: #0b0f12;
  font: inherit;
  font-size: 10px;
}

.v2-route-control select:focus,
.v2-route-control input:focus {
  border-color: rgba(134, 227, 187, .45);
  box-shadow: 0 0 0 2px rgba(134, 227, 187, .07);
}

.v2-route-control input:disabled,
.v2-route-control select:disabled {
  color: var(--v2-muted);
  opacity: .72;
}

.v2-route-readonly {
  justify-self: end;
}

.v2-route-required {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 68px;
  align-items: center;
  padding: 12px 14px;
  border-color: rgba(233, 195, 122, .24);
  background: rgba(233, 195, 122, .035);
}

.v2-route-required > span:first-child {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(233, 195, 122, .24);
  border-radius: 6px;
  color: var(--v2-amber);
}

.v2-route-required > div {
  display: grid;
  gap: 3px;
}

.v2-route-required strong {
  font-size: 10px;
}

.v2-route-required small {
  color: var(--v2-muted);
  font-size: 9px;
}

.v2-service-list {
  display: grid;
}

.v2-service-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 56px;
  align-items: center;
  padding: 8px 14px;
  border-bottom: 1px solid var(--v2-line);
}

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

.v2-service-row > span:first-child {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid var(--v2-line);
  border-radius: 6px;
  color: var(--v2-muted);
}

.v2-service-row > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.v2-service-row strong,
.v2-service-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-service-row strong {
  font-size: 10px;
}

.v2-service-row small {
  color: var(--v2-muted);
  font-size: 9px;
}

.v2-audit-list {
  display: grid;
}

.v2-audit-item {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 52px;
  align-items: center;
  padding: 8px 14px;
  border-bottom: 1px solid var(--v2-line);
}

.v2-audit-item:last-child {
  border-bottom: 0;
}

.v2-audit-item > i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--v2-dim);
}

.v2-audit-item > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.v2-audit-item strong,
.v2-audit-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-audit-item strong {
  font-size: 9px;
}

.v2-audit-item small,
.v2-audit-item time {
  color: var(--v2-dim);
  font-size: 8px;
}

.v2-auth {
  display: grid;
  width: min(940px, 100%);
  min-height: 590px;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr);
  margin: 40px auto;
  overflow: hidden;
  border: 1px solid var(--v2-line-strong);
  border-radius: 8px;
  background: var(--v2-surface);
  box-shadow: var(--v2-shadow);
}

.v2-auth-context {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px;
  border-right: 1px solid var(--v2-line);
  background: #0c1013;
}

.v2-auth-context h2 {
  max-width: 480px;
  margin: 0;
  font-size: 32px;
  font-weight: 630;
  line-height: 1.2;
}

.v2-auth-context p {
  max-width: 460px;
  margin: 12px 0 0;
  color: var(--v2-muted);
  font-size: 12px;
}

.v2-auth-object-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 34px;
}

.v2-auth-object-list div {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--v2-line);
  border-radius: 7px;
  color: var(--v2-muted);
  background: var(--v2-surface);
  font-size: 9px;
}

.v2-auth-form-wrap {
  display: grid;
  align-content: center;
  padding: 34px;
}

.v2-auth-form-wrap > header {
  margin-bottom: 22px;
}

.v2-auth-form-wrap h1 {
  margin: 4px 0 5px;
  font-size: 22px;
}

.v2-auth-form-wrap p {
  margin: 0;
  color: var(--v2-muted);
  font-size: 10px;
}

.v2-auth-error {
  min-height: 20px;
  color: #e6a7aa;
  font-size: 9px;
}

.v2-auth-demos {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--v2-line);
}

.v2-auth-demos > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}

.v2-auth-demos > header strong {
  font-size: 10px;
}

.v2-auth-demos > header small {
  color: var(--v2-dim);
  font-size: 8px;
}

.v2-auth-demos > div {
  display: grid;
}

.v2-auth-demos a {
  display: grid;
  min-width: 0;
  grid-template-columns: 42px minmax(0, 1fr) 14px;
  gap: 10px;
  align-items: center;
  min-height: 56px;
  padding: 7px 2px;
  border-top: 1px solid rgba(255, 255, 255, .055);
  color: var(--v2-text);
  text-decoration: none;
}

.v2-auth-demos a:hover strong {
  color: var(--v2-green);
}

.v2-auth-demos a > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--v2-line);
  border-radius: 7px;
  background: #171b1d;
}

.v2-auth-demos a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v2-auth-demos a:first-child img {
  padding: 4px;
  object-fit: contain;
}

.v2-auth-demos a > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.v2-auth-demos a strong,
.v2-auth-demos a small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-auth-demos a strong {
  font-size: 10px;
  transition: color .16s ease;
}

.v2-auth-demos a small {
  color: var(--v2-muted);
  font-size: 8px;
}

.v2-auth-demos a > .v2-icon {
  width: 13px;
  height: 13px;
  color: var(--v2-dim);
}

.v2-demo-view .v2-context-badge {
  border-color: rgba(134, 227, 187, .12);
  background: rgba(134, 227, 187, .055);
}

.v2-modal-root:empty {
  display: none;
}

.v2-modal-backdrop {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 5, 7, .74);
  backdrop-filter: blur(10px);
  animation: v2Fade .16s ease both;
}

.v2-modal {
  width: min(560px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: hidden auto;
  border: 1px solid var(--v2-line-strong);
  border-radius: 8px;
  background: #101418;
  box-shadow: 0 32px 100px rgba(0, 0, 0, .58);
  animation: v2Modal .2s ease both;
}

.v2-modal > header {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--v2-line);
}

.v2-modal > header > div {
  display: grid;
  gap: 2px;
}

.v2-modal > header h2 {
  margin: 0;
  font-size: 14px;
}

.v2-modal > header p {
  margin: 0;
  color: var(--v2-muted);
  font-size: 9px;
}

.v2-modal > .v2-asset-mode {
  margin: 16px 16px 0;
  justify-self: start;
}

.v2-upload-drop {
  position: relative;
  display: grid;
  min-height: 138px;
  place-items: center;
  align-content: center;
  gap: 6px;
  padding: 18px;
  border: 1px dashed rgba(121, 220, 228, .24);
  border-radius: 8px;
  color: var(--v2-muted);
  background: rgba(121, 220, 228, .025);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.v2-upload-drop:hover,
.v2-upload-drop:focus-within,
.v2-upload-drop.has-file {
  border-color: rgba(121, 220, 228, .56);
  background: rgba(121, 220, 228, .06);
}

.v2-upload-drop:active {
  transform: translateY(1px);
}

.v2-upload-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.v2-upload-drop > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(121, 220, 228, .2);
  border-radius: 7px;
  color: var(--v2-cyan);
  background: rgba(121, 220, 228, .08);
}

.v2-upload-drop > span .v2-icon {
  width: 16px;
  height: 16px;
}

.v2-upload-drop strong {
  max-width: 100%;
  overflow: hidden;
  color: var(--v2-text);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-upload-drop small {
  color: var(--v2-dim);
  font-size: 9px;
}

.v2-modal > .v2-form,
.v2-modal > .v2-modal-body {
  padding: 16px;
}

.v2-modal-checks {
  display: grid;
  gap: 8px;
}

.v2-modal-checks .v2-check {
  min-height: 44px;
}

.v2-modal-checks .v2-check:has(input:checked) {
  border-color: rgba(134, 227, 187, .46);
  color: var(--v2-text);
  background: rgba(134, 227, 187, .075);
}

.v2-modal .v2-form-actions > small {
  margin-right: auto;
  color: var(--v2-muted);
  font-size: 9px;
}

.v2-toast {
  position: fixed;
  z-index: 100;
  right: 20px;
  bottom: 20px;
  max-width: min(380px, calc(100vw - 40px));
  padding: 11px 13px;
  border: 1px solid var(--v2-line-strong);
  border-radius: 7px;
  color: #e7ecea;
  background: #171c20;
  box-shadow: var(--v2-shadow);
  font-size: 10px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}

.v2-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.v2-overlay {
  display: none;
}

.v2-loading {
  display: grid;
  min-height: calc(100vh - 120px);
  place-items: center;
  color: var(--v2-muted);
}

.v2-loading > div {
  display: grid;
  place-items: center;
  gap: 12px;
}

.v2-loading i {
  width: 26px;
  height: 26px;
  border: 2px solid var(--v2-line);
  border-top-color: var(--v2-green);
  border-radius: 50%;
  animation: v2Spin .8s linear infinite;
}

.v2-error {
  display: grid;
  min-height: 420px;
  place-items: center;
  padding: 28px;
  text-align: center;
}

.v2-error > div {
  display: grid;
  max-width: 460px;
  justify-items: center;
  gap: 10px;
}

.v2-error h2 {
  margin: 0;
  font-size: 19px;
}

.v2-error p {
  margin: 0;
  color: var(--v2-muted);
  font-size: 11px;
}

.rail-collapsed .v2-shell {
  grid-template-columns: 72px minmax(0, 1fr);
}

.rail-collapsed .v2-rail {
  padding-right: 10px;
  padding-left: 10px;
}

.rail-collapsed .v2-rail-head {
  grid-template-columns: 1fr;
  justify-items: center;
}

.rail-collapsed .v2-lockup > span:last-child,
.rail-collapsed .v2-brand-switch > span:nth-child(2),
.rail-collapsed .v2-brand-switch > .v2-icon,
.rail-collapsed .v2-nav > p,
.rail-collapsed .v2-nav a > b,
.rail-collapsed .v2-nav a > em,
.rail-collapsed .v2-nav button > b,
.rail-collapsed .v2-nav button > em,
.rail-collapsed .v2-credit-line,
.rail-collapsed .v2-system-line,
.rail-collapsed .v2-version-link b,
.rail-collapsed .v2-version-link > .v2-icon {
  display: none;
}

.rail-collapsed .v2-rail-head .v2-icon-button {
  display: inline-grid;
  justify-self: center;
}

.rail-collapsed .v2-brand-switch {
  grid-template-columns: 38px;
  justify-content: center;
  padding: 8px 6px;
}

.rail-collapsed .v2-nav {
  margin-top: 8px;
  gap: 5px;
}

.rail-collapsed .v2-nav a,
.rail-collapsed .v2-nav button {
  grid-template-columns: 32px;
  justify-content: center;
  padding: 4px;
}

.rail-collapsed .v2-nav a.is-active::before {
  left: -10px;
}

.rail-collapsed .v2-rail-foot {
  justify-items: center;
}

.rail-collapsed .v2-version-link {
  grid-template-columns: 28px;
  width: 40px;
  justify-content: center;
  padding: 6px;
}

@keyframes v2Enter {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes v2SoonPulse {
  0% { box-shadow: 0 0 0 0 rgba(233, 195, 122, .24); }
  60%, 100% { box-shadow: 0 0 0 8px rgba(233, 195, 122, 0); }
}

@keyframes v2Message {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes v2Pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(233, 195, 122, 0); }
  50% { box-shadow: 0 0 0 4px rgba(233, 195, 122, .08); }
}

@keyframes v2Spin {
  to { transform: rotate(360deg); }
}

@keyframes v2Fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes v2Modal {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1280px) {
  .v2-workspace-grid { grid-template-columns: minmax(0, 1fr) 292px; }
  .v2-artifact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .v2-capability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v2-object-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .v2-object-stat:nth-child(3) { border-right: 0; }
  .v2-object-stat:nth-child(n+4) { border-top: 1px solid var(--v2-line); }
}

@media (max-width: 980px) {
  .v2-workspace-grid,
  .v2-two-column,
  .v2-run-layout { grid-template-columns: 1fr; }
  .v2-context-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v2-artifact-section { grid-column: auto; }
  .v2-artifact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v2-brand-hero { grid-template-columns: 92px minmax(0, 1fr); }
  .v2-brand-hero-media { width: 92px; height: 92px; }
  .v2-completeness { grid-column: 1 / -1; border-top: 1px solid var(--v2-line); border-left: 0; }
  .v2-run-detail { position: static; }
  .v2-governance-grid { grid-template-columns: 1fr; }
  .v2-agent-contract { grid-template-columns: 180px minmax(0, 1fr); }
  .v2-model-route {
    grid-template-columns: 32px minmax(110px, .7fr) minmax(130px, 1fr) minmax(150px, 1.15fr) auto 70px;
    gap: 9px;
  }
}

@media (max-width: 760px) {
  :root { --v2-topbar-height: 62px; }
  .v2-shell { display: block; }
  .v2-rail {
    position: fixed;
    z-index: 70;
    left: 0;
    width: min(280px, calc(100vw - 44px));
    transform: translateX(-105%);
    transition: transform .22s ease;
    box-shadow: 24px 0 80px rgba(0, 0, 0, .5);
  }
  .mobile-nav-open .v2-rail { transform: translateX(0); }
  .mobile-nav-open .v2-overlay {
    position: fixed;
    z-index: 60;
    inset: 0;
    display: block;
    background: rgba(4, 6, 8, .68);
    backdrop-filter: blur(6px);
  }
  .v2-mobile-menu { display: inline-grid; }
  .v2-topbar { padding: 0 12px; gap: 10px; }
  .v2-demo-view .v2-agent-state,
  .v2-demo-view .v2-wallet-badge { display: none; }
  .v2-demo-switch > span { display: none; }
  .v2-demo-switch button { padding: 0 7px; }
  .v2-context-badge { display: none; }
  .v2-top-actions > .v2-icon-button { display: none; }
  .v2-primary.compact span { display: none; }
  .v2-primary.compact { width: 34px; padding: 0; }
  .v2-surface { padding: 14px 12px 30px; }
  .v2-auth-view .v2-surface { padding: 0 10px 20px; }
  .v2-page-intro { align-items: start; flex-direction: column; }
  .v2-page-intro h2 { font-size: 20px; }
  .v2-agent-stage { min-height: calc(100vh - 102px); }
  .v2-agent-head { min-height: 58px; padding: 10px 12px; }
  .v2-run-id { max-width: 110px; }
  .v2-message-stream { padding: 16px 12px; }
  .v2-empty-agent { padding: 24px 10px; }
  .v2-empty-agent h2 { font-size: 18px; }
  .v2-composer-wrap { padding: 9px; }
  .v2-composer-foot { align-items: stretch; flex-direction: column; }
  .v2-composer-foot .v2-primary { width: 100%; }
  .v2-context-column { grid-template-columns: 1fr; }
  .v2-artifact-grid,
  .v2-three-column,
  .v2-capability-grid,
  .v2-asset-list,
  .v2-form-grid,
  .v2-check-grid { grid-template-columns: 1fr; }
  .v2-object-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v2-learning-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v2-learning-steps article:nth-child(2n) { border-right: 0; }
  .v2-learning-steps article:nth-child(n+3) { border-top: 1px solid var(--v2-line); }
  .v2-model-route {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px;
  }
  .v2-model-route .v2-route-control { grid-column: 1 / -1; }
  .v2-model-route > .v2-status { grid-column: 2; justify-self: start; }
  .v2-model-route > .v2-secondary,
  .v2-model-route > .v2-route-readonly { grid-column: 3; grid-row: 1; }
  .v2-route-required { grid-template-columns: 36px minmax(0, 1fr); }
  .v2-route-required .v2-secondary { grid-column: 1 / -1; width: 100%; }
  .v2-object-stat,
  .v2-object-stat:nth-child(3) { border-right: 1px solid var(--v2-line); }
  .v2-object-stat:nth-child(2n) { border-right: 0; }
  .v2-object-stat:nth-child(n+3) { border-top: 1px solid var(--v2-line); }
  .v2-brand-hero { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 14px; }
  .v2-brand-hero-media { width: 64px; height: 64px; }
  .v2-brand-hero-copy h2 { font-size: 20px; }
  .v2-value-list > div { grid-template-columns: 88px minmax(0, 1fr); }
  .v2-agent-contract { grid-template-columns: 1fr; }
  .v2-agent-contract-side { border-right: 0; border-bottom: 1px solid var(--v2-line); }
  .v2-agent-contract-main { grid-template-columns: 1fr; }
  .v2-contract-block,
  .v2-contract-block:nth-child(2n),
  .v2-contract-block:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--v2-line); }
  .v2-contract-block:last-child { border-bottom: 0; }
  .v2-run-row { grid-template-columns: 34px minmax(0, 1fr) auto 14px; gap: 9px; }
  .v2-run-row > time { display: none; }
  .v2-auth { grid-template-columns: 1fr; margin: 10px auto; }
  .v2-auth-context { display: none; }
  .v2-auth-form-wrap { min-height: calc(100vh - 110px); padding: 24px 18px; }
  .v2-modal-backdrop { padding: 10px; align-items: end; }
  .v2-modal { max-height: calc(100vh - 20px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* V2.1 Jarvis workbench */

.icon-circle-check-big { --icon: url('/assets/icons/lucide/circle-check-big.svg'); }

.v2-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body::before {
  display: none;
}

.v2-topbar {
  height: 64px;
  padding: 0 16px 0 20px;
  background: rgba(8, 10, 13, .96);
}

.v2-domain-tabs {
  display: flex;
  min-width: 0;
  height: 100%;
  align-items: stretch;
  gap: 6px;
  overflow: hidden auto;
  scrollbar-width: none;
}

.v2-domain-tabs::-webkit-scrollbar {
  display: none;
}

.v2-domain-tabs a,
.v2-domain-coming-soon {
  position: relative;
  display: inline-flex;
  min-width: max-content;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  color: #929b9f;
  font-size: 12px;
  font-weight: 620;
  text-decoration: none;
  transition: color .18s ease, background .18s ease;
}

.v2-domain-tabs a:hover {
  color: var(--v2-text);
  background: rgba(255, 255, 255, .018);
}

.v2-domain-tabs a.is-active {
  color: var(--v2-green);
}

.v2-domain-tabs a.is-active::after {
  position: absolute;
  right: 12px;
  bottom: 0;
  left: 12px;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--v2-green);
  content: "";
}

.v2-domain-tabs .v2-icon {
  width: 14px;
  height: 14px;
}

.v2-domain-coming-soon {
  gap: 5px;
  padding-right: 10px;
  padding-left: 10px;
  color: #687176;
  cursor: default;
}

.v2-domain-coming-soon > em {
  min-height: 17px;
  padding: 1px 5px 0;
  border: 1px solid rgba(233, 195, 122, .16);
  border-radius: 5px;
  color: #b79c62;
  background: rgba(233, 195, 122, .045);
  font-size: 8px;
  font-style: normal;
  font-weight: 680;
  line-height: 14px;
}

.v2-top-actions .v2-primary.compact {
  flex: 0 0 auto;
  white-space: nowrap;
}

.v2-agent-state,
.v2-wallet-badge {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid var(--v2-line);
  border-radius: 7px;
  color: #b3bcb9;
  background: #0c0f12;
  font-size: 9px;
  white-space: nowrap;
}

.v2-agent-state i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--v2-green);
  box-shadow: 0 0 12px rgba(134, 227, 187, .44);
}

.v2-wallet-badge .v2-icon {
  width: 13px;
  height: 13px;
  color: var(--v2-muted);
}

.v2-wallet-badge strong {
  font-size: 9px;
  font-weight: 620;
}

.v2-surface {
  max-width: none;
  padding: 14px 16px 30px;
}

.v2-workbench-head {
  display: flex;
  min-width: 0;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--v2-line);
}

.v2-workbench-head > div:not(.v2-agent-identity) {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.v2-workbench-head strong {
  font-size: 12px;
  font-weight: 660;
}

.v2-workbench-head small {
  overflow: hidden;
  color: var(--v2-muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-agent-avatar img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.v2-quiet.compact {
  min-height: 30px;
  padding: 0 9px;
  font-size: 9px;
}

.v2-control-layout {
  display: grid;
  grid-template-columns: minmax(270px, .72fr) minmax(450px, 1.28fr) 320px;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  min-height: min(760px, calc(100vh - 94px));
  height: calc(100vh - 94px);
  max-height: 980px;
  overflow: hidden;
  border: 1px solid var(--v2-line);
  border-radius: 8px;
  background: #0b0e11;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .3);
}

.v2-command-chat,
.v2-orchestration-board,
.v2-control-rail,
.v2-control-composer {
  min-width: 0;
}

.v2-command-chat,
.v2-orchestration-board {
  display: flex;
  min-height: 0;
  flex-direction: column;
  border-right: 1px solid var(--v2-line);
}

.v2-command-conversation {
  display: grid;
  min-height: 0;
  align-content: start;
  gap: 14px;
  flex: 1;
  padding: 16px;
  overflow: hidden auto;
  background: #0a0d10;
}

.v2-command-conversation .v2-message > div,
.v2-agent-conversation .v2-message > div {
  padding: 11px 12px;
  font-size: 11px;
}

.v2-empty-agent.is-compact {
  max-width: 440px;
  padding: 30px 12px;
}

.v2-empty-agent.is-compact h2 {
  font-size: 17px;
}

.v2-empty-agent.is-compact p {
  font-size: 10px;
}

.v2-orchestration-board {
  background: #0d1013;
}

.v2-orchestration-lane {
  position: relative;
  display: grid;
  min-height: 0;
  align-content: start;
  gap: 14px;
  flex: 1;
  padding: 22px 20px 26px 36px;
  overflow: hidden auto;
}

.v2-orchestration-lane::before {
  position: absolute;
  top: 64px;
  bottom: 64px;
  left: 49px;
  width: 1px;
  background: var(--v2-line-strong);
  content: "";
}

.v2-orchestration-stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
}

.v2-stage-index {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--v2-line-strong);
  border-radius: 50%;
  color: var(--v2-dim);
  background: #11151a;
  font-size: 9px;
}

.v2-orchestration-stage.is-done .v2-stage-index {
  color: #0b1711;
  border-color: var(--v2-green);
  background: var(--v2-green);
}

.v2-orchestration-stage.is-current .v2-stage-index {
  color: var(--v2-green);
  border-color: rgba(134, 227, 187, .44);
  background: #11231b;
  box-shadow: 0 0 0 5px rgba(134, 227, 187, .05);
  animation: v2Pulse 1.8s ease-in-out infinite;
}

.v2-stage-main {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--v2-line);
  border-radius: 7px;
  background: #101418;
}

.v2-orchestration-stage.is-current .v2-stage-main,
.v2-orchestration-stage.is-done .v2-stage-main {
  border-color: rgba(134, 227, 187, .2);
}

.v2-stage-main > header {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.v2-stage-main > header strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-stage-main > header em {
  color: var(--v2-green);
  font-size: 8px;
  font-style: normal;
  white-space: nowrap;
}

.v2-stage-main > p {
  margin: 6px 0 0;
  color: var(--v2-muted);
  font-size: 9px;
}

.v2-mini-media-strip {
  display: flex;
  min-width: 0;
  gap: 7px;
  margin-top: 10px;
  overflow: hidden auto;
  scrollbar-width: thin;
}

.v2-mini-media-strip > span {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  overflow: hidden;
  border: 1px solid var(--v2-line);
  border-radius: 6px;
  background: var(--v2-surface-2);
}

.v2-mini-media-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v2-control-rail {
  display: grid;
  grid-row: 1 / 3;
  grid-column: 3;
  grid-template-rows: minmax(0, 1fr) auto;
  background: #0c0f12;
}

.v2-control-rail-section {
  min-width: 0;
  border-bottom: 1px solid var(--v2-line);
}

.v2-control-rail-section:last-child {
  border-bottom: 0;
}

.v2-control-rail-section.is-flex {
  display: flex;
  min-height: 0;
  flex-direction: column;
}

.v2-execution-events {
  display: grid;
  min-height: 0;
  align-content: start;
  gap: 0;
  padding: 5px 14px 12px;
  overflow: hidden auto;
}

.v2-execution-event {
  position: relative;
  display: grid;
  grid-template-columns: 8px 34px minmax(0, 1fr);
  gap: 8px;
  min-height: 58px;
  align-items: start;
  padding: 12px 0 8px;
}

.v2-execution-event::after {
  position: absolute;
  top: 27px;
  bottom: -12px;
  left: 3px;
  width: 1px;
  background: var(--v2-line);
  content: "";
}

.v2-execution-event:last-child::after {
  display: none;
}

.v2-execution-event > i {
  width: 7px;
  height: 7px;
  margin-top: 4px;
  border: 1px solid #50605b;
  border-radius: 50%;
  background: #14211c;
}

.v2-execution-event.is-latest > i {
  border-color: var(--v2-green);
  background: var(--v2-green);
  box-shadow: 0 0 10px rgba(134, 227, 187, .32);
}

.v2-execution-event > time {
  color: var(--v2-dim);
  font-size: 8px;
}

.v2-execution-event > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.v2-execution-event strong {
  font-size: 9px;
  font-weight: 620;
}

.v2-execution-event small {
  overflow: hidden;
  color: var(--v2-muted);
  font-size: 8px;
  line-height: 1.45;
  text-overflow: ellipsis;
}

.v2-decision-wrap {
  padding: 12px;
}

.v2-decision-card {
  padding: 12px;
  border: 1px solid rgba(134, 227, 187, .34);
  border-radius: 7px;
  background: #101915;
}

.v2-decision-card.is-pending {
  border-color: rgba(233, 195, 122, .32);
  background: #18160f;
}

.v2-decision-card > header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.v2-decision-card > header span,
.v2-decision-card > header em {
  font-size: 8px;
  font-style: normal;
}

.v2-decision-card > header span {
  color: var(--v2-green);
}

.v2-decision-card > header em {
  color: var(--v2-amber);
}

.v2-decision-card > strong {
  display: block;
  font-size: 10px;
}

.v2-decision-card > p {
  margin: 7px 0 11px;
  color: var(--v2-muted);
  font-size: 8px;
  line-height: 1.5;
}

.v2-decision-card > div:last-child {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 7px;
}

.v2-decision-card .v2-primary,
.v2-decision-card .v2-quiet {
  min-height: 32px;
  padding: 0 8px;
  font-size: 9px;
}

.v2-decision-artifact {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
}

.v2-decision-artifact img {
  width: 46px;
  height: 46px;
  border-radius: 5px;
  object-fit: cover;
}

.v2-decision-artifact > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.v2-decision-artifact strong,
.v2-decision-artifact small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-decision-artifact strong { font-size: 9px; }
.v2-decision-artifact small { color: var(--v2-muted); font-size: 8px; }

.v2-decision-empty {
  display: grid;
  place-items: center;
  padding: 17px 12px;
  color: var(--v2-muted);
  text-align: center;
}

.v2-decision-empty .v2-icon {
  width: 22px;
  height: 22px;
  margin-bottom: 8px;
  color: var(--v2-green);
}

.v2-decision-empty strong { color: var(--v2-text); font-size: 10px; }
.v2-decision-empty small { margin-top: 3px; font-size: 8px; }

.v2-control-composer {
  grid-column: 1 / 3;
  padding: 12px;
  border-top: 1px solid var(--v2-line);
  border-right: 1px solid var(--v2-line);
  background: #0d1013;
}

.v2-control-composer .v2-composer textarea {
  min-height: 54px;
}

/* Creative domain */

.v2-creative-layout {
  display: grid;
  grid-template-columns: 270px minmax(490px, 1fr) 340px;
  min-width: 0;
  min-height: min(760px, calc(100vh - 94px));
  height: calc(100vh - 94px);
  max-height: 980px;
  overflow: hidden;
  border: 1px solid var(--v2-line);
  border-radius: 8px;
  background: #0b0e11;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .3);
}

.v2-creative-left,
.v2-creative-canvas,
.v2-creative-agent {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
}

.v2-creative-left,
.v2-creative-canvas {
  border-right: 1px solid var(--v2-line);
}

.v2-creative-left-scroll,
.v2-creative-agent-scroll {
  min-height: 0;
  overflow: hidden auto;
}

.v2-creative-left-scroll {
  flex: 1;
}

.v2-creative-block {
  padding: 14px;
  border-bottom: 1px solid var(--v2-line);
}

.v2-creative-block h3 {
  display: flex;
  justify-content: space-between;
  margin: 0 0 10px;
  color: var(--v2-muted);
  font-size: 9px;
  font-weight: 620;
}

.v2-creative-block h3 span {
  color: var(--v2-dim);
  font-weight: 500;
}

.v2-product-reference {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px;
  border: 1px solid var(--v2-line);
  border-radius: 7px;
  background: #101418;
}

.v2-product-reference img {
  width: 52px;
  height: 52px;
  border-radius: 6px;
  object-fit: cover;
}

.v2-product-reference > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.v2-product-reference strong,
.v2-product-reference small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-product-reference strong { font-size: 10px; }
.v2-product-reference small { color: var(--v2-muted); font-size: 8px; }
.v2-product-reference em { color: var(--v2-green); font-size: 8px; font-style: normal; }

.v2-reference-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.v2-reference-grid button {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--v2-line);
  border-radius: 6px;
  background: var(--v2-surface-2);
}

.v2-reference-grid button.is-selected {
  border-color: var(--v2-green);
}

.v2-reference-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v2-reference-grid button > i {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  color: #0a140f;
  background: var(--v2-green);
}

.v2-reference-grid button > i .v2-icon {
  width: 11px;
  height: 11px;
}

.v2-reference-grid > small {
  grid-column: 1 / -1;
  color: var(--v2-dim);
  font-size: 8px;
}

.v2-format-switch,
.v2-ratio-switch {
  display: grid;
  gap: 7px;
}

.v2-format-switch {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 8px;
}

.v2-ratio-switch {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.v2-format-switch button,
.v2-ratio-switch button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--v2-line);
  border-radius: 6px;
  color: var(--v2-muted);
  background: #0e1215;
  font-size: 9px;
}

.v2-format-switch button.is-active,
.v2-ratio-switch button.is-active {
  color: var(--v2-green);
  border-color: rgba(134, 227, 187, .36);
  background: #111d18;
}

.v2-format-switch .v2-icon {
  width: 13px;
  height: 13px;
}

.v2-creative-block.is-tasks {
  border-bottom: 0;
}

.v2-creative-task-list {
  display: grid;
  gap: 7px;
}

.v2-creative-task {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  min-height: 48px;
  align-items: center;
  width: 100%;
  padding: 8px 9px;
  border: 1px solid var(--v2-line);
  border-radius: 6px;
  color: inherit;
  background: #0f1317;
  text-align: left;
}

.v2-creative-task:hover {
  border-color: var(--v2-line-strong);
}

.v2-creative-task > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.v2-creative-task strong,
.v2-creative-task small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-creative-task strong { font-size: 9px; }
.v2-creative-task small { color: var(--v2-muted); font-size: 8px; }
.v2-creative-task em { color: var(--v2-dim); font-size: 7px; font-style: normal; }
.v2-task-empty { color: var(--v2-dim); font-size: 9px; }

.v2-creative-canvas {
  background: #0d1013;
}

.v2-canvas-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.v2-canvas-meta span,
.v2-canvas-meta em {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  gap: 5px;
  padding: 0 7px;
  border: 1px solid var(--v2-line);
  border-radius: 5px;
  color: var(--v2-muted);
  background: #111519;
  font-size: 8px;
  font-style: normal;
}

.v2-canvas-meta em {
  color: var(--v2-green);
  border-color: rgba(134, 227, 187, .18);
  background: #101b16;
}

.v2-canvas-meta .v2-icon {
  width: 11px;
  height: 11px;
}

.v2-canvas-body {
  display: grid;
  min-height: 0;
  flex: 1;
  padding: 14px 14px 10px;
  place-items: center;
}

.v2-canvas-body.is-comparing {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.v2-canvas-media {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--v2-line);
  border-radius: 7px;
  background: #15191e;
}

.v2-canvas-body:not(.is-comparing) .v2-canvas-media {
  width: 100%;
  max-height: 100%;
}

.v2-canvas-body.is-square:not(.is-comparing) .v2-canvas-media {
  aspect-ratio: 1;
}

.v2-canvas-body.is-four-five:not(.is-comparing) .v2-canvas-media {
  width: min(88%, 500px);
  aspect-ratio: 4 / 5;
}

.v2-canvas-body.is-portrait:not(.is-comparing) .v2-canvas-media {
  width: min(58%, 340px);
  aspect-ratio: 9 / 16;
}

.v2-canvas-body.is-wide:not(.is-comparing) .v2-canvas-media {
  aspect-ratio: 16 / 9;
}

.v2-canvas-media img,
.v2-canvas-media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #090b0e;
}

.v2-canvas-media > span {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 5px;
  color: var(--v2-muted);
  background: rgba(8, 10, 13, .82);
  font-size: 8px;
}

.v2-version-strip {
  display: flex;
  min-height: 112px;
  gap: 9px;
  padding: 0 14px 10px;
  overflow: hidden auto;
  scrollbar-width: thin;
}

.v2-version-strip button {
  display: grid;
  width: 86px;
  flex: 0 0 86px;
  gap: 4px;
  padding: 0;
  border: 0;
  color: var(--v2-muted);
  background: transparent;
  text-align: left;
}

.v2-version-strip button > span {
  width: 86px;
  height: 80px;
  overflow: hidden;
  border: 1px solid var(--v2-line);
  border-radius: 6px;
  background: var(--v2-surface-2);
}

.v2-version-strip button.is-active > span {
  border-color: var(--v2-green);
  box-shadow: 0 0 0 2px rgba(134, 227, 187, .08);
}

.v2-version-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v2-version-strip small {
  color: inherit;
  font-size: 8px;
}

.v2-version-strip button.is-active small {
  color: var(--v2-green);
}

.v2-version-empty {
  display: grid;
  min-width: 100%;
  place-items: center;
  color: var(--v2-dim);
  font-size: 9px;
}

.v2-canvas-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 10px;
  align-items: center;
  padding: 11px 14px;
  border-top: 1px solid var(--v2-line);
}

.v2-canvas-actions > div {
  display: flex;
  min-width: 0;
  gap: 7px;
}

.v2-canvas-actions .v2-quiet,
.v2-canvas-actions .v2-primary {
  min-height: 34px;
  padding: 0 10px;
  font-size: 9px;
}

.v2-canvas-actions > small {
  grid-column: 2;
  color: var(--v2-muted);
  font-size: 8px;
  text-align: right;
}

.v2-routing-badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 7px;
  border: 1px solid var(--v2-line);
  border-radius: 5px;
  color: var(--v2-muted);
  font-size: 8px;
  white-space: nowrap;
}

.v2-creative-agent-scroll {
  flex: 1;
  background: #0a0d10;
}

.v2-agent-conversation {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 170px;
  padding: 14px;
  border-bottom: 1px solid var(--v2-line);
}

.v2-agent-subsection {
  padding: 13px 14px;
  border-bottom: 1px solid var(--v2-line);
}

.v2-agent-subsection > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.v2-agent-subsection > header strong { font-size: 9px; }
.v2-agent-subsection > header span { color: var(--v2-dim); font-size: 8px; }
.v2-agent-empty-note { display: block; color: var(--v2-muted); font-size: 8px; }
.v2-execution-events.is-compact { padding: 0; overflow: visible; }
.v2-execution-events.is-compact .v2-execution-event { min-height: 46px; padding-top: 8px; }
.v2-execution-events.is-compact .v2-execution-event::after { top: 22px; }

.v2-creative-composer {
  margin: 10px;
  flex: 0 0 auto;
}

.v2-creative-composer textarea {
  min-height: 48px;
}

.v2-creative-composer .v2-composer-foot .v2-primary {
  width: 34px;
  min-height: 34px;
  padding: 0;
}

/* Capability market */

.v2-market-coming-page {
  min-height: calc(100vh - 106px);
  place-items: center;
}

.v2-market-coming {
  display: grid;
  width: min(100%, 460px);
  justify-items: center;
  padding: 64px 28px;
  text-align: center;
}

.v2-market-coming-mark {
  position: relative;
  display: grid;
  width: 72px;
  height: 72px;
  margin-bottom: 24px;
  place-items: center;
  border: 1px solid rgba(233, 195, 122, .2);
  border-radius: 8px;
  color: var(--v2-amber);
  background: rgba(233, 195, 122, .045);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .24);
}

.v2-market-coming-mark > .v2-icon {
  width: 30px;
  height: 30px;
}

.v2-market-coming-mark > i:last-child {
  position: absolute;
  top: 11px;
  right: 11px;
  width: 7px;
  height: 7px;
  border: 2px solid #0b0e11;
  border-radius: 50%;
  background: var(--v2-amber);
  box-shadow: 0 0 0 0 rgba(233, 195, 122, .22);
  animation: v2SoonPulse 2.4s ease-out infinite;
}

.v2-market-coming > small {
  color: #ad945f;
  font-size: 9px;
  font-weight: 760;
}

.v2-market-coming h2 {
  margin: 8px 0 0;
  font-size: 28px;
  font-weight: 660;
}

.v2-market-coming p {
  margin: 10px 0 0;
  color: var(--v2-muted);
  font-size: 12px;
}

.v2-market-coming-status {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 8px;
  margin: 22px 0 28px;
  padding: 0 10px;
  border: 1px solid var(--v2-line);
  border-radius: 6px;
  color: #b7bec0;
  background: var(--v2-surface);
  font-size: 10px;
}

.v2-market-coming-status > i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--v2-amber);
  box-shadow: 0 0 12px rgba(233, 195, 122, .28);
}

.v2-market-coming .v2-secondary .v2-icon {
  transform: rotate(180deg);
}

.v2-market-layout {
  display: grid;
  grid-template-columns: 170px 250px minmax(0, 1fr);
  min-width: 0;
  min-height: 720px;
  height: calc(100vh - 94px);
  max-height: 940px;
  overflow: hidden;
  border: 1px solid var(--v2-line);
  border-radius: 8px;
  background: #0b0e11;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .3);
}

.v2-market-categories,
.v2-market-list {
  min-width: 0;
  min-height: 0;
  border-right: 1px solid var(--v2-line);
}

.v2-market-categories > header,
.v2-market-list > header {
  display: grid;
  min-height: 58px;
  align-content: center;
  gap: 2px;
  padding: 10px 13px;
  border-bottom: 1px solid var(--v2-line);
}

.v2-market-categories > header strong,
.v2-market-list > header strong {
  font-size: 11px;
}

.v2-market-categories > header small,
.v2-market-list > header small {
  color: var(--v2-muted);
  font-size: 8px;
}

.v2-market-categories nav {
  display: grid;
  gap: 3px;
  padding: 10px 8px;
}

.v2-market-categories button {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 7px;
  min-height: 38px;
  align-items: center;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--v2-muted);
  background: transparent;
  text-align: left;
}

.v2-market-categories button:hover {
  color: var(--v2-text);
  background: #101418;
}

.v2-market-categories button.is-active {
  color: var(--v2-green);
  border-color: rgba(134, 227, 187, .16);
  background: #111b17;
}

.v2-market-categories button .v2-icon {
  width: 14px;
  height: 14px;
}

.v2-market-categories button span { font-size: 9px; }
.v2-market-categories button em { color: var(--v2-dim); font-size: 8px; font-style: normal; }

.v2-market-list {
  display: flex;
  flex-direction: column;
}

.v2-market-list > header {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.v2-market-list > div {
  min-height: 0;
  flex: 1;
  padding: 8px;
  overflow: hidden auto;
}

.v2-market-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 9px;
  min-height: 58px;
  align-items: center;
  width: 100%;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: inherit;
  background: transparent;
  text-align: left;
}

.v2-market-item:hover {
  background: #0f1317;
}

.v2-market-item.is-active {
  border-color: rgba(134, 227, 187, .2);
  background: #111a16;
}

.v2-market-item > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.v2-market-item strong,
.v2-market-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-market-item strong { font-size: 9px; }
.v2-market-item small { color: var(--v2-muted); font-size: 8px; }
.v2-market-item em { color: var(--v2-dim); font-size: 7px; font-style: normal; }
.v2-market-item em.is-active { color: var(--v2-green); }
.v2-market-list-empty { display: grid; min-height: 160px; place-items: center; color: var(--v2-dim); font-size: 9px; }

.v2-market-detail {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  overflow: hidden auto;
  background: #0d1013;
}

.v2-market-detail-head {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 18px 20px 12px;
}

.v2-capability-mark.is-large {
  width: 62px;
  height: 62px;
  border-color: rgba(134, 227, 187, .26);
  border-radius: 9px;
  color: var(--v2-green);
  background: #111d18;
}

.v2-capability-mark.is-large .v2-icon {
  width: 27px;
  height: 27px;
}

.v2-market-detail-head > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.v2-market-detail-head > div > span {
  color: var(--v2-green);
  font-size: 8px;
}

.v2-market-detail-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 660;
}

.v2-market-detail-head p {
  max-width: 680px;
  margin: 2px 0 0;
  color: var(--v2-muted);
  font-size: 9px;
  line-height: 1.5;
}

.v2-capability-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 20px 14px 96px;
  border-bottom: 1px solid var(--v2-line);
}

.v2-capability-tags span {
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid var(--v2-line);
  border-radius: 5px;
  color: var(--v2-muted);
  background: #111519;
  font-size: 8px;
}

.v2-capability-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 17px 20px;
  border-bottom: 1px solid var(--v2-line);
}

.v2-capability-steps > div {
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
}

.v2-capability-steps > div::after {
  position: absolute;
  z-index: 0;
  top: 13px;
  right: 8px;
  left: 34px;
  height: 1px;
  background: var(--v2-line-strong);
  content: "";
}

.v2-capability-steps > div:last-child::after {
  display: none;
}

.v2-capability-steps span {
  z-index: 1;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid var(--v2-line-strong);
  border-radius: 50%;
  color: var(--v2-dim);
  background: #111519;
  font-size: 8px;
}

.v2-capability-steps > div.is-done span {
  color: #0a140f;
  border-color: var(--v2-green);
  background: var(--v2-green);
}

.v2-capability-steps > div.is-current span {
  color: var(--v2-green);
  border-color: rgba(134, 227, 187, .42);
  background: #101d17;
}

.v2-capability-steps strong {
  font-size: 8px;
  font-weight: 600;
}

.v2-market-detail-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  min-height: 0;
  flex: 1;
}

.v2-market-detail-body > div {
  min-width: 0;
  padding: 16px 20px;
}

.v2-market-detail-body > aside {
  min-width: 0;
  padding: 16px;
  border-left: 1px solid var(--v2-line);
  background: #0b0e11;
}

.v2-market-detail-body > aside > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.v2-market-detail-body > aside > header strong { font-size: 10px; }
.v2-market-detail-body > aside > header small { color: var(--v2-muted); font-size: 8px; }

.v2-capability-preview h3 {
  margin: 0 0 10px;
  font-size: 11px;
}

.v2-capability-preview > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.v2-capability-preview > div span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 9px;
  border: 1px solid var(--v2-line);
  border-radius: 6px;
  color: var(--v2-green);
  background: #101518;
}

.v2-capability-preview > div .v2-icon {
  width: 12px;
  height: 12px;
}

.v2-capability-preview > div b {
  color: var(--v2-text);
  font-size: 8px;
  font-weight: 580;
}

.v2-capability-preview > p {
  margin: 12px 0 0;
  color: var(--v2-muted);
  font-size: 8px;
}

.v2-capability-config {
  display: grid;
  gap: 12px;
}

.v2-capability-config > header {
  display: grid;
  gap: 2px;
}

.v2-capability-config > header strong { font-size: 11px; }
.v2-capability-config > header small { color: var(--v2-muted); font-size: 8px; }

.v2-permission-table {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--v2-line);
  border-radius: 7px;
}

.v2-permission-table label,
.v2-domain-toggle {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 11px;
  border-bottom: 1px solid var(--v2-line);
  background: #0f1317;
}

.v2-permission-table label:last-child {
  border-bottom: 0;
}

.v2-permission-table label > span,
.v2-domain-toggle > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.v2-permission-table strong,
.v2-domain-toggle strong { font-size: 9px; }
.v2-permission-table small,
.v2-domain-toggle small { color: var(--v2-muted); font-size: 7px; }

.v2-permission-table input,
.v2-domain-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--v2-green);
}

.v2-domain-toggle {
  border: 1px solid var(--v2-line);
  border-radius: 7px;
}

.v2-capability-check {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 9px;
  min-height: 48px;
  align-items: center;
  border-bottom: 1px solid var(--v2-line);
}

.v2-capability-check:last-child {
  border-bottom: 0;
}

.v2-capability-check > span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid var(--v2-line);
  border-radius: 50%;
  color: var(--v2-dim);
}

.v2-capability-check.is-passed > span {
  color: #09140f;
  border-color: var(--v2-green);
  background: var(--v2-green);
}

.v2-capability-check .v2-icon {
  width: 12px;
  height: 12px;
}

.v2-capability-check > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.v2-capability-check strong { font-size: 8px; }
.v2-capability-check small { color: var(--v2-muted); font-size: 7px; }

.v2-market-detail-actions {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  border-top: 1px solid var(--v2-line);
}

.v2-market-detail-actions > div {
  display: grid;
  gap: 2px;
}

.v2-market-detail-actions > div span { font-size: 9px; }
.v2-market-detail-actions > div small { color: var(--v2-muted); font-size: 8px; }

@media (max-width: 1320px) {
  .v2-control-layout { grid-template-columns: minmax(250px, .7fr) minmax(390px, 1.3fr) 292px; }
  .v2-creative-layout { grid-template-columns: 238px minmax(420px, 1fr) 306px; }
  .v2-market-layout { grid-template-columns: 150px 220px minmax(0, 1fr); }
  .v2-market-detail-body { grid-template-columns: minmax(0, 1fr) 205px; }
  .v2-canvas-actions .v2-quiet { padding: 0 7px; }
}

@media (max-width: 1080px) {
  .v2-agent-state { display: none; }
  .v2-control-layout {
    grid-template-columns: minmax(250px, .8fr) minmax(390px, 1.2fr);
    grid-template-rows: minmax(540px, 1fr) auto auto;
    height: auto;
    max-height: none;
  }
  .v2-control-rail {
    grid-row: 3;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .7fr);
    grid-template-rows: auto;
    border-top: 1px solid var(--v2-line);
  }
  .v2-control-rail-section { border-right: 1px solid var(--v2-line); border-bottom: 0; }
  .v2-control-rail-section:last-child { border-right: 0; }
  .v2-control-composer { grid-column: 1 / -1; border-right: 0; }
  .v2-creative-layout {
    grid-template-columns: 230px minmax(430px, 1fr);
    height: auto;
    max-height: none;
  }
  .v2-creative-agent {
    grid-column: 1 / -1;
    min-height: 620px;
    border-top: 1px solid var(--v2-line);
  }
  .v2-market-layout {
    grid-template-columns: 145px 210px minmax(0, 1fr);
    height: auto;
    max-height: none;
  }
  .v2-market-detail-body { grid-template-columns: 1fr; }
  .v2-market-detail-body > aside { border-top: 1px solid var(--v2-line); border-left: 0; }
}

@media (max-width: 760px) {
  .v2-topbar {
    height: 58px;
    padding: 0 8px;
    gap: 5px;
  }
  .v2-domain-tabs {
    flex: 1;
    gap: 0;
  }
  .v2-domain-tabs a,
  .v2-domain-coming-soon {
    padding: 0 10px;
    font-size: 10px;
  }
  .v2-domain-coming-soon > em { display: none; }
  .v2-wallet-badge,
  .v2-top-actions > .v2-icon-button {
    display: none;
  }
  .v2-surface { padding: 8px 8px 24px; }
  .v2-control-layout,
  .v2-creative-layout,
  .v2-market-layout {
    display: flex;
    min-height: 0;
    height: auto;
    max-height: none;
    flex-direction: column;
    overflow: visible;
  }
  .v2-command-chat,
  .v2-orchestration-board,
  .v2-control-composer,
  .v2-creative-left,
  .v2-creative-canvas,
  .v2-market-categories,
  .v2-market-list {
    border-right: 0;
    border-bottom: 1px solid var(--v2-line);
  }
  .v2-command-chat { min-height: 460px; }
  .v2-orchestration-board { min-height: 560px; }
  .v2-control-rail {
    display: flex;
    grid-row: auto;
    grid-column: auto;
    flex-direction: column;
  }
  .v2-control-rail-section { border-right: 0; border-bottom: 1px solid var(--v2-line); }
  .v2-control-composer { order: 3; }
  .v2-control-rail { order: 4; }
  .v2-composer-foot { flex-direction: row; align-items: center; }
  .v2-composer-foot .v2-primary { width: auto; }
  .v2-orchestration-lane { padding-right: 12px; padding-left: 26px; }
  .v2-orchestration-lane::before { left: 39px; }
  .v2-creative-left,
  .v2-creative-agent { min-height: 0; }
  .v2-creative-left-scroll,
  .v2-creative-agent-scroll { overflow: visible; }
  .v2-creative-canvas { min-height: 680px; }
  .v2-canvas-body { min-height: 390px; }
  .v2-canvas-actions {
    grid-template-columns: 1fr;
  }
  .v2-canvas-actions > div { flex-wrap: wrap; }
  .v2-canvas-actions > .v2-primary { width: 100%; }
  .v2-canvas-actions > small { grid-column: 1; text-align: left; }
  .v2-routing-badge { display: none; }
  .v2-creative-agent { border-top: 0; }
  .v2-market-categories nav {
    display: flex;
    overflow: hidden auto;
  }
  .v2-market-categories button {
    grid-template-columns: 18px max-content auto;
    min-width: max-content;
  }
  .v2-market-list { min-height: 250px; }
  .v2-market-detail-head {
    grid-template-columns: 50px minmax(0, 1fr);
    padding: 14px;
  }
  .v2-market-detail-head > .v2-status { grid-column: 2; justify-self: start; }
  .v2-capability-mark.is-large { width: 50px; height: 50px; }
  .v2-capability-tags { padding: 0 14px 12px; }
  .v2-capability-steps { padding: 14px; overflow: hidden auto; }
  .v2-capability-steps > div { min-width: 110px; }
  .v2-market-detail-body > div,
  .v2-market-detail-body > aside { padding: 14px; }
  .v2-capability-preview > div { grid-template-columns: 1fr; }
  .v2-market-detail-actions { align-items: stretch; flex-direction: column; }
  .v2-market-detail-actions > button { width: 100%; }
}

/* Public demo hub */

.v2-demo-index-view .v2-shell {
  display: block;
  min-height: 100vh;
}

.v2-demo-index-view .v2-rail,
.v2-demo-index-view .v2-topbar {
  display: none;
}

.v2-demo-index-view .v2-main {
  min-height: 100vh;
}

.v2-demo-index-view .v2-surface {
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.v2-demo-hub {
  display: grid;
  min-height: 100vh;
  grid-template-rows: auto 1fr auto;
  background: #080a0d;
}

.v2-demo-hub-header,
.v2-demo-hub-main,
.v2-demo-hub-footer {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.v2-demo-hub-header {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--v2-line);
}

.v2-demo-hub-lockup {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
  color: var(--v2-text);
  text-decoration: none;
}

.v2-demo-hub-lockup > span:last-child {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.v2-demo-hub-lockup strong {
  font-size: 13px;
  line-height: 1.2;
}

.v2-demo-hub-lockup small {
  color: var(--v2-dim);
  font-size: 8px;
  line-height: 1.2;
}

.v2-demo-hub-state,
.v2-demo-hub-footer > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--v2-muted);
  font-size: 9px;
  font-weight: 620;
}

.v2-demo-hub-state i,
.v2-demo-hub-footer > span i,
.v2-demo-entry-status i {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--v2-green);
  box-shadow: 0 0 14px rgba(134, 227, 187, .42);
}

.v2-demo-hub-main {
  display: grid;
  align-content: center;
  gap: 28px;
  padding: 56px 0 64px;
}

.v2-demo-hub-intro {
  display: grid;
  gap: 3px;
}

.v2-demo-hub-intro .v2-kicker {
  margin: 0 0 5px;
}

.v2-demo-hub-intro h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 660;
  line-height: 1.16;
}

.v2-demo-hub-intro p {
  margin: 5px 0 0;
  color: var(--v2-muted);
  font-size: 12px;
}

.v2-demo-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.v2-demo-entry {
  position: relative;
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--v2-line-strong);
  border-radius: 8px;
  color: var(--v2-text);
  background: #0d1013;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .26);
  text-decoration: none;
  transform: translateY(0);
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
  animation: v2DemoEntry .45s ease both;
}

.v2-demo-entry:nth-child(2) {
  animation-delay: .08s;
}

.v2-demo-entry::before {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--v2-green);
  content: "";
}

.v2-demo-entry.is-unitree::before {
  background: var(--v2-blue);
}

.v2-demo-entry:hover {
  transform: translateY(-3px);
  border-color: rgba(134, 227, 187, .34);
  box-shadow: 0 30px 88px rgba(0, 0, 0, .34);
}

.v2-demo-entry.is-unitree:hover {
  border-color: rgba(142, 174, 254, .34);
}

.v2-demo-entry-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--v2-line);
  background: #0a0c0f;
}

.v2-demo-entry-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform .55s cubic-bezier(.2, .72, .2, 1);
}

.v2-demo-entry:hover .v2-demo-entry-media img {
  transform: scale(1.025);
}

.v2-demo-entry-media > small {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 7px;
  color: rgba(243, 245, 244, .82);
  background: rgba(8, 10, 13, .82);
  font-size: 8px;
  font-weight: 720;
  backdrop-filter: blur(10px);
}

.v2-demo-entry-body {
  display: grid;
  min-width: 0;
}

.v2-demo-entry-title {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
}

.v2-demo-entry-title > span:first-child {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.v2-demo-entry-title small {
  color: var(--v2-green);
  font-size: 8px;
  font-weight: 740;
}

.v2-demo-entry.is-unitree .v2-demo-entry-title small {
  color: var(--v2-blue);
}

.v2-demo-entry-title strong {
  overflow: hidden;
  font-size: 20px;
  font-style: normal;
  font-weight: 660;
  line-height: 1.22;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-demo-entry-title em {
  overflow: hidden;
  color: var(--v2-muted);
  font-size: 10px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-demo-entry-status {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  padding-top: 3px;
  color: #b9c2bf;
  font-size: 9px;
}

.v2-demo-entry.is-unitree .v2-demo-entry-status i {
  background: var(--v2-blue);
  box-shadow: 0 0 14px rgba(142, 174, 254, .42);
}

.v2-demo-entry-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0 20px 18px;
}

.v2-demo-entry-stats > span {
  display: grid;
  min-width: 0;
  gap: 2px;
  padding: 0 12px;
  border-left: 1px solid var(--v2-line);
}

.v2-demo-entry-stats > span:first-child {
  padding-left: 0;
  border-left: 0;
}

.v2-demo-entry-stats small {
  overflow: hidden;
  color: var(--v2-dim);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-demo-entry-stats strong {
  overflow: hidden;
  font-size: 15px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-demo-entry-action {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 20px;
  border-top: 1px solid var(--v2-line);
  color: #c7cfcc;
}

.v2-demo-entry-action strong {
  font-size: 10px;
  font-weight: 630;
}

.v2-demo-entry-action .v2-icon {
  width: 14px;
  height: 14px;
  color: var(--v2-green);
  transition: transform .2s ease;
}

.v2-demo-entry.is-unitree .v2-demo-entry-action .v2-icon {
  color: var(--v2-blue);
}

.v2-demo-entry:hover .v2-demo-entry-action .v2-icon {
  transform: translateX(3px);
}

.v2-demo-hub-footer {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--v2-line);
}

.v2-demo-hub-footer small {
  color: var(--v2-dim);
  font-size: 8px;
}

@keyframes v2DemoEntry {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
  .v2-demo-hub-header,
  .v2-demo-hub-main,
  .v2-demo-hub-footer {
    width: calc(100% - 24px);
  }

  .v2-demo-hub-header {
    min-height: 64px;
  }

  .v2-demo-hub-main {
    align-content: start;
    gap: 20px;
    padding: 34px 0 42px;
  }

  .v2-demo-hub-intro h1 {
    font-size: 26px;
  }

  .v2-demo-hub-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .v2-demo-entry-media {
    aspect-ratio: 16 / 9;
  }

  .v2-demo-entry-title {
    padding: 15px 16px;
  }

  .v2-demo-entry-stats {
    padding: 0 16px 15px;
  }

  .v2-demo-entry-stats > span {
    padding: 0 8px;
  }

  .v2-demo-entry-action {
    min-height: 46px;
    padding: 0 16px;
  }

  .v2-demo-hub-footer {
    min-height: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .v2-demo-entry,
  .v2-demo-entry-media img,
  .v2-demo-entry-action .v2-icon {
    animation: none;
    transition: none;
  }
}
