:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --panel: #ffffff;
  --ink: #172026;
  --muted: #687782;
  --line: #dfe5e8;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --soft: #edf7f5;
  --warn: #8a4b0f;
}

* {
  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;
  background: var(--bg);
  color: var(--ink);
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  padding: 10px 14px;
  text-decoration: none;
  white-space: nowrap;
}

button:hover,
a:hover {
  background: var(--accent-dark);
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.topbar,
.status-strip,
.section-head,
.split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.topbar {
  margin-bottom: 22px;
}

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 8px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.04;
  margin-bottom: 0;
}

h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

p {
  color: var(--muted);
  line-height: 1.55;
}

.top-actions {
  display: flex;
  gap: 10px;
}

.ghost,
.secondary {
  background: #e8eef0;
  color: var(--ink);
}

.ghost:hover,
.secondary:hover {
  background: #d8e1e4;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  margin-bottom: 18px;
}

.login-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

.form,
.grid-form {
  display: grid;
  gap: 14px;
}

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

label {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  font-weight: 700;
  gap: 7px;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  padding: 11px 12px;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

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

.demo-users,
.segmented,
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.demo-users button,
.segmented button,
.tabs button {
  background: #e8eef0;
  color: var(--ink);
}

.segmented button.active,
.tabs button.active {
  background: var(--accent);
  color: #fff;
}

.status-strip {
  align-items: stretch;
  background: #172026;
  border-radius: 8px;
  color: #fff;
  margin-bottom: 16px;
  padding: 14px;
}

.status-strip div {
  min-width: 0;
}

.status-strip span {
  color: #aebbc1;
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
}

.status-strip strong {
  display: block;
  overflow-wrap: anywhere;
}

.tabs {
  margin-bottom: 16px;
}

.setup-box {
  background: var(--soft);
  border: 1px solid #b9ddd7;
  border-radius: 8px;
  min-width: 320px;
  padding: 18px;
}

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

.item {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
}

.item strong {
  display: block;
  margin-bottom: 5px;
}

.message {
  color: var(--warn);
  margin: 0;
}

select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  padding: 11px 12px;
  background: var(--panel);
  font: inherit;
}

.help-text {
  font-size: 11px;
  color: var(--muted);
  font-weight: normal;
  margin-top: 2px;
}

#sampleValuesContainer {
  border: 1px dashed var(--accent);
  border-radius: 8px;
  padding: 16px;
  background: var(--soft);
  margin-top: 8px;
  margin-bottom: 8px;
}

.hidden {
  display: none !important;
}

@media (max-width: 760px) {
  .topbar,
  .status-strip,
  .section-head,
  .split,
  .login-grid {
    display: grid;
  }

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

  .setup-box {
    min-width: 0;
  }
}
