:root {
  color-scheme: light;
  --gh-ink: #1b2430;
  --gh-muted: #64707d;
  --gh-brand: #0d766e;
  --gh-brand-strong: #115e59;
  --gh-accent: #c76d2b;
  --gh-surface: rgba(255, 250, 244, 0.92);
  --gh-surface-strong: rgba(255, 255, 255, 0.95);
  --gh-line: rgba(27, 36, 48, 0.1);
  --gh-danger: #b42318;
  --gh-warn: #b54708;
  --gh-shadow: 0 26px 70px rgba(39, 29, 19, 0.12);
  --gh-radius: 22px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--gh-ink);
  font-family: "Trebuchet MS", "Gill Sans", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(13, 118, 110, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(199, 109, 43, 0.16), transparent 26%),
    linear-gradient(180deg, #f8f2e9 0%, #efe7db 45%, #ece1d4 100%);
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.gh-app-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 18px 56px;
}

.gh-hero,
.gh-card,
.gh-status-shell {
  border: 1px solid var(--gh-line);
  border-radius: var(--gh-radius);
  background: var(--gh-surface);
  box-shadow: var(--gh-shadow);
}

.gh-hero {
  display: grid;
  gap: 18px;
  padding: 28px;
  margin-bottom: 22px;
  background:
    linear-gradient(135deg, rgba(13, 118, 110, 0.14), rgba(255, 255, 255, 0.48)),
    var(--gh-surface);
}

.gh-hero-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.gh-kicker {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gh-kicker[data-tone="active"] {
  color: var(--gh-brand-strong);
  background: rgba(13, 118, 110, 0.12);
}

.gh-kicker[data-tone="pending"] {
  color: var(--gh-warn);
  background: rgba(181, 71, 8, 0.12);
}

.gh-kicker[data-tone="unknown"] {
  color: var(--gh-ink);
  background: rgba(27, 36, 48, 0.08);
}

.gh-kicker[data-tone="suspended"] {
  color: var(--gh-danger);
  background: rgba(180, 35, 24, 0.12);
}

.gh-title {
  margin: 0;
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 0.95;
}

.gh-body {
  margin: 0;
  max-width: 64ch;
  color: var(--gh-muted);
  line-height: 1.6;
}

.gh-hero-meta,
.gh-panel-grid,
.gh-summary-grid,
.gh-status-grid,
.gh-form-grid {
  display: grid;
  gap: 16px;
}

.gh-hero-meta,
.gh-summary-grid,
.gh-status-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gh-panel-grid {
  grid-template-columns: 1.15fr 0.85fr;
}

.gh-meta-item,
.gh-summary-card,
.gh-status-item {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(27, 36, 48, 0.08);
  background: rgba(255, 255, 255, 0.78);
}

.gh-meta-item strong,
.gh-summary-card strong,
.gh-status-item strong,
.gh-card h2,
.gh-card h3 {
  display: block;
  margin-bottom: 8px;
}

.gh-meta-item strong,
.gh-summary-card strong,
.gh-status-item strong,
.gh-section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gh-muted);
}

.gh-card {
  padding: 22px;
}

.gh-card h2,
.gh-card h3 {
  margin: 0 0 10px;
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  font-weight: 700;
}

.gh-card h2 {
  font-size: 1.6rem;
}

.gh-card h3 {
  font-size: 1.2rem;
}

.gh-card p {
  margin: 0 0 12px;
  color: var(--gh-muted);
  line-height: 1.55;
}

.gh-login-card {
  max-width: 520px;
}

.gh-status-shell {
  max-width: 780px;
  margin: 72px auto 0;
  padding: 32px;
}

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

.gh-field {
  display: grid;
  gap: 8px;
}

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

.gh-field label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--gh-ink);
}

.gh-help {
  margin: -2px 0 0;
  font-size: 0.84rem;
  color: var(--gh-muted);
}

.gh-field input,
.gh-field select,
.gh-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(27, 36, 48, 0.16);
  background: var(--gh-surface-strong);
  color: var(--gh-ink);
}

.gh-field textarea {
  min-height: 140px;
  resize: vertical;
}

.gh-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.gh-checkbox input {
  width: auto;
}

.gh-actions,
.gh-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.gh-actions {
  margin-top: 18px;
}

.gh-button {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 700;
  background: var(--gh-brand);
  color: #fff;
  box-shadow: 0 14px 28px rgba(13, 118, 110, 0.18);
}

.gh-button:hover {
  background: var(--gh-brand-strong);
}

.gh-button--secondary {
  background: rgba(27, 36, 48, 0.08);
  color: var(--gh-ink);
  box-shadow: none;
}

.gh-button--secondary:hover {
  background: rgba(27, 36, 48, 0.14);
}

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

.gh-button--danger:hover {
  background: #912018;
}

.gh-message {
  padding: 12px 14px;
  border-radius: 14px;
  margin-bottom: 16px;
  font-size: 0.94rem;
}

.gh-message--error {
  background: rgba(180, 35, 24, 0.1);
  color: var(--gh-danger);
}

.gh-message--success {
  background: rgba(13, 118, 110, 0.1);
  color: var(--gh-brand-strong);
}

.gh-list {
  display: grid;
  gap: 14px;
}

.gh-list-item {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(27, 36, 48, 0.08);
  background: rgba(255, 255, 255, 0.78);
}

.gh-list-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.gh-pill-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.gh-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(27, 36, 48, 0.08);
  color: var(--gh-ink);
}

.gh-pill[data-status="queued"] {
  background: rgba(181, 71, 8, 0.12);
  color: var(--gh-warn);
}

.gh-pill[data-status="sent"] {
  background: rgba(13, 118, 110, 0.12);
  color: var(--gh-brand-strong);
}

.gh-pill[data-status="failed"] {
  background: rgba(180, 35, 24, 0.12);
  color: var(--gh-danger);
}

.gh-subtle {
  color: var(--gh-muted);
  font-size: 0.92rem;
}

.gh-empty {
  padding: 22px;
  border-radius: 18px;
  border: 1px dashed rgba(27, 36, 48, 0.18);
  color: var(--gh-muted);
  background: rgba(255, 255, 255, 0.58);
}

.gh-loading {
  color: var(--gh-muted);
}

@media (max-width: 960px) {
  .gh-panel-grid,
  .gh-hero-meta,
  .gh-summary-grid,
  .gh-status-grid,
  .gh-form-grid {
    grid-template-columns: 1fr;
  }

  .gh-hero-top,
  .gh-list-head {
    flex-direction: column;
  }
}
