:root {
  --bg: #f4f6f8;
  --card: #ffffff;
  --text: #1e1e1e;
  --muted: #5f6368;
  --border: #d7dce1;
  --accent: #0f6fff;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: radial-gradient(circle at 20% 0%, #ffffff 0%, var(--bg) 70%);
  color: var(--text);
  font-family: Segoe UI, system-ui, -apple-system, sans-serif;
  overflow: hidden;
}

.app {
  max-width: 860px;
  margin: 0 auto;
  padding: 16px;
  display: grid;
  gap: 12px;
  height: 100%;
  overflow-y: auto;
  padding-bottom: 24px;
}

h1 {
  margin: 0;
  font-size: 22px;
}

h2 {
  margin: 0 0 8px;
  font-size: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.actions {
  display: flex;
  gap: 10px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

label.inline {
  display: flex;
  align-items: center;
  gap: 8px;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  background: #fff;
}

textarea {
  resize: vertical;
}

button {
  border: 1px solid var(--accent);
  color: #fff;
  background: var(--accent);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.panel {
  margin: 0;
  border: 1px solid var(--border);
  background: #fafbfd;
  border-radius: 8px;
  padding: 10px;
  min-height: 80px;
  max-height: 260px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.status {
  font-weight: 600;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}
