:root {
  --bg: #ebe4d8;
  --paper: #fbf7f1;
  --ink: #1c2430;
  --muted: #5e6874;
  --line: #ddd3c4;
  --navy: #1b365d;
  --navy-2: #12243f;
  --copper: #8d3d2c;
  --good: #1d6b45;
  --bad: #8d2c2c;
  --warn: #8a5a12;
  --shadow: 0 12px 40px rgba(28, 36, 48, 0.08);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Public Sans", "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.45;
}
button, input, textarea, select { font: inherit; color: inherit; }
button, .linkish {
  background: var(--navy);
  color: #f7f4ef;
  border: 0;
  border-radius: 4px;
  padding: 8px 12px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
button.secondary, a.secondary {
  background: transparent;
  color: var(--navy);
  border: 1px solid #c9bfb0;
}
button.danger { background: var(--copper); }
button:disabled { opacity: 0.55; cursor: not-allowed; }
a { color: var(--navy); }
h1, h2, h3 { font-family: Newsreader, Georgia, serif; font-weight: 550; letter-spacing: -0.02em; }
h1 { font-size: 34px; margin: 0 0 8px; }
h2 { font-size: 26px; margin: 0 0 8px; }
h3 { font-size: 18px; margin: 0 0 6px; }

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(27, 54, 93, 0.12), transparent 40%),
    var(--bg);
}
.login-card {
  width: min(440px, 100%);
  background: var(--paper);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border-top: 6px solid var(--navy);
}
.login-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--muted);
  font-size: 13px;
}
.login-or::before, .login-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
button.block { width: 100%; justify-content: center; }
.kicker {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 8px;
}
label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 6px; }
input[type="text"], input[type="password"], input[type="email"], textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  border-radius: 4px;
  padding: 10px 12px;
}
textarea { min-height: 180px; resize: vertical; line-height: 1.5; }
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.nav {
  background: var(--navy-2);
  color: #f4efe6;
  padding: 22px 16px;
}
.brand { font-family: Newsreader, Georgia, serif; font-size: 22px; line-height: 1.15; }
.brand span { display: block; font-family: "Public Sans", sans-serif; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #d7c4a3; margin-top: 4px; }
.nav a {
  display: block;
  color: #f4efe6;
  text-decoration: none;
  padding: 9px 10px;
  border-radius: 4px;
  margin-top: 4px;
}
.nav a.active, .nav a:hover { background: rgba(255,255,255,0.08); }
.nav-foot { margin-top: 28px; }
.nav-user { color: #d7c4a3; font-size: 13px; margin: 0 0 10px; }
.main { padding: 28px 32px 64px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.spread { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.muted { color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin-top: 18px; }
.card, .panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 16px 14px;
  box-shadow: var(--shadow);
}
.panel { margin-top: 16px; }
.pill {
  display: inline-block;
  border-radius: 99px;
  padding: 2px 8px;
  font-size: 12px;
  background: #ece4d6;
  text-transform: lowercase;
}
.pill.good { background: #e5f3eb; color: var(--good); }
.pill.bad { background: #f8e6e6; color: var(--bad); }
.pill.warn { background: #f8efd8; color: var(--warn); }
.stats { display: flex; gap: 18px; flex-wrap: wrap; margin: 8px 0 18px; }
.stat strong { display: block; font-family: Newsreader, Georgia, serif; font-size: 28px; }
table { width: 100%; border-collapse: collapse; background: var(--paper); }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.error { background: #f8e6e6; color: var(--bad); padding: 10px 12px; border-radius: 4px; margin: 10px 0; }
.notice { background: #e5f3eb; color: var(--good); padding: 10px 12px; border-radius: 4px; margin: 10px 0; }
.fine-tune { border: 1px solid #e2c7a4; background: #fffaf3; }
.fine-tune h2 { color: var(--navy); }
.preview {
  width: 100%;
  min-height: 480px;
  border: 1px solid var(--line);
  background: white;
}
.help { font-size: 13px; color: var(--muted); margin-top: 0; }
.check { display: flex; gap: 8px; align-items: center; margin: 8px 0; }
.check input { width: auto; }
.alert-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 2px 16px; margin: 4px 0 12px; }
.subscriber { padding: 8px 0; border-bottom: 1px solid var(--line); }
.subscriber:last-of-type { border-bottom: 0; }
.section-picks { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 4px 0 8px; }
.section-picks .check { margin: 0; font-weight: 500; }
@media (max-width: 800px) {
  .shell { grid-template-columns: 1fr; }
  .nav { padding-bottom: 8px; }
  .main { padding: 18px 14px 48px; }
}
