:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --panel: #ffffff;
  --line: #d7dde5;
  --text: #14202b;
  --muted: #5f6d7a;
  --accent: #155eef;
  --danger: #c62828;
  --success: #0f9d58;
}

* {
  box-sizing: border-box;
}

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

.page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.grid.two {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.health-grid,
.status-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 12px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

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

label span,
.label,
.eyebrow {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 6px;
}

input,
select,
button {
  font: inherit;
}

input,
select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
}

button {
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: white;
  padding: 11px 14px;
  cursor: pointer;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

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

.call-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 16px;
}

.call-state {
  font-size: 14px;
  color: var(--muted);
}

.timer {
  font-size: 42px;
  font-weight: 700;
}

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

.agent-response {
  min-height: 72px;
  padding: 14px;
  border-radius: 12px;
  background: #f7f9fb;
  border: 1px solid var(--line);
  line-height: 1.5;
}

.summary-card,
.turn-item,
.session-row {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fbfcfd;
}

.turn-log,
.session-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.turn-item h4,
.session-row h4 {
  margin: 0 0 6px;
}

.turn-meta,
.session-meta,
.muted {
  color: var(--muted);
}

code {
  font-family: "SFMono-Regular", ui-monospace, monospace;
  background: #eef2f7;
  border-radius: 6px;
  padding: 1px 5px;
}

.toolbar {
  margin-bottom: 12px;
}

@media (max-width: 960px) {
  .hero,
  .grid.two,
  .call-box {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .health-grid,
  .form-grid,
  .status-row {
    grid-template-columns: 1fr;
  }

  .actions {
    justify-content: stretch;
  }
}
