/* Aftab | AI at Work. Brand rules live in CLAUDE.md.
   Palette: grey ground #ECEFF0, white surfaces, ink #232830,
   coral #E8604C (display and decoration) with #BE3A28 (small text and fills),
   decorative blue #8BB8D8. Never a dark background. */

:root {
  --ground: #eceff0;
  --surface: #ffffff;
  --surface-alt: #f4f6f6;
  --ink: #232830;
  --ink-2: #454c55;
  --muted: #5b6570;
  --coral: #e8604c;
  --coral-deep: #be3a28;
  --coral-deeper: #a93222;
  --coral-tint: #faedea;
  --blue: #8bb8d8;
  --line: #dce1e4;
  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --shadow: 0 1px 2px rgba(35, 40, 48, 0.04), 0 10px 30px rgba(35, 40, 48, 0.06);
  --display: "Fraunces", Georgia, serif;
  --sans: "Poppins", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 1rem;
}

h3 {
  font-family: var(--sans);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  margin: 0 0 0.7rem;
}

p {
  margin: 0 0 1.15rem;
}

a {
  color: var(--coral-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--coral-deeper);
}

:focus-visible {
  outline: 3px solid var(--coral-deep);
  outline-offset: 2px;
  border-radius: 2px;
}

.container {
  max-width: 66rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* A reading width for long text. It must centre itself: the centring lives
   on .container, so a capped child with default margins would hug the left
   and its right edge would miss every full width panel above and below it.
   A page picks one width and every panel in that column keeps it. */
.narrow {
  max-width: 46rem;
  margin-inline: auto;
}

/* The while-you-wait video on the check your inbox page: a responsive
   16 by 9 frame, the one embed on the whole site. */

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  margin: 1.25rem 0;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Skip link */

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--surface);
  color: var(--coral-deep);
  font-weight: 600;
  padding: 0.6rem 1rem;
  z-index: 10;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* Header */

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.6rem;
  padding-top: 1.3rem;
  padding-bottom: 1.1rem;
}

.brand {
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover {
  color: var(--coral-deep);
}

.brand-pipe {
  color: var(--coral);
  font-weight: 400;
  padding: 0 0.15rem;
}

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.4rem;
}

.site-nav a {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--ink);
  text-decoration: none;
  padding: 0.25rem 0;
}

.site-nav a:hover {
  color: var(--coral-deep);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.header-mail {
  font-weight: 500;
  font-size: 0.9rem;
}

/* Buttons and links */

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.4rem 0.35rem 1.5rem;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn-primary {
  background: var(--coral-deep);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--coral-deeper);
  color: #ffffff;
}

.btn-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--coral-deeper);
}

.btn-chip svg {
  width: 1.05rem;
  height: 1.05rem;
}

.link-underline {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--coral-deep);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* Panels */

.panel {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: var(--shadow);
}

/* Hero (home) */

.hero {
  padding: 1.2rem 0 0;
}

.hero-panel {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-lg);
  /* Same inset as .panel, so hero text starts on the same line as the text
     in every panel below it. */
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: var(--shadow);
}

/* The hero is one column with a single action in it, so nothing competes
   with the button. */
.hero-intro {
  max-width: 46rem;
}

.hero-support {
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--ink-2);
  margin-bottom: 1.8rem;
}

.hero-fear {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 1rem 0 0;
}

.credential {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

/* About: the portrait sits beside the text, sharing the section's edges. */
.about-grid {
  display: grid;
  grid-template-areas: "photo text";
  grid-template-columns: 0.8fr 1.5fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
}

.about-photo {
  grid-area: photo;
}

.about-text {
  grid-area: text;
}


.hero-greeting {
  font-size: clamp(2.75rem, 4.6vw, 3.6rem);
  line-height: 1.08;
  margin-bottom: 1rem;
}

.hero-name {
  color: var(--coral);
}

.about-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: var(--radius-md);
  background: var(--surface-alt);
  display: block;
}

/* The consent banner. Rendered hidden and revealed by the consent script, so
   it never appears to someone whose browser would not run the tags anyway. */

.consent {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  display: flex;
  justify-content: center;
}

.consent[hidden] {
  display: none;
}

.consent-inner {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(35, 40, 48, 0.18);
  padding: 1.25rem 1.5rem;
  max-width: 46rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.5rem;
}

.consent-inner p {
  margin: 0;
  flex: 1 1 20rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-2);
}

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.consent-actions .btn {
  white-space: nowrap;
}

/* Decorative circles */

.hero-deco {
  position: absolute;
  top: clamp(1rem, 3vw, 2.2rem);
  right: clamp(1rem, 4vw, 3rem);
  width: 8rem;
  height: 5rem;
  pointer-events: none;
}

.hero-ring {
  position: absolute;
  left: 0;
  top: 0;
  width: 3.4rem;
  height: 3.4rem;
  border: 3px solid var(--blue);
  border-radius: 50%;
}

.hero-ring::after {
  content: "";
  position: absolute;
  right: -0.55rem;
  top: -0.55rem;
  width: 1.15rem;
  height: 1.15rem;
  border: 3px solid var(--coral);
  border-radius: 50%;
}

.hero-dot {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--blue);
}

.deco-small {
  width: 6rem;
  height: 4rem;
}

.deco-small .hero-ring {
  width: 2.4rem;
  height: 2.4rem;
}

.deco-small .hero-dot {
  width: 1.1rem;
  height: 1.1rem;
}

/* Eyebrow */

.eyebrow {
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral-deep);
  margin: 0 0 1rem;
}

/* Sections */

.section {
  padding: clamp(1.8rem, 3.5vw, 2.75rem) 0;
}

.pipe-heading {
  font-size: clamp(1.55rem, 3vw, 2rem);
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
}

.pipe-heading::before {
  content: "";
  flex: none;
  width: 5px;
  height: 1.6rem;
  background: var(--coral);
  border-radius: 2px;
  transform: translateY(0.25rem);
}

.section-intro {
  max-width: 44rem;
  margin-bottom: 1.5rem;
}

/* Cards */

.card-grid {
  /* auto-fill, not auto-fit: a lone card keeps its column width instead of
     stretching across the whole row. */
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
  gap: 1.4rem;
}

.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 1.05rem;
}

.card p {
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.2rem;
}

.card-link {
  margin-top: auto;
  font-weight: 600;
  font-size: 0.92rem;
}

.card .card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* A download card with a preview image: the whole cover shown small, like a
   product shot. Never cropped, so text on the artwork is never cut. */
.card-media .thumb {
  display: inline-block;
  height: 12rem;
  width: auto;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.card-media > a {
  display: block;
  line-height: 0;
  text-align: center;
  margin-bottom: 1.1rem;
}

.page-hero-image {
  display: block;
  max-width: 30rem;
  width: 100%;
  height: auto;
  margin: 1.6rem auto 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

/* Video cards */

.video-card {
  padding: 0;
  overflow: hidden;
}

.video-card .thumb {
  display: block;
  width: 100%;
  height: auto;
  /* Real thumbnails: fixed 16 to 9 with cover, which also crops the black
     letterbox bars YouTube's hq size carries. */
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.video-card > a {
  display: block;
  line-height: 0;
}

.video-card .video-body {
  padding: 1.3rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.video-card h3 {
  font-size: 1rem;
}

/* The watch next card on the confirmed page: one card on its own, so it is
   capped rather than filling the whole panel. */
.watch-next {
  max-width: 26rem;
  margin: 0.5rem 0 1.5rem;
}

.watch-next-lead {
  margin-bottom: 0.75rem;
  color: var(--muted);
}

/* Latest issues on the home page */

.issue-list {
  margin-bottom: 1.2rem;
}

.issue-list .meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-left: 0.5rem;
  white-space: nowrap;
}

/* Pipe bullet lists */

.fact-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.fact-list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.7rem;
}

.fact-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 4px;
  height: 0.95em;
  background: var(--coral);
  border-radius: 2px;
}

.inside-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 44rem;
}

.inside-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.85rem;
}

.inside-list li:last-child {
  margin-bottom: 0;
}

.inside-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 4px;
  height: 0.95em;
  background: var(--coral);
  border-radius: 2px;
}

/* Signup form */

.signup-form {
  max-width: 26rem;
}

.field {
  margin-bottom: 1.1rem;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.field-optional {
  font-weight: 400;
  color: var(--muted);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
}

.field input:hover,
.field textarea:hover,
.field select:hover {
  border-color: var(--muted);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--coral-deep);
}

.field input::placeholder {
  color: var(--muted);
}

/* Honeypot: off screen for people, still fillable by bots. */
.field-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 1rem 0 0;
}

.form-error {
  background: var(--coral-tint);
  border-left: 4px solid var(--coral-deep);
  border-radius: 0 10px 10px 0;
  padding: 0.8rem 1rem;
  margin: 0 0 1.2rem;
  font-size: 0.92rem;
  color: var(--ink);
}

/* Magnet pages */

.page-hero {
  padding: 1.2rem 0 0;
}

.page-hero h1 {
  font-size: clamp(2.1rem, 5vw, 3rem);
  max-width: 44rem;
  margin-bottom: 1.2rem;
}

.page-hero .promise {
  font-size: 1.08rem;
  line-height: 1.65;
  max-width: 44rem;
  margin-bottom: 0;
}

.how-note {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 1.2rem 1.5rem;
  /* Same column as the reading width panels it sits under. */
  max-width: 46rem;
  margin-inline: auto;
  font-size: 0.98rem;
}

.how-note p {
  margin: 0;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-links {
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  font-weight: 500;
  font-size: 0.9rem;
}

.footer-links a {
  color: var(--ink);
}

.footer-links a:hover {
  color: var(--coral-deep);
}

.site-footer .copyright {
  margin-bottom: 0.5rem;
}

.site-footer .disclaimer {
  margin: 0;
  max-width: 44rem;
}

/* Motion */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* Small screens: keep the hero text clear of the decorative circles */

@media (max-width: 44rem) {
  .hero-intro {
    max-width: none;
  }
}

/* Small screens */

@media (max-width: 44rem) {
  .about-grid {
    grid-template-areas:
      "photo"
      "text";
    grid-template-columns: 1fr;
  }

  .about-photo img {
    max-width: 18rem;
    margin: 0 auto;
  }

  .hero-deco {
    display: none;
  }

  .site-nav {
    margin-left: 0;
    flex-basis: 100%;
    order: 3;
  }

  .header-mail {
    margin-left: auto;
  }

  .btn {
    width: 100%;
    justify-content: space-between;
  }

  .pipe-heading {
    font-size: 1.45rem;
  }
}

/* Admin
   Private pages, same tokens as the public site. No new colours. */

.admin-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.admin-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.6rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.admin-nav {
  margin-left: auto;
}

.admin-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.3rem;
}

.admin-nav a {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--ink);
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.admin-nav a:hover {
  color: var(--coral-deep);
}

.admin-nav a.is-current {
  color: var(--coral-deep);
  border-bottom-color: var(--coral);
}

.admin-env {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--coral-deeper);
  background: var(--coral-tint);
  border-radius: var(--radius-pill);
  padding: 0.15rem 0.65rem;
}

.admin-logout {
  margin: 0;
}

.admin-main {
  padding: 2rem 0 3.5rem;
}

.admin-main h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 1.5rem;
}

.admin-main .panel {
  margin-bottom: 2rem;
}

.admin-main .pipe-heading {
  margin-top: 2.5rem;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 1.2rem 0 0;
}

/* Buttons: .btn's padding is built around the arrow chip, so admin buttons
   without one opt out with .btn-plain. */

.btn-plain {
  padding: 0.65rem 1.4rem;
  gap: 0;
}

.btn-small {
  font-size: 0.85rem;
  padding: 0.45rem 1rem;
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  background: var(--surface);
  border-color: var(--coral-deep);
  color: var(--coral-deep);
}

.btn-danger {
  background: var(--surface);
  color: var(--coral-deeper);
  border: 1px solid var(--coral-deeper);
}

.btn-danger:hover {
  background: var(--coral-deeper);
  color: #ffffff;
}

/* Tables */

.table-wrap {
  overflow-x: auto;
}

table.data {
  width: 100%;
  /* Wide tables scroll inside their wrapper rather than squeezing: without a
     floor the widest one (subscribers, eight columns and two row buttons)
     crushed its last column until the buttons were clipped in half. */
  min-width: 70rem;
  border-collapse: collapse;
  font-size: 0.92rem;
}

/* Row actions sit on one line: they are the column that gets crushed. */
table.data td:last-child {
  white-space: nowrap;
}

table.data td:last-child .inline-form {
  margin-bottom: 0;
}

table.data th {
  text-align: left;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 0.9rem 0.6rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

table.data td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

table.data tbody tr:hover {
  background: var(--surface-alt);
}

table.data .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Small forms sitting side by side inside a table cell. */
.inline-form {
  display: inline-block;
  margin: 0 0.35rem 0 0;
}

/* Broadcast editor, admin only: write on the left, live preview on the right.
   The panel drops the admin-form width cap so both panes get real room; the
   double class outranks .admin-form, which appears later in this file. */

.admin-form.editor-panel {
  max-width: none;
}

.editor-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
}

@media (min-width: 64rem) {
  .editor-columns {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

#editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
}

#broadcast-editor textarea {
  min-height: 30rem;
}

#editor-preview {
  width: 100%;
  height: 42rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

/* The content calendar grid */

table.calendar {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 40rem;
}

table.calendar th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 0.5rem 0.5rem;
}

table.calendar td {
  border: 1px solid var(--line);
  vertical-align: top;
  padding: 0.4rem 0.5rem 0.6rem;
  height: 5.5rem;
}

table.calendar td.cal-blank {
  background: var(--surface-alt);
  border-color: var(--line);
}

table.calendar td.cal-today {
  outline: 2px solid var(--coral-deep);
  outline-offset: -2px;
}

.cal-day {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.cal-chip {
  display: block;
  font-size: 0.74rem;
  line-height: 1.35;
  border-radius: 6px;
  padding: 0.2rem 0.4rem;
  margin: 0 0 0.25rem;
  text-decoration: none;
  overflow-wrap: break-word;
}

.cal-chip-sent {
  background: var(--coral-tint);
  color: var(--coral-deep);
}

.cal-chip-scheduled {
  background: #e8f0f7;
  color: var(--ink-2);
}

span.cal-chip {
  display: inline-block;
  margin: 0 0.3rem 0 0;
}

.cal-waiting {
  padding-left: 1.1em;
  margin: 0;
}

.cal-waiting li {
  margin-bottom: 0.4rem;
}

/* A button dressed as a text link, for actions that read like prose. */
.btn-linklike {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--coral-deep);
  text-decoration: underline;
  cursor: pointer;
}

.btn-linklike:hover {
  color: var(--coral-deeper);
}

/* The one job subscribe page */

.subscribe-hero {
  text-align: center;
}

.subscribe-hero .signup-form {
  max-width: 26rem;
  margin: 1.6rem auto 0;
  text-align: left;
}

.subscribe-peek {
  margin-top: 1.4rem;
}

.subscribe-peek a {
  color: var(--coral-deep);
  font-weight: 600;
}

/* Notices */

.notice {
  border-left: 4px solid var(--blue);
  background: var(--surface-alt);
  border-radius: 0 10px 10px 0;
  padding: 0.8rem 1rem;
  margin: 0 0 1.2rem;
  font-size: 0.92rem;
  color: var(--ink);
}

.notice-problem {
  border-left-color: var(--coral-deep);
  background: var(--coral-tint);
}

/* Status pills */

.pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  padding: 0.15rem 0.65rem;
  white-space: nowrap;
}

.pill-live {
  background: var(--coral-tint);
  color: var(--coral-deeper);
}

.pill-draft {
  background: var(--surface-alt);
  color: var(--muted);
}

.pill-retired {
  background: var(--surface-alt);
  color: var(--muted);
  text-decoration: line-through;
}

.pill-sending {
  background: var(--coral-tint);
  color: var(--coral-deeper);
}

.pill-sent,
.pill-pending {
  background: var(--surface-alt);
  color: var(--muted);
}

.pill-failed {
  background: var(--coral-tint);
  color: var(--coral-deeper);
}

/* Form extras */

.email-effective {
  background: var(--surface-alt);
  border-left: 4px solid var(--blue);
  border-radius: 0 10px 10px 0;
  padding: 0.9rem 1rem;
  margin: 0 0 1.2rem;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--muted);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 16rem;
  overflow-y: auto;
}

.field-checkbox label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 500;
}

.field-checkbox input[type='checkbox'] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--coral-deep);
}

.admin-thumb {
  max-width: 16rem;
  border-radius: var(--radius-md);
  display: block;
  margin: 0 0 1rem;
  border: 1px solid var(--line);
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
  line-height: 1.6;
}

.field input[type="file"] {
  padding: 0.55rem 0.6rem;
  font-size: 0.9rem;
}

.field-help {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0.35rem 0 0;
}

.copy-field {
  font-family: ui-monospace, "Cascadia Mono", Menlo, monospace;
  font-size: 0.85rem;
}

/* Admin panels all fill the column so their edges line up down the page.
   The comfortable reading width belongs to the controls inside them, not to
   the panel: capping the panel made every screen a ladder of different
   widths depending on which panels happened to carry a form. */
.admin-form .field,
.admin-form input,
.admin-form select,
.admin-form textarea,
.admin-form .field-help,
.admin-form > p {
  max-width: 42rem;
}

.admin-form .admin-actions {
  max-width: none;
}

.danger-zone {
  border: 1px solid var(--coral-deeper);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-top: 2rem;
}

.danger-zone h2 {
  font-size: 1.1rem;
  font-family: var(--sans);
  margin-bottom: 0.5rem;
}

/* Dashboard stats */

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.stat-row div {
  display: flex;
  flex-direction: column;
}

.stat-row .stat {
  font-family: var(--display);
  font-size: 2.2rem;
  color: var(--ink);
  line-height: 1.1;
}

.stat-row span {
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 44rem) {
  .btn-plain {
    width: auto;
    justify-content: center;
  }

  .admin-nav {
    margin-left: 0;
    flex-basis: 100%;
    order: 3;
  }
}
