:root {
  color-scheme: dark;
  --bg: #0d1117;
  --bg-2: #111821;
  --surface: #171d26;
  --surface-2: #202835;
  --surface-3: #263241;
  --text: #eef4fb;
  --muted: #98a7ba;
  --line: #303a49;
  --line-strong: #465368;
  --blue: #4f8cff;
  --blue-dark: #2f6fe6;
  --green: #2cc58e;
  --red: #ff6b6b;
  --amber: #f0b84d;
  --cyan: #45c2d7;
  --shadow: 0 22px 56px rgba(0, 0, 0, 0.35);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
  overflow-x: hidden;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.auth-screen {
  min-height: 100vh;
  padding: 0;
  background:
    radial-gradient(circle at 20% 8%, rgba(69, 194, 215, 0.12), transparent 28%),
    radial-gradient(circle at 86% 16%, rgba(79, 140, 255, 0.1), transparent 26%),
    linear-gradient(180deg, rgba(69, 194, 215, 0.08), transparent 620px),
    var(--bg);
}

.public-header {
  position: sticky;
  top: 0;
  z-index: 12;
  width: 100%;
  max-width: 1360px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin: 0 auto;
  padding: 16px 28px;
  border-bottom: 1px solid rgba(48, 58, 73, 0.7);
  background: rgba(13, 17, 23, 0.9);
  backdrop-filter: blur(16px);
}

.public-brand {
  min-width: 210px;
  text-decoration: none;
}

.public-nav {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.public-nav::-webkit-scrollbar {
  display: none;
}

.public-nav a,
.ghost-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 12px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 800;
}

.public-nav a:hover,
.ghost-link:hover {
  background: rgba(79, 140, 255, 0.12);
  color: #dbe8ff;
}

.public-actions,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.public-actions {
  justify-content: flex-end;
}

.public-hero {
  width: 100%;
  max-width: 1360px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 440px);
  gap: 42px;
  margin: 0 auto;
  padding: 68px 28px 38px;
  align-items: center;
}

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

.eyebrow {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid rgba(69, 194, 215, 0.34);
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(69, 194, 215, 0.1);
  color: #a8f2ff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 780px;
  margin-top: 18px;
  font-size: clamp(44px, 5.6vw, 72px);
  letter-spacing: 0;
  line-height: 1;
}

.hero-copy p {
  max-width: 740px;
  margin-top: 18px;
  color: #b6c4d6;
  font-size: 18px;
  line-height: 1.65;
}

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

.hero-actions .primary-btn,
.public-actions .primary-btn,
.hero-actions .ghost-link {
  min-height: 44px;
  padding: 0 18px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 620px;
  margin-top: 30px;
}

.hero-stats div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(17, 24, 33, 0.82);
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats strong {
  font-size: 24px;
}

.hero-stats span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.auth-panel {
  width: min(440px, 100%);
  height: 600px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.public-hero .auth-panel {
  justify-self: end;
}

.auth-brand {
  margin-bottom: 20px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px;
  background: var(--surface-2);
}

.auth-tab {
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.auth-tab.active {
  background: var(--surface-3);
  color: var(--text);
}

.auth-form {
  display: grid;
  flex: 1 1 auto;
  min-height: 0;
  align-content: start;
  gap: 12px;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.auth-form::-webkit-scrollbar {
  width: 6px;
}

.auth-form::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--line-strong);
}

.auth-wide-btn {
  width: 100%;
}

.auth-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.auth-code-row .ghost-btn {
  min-width: 112px;
  white-space: nowrap;
}

.captcha-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
}

.captcha-image-btn {
  width: 100%;
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  background: #0f151f;
}

.captcha-image-btn:hover {
  border-color: var(--line-strong);
}

.captcha-image-btn img {
  display: block;
  width: 100%;
  height: 64px;
  object-fit: cover;
}

.auth-help {
  color: #a8f2ff;
  font-size: 12px;
  font-weight: 800;
}

.auth-help.expired {
  color: #ffa0a0;
}

.auth-form label,
.try-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.auth-message {
  flex: 0 0 auto;
  margin-top: 14px;
  border: 1px solid rgba(69, 194, 215, 0.42);
  border-radius: 8px;
  padding: 12px;
  background: rgba(69, 194, 215, 0.1);
  color: #c7f6ff;
  font-size: 13px;
  line-height: 1.45;
}

.auth-message a {
  color: #8fe7f4;
  font-weight: 800;
}

.visual-band {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 12px 28px 24px;
}

.visual-band img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d1117;
  box-shadow: var(--shadow);
}

.public-section {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 54px 28px 0;
}

.public-section-last {
  padding-bottom: 72px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 20px;
}

.section-heading h2 {
  margin-top: 12px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
}

.section-heading p {
  margin-top: 12px;
  color: #b6c4d6;
  font-size: 16px;
  line-height: 1.6;
}

.feature-grid,
.pricing-grid,
.endpoint-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-card,
.pricing-card,
.qps-alert,
.public-table,
.endpoint-preview-grid code {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.feature-card {
  display: grid;
  align-content: start;
  min-height: 152px;
  padding: 18px;
}

.feature-card strong,
.feature-card span {
  display: block;
}

.feature-card strong {
  font-size: 18px;
}

.feature-card span {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.agent-section {
  padding-top: 42px;
}

.agent-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: 22px;
  align-items: stretch;
  border: 1px solid rgba(69, 194, 215, 0.24);
  border-radius: 8px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(69, 194, 215, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(79, 140, 255, 0.08), rgba(17, 29, 39, 0.68));
}

.agent-layout .section-heading {
  max-width: none;
  margin-bottom: 0;
}

.signal-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.signal-strip span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(69, 194, 215, 0.3);
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(11, 17, 25, 0.72);
  color: #c7f6ff;
  font-size: 12px;
  font-weight: 850;
}

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

.agent-card {
  min-height: 132px;
  display: grid;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(13, 17, 23, 0.74);
}

.agent-card strong,
.agent-card span {
  display: block;
}

.agent-card strong {
  font-size: 17px;
}

.agent-card span {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.comparison-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(79, 140, 255, 0.08), transparent 220px),
    var(--surface);
  box-shadow: var(--shadow);
}

.comparison-table-wrap {
  overflow-x: auto;
}

.comparison-table {
  min-width: 1020px;
  width: 100%;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  border-bottom: 1px solid var(--line);
  padding: 18px 20px;
  text-align: left;
  vertical-align: middle;
  font-size: 14px;
}

.comparison-table thead th {
  background: rgba(13, 17, 23, 0.72);
  color: #b6c4d6;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.comparison-table tbody th {
  width: 210px;
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
}

.comparison-table td {
  color: var(--muted);
}

.comparison-table tr:last-child th,
.comparison-table tr:last-child td {
  border-bottom: 0;
}

.comparison-table .compare-primary {
  color: #9dc1ff;
}

.win-pill {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid rgba(44, 197, 142, 0.42);
  border-radius: 999px;
  padding: 0 11px;
  background: rgba(44, 197, 142, 0.16);
  color: #8ef0c9;
  font-weight: 900;
  white-space: nowrap;
}

.comparison-note {
  border-top: 1px solid var(--line);
  padding: 16px 20px;
  background: rgba(11, 17, 25, 0.42);
  color: #b6c4d6;
  font-size: 14px;
  line-height: 1.6;
}

.comparison-note strong {
  color: var(--text);
}

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

.pricing-card {
  display: grid;
  align-content: start;
  min-height: 280px;
  padding: 22px;
  box-shadow: none;
}

.pricing-card.highlighted {
  border-color: rgba(79, 140, 255, 0.55);
  background: linear-gradient(180deg, rgba(79, 140, 255, 0.16), var(--surface));
}

.plan-name {
  color: #a8f2ff;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.pricing-card strong {
  display: block;
  margin-top: 14px;
  font-size: 42px;
  line-height: 1;
}

.pricing-card p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.pricing-card ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.pricing-card li {
  color: #d7e2f0;
  font-size: 14px;
}

.pricing-card li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 9px;
  border-radius: 99px;
  background: var(--green);
}

.qps-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 14px;
}

.qps-alert {
  min-height: 170px;
  padding: 22px;
  border-color: rgba(255, 107, 107, 0.55);
  background: rgba(255, 107, 107, 0.1);
  box-shadow: none;
}

.qps-alert strong,
.qps-alert span {
  display: block;
}

.qps-alert strong {
  color: #ffa0a0;
  font-size: 20px;
}

.qps-alert span {
  margin-top: 18px;
  color: #f4ccd0;
  font-size: 17px;
  line-height: 1.65;
}

.public-table {
  display: grid;
  box-shadow: none;
}

.public-table div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 18px;
}

.public-table div:last-child {
  border-bottom: 0;
}

.public-table span {
  color: var(--muted);
}

.endpoint-preview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.endpoint-preview-grid code {
  padding: 16px;
  background: #0f141c;
  box-shadow: none;
}

.app-shell {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(79, 140, 255, 0.08), transparent 30%),
    var(--bg);
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(16px);
}

.app-header-main {
  width: min(1360px, 100%);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin: 0 auto;
  padding: 14px 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: block;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 8px;
  filter: drop-shadow(0 10px 18px rgba(69, 194, 215, 0.12));
}

.brand-name {
  font-size: 17px;
  font-weight: 900;
  color: var(--text);
}

.brand-subtitle {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.nav-list {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-list::-webkit-scrollbar {
  display: none;
}

.nav-item {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 14px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 800;
}

.nav-item:hover,
.nav-item.active {
  border-color: rgba(79, 140, 255, 0.38);
  background: rgba(79, 140, 255, 0.12);
  color: #dbe8ff;
}

.small-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.deploy-box {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: var(--surface);
  color: var(--muted);
  white-space: nowrap;
  font-size: 13px;
  font-weight: 800;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: #707b8c;
}

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

.status-dot.bad {
  background: var(--red);
}

.workspace {
  width: min(1360px, 100%);
  min-width: 0;
  margin: 0 auto;
  padding: 28px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.04;
}

h2 {
  font-size: 18px;
  line-height: 1.2;
}

.topbar p,
.panel-head p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.topbar-actions,
.inline-form,
.limit-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.user-chip {
  min-height: 38px;
  display: inline-flex;
  max-width: 280px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  overflow: hidden;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.primary-btn,
.ghost-btn {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 14px;
  font-weight: 800;
}

.primary-btn {
  background: var(--blue);
  color: #ffffff;
}

.primary-btn:hover {
  background: var(--blue-dark);
}

.ghost-btn {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.ghost-btn:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.primary-btn:disabled,
.ghost-btn:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

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

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

.metric-card {
  min-height: 132px;
  display: grid;
  align-content: space-between;
  padding: 18px;
}

.metric-label,
.metric-foot {
  color: var(--muted);
  font-size: 13px;
}

.metric-card strong {
  font-size: 34px;
  line-height: 1;
}

.text-ok {
  color: var(--green);
}

.text-warn {
  color: var(--amber);
}

.muted-cell {
  color: var(--muted);
}

.panel {
  margin-top: 18px;
  padding: 18px;
}

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

.panel-head.compact {
  align-items: flex-start;
}

input {
  min-height: 38px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #0f141c;
  color: var(--text);
  outline: none;
}

input::placeholder {
  color: #667489;
}

input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.18);
}

.inline-form input {
  width: min(240px, 46vw);
}

.token-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  box-shadow: none;
  background: rgba(79, 140, 255, 0.08);
}

code {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #9dc1ff;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

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

th {
  background: #111923;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.badge.ok {
  background: rgba(44, 197, 142, 0.14);
  color: #8ef0c9;
}

.badge.warn {
  background: rgba(240, 184, 77, 0.16);
  color: #ffd27a;
}

.badge.bad {
  background: rgba(255, 107, 107, 0.16);
  color: #ffa0a0;
}

.split-panel {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 18px;
}

.try-form {
  display: grid;
  gap: 12px;
}

.response-view {
  min-height: 260px;
  max-height: 420px;
  margin: 0;
  overflow: auto;
  border: 1px solid #344155;
  border-radius: 8px;
  padding: 14px;
  background: #070b10;
  color: #cdf7e9;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
}

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

.endpoint-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #121922;
}

.endpoint-item strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.endpoint-item span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: min(420px, calc(100vw - 40px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: #101923;
  color: #ffffff;
  box-shadow: var(--shadow);
  font-size: 13px;
}

.hidden {
  display: none;
}

@media (max-width: 1100px) {
  .public-header {
    grid-template-columns: 1fr auto;
  }

  .public-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    order: 3;
  }

  .public-hero {
    grid-template-columns: 1fr;
    padding-top: 46px;
  }

  .public-hero .auth-panel {
    justify-self: stretch;
  }

  .metric-grid,
  .endpoint-grid,
  .feature-grid,
  .agent-card-grid,
  .endpoint-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-header-main {
    grid-template-columns: 1fr auto;
  }

  .nav-list {
    grid-column: 1 / -1;
    justify-content: flex-start;
    order: 3;
  }
}

@media (max-width: 840px) {
  .public-header {
    padding: 12px 18px;
  }

  .public-hero,
  .visual-band,
  .public-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-copy h1 {
    font-size: clamp(38px, 12vw, 56px);
  }

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

  .pricing-grid,
  .qps-layout,
  .agent-layout {
    grid-template-columns: 1fr;
  }

  .app-header-main {
    padding: 12px 18px;
  }

  .workspace {
    padding: 18px;
  }

  .topbar,
  .panel-head,
  .split-panel {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .split-panel {
    display: grid;
  }

  .topbar-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .auth-screen {
    padding: 0;
  }

  .public-header {
    grid-template-columns: 1fr;
  }

  .public-brand,
  .public-actions {
    justify-self: stretch;
  }

  .public-actions .primary-btn,
  .public-actions .ghost-btn {
    flex: 1 1 calc(50% - 5px);
  }

  .public-nav {
    flex-wrap: wrap;
    overflow: visible;
  }

  .public-nav a {
    flex: 1 1 calc(50% - 6px);
  }

  .public-hero {
    padding-top: 30px;
  }

  .hero-actions .primary-btn,
  .hero-actions .ghost-link {
    width: 100%;
  }

  .hero-stats,
  .feature-grid,
  .agent-card-grid,
  .pricing-grid,
  .endpoint-preview-grid {
    grid-template-columns: 1fr;
  }

  .agent-layout {
    padding: 18px;
  }

  .public-table div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .metric-grid,
  .endpoint-grid {
    grid-template-columns: 1fr;
  }

  .inline-form {
    display: grid;
    grid-template-columns: 1fr;
  }

  .inline-form input {
    width: 100%;
  }

  .auth-code-row {
    grid-template-columns: 1fr;
  }

  .captcha-row {
    grid-template-columns: 1fr;
  }

  .captcha-image-btn img {
    height: 64px;
  }

  .auth-panel {
    height: 640px;
  }

  .deploy-box {
    width: 100%;
    justify-content: center;
  }

  .app-header-main {
    grid-template-columns: 1fr;
  }

  .brand,
  .deploy-box {
    justify-self: stretch;
  }

  .nav-list {
    flex-wrap: wrap;
    overflow: visible;
  }

  .nav-item {
    flex: 1 1 calc(50% - 6px);
  }
}
