/* ==========================================================================
   BeUnstoppable Client Portal — Design System (Direction A: Modern Heritage)
   Canvas: Warm Alabaster (#FAF8F5) · Ink: Heritage Navy (#0E2A43)
   Typography: Instrument Serif + Plus Jakarta Sans + JetBrains Mono
   Designed for Executive Advisory (Corporate Leavers transitioning to Fractional/Advisory)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Surface Tokens */
  --bg:              #FAF8F5; /* Warm alabaster canvas */
  --surface:         #FFFFFF; /* Pure white card surface */
  --bg-card:         #FFFFFF;
  --bg-soft:         #F4EFE6; /* Warm neutral tint */
  --tint:            #F4EFE6;
  --tint-subtle:     #FAF6EF; /* Ultra-soft card background */

  /* Heritage Ink / Typography */
  --navy:            #0E2A43; /* Heritage deep navy */
  --navy-light:      #163B5C;
  --navy-ink:        #123152;
  --ink:             #0E2A43;
  --ink-0:           #0E2A43;
  --ink-1:           #1F2E3E;
  --ink-2:           #4A5868; /* Slate text */
  --ink-3:           #7E8B99; /* Metadata / caption text */
  --ink-secondary:   #4A5868;
  --ink-muted:       #7E8B99;

  /* Brand Accents */
  --gold:            #B8863A; /* Burnished brass */
  --gold-soft:       #FAF3E6;
  --gold-border:     #E8D3B0;
  --cyan:            #0E768C; /* Deep teal / cyan */
  --cyan-soft:       #E5F4F7;
  --cyan-border:     #BCE2E8;
  --green:           #237A4B; /* Milestone success green */
  --green-soft:      #E8F5EE;
  --red:             #C23A3A;
  --red-soft:        #FBEAEA;

  /* Structural Lines & Dividers */
  --line:            #E8E2D5; /* 1px standard rule */
  --line-hi:         #DCD3C3; /* Input and button borders */
  --line-strong:     #DCD3C3;

  /* Radii */
  --radius-lg:       18px;    /* Cards and modules */
  --radius-md:       12px;    /* Buttons and controls */
  --radius-sm:       8px;
  --radius-full:     999px;   /* Pills and badges */
  --radius:          18px;

  /* Elevation Shadows */
  --shadow-sm:       0 1px 3px rgba(17, 29, 43, 0.04);
  --shadow-md:       0 8px 24px -6px rgba(17, 29, 43, 0.07);
  --shadow-lg:       0 16px 36px -8px rgba(17, 29, 43, 0.10);

  /* Typography Families */
  --font-serif:      'Instrument Serif', Georgia, serif;
  --font-sans:       'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:       'JetBrains Mono', ui-monospace, monospace;
  --sans:            var(--font-sans);
  --mono:            var(--font-mono);
  --serif:           var(--font-serif);

  --transition:      180ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* Base Reset & Typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink-1);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Header & Topbar Navigation
   ========================================================================== */
header.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 12px 24px;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--navy);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.02em;
  box-shadow: 0 2px 6px rgba(14, 42, 67, 0.18);
  flex-shrink: 0;
}

.brand-info {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 21px;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.brand-subtitle {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-weight: 600;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

nav.main-nav a {
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  transition: all var(--transition);
}

nav.main-nav a:hover {
  background: var(--tint);
  color: var(--navy);
}

nav.main-nav a.active {
  background: var(--navy);
  color: #FFFFFF;
}

.user-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-identity-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}

.user-avatar-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.logout-pill-btn {
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-3);
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  transition: all var(--transition);
}

.logout-pill-btn:hover {
  background: var(--tint);
  color: var(--red);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: #FFFFFF;
  color: var(--navy);
  font-size: 18px;
  cursor: pointer;
}

/* Mobile Nav Drawer */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  nav.main-nav {
    display: none;
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    background: #FFFFFF;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    gap: 6px;
    z-index: 99;
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a {
    padding: 12px 16px;
    font-size: 15px;
  }
  .user-identity-pill { display: none; }
}

/* ==========================================================================
   Layout Containers & Page Structure
   ========================================================================== */
.main {
  flex: 1;
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
  padding: 36px 24px 80px;
}

.main.wide { max-width: 1200px; }
.main.narrow { max-width: 460px; padding-top: 60px; }

/* Welcome Hero & Eyebrows */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
  display: inline-block;
}

h1 {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 400;
  color: var(--navy);
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0 0 8px;
}

h2 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}

h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 4px;
}

.lede {
  color: var(--ink-secondary);
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 28px;
  max-width: 65ch;
}

/* ==========================================================================
   Cards, Panels & Containers
   ========================================================================== */
.card, .portal-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.card + .card, .portal-card + .portal-card {
  margin-top: 20px;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}

.card-head h2 { margin: 0; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 760px) {
  .grid-2 { grid-template-columns: 1fr; }
  .card, .portal-card { padding: 20px 18px; }
  h1 { font-size: 30px; }
}

/* ==========================================================================
   Momentum Card & Goals Progress Bar (NO COUNTDOWN)
   ========================================================================== */
.momentum-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.momentum-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3.5px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--cyan) 100%);
}

.momentum-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.momentum-title {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--navy);
}

.momentum-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  background: var(--gold-soft);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--gold-border);
}

.gbar-wrap {
  margin: 4px 0 0;
}

.gbar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  color: var(--ink-secondary);
  margin-bottom: 8px;
  gap: 12px;
  flex-wrap: wrap;
}

.gbar-top strong {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--navy);
  font-weight: 700;
}

.gbar {
  display: flex;
  height: 10px;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.gbar-done {
  background: var(--green);
  display: block;
  transition: width 0.5s ease;
}

.gbar-prog {
  background: var(--gold);
  opacity: 0.85;
  display: block;
  transition: width 0.5s ease;
}

/* Stat row */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

@media (max-width: 860px) {
  .stat-row { grid-template-columns: 1fr 1fr; }
}

.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}

.stat .v {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.stat .l {
  font-size: 11.5px;
  color: var(--ink-3);
  font-weight: 600;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ==========================================================================
   Next Scheduled Session Highlight Box
   ========================================================================== */
.next-session-card {
  background: linear-gradient(145deg, #FAF6EE 0%, #FFFFFF 100%);
  border: 1.5px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin-bottom: 22px;
}

.next-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-soft);
  padding: 3px 9px;
  border-radius: var(--radius-full);
  border: 1px solid var(--gold-border);
  margin-bottom: 10px;
}

.next-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.next-datetime {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--ink-secondary);
  font-size: 13.5px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.session-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Coach Directive / Recent Note Card
   ========================================================================== */
.coach-directive-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-left: 3.5px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}

.directive-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.coach-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.coach-av {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--navy);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
}

.coach-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}

.directive-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
}

.directive-body {
  font-size: 14px;
  color: var(--ink-secondary);
  line-height: 1.55;
}

.directive-body strong {
  color: var(--navy);
}

/* ==========================================================================
   Goals with Interactive Status Chips
   ========================================================================== */
.goal-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 12px;
  background: var(--tint-subtle);
  transition: all var(--transition);
}

.goal-card:hover {
  border-color: var(--line-strong);
  background: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.goal-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.item-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 700;
}

.item-body {
  flex: 1;
  min-width: 0;
}

.item-title {
  font-weight: 600;
  color: var(--navy);
  font-size: 14.5px;
  line-height: 1.35;
}

.item-meta {
  font-size: 12.5px;
  color: var(--ink-secondary);
  margin-top: 3px;
}

.item-action {
  flex-shrink: 0;
}

/* Chips & Goal Actions */
.goal-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(232, 226, 213, 0.6);
}

.goal-note {
  flex: 1 1 200px;
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  font: 500 13px var(--font-sans);
  color: var(--ink);
}

.goal-note:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

.chips-group {
  display: inline-flex;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 3px;
}

.chip-btn, .gbtn {
  border: 1px solid transparent;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  color: var(--ink-secondary);
  transition: all var(--transition);
}

.chip-btn:hover, .gbtn:hover {
  background: var(--tint);
  color: var(--navy);
}

.chip-btn.active-todo, .gbtn[data-s="not_started"].active {
  background: var(--navy);
  color: #FFFFFF;
}

.chip-btn.active-progress, .gbtn[data-s="in_progress"]:not(:disabled), .gbtn[data-s="in_progress"].active {
  background: var(--gold-soft);
  color: var(--gold);
  border-color: var(--gold-border);
}

.chip-btn.active-done, .gbtn-ok, .gbtn[data-s="complete"]:not(:disabled) {
  background: var(--green);
  border-color: var(--green);
  color: #FFFFFF;
}

.gbtn:disabled {
  opacity: 0.45;
  cursor: default;
}

.goal-msg {
  font-size: 12px;
  color: var(--red);
  margin-left: 4px;
}

.gpill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 600;
  background: var(--tint);
  color: var(--ink-secondary);
}

.gpill-in_progress {
  background: var(--gold-soft);
  color: var(--gold);
  border: 1px solid var(--gold-border);
}

.gpill-complete {
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid rgba(35, 122, 75, 0.25);
}

.gpill-not_started {
  background: var(--tint);
  color: var(--ink-secondary);
}

/* ==========================================================================
   Sessions, Documents & Progress Row Items
   ========================================================================== */
.progress-item, .call-item, .doc-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.progress-item:last-child, .call-item:last-child, .doc-item:last-child {
  border-bottom: none;
}

.doc-link {
  color: var(--navy);
  font-weight: 600;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--tint);
  border: 1px solid var(--line);
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.doc-link:hover {
  background: var(--navy);
  color: #FFFFFF;
  border-color: var(--navy);
}

/* ==========================================================================
   Phase B: Book a Session Cards (Direction A Restyle)
   ========================================================================== */
.bk-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.bk-card + .bk-card {
  margin-top: 18px;
}

.bk-card h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  margin: 0 0 6px;
  color: var(--navy);
}

.bk-count {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 600;
  background: var(--gold-soft);
  color: var(--gold);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-full);
  padding: 3px 12px;
  font-size: 12.5px;
  margin: 8px 0 10px;
}

.bk-msg {
  color: var(--ink-secondary);
  font-size: 14px;
  margin: 6px 0 14px;
  line-height: 1.45;
}

.bk-off {
  opacity: 0.62;
  filter: grayscale(0.6);
  background: var(--tint-subtle);
}

.bk-off .bk-count {
  background: var(--tint);
  color: var(--ink-muted);
  border-color: var(--line);
}

.bk-card .btn[aria-disabled="true"] {
  background: #D8D2C4;
  color: #7A7264;
  pointer-events: none;
  box-shadow: none;
}

.bk-hist {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
}

.bk-hist li {
  padding: 6px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.bk-hist .st {
  font-family: var(--font-mono);
  color: var(--ink-muted);
  font-size: 11.5px;
  text-transform: capitalize;
}

.bk-weeks {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px 0 12px;
}

.bk-weeks div {
  background: var(--tint-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 13.5px;
  color: var(--ink);
}

/* ==========================================================================
   Buttons & Controls
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: -0.005em;
  text-decoration: none;
  width: 100%;
}

.btn-primary {
  background: var(--navy);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--navy-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-outline {
  background: #FFFFFF;
  color: var(--navy);
  border: 1px solid var(--line-strong);
}

.btn-outline:hover {
  background: var(--tint);
  border-color: var(--navy);
}

.btn-ghost {
  background: var(--tint);
  color: var(--navy);
}

.btn-ghost:hover {
  background: var(--line);
}

.btn-link {
  width: auto;
  padding: 4px 0;
  background: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   Forms & Fields
   ========================================================================== */
label {
  display: block;
  font-weight: 600;
  font-size: 12.5px;
  color: var(--ink-secondary);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

input[type=text],
input[type=email],
input[type=password],
input[type=date],
input[type=url],
textarea,
select {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-strong);
  background: #FFFFFF;
  color: var(--ink);
  font: 500 14px var(--font-sans);
  transition: border-color var(--transition), box-shadow var(--transition);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(14, 42, 67, 0.08);
}

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

.field {
  margin-bottom: 16px;
}

.hint {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 5px;
}

/* ==========================================================================
   Auth Screens (Login, Set Password, Request Access)
   ========================================================================== */
.auth-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 38px 34px;
  box-shadow: var(--shadow-lg);
}

.auth-logo {
  text-align: center;
  margin-bottom: 24px;
}

.auth-logo .brand-mark {
  margin: 0 auto 14px;
  width: 44px;
  height: 44px;
  font-size: 16px;
}

.auth-foot {
  text-align: center;
  margin-top: 20px;
  font-size: 13.5px;
  color: var(--ink-3);
}

/* ==========================================================================
   Alerts & Badges
   ========================================================================== */
.alert {
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 16px;
  display: none;
}

.alert.show { display: block; }
.alert-error {
  background: var(--red-soft);
  color: var(--red);
  border: 1px solid rgba(194, 58, 58, 0.25);
}
.alert-success {
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid rgba(35, 122, 75, 0.25);
}
.alert-info {
  background: var(--cyan-soft);
  color: var(--cyan);
  border: 1px solid var(--cyan-border);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-active {
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid rgba(35, 122, 75, 0.25);
}
.badge-pending {
  background: var(--gold-soft);
  color: var(--gold);
  border: 1px solid var(--gold-border);
}
.badge-paused {
  background: var(--tint);
  color: var(--ink-3);
  border: 1px solid var(--line);
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Empty States */
.empty-state {
  text-align: center;
  padding: 36px 20px;
  color: var(--ink-muted);
}

.empty-state .ico {
  font-size: 28px;
  margin-bottom: 8px;
  opacity: 0.7;
}

.empty-state .t {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 4px;
}

.empty-state .d {
  font-size: 13.5px;
  color: var(--ink-secondary);
  max-width: 44ch;
  margin: 0 auto;
}

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(90deg, var(--tint) 25%, #EFE9DD 37%, var(--tint) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

footer.site {
  text-align: center;
  padding: 32px 20px;
  color: var(--ink-muted);
  font-size: 12.5px;
  font-family: var(--font-mono);
}
