:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --panel-strong: #fcfcfd;
  --line: #e6e7eb;
  --ink: #171717;
  --muted: #6f6f78;
  --accent: #171717;
  --danger: #b42318;
  --shadow: 0 16px 40px rgba(23, 23, 23, 0.05);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Neue Haas Grotesk Display Pro", "Helvetica Neue", Arial, sans-serif;
}

.shell {
  max-width: 1340px;
  margin: 0 auto;
  padding: 20px;
}

.login-shell,
.pending-shell {
  min-height: calc(100vh - 48px);
  display: grid;
  place-items: center;
}

.login-card,
.pending-card,
.hero,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.login-card {
  width: min(420px, 100%);
  padding: 18px;
  display: grid;
  gap: 12px;
}

.pending-card {
  width: min(620px, 100%);
  padding: 28px;
}

.hero {
  padding: 20px 22px;
  margin-bottom: 16px;
}

.panel {
  padding: 18px 18px 20px;
}

.hero h1,
.panel h2,
.panel h3 {
  margin: 0 0 8px;
  font: 600 22px/1.2 "Neue Haas Grotesk Display Pro", "Helvetica Neue", Arial, sans-serif;
}

.hero-copy {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.hero-account {
  min-width: 220px;
  display: grid;
  justify-items: end;
  gap: 10px;
}

.muted,
.hero p,
.pending-copy {
  color: var(--muted);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--muted);
  font: 600 12px/1.1 "Neue Haas Grotesk Display Pro", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pending-copy {
  margin: 0 0 12px;
  line-height: 1.6;
}

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

.layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 16px;
}

.stack {
  display: grid;
  gap: 16px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.stat {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: var(--panel-strong);
}

.stat strong {
  display: block;
  font: 700 28px/1 "Helvetica Neue", Arial, sans-serif;
}

.auth-actions,
.editor-actions,
.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.auth-actions-stacked {
  flex-direction: column;
}

.auth-main,
.auth-full {
  width: 100%;
}

button,
.button-link {
  border: 0;
  border-radius: 14px;
  padding: 13px 16px;
  cursor: pointer;
  font: 600 14px/1 "Neue Haas Grotesk Display Pro", "Helvetica Neue", Arial, sans-serif;
  transition: opacity 120ms ease;
}

button:hover,
.button-link:hover {
  opacity: 0.92;
}

.primary {
  background: #111111;
  color: #ffffff;
}

.secondary {
  background: #f5f6f8;
  color: #111111;
}

.google-button {
  background: #ffffff;
  color: #111111;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.google-button-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.danger {
  background: #fef3f2;
  color: var(--danger);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  padding: 14px 15px;
  color: var(--ink);
  font: 400 15px/1.35 "Neue Haas Grotesk Text Pro", "Helvetica Neue", Arial, sans-serif;
}

input::placeholder,
textarea::placeholder {
  color: #9a9aa4;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

label {
  display: block;
  margin: 12px 0 7px;
  color: var(--muted);
  font: 500 13px/1.2 "Helvetica Neue", Arial, sans-serif;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.preview {
  width: 100%;
  min-height: 720px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font: 400 14px/1.35 "Helvetica Neue", Arial, sans-serif;
  vertical-align: top;
}

.table th {
  color: var(--muted);
  font-weight: 600;
}

.section-toolbar {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.audience-summary {
  margin: 14px 0;
}

.subscribe-card {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.subscribe-card h3 {
  margin-bottom: 12px;
}

.inline-action {
  padding: 8px 12px;
  border-radius: 10px;
}

.button-link {
  background: transparent;
  padding: 0;
  text-align: left;
}

.button-link.secondary {
  color: var(--ink);
}

.asset-preview img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.status {
  min-height: 22px;
  margin-top: 4px;
  color: var(--ink);
  font: 500 14px/1.3 "Helvetica Neue", Arial, sans-serif;
}

.error {
  color: var(--danger);
}

.hidden {
  display: none;
}

@media (max-width: 980px) {
  .layout,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .shell {
    padding: 18px 14px 42px;
  }

  .hero-account {
    justify-items: start;
  }
}
