.zmt-agent-center,
.zmt-agent-tool,
.zmt-agent-denied {
  color: #172026;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.zmt-agent-hero,
.zmt-tool-header {
  border: 1px solid #dfe5e8;
  border-radius: 8px;
  background: #fff;
  padding: 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.zmt-agent-hero span,
.zmt-tool-header span,
.zmt-agent-card span {
  color: #df4b42;
  font-size: 12px;
  font-weight: 800;
}

.zmt-agent-hero h1,
.zmt-tool-header h1,
.zmt-agent-card h2 {
  margin: 6px 0 8px;
  line-height: 1.18;
}

.zmt-agent-hero p,
.zmt-tool-header p,
.zmt-agent-card p,
.zmt-agent-denied p {
  margin: 0;
  color: #68757f;
  line-height: 1.65;
}

.zmt-agent-hero aside,
.zmt-tool-header aside {
  border: 1px solid #bfe2de;
  border-radius: 8px;
  background: #edf9f8;
  padding: 12px;
  min-width: 220px;
}

.zmt-agent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.zmt-agent-card,
.zmt-agent-alert,
.zmt-agent-denied,
.zmt-tool-panel {
  border: 1px solid #dfe5e8;
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.zmt-agent-card a,
.zmt-agent-alert a,
.zmt-agent-denied a,
.zmt-primary {
  min-height: 38px;
  border: 0;
  border-radius: 7px;
  background: #df4b42;
  color: #fff;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}

.zmt-agent-card button {
  min-height: 38px;
  border: 1px solid #dfe5e8;
  border-radius: 7px;
  background: #f1f4f5;
  color: #68757f;
  padding: 0 14px;
}

.zmt-agent-alert {
  border-color: #f1d69f;
  background: #fffaf0;
  margin-bottom: 18px;
}

.zmt-tool-shell {
  display: grid;
  gap: 12px;
}

.zmt-tool-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.zmt-tool-steps button {
  min-height: 36px;
  border: 1px solid #dfe5e8;
  border-radius: 7px;
  background: #fff;
  padding: 0 12px;
  cursor: pointer;
}

.zmt-tool-steps button.active {
  border-color: #168f89;
  background: #edf9f8;
  color: #0b746f;
  font-weight: 800;
}

.zmt-tool-panel textarea {
  width: 100%;
  border: 1px solid #dfe5e8;
  border-radius: 8px;
  padding: 12px;
  resize: vertical;
  box-sizing: border-box;
}

.zmt-agent-output {
  margin-top: 12px;
  border: 1px solid #dfe5e8;
  border-radius: 8px;
  background: #fbfcfc;
  padding: 14px;
  min-height: 120px;
  white-space: pre-wrap;
}

.zmt-agent-hub.zmtx-workbench {
  --hub-ink: var(--zmtv2-ink, #111c22);
  --hub-muted: var(--zmtv2-muted, #65727c);
  --hub-line: var(--zmtv2-line, #dce4e7);
  --hub-line-strong: var(--zmtv2-line-strong, #cbd7dc);
  --hub-surface: var(--zmtv2-surface, #fff);
  --hub-surface-soft: var(--zmtv2-surface-soft, #f8fafb);
  --hub-shadow: var(--zmtv2-shadow, 0 16px 44px rgba(17, 28, 34, 0.08));
  --hub-shadow-soft: var(--zmtv2-shadow-soft, 0 8px 24px rgba(17, 28, 34, 0.06));
  --hub-rose: var(--zmtv2-rose, #df4b42);
  --hub-teal: var(--zmtv2-teal, #108a83);
  --hub-gold: var(--zmtv2-gold, #b98232);
  --hub-blue: var(--zmtv2-blue, #2f66c4);
  max-width: 1240px;
  margin: 0 auto;
  color: var(--hub-ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.zmt-agent-hub *,
.zmt-agent-hub *::before,
.zmt-agent-hub *::after {
  box-sizing: border-box;
  letter-spacing: 0;
}

.zmt-hub-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.72fr);
  gap: 14px;
  margin-bottom: 14px;
}

.zmt-hub-hero-main {
  border: 1px solid var(--hub-line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 251, 0.93)),
    linear-gradient(90deg, rgba(16, 138, 131, 0.06), rgba(47, 102, 196, 0.06));
  box-shadow: var(--hub-shadow);
  padding: 32px;
}

.zmt-hub-hero-main h1 {
  margin: 0;
  color: var(--hub-ink);
  font-size: 36px;
  line-height: 1.12;
  font-weight: 950;
}

.zmt-hub-hero-main p {
  margin: 14px 0 0;
  max-width: 800px;
  color: var(--hub-muted);
  font-size: 15px;
  line-height: 1.8;
}

.zmt-hub-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.zmt-hub-stats {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.zmt-hub-stats article {
  border: 1px solid var(--hub-line);
  border-radius: 8px;
  background: var(--hub-surface);
  padding: 14px;
  box-shadow: var(--hub-shadow-soft);
}

.zmt-hub-stats span,
.zmt-hub-panel span,
.zmt-hub-band-note,
.zmt-hub-card-top span {
  display: block;
  color: var(--hub-muted);
  font-size: 12px;
  font-weight: 900;
}

.zmt-hub-stats strong {
  display: block;
  margin-top: 8px;
  color: var(--hub-ink);
  font-size: 28px;
  line-height: 1;
  font-weight: 950;
}

.zmt-hub-stats small {
  display: block;
  margin-top: 6px;
  color: var(--hub-muted);
  font-size: 12px;
  line-height: 1.45;
}

.zmt-hub-hero-side {
  display: grid;
  gap: 10px;
}

.zmt-hub-panel {
  border: 1px solid var(--hub-line);
  border-radius: 8px;
  background: var(--hub-surface);
  padding: 16px;
  box-shadow: var(--hub-shadow-soft);
}

.zmt-hub-quota strong {
  display: block;
  margin-top: 8px;
  color: var(--hub-teal);
  font-size: 38px;
  line-height: 1;
  font-weight: 950;
}

.zmt-hub-quota p,
.zmt-hub-next p,
.zmt-hub-stage p,
.zmt-hub-path p,
.zmt-hub-project-main p,
.zmt-hub-empty p {
  margin: 8px 0 0;
  color: var(--hub-muted);
  font-size: 13px;
  line-height: 1.7;
}

.zmt-hub-next b {
  display: block;
  margin-top: 8px;
  color: var(--hub-ink);
  font-size: 17px;
  line-height: 1.3;
  font-weight: 900;
}

.zmt-hub-next dl {
  margin: 12px 0 0;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 6px 10px;
}

.zmt-hub-next dt {
  color: var(--hub-muted);
  font-size: 12px;
  font-weight: 900;
}

.zmt-hub-next dd {
  margin: 0;
  color: var(--hub-ink);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
}

.zmt-hub-alert {
  border: 1px solid #f1d69f;
  border-radius: 8px;
  background: #fffaf0;
  padding: 16px 18px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.zmt-hub-alert strong {
  display: block;
  color: var(--hub-ink);
  font-size: 15px;
  font-weight: 900;
}

.zmt-hub-alert p {
  margin: 6px 0 0;
  color: var(--hub-muted);
  font-size: 13px;
  line-height: 1.6;
}

.zmt-hub-alert a,
.zmt-hub-empty a {
  min-height: 38px;
  border-radius: 7px;
  background: var(--hub-rose);
  color: #fff;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
}

.zmt-hub-band {
  border: 1px solid var(--hub-line);
  border-radius: 8px;
  background: var(--hub-surface);
  box-shadow: var(--hub-shadow-soft);
  padding: 22px;
  margin-top: 14px;
}

.zmt-hub-band-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.zmt-hub-band-head h2 {
  margin: 0;
  color: var(--hub-ink);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 950;
}

.zmt-hub-band-head p {
  margin: 8px 0 0;
  max-width: 760px;
  color: var(--hub-muted);
  font-size: 14px;
  line-height: 1.7;
}

.zmt-hub-band-note {
  padding-top: 4px;
  color: var(--hub-rose);
}

.zmt-hub-stage-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.zmt-hub-stage {
  border: 1px solid var(--hub-line);
  border-radius: 8px;
  background: var(--hub-surface-soft);
  min-height: 196px;
  padding: 14px;
  display: grid;
  align-content: space-between;
  gap: 10px;
}

.zmt-hub-stage span {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: #e9eef1;
  color: var(--hub-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 950;
}

.zmt-hub-stage h3 {
  margin: 0;
  color: var(--hub-ink);
  font-size: 15px;
  line-height: 1.28;
  font-weight: 900;
}

.zmt-hub-stage small {
  display: block;
  margin-top: 8px;
  color: var(--hub-muted);
  font-size: 12px;
  line-height: 1.5;
}

.zmt-hub-stage p {
  margin: 8px 0 0;
}

.zmt-hub-stage a,
.zmt-hub-stage button {
  min-height: 36px;
  border-radius: 7px;
  border: 1px solid var(--hub-line-strong);
  background: #fff;
  color: var(--hub-ink);
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 850;
  width: fit-content;
}

.zmt-hub-stage.is-active {
  border-color: rgba(16, 138, 131, 0.32);
  background: #edf8f7;
}

.zmt-hub-stage.is-active span {
  background: var(--hub-teal);
  color: #fff;
}

.zmt-hub-stage.is-coming {
  opacity: 0.96;
}

.zmt-hub-stage a {
  border-color: rgba(223, 75, 66, 0.24);
  background: var(--hub-rose);
  color: #fff;
}

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

.zmt-hub-agent-card {
  border: 1px solid var(--hub-line);
  border-radius: 8px;
  background: var(--hub-surface);
  padding: 18px;
  box-shadow: var(--hub-shadow-soft);
  position: relative;
  overflow: hidden;
}

.zmt-hub-agent-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: var(--hub-accent, var(--hub-teal));
}

.zmt-hub-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.zmt-hub-card-top em {
  font-style: normal;
  color: var(--hub-accent, var(--hub-teal));
  font-size: 12px;
  font-weight: 900;
}

.zmt-hub-agent-card h3 {
  margin: 12px 0 0;
  color: var(--hub-ink);
  font-size: 18px;
  line-height: 1.32;
  font-weight: 950;
}

.zmt-hub-agent-card p {
  margin: 10px 0 0;
  color: var(--hub-muted);
  font-size: 13px;
  line-height: 1.7;
}

.zmt-hub-agent-card dl {
  margin: 14px 0 0;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 7px 12px;
}

.zmt-hub-agent-card dt {
  color: var(--hub-muted);
  font-size: 12px;
  font-weight: 900;
}

.zmt-hub-agent-card dd {
  margin: 0;
  color: var(--hub-ink);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
}

.zmt-hub-card-actions {
  margin-top: 14px;
}

.zmt-hub-card-actions a,
.zmt-hub-card-actions button {
  min-height: 38px;
  border-radius: 7px;
  border: 1px solid var(--hub-line-strong);
  background: #fff;
  color: var(--hub-ink);
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 850;
}

.zmt-hub-card-actions a {
  background: var(--hub-accent, var(--hub-teal));
  border-color: transparent;
  color: #fff;
}

.zmt-hub-card-actions button {
  background: var(--hub-surface-soft);
  color: var(--hub-muted);
}

.zmt-hub-agent-card.is-coming {
  opacity: 0.95;
}

.zmt-hub-agent-card.is-coming::before {
  background: linear-gradient(90deg, var(--hub-line-strong), var(--hub-line));
}

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

.zmt-hub-path {
  border: 1px solid var(--hub-line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f8fafb);
  padding: 18px;
}

.zmt-hub-path h3 {
  margin: 0;
  color: var(--hub-ink);
  font-size: 18px;
  line-height: 1.3;
  font-weight: 950;
}

.zmt-hub-path ol {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--hub-ink);
  font-size: 13px;
  line-height: 1.7;
}

.zmt-hub-project-list {
  display: grid;
  gap: 10px;
}

.zmt-hub-project-row {
  border: 1px solid var(--hub-line);
  border-radius: 8px;
  background: var(--hub-surface);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.zmt-hub-project-main b {
  display: block;
  color: var(--hub-ink);
  font-size: 16px;
  line-height: 1.3;
  font-weight: 900;
}

.zmt-hub-project-main span {
  display: block;
  margin-top: 6px;
  color: var(--hub-muted);
  font-size: 12px;
  font-weight: 850;
}

.zmt-hub-project-main p {
  max-width: 820px;
}

.zmt-hub-project-actions {
  flex: 0 0 auto;
}

.zmt-hub-project-actions a,
.zmt-hub-project-actions button {
  min-height: 38px;
  border-radius: 7px;
  border: 1px solid var(--hub-line-strong);
  background: #fff;
  color: var(--hub-ink);
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 850;
}

.zmt-hub-project-actions a {
  background: var(--hub-rose);
  border-color: transparent;
  color: #fff;
}

.zmt-hub-empty {
  border: 1px dashed var(--hub-line-strong);
  border-radius: 8px;
  background: #fbfcfc;
  padding: 20px;
}

.zmt-hub-empty strong {
  display: block;
  color: var(--hub-ink);
  font-size: 16px;
  line-height: 1.25;
  font-weight: 900;
}

.zmt-hub-empty a {
  margin-top: 14px;
}

@media (max-width: 860px) {
  .zmt-agent-hero,
  .zmt-tool-header {
    flex-direction: column;
  }

  .zmt-agent-grid {
    grid-template-columns: 1fr;
  }

  .zmt-agent-hero aside,
  .zmt-tool-header aside {
    width: 100%;
  }
}

@media (max-width: 1180px) {
  .zmt-hub-hero {
    grid-template-columns: 1fr;
  }

  .zmt-hub-stage-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .zmt-hub-agent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .zmt-hub-hero-main {
    padding: 24px;
  }

  .zmt-hub-stats {
    grid-template-columns: 1fr;
  }

  .zmt-hub-band-head,
  .zmt-hub-project-row,
  .zmt-hub-alert {
    flex-direction: column;
  }

  .zmt-hub-stage-grid,
  .zmt-hub-agent-grid,
  .zmt-hub-path-grid {
    grid-template-columns: 1fr;
  }

  .zmt-hub-next dl {
    grid-template-columns: 64px 1fr;
  }
}

@media (max-width: 520px) {
  body:has(.zmt-agent-hub) .float-right.round.position-bottom {
    display: none !important;
  }
}

.zmt-agent-hub.zmt-agent-v3 {
  --hub-v3-ink: #111923;
  --hub-v3-muted: #61707d;
  --hub-v3-soft: #f4f7f8;
  --hub-v3-panel: #ffffff;
  --hub-v3-line: #dbe4ea;
  --hub-v3-line-strong: #bfccd7;
  --hub-v3-navy: #152235;
  --hub-v3-navy-soft: #263850;
  --hub-v3-teal: #0f766e;
  --hub-v3-gold: #b87934;
  --hub-v3-red: #c9464d;
  --hub-v3-shadow: 0 18px 42px rgba(17, 25, 35, 0.09);
  --hub-v3-shadow-hover: 0 20px 48px rgba(17, 25, 35, 0.13);
  --stage-color: #1f3a5f;
  --stage-deep: #132844;
  --stage-soft: #edf3f8;
  --stage-tint: #f8fafc;
  --stage-line: #bac8d8;
  --stage-wash: rgba(31, 58, 95, 0.08);
  --stage-shadow: rgba(19, 40, 68, 0.14);
  display: block;
  position: relative;
  max-width: 1240px;
  min-height: 0;
  padding: 24px;
  border: 1px solid #d8e2e8;
  border-radius: 8px;
  background:
    linear-gradient(135deg, #f5f8fa 0%, #ffffff 38%, #f2f7f6 100%),
    repeating-linear-gradient(90deg, rgba(17, 25, 35, 0.024) 0 1px, transparent 1px 54px);
  box-shadow: 0 24px 62px rgba(17, 25, 35, 0.1);
  color: var(--hub-v3-ink);
  overflow: clip;
  isolation: isolate;
}

.zmt-agent-hub.zmt-agent-v3::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(21, 34, 53, 0.06), rgba(15, 118, 110, 0.05) 48%, rgba(184, 121, 52, 0.045)),
    repeating-linear-gradient(90deg, rgba(17, 25, 35, 0.026) 0 1px, transparent 1px 52px),
    repeating-linear-gradient(0deg, rgba(17, 25, 35, 0.018) 0 1px, transparent 1px 52px);
  opacity: 0.82;
  z-index: 0;
}

.zmt-agent-hub.zmt-agent-v3 > * {
  position: relative;
  z-index: 1;
}

.zmt-agent-v3 .zmt-hub-v3-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(320px, 0.72fr);
  gap: 14px;
  margin-bottom: 14px;
}

.zmt-agent-v3 .zmt-hub-v3-hero-main,
.zmt-agent-v3 .zmt-hub-v3-command,
.zmt-agent-v3 .zmt-hub-v3-workflows,
.zmt-agent-v3 .zmt-hub-v3-section {
  border: 1px solid var(--hub-v3-line);
  border-radius: 8px;
  background: var(--hub-v3-panel);
  box-shadow: var(--hub-v3-shadow);
}

.zmt-agent-v3 .zmt-hub-v3-hero-main {
  padding: 34px;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.94), rgba(247, 250, 252, 0.9)),
    linear-gradient(90deg, rgba(21, 34, 53, 0.12), rgba(15, 118, 110, 0.1), rgba(184, 121, 52, 0.08));
}

.zmt-agent-v3 .zmt-hub-v3-hero-main h1 {
  margin: 0;
  max-width: 780px;
  color: var(--hub-v3-ink);
  font-size: 38px;
  line-height: 1.12;
  font-weight: 950;
}

.zmt-agent-v3 .zmt-hub-v3-hero-main p {
  margin: 14px 0 0;
  max-width: 780px;
  color: var(--hub-v3-muted);
  font-size: 15px;
  line-height: 1.78;
}

.zmt-agent-v3 .zmt-hub-v3-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.zmt-agent-v3 .zmt-hub-v3-button,
.zmt-agent-v3 .zmt-hub-v3-alert a,
.zmt-agent-v3 .zmt-hub-v3-agent-card a,
.zmt-agent-v3 .zmt-hub-v3-agent-card button,
.zmt-agent-v3 .zmt-hub-v3-project-row a,
.zmt-agent-v3 .zmt-hub-v3-project-row button,
.zmt-agent-v3 .zmt-hub-v3-empty a {
  min-height: 40px;
  border: 1px solid var(--hub-v3-line-strong);
  border-radius: 7px;
  background: #fff;
  color: var(--hub-v3-ink);
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.zmt-agent-v3 .zmt-hub-v3-button:hover,
.zmt-agent-v3 .zmt-hub-v3-alert a:hover,
.zmt-agent-v3 .zmt-hub-v3-agent-card a:hover,
.zmt-agent-v3 .zmt-hub-v3-project-row a:hover,
.zmt-agent-v3 .zmt-hub-v3-empty a:hover {
  box-shadow: 0 10px 24px rgba(17, 25, 35, 0.12);
}

.zmt-agent-v3 .zmt-hub-v3-button.is-primary,
.zmt-agent-v3 .zmt-hub-v3-agent-card a,
.zmt-agent-v3 .zmt-hub-v3-project-row a,
.zmt-agent-v3 .zmt-hub-v3-empty a {
  border-color: transparent;
  background: var(--hub-v3-navy);
  color: #fff;
  box-shadow: 0 10px 22px rgba(17, 25, 35, 0.18);
}

.zmt-agent-v3 .zmt-hub-v3-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.zmt-agent-v3 .zmt-hub-v3-stats article {
  min-height: 108px;
  border: 1px solid #d5e1eb;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 251, 255, 0.88));
  padding: 14px;
}

.zmt-agent-v3 .zmt-hub-v3-stats span,
.zmt-agent-v3 .zmt-hub-v3-quota span,
.zmt-agent-v3 .zmt-hub-v3-next span {
  display: block;
  color: var(--hub-v3-muted);
  font-size: 12px;
  font-weight: 900;
}

.zmt-agent-v3 .zmt-hub-v3-stats strong {
  display: block;
  margin-top: 8px;
  color: var(--hub-v3-ink);
  font-size: 30px;
  line-height: 1;
  font-weight: 950;
}

.zmt-agent-v3 .zmt-hub-v3-stats small {
  display: block;
  margin-top: 8px;
  color: var(--hub-v3-muted);
  font-size: 12px;
  line-height: 1.45;
}

.zmt-agent-v3 .zmt-hub-v3-command {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.94)),
    linear-gradient(135deg, rgba(16, 24, 32, 0.04), rgba(37, 99, 235, 0.04));
}

.zmt-agent-v3 .zmt-hub-v3-quota,
.zmt-agent-v3 .zmt-hub-v3-next {
  border: 1px solid var(--hub-v3-line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.zmt-agent-v3 .zmt-hub-v3-quota strong {
  display: block;
  margin-top: 10px;
  color: var(--hub-v3-teal);
  font-size: 40px;
  line-height: 1;
  font-weight: 950;
}

.zmt-agent-v3 .zmt-hub-v3-quota p,
.zmt-agent-v3 .zmt-hub-v3-next p {
  margin: 9px 0 0;
  color: var(--hub-v3-muted);
  font-size: 13px;
  line-height: 1.65;
}

.zmt-agent-v3 .zmt-hub-v3-next h2 {
  margin: 10px 0 0;
  color: var(--hub-v3-ink);
  font-size: 20px;
  line-height: 1.25;
  font-weight: 950;
}

.zmt-agent-v3 .zmt-hub-v3-next .zmt-hub-v3-button {
  margin-top: 14px;
}

.zmt-agent-v3 .zmt-hub-v3-alert {
  border: 1px solid #f0d49d;
  border-radius: 8px;
  background: #fff9ed;
  padding: 16px 18px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.zmt-agent-v3 .zmt-hub-v3-alert strong,
.zmt-agent-v3 .zmt-hub-v3-empty strong {
  display: block;
  color: var(--hub-v3-ink);
  font-size: 15px;
  line-height: 1.35;
  font-weight: 900;
}

.zmt-agent-v3 .zmt-hub-v3-alert p,
.zmt-agent-v3 .zmt-hub-v3-empty p {
  margin: 6px 0 0;
  color: var(--hub-v3-muted);
  font-size: 13px;
  line-height: 1.6;
}

.zmt-agent-v3 .zmt-hub-v3-alert a {
  border-color: transparent;
  background: var(--hub-v3-red);
  color: #fff;
}

.zmt-agent-v3 .zmt-hub-v3-flow {
  position: static;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
  padding: 8px;
  border: 1px solid #d7e1e8;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 252, 0.96));
  box-shadow: 0 12px 28px rgba(17, 25, 35, 0.07);
}

.zmt-agent-v3 .zmt-hub-v3-flow a {
  min-height: 74px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--hub-v3-ink);
  padding: 10px;
  display: grid;
  align-content: center;
  gap: 4px;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.zmt-agent-v3 .zmt-hub-v3-flow a:hover {
  border-color: var(--stage-line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), var(--stage-soft));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.zmt-agent-v3 .zmt-hub-v3-flow span {
  color: var(--stage-color);
  font-size: 12px;
  font-weight: 950;
}

.zmt-agent-v3 .zmt-hub-v3-flow strong {
  color: var(--hub-v3-ink);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 950;
}

.zmt-agent-v3 .zmt-hub-v3-flow small {
  color: var(--hub-v3-muted);
  font-size: 12px;
  line-height: 1.2;
}

.zmt-agent-v3 .zmt-hub-v3-workflows,
.zmt-agent-v3 .zmt-hub-v3-section {
  padding: 22px;
  margin-top: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 251, 252, 0.96)),
    linear-gradient(135deg, var(--stage-wash), transparent 62%);
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

.zmt-agent-v3 .zmt-hub-v3-section {
  scroll-margin-top: 24px;
}

.zmt-agent-v3 .zmt-hub-v3-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.zmt-agent-v3 .zmt-hub-v3-section-head h2 {
  margin: 0;
  color: var(--hub-v3-ink);
  font-size: 23px;
  line-height: 1.2;
  font-weight: 950;
}

.zmt-agent-v3 .zmt-hub-v3-section-head p {
  margin: 8px 0 0;
  max-width: 760px;
  color: var(--hub-v3-muted);
  font-size: 14px;
  line-height: 1.65;
}

.zmt-agent-v3 .zmt-hub-v3-section-head > span {
  min-height: 30px;
  border: 1px solid var(--stage-line);
  border-radius: 7px;
  background: var(--stage-soft);
  color: var(--stage-color);
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.zmt-agent-v3 .zmt-hub-v3-workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.zmt-agent-v3 .zmt-hub-v3-workflow-card {
  min-height: 214px;
  border: 1px solid #d8e2e8;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, #fff 52%, var(--stage-tint) 100%),
    linear-gradient(180deg, var(--stage-wash), transparent 58%);
  padding: 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 14px 30px rgba(17, 25, 35, 0.075);
  transition: box-shadow 200ms ease, border-color 200ms ease, background 200ms ease;
}

.zmt-agent-v3 .zmt-hub-v3-workflow-card::before,
.zmt-agent-v3 .zmt-hub-v3-agent-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background:
    linear-gradient(180deg, var(--stage-deep), var(--stage-color) 44%, rgba(255, 255, 255, 0.35));
}

.zmt-agent-v3 .zmt-hub-v3-workflow-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.34), transparent 38%),
    radial-gradient(circle at 100% 0%, var(--stage-wash), transparent 42%);
}

.zmt-agent-v3 .zmt-hub-v3-workflow-card:hover,
.zmt-agent-v3 .zmt-hub-v3-agent-card:hover {
  border-color: #b8c8d4;
  box-shadow: var(--hub-v3-shadow-hover);
}

.zmt-agent-v3 .zmt-hub-v3-workflow-card > * {
  position: relative;
  z-index: 1;
}

.zmt-agent-v3 .zmt-hub-v3-workflow-top {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 10px;
}

.zmt-agent-v3 .zmt-hub-v3-workflow-top > span,
.zmt-agent-v3 .zmt-hub-v3-card-icon {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 8px;
  background:
    linear-gradient(145deg, var(--stage-deep), var(--stage-color));
  color: #fff;
  box-shadow: 0 10px 22px var(--stage-shadow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.zmt-agent-v3 .zmt-hub-v3-icon-svg {
  width: 21px;
  height: 21px;
  display: block;
}

.zmt-agent-v3 .zmt-hub-v3-workflow-top h3 {
  margin: 0;
  color: var(--hub-v3-ink);
  font-size: 17px;
  line-height: 1.25;
  font-weight: 950;
}

.zmt-agent-v3 .zmt-hub-v3-workflow-card p {
  margin: 12px 0 0;
  color: var(--hub-v3-muted);
  font-size: 13px;
  line-height: 1.68;
}

.zmt-agent-v3 .zmt-hub-v3-chain {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.zmt-agent-v3 .zmt-hub-v3-chain span,
.zmt-agent-v3 .zmt-hub-v3-tags span {
  min-height: 26px;
  border: 1px solid #d7e1e7;
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 250, 251, 0.88));
  color: var(--hub-v3-muted);
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.zmt-agent-v3 .zmt-hub-v3-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

.zmt-agent-v3 .zmt-hub-v3-card-grid.is-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.zmt-agent-v3 .zmt-hub-v3-agent-card {
  min-height: 308px;
  border: 1px solid #d8e2e8;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.99) 0%, #fff 54%, var(--stage-tint) 100%),
    linear-gradient(180deg, var(--stage-wash), transparent 58%);
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 14px 32px rgba(17, 25, 35, 0.075);
  transition: box-shadow 200ms ease, border-color 200ms ease, background 200ms ease;
}

.zmt-agent-v3 .zmt-hub-v3-agent-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.38), transparent 34%),
    radial-gradient(circle at 100% 0%, var(--stage-wash), transparent 44%),
    linear-gradient(180deg, rgba(17, 25, 35, 0.018), transparent 48%);
  pointer-events: none;
}

.zmt-agent-v3 .zmt-hub-v3-agent-card > * {
  position: relative;
  z-index: 1;
}

.zmt-agent-v3 .zmt-hub-v3-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.zmt-agent-v3 .zmt-hub-v3-card-head em {
  min-height: 26px;
  border-radius: 7px;
  border: 1px solid #d3dde6;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), var(--stage-soft));
  color: var(--stage-deep);
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.zmt-agent-v3 .zmt-hub-v3-agent-card h3 {
  margin: 14px 0 0;
  min-height: 48px;
  color: var(--hub-v3-ink);
  font-size: 19px;
  line-height: 1.26;
  font-weight: 950;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.zmt-agent-v3 .zmt-hub-v3-agent-card p {
  margin: 10px 0 0;
  min-height: 60px;
  color: var(--hub-v3-muted);
  font-size: 13px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.zmt-agent-v3 .zmt-hub-v3-output {
  margin-top: 14px;
  min-height: 56px;
  border: 1px solid #d4dfe7;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 251, 252, 0.92)),
    linear-gradient(90deg, var(--stage-wash), transparent 70%);
  padding: 9px 10px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.zmt-agent-v3 .zmt-hub-v3-output span {
  color: var(--stage-deep);
  font-size: 12px;
  font-weight: 950;
}

.zmt-agent-v3 .zmt-hub-v3-output b {
  min-width: 0;
  color: var(--hub-v3-ink);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 800;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.zmt-agent-v3 .zmt-hub-v3-card-foot {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.zmt-agent-v3 .zmt-hub-v3-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.zmt-agent-v3 .zmt-hub-v3-agent-card a,
.zmt-agent-v3 .zmt-hub-v3-agent-card button {
  min-height: 36px;
  padding: 0 12px;
  flex: 0 0 auto;
}

.zmt-agent-v3 .zmt-hub-v3-desktop-only {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid #d5ddd8;
  border-radius: 5px;
  color: #637168;
  background: #f7faf8;
  font-size: 12px;
  font-weight: 650;
}

.zmt-mobile-desktop-only {
  max-width: 620px;
  margin: 28px auto;
  padding: 30px 24px;
  border: 1px solid #dbe5df;
  border-radius: 8px;
  color: #1d3025;
  background: #fff;
}

.zmt-mobile-desktop-only-kicker { color: #247451; font-size: 12px; font-weight: 750; }
.zmt-mobile-desktop-only h1 { margin: 10px 0 12px; font-size: 24px; line-height: 1.35; }
.zmt-mobile-desktop-only > p { margin: 0; color: #607067; font-size: 15px; line-height: 1.75; }
.zmt-mobile-desktop-only-note { display: grid; gap: 5px; margin-top: 24px; padding: 15px; border-left: 3px solid #227451; background: #f2f8f4; }
.zmt-mobile-desktop-only-note strong { font-size: 14px; }
.zmt-mobile-desktop-only-note span { color: #617168; font-size: 13px; line-height: 1.6; }
.zmt-mobile-desktop-only > a { display: inline-flex; min-height: 42px; align-items: center; margin-top: 24px; color: #166341; font-size: 14px; font-weight: 700; text-decoration: none; }

.zmt-agent-v3 .zmt-hub-v3-agent-card a {
  background:
    linear-gradient(145deg, var(--stage-deep), var(--stage-color));
  box-shadow: 0 9px 18px var(--stage-shadow);
}

.zmt-agent-v3 .zmt-hub-v3-agent-card button,
.zmt-agent-v3 .zmt-hub-v3-agent-card button:disabled,
.zmt-agent-v3 .zmt-hub-v3-agent-card button[aria-disabled="true"] {
  border-color: var(--stage-line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), var(--stage-soft));
  color: var(--stage-deep);
  cursor: default;
  opacity: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.62);
}

.zmt-agent-v3 .zmt-hub-v3-agent-card button:hover,
.zmt-agent-v3 .zmt-hub-v3-agent-card button:disabled:hover {
  transform: none;
}

.zmt-agent-v3 .zmt-hub-v3-agent-card.is-showcase,
.zmt-agent-v3 .zmt-hub-v3-agent-card.is-disabled {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.99) 0%, #fff 54%, var(--stage-tint) 100%),
    linear-gradient(180deg, var(--stage-wash), transparent 58%);
}

.zmt-agent-v3 .zmt-hub-v3-agent-card.is-showcase .zmt-hub-v3-card-icon,
.zmt-agent-v3 .zmt-hub-v3-agent-card.is-disabled .zmt-hub-v3-card-icon {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.36);
  background:
    linear-gradient(145deg, var(--stage-deep), var(--stage-color));
}

.zmt-agent-v3 .zmt-hub-v3-section.is-secondary {
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 30px rgba(16, 24, 32, 0.06);
}

.zmt-agent-v3 .zmt-hub-v3-section.is-secondary .zmt-hub-v3-agent-card {
  min-height: 270px;
}

.zmt-agent-v3 .zmt-hub-v3-section.is-secondary .zmt-hub-v3-output {
  display: none;
}

.zmt-agent-v3 .zmt-hub-v3-project-list {
  display: grid;
  gap: 10px;
}

.zmt-agent-v3 .zmt-hub-v3-project-row {
  border: 1px solid var(--hub-v3-line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.zmt-agent-v3 .zmt-hub-v3-project-row b {
  display: block;
  color: var(--hub-v3-ink);
  font-size: 16px;
  line-height: 1.3;
  font-weight: 900;
}

.zmt-agent-v3 .zmt-hub-v3-project-row span {
  display: block;
  margin-top: 6px;
  color: var(--hub-v3-muted);
  font-size: 12px;
  font-weight: 850;
}

.zmt-agent-v3 .zmt-hub-v3-project-row p {
  margin: 8px 0 0;
  max-width: 820px;
  color: var(--hub-v3-muted);
  font-size: 13px;
  line-height: 1.6;
}

.zmt-agent-v3 .zmt-hub-v3-project-row a {
  background: #111c22;
}

.zmt-agent-v3 .zmt-hub-v3-project-row button {
  color: #95a0aa;
  background: #f2f5f7;
  cursor: default;
}

.zmt-agent-v3 .zmt-hub-v3-empty {
  border: 1px dashed var(--hub-v3-line-strong);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 20px;
}

.zmt-agent-v3 .zmt-hub-v3-empty a {
  margin-top: 14px;
}

.zmt-agent-v3 .zmt-hub-v3-hero-main,
.zmt-agent-v3 .zmt-hub-v3-command,
.zmt-agent-v3 .zmt-hub-v3-flow,
.zmt-agent-v3 .zmt-hub-v3-workflows,
.zmt-agent-v3 .zmt-hub-v3-section {
  opacity: 1;
  transform: none;
}

@media (max-width: 1180px) {
  .zmt-agent-v3 .zmt-hub-v3-hero {
    grid-template-columns: 1fr;
  }

  .zmt-agent-v3 .zmt-hub-v3-flow,
  .zmt-agent-v3 .zmt-hub-v3-workflow-grid,
  .zmt-agent-v3 .zmt-hub-v3-card-grid,
  .zmt-agent-v3 .zmt-hub-v3-card-grid.is-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .zmt-agent-hub.zmt-agent-v3 {
    padding-inline: 0;
  }

  .zmt-agent-v3 .zmt-hub-v3-hero-main,
  .zmt-agent-v3 .zmt-hub-v3-workflows,
  .zmt-agent-v3 .zmt-hub-v3-section {
    padding: 20px;
  }

  .zmt-agent-v3 .zmt-hub-v3-hero-main h1 {
    font-size: 30px;
  }

  .zmt-agent-v3 .zmt-hub-v3-stats,
  .zmt-agent-v3 .zmt-hub-v3-flow,
  .zmt-agent-v3 .zmt-hub-v3-workflow-grid,
  .zmt-agent-v3 .zmt-hub-v3-card-grid,
  .zmt-agent-v3 .zmt-hub-v3-card-grid.is-compact {
    grid-template-columns: 1fr;
  }

  .zmt-agent-v3 .zmt-hub-v3-flow {
    position: static;
  }

  .zmt-agent-v3 .zmt-hub-v3-section {
    scroll-margin-top: 20px;
  }

  .zmt-agent-v3 .zmt-hub-v3-agent-card,
  .zmt-agent-v3 .zmt-hub-v3-section.is-secondary .zmt-hub-v3-agent-card {
    min-height: 300px;
  }

  .zmt-agent-v3 .zmt-hub-v3-section-head,
  .zmt-agent-v3 .zmt-hub-v3-card-foot,
  .zmt-agent-v3 .zmt-hub-v3-project-row,
  .zmt-agent-v3 .zmt-hub-v3-alert {
    flex-direction: column;
    align-items: stretch;
  }

  .zmt-agent-v3 .zmt-hub-v3-agent-card a,
  .zmt-agent-v3 .zmt-hub-v3-agent-card button,
  .zmt-agent-v3 .zmt-hub-v3-project-row a,
  .zmt-agent-v3 .zmt-hub-v3-project-row button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .zmt-agent-v3 .zmt-hub-v3-hero-main h1 {
    font-size: 27px;
  }

  .zmt-agent-v3 .zmt-hub-v3-actions,
  .zmt-agent-v3 .zmt-hub-v3-button,
  .zmt-agent-v3 .zmt-hub-v3-alert a,
  .zmt-agent-v3 .zmt-hub-v3-empty a {
    width: 100%;
  }

  .zmt-agent-v3 .zmt-hub-v3-workflow-top {
    grid-template-columns: 34px 1fr;
  }

  .zmt-agent-v3 .zmt-hub-v3-workflow-top > span,
  .zmt-agent-v3 .zmt-hub-v3-card-icon {
    width: 34px;
    height: 34px;
  }
}

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

.zmt-agent-parser .zmtp-report-checkout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 14px 0;
  padding: 13px 15px;
  border: 1px solid #c9dedb;
  border-radius: 8px;
  background: #f3fbf9;
  box-shadow: 0 1px 2px rgba(18, 62, 57, .05);
}

.zmt-agent-parser .zmtp-report-checkout > div { display: grid; gap: 2px; min-width: 0; }
.zmt-agent-parser .zmtp-report-checkout span { color: #2b706b; font-size: 12px; font-weight: 800; }
.zmt-agent-parser .zmtp-report-checkout strong { color: #174d4a; font-size: 16px; font-variant-numeric: tabular-nums; }
.zmt-agent-parser .zmtp-report-checkout small { color: #55716f; font-size: 12px; line-height: 1.55; text-wrap: pretty; }
.zmt-agent-parser .zmtp-report-checkout b { flex: 0 0 auto; padding: 6px 9px; border-radius: 5px; background: #fff; color: #2f615d; font-size: 12px; font-variant-numeric: tabular-nums; box-shadow: 0 1px 2px rgba(18, 62, 57, .06); }

.zmt-platform-data-handoff-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 11px 13px;
  border: 1px solid #bfe6dc;
  border-radius: 7px;
  color: #236e61;
  background: #f0fbf7;
  box-shadow: 0 4px 12px rgba(18, 125, 105, .05);
}
.zmt-platform-data-handoff-note > .dashicons { width: 19px; height: 19px; color: #168976; font-size: 19px; }
.zmt-platform-data-handoff-note strong, .zmt-platform-data-handoff-note small { display: block; }
.zmt-platform-data-handoff-note strong { font-size: 12px; line-height: 1.35; }
.zmt-platform-data-handoff-note small { margin-top: 2px; color: #648b83; font-size: 11px; line-height: 1.45; }

.zmt-agent-hub.zmt-agent-v4 {
  --hub-v4-ink: #0f1720;
  --hub-v4-muted: #5f6f7b;
  --hub-v4-soft: #f5f7f8;
  --hub-v4-line: #d9e3e8;
  --hub-v4-canvas: #071019;
  --hub-v4-carbon: #0d1823;
  --hub-v4-carbon-2: #152331;
  --hub-v4-cyan: #22d3ee;
  --hub-v4-mint: #34d399;
  --hub-v4-amber: #f59e0b;
  --hub-v4-rose: #fb7185;
  --hub-v4-white: #ffffff;
  --hub-v4-shadow: 0 24px 70px rgba(7, 16, 25, 0.22);
  --stage-color: #1f3a5f;
  --stage-deep: #132844;
  --stage-soft: #edf3f8;
  --stage-tint: #f8fafc;
  --stage-line: #bac8d8;
  --stage-wash: rgba(31, 58, 95, 0.08);
  --stage-shadow: rgba(19, 40, 68, 0.14);
  max-width: 1240px;
  margin: 0 auto;
  border: 1px solid rgba(159, 179, 194, 0.34);
  border-radius: 8px;
  background: var(--hub-v4-canvas);
  color: #edf7fb;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  overflow: hidden;
  box-shadow: var(--hub-v4-shadow);
  isolation: isolate;
}

.zmt-agent-v4 *,
.zmt-agent-v4 *::before,
.zmt-agent-v4 *::after {
  box-sizing: border-box;
  letter-spacing: 0;
}

.zmt-agent-v4 a {
  text-decoration: none;
}

.zmt-agent-v4 .zmt-hub-v3-icon-svg {
  width: 21px;
  height: 21px;
  display: block;
}

.zmt-hub-v4-hero {
  min-height: 430px;
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 18px;
  position: relative;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.04), transparent 32%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 58px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 58px),
    linear-gradient(135deg, #071019 0%, #0d1823 48%, #111a22 100%);
}

.zmt-hub-v4-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.16), transparent),
    linear-gradient(180deg, transparent 0%, rgba(52, 211, 153, 0.1) 50%, transparent 100%);
  background-size: 220% 100%, 100% 220%;
  animation: zmtHubV4Trace 9s linear infinite;
  opacity: 0.55;
}

.zmt-hub-v4-command,
.zmt-hub-v4-radar,
.zmt-hub-v4-alert,
.zmt-hub-v4-pipeline,
.zmt-hub-v4-missions,
.zmt-hub-v4-stage,
.zmt-hub-v4-projects {
  position: relative;
  z-index: 1;
}

.zmt-hub-v4-command {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.zmt-hub-v4-command h1 {
  margin: 0;
  max-width: 760px;
  color: #ffffff;
  font-size: 42px;
  line-height: 1.08;
  font-weight: 950;
  text-shadow: 0 18px 46px rgba(34, 211, 238, 0.18);
}

.zmt-hub-v4-command p {
  margin: 15px 0 0;
  max-width: 760px;
  color: #b9c8d1;
  font-size: 15px;
  line-height: 1.76;
  font-weight: 560;
}

.zmt-hub-v4-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.zmt-hub-v4-button,
.zmt-hub-v4-alert a,
.zmt-hub-v4-agent a,
.zmt-hub-v4-agent button,
.zmt-hub-v4-project-row a,
.zmt-hub-v4-project-row button,
.zmt-hub-v4-empty a {
  min-height: 42px;
  border: 1px solid rgba(159, 179, 194, 0.36);
  border-radius: 7px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #eaf7fb;
  background: rgba(255, 255, 255, 0.08);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.zmt-hub-v4-button:hover,
.zmt-hub-v4-alert a:hover,
.zmt-hub-v4-agent a:hover,
.zmt-hub-v4-project-row a:hover,
.zmt-hub-v4-empty a:hover {
  border-color: rgba(34, 211, 238, 0.62);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12), 0 16px 34px rgba(7, 16, 25, 0.18);
  transform: translateY(-1px);
}

.zmt-hub-v4-button.is-primary,
.zmt-hub-v4-agent a,
.zmt-hub-v4-project-row a,
.zmt-hub-v4-empty a {
  border-color: rgba(34, 211, 238, 0.58);
  background:
    linear-gradient(135deg, #16a3b8, #146f78 52%, #172b3b);
  color: #fff !important;
}

.zmt-hub-v4-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.zmt-hub-v4-metrics article,
.zmt-hub-v4-core,
.zmt-hub-v4-quota,
.zmt-hub-v4-pulse-map a {
  border: 1px solid rgba(159, 179, 194, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.055));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.zmt-hub-v4-metrics article {
  min-height: 94px;
  padding: 13px;
}

.zmt-hub-v4-metrics span,
.zmt-hub-v4-core span,
.zmt-hub-v4-quota span {
  display: block;
  color: #8ea1ad;
  font-size: 12px;
  font-weight: 900;
}

.zmt-hub-v4-metrics strong {
  display: block;
  margin-top: 10px;
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
  font-weight: 950;
}

.zmt-hub-v4-metrics small {
  display: block;
  margin-top: 9px;
  color: #9fb0ba;
  font-size: 12px;
  line-height: 1.45;
}

.zmt-hub-v4-radar {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  min-width: 0;
}

.zmt-hub-v4-core,
.zmt-hub-v4-quota {
  padding: 14px;
}

.zmt-hub-v4-core {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.zmt-hub-v4-core h2 {
  margin: 8px 0 0;
  color: #fff;
  font-size: 21px;
  line-height: 1.2;
  font-weight: 950;
}

.zmt-hub-v4-core p {
  margin: 9px 0 0;
  color: #a9bac5;
  font-size: 13px;
  line-height: 1.65;
}

.zmt-hub-v4-pulse-map {
  min-height: 194px;
  padding: 12px;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.08), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
}

.zmt-hub-v4-pulse-map a {
  min-width: 0;
  padding: 10px 11px;
  color: #eaf7fb;
  position: relative;
  overflow: hidden;
}

.zmt-hub-v4-pulse-map a::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--stage-color), var(--hub-v4-cyan));
}

.zmt-hub-v4-pulse-map i {
  color: var(--stage-color);
  font-style: normal;
  font-size: 12px;
  font-weight: 950;
}

.zmt-hub-v4-pulse-map strong,
.zmt-hub-v4-pulse-map small {
  display: block;
}

.zmt-hub-v4-pulse-map strong {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 950;
}

.zmt-hub-v4-pulse-map small {
  margin-top: 5px;
  color: #9fb0ba;
  font-size: 12px;
}

.zmt-hub-v4-quota {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.zmt-hub-v4-quota strong {
  color: #e8fffb;
  font-size: 30px;
  line-height: 1;
  font-weight: 950;
}

.zmt-hub-v4-quota small {
  color: #9fb0ba;
  font-size: 12px;
  line-height: 1.35;
  text-align: right;
}

.zmt-hub-v4-alert {
  margin: 0 34px 24px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 8px;
  background: #fff8e9;
  color: var(--hub-v4-ink);
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.zmt-hub-v4-alert strong,
.zmt-hub-v4-empty strong {
  display: block;
  color: var(--hub-v4-ink);
  font-size: 15px;
  font-weight: 950;
}

.zmt-hub-v4-alert p,
.zmt-hub-v4-empty p {
  margin: 6px 0 0;
  color: var(--hub-v4-muted);
  font-size: 13px;
  line-height: 1.6;
}

.zmt-hub-v4-alert a {
  border-color: transparent;
  background: #c44954;
  color: #fff;
}

.zmt-hub-v4-pipeline {
  margin: 0;
  padding: 26px 34px 30px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  position: relative;
  background: #0b131d;
  border-top: 1px solid rgba(159, 179, 194, 0.16);
  border-bottom: 1px solid rgba(159, 179, 194, 0.16);
}

.zmt-hub-v4-pipeline::before {
  content: "";
  position: absolute;
  left: 58px;
  right: 58px;
  top: 62px;
  height: 2px;
  background:
    linear-gradient(90deg, rgba(34, 211, 238, 0), rgba(34, 211, 238, 0.78), rgba(52, 211, 153, 0.78), rgba(245, 158, 11, 0.72), rgba(251, 113, 133, 0.72), rgba(34, 211, 238, 0));
  background-size: 220% 100%;
  animation: zmtHubV4Trace 8s linear infinite;
}

.zmt-hub-v4-node {
  min-height: 112px;
  border: 1px solid rgba(159, 179, 194, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  color: #eaf7fb;
  padding: 14px 12px;
  display: grid;
  align-content: start;
  gap: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.zmt-hub-v4-node::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--stage-color), var(--hub-v4-cyan));
}

.zmt-hub-v4-node:hover {
  border-color: rgba(34, 211, 238, 0.52);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.055));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16), 0 0 0 3px rgba(34, 211, 238, 0.09);
  transform: translateY(-2px);
}

.zmt-hub-v4-node span {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: linear-gradient(145deg, var(--stage-deep), var(--stage-color));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 950;
  box-shadow: 0 10px 24px var(--stage-shadow);
}

.zmt-hub-v4-node strong {
  color: #fff;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 950;
}

.zmt-hub-v4-node small {
  color: #9fb0ba;
  font-size: 12px;
  line-height: 1.35;
}

.zmt-hub-v4-missions,
.zmt-hub-v4-stage,
.zmt-hub-v4-projects {
  color: var(--hub-v4-ink);
  background:
    linear-gradient(135deg, #f7f9fb 0%, #ffffff 42%, #f2f7f6 100%);
  scroll-margin-top: 86px;
}

.zmt-hub-v4-missions,
.zmt-hub-v4-projects {
  padding: 30px 34px;
  border-bottom: 1px solid var(--hub-v4-line);
}

.zmt-hub-v4-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.zmt-hub-v4-section-head h2 {
  margin: 0;
  color: var(--hub-v4-ink);
  font-size: 26px;
  line-height: 1.2;
  font-weight: 950;
}

.zmt-hub-v4-section-head p {
  margin: 8px 0 0;
  color: var(--hub-v4-muted);
  font-size: 14px;
  line-height: 1.7;
}

.zmt-hub-v4-mission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.zmt-hub-v4-mission {
  min-width: 0;
  border: 1px solid #d8e2e8;
  border-radius: 8px;
  background:
    linear-gradient(135deg, #ffffff, var(--stage-tint)),
    linear-gradient(180deg, var(--stage-wash), transparent);
  padding: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(15, 23, 32, 0.075);
}

.zmt-hub-v4-mission::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--stage-deep), var(--stage-color), var(--hub-v4-cyan));
}

.zmt-hub-v4-mission-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.zmt-hub-v4-mission-head > span,
.zmt-hub-v4-agent-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background:
    linear-gradient(145deg, var(--stage-deep), var(--stage-color));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px var(--stage-shadow);
}

.zmt-hub-v4-mission h3 {
  margin: 0;
  color: var(--hub-v4-ink);
  font-size: 18px;
  line-height: 1.25;
  font-weight: 950;
}

.zmt-hub-v4-mission p {
  margin: 7px 0 0;
  color: var(--hub-v4-muted);
  font-size: 13px;
  line-height: 1.65;
}

.zmt-hub-v4-mission-chain {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.zmt-hub-v4-mission-chain span {
  min-height: 30px;
  border: 1px solid #d5e0e7;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.82);
  color: #30404c;
  padding: 0 10px 0 6px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 850;
}

.zmt-hub-v4-mission-chain i {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--stage-soft);
  color: var(--stage-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 11px;
  font-weight: 950;
}

.zmt-hub-v4-stage {
  padding: 34px;
  border-bottom: 1px solid var(--hub-v4-line);
  display: grid;
  grid-template-columns: minmax(220px, 0.32fr) minmax(0, 1fr);
  gap: 18px;
}

.zmt-hub-v4-stage-rail {
  min-width: 0;
  border-left: 4px solid var(--stage-color);
  padding: 4px 4px 4px 18px;
}

.zmt-hub-v4-stage-rail > span {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--stage-deep), var(--stage-color));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 950;
  box-shadow: 0 12px 24px var(--stage-shadow);
}

.zmt-hub-v4-stage-rail h2 {
  margin: 16px 0 0;
  color: var(--hub-v4-ink);
  font-size: 26px;
  line-height: 1.18;
  font-weight: 950;
}

.zmt-hub-v4-stage-rail p {
  margin: 10px 0 0;
  color: var(--hub-v4-muted);
  font-size: 14px;
  line-height: 1.72;
}

.zmt-hub-v4-stage-rail dl {
  margin: 18px 0 0;
  display: grid;
  gap: 9px;
}

.zmt-hub-v4-stage-rail dl div {
  border: 1px solid #d9e3e8;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 10px 12px;
}

.zmt-hub-v4-stage-rail dt {
  color: var(--stage-deep);
  font-size: 12px;
  font-weight: 950;
}

.zmt-hub-v4-stage-rail dd {
  margin: 5px 0 0;
  color: #344450;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 760;
}

.zmt-hub-v4-agent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.zmt-hub-v4-agent-grid.is-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.zmt-hub-v4-agent {
  min-width: 0;
  min-height: 318px;
  border: 1px solid #d8e2e8;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.99), #fff 50%, var(--stage-tint)),
    linear-gradient(180deg, var(--stage-wash), transparent 58%);
  padding: 18px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 14px 32px rgba(15, 23, 32, 0.08);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.zmt-hub-v4-agent::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--stage-deep), var(--stage-color), rgba(34, 211, 238, 0.6));
}

.zmt-hub-v4-agent::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.42), transparent 34%),
    linear-gradient(180deg, var(--stage-wash), transparent 58%);
}

.zmt-hub-v4-agent:hover {
  border-color: #adc0cd;
  box-shadow:
    0 0 0 3px rgba(34, 211, 238, 0.08),
    0 22px 48px rgba(15, 23, 32, 0.13);
  transform: translateY(-2px);
}

.zmt-hub-v4-agent > * {
  position: relative;
  z-index: 1;
}

.zmt-hub-v4-agent-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.zmt-hub-v4-agent-top em {
  min-height: 28px;
  border: 1px solid #d4dfe6;
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), var(--stage-soft));
  color: var(--stage-deep);
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  font-style: normal;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.zmt-hub-v4-agent h3 {
  margin: 16px 0 0;
  min-height: 50px;
  color: var(--hub-v4-ink);
  font-size: 20px;
  line-height: 1.25;
  font-weight: 950;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.zmt-hub-v4-agent p {
  margin: 10px 0 0;
  min-height: 64px;
  color: var(--hub-v4-muted);
  font-size: 13px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.zmt-hub-v4-agent-output {
  margin-top: 16px;
  min-height: 58px;
  border: 1px solid #d5e0e7;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 250, 251, 0.9)),
    linear-gradient(90deg, var(--stage-wash), transparent 72%);
  padding: 9px 10px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.zmt-hub-v4-agent-output span {
  color: var(--stage-deep);
  font-size: 12px;
  font-weight: 950;
}

.zmt-hub-v4-agent-output b {
  min-width: 0;
  color: var(--hub-v4-ink);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 850;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.zmt-hub-v4-agent-foot {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.zmt-hub-v4-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.zmt-hub-v4-tags span {
  min-height: 26px;
  border: 1px solid #d7e1e7;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.82);
  color: #5e6c77;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
}

.zmt-hub-v4-agent a,
.zmt-hub-v4-agent button {
  min-height: 36px;
  padding: 0 12px;
  flex: 0 0 auto;
}

.zmt-hub-v4-agent button,
.zmt-hub-v4-agent button:disabled,
.zmt-hub-v4-agent button[aria-disabled="true"],
.zmt-hub-v4-project-row button {
  border-color: var(--stage-line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), var(--stage-soft));
  color: var(--stage-deep);
  cursor: default;
  opacity: 1;
  box-shadow: none;
}

.zmt-hub-v4-agent button:hover,
.zmt-hub-v4-agent button:disabled:hover,
.zmt-hub-v4-project-row button:hover {
  transform: none;
  box-shadow: none;
}

.zmt-hub-v4-stage.is-secondary .zmt-hub-v4-agent {
  min-height: 250px;
}

.zmt-hub-v4-stage.is-secondary .zmt-hub-v4-agent p {
  min-height: 58px;
}

.zmt-hub-v4-project-list {
  display: grid;
  gap: 10px;
}

.zmt-hub-v4-project-row {
  border: 1px solid var(--hub-v4-line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.zmt-hub-v4-project-row b {
  display: block;
  color: var(--hub-v4-ink);
  font-size: 16px;
  line-height: 1.3;
  font-weight: 950;
}

.zmt-hub-v4-project-row span,
.zmt-hub-v4-project-row p {
  color: var(--hub-v4-muted);
}

.zmt-hub-v4-project-row span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 850;
}

.zmt-hub-v4-project-row p {
  margin: 8px 0 0;
  max-width: 820px;
  font-size: 13px;
  line-height: 1.6;
}

.zmt-hub-v4-empty {
  border: 1px dashed var(--hub-v4-line);
  border-radius: 8px;
  background: #fff;
  padding: 20px;
}

.zmt-hub-v4-empty a {
  margin-top: 14px;
}

@keyframes zmtHubV4Trace {
  0% {
    background-position: 0% 50%, 50% 0%;
  }

  100% {
    background-position: 200% 50%, 50% 200%;
  }
}

@media (max-width: 1180px) {
  .zmt-hub-v4-hero,
  .zmt-hub-v4-stage {
    grid-template-columns: 1fr;
  }

  .zmt-hub-v4-pipeline,
  .zmt-hub-v4-agent-grid,
  .zmt-hub-v4-agent-grid.is-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .zmt-hub-v4-pipeline::before {
    display: none;
  }
}

@media (max-width: 860px) {
  .zmt-hub-v4-hero,
  .zmt-hub-v4-missions,
  .zmt-hub-v4-stage,
  .zmt-hub-v4-projects {
    padding: 22px;
  }

  .zmt-hub-v4-command h1 {
    font-size: 34px;
  }

  .zmt-hub-v4-metrics,
  .zmt-hub-v4-pipeline,
  .zmt-hub-v4-mission-grid,
  .zmt-hub-v4-agent-grid,
  .zmt-hub-v4-agent-grid.is-compact {
    grid-template-columns: 1fr;
  }

  .zmt-hub-v4-core,
  .zmt-hub-v4-quota,
  .zmt-hub-v4-project-row,
  .zmt-hub-v4-alert {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .zmt-hub-v4-quota small {
    text-align: left;
  }

  .zmt-hub-v4-alert {
    margin: 0 22px 22px;
  }

  .zmt-hub-v4-agent,
  .zmt-hub-v4-stage.is-secondary .zmt-hub-v4-agent {
    min-height: 290px;
  }

  .zmt-hub-v4-agent-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .zmt-hub-v4-agent a,
  .zmt-hub-v4-agent button,
  .zmt-hub-v4-project-row a,
  .zmt-hub-v4-project-row button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .zmt-agent-hub.zmt-agent-v4 {
    border-radius: 0;
  }

  .zmt-hub-v4-hero,
  .zmt-hub-v4-missions,
  .zmt-hub-v4-stage,
  .zmt-hub-v4-projects {
    padding: 18px;
  }

  .zmt-hub-v4-command h1 {
    font-size: 30px;
  }

  .zmt-hub-v4-pulse-map {
    grid-template-columns: 1fr;
  }

  .zmt-hub-v4-actions,
  .zmt-hub-v4-button,
  .zmt-hub-v4-alert a,
  .zmt-hub-v4-empty a {
    width: 100%;
  }
}

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

.zmtx-workbench {
  --zmtx-ink: #162126;
  --zmtx-muted: #66737b;
  --zmtx-soft: #f6f8f8;
  --zmtx-line: #dfe7e8;
  --zmtx-red: #df4b42;
  --zmtx-teal: #138b86;
  --zmtx-gold: #b9802e;
  --zmtx-blue: #315fba;
  --zmtx-shadow: 0 18px 50px rgba(27, 39, 45, 0.08);
  color: var(--zmtx-ink);
  max-width: 1200px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.zmtx-workbench *,
.zmtx-workbench *::before,
.zmtx-workbench *::after {
  box-sizing: border-box;
  letter-spacing: 0;
}

.zmtx-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
  gap: 22px;
  padding: 34px;
  border: 1px solid #e3e8e8;
  border-radius: 8px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.78)),
    radial-gradient(circle at 92% 0%, rgba(19, 139, 134, 0.18), transparent 34%),
    linear-gradient(135deg, #fff, #f5faf9);
  box-shadow: var(--zmtx-shadow);
  margin-bottom: 18px;
}

.zmtx-kicker {
  display: block;
  color: var(--zmtx-red);
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 12px;
}

.zmtx-hero h1 {
  margin: 0;
  max-width: 780px;
  font-size: 34px;
  line-height: 1.18;
  font-weight: 900;
  color: var(--zmtx-ink);
}

.zmtx-hero p {
  margin: 14px 0 0;
  max-width: 760px;
  color: var(--zmtx-muted);
  font-size: 15px;
  line-height: 1.8;
}

.zmtx-hero-actions,
.zmtx-action-group,
.zmtx-upload-row,
.zmtx-rewrite,
.zmtx-flow-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.zmtx-hero-actions {
  margin-top: 24px;
}

.zmtx-button,
.zmtx-rewrite button {
  min-height: 40px;
  border-radius: 7px;
  border: 1px solid transparent;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--zmtx-ink);
  background: #fff;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.zmtx-button-primary {
  background: var(--zmtx-red);
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(223, 75, 66, 0.22);
}

.zmtx-button-soft {
  border-color: #c9dcda;
  background: #eef8f7;
  color: #0d756f !important;
}

.zmtx-button:disabled,
.zmtx-rewrite button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.zmtx-hero-card {
  display: grid;
  gap: 14px;
}

.zmtx-quota,
.zmtx-mini-report,
.zmtx-flow,
.zmtx-section,
.zmtx-validation,
.zmtx-metrics article,
.zmtx-insight-grid article,
.zmtx-card-grid article,
.zmtx-output,
.zmtx-report-outline {
  border: 1px solid var(--zmtx-line);
  border-radius: 8px;
  background: #fff;
}

.zmtx-quota,
.zmtx-mini-report {
  padding: 18px;
}

.zmtx-quota span,
.zmtx-mini-report b,
.zmtx-metrics span,
.zmtx-insight-grid span {
  display: block;
  color: var(--zmtx-muted);
  font-size: 12px;
  font-weight: 850;
}

.zmtx-quota strong {
  display: block;
  margin-top: 8px;
  font-size: 32px;
  line-height: 1;
  color: var(--zmtx-teal);
}

.zmtx-mini-report ul,
.zmtx-card-grid ul,
.zmtx-report-outline ol {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--zmtx-muted);
  line-height: 1.75;
}

.zmtx-flow {
  padding: 18px;
  margin-bottom: 18px;
}

.zmtx-flow-head,
.zmtx-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.zmtx-flow-head strong,
.zmtx-section-head h2 {
  color: var(--zmtx-ink);
}

.zmtx-flow-head span,
.zmtx-section-head p {
  color: var(--zmtx-muted);
}

.zmtx-flow-steps {
  margin-top: 14px;
}

.zmtx-flow-steps a {
  flex: 1 1 150px;
  min-height: 74px;
  border: 1px solid var(--zmtx-line);
  border-radius: 8px;
  background: var(--zmtx-soft);
  color: var(--zmtx-ink);
  padding: 12px;
  text-decoration: none;
  display: grid;
  grid-template-columns: 28px 1fr;
  column-gap: 9px;
  align-items: center;
}

.zmtx-flow-steps span {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e5ebec;
  color: var(--zmtx-muted);
  font-weight: 900;
}

.zmtx-flow-steps b,
.zmtx-flow-steps small {
  display: block;
  grid-column: 2;
}

.zmtx-flow-steps small {
  color: var(--zmtx-muted);
  margin-top: 2px;
}

.zmtx-flow-steps .is-active {
  border-color: rgba(19, 139, 134, 0.5);
  background: #edf9f8;
}

.zmtx-flow-steps .is-active span {
  background: var(--zmtx-teal);
  color: #fff;
}

.zmtx-metrics,
.zmtx-import-grid,
.zmtx-insight-grid,
.zmtx-card-grid {
  display: grid;
  gap: 14px;
}

.zmtx-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.zmtx-metrics article,
.zmtx-insight-grid article,
.zmtx-card-grid article {
  padding: 16px;
}

.zmtx-metrics strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
  line-height: 1;
  color: var(--zmtx-ink);
}

.zmtx-metrics small,
.zmtx-card-grid li,
.zmtx-insight-grid p {
  color: var(--zmtx-muted);
}

.zmtx-section {
  padding: 22px;
  margin-bottom: 18px;
  box-shadow: var(--zmtx-shadow);
}

.zmtx-imports {
  background: #fffdf9;
  border-color: #ead9bd;
}

.zmtx-strategy {
  background: #f8fbff;
  border-color: #cfdef3;
}

.zmtx-report {
  background: #fbf8ff;
  border-color: #ded2ea;
}

.zmtx-sop {
  background: #f7fbf8;
  border-color: #cfe4d4;
}

.zmtx-section-head {
  margin-bottom: 16px;
}

.zmtx-section-head h2 {
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 900;
}

.zmtx-section-head p {
  margin: 0;
  line-height: 1.65;
}

.zmtx-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--zmtx-line);
  color: var(--zmtx-teal);
  flex: 0 0 auto;
}

.zmtx-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.zmtx-import-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.zmtx-import-card {
  border: 1px solid var(--zmtx-line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.zmtx-import-card summary {
  cursor: pointer;
  list-style: none;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: center;
  padding: 16px;
}

.zmtx-import-card summary::-webkit-details-marker {
  display: none;
}

.zmtx-import-card summary > span,
.zmtx-step-callout span {
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--zmtx-red);
  color: #fff;
  font-weight: 900;
}

.zmtx-import-card b,
.zmtx-import-card small {
  display: block;
}

.zmtx-import-card small {
  color: var(--zmtx-muted);
  margin-top: 4px;
  line-height: 1.45;
}

.zmtx-import-body {
  border-top: 1px solid var(--zmtx-line);
  padding: 16px;
}

.zmtx-import-body label,
.zmtx-profile-form label {
  display: grid;
  gap: 7px;
  color: var(--zmtx-muted);
  font-size: 13px;
  font-weight: 800;
}

.zmtx-import-body textarea,
.zmtx-profile-form input,
.zmtx-profile-form textarea,
.zmtx-profile-form select {
  width: 100%;
  border: 1px solid #d9e2e4;
  border-radius: 7px;
  background: #fff;
  color: var(--zmtx-ink);
  padding: 11px 12px;
  font: inherit;
  font-weight: 500;
}

.zmtx-upload-row {
  margin-top: 12px;
}

.zmtx-file {
  flex: 1 1 160px;
  min-height: 44px;
  border: 1px dashed #c9d7d9;
  border-radius: 7px;
  background: var(--zmtx-soft);
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--zmtx-ink) !important;
}

.zmtx-file input {
  display: none;
}

.zmtx-tip {
  margin-top: 12px;
  border-left: 3px solid var(--zmtx-gold);
  background: #fff8e9;
  color: #76521f;
  padding: 10px 12px;
  border-radius: 0 7px 7px 0;
  line-height: 1.65;
}

.zmtx-validation {
  margin-top: 14px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.zmtx-validation h3 {
  margin: 0 0 6px;
}

.zmtx-validation p {
  margin: 0;
  color: var(--zmtx-muted);
}

.zmtx-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.zmtx-checks span {
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 850;
}

.zmtx-checks .is-ok {
  background: #eaf8ed;
  color: #257441;
}

.zmtx-checks .is-missing {
  background: #fff1ef;
  color: #a23e34;
}

.zmtx-import-summary-grid,
.zmtx-field-audit,
.zmtx-account-list,
.zmtx-recognition-layout {
  display: grid;
  gap: 14px;
}

.zmtx-import-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
}

.zmtx-import-summary-grid article,
.zmtx-field-audit section,
.zmtx-screenshot-preview,
.zmtx-recognized-form,
.zmtx-account-list article,
.zmtx-table-wrap {
  border: 1px solid var(--zmtx-line);
  border-radius: 8px;
  background: #fff;
}

.zmtx-import-summary-grid article {
  padding: 15px;
}

.zmtx-import-summary-grid span,
.zmtx-field-audit h3,
.zmtx-account-list dt,
.zmtx-status-pill {
  color: var(--zmtx-muted);
  font-size: 12px;
  font-weight: 900;
}

.zmtx-import-summary-grid strong {
  display: block;
  margin-top: 7px;
  color: var(--zmtx-teal);
  font-size: 28px;
  line-height: 1;
}

.zmtx-field-audit {
  grid-template-columns: 1.25fr 0.75fr;
  margin-top: 14px;
}

.zmtx-field-audit section {
  padding: 15px;
}

.zmtx-field-audit h3 {
  margin: 0 0 10px;
  color: var(--zmtx-ink);
  font-size: 15px;
}

.zmtx-field-audit p {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.zmtx-field-audit span,
.zmtx-status-pill,
.zmtx-tag-hot,
.zmtx-tag-ok,
.zmtx-tag-warn,
.zmtx-tag-pending {
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.zmtx-field-audit span {
  background: #f0f5f5;
  color: #4e5f66;
}

.zmtx-assets {
  background: #f8fbfa;
  border-color: #cfe1df;
}

.zmtx-notes {
  background: #fffaf7;
  border-color: #ead8cf;
}

.zmtx-status-pill {
  border: 1px solid #cbdcda;
  background: #eef8f7;
  color: #0d756f;
}

.zmtx-recognition-layout {
  grid-template-columns: minmax(230px, 0.7fr) minmax(0, 1.3fr);
  align-items: stretch;
}

.zmtx-screenshot-preview {
  min-height: 280px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 251, 250, 0.96)),
    repeating-linear-gradient(45deg, #f1f6f6 0, #f1f6f6 8px, #fff 8px, #fff 16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 9px;
}

.zmtx-preview-icon {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  border: 1px solid #cfdedf;
  background: #fff;
  color: var(--zmtx-teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
}

.zmtx-screenshot-preview strong {
  color: var(--zmtx-ink);
}

.zmtx-screenshot-preview small {
  color: var(--zmtx-muted);
  line-height: 1.55;
}

.zmtx-recognized-form {
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.zmtx-recognized-form label {
  display: grid;
  gap: 7px;
  color: var(--zmtx-muted);
  font-size: 13px;
  font-weight: 850;
  min-width: 0;
}

.zmtx-recognized-form input,
.zmtx-recognized-form select,
.zmtx-recognized-form textarea,
.zmtx-table-tools input {
  width: 100%;
  border: 1px solid #d9e2e4;
  border-radius: 7px;
  background: #fff;
  color: var(--zmtx-ink);
  padding: 10px 11px;
  font: inherit;
}

.zmtx-recognized-form .zmtx-wide {
  grid-column: span 2;
}

.zmtx-recognition-status {
  grid-column: span 2;
  border: 1px dashed #cfdadc;
  border-radius: 8px;
  background: #fbfcfc;
  padding: 11px;
}

.zmtx-recognition-status strong,
.zmtx-recognition-status span {
  display: block;
}

.zmtx-recognition-status strong {
  color: var(--zmtx-red);
}

.zmtx-recognition-status span {
  margin-top: 4px;
  color: var(--zmtx-muted);
  line-height: 1.55;
}

.zmtx-subsection-head {
  margin: 18px 0 12px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-end;
}

.zmtx-subsection-head h3,
.zmtx-subsection-head p {
  margin: 0;
}

.zmtx-subsection-head h3 {
  color: var(--zmtx-ink);
  font-size: 18px;
}

.zmtx-subsection-head p,
.zmtx-subsection-head > span {
  color: var(--zmtx-muted);
}

.zmtx-subsection-head > span {
  font-size: 13px;
  font-weight: 850;
}

.zmtx-account-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.zmtx-account-list article {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.zmtx-account-list article > div {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.zmtx-account-list b {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #eef8f7;
  color: var(--zmtx-teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
}

.zmtx-account-list strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--zmtx-ink);
}

.zmtx-account-list article > div span {
  border-radius: 999px;
  background: #eaf8ed;
  color: #257441;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 850;
}

.zmtx-account-list p {
  margin: 0;
  color: var(--zmtx-muted);
  line-height: 1.65;
}

.zmtx-account-list dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.zmtx-account-list dt,
.zmtx-account-list dd {
  margin: 0;
}

.zmtx-account-list dd {
  color: var(--zmtx-ink);
  font-weight: 850;
  overflow-wrap: anywhere;
}

.zmtx-table-tools {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.zmtx-segmented {
  border: 1px solid #dbe5e6;
  border-radius: 8px;
  background: #fff;
  padding: 3px;
  display: inline-flex;
  gap: 3px;
}

.zmtx-segmented button {
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--zmtx-muted);
  padding: 0 11px;
  font-weight: 850;
  cursor: pointer;
}

.zmtx-segmented .is-active {
  background: var(--zmtx-red);
  color: #fff;
}

.zmtx-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.zmtx-table-wrap table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  background: #fff;
}

.zmtx-table-wrap th,
.zmtx-table-wrap td {
  border-bottom: 1px solid #e7edee;
  padding: 12px;
  text-align: left;
  vertical-align: top;
  color: var(--zmtx-ink);
}

.zmtx-table-wrap th {
  background: #fbfcfc;
  color: var(--zmtx-muted);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.zmtx-table-wrap td {
  font-size: 13px;
  line-height: 1.55;
}

.zmtx-table-wrap td strong,
.zmtx-table-wrap td small {
  display: block;
}

.zmtx-table-wrap td strong {
  max-width: 320px;
  overflow-wrap: anywhere;
}

.zmtx-table-wrap td small {
  margin-top: 5px;
  color: #89959b;
  overflow-wrap: anywhere;
}

.zmtx-tag-hot {
  background: #fff0e9;
  color: #b8452e;
}

.zmtx-tag-ok {
  background: #eaf8ed;
  color: #257441;
}

.zmtx-tag-warn {
  background: #fff8e7;
  color: #9a6a1f;
}

.zmtx-tag-pending {
  background: #eef1f3;
  color: #68757f;
}

.zmtx-insight-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
}

.zmtx-insight-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.35;
}

.zmtx-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.zmtx-card-grid h3,
.zmtx-report-outline h3 {
  margin: 0;
  font-size: 16px;
}

.zmtx-strategy-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.zmtx-strategy-card {
  border: 1px solid var(--zmtx-line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  min-width: 0;
}

.zmtx-radar-card,
.zmtx-structure-card {
  grid-column: span 2;
}

.zmtx-strategy-card h3 {
  margin: 0 0 14px;
  color: var(--zmtx-ink);
  font-size: 17px;
  line-height: 1.35;
  font-weight: 900;
}

.zmtx-strategy-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--zmtx-muted);
  line-height: 1.8;
}

.zmtx-radar-list {
  display: grid;
  gap: 14px;
}

.zmtx-radar-list label {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) 34px;
  gap: 10px;
  align-items: center;
  color: var(--zmtx-muted);
  font-size: 13px;
  font-weight: 850;
}

.zmtx-radar-list i {
  height: 8px;
  border-radius: 999px;
  background: #e7ecef;
  overflow: hidden;
}

.zmtx-radar-list i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--zmtx-teal), var(--zmtx-red));
}

.zmtx-radar-list strong {
  color: var(--zmtx-ink);
  text-align: right;
}

.zmtx-radar-list small {
  grid-column: 2 / 4;
  color: #87939a;
  font-size: 12px;
  font-weight: 700;
}

.zmtx-structure-card {
  display: grid;
  gap: 10px;
}

.zmtx-structure-card section {
  border: 1px solid var(--zmtx-line);
  border-radius: 8px;
  background: #fbfcfc;
  padding: 12px;
}

.zmtx-structure-card span {
  display: block;
  color: var(--zmtx-red);
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 6px;
}

.zmtx-structure-card strong {
  display: block;
  color: var(--zmtx-ink);
  line-height: 1.45;
}

.zmtx-structure-card p {
  margin: 6px 0 0;
  color: var(--zmtx-muted);
  line-height: 1.55;
}

.zmtx-rewrite {
  margin-bottom: 14px;
}

.zmtx-rewrite button {
  border-color: var(--zmtx-line);
  color: var(--zmtx-muted);
}

.zmtx-report-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 14px;
}

.zmtx-report-outline,
.zmtx-output {
  padding: 18px;
}

.zmtx-report-outline ol {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.zmtx-report-outline li {
  color: var(--zmtx-muted);
  line-height: 1.45;
}

.zmtx-evidence {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}

.zmtx-evidence strong {
  color: var(--zmtx-ink);
}

.zmtx-evidence span {
  border: 1px solid var(--zmtx-line);
  border-radius: 7px;
  background: var(--zmtx-soft);
  padding: 8px;
  color: var(--zmtx-muted);
  font-size: 12px;
}

.zmtx-output {
  min-height: 320px;
  background: #fff;
  white-space: pre-wrap;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.zmtx-output.has-modules {
  white-space: normal;
}

.zmtx-output.is-loading {
  border-color: rgba(19, 139, 134, 0.45);
  background: #f5fbfa;
}

.zmtx-empty {
  border: 1px dashed #cfdadc;
  border-radius: 8px;
  padding: 20px;
  background: var(--zmtx-soft);
  color: var(--zmtx-muted);
}

.zmtx-empty strong {
  display: block;
  color: var(--zmtx-ink);
  margin-bottom: 6px;
}

.zmtx-sop-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
  align-items: start;
}

.zmtx-profile-form {
  border: 1px solid var(--zmtx-line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
  display: grid;
  gap: 12px;
  align-self: start;
  align-content: start;
}

.zmtx-profile-form fieldset {
  border: 1px solid var(--zmtx-line);
  border-radius: 8px;
  background: #fbfcfc;
  margin: 0;
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
  align-content: start;
}

.zmtx-profile-form legend {
  color: var(--zmtx-red);
  font-size: 13px;
  font-weight: 900;
  padding: 0 7px;
}

.zmtx-profile-form .zmtx-wide {
  grid-column: 1 / -1;
}

.zmtx-profile-form textarea {
  resize: vertical;
}

.zmtx-sop .zmtx-output {
  align-self: start;
}

.zmtx-sop-preview,
.zmtx-generated-report {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  white-space: normal;
}

.zmtx-sop-preview article,
.zmtx-generated-report article {
  border: 1px solid var(--zmtx-line);
  border-radius: 8px;
  background: #fbfcfc;
  padding: 14px;
  min-width: 0;
}

.zmtx-generated-report article {
  background: #fff;
}

.zmtx-generated-report article:nth-child(4n + 1),
.zmtx-generated-report article:nth-child(4n + 2) {
  background: #fffdfb;
}

.zmtx-sop-preview h3,
.zmtx-generated-report h3 {
  margin: 0 0 10px;
  color: var(--zmtx-ink);
  font-size: 17px;
  line-height: 1.35;
  font-weight: 900;
}

.zmtx-generated-report h3 {
  padding-bottom: 9px;
  border-bottom: 1px solid #eef2f3;
}

.zmtx-sop-preview p,
.zmtx-generated-report p {
  margin: 0 0 9px;
  color: var(--zmtx-muted);
  line-height: 1.75;
}

.zmtx-sop-preview p:last-child,
.zmtx-generated-report p:last-child {
  margin-bottom: 0;
}

.zmtx-sop-preview ul,
.zmtx-generated-report ul {
  margin: 0;
  padding-left: 18px;
  color: var(--zmtx-muted);
  line-height: 1.75;
}

.zmtx-generated-title {
  border: 1px solid #f0d7d2;
  border-radius: 8px;
  background: #fff5f2;
  color: var(--zmtx-ink);
  padding: 12px 14px;
  margin-bottom: 12px;
  font-weight: 900;
}

.zmtx-report-cover {
  border: 1px solid #f0d7d2;
  border-radius: 8px;
  background: #fff5f2;
  color: var(--zmtx-ink);
  padding: 14px;
  margin-bottom: 12px;
}

.zmtx-report-cover span,
.zmtx-report-cover strong,
.zmtx-report-cover p {
  display: block;
}

.zmtx-report-cover span {
  color: var(--zmtx-red);
  font-size: 12px;
  font-weight: 900;
}

.zmtx-report-cover strong {
  margin-top: 5px;
  font-size: 18px;
  line-height: 1.35;
}

.zmtx-report-cover p {
  margin: 6px 0 0;
  color: var(--zmtx-muted);
  line-height: 1.6;
}

.zmtx-step-callout {
  border: 1px solid #cfe4d4;
  border-radius: 8px;
  background: #f2fbf4;
  padding: 14px;
}

.zmtx-step-callout span {
  width: auto;
  height: auto;
  min-height: 26px;
  padding: 0 9px;
  font-size: 12px;
}

.zmtx-step-callout b,
.zmtx-step-callout p {
  display: block;
  margin-top: 8px;
}

.zmtx-step-callout p {
  color: var(--zmtx-muted);
  margin-bottom: 0;
}

.zmtx-positioning-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(300px, 0.72fr);
  gap: 14px;
  align-items: start;
}

.zmtx-positioning-side {
  display: grid;
  gap: 14px;
  align-content: start;
}

.zmtx-positioning-side .zmtx-validation {
  margin-top: 0;
  display: grid;
}

.zmtx-positioning-side .zmtx-checks {
  justify-content: flex-start;
}

.zmtx-positioning-audit {
  grid-template-columns: 1fr;
  margin-top: 0;
}

.zmtx-positioning-cards {
  grid-template-columns: 1fr;
}

.zmtx-positioning-cards article {
  display: grid;
  gap: 7px;
}

.zmtx-positioning-cards span {
  color: var(--zmtx-red);
  font-size: 12px;
  font-weight: 900;
}

.zmtx-positioning-cards strong {
  color: var(--zmtx-ink);
  line-height: 1.4;
}

.zmtx-positioning-cards p {
  margin: 0;
  color: var(--zmtx-muted);
  line-height: 1.6;
}

.zmtx-positioning-report article:nth-child(1),
.zmtx-positioning-report article:nth-child(2),
.zmtx-positioning-report article:nth-child(11) {
  grid-column: 1 / -1;
}

@media (max-width: 980px) {
  .zmtx-hero,
  .zmtx-report-layout,
  .zmtx-sop-layout,
  .zmtx-positioning-layout {
    grid-template-columns: 1fr;
  }

  .zmtx-metrics,
  .zmtx-card-grid,
  .zmtx-strategy-grid,
  .zmtx-import-summary-grid,
  .zmtx-account-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .zmtx-import-grid,
  .zmtx-insight-grid,
  .zmtx-sop-preview,
  .zmtx-generated-report,
  .zmtx-field-audit,
  .zmtx-recognition-layout {
    grid-template-columns: 1fr;
  }

  .zmtx-radar-card,
  .zmtx-structure-card {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .zmtx-hero,
  .zmtx-section {
    padding: 18px;
  }

  .zmtx-hero h1 {
    font-size: 25px;
  }

  .zmtx-flow-head,
  .zmtx-section-head,
  .zmtx-validation {
    flex-direction: column;
  }

  .zmtx-metrics,
  .zmtx-card-grid,
  .zmtx-strategy-grid,
  .zmtx-import-summary-grid,
  .zmtx-account-list,
  .zmtx-table-tools {
    grid-template-columns: 1fr;
  }

  .zmtx-radar-card,
  .zmtx-structure-card,
  .zmtx-profile-form .zmtx-wide,
  .zmtx-recognized-form .zmtx-wide,
  .zmtx-recognition-status {
    grid-column: auto;
  }

  .zmtx-profile-form fieldset,
  .zmtx-recognized-form {
    grid-template-columns: 1fr;
  }

  .zmtx-subsection-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .zmtx-account-list article > div,
  .zmtx-account-list dl {
    grid-template-columns: 1fr;
  }

  .zmtx-radar-list label {
    grid-template-columns: 1fr 44px;
  }

  .zmtx-radar-list label > span,
  .zmtx-radar-list small {
    grid-column: 1 / -1;
  }

  .zmtx-button,
  .zmtx-action-group,
  .zmtx-action-group .zmtx-button {
    width: 100%;
  }
}

.zmt-agent-v2 {
  --zmtv2-bg: #f4f6f7;
  --zmtv2-surface: #ffffff;
  --zmtv2-surface-soft: #f8fafb;
  --zmtv2-ink: #111c22;
  --zmtv2-muted: #65727c;
  --zmtv2-line: #dce4e7;
  --zmtv2-line-strong: #cbd7dc;
  --zmtv2-rose: #df4b42;
  --zmtv2-rose-dark: #b8322d;
  --zmtv2-teal: #108a83;
  --zmtv2-gold: #b98232;
  --zmtv2-blue: #2f66c4;
  --zmtv2-shadow: 0 16px 44px rgba(17, 28, 34, 0.08);
  --zmtv2-shadow-soft: 0 8px 24px rgba(17, 28, 34, 0.06);
  max-width: 1240px;
  margin: 0 auto;
  color: var(--zmtv2-ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.zmt-agent-v2 *,
.zmt-agent-v2 *::before,
.zmt-agent-v2 *::after {
  box-sizing: border-box;
  letter-spacing: 0;
}

.zmtv2-command {
  border: 1px solid var(--zmtv2-line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 251, 0.94)),
    linear-gradient(90deg, rgba(223, 75, 66, 0.08), rgba(16, 138, 131, 0.08));
  box-shadow: var(--zmtv2-shadow);
  padding: 26px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 22px;
  align-items: stretch;
  margin-bottom: 14px;
}

.zmtv2-breadcrumb {
  color: var(--zmtv2-rose);
  font-size: 13px;
  font-weight: 850;
  margin-bottom: 10px;
}

.zmtv2-command h1 {
  margin: 0;
  color: var(--zmtv2-ink);
  font-size: 34px;
  line-height: 1.12;
  font-weight: 950;
}

.zmtv2-command p {
  margin: 12px 0 0;
  max-width: 780px;
  color: var(--zmtv2-muted);
  font-size: 15px;
  line-height: 1.78;
}

.zmtv2-command-actions,
.zmtv2-report-actions,
.zmtv2-rewrite {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.zmtv2-command-actions {
  margin-top: 22px;
}

.zmtv2-button {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--zmtv2-ink);
  background: #fff;
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.zmtv2-button:hover {
  transform: translateY(-1px);
  box-shadow: var(--zmtv2-shadow-soft);
}

.zmtv2-button:disabled {
  opacity: 0.68;
  cursor: wait;
  transform: none;
}

.zmtv2-button-primary {
  background: var(--zmtv2-rose);
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(223, 75, 66, 0.22);
}

.zmtv2-button-primary:hover {
  background: var(--zmtv2-rose-dark);
}

.zmtv2-button-ghost {
  border-color: var(--zmtv2-line-strong);
  color: var(--zmtv2-ink) !important;
  background: #fff;
}

.zmtv2-button-soft {
  border-color: rgba(16, 138, 131, 0.28);
  background: #edf8f7;
  color: #0e746f !important;
}

.zmtv2-command-panel {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 12px;
}

.zmtv2-quota-card,
.zmtv2-output-preview,
.zmtv2-input-panel,
.zmtv2-cockpit,
.zmtv2-report-shell {
  border: 1px solid var(--zmtv2-line);
  border-radius: 8px;
  background: var(--zmtv2-surface);
}

.zmtv2-quota-card,
.zmtv2-output-preview {
  padding: 16px;
  box-shadow: var(--zmtv2-shadow-soft);
}

.zmtv2-quota-card span,
.zmtv2-output-preview span,
.zmtv2-report-toolbar span,
.zmtv2-empty-report span {
  display: block;
  color: var(--zmtv2-muted);
  font-size: 12px;
  font-weight: 900;
}

.zmtv2-quota-card strong {
  display: block;
  margin-top: 8px;
  color: var(--zmtv2-teal);
  font-size: 38px;
  line-height: 1;
  font-weight: 950;
}

.zmtv2-quota-card p,
.zmtv2-output-preview p {
  font-size: 13px;
  line-height: 1.55;
}

.zmtv2-output-preview b {
  display: block;
  margin-top: 8px;
  color: var(--zmtv2-ink);
  font-size: 17px;
  line-height: 1.35;
}

.zmtv2-output-preview ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--zmtv2-muted);
  font-size: 13px;
  line-height: 1.7;
}

.zmtv2-stepbar {
  border: 1px solid var(--zmtv2-line);
  border-radius: 8px;
  background: #fff;
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 14px;
  position: sticky;
  top: 76px;
  z-index: 4;
  box-shadow: var(--zmtv2-shadow-soft);
}

.zmtv2-stepbar button {
  min-height: 64px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--zmtv2-surface-soft);
  color: var(--zmtv2-ink);
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 9px;
  align-items: center;
  text-align: left;
  padding: 10px;
  cursor: pointer;
}

.zmtv2-stepbar span {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e9eef1;
  color: var(--zmtv2-muted);
  font-size: 12px;
  font-weight: 950;
  grid-row: span 2;
}

.zmtv2-stepbar b,
.zmtv2-stepbar small {
  display: block;
  min-width: 0;
}

.zmtv2-stepbar b {
  font-size: 14px;
  line-height: 1.15;
}

.zmtv2-stepbar small {
  color: var(--zmtv2-muted);
  font-size: 12px;
  line-height: 1.2;
}

.zmtv2-stepbar .is-active {
  border-color: rgba(223, 75, 66, 0.36);
  background: #fff4f2;
}

.zmtv2-stepbar .is-active span {
  background: var(--zmtv2-rose);
  color: #fff;
}

.zmtv2-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(320px, 0.62fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}

.zmtv2-input-panel,
.zmtv2-cockpit {
  box-shadow: var(--zmtv2-shadow);
}

.zmtv2-input-panel {
  padding: 18px;
}

.zmtv2-form-panel[hidden] {
  display: none !important;
}

.zmtv2-panel-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.zmtv2-panel-head > span {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--zmtv2-ink);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 950;
}

.zmtv2-panel-head h2,
.zmtv2-report-toolbar h2 {
  margin: 0;
  color: var(--zmtv2-ink);
  font-size: 24px;
  line-height: 1.25;
  font-weight: 950;
}

.zmtv2-panel-head p,
.zmtv2-report-toolbar p {
  margin: 5px 0 0;
  color: var(--zmtv2-muted);
  font-size: 14px;
  line-height: 1.65;
}

.zmtv2-fill-guide {
  border: 1px solid #d9e8e7;
  border-radius: 8px;
  background:
    linear-gradient(135deg, #f5fbfa, #fff 62%),
    linear-gradient(90deg, rgba(16, 138, 131, 0.1), rgba(223, 75, 66, 0.05));
  padding: 14px;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(240px, 0.7fr);
  gap: 14px;
  align-items: stretch;
}

.zmtv2-fill-guide span {
  display: block;
  color: var(--zmtv2-teal);
  font-size: 12px;
  font-weight: 950;
}

.zmtv2-fill-guide h3 {
  margin: 6px 0 0;
  color: var(--zmtv2-ink);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 950;
}

.zmtv2-fill-guide p {
  margin: 8px 0 0;
  color: var(--zmtv2-muted);
  font-size: 13px;
  line-height: 1.7;
}

.zmtv2-guide-example {
  border: 1px solid var(--zmtv2-line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  min-width: 0;
}

.zmtv2-guide-example b,
.zmtv2-guide-example code {
  display: block;
}

.zmtv2-guide-example b {
  color: var(--zmtv2-rose);
  font-size: 12px;
  font-weight: 950;
}

.zmtv2-guide-example code {
  margin-top: 7px;
  color: var(--zmtv2-ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 680;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.zmtv2-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.zmtv2-field-grid label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--zmtv2-muted);
  font-size: 13px;
  font-weight: 850;
}

.zmtv2-field-grid input,
.zmtv2-field-grid select,
.zmtv2-field-grid textarea {
  width: 100%;
  border: 1px solid #d8e1e4;
  border-radius: 7px;
  background: #fff;
  color: var(--zmtv2-ink);
  padding: 11px 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 520;
  line-height: 1.5;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.zmtv2-field-grid textarea {
  resize: vertical;
}

.zmtv2-field-grid input:focus,
.zmtv2-field-grid select:focus,
.zmtv2-field-grid textarea:focus {
  border-color: rgba(16, 138, 131, 0.7);
  box-shadow: 0 0 0 3px rgba(16, 138, 131, 0.12);
  background: #fbfefe;
}

.zmtv2-field-hint {
  display: block;
  color: #77848c;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.55;
}

.zmtv2-wide {
  grid-column: 1 / -1;
}

.zmtv2-panel-actions {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #edf2f3;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.zmtv2-panel-actions > span {
  margin-right: auto;
  max-width: 420px;
  color: var(--zmtv2-muted);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.55;
}

.zmtv2-cockpit {
  padding: 16px;
  position: sticky;
  top: 158px;
  display: grid;
  gap: 14px;
}

.zmtv2-cockpit-top {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 14px;
  align-items: center;
}

.zmtv2-ring {
  width: 118px;
  height: 118px;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, #fff 0 56%, transparent 57%),
    conic-gradient(var(--zmtv2-teal) var(--zmtv2-progress), #e8eef0 0);
  display: grid;
  place-items: center;
  text-align: center;
  box-shadow: inset 0 0 0 1px #e7eef0;
}

.zmtv2-ring strong,
.zmtv2-ring span {
  display: block;
  grid-area: 1 / 1;
}

.zmtv2-ring strong {
  transform: translateY(-8px);
  color: var(--zmtv2-ink);
  font-size: 26px;
  line-height: 1;
  font-weight: 950;
}

.zmtv2-ring span {
  transform: translateY(17px);
  color: var(--zmtv2-muted);
  font-size: 12px;
  font-weight: 850;
}

.zmtv2-cockpit-copy h2 {
  margin: 0;
  color: var(--zmtv2-ink);
  font-size: 19px;
  font-weight: 950;
}

.zmtv2-cockpit-copy p {
  margin: 7px 0 0;
  color: var(--zmtv2-muted);
  font-size: 13px;
  line-height: 1.65;
}

.zmtv2-mini-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.zmtv2-mini-metrics article {
  border: 1px solid var(--zmtv2-line);
  border-radius: 8px;
  background: var(--zmtv2-surface-soft);
  padding: 11px;
}

.zmtv2-mini-metrics span {
  display: block;
  color: var(--zmtv2-muted);
  font-size: 12px;
  font-weight: 850;
}

.zmtv2-mini-metrics strong {
  display: block;
  margin-top: 6px;
  color: var(--zmtv2-ink);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.zmtv2-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.zmtv2-checklist span {
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 850;
}

.zmtv2-checklist .is-ok {
  background: #e8f7ef;
  color: #247443;
}

.zmtv2-checklist .is-missing {
  background: #fff1ef;
  color: #a43b33;
}

.zmtm-guide {
  border: 1px solid var(--zmtv2-line);
  border-radius: 8px;
  background: #fff;
  margin: 0 0 14px;
  box-shadow: var(--zmtv2-shadow-soft);
}

.zmtm-guide summary {
  min-height: 54px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--zmtv2-ink);
  font-size: 15px;
  font-weight: 950;
  cursor: pointer;
  list-style: none;
}

.zmtm-guide summary::-webkit-details-marker {
  display: none;
}

.zmtm-guide summary::after {
  content: "+";
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #eff8f7;
  color: var(--zmtv2-teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 950;
  flex: 0 0 auto;
}

.zmtm-guide[open] summary::after {
  content: "-";
}

.zmtm-guide article {
  border-top: 1px solid var(--zmtv2-line);
  padding: 18px;
  display: grid;
  gap: 14px;
}

.zmtm-guide h2,
.zmtm-guide p {
  margin: 0;
}

.zmtm-guide h2 {
  color: var(--zmtv2-ink);
  font-size: 22px;
  line-height: 1.3;
  font-weight: 950;
}

.zmtm-guide p {
  color: var(--zmtv2-muted);
  font-size: 14px;
  line-height: 1.75;
}

.zmtm-research-callout {
  border-left: 3px solid var(--zmtv2-teal);
  background: #edf8f7;
  color: #285c58;
  padding: 11px 13px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.65;
}

.zmtm-manual-dialog {
  width: min(980px, calc(100vw - 32px));
  max-width: none;
  max-height: min(820px, calc(100vh - 32px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  background: #ffffff;
  color: var(--zmtv2-ink);
  box-shadow: 0 28px 72px rgba(16, 33, 54, 0.24), 0 8px 24px rgba(16, 33, 54, 0.16);
}

.zmtm-manual-dialog::backdrop {
  background: rgba(16, 33, 54, 0.56);
}

.zmtm-manual-shell {
  max-height: inherit;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.zmtm-manual-head,
.zmtm-manual-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #f7fbfb;
}

.zmtm-manual-head {
  border-bottom: 1px solid var(--zmtv2-line);
  padding: 18px 22px;
}

.zmtm-manual-head span {
  display: block;
  color: var(--zmtv2-teal);
  font-size: 12px;
  font-weight: 950;
}

.zmtm-manual-head h2,
.zmtm-manual-head p {
  margin: 0;
}

.zmtm-manual-head h2 {
  margin-top: 5px;
  color: var(--zmtv2-ink);
  font-size: 24px;
  line-height: 1.25;
  font-weight: 950;
  text-wrap: balance;
}

.zmtm-manual-head p {
  margin-top: 7px;
  color: var(--zmtv2-muted);
  font-size: 13px;
  line-height: 1.65;
}

.zmtm-manual-close {
  width: 40px;
  height: 40px;
  border: 1px solid #c9d7db;
  border-radius: 7px;
  background: #ffffff;
  color: var(--zmtv2-ink);
  cursor: pointer;
  font-size: 23px;
  font-weight: 700;
  line-height: 1;
  transition-property: background-color, border-color, color, transform;
  transition-duration: 160ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.zmtm-manual-close:hover {
  border-color: rgba(223, 75, 66, 0.44);
  background: #fff4f2;
  color: var(--zmtv2-rose);
}

.zmtm-manual-close:active {
  transform: scale(0.96);
}

.zmtm-manual-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px 22px;
  display: grid;
  gap: 16px;
}

.zmtm-manual-body > * {
  min-width: 0;
}

.zmtm-manual-intro,
.zmtm-manual-section {
  border: 1px solid var(--zmtv2-line);
  border-radius: 8px;
  background: #ffffff;
  padding: 16px;
}

.zmtm-manual-intro {
  border-left: 4px solid var(--zmtv2-rose);
}

.zmtm-manual-intro strong {
  color: var(--zmtv2-ink);
  font-size: 16px;
  font-weight: 950;
}

.zmtm-manual-intro p {
  margin: 7px 0 0;
  color: var(--zmtv2-muted);
  font-size: 14px;
  line-height: 1.72;
}

.zmtm-manual-section-head {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.zmtm-manual-section-head > span {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #102136;
  color: #ffffff;
  font-size: 12px;
  font-weight: 950;
}

.zmtm-manual-section h3,
.zmtm-manual-section p {
  margin: 0;
}

.zmtm-manual-section h3 {
  color: var(--zmtv2-ink);
  font-size: 18px;
  line-height: 1.3;
  font-weight: 950;
}

.zmtm-manual-section-head p {
  margin-top: 5px;
  color: var(--zmtv2-muted);
  font-size: 13px;
  line-height: 1.6;
}

.zmtm-manual-logic {
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
  list-style: none;
  counter-reset: manual-step;
}

.zmtm-manual-logic li {
  counter-increment: manual-step;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  color: var(--zmtv2-muted);
  font-size: 13px;
  line-height: 1.6;
}

.zmtm-manual-logic li::before {
  content: counter(manual-step);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #edf8f7;
  color: var(--zmtv2-teal);
  font-size: 12px;
  font-weight: 950;
  grid-row: span 2;
}

.zmtm-manual-logic b,
.zmtm-manual-logic span {
  display: block;
}

.zmtm-manual-logic b {
  grid-column: 2;
  color: var(--zmtv2-ink);
  font-size: 14px;
}

.zmtm-manual-logic span {
  grid-column: 2;
  margin-top: 2px;
}

.zmtm-manual-table-wrap {
  margin-top: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.zmtm-manual-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.zmtm-manual-table th,
.zmtm-manual-table td {
  border-bottom: 1px solid #e5ecef;
  padding: 10px;
  text-align: left;
  vertical-align: top;
  color: var(--zmtv2-ink);
  font-size: 13px;
  line-height: 1.55;
}

.zmtm-manual-table th {
  background: #f5f8fa;
  color: #405161;
  font-weight: 950;
  white-space: nowrap;
}

.zmtm-manual-table td:first-child {
  border-left: 3px solid var(--zmtv2-teal);
  font-weight: 950;
  white-space: nowrap;
}

.zmtm-manual-reading-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.zmtm-manual-reading-grid article {
  border: 1px solid #dbe8e7;
  border-radius: 7px;
  background: #f7fbfa;
  padding: 11px;
}

.zmtm-manual-reading-grid b,
.zmtm-manual-reading-grid span {
  display: block;
}

.zmtm-manual-reading-grid b {
  color: var(--zmtv2-ink);
  font-size: 13px;
  font-weight: 950;
}

.zmtm-manual-reading-grid span {
  margin-top: 5px;
  color: var(--zmtv2-muted);
  font-size: 12px;
  line-height: 1.55;
}

.zmtm-manual-boundary ul {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--zmtv2-muted);
  font-size: 13px;
  line-height: 1.7;
}

.zmtm-manual-boundary li + li {
  margin-top: 6px;
}

.zmtm-manual-foot {
  border-top: 1px solid var(--zmtv2-line);
  padding: 14px 22px;
}

.zmtm-manual-foot span {
  color: var(--zmtv2-muted);
  font-size: 13px;
  line-height: 1.55;
}

.zmtm-method-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.zmtm-method-grid section {
  border: 1px solid #dbe8e7;
  border-radius: 8px;
  background: #f7fbfa;
  padding: 12px;
  min-width: 0;
}

.zmtm-method-grid b,
.zmtm-method-grid span {
  display: block;
}

.zmtm-method-grid b {
  color: var(--zmtv2-teal);
  font-size: 15px;
  font-weight: 950;
}

.zmtm-method-grid span {
  margin-top: 6px;
  color: var(--zmtv2-muted);
  font-size: 12px;
  line-height: 1.55;
}

.zmtv2-side-block {
  border: 1px solid var(--zmtv2-line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.zmtv2-side-block h3 {
  margin: 0 0 10px;
  color: var(--zmtv2-ink);
  font-size: 15px;
  font-weight: 950;
}

.zmtv2-side-block dl {
  margin: 0;
  display: grid;
  gap: 9px;
}

.zmtv2-side-block dt {
  color: var(--zmtv2-rose);
  font-size: 12px;
  font-weight: 900;
}

.zmtv2-side-block dd {
  margin: 3px 0 0;
  color: var(--zmtv2-muted);
  font-size: 13px;
  line-height: 1.55;
}

.zmtv2-risk {
  border-color: #ecd6b4;
  background: #fffaf0;
}

.zmtv2-risk p {
  margin: 0;
  color: #76521f;
  font-size: 13px;
  line-height: 1.65;
}

.zmtv2-report-shell {
  padding: 18px;
  box-shadow: var(--zmtv2-shadow);
}

.zmtv2-report-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.zmtv2-report-toolbar > div:first-child {
  min-width: 0;
}

.zmtv2-report-toolbar span {
  color: var(--zmtv2-rose);
}

.zmtv2-rewrite {
  border: 1px solid var(--zmtv2-line);
  border-radius: 8px;
  background: var(--zmtv2-surface-soft);
  padding: 6px;
  margin-bottom: 14px;
  width: fit-content;
  max-width: 100%;
}

.zmtv2-rewrite button {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--zmtv2-muted);
  padding: 0 12px;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.zmtv2-rewrite .is-active {
  background: var(--zmtv2-ink);
  color: #fff;
}

.zmtv2-report-output {
  border: 1px solid var(--zmtv2-line);
  border-radius: 8px;
  background: var(--zmtv2-surface-soft);
  padding: 16px;
  min-height: 300px;
}

.zmtv2-empty-report {
  min-height: 260px;
  border: 1px dashed var(--zmtv2-line-strong);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff, #f8fafb);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.45fr);
  gap: 20px;
  align-items: center;
  padding: 28px;
}

.zmtv2-empty-report h3 {
  margin: 8px 0 0;
  color: var(--zmtv2-ink);
  font-size: 24px;
  line-height: 1.3;
  font-weight: 950;
}

.zmtv2-empty-report p {
  margin: 10px 0 0;
  color: var(--zmtv2-muted);
  line-height: 1.75;
}

.zmtv2-empty-report ul {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
  list-style: none;
}

.zmtv2-empty-report li {
  border: 1px solid var(--zmtv2-line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  color: var(--zmtv2-ink);
  font-weight: 850;
}

.zmtv2-generating {
  min-height: 240px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  text-align: center;
}

.zmtv2-generating span {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  border: 4px solid #e8eef0;
  border-top-color: var(--zmtv2-rose);
  animation: zmtv2-spin 0.9s linear infinite;
}

.zmtv2-generating strong {
  color: var(--zmtv2-ink);
  font-size: 20px;
  font-weight: 950;
}

.zmtv2-generating p {
  margin: 0;
  color: var(--zmtv2-muted);
}

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

.zmtv2-report-cover {
  border: 1px solid #efcfc9;
  border-radius: 8px;
  background:
    linear-gradient(135deg, #fff8f6, #ffffff 56%),
    linear-gradient(90deg, rgba(223, 75, 66, 0.12), rgba(16, 138, 131, 0.08));
  padding: 20px;
  margin-bottom: 14px;
}

.zmtv2-report-cover span,
.zmtv2-report-cover strong,
.zmtv2-report-cover p {
  display: block;
}

.zmtv2-report-cover span {
  color: var(--zmtv2-rose);
  font-size: 12px;
  font-weight: 950;
}

.zmtv2-report-cover strong {
  margin-top: 6px;
  color: var(--zmtv2-ink);
  font-size: 25px;
  line-height: 1.25;
  font-weight: 950;
}

.zmtv2-report-cover p {
  margin: 8px 0 0;
  color: var(--zmtv2-muted);
  line-height: 1.7;
}

.zmtv2-sample-cover {
  position: relative;
  border-color: #d8e8e7;
  background:
    linear-gradient(135deg, #f3fbfa, #fff 58%),
    linear-gradient(90deg, rgba(16, 138, 131, 0.12), rgba(223, 75, 66, 0.08));
}

.zmtv2-sample-cover::after {
  content: "内容样品";
  position: absolute;
  top: 16px;
  right: 16px;
  border: 1px solid rgba(16, 138, 131, 0.22);
  border-radius: 7px;
  background: #eef8f7;
  color: #0e746f;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 950;
}

.zmtv2-score-deck {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.zmtv2-score-deck article {
  border: 1px solid var(--zmtv2-line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px;
  gap: 10px;
  align-items: center;
}

.zmtv2-score-deck span {
  display: block;
  color: var(--zmtv2-muted);
  font-size: 13px;
  font-weight: 900;
}

.zmtv2-score-deck strong {
  display: block;
  color: var(--zmtv2-ink);
  font-size: 29px;
  line-height: 1;
  font-weight: 950;
}

.zmtv2-score-deck i {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, #fff 0 57%, transparent 58%),
    conic-gradient(var(--zmtv2-teal) var(--score), #e8eef0 0);
}

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

.zmtv2-report-card {
  border: 1px solid var(--zmtv2-line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  min-width: 0;
}

.zmtv2-report-card.is-hero,
.zmtv2-report-card.is-matrix,
.zmtv2-report-card.is-timeline,
.zmtv2-report-card.is-copy {
  grid-column: 1 / -1;
}

.zmtv2-report-card.is-hero {
  border-color: rgba(16, 138, 131, 0.32);
  background: linear-gradient(135deg, #f2fbfa, #fff);
}

.zmtv2-report-card.is-risk {
  border-color: #efd8b5;
  background: #fffaf0;
}

.zmtv2-report-card h3 {
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf2f3;
  color: var(--zmtv2-ink);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 950;
}

.zmtv2-report-card p {
  margin: 0 0 10px;
  color: var(--zmtv2-muted);
  line-height: 1.75;
}

.zmtv2-report-card p:last-child {
  margin-bottom: 0;
}

.zmtv2-report-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--zmtv2-muted);
  line-height: 1.8;
}

.zmtv2-report-card li {
  margin-bottom: 4px;
}

.zmtv2-report-card.is-matrix ul,
.zmtv2-report-card.is-copy ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  padding-left: 0;
  list-style: none;
}

.zmtv2-report-card.is-matrix li,
.zmtv2-report-card.is-copy li {
  border: 1px solid var(--zmtv2-line);
  border-radius: 8px;
  background: var(--zmtv2-surface-soft);
  padding: 10px;
}

.zmtv2-report-card.is-timeline li {
  position: relative;
  padding-left: 14px;
}

.zmtv2-report-card.is-timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--zmtv2-rose);
}

.zmtm-structured-cover div {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.zmtm-structured-cover b {
  min-height: 28px;
  border: 1px solid rgba(16, 138, 131, 0.24);
  border-radius: 7px;
  background: rgba(16, 138, 131, 0.08);
  color: #0f766e;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 950;
}

.zmtm-deliverable {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.zmtm-plan-section {
  border: 1px solid var(--zmtv2-line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  min-width: 0;
}

.zmtm-plan-section.is-wide {
  grid-column: 1 / -1;
}

.zmtm-section-head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-bottom: 14px;
}

.zmtm-section-head span {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #102136;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 950;
}

.zmtm-section-head h3 {
  margin: 0;
  color: var(--zmtv2-ink);
  font-size: 19px;
  line-height: 1.28;
  font-weight: 950;
}

.zmtm-section-head p {
  grid-column: 2;
  margin: 5px 0 0;
  color: var(--zmtv2-muted);
  font-size: 13px;
  line-height: 1.6;
}

.zmtm-plan-section h4 {
  margin: 16px 0 8px;
  color: var(--zmtv2-ink);
  font-size: 14px;
  font-weight: 950;
}

.zmtm-plan-section h4:first-of-type {
  margin-top: 0;
}

.zmtm-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.zmtm-plan-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

.zmtm-plan-table.is-roles,
.zmtm-plan-table.is-calendar {
  min-width: 1680px;
}

.zmtm-plan-table.is-blueprint,
.zmtm-plan-table.is-theme {
  min-width: 1120px;
}

.zmtm-plan-table.is-evidence,
.zmtm-plan-table.is-pillars {
  min-width: 1080px;
}

.zmtm-plan-table.is-priority {
  min-width: 2120px;
}

.zmtm-plan-table.is-calendar {
  min-width: 2240px;
}

.zmtm-plan-table th,
.zmtm-plan-table td {
  border-bottom: 1px solid #e5ecef;
  padding: 11px 10px;
  text-align: left;
  vertical-align: top;
  font-size: 13px;
  line-height: 1.55;
}

.zmtm-plan-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f5f8fa;
  color: #566575;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.zmtm-plan-table td {
  color: var(--zmtv2-ink);
  overflow-wrap: anywhere;
}

.zmtm-plan-table tbody tr:nth-child(even) td {
  background: #fbfdfe;
}

.zmtm-plan-table tbody tr:hover td {
  background: #f2f8f8;
}

.zmtm-plan-table td:first-child,
.zmtm-plan-table th:first-child {
  border-left: 3px solid #102136;
  font-weight: 950;
}

.zmtm-plan-table.is-calendar td:nth-child(7) {
  min-width: 220px;
  color: #172026;
  font-weight: 950;
}

.zmtm-plan-table.is-calendar td:first-child,
.zmtm-plan-table.is-calendar th:first-child {
  white-space: nowrap;
}

.zmtm-plan-table.is-assumptions th:first-child,
.zmtm-plan-table.is-assumptions td:first-child {
  border-left-color: #b45309;
}

.zmtm-plan-table.is-blueprint th:first-child,
.zmtm-plan-table.is-blueprint td:first-child,
.zmtm-plan-table.is-theme th:first-child,
.zmtm-plan-table.is-theme td:first-child {
  border-left-color: #0f766e;
}

.zmtm-plan-table.is-evidence th:first-child,
.zmtm-plan-table.is-evidence td:first-child,
.zmtm-plan-table.is-pillars th:first-child,
.zmtm-plan-table.is-pillars td:first-child,
.zmtm-plan-table.is-priority th:first-child,
.zmtm-plan-table.is-priority td:first-child {
  border-left-color: #0f766e;
}

.zmtm-plan-table.is-roles th:first-child,
.zmtm-plan-table.is-roles td:first-child,
.zmtm-plan-table.is-calendar th:first-child,
.zmtm-plan-table.is-calendar td:first-child {
  border-left-color: #4f46e5;
}

.zmtm-plan-table.is-sop th:first-child,
.zmtm-plan-table.is-sop td:first-child,
.zmtm-plan-table.is-review th:first-child,
.zmtm-plan-table.is-review td:first-child,
.zmtm-plan-table.is-actions th:first-child,
.zmtm-plan-table.is-actions td:first-child {
  border-left-color: #475569;
}

.zmtm-deliverable.is-report-v2 {
  display: block;
}

.zmtm-report-band {
  padding: 28px 0;
  border-top: 1px solid #dfe8eb;
}

.zmtm-report-band:first-child {
  border-top: 0;
  padding-top: 8px;
}

.zmtm-report-band-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-bottom: 18px;
}

.zmtm-report-band-head > span {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #102136;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.zmtm-report-band.is-evidence .zmtm-report-band-head > span { background: #0f766e; }
.zmtm-report-band.is-topics .zmtm-report-band-head > span { background: #c8554d; }
.zmtm-report-band.is-path .zmtm-report-band-head > span { background: #4f46e5; }
.zmtm-report-band.is-calendar .zmtm-report-band-head > span { background: #a16207; }

.zmtm-report-band h3,
.zmtm-report-band p,
.zmtm-report-band h4 {
  margin: 0;
}

.zmtm-report-band h3 {
  color: var(--zmtv2-ink);
  font-size: 21px;
  line-height: 1.25;
  font-weight: 950;
  text-wrap: balance;
}

.zmtm-report-band-head p {
  margin-top: 5px;
  color: var(--zmtv2-muted);
  font-size: 13px;
  line-height: 1.65;
  text-wrap: pretty;
}

.zmtm-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.zmtm-chip-row span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border: 1px solid #cde4df;
  border-radius: 6px;
  background: #f2fbf9;
  color: #17635e;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.35;
}

.zmtm-chip-row.is-muted span {
  border-color: #dce5eb;
  background: #f7fafb;
  color: #506271;
}

.zmtm-evidence-grid,
.zmtm-pillar-grid,
.zmtm-theme-grid,
.zmtm-role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.zmtm-evidence-item,
.zmtm-pillar-card,
.zmtm-theme-grid article,
.zmtm-role-grid article,
.zmtm-topic-card,
.zmtm-calendar-list article,
.zmtm-operation-list article,
.zmtm-review-list article,
.zmtm-next-actions li {
  min-width: 0;
  border: 1px solid #dce6e9;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 33, 54, 0.04), 0 8px 18px rgba(16, 33, 54, 0.04);
}

.zmtm-evidence-item {
  padding: 14px;
}

.zmtm-evidence-item > span,
.zmtm-pillar-card > span,
.zmtm-role-grid header > span,
.zmtm-operation-list span,
.zmtm-next-actions > li > span {
  color: #0f766e;
  font-size: 11px;
  font-weight: 950;
}

.zmtm-evidence-item strong {
  display: block;
  margin-top: 7px;
  color: var(--zmtv2-ink);
  font-size: 14px;
  line-height: 1.5;
}

.zmtm-evidence-item p,
.zmtm-pillar-card p,
.zmtm-role-grid p,
.zmtm-topic-card > p,
.zmtm-theme-grid p,
.zmtm-calendar-list article > p,
.zmtm-operation-list p,
.zmtm-next-actions p {
  margin-top: 8px;
  color: var(--zmtv2-muted);
  font-size: 13px;
  line-height: 1.65;
  text-wrap: pretty;
}

.zmtm-evidence-item small,
.zmtm-role-grid small,
.zmtm-next-actions small {
  display: block;
  margin-top: 10px;
  color: #566575;
  font-size: 12px;
  line-height: 1.55;
}

.zmtm-assumption-list {
  margin-top: 12px;
  border-left: 3px solid #d97706;
  padding: 4px 0 4px 12px;
}

.zmtm-assumption-list > b {
  color: #9a5a08;
  font-size: 13px;
}

.zmtm-assumption-list ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 9px 0 0;
  padding: 0;
  list-style: none;
}

.zmtm-assumption-list li {
  min-width: 0;
  color: #687786;
  font-size: 12px;
  line-height: 1.55;
}

.zmtm-assumption-list li strong,
.zmtm-assumption-list li span,
.zmtm-assumption-list li small {
  display: block;
}

.zmtm-assumption-list li strong { color: #354451; }
.zmtm-assumption-list li small { margin-top: 3px; color: #8a6232; }

.zmtm-pillar-card,
.zmtm-role-grid article,
.zmtm-theme-grid article {
  padding: 16px;
  transition-property: border-color, box-shadow, transform;
  transition-duration: 160ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.zmtm-pillar-card:hover,
.zmtm-role-grid article:hover,
.zmtm-theme-grid article:hover {
  border-color: #9ecfc6;
  box-shadow: 0 2px 4px rgba(16, 33, 54, 0.05), 0 14px 28px rgba(16, 33, 54, 0.08);
  transform: translateY(-2px);
}

.zmtm-pillar-card h4,
.zmtm-role-grid h4,
.zmtm-theme-grid b,
.zmtm-topic-card h4,
.zmtm-calendar-list h4,
.zmtm-path-list h4 {
  margin-top: 7px;
  color: var(--zmtv2-ink);
  font-size: 16px;
  line-height: 1.35;
  font-weight: 950;
  text-wrap: balance;
}

.zmtm-pillar-card dl,
.zmtm-role-grid dl {
  margin: 13px 0 0;
}

.zmtm-pillar-card dt,
.zmtm-role-grid dt {
  color: #70808d;
  font-size: 11px;
  font-weight: 850;
}

.zmtm-pillar-card dd,
.zmtm-role-grid dd {
  margin: 4px 0 0;
  color: #3c4c58;
  font-size: 12px;
  line-height: 1.55;
}

.zmtm-pillar-card .zmtm-chip-row {
  margin-top: 13px;
}

.zmtm-topic-list {
  display: grid;
  gap: 9px;
}

.zmtm-topic-card {
  padding: 14px 16px;
}

.zmtm-topic-card header,
.zmtm-calendar-list article header,
.zmtm-role-grid header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.zmtm-topic-card header > span,
.zmtm-calendar-list article header > b {
  flex: 0 0 auto;
  color: #4f46e5;
  font-size: 12px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.zmtm-topic-card header > b {
  min-width: 44px;
  min-height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #102136;
  color: #fff;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.zmtm-topic-card header h4 {
  flex: 1 1 auto;
  margin: 0;
}

.zmtm-topic-meta { margin-top: 10px; }

.zmtm-topic-card footer,
.zmtm-calendar-list article footer {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  margin-top: 12px;
  border-top: 1px solid #edf1f3;
  padding-top: 10px;
  color: #627381;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.zmtm-path-list {
  display: grid;
  gap: 0;
}

.zmtm-path-list article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  padding: 0 0 16px;
  position: relative;
}

.zmtm-path-list article::before {
  content: "";
  position: absolute;
  top: 40px;
  bottom: 0;
  left: 20px;
  width: 1px;
  background: #cbd9de;
}

.zmtm-path-list article:last-child { padding-bottom: 0; }
.zmtm-path-list article:last-child::before { display: none; }

.zmtm-path-list article > span {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 12px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.zmtm-path-list b {
  color: #4f46e5;
  font-size: 12px;
  font-weight: 950;
}

.zmtm-path-list h4 { margin-top: 4px; }
.zmtm-path-list p { margin-top: 6px; color: #5c6d7b; font-size: 13px; line-height: 1.65; }
.zmtm-path-list small { display: block; margin-top: 7px; color: #8795a1; font-size: 12px; }

.zmtm-theme-grid article { min-height: 154px; }
.zmtm-theme-grid article > span { display: block; margin-top: 8px; color: #c8554d; font-size: 12px; font-weight: 900; }
.zmtm-theme-grid small { display: block; margin-top: 12px; color: #71808d; font-size: 12px; line-height: 1.55; }

.zmtm-role-grid header > b { color: #102136; font-size: 14px; font-weight: 950; }
.zmtm-role-grid dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }

.zmtm-calendar-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.zmtm-calendar-list > li {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.zmtm-calendar-list > li > span {
  min-height: 34px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fdf4e4;
  color: #a16207;
  padding: 4px;
  font-size: 11px;
  font-weight: 950;
  text-align: center;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}

.zmtm-calendar-list article { padding: 14px 16px; }
.zmtm-calendar-list article header > div { min-width: 0; }
.zmtm-calendar-list h4 { margin: 8px 0 0; }

.zmtm-operation-list,
.zmtm-review-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.zmtm-operation-list article,
.zmtm-review-list article { padding: 13px; }
.zmtm-operation-list p { margin-bottom: 0; }
.zmtm-review-list b { display: block; color: #102136; font-size: 14px; font-weight: 950; }
.zmtm-review-list span { display: block; margin-top: 6px; color: #526371; font-size: 13px; line-height: 1.55; }
.zmtm-review-list small { display: block; margin-top: 8px; color: #8996a1; font-size: 11px; line-height: 1.55; }

.zmtm-next-actions {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.zmtm-next-actions li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  padding: 13px;
}

.zmtm-next-actions > li > span {
  color: #c8554d;
}

.zmtm-next-actions b { color: #102136; font-size: 14px; font-weight: 950; }
.zmtm-next-actions p { margin-top: 4px; }

.zmtm-recovery-notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  margin: 14px 0 4px;
  border-left: 3px solid #d97706;
  background: #fff8ec;
  color: #8a5a13;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.6;
}

.zmtm-recovery-notice strong { color: #9a5a08; }

@media (max-width: 900px) {
  .zmtm-evidence-grid,
  .zmtm-pillar-grid,
  .zmtm-theme-grid,
  .zmtm-role-grid,
  .zmtm-operation-list,
  .zmtm-review-list,
  .zmtm-assumption-list ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .zmtm-role-grid dl { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .zmtm-report-band { padding: 22px 0; }
  .zmtm-report-band-head { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; }
  .zmtm-report-band-head > span { width: 36px; height: 36px; }
  .zmtm-report-band h3 { font-size: 18px; }

  .zmtm-evidence-grid,
  .zmtm-pillar-grid,
  .zmtm-theme-grid,
  .zmtm-role-grid,
  .zmtm-operation-list,
  .zmtm-review-list,
  .zmtm-assumption-list ul {
    grid-template-columns: 1fr;
  }

  .zmtm-topic-card,
  .zmtm-calendar-list article { padding: 13px; }

  .zmtm-calendar-list > li { grid-template-columns: 1fr; gap: 7px; }
  .zmtm-calendar-list > li > span { width: fit-content; min-width: 54px; }
  .zmtm-next-actions li { grid-template-columns: 1fr; gap: 6px; }
  .zmtm-recovery-notice { grid-template-columns: 1fr; }
}

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

.zmtm-topic-card,
.zmtm-schedule-card {
  border: 1px solid var(--zmtv2-line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, #fff, #f8fbfc);
  padding: 14px;
  min-width: 0;
}

.zmtm-topic-card > div,
.zmtm-schedule-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.zmtm-topic-card span,
.zmtm-schedule-card span,
.zmtm-topic-card b,
.zmtm-schedule-card b {
  min-height: 24px;
  border-radius: 7px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
}

.zmtm-topic-card span,
.zmtm-schedule-card span {
  background: #102136;
  color: #fff;
}

.zmtm-topic-card b,
.zmtm-schedule-card b {
  background: #eef8f7;
  color: #0f766e;
  max-width: 58%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zmtm-topic-card h4,
.zmtm-schedule-card h4 {
  margin: 0;
  color: var(--zmtv2-ink);
  font-size: 15px;
  line-height: 1.45;
  font-weight: 950;
}

.zmtm-topic-card p {
  margin: 8px 0 0;
  min-height: 42px;
  color: var(--zmtv2-muted);
  font-size: 13px;
  line-height: 1.62;
}

.zmtm-topic-card dl,
.zmtm-schedule-card dl {
  margin: 12px 0 0;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 7px 8px;
}

.zmtm-topic-card dt,
.zmtm-topic-card dd,
.zmtm-schedule-card dt,
.zmtm-schedule-card dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.45;
}

.zmtm-topic-card dt,
.zmtm-schedule-card dt {
  color: #758392;
  font-weight: 900;
}

.zmtm-topic-card dd,
.zmtm-schedule-card dd {
  color: var(--zmtv2-ink);
  font-weight: 800;
}

.zmtm-topic-card small {
  display: block;
  margin-top: 10px;
  border-top: 1px dashed #dbe5e8;
  padding-top: 9px;
  color: #627181;
  font-size: 12px;
  line-height: 1.55;
}

.zmtm-action-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  list-style: none;
}

.zmtm-action-list li {
  border: 1px solid var(--zmtv2-line);
  border-radius: 8px;
  background: var(--zmtv2-surface-soft);
  padding: 10px;
  color: var(--zmtv2-ink);
  font-size: 13px;
  line-height: 1.6;
}

.zmtm-empty-block {
  border: 1px dashed #ccd8dd;
  border-radius: 8px;
  background: #fbfcfd;
  padding: 14px;
  color: var(--zmtv2-muted);
  font-size: 13px;
  line-height: 1.6;
}

.zmtp-target-grid {
  align-items: stretch;
}

.zmtp-checkbox {
  border: 1px solid var(--zmtv2-line);
  border-radius: 8px;
  background: var(--zmtv2-surface-soft);
  padding: 13px;
  grid-template-columns: 22px minmax(0, 1fr);
  align-content: start;
}

.zmtp-checkbox input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--zmtv2-rose);
  grid-row: span 2;
}

.zmtp-checkbox span {
  color: var(--zmtv2-ink);
  font-size: 14px;
  font-weight: 950;
  line-height: 1.35;
}

.zmtp-checkbox small {
  grid-column: 2;
}

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

.zmtp-result-list article {
  border: 1px solid var(--zmtv2-line);
  border-radius: 8px;
  background: #fff;
  padding: 15px;
  display: grid;
  gap: 11px;
  min-width: 0;
}

.zmtp-result-list article.is-failed {
  border-color: #efd8b5;
  background: #fffaf0;
}

.zmtp-result-list article > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.zmtp-result-list b,
.zmtp-result-list span {
  min-height: 26px;
  border-radius: 7px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.zmtp-result-list b {
  background: #eef8f7;
  color: #0e746f;
}

.zmtp-result-list span {
  background: #fff1ef;
  color: #a43b33;
}

.zmtp-result-list h3 {
  margin: 0;
  color: var(--zmtv2-ink);
  font-size: 17px;
  line-height: 1.4;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.zmtp-result-list p {
  margin: 0;
  color: var(--zmtv2-muted);
  font-size: 13px;
  line-height: 1.7;
}

.zmtp-result-list dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.zmtp-result-list dt,
.zmtp-result-list dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.zmtp-result-list dt {
  color: var(--zmtv2-muted);
  font-size: 12px;
  font-weight: 900;
}

.zmtp-result-list dd {
  color: var(--zmtv2-ink);
  font-size: 13px;
  font-weight: 850;
}

.zmtp-result-list ul {
  margin: 0;
  padding-left: 18px;
  color: var(--zmtv2-muted);
  font-size: 13px;
  line-height: 1.7;
}

.zmtp-parser-workspace {
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
}

.zmtp-parser-input textarea[data-parser-field="links_text"] {
  min-height: 210px;
}

.zmtp-advanced,
.zmtp-json-preview,
.zmtp-report-optional {
  border: 1px solid var(--zmtv2-line);
  border-radius: 8px;
  background: #fff;
}

.zmtp-advanced {
  margin-top: 14px;
}

.zmtp-advanced summary,
.zmtp-json-preview summary,
.zmtp-report-optional > summary {
  min-height: 44px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--zmtv2-ink);
  font-size: 14px;
  font-weight: 950;
  cursor: pointer;
}

.zmtp-advanced .zmtv2-field-grid {
  border-top: 1px solid var(--zmtv2-line);
  padding: 14px;
}

.zmtp-advanced em {
  color: var(--zmtv2-muted);
  font-style: normal;
  font-size: 12px;
  font-weight: 850;
}

.zmtp-table-card {
  border: 1px solid var(--zmtv2-line);
  border-radius: 8px;
  background: #fff;
  padding: 15px;
  margin-top: 12px;
}

.zmtp-table-card h3 {
  margin: 0 0 12px;
  color: var(--zmtv2-ink);
  font-size: 17px;
  font-weight: 950;
}

.zmtp-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.zmtp-parser-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
}

.zmtp-parser-table th,
.zmtp-parser-table td {
  border-bottom: 1px solid #e7edee;
  padding: 11px;
  text-align: left;
  vertical-align: top;
  font-size: 13px;
  line-height: 1.55;
}

.zmtp-parser-table th {
  background: var(--zmtv2-surface-soft);
  color: var(--zmtv2-muted);
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.zmtp-parser-table td {
  color: var(--zmtv2-ink);
  overflow-wrap: anywhere;
}

.zmtp-json-preview {
  margin-top: 12px;
  background: var(--zmtv2-surface-soft);
}

.zmtp-json-preview pre {
  margin: 0;
  border-top: 1px solid var(--zmtv2-line);
  padding: 14px;
  max-height: 360px;
  overflow: auto;
  color: var(--zmtv2-ink);
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.zmtp-report-optional {
  margin-top: 14px;
  box-shadow: var(--zmtv2-shadow-soft);
}

.zmtp-report-optional > summary {
  min-height: 62px;
  background: var(--zmtv2-surface-soft);
}

.zmtp-report-optional > summary span,
.zmtp-report-optional > summary b {
  display: block;
}

.zmtp-report-optional > summary span {
  color: var(--zmtv2-rose);
  font-size: 12px;
  font-weight: 950;
}

.zmtp-report-optional > summary b {
  color: var(--zmtv2-ink);
  font-size: 15px;
  line-height: 1.35;
}

.zmtp-report-optional .zmtv2-report-shell {
  border: 0;
  border-top: 1px solid var(--zmtv2-line);
  border-radius: 0 0 8px 8px;
  box-shadow: none;
}

.zmtp-parser-report .zmtv2-report-card:nth-child(1),
.zmtp-parser-report .zmtv2-report-card:nth-child(2),
.zmtp-parser-report .zmtv2-report-card:nth-child(10) {
  grid-column: 1 / -1;
}

@media (max-width: 1100px) {
  .zmtv2-command,
  .zmtv2-workspace,
  .zmtp-parser-workspace {
    grid-template-columns: 1fr;
  }

  .zmtv2-command-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .zmtv2-cockpit {
    position: static;
  }
}

@media (max-width: 820px) {
  .zmt-agent-v2 {
    max-width: none;
  }

  .zmtv2-command,
  .zmtv2-input-panel,
  .zmtv2-cockpit,
  .zmtv2-report-shell {
    padding: 16px;
  }

  .zmtv2-command h1 {
    font-size: 27px;
  }

  .zmtv2-command-panel,
  .zmtv2-stepbar,
  .zmtv2-fill-guide,
  .zmtv2-field-grid,
  .zmtv2-score-deck,
  .zmtv2-report-grid,
  .zmtm-deliverable,
  .zmtm-topic-grid,
  .zmtm-schedule-grid,
  .zmtp-result-list,
  .zmtv2-empty-report,
  .zmtv2-report-card.is-matrix ul,
  .zmtv2-report-card.is-copy ul {
    grid-template-columns: 1fr;
  }

  .zmtv2-stepbar {
    position: static;
  }

  .zmtv2-stepbar button {
    min-height: 58px;
  }

  .zmtv2-cockpit-top,
  .zmtv2-report-toolbar {
    grid-template-columns: 1fr;
    display: grid;
  }

  .zmtv2-ring {
    margin: 0 auto;
  }

  .zmtv2-wide,
  .zmtv2-report-card.is-hero,
  .zmtv2-report-card.is-matrix,
  .zmtv2-report-card.is-timeline,
  .zmtv2-report-card.is-copy,
  .zmtm-plan-section.is-wide,
  .zmtp-parser-report .zmtv2-report-card:nth-child(1),
  .zmtp-parser-report .zmtv2-report-card:nth-child(2),
  .zmtp-parser-report .zmtv2-report-card:nth-child(10) {
    grid-column: auto;
  }

  .zmtm-section-head {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .zmtm-section-head span {
    width: 30px;
    height: 30px;
  }

  .zmtm-section-head h3 {
    font-size: 17px;
  }

  .zmtv2-button,
  .zmtv2-report-actions {
    width: 100%;
  }

  .zmtv2-panel-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .zmtv2-panel-actions > span {
    margin-right: 0;
    max-width: none;
  }

  .zmtv2-sample-cover {
    padding-top: 50px;
  }
}

/* Agent hub v5: two-column workbench with night/day themes. */
.zmt-agent-hub.zmtx-workbench.zmt-agent-v5 {
  --v5-bg: #03070a;
  --v5-bg-2: #11151d;
  --v5-panel: rgba(5, 18, 24, 0.98);
  --v5-panel-2: rgba(8, 26, 34, 0.95);
  --v5-panel-3: rgba(15, 42, 45, 0.96);
  --v5-input: rgba(10, 29, 38, 0.95);
  --v5-text: #ffffff;
  --v5-muted: #b4c9cb;
  --v5-muted-2: #8fa4a8;
  --v5-line: rgba(67, 224, 212, 0.44);
  --v5-line-soft: rgba(169, 218, 224, 0.24);
  --v5-glass-line: rgba(255, 255, 255, 0.08);
  --v5-shadow: 0 28px 76px rgba(0, 0, 0, 0.42);
  --v5-shadow-soft: 0 18px 46px rgba(0, 0, 0, 0.3);
  --v5-accent: #43e0d4;
  --v5-blue: #65d5ff;
  --v5-gold: #ffd166;
  --v5-purple: #c79cff;
  --v5-orange: #ff9b5f;
  --v5-pink: #ff7298;
  --v5-success: #6ff2bf;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 22px;
  position: relative;
  overflow: hidden;
  color: var(--v5-text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 8% 2%, rgba(22, 224, 196, 0.18), transparent 28%),
    radial-gradient(circle at 70% 12%, rgba(60, 116, 190, 0.1), transparent 30%),
    radial-gradient(circle at 85% 55%, rgba(217, 154, 56, 0.12), transparent 34%),
    linear-gradient(180deg, var(--v5-bg), var(--v5-bg-2));
  border-radius: 0;
  isolation: isolate;
}

.zmt-agent-hub.zmtx-workbench.zmt-agent-v5[data-theme="day"] {
  --v5-bg: #f7fbfc;
  --v5-bg-2: #eaf3f5;
  --v5-panel: rgba(255, 255, 255, 0.92);
  --v5-panel-2: rgba(247, 251, 252, 0.94);
  --v5-panel-3: rgba(234, 248, 246, 0.95);
  --v5-input: rgba(243, 249, 250, 0.98);
  --v5-text: #13262c;
  --v5-muted: #627a80;
  --v5-muted-2: #8ba1a6;
  --v5-line: rgba(15, 174, 158, 0.26);
  --v5-line-soft: rgba(109, 138, 146, 0.18);
  --v5-glass-line: rgba(255, 255, 255, 0.82);
  --v5-shadow: 0 24px 58px rgba(106, 135, 144, 0.2);
  --v5-shadow-soft: 0 12px 30px rgba(106, 135, 144, 0.14);
  --v5-accent: #0fae9e;
  --v5-blue: #2b86c7;
  --v5-gold: #c89222;
  --v5-purple: #7d5ac8;
  --v5-orange: #d66f2f;
  --v5-pink: #d94d78;
  --v5-success: #1f9b6d;
  background:
    radial-gradient(circle at 8% 2%, rgba(15, 174, 158, 0.12), transparent 28%),
    radial-gradient(circle at 68% 12%, rgba(77, 140, 255, 0.08), transparent 30%),
    radial-gradient(circle at 86% 55%, rgba(240, 185, 78, 0.1), transparent 34%),
    linear-gradient(180deg, var(--v5-bg), var(--v5-bg-2));
}

.zmt-agent-v5 *,
.zmt-agent-v5 *::before,
.zmt-agent-v5 *::after {
  box-sizing: border-box;
  letter-spacing: 0;
}

.zmt-agent-v5::before {
  content: "";
  position: absolute;
  inset: 250px 0 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--v5-line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--v5-line-soft) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
  opacity: 0.7;
}

.zmt-agent-v5 a,
.zmt-agent-v5 button,
.zmt-agent-v5 input {
  font: inherit;
}

.zmt-agent-v5 a {
  color: inherit;
  text-decoration: none;
}

.zmt-agent-v5 button {
  border: 0;
  cursor: pointer;
}

.zmt-hub-v5-icon-svg {
  width: 1em;
  height: 1em;
  display: block;
}

.zmt-hub-v5-top,
.zmt-hub-v5-sidebar,
.zmt-hub-v5-agent-panel,
.zmt-hub-v5-workspace,
.zmt-hub-v5-member-alert {
  border: 1px solid var(--v5-line);
  background: var(--v5-panel);
  box-shadow: var(--v5-shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  position: relative;
  overflow: hidden;
}

.zmt-hub-v5-top::before,
.zmt-hub-v5-sidebar::before,
.zmt-hub-v5-agent-panel::before,
.zmt-hub-v5-workspace::before,
.zmt-hub-v5-member-alert::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(135deg, var(--v5-glass-line), transparent 34%),
    linear-gradient(315deg, color-mix(in srgb, var(--v5-accent) 18%, transparent), transparent 42%);
  opacity: 0.72;
}

.zmt-hub-v5-top {
  border-radius: 12px;
  padding: 14px;
  min-height: 232px;
  animation: zmtHubV5Rise 0.34s ease-out both;
}

.zmt-hub-v5-top-inner {
  min-height: 200px;
  border: 1px solid var(--v5-line-soft);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 48%),
    var(--v5-panel-2);
  padding: 18px 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
  grid-template-areas:
    "brand stats"
    "actions stats"
    "orbit stats";
  gap: 14px 22px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.zmt-agent-v5[data-theme="day"] .zmt-hub-v5-top-inner {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(247, 251, 252, 0.86)),
    var(--v5-panel-2);
}

.zmt-hub-v5-top-inner::after {
  content: "";
  position: absolute;
  left: 44%;
  top: 34%;
  width: 320px;
  height: 80px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(67, 224, 212, 0.18), transparent);
  transform: skewX(-18deg);
  animation: zmtHubV5Scan 6.5s ease-in-out infinite;
}

.zmt-agent-v5[data-theme="day"] .zmt-hub-v5-top-inner::after {
  opacity: 0.28;
}

.zmt-hub-v5-brand {
  grid-area: brand;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.zmt-hub-v5-logo {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  display: grid;
  place-items: center;
  color: var(--v5-text);
  border: 1px solid var(--v5-line);
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.18), transparent 28%),
    var(--v5-panel-2);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 34px rgba(67, 224, 212, 0.18);
  font-size: 34px;
}

.zmt-hub-v5-brand h1 {
  margin: 4px 0 8px;
  color: var(--v5-text);
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.05;
  font-weight: 950;
}

.zmt-hub-v5-brand p,
.zmt-hub-v5-panel-head p,
.zmt-hub-v5-workspace-head p,
.zmt-hub-v5-section-title p,
.zmt-hub-v5-subtitle p,
.zmt-hub-v5-extension p,
.zmt-hub-v5-member-alert p {
  margin: 0;
  color: var(--v5-muted);
  font-size: 13px;
  line-height: 1.65;
}

.zmt-hub-v5-brand p {
  max-width: 720px;
  font-size: 14px;
}

.zmt-hub-v5-top-actions {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.zmt-hub-v5-top-actions a,
.zmt-hub-v5-top-actions button,
.zmt-hub-v5-head-pills span,
.zmt-hub-v5-workspace-actions a,
.zmt-hub-v5-workspace-actions button,
.zmt-hub-v5-extension button {
  min-height: 34px;
  border: 1px solid var(--v5-line-soft);
  border-radius: 999px;
  background: var(--v5-panel-2);
  color: var(--v5-muted);
  padding: 0 16px;
  font-size: 12px;
  font-weight: 850;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.zmt-hub-v5-top-actions a:hover,
.zmt-hub-v5-top-actions button:hover,
.zmt-hub-v5-workspace-actions a:hover,
.zmt-hub-v5-workspace-actions button:hover,
.zmt-hub-v5-extension button:hover {
  transform: translateY(-1px);
  border-color: var(--v5-accent);
  color: var(--v5-text);
}

.zmt-hub-v5-top-actions a.is-preview,
.zmt-hub-v5-top-actions button.is-active,
.zmt-hub-v5-workspace-actions a,
.zmt-hub-v5-extension button.is-active {
  border-color: var(--v5-accent);
  background: color-mix(in srgb, var(--v5-accent) 14%, var(--v5-panel-2));
  color: var(--v5-text);
  box-shadow: 0 0 26px color-mix(in srgb, var(--v5-accent) 20%, transparent);
}

.zmt-hub-v5-workspace-actions [aria-disabled="true"],
.zmt-hub-v5-workspace-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.zmt-hub-v5-stage-orbit {
  grid-area: orbit;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  position: relative;
  z-index: 1;
}

.zmt-hub-v5-stage-orbit button {
  width: 52px;
  color: var(--v5-muted);
  background: transparent;
  padding: 0;
  display: grid;
  justify-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 850;
  position: relative;
}

.zmt-hub-v5-stage-orbit button + button::before {
  content: "";
  position: absolute;
  top: 18px;
  right: calc(100% + 2px);
  width: 22px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--stage-color));
  opacity: 0.8;
}

.zmt-hub-v5-stage-orbit i {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--stage-color);
  background: var(--v5-panel-2);
  box-shadow: 0 0 22px color-mix(in srgb, var(--stage-color) 28%, transparent);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.zmt-hub-v5-stage-orbit button:hover i,
.zmt-hub-v5-stage-orbit button.is-active i {
  transform: scale(1.08);
  box-shadow: 0 0 32px color-mix(in srgb, var(--stage-color) 42%, transparent);
}

.zmt-hub-v5-member-stats {
  grid-area: stats;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  position: relative;
  z-index: 1;
}

.zmt-hub-v5-member-stats article {
  min-height: 66px;
  border: 1px solid var(--v5-line-soft);
  border-radius: 9px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), transparent 36%),
    var(--v5-panel-2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    var(--v5-shadow-soft);
  padding: 12px 14px;
}

.zmt-hub-v5-member-stats span,
.zmt-hub-v5-project-card span {
  display: block;
  color: var(--v5-muted);
  font-size: 11px;
  font-weight: 850;
}

.zmt-hub-v5-member-stats strong {
  display: block;
  margin-top: 4px;
  color: var(--v5-text);
  font-size: 22px;
  line-height: 1.05;
  font-weight: 950;
}

.zmt-hub-v5-member-stats article:first-child strong,
.zmt-hub-v5-project-card span {
  color: var(--v5-gold);
}

.zmt-hub-v5-member-stats small {
  display: block;
  margin-top: 4px;
  color: var(--v5-muted-2);
  font-size: 10px;
}

.zmt-hub-v5-member-alert {
  margin-top: 14px;
  border-radius: 10px;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.zmt-hub-v5-member-alert strong {
  color: var(--v5-text);
  font-size: 15px;
}

.zmt-hub-v5-member-alert a {
  min-height: 36px;
  border-radius: 999px;
  background: var(--v5-accent);
  color: #06201d;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  font-weight: 900;
  white-space: nowrap;
}

.zmt-hub-v5-layout {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.zmt-hub-v5-sidebar {
  border-radius: 12px;
  padding: 22px 16px;
  min-height: 1680px;
  position: sticky;
  top: 24px;
  animation: zmtHubV5Rise 0.36s 0.04s ease-out both;
}

.zmt-hub-v5-main {
  display: grid;
  gap: 22px;
  min-width: 0;
  animation: zmtHubV5Rise 0.36s 0.08s ease-out both;
}

.zmt-hub-v5-side-block {
  display: grid;
  gap: 18px;
}

.zmt-hub-v5-side-block + .zmt-hub-v5-side-block {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--v5-line-soft);
}

.zmt-hub-v5-section-title h2,
.zmt-hub-v5-panel-head h2,
.zmt-hub-v5-workspace-head h2,
.zmt-hub-v5-subtitle h3,
.zmt-hub-v5-input-card h3,
.zmt-hub-v5-output-card h3,
.zmt-hub-v5-chain h3,
.zmt-hub-v5-deliverables h3,
.zmt-hub-v5-extension h3 {
  margin: 0;
  color: var(--v5-text);
  line-height: 1.2;
  font-weight: 950;
}

.zmt-hub-v5-section-title h2 {
  font-size: 21px;
}

.zmt-hub-v5-category-list {
  display: grid;
  gap: 12px;
}

.zmt-hub-v5-category,
.zmt-hub-v5-agent-card,
.zmt-hub-v5-feature-grid button,
.zmt-hub-v5-quick-grid a,
.zmt-hub-v5-quick-grid button,
.zmt-hub-v5-project-card,
.zmt-hub-v5-status-card,
.zmt-hub-v5-input-card,
.zmt-hub-v5-output-card,
.zmt-hub-v5-chain,
.zmt-hub-v5-deliverables article,
.zmt-hub-v5-extension {
  border: 1px solid var(--v5-line-soft);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), transparent 34%),
    linear-gradient(315deg, color-mix(in srgb, var(--stage-color, var(--v5-accent)) 6%, transparent), transparent 54%),
    var(--v5-panel-2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    var(--v5-shadow-soft);
  border-radius: 10px;
}

.zmt-hub-v5-category,
.zmt-hub-v5-agent-card {
  position: relative;
  min-height: 70px;
  width: 100%;
  color: var(--v5-muted);
  padding: 14px 16px;
  text-align: left;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 40px;
  gap: 12px;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.zmt-hub-v5-category::before,
.zmt-hub-v5-agent-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: var(--stage-color);
  transform: scaleY(0);
  transition: transform 0.2s ease;
  z-index: 1;
}

.zmt-hub-v5-category::after,
.zmt-hub-v5-agent-card::after,
.zmt-hub-v5-feature-grid button::after,
.zmt-hub-v5-quick-grid a::after,
.zmt-hub-v5-quick-grid button::after,
.zmt-hub-v5-deliverables article::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 42%, color-mix(in srgb, var(--stage-color, var(--v5-accent)) 20%, transparent) 48%, transparent 56%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 26%);
  opacity: 0;
  transform: translateX(-18%);
  transition: opacity 0.24s ease, transform 0.24s ease;
  z-index: 1;
}

.zmt-hub-v5-category > *,
.zmt-hub-v5-agent-card > *,
.zmt-hub-v5-feature-grid button > *,
.zmt-hub-v5-quick-grid a > *,
.zmt-hub-v5-quick-grid button > *,
.zmt-hub-v5-deliverables article > * {
  position: relative;
  z-index: 2;
}

.zmt-hub-v5-category:hover,
.zmt-hub-v5-category.is-active,
.zmt-hub-v5-agent-card:hover,
.zmt-hub-v5-agent-card.is-active {
  transform: translateY(-2px);
  border-color: var(--stage-color);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), transparent 32%),
    color-mix(in srgb, var(--stage-color) 14%, var(--v5-panel-2));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 22px 48px color-mix(in srgb, var(--stage-color) 16%, rgba(0, 0, 0, 0.22));
}

.zmt-hub-v5-category.is-active::before,
.zmt-hub-v5-agent-card.is-active::before {
  transform: scaleY(1);
}

.zmt-hub-v5-category:hover::after,
.zmt-hub-v5-category.is-active::after,
.zmt-hub-v5-agent-card:hover::after,
.zmt-hub-v5-agent-card.is-active::after,
.zmt-hub-v5-feature-grid button:hover::after,
.zmt-hub-v5-feature-grid button.is-active::after,
.zmt-hub-v5-quick-grid a:hover::after,
.zmt-hub-v5-quick-grid button:hover::after,
.zmt-hub-v5-deliverables article:hover::after {
  opacity: 0.42;
  transform: translateX(18%);
}

.zmt-hub-v5-category-icon,
.zmt-hub-v5-agent-icon,
.zmt-hub-v5-head-icon {
  display: grid;
  place-items: center;
  color: var(--stage-color, var(--v5-accent));
  font-size: 22px;
}

.zmt-hub-v5-category-icon,
.zmt-hub-v5-agent-icon {
  width: 36px;
  height: 36px;
  border: 1px solid color-mix(in srgb, var(--stage-color, var(--v5-accent)) 38%, transparent);
  border-radius: 9px;
  background:
    radial-gradient(circle at 35% 22%, color-mix(in srgb, var(--stage-color, var(--v5-accent)) 28%, transparent), transparent 45%),
    color-mix(in srgb, var(--stage-color, var(--v5-accent)) 11%, var(--v5-panel));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 2;
}

.zmt-hub-v5-category strong,
.zmt-hub-v5-agent-card strong {
  display: block;
  color: var(--v5-text);
  font-size: 14px;
  line-height: 1.25;
  font-weight: 950;
}

.zmt-hub-v5-category strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zmt-hub-v5-agent-card strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.zmt-hub-v5-category small,
.zmt-hub-v5-agent-card small,
.zmt-hub-v5-feature-grid small {
  display: block;
  margin-top: 5px;
  color: var(--v5-muted);
  font-size: 11px;
  line-height: 1.45;
}

.zmt-hub-v5-category em,
.zmt-hub-v5-agent-state {
  min-width: 38px;
  min-height: 24px;
  border: 1px solid color-mix(in srgb, var(--stage-color) 48%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--stage-color) 18%, transparent);
  color: var(--stage-color);
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.zmt-hub-v5-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.zmt-hub-v5-quick-grid a,
.zmt-hub-v5-quick-grid button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 72px;
  color: var(--v5-muted);
  padding: 12px 10px;
  display: grid;
  place-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 850;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.zmt-hub-v5-quick-grid svg {
  width: 24px;
  height: 24px;
  color: var(--v5-accent);
}

.zmt-hub-v5-quick-grid a:nth-child(1) svg { color: var(--v5-teal); }
.zmt-hub-v5-quick-grid button:nth-child(3) svg,
.zmt-hub-v5-quick-grid button:nth-child(4) svg { color: var(--v5-gold); }
.zmt-hub-v5-quick-grid button:nth-child(5) svg { color: var(--v5-pink); }
.zmt-hub-v5-quick-grid button:nth-child(6) svg { color: var(--v5-blue); }
.zmt-hub-v5-quick-grid button:nth-child(7) svg { color: var(--v5-orange); }

.zmt-hub-v5-quick-grid a:hover,
.zmt-hub-v5-quick-grid button:hover {
  transform: translateY(-2px);
  border-color: var(--v5-accent);
  color: var(--v5-text);
}

.zmt-hub-v5-project-card {
  margin-top: 28px;
  border-color: color-mix(in srgb, var(--v5-gold) 48%, transparent);
  background: color-mix(in srgb, var(--v5-gold) 8%, var(--v5-panel-2));
  padding: 20px 18px;
}

.zmt-hub-v5-project-card h3 {
  margin: 10px 0 14px;
  color: var(--v5-text);
  font-size: 15px;
  line-height: 1.45;
}

.zmt-hub-v5-project-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--v5-muted);
  font-size: 12px;
  line-height: 1.9;
}

.zmt-hub-v5-status-card {
  margin-top: 230px;
  min-height: 78px;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px;
}

.zmt-hub-v5-status-card svg {
  color: var(--v5-accent);
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
}

.zmt-hub-v5-status-card strong {
  display: block;
  color: var(--v5-text);
  font-size: 14px;
}

.zmt-hub-v5-status-card p {
  margin: 4px 0 0;
  color: var(--v5-muted);
  font-size: 11px;
  line-height: 1.45;
}

.zmt-hub-v5-agent-panel,
.zmt-hub-v5-workspace {
  border-radius: 12px;
  padding: 24px;
}

.zmt-hub-v5-panel-head,
.zmt-hub-v5-workspace-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--v5-line-soft);
}

.zmt-hub-v5-panel-head > div:first-child,
.zmt-hub-v5-workspace-head > div:first-child {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  column-gap: 14px;
  align-items: start;
}

.zmt-hub-v5-panel-head h2,
.zmt-hub-v5-workspace-head h2 {
  font-size: 28px;
}

.zmt-hub-v5-panel-head p,
.zmt-hub-v5-workspace-head p {
  grid-column: 2;
  max-width: 680px;
}

.zmt-hub-v5-head-pills,
.zmt-hub-v5-workspace-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.zmt-hub-v5-agent-list {
  padding-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 20px;
}

.zmt-hub-v5-agent-list[hidden] {
  display: none;
}

.zmt-hub-v5-agent-card {
  min-height: 104px;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: start;
  padding-top: 16px;
  padding-bottom: 16px;
}

.zmt-hub-v5-agent-copy {
  min-width: 0;
}

.zmt-hub-v5-agent-card small {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.zmt-hub-v5-agent-tags {
  grid-column: 2 / 4;
  margin-top: -2px;
  color: var(--stage-color);
  font-size: 10px;
  font-weight: 850;
  opacity: 0.9;
  position: relative;
  z-index: 2;
}

.zmt-hub-v5-workspace {
  min-height: 1510px;
  position: relative;
  overflow: hidden;
}

.zmt-hub-v5-workspace::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 220px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--v5-bg-2) 76%, transparent));
}

.zmt-hub-v5-workspace > * {
  position: relative;
  z-index: 1;
}

.zmt-hub-v5-feature-area,
.zmt-hub-v5-input-output,
.zmt-hub-v5-chain,
.zmt-hub-v5-deliverables,
.zmt-hub-v5-extension {
  margin-top: 28px;
}

.zmt-hub-v5-subtitle {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

.zmt-hub-v5-feature-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.zmt-hub-v5-feature-grid button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 78px;
  text-align: left;
  color: var(--v5-text);
  padding: 15px 14px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.zmt-hub-v5-feature-grid button svg {
  width: 26px;
  height: 26px;
  color: var(--v5-accent);
}

.zmt-hub-v5-feature-grid button:nth-child(2) svg { color: var(--v5-blue); }
.zmt-hub-v5-feature-grid button:nth-child(3) svg { color: var(--v5-gold); }
.zmt-hub-v5-feature-grid button:nth-child(4) svg { color: var(--v5-purple); }
.zmt-hub-v5-feature-grid button:nth-child(5) svg { color: var(--v5-orange); }

.zmt-hub-v5-feature-grid strong,
.zmt-hub-v5-feature-grid small {
  grid-column: 2;
}

.zmt-hub-v5-feature-grid button:hover,
.zmt-hub-v5-feature-grid button.is-active {
  transform: translateY(-2px);
  border-color: var(--v5-accent);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 34%),
    color-mix(in srgb, var(--v5-accent) 11%, var(--v5-panel-2));
}

.zmt-hub-v5-input-output {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  gap: 32px;
}

.zmt-hub-v5-input-card,
.zmt-hub-v5-output-card {
  padding: 22px;
}

.zmt-hub-v5-input-card h3,
.zmt-hub-v5-output-card h3 {
  margin-bottom: 18px;
  font-size: 20px;
}

.zmt-hub-v5-input-card label {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.zmt-hub-v5-input-card label:first-of-type {
  margin-top: 0;
}

.zmt-hub-v5-input-card span {
  color: var(--v5-muted);
  font-size: 11px;
  font-weight: 850;
}

.zmt-hub-v5-input-card input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--v5-line-soft);
  border-radius: 8px;
  background: var(--v5-input);
  color: var(--v5-text);
  padding: 0 16px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.zmt-hub-v5-input-card input:focus {
  border-color: var(--v5-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--v5-accent) 14%, transparent);
}

.zmt-hub-v5-output-card {
  display: grid;
  gap: 12px;
}

.zmt-hub-v5-output-card article {
  min-height: 78px;
  border: 1px solid var(--v5-line-soft);
  border-radius: 9px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), transparent 30%),
    var(--v5-panel-2);
  padding: 14px 16px 14px 20px;
  position: relative;
  overflow: hidden;
}

.zmt-hub-v5-output-card article i {
  position: absolute;
  left: 0;
  top: 15px;
  bottom: 15px;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: var(--v5-accent);
}

.zmt-hub-v5-output-card article:nth-of-type(2) i { background: var(--v5-blue); }
.zmt-hub-v5-output-card article:nth-of-type(3) i { background: var(--v5-gold); }
.zmt-hub-v5-output-card article:nth-of-type(4) i { background: var(--v5-purple); }

.zmt-hub-v5-output-card strong {
  color: var(--v5-accent);
  font-size: 14px;
  font-weight: 950;
}

.zmt-hub-v5-output-card article:nth-of-type(2) strong { color: var(--v5-blue); }
.zmt-hub-v5-output-card article:nth-of-type(3) strong { color: var(--v5-gold); }
.zmt-hub-v5-output-card article:nth-of-type(4) strong { color: var(--v5-purple); }

.zmt-hub-v5-output-card p {
  margin: 7px 0 0;
  color: var(--v5-muted);
  font-size: 12px;
  line-height: 1.65;
}

.zmt-hub-v5-chain {
  padding: 22px;
}

.zmt-hub-v5-chain h3,
.zmt-hub-v5-deliverables h3 {
  margin-bottom: 18px;
  font-size: 20px;
}

.zmt-hub-v5-chain > div {
  min-height: 126px;
  border: 1px solid var(--v5-line-soft);
  border-radius: 10px;
  background: var(--v5-panel-2);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  gap: 0;
  padding: 20px 26px;
}

.zmt-hub-v5-chain span {
  display: grid;
  justify-items: center;
  gap: 10px;
  color: var(--v5-muted);
  position: relative;
}

.zmt-hub-v5-chain span + span::before {
  content: "";
  position: absolute;
  top: 24px;
  right: calc(50% + 36px);
  width: calc(100% - 72px);
  height: 2px;
  background: linear-gradient(90deg, var(--v5-accent), var(--v5-blue));
}

.zmt-hub-v5-chain span:nth-child(3)::before { background: linear-gradient(90deg, var(--v5-blue), var(--v5-gold)); }
.zmt-hub-v5-chain span:nth-child(4)::before { background: linear-gradient(90deg, var(--v5-gold), var(--v5-purple)); }
.zmt-hub-v5-chain span:nth-child(5)::before { background: linear-gradient(90deg, var(--v5-purple), var(--v5-orange)); }

.zmt-hub-v5-chain svg {
  width: 54px;
  height: 54px;
  border: 2px solid currentColor;
  border-radius: 999px;
  padding: 14px;
  color: var(--v5-accent);
  background: var(--v5-panel);
  box-shadow: 0 0 28px color-mix(in srgb, var(--v5-accent) 18%, transparent);
}

.zmt-hub-v5-chain span:nth-child(2) svg { color: var(--v5-blue); }
.zmt-hub-v5-chain span:nth-child(3) svg { color: var(--v5-gold); }
.zmt-hub-v5-chain span:nth-child(4) svg { color: var(--v5-purple); }
.zmt-hub-v5-chain span:nth-child(5) svg { color: var(--v5-orange); }

.zmt-hub-v5-chain em {
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.zmt-hub-v5-deliverables > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
}

.zmt-hub-v5-deliverables article {
  min-height: 88px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  column-gap: 16px;
  align-items: start;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.zmt-hub-v5-deliverables svg {
  width: 28px;
  height: 28px;
  color: var(--v5-accent);
}

.zmt-hub-v5-deliverables article:nth-child(2) svg { color: var(--v5-blue); }
.zmt-hub-v5-deliverables article:nth-child(3) svg { color: var(--v5-gold); }
.zmt-hub-v5-deliverables article:nth-child(4) svg { color: var(--v5-purple); }

.zmt-hub-v5-deliverables strong {
  color: var(--v5-text);
  font-size: 14px;
  font-weight: 950;
}

.zmt-hub-v5-deliverables p {
  grid-column: 2;
  margin: 5px 0 0;
  color: var(--v5-muted);
  font-size: 12px;
  line-height: 1.65;
}

.zmt-hub-v5-extension {
  min-height: 178px;
  border-color: color-mix(in srgb, var(--v5-gold) 46%, transparent);
  background: color-mix(in srgb, var(--v5-gold) 7%, var(--v5-panel-2));
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.zmt-hub-v5-extension h3 {
  color: var(--v5-gold);
  font-size: 17px;
}

.zmt-hub-v5-extension p {
  margin-top: 12px;
  max-width: 740px;
}

.zmt-hub-v5-extension div div {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.zmt-hub-v5-wave {
  width: 240px;
  height: 54px;
  flex: 0 0 240px;
  opacity: 0.9;
  background:
    radial-gradient(circle at 8px 27px, var(--v5-accent) 2px, transparent 3px),
    repeating-linear-gradient(90deg, transparent 0 10px, color-mix(in srgb, var(--v5-accent) 65%, transparent) 10px 12px, transparent 12px 20px);
  mask-image: radial-gradient(ellipse at center, #000 45%, transparent 74%);
  animation: zmtHubV5Wave 2.6s ease-in-out infinite;
}

.zmt-agent-v5.is-running .zmt-hub-v5-chain svg {
  animation: zmtHubV5Pulse 1.25s ease-in-out infinite;
}

.zmt-agent-v5.is-running .zmt-hub-v5-output-card article {
  animation: zmtHubV5Output 0.46s ease-out both;
}

.zmt-agent-v5.is-running .zmt-hub-v5-output-card article:nth-of-type(2) { animation-delay: 0.08s; }
.zmt-agent-v5.is-running .zmt-hub-v5-output-card article:nth-of-type(3) { animation-delay: 0.16s; }
.zmt-agent-v5.is-running .zmt-hub-v5-output-card article:nth-of-type(4) { animation-delay: 0.24s; }

@keyframes zmtHubV5Rise {
  from { opacity: 0.98; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes zmtHubV5Scan {
  0%, 42% { transform: translateX(-280px) skewX(-18deg); opacity: 0; }
  58% { opacity: 1; }
  100% { transform: translateX(460px) skewX(-18deg); opacity: 0; }
}

@keyframes zmtHubV5Wave {
  0%, 100% { transform: scaleY(0.78); opacity: 0.66; }
  50% { transform: scaleY(1.12); opacity: 1; }
}

@keyframes zmtHubV5Pulse {
  0%, 100% { box-shadow: 0 0 22px color-mix(in srgb, currentColor 18%, transparent); }
  50% { box-shadow: 0 0 42px color-mix(in srgb, currentColor 42%, transparent); }
}

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

@media (max-width: 1180px) {
  .zmt-agent-hub.zmtx-workbench.zmt-agent-v5 {
    padding: 16px;
  }

  .zmt-hub-v5-top-inner {
    grid-template-columns: 1fr;
    grid-template-areas: "brand" "actions" "orbit" "stats";
  }

  .zmt-hub-v5-member-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .zmt-hub-v5-layout {
    grid-template-columns: 1fr;
  }

  .zmt-hub-v5-sidebar {
    position: static;
    min-height: auto;
  }

  .zmt-hub-v5-category-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .zmt-hub-v5-status-card {
    margin-top: 28px;
  }
}

@media (max-width: 900px) {
  .zmtm-method-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .zmt-hub-v5-agent-list,
  .zmt-hub-v5-feature-grid,
  .zmt-hub-v5-input-output,
  .zmt-hub-v5-deliverables > div {
    grid-template-columns: 1fr;
  }

  .zmt-hub-v5-chain > div {
    grid-template-columns: 1fr;
    gap: 18px;
    justify-items: start;
  }

  .zmt-hub-v5-chain span {
    grid-template-columns: 54px minmax(0, 1fr);
    justify-items: start;
    align-items: center;
  }

  .zmt-hub-v5-chain span + span::before {
    display: none;
  }

  .zmt-hub-v5-stage-orbit {
    justify-content: center;
    flex-wrap: wrap;
    overflow: visible;
    gap: 14px 12px;
    padding-bottom: 0;
  }

  .zmt-hub-v5-stage-orbit button + button::before {
    display: none;
  }
}

@media (max-width: 640px) {
  .zmtm-guide summary,
  .zmtm-guide article {
    padding-left: 14px;
    padding-right: 14px;
  }

  .zmtm-method-grid {
    grid-template-columns: 1fr;
  }

  .zmtm-manual-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }

  .zmtm-manual-head,
  .zmtm-manual-foot {
    align-items: flex-start;
    padding-left: 14px;
    padding-right: 14px;
  }

  .zmtm-manual-head h2 {
    font-size: 21px;
  }

  .zmtm-manual-body {
    padding: 14px;
  }

  .zmtm-manual-intro,
  .zmtm-manual-section {
    padding: 13px;
  }

  .zmtm-manual-reading-grid {
    grid-template-columns: 1fr;
  }

  .zmtm-manual-foot {
    display: grid;
    gap: 10px;
  }

  .zmtm-manual-foot .zmtv2-button {
    width: 100%;
  }

  .zmt-agent-hub.zmtx-workbench.zmt-agent-v5 {
    width: 100%;
    padding: 10px;
  }

  .zmt-hub-v5-brand {
    display: grid;
  }

  .zmt-hub-v5-brand h1 {
    font-size: 30px;
    line-height: 1.12;
  }

  .zmt-hub-v5-top-inner {
    padding: 16px;
  }

  .zmt-hub-v5-stage-orbit {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-items: center;
    width: 100%;
  }

  .zmt-hub-v5-stage-orbit button {
    width: 100%;
  }

  .zmt-hub-v5-member-stats,
  .zmt-hub-v5-category-list,
  .zmt-hub-v5-quick-grid {
    grid-template-columns: 1fr;
  }

  .zmt-hub-v5-panel-head,
  .zmt-hub-v5-workspace-head,
  .zmt-hub-v5-extension,
  .zmt-hub-v5-subtitle {
    display: grid;
  }

  .zmt-hub-v5-panel-head > div:first-child,
  .zmt-hub-v5-workspace-head > div:first-child {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .zmt-hub-v5-panel-head h2,
  .zmt-hub-v5-workspace-head h2 {
    font-size: 23px;
  }

  .zmt-hub-v5-wave {
    width: 100%;
    flex-basis: auto;
  }
}

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