:root {
  --bg: #f3efe6;
  --panel: rgba(255, 252, 246, 0.82);
  --panel-strong: #fff8ec;
  --text: #1b1b18;
  --muted: #625e55;
  --line: rgba(27, 27, 24, 0.12);
  --brand: #0f766e;
  --brand-strong: #115e59;
  --accent: #d97706;
  --shadow: 0 24px 80px rgba(45, 35, 17, 0.15);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(217, 119, 6, 0.22), transparent 32%),
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.18), transparent 28%),
    linear-gradient(160deg, #f8f2e8 0%, #efe7d8 54%, #f2ede6 100%);
}

a {
  color: inherit;
}

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 64px;
}

.hero-panel,
.auth-panel,
.metric-card {
  backdrop-filter: blur(14px);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-panel,
.auth-panel {
  border-radius: 32px;
  padding: 36px;
}

.dashboard-shell {
  padding-top: 28px;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.header-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.eyebrow,
.entry-label,
.hint,
.status-line,
.json-box {
  font-family: "IBM Plex Mono", monospace;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-strong);
}

h1,
h2 {
  margin: 0;
  line-height: 1.02;
}

h1 {
  max-width: 12ch;
  font-size: clamp(2.6rem, 5vw, 5rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.hero-copy {
  max-width: 62ch;
  margin: 18px 0 0;
  font-size: 1.02rem;
  color: var(--muted);
}

.hero-grid,
.dashboard-grid {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

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

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

.entry-card,
.metric-card {
  border-radius: 24px;
  padding: 24px;
}

.entry-card {
  background: var(--panel-strong);
  border: 1px solid var(--line);
}

.entry-label {
  margin: 0 0 12px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
}

.field span {
  font-size: 0.95rem;
  font-weight: 500;
}

input {
  width: 100%;
  border: 1px solid rgba(27, 27, 24, 0.14);
  border-radius: 16px;
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.82);
}

input:focus {
  outline: 2px solid rgba(15, 118, 110, 0.26);
  border-color: rgba(15, 118, 110, 0.4);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 20px;
  border: none;
  text-decoration: none;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 140ms ease, opacity 140ms ease, background 140ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--brand);
  color: #f7fffd;
}

.button-secondary {
  background: rgba(17, 94, 89, 0.1);
  color: var(--brand-strong);
  border: 1px solid rgba(17, 94, 89, 0.18);
}

.button-ghost {
  background: rgba(27, 27, 24, 0.06);
  color: var(--text);
  border: 1px solid rgba(27, 27, 24, 0.1);
}

.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.aux-links {
  margin-top: 16px;
  color: var(--muted);
}

.hint,
.status-line {
  margin: 14px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.selection-panel {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.tenant-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.tenant-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(17, 94, 89, 0.16);
  background: rgba(17, 94, 89, 0.08);
  color: var(--brand-strong);
  font: inherit;
  cursor: pointer;
}

.tenant-chip strong {
  margin-right: 8px;
}

.metric-card {
  min-height: 260px;
}

.span-two {
  grid-column: span 2;
}

.json-box {
  margin: 14px 0 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #21312f;
}

@media (max-width: 820px) {
  .hero-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .span-two {
    grid-column: span 1;
  }

  .hero-panel,
  .auth-panel {
    padding: 24px;
  }

  .dashboard-header {
    flex-direction: column;
  }
}
