:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f5f7;
  color: #17202a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

[hidden] {
  display: none !important;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  border-radius: 6px;
  background: #17202a;
  color: #ffffff;
  cursor: pointer;
  min-height: 40px;
  padding: 0 14px;
}

button:hover {
  background: #293847;
}

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

button:disabled:hover {
  background: #17202a;
}

input {
  border: 1px solid #c9d1dc;
  border-radius: 6px;
  min-height: 40px;
  padding: 0 10px;
}

.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.status-line {
  color: #526170;
  font-size: 13px;
  margin: 14px 0 0;
}

.status-line[data-tone="good"] {
  color: #146c43;
}

.status-line[data-tone="bad"] {
  color: #9f1d1d;
}

.status-line[data-tone="warn"] {
  color: #8a5a00;
}

.auth-panel {
  align-self: start;
  background: #ffffff;
  border: 1px solid #dfe4ea;
  border-radius: 8px;
  margin: 48px auto;
  max-width: 420px;
  padding: 22px;
  width: min(calc(100vw - 32px), 420px);
}

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

.auth-panel label {
  color: #354250;
  display: grid;
  font-size: 13px;
  gap: 6px;
}

.report-host {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.report-message {
  align-items: center;
  color: #526170;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 14px;
  padding: 48px 18px;
  text-align: center;
}

.report-message p {
  margin: 0;
}

.report-host iframe {
  border: 0;
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}

.agent-panel {
  background: #ffffff;
  border-bottom: 1px solid #dfe4ea;
  padding: 14px 18px 18px;
}

.agent-panel-head {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin: 0 auto 12px;
  max-width: 1120px;
}

.agent-panel h2 {
  font-size: 16px;
  line-height: 1.2;
  margin: 0;
}

.agent-panel p {
  color: #526170;
  font-size: 13px;
  margin: 4px 0 0;
}

.agent-panel-actions {
  display: flex;
  gap: 8px;
}

.agent-panel textarea {
  border: 1px solid #c9d1dc;
  border-radius: 6px;
  display: block;
  font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  height: min(42vh, 420px);
  margin: 0 auto;
  max-width: 1120px;
  padding: 12px;
  resize: vertical;
  width: 100%;
}

@media (max-width: 720px) {
  .agent-panel-head {
    display: grid;
  }

  .agent-panel-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}
