:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --ink: #191919;
  --muted: #5f6368;
  --line: #d7dde5;
  --surface: #ffffff;
  --accent: #0f766e;
  --accent-strong: #115e59;
  --warm: #d97706;
  --danger: #b42318;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.1), transparent 36%),
    linear-gradient(315deg, rgba(217, 119, 6, 0.08), transparent 40%), var(--bg);
}

a {
  color: inherit;
}

.shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  min-height: 74vh;
  display: grid;
  align-content: center;
  padding: 80px 0 56px;
}

.eyebrow,
.label {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 980px;
  font-size: clamp(3.25rem, 8vw, 7.5rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.lead {
  max-width: 700px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1.65;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.create-form {
  max-width: 760px;
  margin-top: 40px;
}

.create-form label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-weight: 800;
}

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

input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  padding: 0 14px;
  font: inherit;
}

select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  padding: 0 14px;
  font: inherit;
}

.status {
  min-height: 28px;
  margin: 12px 0 0;
  color: var(--accent-strong);
  font-weight: 800;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  border: 1px solid var(--line);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.62);
}

.button.danger {
  border-color: var(--danger);
  background: var(--danger);
  color: white;
}

.button.compact {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.9rem;
}

.button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.platforms,
.manage,
.dashboard {
  padding: 24px 0 80px;
}

.result {
  padding: 28px 0 58px;
}

.is-hidden {
  display: none;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.heading-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: 0;
}

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

.platform-card,
.detail-list,
.curl-box,
.metric-grid,
.notice-box,
.table-item,
.empty-state {
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  padding: 28px;
}

.notice-box,
.table-item,
.empty-state {
  min-height: 0;
}

.platform-card h3 {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: 0;
}

.platform-card p:last-child {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.result-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
  margin-top: 28px;
}

.summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 16px;
  margin-top: 28px;
}

.detail-list {
  margin: 0;
}

.detail-list div + div {
  margin-top: 18px;
}

dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

dd {
  margin: 6px 0 0;
  overflow-wrap: anywhere;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  align-content: stretch;
}

.metric-grid div {
  display: grid;
  align-content: center;
  min-height: 144px;
  border-left: 3px solid var(--accent);
  padding-left: 16px;
}

.metric-grid dd {
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
}

code,
pre {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
}

pre {
  overflow-x: auto;
  margin: 14px 0 18px;
  border-radius: 8px;
  background: #171717;
  color: #f8fafc;
  padding: 16px;
  line-height: 1.55;
}

.warning {
  color: var(--danger);
  font-weight: 800;
}

.connect-form,
.inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  margin-top: 28px;
}

.connect-form label,
.inline-form label {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-weight: 800;
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  border-bottom: 1px solid var(--line);
}

.tab-button {
  min-height: 44px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 0 14px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.tab-button.is-active {
  border-bottom-color: var(--accent);
  color: var(--ink);
}

.tab-panel {
  margin-top: 22px;
}

.table-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

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

.table-item dd {
  min-height: 22px;
}

.notice-box code {
  display: block;
  margin-top: 10px;
  overflow-wrap: anywhere;
}

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

@media (max-width: 720px) {
  .shell {
    width: min(100% - 28px, 1120px);
  }

  .hero {
    min-height: 70vh;
    padding-top: 52px;
  }

  .lead {
    font-size: 1.05rem;
  }

  .section-heading {
    display: block;
  }

  .heading-actions {
    justify-content: flex-start;
    margin-top: 16px;
  }

  .form-row,
  .platform-grid,
  .result-grid,
  .summary-grid,
  .connect-form,
  .inline-form,
  .metric-grid,
  .table-item {
    grid-template-columns: 1fr;
  }

  .metric-grid div {
    min-height: 92px;
  }
}
