/*


 */

/* ============================================================
 * AUTH PAGES
 * ============================================================ */
.auth-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  background:
    radial-gradient(circle at 50% -10%, rgba(84, 206, 151, 0.10) 0%, transparent 60%),
    var(--bg-alt);
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}

.auth-wordmark {
  font-family: "IBM Plex Serif", Georgia, serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #1a1a1a;
  text-decoration: none;
  margin-bottom: 32px;
}

/* ---- Login intro hero (glossy, classy, brand-led) ---- */
.auth-shell-intro {
  padding-top: 64px;
  padding-bottom: 64px;
  background:
    radial-gradient(circle at 50% -8%, rgba(84, 206, 151, 0.16) 0%, transparent 55%),
    radial-gradient(circle at 12% 95%, rgba(84, 206, 151, 0.08) 0%, transparent 50%),
    var(--bg-alt);
}

.intro-hero {
  width: 100%;
  max-width: 720px;
  margin: 0 auto 44px;
  text-align: center;
  position: relative;
}

.intro-eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #1b7a5a;
  font-family: "IBM Plex Sans", sans-serif;
}
.intro-eyebrow::before,
.intro-eyebrow::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(27, 122, 90, 0.45), transparent);
  vertical-align: middle;
  margin: 0 14px 4px;
}

.intro-brand {
  margin: 0;
  font-family: "IBM Plex Serif", Georgia, serif;
  font-size: clamp(54px, 8vw, 92px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.98;
  position: relative;
}
.intro-brand-text {
  background: linear-gradient(135deg,
    #074e39 0%,
    #1b7a5a 25%,
    #2ead78 55%,
    #1b7a5a 85%,
    #0a4a37 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
  filter: drop-shadow(0 12px 28px rgba(27, 122, 90, 0.18))
          drop-shadow(0 2px 6px rgba(15, 31, 26, 0.10));
  position: relative;
}
.intro-brand-text::after {
  /* Subtle gloss highlight along the top edge */
  content: "Launch Engine";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.10) 38%,
    transparent 55%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
  pointer-events: none;
  mix-blend-mode: screen;
}

.intro-tagline {
  margin: 18px 0 0;
  font-family: "IBM Plex Serif", Georgia, serif;
  font-style: italic;
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 400;
  color: #4a4a4a;
  letter-spacing: -0.005em;
  line-height: 1.35;
}
.intro-cm {
  font-style: normal;
  font-weight: 600;
  color: #1a1a1a;
  background: linear-gradient(180deg, transparent 62%, rgba(84, 206, 151, 0.28) 62%, rgba(84, 206, 151, 0.28) 92%, transparent 92%);
  padding: 0 3px;
}

.intro-sub {
  margin: 22px auto 0;
  max-width: 460px;
  font-size: 14.5px;
  color: #6b6b6b;
  line-height: 1.6;
}

/* Customer portrait illustration on the sign-in card */
.auth-illustration {
  margin: 0 0 22px;
  display: flex;
  justify-content: center;
  filter: drop-shadow(0 10px 20px rgba(15, 31, 26, 0.10));
}
.auth-illustration svg {
  width: 160px;
  height: 160px;
  display: block;
}

/* Glossy card edge under the hero */
.auth-card-glossy {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, #ffffff 30%),
    #ffffff;
  border-color: rgba(229, 229, 229, 0.95);
  box-shadow:
    0 24px 60px rgba(15, 31, 26, 0.10),
    0 4px 14px rgba(15, 31, 26, 0.05),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}
.auth-card-glossy::before {
  /* Top highlight stripe for the gloss feel */
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(84, 206, 151, 0.45), transparent);
  border-radius: 1px;
}

@media (max-width: 640px) {
  .intro-hero { margin-bottom: 32px; }
  .intro-eyebrow::before,
  .intro-eyebrow::after { width: 18px; margin: 0 8px 4px; }
  .intro-sub { max-width: 320px; font-size: 13.5px; }
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 18px;
  padding: 36px 36px 32px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06),
              0 1px 2px rgba(15, 23, 42, 0.04);
  text-align: left;
}

.auth-card-check { text-align: center; }

.auth-eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1b7a5a;
}

.auth-title {
  font-family: "IBM Plex Serif", Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
  color: #1a1a1a;
}

.auth-subtitle {
  margin: 0 0 22px;
  color: #6b6b6b;
  font-size: 14.5px;
  line-height: 1.55;
}
.auth-subtitle strong { color: #1a1a1a; font-weight: 600; }

.auth-form { display: flex; flex-direction: column; gap: 16px; margin-bottom: 18px; }

.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field label {
  font-size: 12px;
  font-weight: 600;
  color: #6b6b6b;
  letter-spacing: 0.02em;
}
.auth-field input {
  font-family: inherit;
  font-size: 14px;
  padding: 11px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  background: #fff;
  color: #1a1a1a;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.auth-field input:focus {
  outline: none;
  border-color: #55ce97;
  box-shadow: 0 0 0 4px rgba(84, 206, 151, 0.18);
}

.auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease, transform .08s ease, box-shadow .15s ease;
}
.auth-btn:active { transform: translateY(1px); }
.auth-btn-primary {
  background: #55ce97;
  color: #fff;
  border-color: #55ce97;
  box-shadow: 0 6px 18px rgba(84, 206, 151, 0.28);
}
.auth-btn-primary:hover { background: #2ead78; border-color: #2ead78; }

.auth-fineprint {
  margin: 0;
  color: #9a9a9a;
  font-size: 12.5px;
  line-height: 1.6;
}
.auth-fineprint a { color: #1b7a5a; font-weight: 600; }

.auth-switch {
  margin-top: 22px;
  font-size: 13.5px;
  color: #6b6b6b;
}
.auth-switch a {
  color: #1b7a5a;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed rgba(27, 122, 90, 0.4);
}
.auth-switch a:hover { border-bottom-color: #1b7a5a; }

.auth-flash {
  margin: 0 0 18px;
  padding: 10px 14px;
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.5;
}
.auth-flash-alert { background: #fef2f2; color: #7f1d1d; border: 1px solid #fecaca; }
.auth-flash-notice { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }

.auth-check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: #f0faf7;
  color: #1b7a5a;
  border: 1px solid #d4ede6;
  margin: 0 auto 18px;
}

.auth-dev-banner {
  margin: 18px 0;
  padding: 16px 18px;
  background: linear-gradient(180deg, #f7f9fb 0%, #eef9f3 100%);
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  text-align: center;
}
.auth-dev-eyebrow {
  margin: 0 0 4px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1b7a5a;
}
.auth-dev-note {
  margin: 0 0 12px;
  font-size: 12px;
  color: #6b6b6b;
}
.auth-btn-dev { width: 100%; }

/* ============================================================
 * SIGNED-IN USER BAR (app pages)
 * ============================================================ */
.user-bar {
  background: #0f1f1a;
  color: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.user-bar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 9px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 12.5px;
}
.user-bar-meta strong { color: #fff; font-weight: 600; }
.user-bar-company { color: rgba(255, 255, 255, 0.5); }
.user-bar-logout {
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: background .12s ease;
}
.user-bar-logout:hover { background: rgba(255, 255, 255, 0.12); }

.user-bar-agent {
  background: linear-gradient(180deg, #0f1f1a 0%, #134937 100%);
  border-bottom-color: rgba(84, 206, 151, 0.2);
}
.user-bar-tag {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.user-bar-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.35);
}
.user-bar-link:hover { color: #fff; text-decoration-color: #fff; }

/* ---- Chat bubble meta + read/mark-read ---- */
.chat-bubble-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 4px;
}
.chat-bubble-read {
  display: inline-flex;
  align-items: center;
  color: #2ead78;
}
.chat-bubble-mark-read {
  font-family: var(--ff-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid #d4ede6;
  background: #fff;
  color: #1b7a5a;
  cursor: pointer;
  transition: background .12s ease, border-color .12s ease;
}
.chat-bubble-mark-read:hover {
  background: var(--green-xl);
  border-color: var(--green);
}

/* ============================================================
 * AGENT DASHBOARD (workspace picker)
 * ============================================================ */
.agent-header {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 24px 24px;
}
.agent-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}
.agent-new-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-family: var(--ff-body);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background .12s ease, transform .08s ease;
}
.agent-new-cta:hover { background: #000; }
.agent-new-cta:active { transform: translateY(1px); }
.agent-new-cta svg { color: var(--green); }

.agent-page-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}
.agent-breadcrumb {
  margin: 0 0 18px;
  font-size: 13px;
}
.agent-breadcrumb a {
  color: var(--mid);
  text-decoration: none;
  font-weight: 500;
}
.agent-breadcrumb a:hover { color: var(--ink); }

.agent-create-card-page { max-width: none; padding: 32px 36px; }
.agent-create-card-page .agent-create-actions { gap: 10px; }

.agent-eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-dd);
}
.agent-title {
  margin: 0;
  font-family: var(--ff-display);
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.agent-sub {
  margin: 8px 0 0;
  color: var(--mid);
  font-size: 14px;
}

.agent-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 24px 64px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.agent-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color .15s var(--ease), transform .15s var(--ease), box-shadow .15s var(--ease);
}
.agent-card:hover {
  border-color: var(--green);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.agent-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}
.agent-card-company {
  margin: 0;
  font-family: var(--ff-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}
.agent-card-unread {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #be3144;
  font-size: 11px;
  font-weight: 700;
}
.agent-card-email {
  margin: 0 0 16px;
  font-size: 12.5px;
  color: var(--mid);
}

.agent-card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.agent-stat-num {
  font-family: var(--ff-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.agent-stat-num span {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  margin-left: 1px;
}
.agent-stat-label {
  margin: 4px 0 0;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
}

.agent-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background .12s ease;
}
.agent-card-cta:hover { background: #000; }
.agent-card-cta svg { color: var(--green); }

.agent-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.agent-card-edit {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--slate);
  font-family: var(--ff-body);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .12s ease, color .12s ease, background .12s ease;
}
.agent-card-edit:hover {
  border-color: var(--green);
  color: var(--green-dd);
  background: var(--green-xl);
}
.agent-card-edit svg { color: var(--mid); }
.agent-card-edit:hover svg { color: var(--green-dd); }

.agent-card-empty {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
}

.agent-eyebrow {
  color: var(--green-dd);
}

/* ---- Provision workspace card ---- */
.agent-just-created {
  max-width: 1180px;
  margin: 0 auto 16px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid #a7f3d0;
  border-radius: 12px;
  color: #065f46;
}
.agent-just-created-eyebrow {
  margin: 0 0 2px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.agent-just-created-msg {
  margin: 0;
  font-size: 13.5px;
}
.agent-code-pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-left: 4px;
}
.agent-just-created-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
}

.agent-create-card {
  max-width: 1180px;
  margin: 0 auto 28px;
  padding: 24px 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.agent-create-head { margin-bottom: 18px; }
.agent-create-eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-dd);
}
.agent-create-title {
  margin: 0;
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
}
.agent-create-sub {
  margin: 6px 0 0;
  color: var(--mid);
  font-size: 13.5px;
}
.agent-create-form .agent-create-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
}
.agent-create-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.agent-list-heading {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 8px;
  font-family: var(--ff-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

@media (max-width: 640px) {
  .agent-create-form .agent-create-grid { grid-template-columns: 1fr; }
}

/* ---- Locked-launch-date badge (shown to customers in hero) ---- */
.launch-hero-locked {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.20);
  color: rgba(255, 255, 255, 0.75);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: not-allowed;
}

.app-flash {
  max-width: 1180px;
  margin: 16px auto 0;
  padding: 10px 16px;
  border-radius: 9px;
  font-size: 13px;
}
.app-flash-notice {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

/* CultureMonkey theme tokens (lifted from culturemonkey.io) */
:root {
  --green:     #55ce97;
  --green-d:   #2ead78;
  --green-dd:  #1b7a5a;
  --green-l:   #e0f5ec;
  --green-xl:  #f0faf7;

  --ink:       #1a1a1a;
  --slate:     #4a4a4a;
  --mid:       #6b6b6b;
  --muted:     #9a9a9a;

  --border:    #e5e5e5;
  --border-g:  #d4ede6;

  --bg:        #ffffff;
  --bg-alt:    #f7f9f8;

  --amber:     #d97706;
  --amber-bg:  #fef3c7;
  --amber-bd:  #fde68a;

  --ff-body:    "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ff-display: "IBM Plex Serif", Georgia, "Times New Roman", serif;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 16px rgba(84, 206, 151, 0.18);
  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-alt);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.app-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

/* ---- Launch date hero ---- */
.launch-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 22px 26px;
  margin-bottom: 22px;
  background: linear-gradient(135deg, #0f1f1a 0%, #152b22 60%, #1b3b30 100%);
  border-radius: 16px;
  color: #fff;
  box-shadow: 0 12px 32px rgba(15, 31, 26, 0.18), 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  position: relative;
  overflow: hidden;
}
.launch-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 88% 18%, rgba(84, 206, 151, 0.25) 0%, transparent 55%),
    radial-gradient(circle at 10% 110%, rgba(84, 206, 151, 0.12) 0%, transparent 55%);
  pointer-events: none;
}
.launch-hero > * { position: relative; z-index: 1; }

.launch-hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(84, 206, 151, 0.18);
  color: var(--green);
  border: 1px solid rgba(84, 206, 151, 0.32);
}

.launch-hero-main { min-width: 0; }

.launch-hero-eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.launch-hero-date {
  margin: 0;
  font-family: var(--ff-display);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #fff;
}
.launch-hero-date-empty {
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}

.launch-hero-meta {
  margin: 8px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.7);
}

.launch-hero-countdown {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(84, 206, 151, 0.18);
  color: var(--green);
  border: 1px solid rgba(84, 206, 151, 0.35);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.launch-hero-countdown-today {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}
.launch-hero-countdown-past {
  background: rgba(190, 49, 68, 0.18);
  border-color: rgba(190, 49, 68, 0.4);
  color: #fca5a5;
}

.launch-hero-sep { color: rgba(255, 255, 255, 0.3); }

.launch-hero-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-self: stretch;
  justify-content: flex-end;
  margin: 0;
}

.launch-hero-input-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.launch-hero-input {
  font: inherit;
  font-size: 14px;
  font-family: var(--ff-body);
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
  color-scheme: dark;
  min-width: 170px;
}
.launch-hero-input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(84, 206, 151, 0.22);
}

@media (max-width: 720px) {
  .launch-hero {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "icon main"
      "form form";
    gap: 14px 18px;
  }
  .launch-hero-icon { grid-area: icon; }
  .launch-hero-main { grid-area: main; }
  .launch-hero-form { grid-area: form; }
  .launch-hero-date { font-size: 24px; }
}

/* ============================================================
 * CONVERSATION (per section, enterprise styling)
 * ============================================================ */

/* Non-clickable count badge in the section summary */
.chat-count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  color: var(--mid);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  letter-spacing: 0.01em;
  user-select: none;
  cursor: default;
}
.chat-count-unread {
  background: #fef2f2;
  border-color: #fecaca;
  color: #be3144;
  font-weight: 600;
}
.chat-count strong { font-weight: 700; font-size: 11.5px; }

/* Clickable trigger inside the action row (only when section is expanded) */
.chat-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 8px;
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  color: var(--slate);
  background: #fff;
  border: 1px solid var(--border-strong);
  transition: background .12s var(--ease), border-color .12s var(--ease), color .12s var(--ease);
  cursor: pointer;
}
.chat-trigger:hover { border-color: var(--mid); color: var(--ink); }
.chat-trigger svg { color: var(--mid); }
.chat-trigger strong { font-weight: 700; }

.chat-trigger-unread {
  background: #fef2f2;
  border-color: #fecaca;
  color: #be3144;
}
.chat-trigger-unread svg { color: #be3144; }
.chat-trigger-unread:hover { border-color: #be3144; }

/* Modal dialog — enterprise restyle */
.chat-modal {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0;
  max-width: min(640px, calc(100vw - 32px));
  width: 640px;
  max-height: calc(100vh - 48px);
  height: 760px;
  background: #ffffff;
  color: var(--ink);
  box-shadow:
    0 28px 64px rgba(15, 23, 42, 0.22),
    0 4px 16px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}
.chat-modal[open] {
  display: flex;
  flex-direction: column;
  animation: modalPop 160ms var(--ease);
}
.chat-modal::backdrop {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(3px);
}

/* Header — clean white with a hairline brand accent */
.chat-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  position: relative;
}
.chat-modal-header::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(to right, var(--green) 0%, var(--green-d) 60%, transparent 100%);
}
.chat-modal-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.chat-modal-title {
  margin: 0;
  font-family: var(--ff-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.chat-modal-sub {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--mid);
}
.chat-modal-close {
  background: transparent;
  border: 1px solid transparent;
  color: var(--mid);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background .12s ease, color .12s ease;
}
.chat-modal-close:hover { background: var(--bg-alt); color: var(--ink); }

/* Thread surface — soft neutral, no pattern */
.chat-modal-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: var(--bg-alt);
}

.chat-thread {
  height: 100%;
  overflow-y: auto;
  padding: 22px 22px 14px;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-empty {
  text-align: center;
  color: var(--mid);
  font-size: 13px;
  padding: 56px 18px;
}

/* Rows */
.chat-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 84%;
}
.chat-row-agent    { align-self: flex-start; }
.chat-row-customer { align-self: flex-end; flex-direction: row-reverse; }

/* Avatars */
.chat-avatar {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #1e293b;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.chat-avatar-agent {
  background: #fff;
  border: 1px solid var(--border);
}
.chat-avatar-customer {
  background: linear-gradient(135deg, #1b7a5a 0%, #2ead78 100%);
}
.chat-avatar-img { width: 100%; height: 100%; object-fit: contain; padding: 2px; }
.chat-avatar-sm { width: 36px; height: 36px; }

/* Bubbles */
.chat-bubble {
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.55;
  position: relative;
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  word-wrap: break-word;
  overflow-wrap: anywhere;
  min-width: 0;
}
.chat-bubble-agent {
  background: #fff;
  border-top-left-radius: 2px;
}
.chat-bubble-customer {
  background: #f0f5fb;
  border-color: #d6e2f0;
  border-top-right-radius: 2px;
}

.chat-bubble-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.chat-bubble-author {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.chat-bubble-customer .chat-bubble-author { color: #1e3a5f; }
.chat-bubble-agent    .chat-bubble-author { color: #1b7a5a; }

.chat-bubble-delete {
  background: transparent;
  border: none;
  padding: 2px;
  margin: -2px -4px -2px 0;
  border-radius: 4px;
  cursor: pointer;
  color: var(--muted);
  opacity: 0;
  transition: opacity .12s ease, color .12s ease, background .12s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.chat-bubble:hover .chat-bubble-delete,
.chat-bubble-delete:focus-visible { opacity: 1; }
.chat-bubble-delete:hover {
  color: #be3144;
  background: rgba(190, 49, 68, 0.08);
}

.chat-bubble-body {
  margin: 0;
  white-space: pre-wrap;
  color: var(--ink);
}
.chat-bubble-body span { display: block; }

.chat-bubble-time {
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* Composer — bigger, calmer */
.chat-modal-footer {
  padding: 14px 18px;
  background: #fff;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.chat-form {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin: 0;
}
.chat-input {
  flex: 1;
  font-family: var(--ff-body);
  font-size: 14px;
  line-height: 1.5;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  background: #fff;
  border-radius: 8px;
  color: var(--ink);
  resize: none;
  min-height: 84px;
  max-height: 220px;
  outline: none;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.chat-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(84, 206, 151, 0.18);
}
.chat-send {
  flex-shrink: 0;
  align-self: flex-end;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .12s ease, transform .08s ease;
}
.chat-send:hover  { background: #000; }
.chat-send:active { transform: translateY(1px); }

@media (max-width: 640px) {
  .chat-modal { width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; border-radius: 0; }
}

/* ---- Reminder schedule (summary in section, calendar in modal) ---- */
.reminder-empty {
  padding: 18px 20px;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: 10px;
  color: var(--mid);
  background: var(--bg-alt);
  font-size: 13.5px;
  margin: 8px 0 4px;
}

.reminder-summary-block { margin-bottom: 6px; }

.reminder-summary-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.reminder-summary-eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mid);
}
.reminder-summary-headline {
  margin: 0;
  font-family: var(--ff-display);
  font-size: 16px;
  color: var(--ink);
}
.reminder-summary-headline strong {
  color: var(--green-dd);
  font-weight: 700;
}

.open-calendar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green-dd);
  font-family: var(--ff-body);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(27, 122, 90, 0.35);
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color .12s var(--ease), text-decoration-color .12s var(--ease);
}
.open-calendar-link:hover {
  color: var(--green-d);
  text-decoration-color: var(--green);
}
.open-calendar-link svg { color: var(--green); }

/* ---- Selected-reminders table ---- */
.reminder-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  margin-top: 4px;
}
.reminder-table thead th {
  text-align: left;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mid);
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}
.reminder-table tbody td {
  padding: 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.reminder-table tbody tr:last-child td { border-bottom: none; }
.reminder-table-day {
  width: 84px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.reminder-table-dow {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}
.reminder-table-offset {
  font-size: 11px;
  color: var(--green-dd);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.reminder-table-date {
  width: 130px;
  color: var(--slate);
  font-variant-numeric: tabular-nums;
}
.reminder-table-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.channel-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--green-xl);
  border: 1px solid var(--border-g);
  color: var(--green-dd);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ---- Modal dialog ---- */
.reminder-modal {
  border: none;
  border-radius: 16px;
  padding: 0;
  max-width: min(820px, calc(100vw - 32px));
  width: 820px;
  max-height: calc(100vh - 48px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28), 0 2px 8px rgba(15, 23, 42, 0.12);
  background: #fff;
  color: var(--ink);
  overflow: hidden;
}
.reminder-modal[open] {
  display: flex;
  flex-direction: column;
  animation: modalPop 160ms var(--ease);
}
.reminder-modal::backdrop {
  background: rgba(15, 31, 26, 0.55);
  backdrop-filter: blur(3px);
}
@keyframes modalPop {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}

.reminder-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.reminder-modal-eyebrow {
  margin: 0 0 2px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
}
.reminder-modal-title {
  margin: 0;
  font-family: var(--ff-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.reminder-modal-close {
  background: transparent;
  border: 1px solid transparent;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 24px;
  line-height: 1;
  color: var(--mid);
  cursor: pointer;
  transition: background .12s var(--ease), color .12s var(--ease);
}
.reminder-modal-close:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--ink);
}

.reminder-modal-body {
  padding: 20px 22px;
  overflow-y: auto;
}

.reminder-modal-footer {
  display: flex;
  justify-content: flex-end;
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.reminder-week-labels,
.reminder-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.reminder-week-labels {
  margin-bottom: 4px;
}
.reminder-week-label {
  text-align: center;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 4px 0;
}

.reminder-cell {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 9px;
  min-height: 96px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color .15s var(--ease), background .15s var(--ease);
  position: relative;
}
.reminder-cell-empty {
  background: transparent;
  border: 1px dashed rgba(229, 229, 229, 0.6);
  min-height: 96px;
}

.reminder-cell:hover:not(.reminder-cell-launch):not(.reminder-cell-empty) {
  border-color: var(--mid);
}

.reminder-cell-active {
  border-color: var(--green);
  background: var(--green-xl);
  box-shadow: 0 2px 8px rgba(84, 206, 151, 0.12);
}

.reminder-cell-launch {
  background: linear-gradient(180deg, var(--green) 0%, var(--green-d) 100%);
  border-color: var(--green-d);
  color: #fff;
  box-shadow: 0 4px 16px rgba(84, 206, 151, 0.35);
}
.reminder-cell-launch .reminder-cell-day,
.reminder-cell-launch .reminder-cell-month { color: #fff; }

.reminder-cell-head {
  display: flex;
  align-items: baseline;
  gap: 4px;
  line-height: 1;
}
.reminder-cell-day {
  font-family: var(--ff-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.reminder-cell-month {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mid);
  font-weight: 600;
}

.reminder-cell-launch-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  align-self: flex-start;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-top: auto;
}

/* Channel chips inside a date cell */
.reminder-channels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  margin-top: auto;
}
.channel-chip {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--mid);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 4px 6px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .12s var(--ease), color .12s var(--ease), border-color .12s var(--ease), transform .08s var(--ease);
  font-family: var(--ff-body);
  text-align: center;
  line-height: 1.2;
  width: 100%;
}
.channel-chip:hover {
  border-color: var(--green);
  color: var(--green-dd);
}
.channel-chip:active { transform: translateY(1px); }
.channel-chip-on {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  box-shadow: 0 1px 4px rgba(84, 206, 151, 0.35);
}
.channel-chip-on:hover {
  background: var(--green-d);
  border-color: var(--green-d);
  color: #fff;
}

@media (max-width: 720px) {
  .reminder-week-labels,
  .reminder-grid { gap: 4px; }
  .reminder-cell { min-height: 80px; padding: 6px; }
  .reminder-cell-day { font-size: 17px; }
  .channel-chip { font-size: 9px; padding: 3px 4px; }
  .reminder-summary { flex-direction: column; align-items: flex-start; }
  .reminder-summary-note { text-align: left; }
}

/* ---- Completion ribbon (100% celebration) ---- */
.completion-ribbon {
  position: relative;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 22px 28px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #0f1f1a 0%, #134937 45%, #1b7a5a 100%);
  border: 1px solid rgba(84, 206, 151, 0.3);
  border-radius: 16px;
  color: #fff;
  box-shadow: 0 20px 48px rgba(15, 31, 26, 0.22),
              0 4px 12px rgba(84, 206, 151, 0.18),
              0 1px 0 rgba(255, 255, 255, 0.06) inset;
  overflow: hidden;
}
.completion-ribbon::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 85% 12%, rgba(255, 255, 255, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 18% 110%, rgba(84, 206, 151, 0.32) 0%, transparent 55%);
  z-index: 0;
}
.completion-ribbon > * { position: relative; z-index: 1; }

.completion-ribbon-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(84, 206, 151, 0.18);
}

.completion-ribbon-body {
  flex: 1 1 auto;
  min-width: 0;
}

.completion-ribbon-eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.completion-ribbon-headline {
  margin: 0;
  font-family: var(--ff-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: #fff;
}

.completion-ribbon-sub {
  margin: 6px 0 0;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
  max-width: 56ch;
}
.completion-ribbon-sub strong {
  color: #fff;
  font-weight: 600;
}

.completion-ribbon-stat {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-left: 22px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  line-height: 1;
}

.completion-ribbon-stat-num {
  font-family: var(--ff-display);
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fff;
  white-space: nowrap;
}
.completion-ribbon-stat-pct {
  font-size: 22px;
  color: rgba(255, 255, 255, 0.6);
  margin-left: 2px;
}
.completion-ribbon-stat-label {
  margin-top: 6px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}

@media (max-width: 760px) {
  .completion-ribbon {
    flex-wrap: wrap;
    gap: 14px 18px;
    padding: 20px 22px;
  }
  .completion-ribbon-body { flex: 1 1 100%; order: 3; }
  .completion-ribbon-stat {
    padding-left: 0;
    border-left: none;
    margin-left: auto;
  }
  .completion-ribbon-headline { font-size: 22px; }
  .completion-ribbon-stat-num { font-size: 36px; }
}

/* ---- SLA breach ribbon ---- */
.sla-ribbon {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  margin-bottom: 24px;
  background: linear-gradient(180deg, #fef2f2 0%, #fee2e2 100%);
  border: 1px solid #fecaca;
  border-left: 4px solid #be3144;
  border-radius: 10px;
  color: #7f1d1d;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 2px 8px rgba(190, 49, 68, 0.08);
}
.sla-ribbon-icon {
  display: inline-flex;
  flex-shrink: 0;
  color: #be3144;
  margin-top: 1px;
}
.sla-ribbon-text { min-width: 0; }
.sla-ribbon-text strong {
  color: #7f1d1d;
  font-weight: 700;
  margin-right: 2px;
}

/* ---- Two-column layout (main + sticky sidebar) ---- */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
}

.layout-main { min-width: 0; }

.layout-sidebar {
  position: sticky;
  top: 24px;
  align-self: start;
}

/* ---- Header ---- */
.app-header {
  margin-bottom: 32px;
}

.app-title-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 18px;
}

.app-title {
  font-family: var(--ff-display);
  font-size: 72px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
  margin: 0;
  color: var(--ink);
}

.app-tagline {
  font-family: var(--ff-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--mid);
  line-height: 1.4;
  max-width: 360px;
}

.customer-meta {
  font-family: var(--ff-display);
  font-size: 26px;
  font-weight: 500;
  color: var(--slate);
  margin: 14px 0 22px;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.customer-meta strong {
  color: var(--ink);
  font-weight: 600;
}

.launch-countdown { white-space: nowrap; }
.launch-countdown-pill {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: 15px;
  font-weight: 600;
  color: #be3144;
  letter-spacing: 0;
}
.launch-countdown-past { color: var(--muted); }

/* ---- Readiness card (sidebar) ---- */
.readiness {
  padding: 22px 24px;
  border: 1px solid var(--border-g);
  border-radius: 14px;
  background: var(--green-xl);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.04);
}

.readiness-label {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-dd);
}

.readiness-percent {
  font-family: var(--ff-display);
  font-size: 44px;
  font-weight: 600;
  color: var(--green-dd);
  margin: 6px 0 0;
  letter-spacing: -0.02em;
  line-height: 1;
}

.readiness-text {
  margin: 8px 0 14px;
  font-size: 13.5px;
  color: var(--slate);
}
.readiness-text strong {
  color: var(--green-dd);
  font-weight: 600;
}

.progress-bar {
  height: 8px;
  background: rgba(84, 206, 151, 0.15);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green) 0%, var(--green-d) 100%);
  border-radius: 999px;
  transition: width 280ms var(--ease);
}

.readiness-count {
  margin: 12px 0 0;
  color: var(--mid);
  font-size: 13px;
}

/* ---- Sidebar checklist (ruled note) ---- */
.checklist-card {
  margin-top: 16px;
  padding: 20px 22px;
  background: #fffdf7;
  border: 1px solid #ede4cf;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.03);
  position: relative;
  overflow: hidden;
}
/* Subtle red margin line, like a paper notebook */
.checklist-card::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 14px;
  width: 1px;
  background: rgba(190, 49, 68, 0.22);
}

.checklist-title {
  font-family: var(--ff-display);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate);
  margin: 0 0 2px;
  padding-left: 14px;
}

.checklist-pending {
  margin: 0 0 10px;
  padding-left: 14px;
  font-size: 11.5px;
  font-weight: 600;
  color: #be3144;
  letter-spacing: 0.02em;
}
.checklist-pending-done {
  color: var(--green-dd);
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0 0 0 14px;
  counter-reset: none;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 0;
  font-size: 13px;
  color: var(--slate);
  border-bottom: 1px dashed rgba(154, 154, 154, 0.28);
  line-height: 1.35;
}
.checklist-item:last-child { border-bottom: none; }

.checklist-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--muted);
  border-radius: 4px;
  background: #fff;
  color: #fff;
  transition: background 150ms var(--ease), border-color 150ms var(--ease);
}

.checklist-num {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  flex-shrink: 0;
}

.checklist-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checklist-item-done .checklist-box {
  background: var(--green);
  border-color: var(--green);
}
.checklist-item-done .checklist-text {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: rgba(154, 154, 154, 0.6);
}
.checklist-item-done .checklist-num { color: var(--muted); }

/* ---- Tabs ---- */
.tabs {
  display: flex;
  gap: 2px;
  margin: 0 0 22px;
  border-bottom: 1px solid var(--border);
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 20px;
  text-decoration: none;
  color: var(--mid);
  font-weight: 500;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-size: 17px;
  transition: color .15s var(--ease), border-color .15s var(--ease);
  cursor: pointer;
}
.tab:hover { color: var(--ink); }

.tab-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--mid);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}

.tab-label { line-height: 1; }

.tab-lock {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  margin-left: 2px;
}
.tab-lock svg { width: 16px; height: 16px; }

.tab-active {
  color: var(--green-dd);
  border-bottom-color: var(--green);
  font-weight: 600;
}
.tab-active .tab-number {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.tab-locked {
  color: var(--muted);
  cursor: not-allowed;
}
.tab-locked:hover { color: var(--muted); }
.tab-locked .tab-number {
  background: var(--bg-alt);
  color: var(--muted);
  border-color: var(--border);
}

.phase-panel { margin-top: 8px; }

/* ---- Section cards ---- */
.sections-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 180ms var(--ease), background 180ms var(--ease);
}

.section-card-progress {
  border-color: var(--amber-bd);
  background: #fffbeb;
}

.section-card-completed {
  border-color: var(--border-g);
  background: var(--green-xl);
}

.section-summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  transition: background 120ms var(--ease);
}
.section-summary:hover { background: rgba(0, 0, 0, 0.015); }
.section-summary::-webkit-details-marker { display: none; }

.section-summary-left { flex: 1; min-width: 0; }

.section-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 10px;
  letter-spacing: -0.005em;
}

.section-position {
  color: var(--muted);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.section-description {
  margin: 0;
  color: var(--mid);
  font-size: 13.5px;
  line-height: 1.5;
}

.section-summary-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* ---- Status badge ---- */
.badge {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid transparent;
}
.badge-pending {
  background: var(--bg-alt);
  color: var(--slate);
  border-color: var(--border);
}
.badge-progress {
  background: var(--amber-bg);
  color: var(--amber);
  border-color: var(--amber-bd);
}
.badge-completed {
  background: var(--green-l);
  color: var(--green-dd);
  border-color: var(--border-g);
}

.chevron {
  color: var(--muted);
  transition: transform 180ms var(--ease);
}
details[open] .chevron { transform: rotate(180deg); }

/* ---- Section body ---- */
.section-body {
  padding: 16px 22px 22px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.55);
}
.section-card-completed .section-body { border-top-color: var(--border-g); }
.section-card-progress .section-body  { border-top-color: var(--amber-bd); }

.section-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}

/* ---- Form fields ---- */
.field { display: flex; flex-direction: column; }
.field label {
  font-size: 11px;
  font-weight: 600;
  color: var(--mid);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.required-mark {
  color: #be3144;
  margin-left: 2px;
  font-weight: 700;
}

.optional-mark {
  color: var(--muted);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 11px;
  margin-left: 4px;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="number"],
.field input[type="date"],
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  background: #fff;
  color: var(--ink);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field textarea {
  resize: vertical;
  min-height: 76px;
  line-height: 1.5;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(84, 206, 151, 0.18);
}

.field.file-upload-placeholder { grid-column: 1 / -1; }
.field.field-notes-start { grid-column-start: 1; }

/* Multi-select checkbox group */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  padding: 6px 0;
}
.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--slate);
  background: #fff;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  transition: border-color .15s var(--ease), background .15s var(--ease), color .15s var(--ease);
}
.checkbox-row:hover { border-color: var(--mid); }
.checkbox-row input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--green);
  cursor: pointer;
  margin: 0;
}
.checkbox-row:has(input:checked) {
  background: var(--green-xl);
  border-color: var(--green);
  color: var(--green-dd);
}
.upload-box {
  padding: 16px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  color: var(--mid);
  font-size: 13px;
  background: var(--bg-alt);
}

.section-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 8px;
  font: inherit;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .1s var(--ease), box-shadow .2s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn-secondary {
  background: #fff;
  color: var(--slate);
  border-color: var(--border);
}
.btn-secondary:hover {
  border-color: var(--mid);
  color: var(--ink);
}

.btn-complete {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  box-shadow: 0 4px 16px rgba(84, 206, 151, 0.25);
}
.btn-complete:hover {
  background: var(--green-d);
  border-color: var(--green-d);
}

.btn-undo {
  background: #fff;
  color: var(--green-dd);
  border-color: var(--border-g);
}
.btn-undo:hover {
  background: var(--green-xl);
  border-color: var(--green);
}

.inline-form { margin: 0; }

.section-actions-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}
/* Chat trigger sits on the LEFT of the action row, buttons stay on the right */
.section-actions-row .chat-trigger {
  margin-right: auto;
}

/* ---- Placeholder cards (Launch / Reports phases) ---- */
.placeholder-card {
  text-align: center;
  padding: 72px 24px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--mid);
}
.placeholder-card h2 {
  font-family: var(--ff-display);
  color: var(--ink);
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 600;
}
.placeholder-card p { margin: 0; font-size: 14px; }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .layout-sidebar {
    position: static;
    order: -1;
  }
}

@media (max-width: 640px) {
  .app-shell { padding: 28px 16px 64px; }
  .app-title { font-size: 48px; }
  .app-title-row { gap: 10px; }
  .app-tagline { font-size: 13.5px; }
  .customer-meta { font-size: 20px; }
  .section-form { grid-template-columns: 1fr; }
  .section-summary { flex-direction: column; gap: 12px; align-items: stretch; }
  .section-summary-right { justify-content: space-between; }
  .tabs { overflow-x: auto; }
  .tab { white-space: nowrap; }
}
