:root {
  color: #182230;
  background: #f7f8fb;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
}

button,
input {
  font: inherit;
}

button {
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  background: #176f86;
  color: #fff;
  cursor: pointer;
  font-weight: 750;
  padding: 0 14px;
}

button.secondary {
  background: #e7eef3;
  color: #163545;
}

button:disabled {
  cursor: wait;
  opacity: 0.64;
}

input {
  width: 100%;
  min-height: 40px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #182230;
  padding: 8px 10px;
}

input:focus {
  border-color: #176f86;
  outline: 3px solid rgba(23, 111, 134, 0.18);
}

.app-shell {
  width: min(100% - 32px, 980px);
  margin: 0 auto;
  padding: 32px 0;
}

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

.brand {
  margin: 0;
  font-size: 28px;
  letter-spacing: 0;
  line-height: 1.1;
}

.auth-row {
  align-items: center;
  display: flex;
  gap: 10px;
}

.status {
  color: #526070;
  font-size: 14px;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 18px;
}

.panel {
  background: #fff;
  border: 1px solid #d8dde7;
  border-radius: 8px;
  padding: 18px;
}

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

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.field label {
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}

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

.result {
  background: #101828;
  border-radius: 6px;
  color: #ecfdf3;
  min-height: 220px;
  margin: 0;
  overflow: auto;
  padding: 14px;
  white-space: pre-wrap;
}

body:not(.is-signed-in) .workspace {
  opacity: 0.48;
}

@media (max-width: 760px) {
  .topbar,
  .auth-row {
    align-items: stretch;
    flex-direction: column;
  }

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