:root {
  color-scheme: light;
  --bg: #f3f5f8;
  --panel: #ffffff;
  --ink: #0c111d;
  --text: #4c5565;
  --muted: #98a1af;
  --line: #dfe3e8;
  --line-strong: #cfd5dd;
  --green: #5f823e;
  --green-bright: #82b541;
  --green-border: #527237;
  --green-focus: rgba(95, 130, 62, 0.22);
  --green-soft: #f1f6ec;
  --magenta: rgb(177, 45, 91);
  --purple: #7b3ff2;
  --purple-soft: #f4edff;
  --danger: #b42318;
  --danger-soft: #fff1f0;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shell-panel-height: calc(100vh - 120px);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 13.5px/1.45 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

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

button {
  cursor: pointer;
}

code,
textarea {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 19.8px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0;
}

h2 {
  font-size: 14.4px;
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: 0;
}

p {
  color: var(--muted);
}

.topbar {
  height: 56px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line-strong);
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-stack {
  width: min(560px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.login-codex {
  width: 100%;
}

.login-prompt-text .login-typed {
  color: #f4f5f7;
  font-weight: 500;
}

.login-prompt-text .login-caret {
  display: inline-block;
  margin-left: 1px;
  color: #f4f5f7;
  font-weight: 400;
  animation: login-caret-blink 1s steps(1, end) infinite;
}

@keyframes login-caret-blink {
  50% { opacity: 0; }
}

.login-action {
  width: min(338px, 100%);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin-top: 4px;
}

.login-action #loginMessage {
  margin: 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.login-brand {
  width: auto;
  height: 56px;
  object-fit: contain;
}

.google-button {
  width: 100%;
  min-height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid #cbd2dc;
  border-radius: 6px;
  background: #f8fafc;
  color: #384154;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0;
  box-shadow: 0 1px 1px rgba(20, 29, 42, 0.02);
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.google-button:hover {
  border-color: #b6beca;
  background: #f3f6fa;
  box-shadow: 0 2px 5px rgba(20, 29, 42, 0.06);
}

.google-button[aria-disabled="true"] {
  pointer-events: none;
  color: var(--muted);
  background: #f7f9fb;
}

.google-button .google-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.brand-active {
  height: 56px;
  display: flex;
  align-items: center;
  width: fit-content;
  margin-left: 12px;
  text-decoration: none;
}

.brand-active span {
  color: var(--ink);
  font-size: 23px;
  font-weight: 720;
  letter-spacing: 0;
  line-height: 1;
}

.account {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 33px;
  justify-content: flex-end;
}

.account-trigger {
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.account-trigger:focus-visible {
  outline: 3px solid var(--green-focus);
  outline-offset: 4px;
}

.avatar {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--magenta);
  color: white;
  font-size: 12.2px;
  font-weight: 700;
}

.account-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  width: min(281px, calc(100vw - 32px));
  padding: 19px 0 13px;
  background: white;
  border: 1px solid #e6e9ee;
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.14);
}

.account-menu-identity {
  padding: 0 20px 14px;
}

.account-menu-name {
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu-email {
  margin-top: 6px;
  color: #969da8;
  font-size: 12px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu-divider {
  height: 1px;
  margin: 0 20px 6px;
  background: var(--line);
}

.logout-link {
  color: #68707e;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.account-menu-item {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 43px;
  padding: 0 20px;
}

.account-menu-item:hover {
  background: #f8f9fb;
  color: #3e4655;
}

.account-menu-item svg {
  width: 18px;
  height: 18px;
  color: currentColor;
}

.layout {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 24px;
  padding: 40px 30px;
}

.sidebar {
  min-height: var(--shell-panel-height);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.nav {
  display: grid;
  gap: 4px;
  padding: 12px 8px;
}

.nav-item {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  color: #4d5868;
  background: transparent;
  text-align: left;
  font-size: 13px;
  font-weight: 500;
}

.nav-item:hover {
  background: #f7f9fb;
}

.nav-item.active {
  color: var(--green);
  background: var(--green-soft);
  font-weight: 620;
}

.nav-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: currentColor;
}

.sidebar-footer {
  padding: 14px;
  border-top: 1px solid #edf0f3;
}

.content {
  min-width: 0;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.home-stage {
  position: relative;
  min-height: var(--shell-panel-height);
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: #171c24;
  isolation: isolate;
}

.home-shimmer {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  contain: paint;
  pointer-events: none;
}

.home-shimmer::before,
.home-shimmer::after,
.home-shimmer-band {
  content: "";
  position: absolute;
  top: -25%;
  bottom: -25%;
  width: 68%;
  opacity: 0.72;
  will-change: transform;
  transform: translate3d(-128%, 0, 0) rotate(-13deg) skewX(-18deg);
}

.home-shimmer::before {
  left: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(28, 86, 170, 0.28) 28%,
    rgba(72, 126, 33, 0.38) 45%,
    rgba(90, 128, 182, 0.3) 54%,
    rgba(132, 26, 71, 0.24) 68%,
    transparent 100%
  );
  animation: homeOverlaySweepA 20s linear infinite;
}

.home-shimmer::after {
  right: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(132, 26, 71, 0.24) 26%,
    rgba(28, 86, 170, 0.4) 46%,
    rgba(70, 105, 158, 0.28) 58%,
    rgba(72, 126, 33, 0.26) 72%,
    transparent 100%
  );
  animation: homeOverlaySweepB 24s linear infinite;
  animation-delay: -6s;
}

.home-shimmer-band {
  display: block;
}

.band-three {
  left: 8%;
  width: 62%;
  opacity: 0.62;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(72, 126, 33, 0.24) 24%,
    rgba(24, 78, 155, 0.34) 43%,
    rgba(132, 26, 71, 0.2) 61%,
    transparent 100%
  );
  animation: homeOverlaySweepA 28s linear infinite;
  animation-delay: -13s;
}

.band-four {
  right: 6%;
  width: 58%;
  opacity: 0.58;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(132, 26, 71, 0.2) 26%,
    rgba(72, 126, 33, 0.3) 47%,
    rgba(28, 86, 170, 0.26) 65%,
    transparent 100%
  );
  animation: homeOverlaySweepB 32s linear infinite;
  animation-delay: -21s;
}

.home-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 34%, rgba(214, 233, 255, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(48, 106, 188, 0.14), rgba(31, 70, 128, 0.24));
  pointer-events: none;
}

@keyframes homeOverlaySweepA {
  0% {
    transform: translate3d(-128%, 0, 0) rotate(-13deg) skewX(-18deg);
  }

  10% {
    transform: translate3d(-72%, 0, 0) rotate(-10deg) skewX(-18deg);
  }

  50% {
    transform: translate3d(35%, 0, 0) rotate(12deg) skewX(-18deg);
  }

  90% {
    transform: translate3d(142%, 0, 0) rotate(-8deg) skewX(-18deg);
  }

  100% {
    transform: translate3d(198%, 0, 0) rotate(-13deg) skewX(-18deg);
  }
}

@keyframes homeOverlaySweepB {
  0% {
    transform: translate3d(128%, 0, 0) rotate(13deg) skewX(-18deg);
  }

  10% {
    transform: translate3d(72%, 0, 0) rotate(10deg) skewX(-18deg);
  }

  50% {
    transform: translate3d(-35%, 0, 0) rotate(-12deg) skewX(-18deg);
  }

  90% {
    transform: translate3d(-142%, 0, 0) rotate(8deg) skewX(-18deg);
  }

  100% {
    transform: translate3d(-198%, 0, 0) rotate(13deg) skewX(-18deg);
  }
}

.home-bg-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.home-prompt-wrap {
  position: relative;
  z-index: 3;
  width: min(75%, 834px);
  display: grid;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}

.home-copy-row {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(95, 130, 62, 0.28);
  border-radius: 999px;
  background: rgba(241, 246, 236, 0.86);
  color: #33421f;
  font-size: 13.5px;
  font-weight: 680;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.home-copy-button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #d7dde5;
  border-radius: 999px;
  background: white;
  color: var(--green);
  transition: color 140ms ease, border-color 140ms ease, background 140ms ease;
}

.home-copy-button:hover {
  border-color: var(--line-strong);
  background: #f8fafc;
}

.home-copy-button.copied {
  color: var(--green);
  border-color: rgba(95, 130, 62, 0.48);
  background: var(--green-soft);
}

.home-copy-button svg {
  width: 15px;
  height: 15px;
}

.home-prompt-art {
  position: relative;
  padding: 24px 14px 14px;
  border-radius: 16px;
  background: #242424;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.14);
}

.home-prompt-art img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.home-prompt-text {
  position: absolute;
  top: 41px;
  left: 50px;
  right: 50px;
  color: #f4f5f7;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 18px;
  line-height: 1.32;
  font-weight: 500;
  letter-spacing: 0;
  white-space: normal;
}

.home-prompt-text span {
  color: var(--green-bright);
  font-weight: 760;
}

.home-prompt-text.login-prompt-text {
  top: 35px;
  left: 38px;
  right: 38px;
  font-size: 13px;
  line-height: 1.32;
}

.home-feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 22px;
  margin: 4px 0 0;
  padding: 14px 2px 0;
  border-top: 1px solid #edf0f4;
  list-style: none;
}

.home-feature {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.home-feature-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green);
}

.home-feature-icon svg {
  width: 18px;
  height: 18px;
}

.home-feature-title,
.home-feature-copy {
  display: block;
  min-width: 0;
}

.home-feature-title {
  color: #222a38;
  font-size: 12.6px;
  font-weight: 720;
  line-height: 1.25;
}

.home-feature-copy {
  margin-top: 3px;
  color: #7a8493;
  font-size: 11.7px;
  line-height: 1.35;
}

.claim-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.claim-panel {
  width: min(560px, 100%);
  display: grid;
  gap: 18px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.claim-logo {
  width: auto;
  height: 44px;
  object-fit: contain;
  justify-self: start;
}

.claim-status {
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 11.7px;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.claim-error {
  background: var(--danger-soft);
  color: var(--danger);
}

.claim-panel p strong {
  color: var(--ink);
}

.claim-details {
  display: grid;
  gap: 12px;
  margin: 4px 0 2px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafbfc;
}

.claim-details div {
  display: grid;
  gap: 4px;
}

.claim-details dt {
  color: var(--muted);
  font-size: 11.7px;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.claim-details dd {
  margin: 0;
  color: var(--text);
  overflow-wrap: anywhere;
}

.claim-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  background: var(--green);
  color: white;
  font-weight: 680;
}

.page-title {
  min-height: 48px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.page-title p {
  max-width: 760px;
  margin-top: 6px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.metric-card,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.metric-card {
  min-height: 124px;
  padding: 20px;
}

.card-label {
  color: #6f7888;
  font-size: 11.7px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: uppercase;
}

.metric-value {
  margin-top: 12px;
  color: #030712;
  font-size: 30.6px;
  line-height: 1;
  font-weight: 760;
}

.metric-note {
  margin-top: 12px;
  color: var(--muted);
}

.panel {
  padding: 20px;
  margin-bottom: 24px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 28px;
}

.api-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(360px, 1.15fr) minmax(340px, 1fr);
  gap: 16px;
  align-items: stretch;
}

.api-grid .panel {
  margin-bottom: 0;
}

.api-card {
  height: 100%;
  padding: 18px;
}

.api-card h2 {
  margin-bottom: 12px;
}

.api-card .kv-list {
  gap: 12px;
  margin-top: 0;
}

.api-card .primary-button {
  justify-self: start;
  min-width: 156px;
}

.api-token-form {
  min-height: 176px;
}

.api-issued-card textarea {
  min-height: 116px;
}

.api-agent-form {
  grid-column: span 2;
}

.api-agent-form .form-grid {
  grid-template-columns: repeat(2, minmax(160px, 220px));
}

.api-token-list-panel {
  min-height: 220px;
}

.steps {
  margin: 18px 0 0;
  padding-left: 22px;
  color: #586273;
}

.steps li {
  margin: 10px 0;
}

.connect-card,
.form-stack,
.token-result {
  display: grid;
  gap: 12px;
  align-content: start;
}

label {
  display: grid;
  gap: 6px;
  color: #566173;
  font-size: 11.7px;
  font-weight: 650;
}

input,
select,
textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  padding: 9px 11px;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--green-focus);
  border-color: var(--green);
}

.readonly-input {
  background: #f7f8fa;
  color: #667080;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.primary-button,
.secondary-button,
.quiet-button {
  min-height: 38px;
  border-radius: 6px;
  padding: 0 14px;
  font-weight: 650;
}

.primary-button {
  border: 1px solid var(--green-border);
  background: var(--green);
  color: white;
}

.secondary-button {
  border: 1px solid var(--line-strong);
  background: white;
  color: #374151;
}

.quiet-button {
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  color: #737b8c;
  text-align: left;
}

.form-note {
  color: var(--muted);
  font-size: 11.7px;
}

.form-note:empty {
  display: none;
}

.token-list {
  display: grid;
  gap: 10px;
}

.token-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 62px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.token-row code {
  color: #111827;
  font-size: 12.6px;
}

.token-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10.8px;
}

.revoke-token {
  min-height: 32px;
  color: #9f2349;
}

.panel-head,
.detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.table-tools {
  justify-content: flex-end;
}

.filter-input {
  max-width: 280px;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 -20px -20px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.data-table th,
.data-table td {
  height: 54px;
  padding: 10px 20px;
  border-top: 1px solid #e6e8eb;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  height: auto;
  padding: 8px 20px;
  color: #736f6a;
  font-size: 12.6px;
  font-weight: 600;
}

.data-table td {
  color: #667080;
}

.click-row:hover {
  background: #fafbfc;
}

.click-row {
  cursor: pointer;
}

.selected-row,
.selected-row:hover {
  background: #f8fbf2;
}

.empty-cell,
.empty-state {
  color: var(--muted);
  font-style: italic;
}

.prompt-snippet {
  max-width: 360px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-id-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.agent-kind-icon {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  color: #1f2937;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f1f3f5;
  color: #626b79;
  font-size: 10.8px;
  font-weight: 700;
  text-transform: uppercase;
}

.status-running,
.status-starting,
.status-claiming,
.status-queued,
.status-waiting {
  background: var(--green-soft);
  color: var(--green);
}

.status-failed,
.status-lost {
  background: var(--danger-soft);
  color: var(--danger);
}

.status-succeeded {
  background: #eff8ff;
  color: #175cd3;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(15, 23, 42, 0.16);
}

.agent-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 50;
  width: min(760px, 100vw);
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--panel);
  border-left: 1px solid var(--line-strong);
  box-shadow: -20px 0 40px rgba(15, 23, 42, 0.12);
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 180ms ease;
}

.agent-drawer.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.drawer-toolbar {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.drawer-kicker {
  color: var(--muted);
  font-size: 10.8px;
  font-weight: 700;
  text-transform: uppercase;
}

.drawer-content {
  min-height: 0;
  overflow-y: auto;
  padding: 22px;
}

.icon-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: #566173;
}

.icon-button:hover {
  border-color: var(--line-strong);
  background: #f8fafc;
}

.icon-button svg {
  width: 18px;
  height: 18px;
}

.kv-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
}

.kv-list.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
  row-gap: 18px;
}

.drawer-kv {
  padding: 16px;
  border: 1px solid #e8ebef;
  border-radius: 8px;
  background: #fbfcfd;
}

.drawer-kv .kv-wide {
  grid-column: 1 / -1;
}

.kv-list div {
  min-width: 0;
}

.kv-list dt {
  color: var(--muted);
  font-size: 10.8px;
  font-weight: 700;
  text-transform: uppercase;
}

.kv-list dd {
  margin: 5px 0 0;
  color: #4d5868;
  font-size: 13.5px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.kv-list code {
  white-space: normal;
  word-break: break-all;
}

.prompt-box,
.error-box {
  margin-top: 18px;
  padding: 14px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fbfcfd;
  color: #4d5868;
  white-space: pre-wrap;
}

.error-box {
  border-color: #f0b8b3;
  background: var(--danger-soft);
  color: var(--danger);
}

.event-list {
  margin-top: 22px;
}

.event-row {
  display: grid;
  gap: 8px;
  padding: 14px 0;
  border-top: 1px solid #e9ecef;
}

.event-title {
  color: var(--ink);
  font-weight: 700;
}

.event-row p {
  font-size: 12.6px;
  white-space: pre-wrap;
}

.event-muted {
  padding: 12px;
  border: 1px solid #e8ebef;
  border-radius: 8px;
  background: #fbfcfd;
  color: #697386;
}

.event-muted p {
  font-size: 10.8px;
}

.event-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.event-chips span {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #e0d2ff;
  border-radius: 5px;
  padding: 0 7px;
  background: var(--purple-soft);
  color: var(--purple);
  font-size: 10.8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.payload-details {
  color: #697386;
  font-size: 10.8px;
}

.payload-details summary {
  cursor: pointer;
}

.payload-details pre {
  max-height: 260px;
  overflow: auto;
  margin: 8px 0 0;
  padding: 10px;
  border: 1px solid #e8ebef;
  border-radius: 6px;
  background: #f8fafc;
  color: #4d5868;
  font-size: 10.8px;
  line-height: 1.45;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1100px) {
  .layout,
  .two-column,
  .api-grid {
    grid-template-columns: 1fr;
  }

  .api-grid {
    align-items: start;
  }

  .api-card {
    height: auto;
  }

  .api-agent-form {
    grid-column: auto;
  }

  .sidebar {
    min-height: auto;
  }

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

@media (max-width: 900px) {
  .home-prompt-art {
    padding: 18px 18px 16px;
  }

  .home-prompt-art img {
    display: none;
  }

  .home-prompt-text,
  .home-prompt-text.login-prompt-text {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    font-size: 14px;
    line-height: 1.45;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 700px) {
  .login-stack {
    gap: 18px;
  }

  .login-brand {
    height: 50px;
  }

  .google-button {
    min-height: 45px;
    gap: 14px;
    font-size: 13.5px;
  }

  .topbar {
    height: 51px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 0 18px;
  }

  .brand-active {
    height: 51px;
    margin-left: 0;
    border-bottom: 0;
  }

  .account {
    justify-content: flex-end;
    min-width: 0;
  }

  .account-menu {
    right: 0;
  }

  .layout {
    padding: 18px;
  }

  .page-title,
  .panel-head,
  .detail-head {
    display: grid;
  }

  .stat-grid,
  .kv-list.compact,
  .form-grid,
  .home-feature-list {
    grid-template-columns: 1fr;
  }

  .home-stage {
    min-height: auto;
  }

  .home-prompt-wrap {
    width: 100%;
    padding: 16px;
  }

  .home-copy-row {
    font-size: 12.5px;
    padding: 7px 11px;
  }

  .home-prompt-art {
    padding: 16px;
  }

  .home-prompt-text,
  .home-prompt-text.login-prompt-text {
    font-size: 13.5px;
  }

  .login-screen {
    padding: 20px 16px;
  }

  .claim-screen {
    padding: 20px 16px;
  }

  .claim-panel {
    padding: 22px;
    gap: 16px;
  }

  .panel {
    padding: 16px;
  }

  .api-card {
    padding: 14px;
  }

  .drawer-toolbar {
    padding: 14px 16px;
  }

  .drawer-content {
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-shimmer {
    display: none;
  }

  .home-bg-video {
    display: none;
  }
}
