:root {
  color-scheme: light;
  --bg: #f7f8f7;
  --surface: #ffffff;
  --surface-soft: #fbfcfb;
  --surface-green: #edf7f1;
  --line: #dfe6e2;
  --line-strong: #cfd9d4;
  --text: #0c1512;
  --muted: #65726c;
  --faint: #8d9893;
  --green: #1f7a50;
  --green-strong: #17633f;
  --green-soft: #e8f5ee;
  --blue: #1e7abd;
  --amber: #a76316;
  --red: #b42318;
  --shadow-sm: 0 8px 22px rgba(15, 28, 23, 0.06);
  --shadow-md: 0 22px 60px rgba(15, 28, 23, 0.09);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --max-page: 1480px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

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

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

button {
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.material-symbols-rounded {
  font-family: "Material Symbols Rounded";
  font-size: 18px;
  line-height: 1;
  font-weight: normal;
  font-style: normal;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.site-frame {
  min-height: 100vh;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: var(--text);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.brand strong {
  color: var(--green);
}

.primary-button,
.secondary-button,
.danger-button,
.link-button,
.nav-links button,
.console-sidebar button,
.topbar-tools button,
.panel-head button,
.oauth-row button,
.auth-switch button,
.label-row button,
.resend button {
  cursor: pointer;
}

.primary-button,
.secondary-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border-radius: var(--radius-sm);
  padding: 0 22px;
  font-size: 14px;
  font-weight: 700;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.primary-button {
  background: linear-gradient(180deg, #25845a, var(--green-strong));
  color: #fff;
  box-shadow: 0 12px 24px rgba(31, 122, 80, 0.18);
}

.secondary-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

.danger-button {
  background: var(--red);
  color: #fff;
}

.primary-button:hover,
.secondary-button:hover,
.danger-button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.primary-button.compact,
.secondary-button.compact,
.danger-button.compact {
  min-height: 38px;
  padding-inline: 16px;
  font-size: 13px;
}

.wide {
  width: 100%;
}

.link-button {
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.site-nav {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  width: min(calc(100% - 28px), var(--max-page));
  min-height: 76px;
  margin: 14px auto 0;
  border: 1px solid rgba(223, 230, 226, 0.85);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
  padding: 0 34px;
  backdrop-filter: blur(18px);
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 38px;
}

.nav-links button {
  background: transparent;
  color: #2f3a36;
  font-size: 13px;
  font-weight: 600;
}

.nav-links button:hover,
.link-button:hover {
  color: var(--green);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.hero-section {
  display: grid;
  justify-items: center;
  gap: 22px;
  width: min(calc(100% - 40px), 980px);
  margin: 92px auto 56px;
  text-align: center;
}

.quiet-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #b7ddc8;
  border-radius: 999px;
  background: #eef8f2;
  color: var(--green-strong);
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
}

.hero-section h1 {
  max-width: 820px;
  margin: 0;
  color: #07120f;
  font-size: clamp(44px, 5.2vw, 78px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0;
}

.hero-section h1 span {
  color: var(--green);
}

.hero-section p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 2px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 34px;
  margin-top: 18px;
  color: #46524d;
  font-size: 13px;
  font-weight: 600;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-row .material-symbols-rounded {
  color: var(--green);
}

.landing-preview {
  display: grid;
  grid-template-columns: minmax(290px, 0.38fr) minmax(460px, 0.62fr);
  gap: 18px;
  width: min(calc(100% - 44px), 1100px);
  margin: 0 auto 72px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-md);
  padding: 20px;
}

.preview-chat,
.preview-deployment,
.deployment-card,
.assistant-panel,
.deployment-panel,
.auth-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}

.preview-chat {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 16px;
}

.mini-panel-head,
.panel-head,
.card-title-row,
.deployment-head,
.console-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mini-panel-head strong,
.panel-head strong {
  display: block;
  font-size: 14px;
}

.mini-panel-head small,
.panel-head small {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.online-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22a261;
}

.preview-message {
  max-width: 260px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 14px;
  color: #2c3733;
  font-size: 13px;
  line-height: 1.45;
}

.preview-message small {
  display: block;
  margin-top: 8px;
  color: var(--faint);
  font-size: 11px;
}

.preview-message.user {
  justify-self: end;
  border-color: transparent;
  background: var(--green);
  color: #fff;
}

.preview-message.user small {
  color: rgba(255, 255, 255, 0.8);
}

.preview-composer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  color: var(--faint);
  font-size: 13px;
}

.preview-composer .material-symbols-rounded {
  color: var(--green);
}

.preview-deployment {
  display: grid;
  gap: 18px;
  padding: 20px;
}

.deploying-pill,
.live-pill,
.stage-badge,
.artifact-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.deploying-pill {
  background: var(--green-soft);
  color: var(--green-strong);
  padding: 7px 12px;
}

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

.progress-card > div:first-child,
.progress-card small {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.progress-card strong {
  color: var(--text);
}

.progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf0ee;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.preview-pipeline,
.stage-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.preview-pipeline li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: start;
}

.preview-pipeline b {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
}

.preview-pipeline .complete b,
.preview-pipeline .active b {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.preview-pipeline strong {
  font-size: 14px;
}

.preview-pipeline span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.preview-pipeline .active span {
  color: var(--blue);
}

.preview-pipeline small {
  grid-column: 2 / -1;
  color: var(--muted);
  font-size: 12px;
}

.auth-view {
  min-height: 100vh;
  padding: 18px;
  background: #f6f8f7;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.38fr) minmax(360px, 0.62fr);
  width: min(1040px, 100%);
  min-height: min(760px, calc(100vh - 36px));
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.auth-rail {
  position: relative;
  display: grid;
  align-content: start;
  gap: 28px;
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(6, 22, 20, 0.25), rgba(6, 22, 20, 0.1)),
    url("./assets/auth-network.png") center / cover;
  color: #fff;
  padding: 72px 64px;
}

.auth-rail .brand {
  color: #fff;
  font-size: 34px;
}

.auth-rail .brand strong {
  color: #63dd99;
}

.auth-rail p {
  max-width: 250px;
  margin: 0;
  font-size: 20px;
  line-height: 1.45;
}

.auth-rail ul {
  display: grid;
  gap: 18px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.auth-rail li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 600;
}

.auth-rail .material-symbols-rounded {
  color: #63dd99;
}

.auth-main {
  display: grid;
  place-items: center;
  padding: 46px;
}

.auth-alert {
  width: min(100%, 430px);
  margin-bottom: 18px;
  border: 1px solid #b7ddc8;
  border-radius: var(--radius-sm);
  background: #eef8f2;
  color: var(--green-strong);
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.auth-alert.error {
  border-color: #f0b8b3;
  background: #fff2f0;
  color: var(--red);
}

.auth-card {
  display: none;
  width: min(100%, 430px);
  border: 0;
  padding: 0;
}

.auth-card.active {
  display: grid;
  gap: 20px;
}

.auth-heading {
  display: grid;
  gap: 6px;
  margin-bottom: 4px;
}

.auth-heading h2 {
  margin: 0;
  color: #101917;
  font-size: 26px;
  line-height: 1.2;
}

.auth-heading p,
.auth-switch,
.resend {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: #2f3d38;
  font-size: 13px;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  outline: none;
}

input,
select {
  min-height: 44px;
  padding: 0 13px;
}

textarea {
  min-height: 118px;
  resize: vertical;
  padding: 12px 13px;
}

input::placeholder,
textarea::placeholder {
  color: #9aa5a0;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(31, 122, 80, 0.12);
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.label-row button,
.auth-switch button,
.resend button {
  background: transparent;
  color: var(--green);
  padding: 0;
  font-size: inherit;
  font-weight: 800;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--faint);
  font-size: 12px;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

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

.oauth-row button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  font-weight: 700;
}

.auth-switch {
  text-align: center;
}

.password-rules {
  display: grid;
  gap: 6px;
  margin: -6px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 12px;
}

.password-rules li::before {
  content: "✓";
  color: var(--green);
  margin-right: 8px;
}

.verify-card {
  justify-items: center;
  text-align: center;
}

.verify-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 86px;
  height: 72px;
  border-radius: 14px;
  background: linear-gradient(135deg, #bfeccc, #3e9967);
  color: #fff;
}

.verify-icon .material-symbols-rounded:first-child {
  font-size: 38px;
}

.verify-icon .lock {
  position: absolute;
  right: -10px;
  bottom: -10px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 4px solid #fff;
  border-radius: 12px;
  background: #1b6a45;
  font-size: 20px;
}

.code-row {
  display: grid;
  grid-template-columns: repeat(6, 46px);
  gap: 12px;
  justify-content: center;
}

.code-row input {
  min-height: 58px;
  padding: 0;
  text-align: center;
  font-size: 24px;
  font-weight: 600;
}

.console-view {
  min-height: 100vh;
  background: #f6f8f7;
}

.console-shell {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  min-height: 100vh;
}

.console-sidebar {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 28px;
  border-right: 1px solid var(--line);
  background: #fff;
  padding: 28px 20px;
}

.console-sidebar nav,
.sidebar-bottom {
  display: grid;
  align-content: start;
  gap: 8px;
}

.console-sidebar button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: #40504a;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
}

.console-sidebar button.active,
.console-sidebar button:hover {
  background: var(--green-soft);
  color: var(--green-strong);
}

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

.console-topbar {
  min-height: 72px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 0 28px;
}

.console-topbar select {
  width: 180px;
}

.topbar-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-tools button,
.panel-head button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: transparent;
  color: #31413b;
}

.topbar-tools button:hover,
.panel-head button:hover {
  background: var(--green-soft);
  color: var(--green);
}

.avatar-button {
  background: var(--green) !important;
  color: #fff !important;
  font-size: 12px;
  font-weight: 800;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.34fr) minmax(520px, 0.66fr);
  gap: 20px;
  padding: 24px;
}

.assistant-panel {
  display: grid;
  grid-template-rows: auto auto minmax(320px, 1fr) auto;
  min-height: calc(100vh - 120px);
  overflow: hidden;
}

.panel-head {
  min-height: 74px;
  border-bottom: 1px solid var(--line);
  padding: 0 18px;
}

.compact-strip {
  display: grid;
  gap: 0;
  border-bottom: 1px solid var(--line);
}

.compact-strip div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 18px;
}

.compact-strip span,
.metric span,
.result-main span,
.result-grid span,
.artifact-row span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.compact-strip strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.compact-strip small {
  grid-column: 2;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}

.chat-log {
  display: grid;
  align-content: start;
  gap: 14px;
  overflow: auto;
  padding: 18px;
}

.message {
  display: grid;
  gap: 7px;
  max-width: 88%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 13px 14px;
}

.message.user {
  justify-self: end;
  border-color: transparent;
  background: var(--green);
  color: #fff;
}

.message strong {
  font-size: 12px;
}

.message p {
  margin: 0;
  line-height: 1.48;
  font-size: 13px;
}

.composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 16px;
}

.composer button {
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--green);
  color: #fff;
}

.deployment-panel {
  min-width: 0;
  min-height: calc(100vh - 120px);
  overflow: hidden;
}

.deployment-head {
  min-height: 86px;
  border-bottom: 1px solid var(--line);
  padding: 18px 24px;
}

.deployment-head h1 {
  margin: 0 0 5px;
  font-size: 20px;
  line-height: 1.25;
}

.deployment-head a {
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
}

.deployment-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.live-pill {
  min-height: 28px;
  background: var(--green-soft);
  color: var(--green-strong);
  padding: 0 10px;
}

.tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding: 0 24px;
  background: #fff;
}

.tab {
  min-height: 54px;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 0;
  font-size: 13px;
  font-weight: 800;
}

.tab.active {
  border-color: var(--green);
  color: var(--green-strong);
}

.tab-panel {
  display: none;
  min-height: 0;
  overflow: auto;
  padding: 20px;
}

.tab-panel.active {
  display: grid;
  gap: 18px;
}

.deployment-card {
  padding: 20px;
}

.card-title-row {
  margin-bottom: 18px;
}

.card-title-row h2,
.tool-panel h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.card-title-row p {
  max-width: 680px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.artifact-count {
  min-height: 30px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  padding: 0 12px;
}

.deploy-form {
  display: grid;
  gap: 16px;
}

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

.github-field {
  display: none;
}

body[data-source-type="github"] .file-picker {
  display: none;
}

body[data-source-type="github"] .github-field {
  display: grid;
}

.runtime-row {
  display: grid;
  grid-template-columns: auto auto minmax(220px, 1fr);
  gap: 14px;
  align-items: end;
}

.check-control {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 0 13px;
  white-space: nowrap;
}

.check-control input {
  width: auto;
  min-height: 0;
  padding: 0;
}

.deploy-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.result-panel {
  display: grid;
  gap: 16px;
}

.result-main {
  display: grid;
  gap: 6px;
}

.result-main strong {
  overflow-wrap: anywhere;
  font-size: 24px;
}

.result-main small {
  color: var(--muted);
  line-height: 1.4;
}

.result-grid div {
  display: grid;
  gap: 7px;
  min-height: 74px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.result-grid strong,
.artifact-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.artifact-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.3fr) minmax(0, 1fr);
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 9px;
}

.flow-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(300px, 0.58fr);
  gap: 18px;
}

.stage-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 12px;
}

.stage-item.active {
  border-color: rgba(31, 122, 80, 0.36);
  box-shadow: var(--shadow-sm);
}

.dot {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.done .dot {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.running .dot,
.waiting .dot {
  border-color: var(--amber);
  background: #fff7ed;
  color: var(--amber);
}

.failed .dot {
  border-color: var(--red);
  background: #fff1f0;
  color: var(--red);
}

.stage-title {
  min-width: 0;
}

.stage-title strong,
.stage-title span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stage-title strong {
  font-size: 14px;
}

.stage-title span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.stage-badge {
  background: #f3f5f4;
  color: var(--muted);
  padding: 6px 9px;
}

.stage-detail,
.secret-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 16px;
}

.stage-detail h3,
.secret-card h3 {
  margin: 5px 0 12px;
}

.stage-detail dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.stage-detail dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.stage-detail dd {
  margin: 3px 0 0;
  line-height: 1.45;
}

.secret-card {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 13px;
}

th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.event-table-wrap,
.pod-table,
.audit-log,
.submitted-list {
  overflow: auto;
}

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

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

.metric {
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 16px;
}

.metric strong {
  display: block;
  margin-top: 10px;
  font-size: 24px;
}

.metric small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.35;
}

.tool-panel {
  display: grid;
  gap: 14px;
}

.log-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

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

.log-row span {
  color: var(--muted);
  font-size: 12px;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

@media (max-width: 1180px) {
  .landing-preview,
  .workspace-grid {
    grid-template-columns: 1fr;
  }

  .assistant-panel,
  .deployment-panel {
    min-height: auto;
  }

  .console-shell {
    grid-template-columns: 210px minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .site-nav {
    grid-template-columns: auto auto;
    padding-inline: 18px;
  }

  .nav-links {
    display: none;
  }

  .auth-shell,
  .console-shell {
    grid-template-columns: 1fr;
  }

  .auth-rail {
    min-height: 320px;
    padding: 42px;
  }

  .console-sidebar {
    position: sticky;
    top: 0;
    z-index: 10;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto;
    align-items: center;
    padding: 14px;
  }

  .console-sidebar nav {
    display: flex;
    overflow-x: auto;
  }

  .sidebar-bottom {
    display: none;
  }

  .workspace-grid,
  .tab-panel {
    padding: 14px;
  }

  .form-grid,
  .source-grid,
  .result-grid,
  .flow-grid,
  .health-grid,
  .admin-grid,
  .support-grid,
  .runtime-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-nav {
    min-height: 66px;
  }

  .nav-actions .link-button {
    display: none;
  }

  .brand {
    font-size: 21px;
  }

  .hero-section {
    margin-top: 58px;
  }

  .hero-section h1 {
    font-size: 42px;
  }

  .hero-section p {
    font-size: 16px;
  }

  .trust-row {
    justify-content: flex-start;
    gap: 16px;
    text-align: left;
  }

  .landing-preview,
  .auth-view {
    padding: 12px;
  }

  .auth-main {
    padding: 32px 20px;
  }

  .auth-rail {
    padding: 32px 24px;
  }

  .code-row {
    grid-template-columns: repeat(6, minmax(34px, 44px));
    gap: 7px;
  }

  .code-row input {
    min-height: 52px;
    font-size: 20px;
  }

  .deployment-head,
  .console-topbar,
  .card-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .tabs {
    gap: 16px;
    overflow-x: auto;
  }

  .stage-item {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .stage-badge {
    grid-column: 2;
    justify-self: start;
  }
}
