/* Atronome — main.css
   Atronome visual identity: navy / bright-blue / warm-white.
   DM Sans typography. */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  /* ── Atronome palette ── */
  --navy:       #0D1D40;
  --deep:       #122B55;
  --mid:        #1A4E8A;
  --bright:     #2E8BD4;
  --cyan:       #4CBCF0;
  --pale:       #E8F4FD;
  --warm-white: #F7F9FC;
  --text-dark:  #1A1F2E;
  --text-light: #5A6178;
  --border:     #D0D5DD;
  --success:    #16A34A;
  --warning:    #F59E0B;
  --error:      #DC2626;

  /* Legacy aliases (referenced by JS-generated inline styles) */
  --navy-mid:   var(--deep);
  --amber:      var(--bright);
  --cream:      var(--warm-white);
  --warm-gray:  var(--border);
  --muted:      var(--text-light);
  --white:      #ffffff;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--warm-white);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
}

/* ══════════════════════════════════
   APP HEADER
   ══════════════════════════════════ */

.app-header {
  background: var(--navy);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 200;
}
.app-header-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.app-header-logo-img {
  height: 28px;
  width: auto;
}
.app-header-step {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}

/* ══════════════════════════════════
   CONTENT WRAPPERS
   ══════════════════════════════════ */

.main {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 48px;
}
.main-wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 24px 120px;
}

/* ══════════════════════════════════
   TYPOGRAPHY
   ══════════════════════════════════ */

h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 14px;
}
.page-subtitle {
  color: var(--text-light);
  font-size: 0.88rem;
  margin-bottom: 28px;
}

/* ══════════════════════════════════
   CARDS
   ══════════════════════════════════ */

.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.card h2 { margin-bottom: 16px; }

/* ══════════════════════════════════
   FORM ELEMENTS
   ══════════════════════════════════ */

.form-group { margin-bottom: 22px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}
input[type="text"],
input[type="email"],
input[type="date"],
input[type="number"],
select {
  width: 100%;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.9rem;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  color: var(--text-dark);
  transition: border-color 0.2s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--bright);
  box-shadow: 0 0 0 3px rgba(46, 139, 212, 0.1);
}
input.field-error { border-color: var(--error); }

input[type="radio"],
input[type="checkbox"] {
  accent-color: var(--bright);
  width: 16px;
  height: 16px;
  margin-right: 8px;
}

/* ══════════════════════════════════
   CHECKBOX / RADIO CHECK-ITEMS
   ══════════════════════════════════ */

.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 7px;
}
.check-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.88rem;
  transition: border-color 0.15s, background 0.15s;
  user-select: none;
}
.check-item:hover {
  border-color: var(--bright);
  background: rgba(46, 139, 212, 0.04);
}
.check-item.is-selected {
  border-color: var(--bright);
  background: rgba(46, 139, 212, 0.08);
  font-weight: 500;
}
.check-item input { flex-shrink: 0; }

/* Radio row (project type) */
.radio-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.radio-row .check-item { min-width: 120px; }

/* Date + ongoing row */
.date-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.date-row input[type="date"] {
  flex: 1;
  min-width: 140px;
  max-width: 200px;
}
.ongoing-toggle {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-light);
  font-family: inherit;
  transition: all 0.15s;
  white-space: nowrap;
}
.ongoing-toggle.is-active {
  background: var(--bright);
  color: white;
  border-color: var(--bright);
  font-weight: 600;
}

/* Project type descriptions */
.project-type-desc {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-left: 24px;
  margin-bottom: 8px;
}

/* Disabled end date */
input[type="date"]:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: #f0f0f0;
}

/* ══════════════════════════════════
   BUTTONS
   ══════════════════════════════════ */

.btn {
  padding: 10px 24px;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: 'DM Sans', -apple-system, sans-serif;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.btn-primary {
  background: var(--navy);
  color: white;
}
.btn-primary:hover {
  background: var(--deep);
}
.btn-secondary {
  background: white;
  color: var(--navy);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--navy);
  background: var(--pale);
}
.btn-accent {
  background: var(--bright);
  color: white;
}
.btn-accent:hover {
  background: var(--mid);
}

.btn-ghost {
  padding: 5px 12px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: inherit;
  color: var(--navy);
  transition: all 0.15s;
}
.btn-ghost:hover { background: var(--pale); color: var(--navy); border-color: var(--bright); }
.btn-ghost:disabled { opacity: 0.35; cursor: default; }
.btn-ghost:disabled:hover { background: transparent; color: var(--navy); border-color: var(--border); }

.btn-danger { color: var(--error); border-color: transparent; }
.btn-danger:hover { background: var(--error); color: white; border-color: var(--error); }

.btn-copy {
  padding: 6px 14px;
  background: var(--deep);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  transition: background 0.15s;
}
.btn-copy:hover { background: var(--bright); }

.btn-sm { padding: 4px 12px !important; font-size: 0.8rem !important; }

/* ══════════════════════════════════
   FOOTER NAV
   ══════════════════════════════════ */

.footer-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  margin-top: 28px;
}

/* ══════════════════════════════════
   VALIDATION FEEDBACK
   ══════════════════════════════════ */

.field-error-msg {
  color: var(--error);
  font-size: 0.8rem;
  margin-top: 4px;
  display: none;
}
.form-error-banner {
  background: rgba(220, 38, 38, 0.06);
  border: 1px solid rgba(220, 38, 38, 0.25);
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--error);
  font-size: 0.88rem;
  margin-bottom: 16px;
  display: none;
}

/* ══════════════════════════════════
   UTILITIES
   ══════════════════════════════════ */

.hidden { display: none !important; }
.text-muted { color: var(--text-light); font-size: 0.85rem; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }

/* ══════════════════════════════════
   PROGRESS BAR
   ══════════════════════════════════ */

.progress-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0 28px;
  gap: 0;
}
.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-light);
}
.progress-step.active {
  color: var(--navy);
}
.progress-step.complete {
  color: var(--success);
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  border: 2px solid var(--border);
  color: var(--text-light);
  background: white;
}
.progress-step.active .step-num {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
}
.progress-step.complete .step-num {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.step-label {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.progress-step.active .step-label {
  color: var(--navy);
  font-weight: 600;
}
.progress-step.complete .step-label {
  color: var(--success);
}

.progress-connector {
  width: 48px;
  height: 2px;
  background: var(--border);
  margin: 0 4px;
  margin-bottom: 20px;
}

/* ══════════════════════════════════════════
   SCREEN 2 — Module builder
   ══════════════════════════════════════════ */

.screen2-layout {
  display: grid;
  grid-template-columns: 44% 56%;
  gap: 24px;
  align-items: start;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.panel-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
}

/* Module pool */
.module-pool-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 68vh;
  overflow-y: auto;
  padding-right: 4px;
}
.pool-card {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.pool-card:hover {
  border-color: var(--bright);
  background: rgba(46, 139, 212, 0.03);
  box-shadow: 0 1px 3px rgba(46, 139, 212, 0.1);
}
.pool-card.pool-locked {
  opacity: 0.52;
  cursor: default;
  background: var(--warm-white);
  border-style: dashed;
}
.pool-card.pool-locked:hover { border-color: var(--border); background: var(--warm-white); box-shadow: none; }
.pool-card-name { font-size: 0.88rem; font-weight: 600; color: var(--navy); }
.pool-card-hint { font-size: 0.73rem; color: var(--text-light); margin-top: 2px; }

/* Suggested modules */
.pool-card.suggested {
  border-color: var(--bright);
  position: relative;
  background: rgba(46, 139, 212, 0.02);
}
.pool-card.suggested::after {
  content: 'Suggested';
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 0.65rem;
  color: var(--bright);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Selected module list */
.module-selected-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 120px;
}
.module-item {
  border: 1px solid var(--border);
  border-left: 4px solid var(--bright);
  border-radius: 8px;
  background: white;
  overflow: hidden;
}
.module-item.item-locked {
  border-left-color: var(--text-light);
  background: var(--warm-white);
}

.module-item-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
}
.item-seq {
  font-size: 0.75rem;
  color: var(--text-light);
  min-width: 18px;
  font-variant-numeric: tabular-nums;
}
.item-name {
  flex: 1;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
}
.item-locked-badge {
  font-size: 0.7rem;
  color: var(--text-light);
  font-weight: 400;
}
.item-hours-input {
  width: 58px !important;
  padding: 4px 6px !important;
  font-size: 0.83rem !important;
  text-align: right;
}
.item-controls { display: flex; gap: 4px; align-items: center; }
.item-expand {
  font-size: 0.78rem;
  color: var(--text-light);
  cursor: pointer;
  padding: 3px 7px;
  user-select: none;
  border-radius: 6px;
  transition: background 0.1s, color 0.1s;
}
.item-expand:hover { background: var(--pale); color: var(--bright); }

/* Resource sub-panel */
.resource-panel {
  padding: 10px 12px 10px 20px;
  border-top: 1px solid var(--border);
  background: var(--warm-white);
}
.res-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
  font-size: 0.82rem;
}
.res-role { width: 78px; color: var(--navy); font-weight: 500; flex-shrink: 0; }
.res-role-numbered { width: 90px; font-size: 0.78rem; padding-left: 8px; }
.res-hrs  { width: 54px !important; padding: 3px 6px !important; font-size: 0.8rem !important; }
.res-rate { width: 64px !important; padding: 3px 6px !important; font-size: 0.8rem !important; }
.res-fee  { color: var(--text-light); font-size: 0.78rem; min-width: 58px; text-align: right; }
.res-add-row { opacity: 0.7; }
.res-role-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  margin-top: 6px;
}
.res-role-header:first-child { margin-top: 0; }
.res-role-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.res-add-btn { flex-shrink: 0; }

/* Person toggles (global registry) */
.res-person-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.75rem;
  cursor: pointer;
  background: white;
  color: var(--navy);
  transition: all 0.15s;
  user-select: none;
}
.res-person-toggle:hover { border-color: var(--bright); }
.res-person-toggle.active {
  background: var(--pale);
  border-color: var(--bright);
  color: var(--bright);
  font-weight: 600;
}
.res-person-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 4px;
}

/* Specialist checkbox */
.res-specialist-label {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.7rem;
  color: var(--text-light);
  cursor: pointer;
  margin-left: 4px;
  user-select: none;
}
.res-specialist-label input[type="checkbox"] {
  width: 13px;
  height: 13px;
  margin: 0;
  cursor: pointer;
}

/* Rate defaults form */
.rate-defaults-form {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 12px;
  font-size: 0.84rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.rate-defaults-form .rate-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.rate-defaults-form .rate-label { width: 90px; color: var(--navy); font-weight: 500; }
.rate-defaults-form input { width: 80px !important; padding: 4px 8px !important; }

/* Empty list placeholder */
.list-placeholder {
  text-align: center;
  color: var(--text-light);
  padding: 36px 0;
  font-size: 0.88rem;
  border: 2px dashed var(--border);
  border-radius: 8px;
}

/* Rate security notice */
.rate-notice {
  background: #FFF8E1;
  border: 1px solid var(--warning);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.85rem;
  color: #5D4037;
  margin-bottom: 16px;
}

/* Fixed budget bar (Screen 2) */
.budget-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy);
  color: white;
  padding: 10px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  z-index: 100;
  border-top: 3px solid var(--bright);
  font-size: 0.83rem;
}
.budget-bar-item { display: flex; align-items: baseline; gap: 6px; }
.budget-bar-role { color: rgba(255,255,255,0.65); }
.budget-bar-val  { color: white; font-variant-numeric: tabular-nums; }
.budget-bar-divider { color: rgba(255,255,255,0.3); }
.budget-bar-total { font-weight: 700; color: var(--cyan); font-size: 0.9rem; }
.budget-bar-total-val { color: var(--cyan); font-variant-numeric: tabular-nums; }
.budget-error-msg { color: #f87171; font-size: 0.82rem; }

/* ══════════════════════════════════════════
   QUOTE EXPORT FOOTER
   ══════════════════════════════════════════ */

.quote-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid var(--border);
  padding: 10px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 99;
  font-size: 0.85rem;
  color: var(--text-light);
  box-shadow: 0 -1px 4px rgba(0,0,0,0.05);
}
.quote-footer--raised {
  bottom: 44px;
}
.quote-footer-notice {
  flex: 1;
}

/* ══════════════════════════════════════════
   VIEW TOGGLE (List / Timeline)
   ══════════════════════════════════════════ */

.view-toggle {
  display: flex;
  gap: 0;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  width: fit-content;
}
.view-btn {
  padding: 6px 16px;
  background: white;
  border: none;
  font-size: 0.8rem;
  color: var(--text-light);
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.view-btn.active { background: var(--navy); color: white; }
.view-btn:hover:not(.active) { background: var(--pale); }

/* ══════════════════════════════════════════
   TIMELINE VIEW (Screen 2)
   ══════════════════════════════════════════ */

#timeline-view {
  overflow-x: auto;
  padding: 16px 0;
}
.timeline-track {
  display: flex;
  align-items: stretch;
  height: 56px;
  min-width: 400px;
  border-radius: 8px;
  overflow: hidden;
}
.timeline-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 4px 8px;
  min-width: 60px;
  box-sizing: border-box;
  border-right: 2px solid white;
  overflow: hidden;
}
.timeline-block:nth-child(odd)  { background: var(--pale); color: var(--navy); }
.timeline-block:nth-child(even) { background: white; color: var(--navy); border: 1px solid var(--border); }
.timeline-block-name {
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.timeline-block-hours { font-size: 0.65rem; color: var(--text-light); }

.timeline-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  min-width: 400px;
}
.timeline-scale-label { font-size: 0.65rem; color: var(--text-light); }
.timeline-note { font-size: 0.7rem; color: var(--text-light); margin-top: 8px; }

/* ══════════════════════════════════════════
   TEMPLATES
   ══════════════════════════════════════════ */

.template-panel {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}
.template-panel h3 {
  font-size: 0.85rem;
  color: var(--navy);
  font-weight: 600;
  margin: 0 0 12px 0;
}
.template-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.template-item:last-child { border-bottom: none; }
.template-item-info { display: flex; flex-direction: column; gap: 2px; }
.template-item-name { font-size: 0.9rem; color: var(--navy); font-weight: 500; }
.template-item-meta { font-size: 0.75rem; color: var(--text-light); }
.template-save-section { margin-top: 24px; }
.template-prompt { font-size: 0.9rem; color: var(--text-light); margin-bottom: 12px; }
.template-name-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.template-name-row input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
}
.template-name-row select {
  width: auto;
  min-width: 120px;
}

/* ══════════════════════════════════════════
   TYPICAL HOURS HINT
   ══════════════════════════════════════════ */

.typical-hint {
  font-size: 0.7rem;
  color: var(--text-light);
  display: block;
  margin-top: 2px;
}

/* ══════════════════════════════════════════
   DRAG HANDLE (SortableJS)
   ══════════════════════════════════════════ */

.drag-handle {
  cursor: grab;
  color: var(--border);
  font-size: 1.1rem;
  padding: 0 6px;
  user-select: none;
  flex-shrink: 0;
}
.drag-handle:active { cursor: grabbing; color: var(--bright); }
.drag-ghost { opacity: 0.4; background: var(--pale); }

/* ══════════════════════════════════════════
   SCREEN 3 — Review & Submit
   ══════════════════════════════════════════ */

/* Timeline visualization (Screen 3) */
.timeline-container {
  width: 100%;
  overflow-x: auto;
  margin: 24px 0 8px;
}
.timeline-bar {
  display: flex;
  min-width: 100%;
  border-radius: 8px;
  overflow: hidden;
}

/* Screen 3 timeline block overrides */
.timeline-container .timeline-block {
  border-left: 2px solid var(--border);
  border-right: none;
}
.timeline-container .timeline-block:first-child {
  border-left: none;
}
.timeline-container .timeline-block:nth-child(odd) {
  background: var(--pale);
  color: var(--navy);
}
.timeline-container .timeline-block:nth-child(even) {
  background: white;
  color: var(--navy);
}
.timeline-container .timeline-block-name {
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  color: var(--navy);
}
.timeline-container .timeline-block-hours {
  font-size: 0.7rem;
  color: var(--text-light);
  margin-top: 4px;
}
.timeline-container .timeline-scale {
  position: relative;
  height: 20px;
  border-top: 1px solid var(--border);
  margin-top: 0;
}
.timeline-scale-tick {
  position: absolute;
  transform: translateX(-50%);
  font-size: 0.7rem;
  color: var(--text-light);
  top: 3px;
}

/* Message preview labels */
.msg-preview-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

/* Legacy flow classes */
.flow-pill {
  padding: 4px 12px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 0.8rem;
  color: var(--navy);
  font-weight: 500;
}
.flow-pill.pill-complete {
  background: var(--success);
  border-color: var(--success);
  color: white;
}
.flow-pill.pill-current {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
}
.flow-arrow { color: var(--border); font-size: 0.82rem; }
.flow-more  { color: var(--text-light); font-size: 0.8rem; font-style: italic; }

/* Budget highlight */
.budget-highlight {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  margin: 20px 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.budget-big-number {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--navy);
}
.budget-big-label {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 4px;
}
.budget-breakdown {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* Tabs */
.tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 18px;
}
.tab-btn {
  padding: 10px 20px;
  border: none;
  background: transparent;
  color: var(--text-light);
  cursor: pointer;
  font-size: 0.88rem;
  font-family: inherit;
  font-weight: 500;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
}
.tab-btn:hover { color: var(--navy); }
.tab-btn.tab-active {
  color: var(--navy);
  font-weight: 600;
  border-bottom-color: var(--bright);
}
.tab-pane { display: none; }
.tab-pane.tab-active { display: block; }

/* Quote table */
.quote-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.quote-table th {
  font-weight: 600;
  color: var(--text-light);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 8px 10px;
  border-bottom: 2px solid var(--border);
}
.quote-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  color: var(--text-dark);
}
.quote-table tfoot td {
  border-top: 2px solid var(--navy);
  border-bottom: none;
  padding-top: 10px;
}

/* Message textarea */
.msg-textarea {
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-size: 0.85rem;
  line-height: 1.6;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  resize: vertical;
  color: var(--text-dark);
}
.msg-textarea:focus {
  outline: none;
  border-color: var(--bright);
  box-shadow: 0 0 0 3px rgba(46, 139, 212, 0.1);
}

/* Email display */
.email-subject {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  padding: 10px 14px;
  background: var(--pale);
  border: 1px solid var(--border);
  border-radius: 8px 8px 0 0;
  border-bottom: none;
}
textarea.email-body {
  font-family: 'DM Sans', monospace;
  font-size: 0.82rem;
  line-height: 1.65;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 0 0 8px 8px;
  background: white;
  width: 100%;
  min-height: 220px;
  resize: vertical;
  color: var(--text-dark);
}
.email-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

/* Confirm panel */
.confirm-panel {
  background: white;
  border: 2px solid var(--success);
  border-radius: 12px;
  padding: 28px;
  margin-top: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.confirm-panel h2 { color: var(--success); margin-bottom: 12px; }
.confirm-code-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin: 10px 0 4px;
}
.confirm-file {
  font-family: 'DM Sans', monospace;
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 22px;
}
.copy-group { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }

/* Submit explainer */
.submit-explainer {
  margin-bottom: 16px;
}
.submit-explainer summary {
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--bright);
  font-weight: 600;
  padding: 8px 0;
}
.submit-explainer summary:hover { color: var(--mid); }
.submit-explainer-body {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--text-dark);
  line-height: 1.7;
}
.submit-explainer-body p { margin-bottom: 10px; }
.submit-explainer-body p:last-child { margin-bottom: 0; }

#submit-error {
  color: var(--error);
  font-size: 0.88rem;
  margin-top: 8px;
  display: none;
}

/* Quote local notice (Screen 3) */
.quote-local-notice {
  background: #FFF8E1;
  border: 1px solid var(--warning);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 0.85rem;
  color: #5D4037;
  margin-bottom: 16px;
  line-height: 1.6;
}

/* Process Overview static (Screen 3) */
.process-overview-static {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-dark);
}
.process-overview-static h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 14px;
}
.process-overview-static p { margin-bottom: 14px; }
.process-overview-static p:last-child { margin-bottom: 0; }

/* ══════════════════════════════════════════
   DASHBOARD
   ══════════════════════════════════════════ */

.dash-kv {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 8px;
  font-size: 0.88rem;
}
.dash-k {
  width: 90px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-light);
  flex-shrink: 0;
}
.dash-v { color: var(--text-dark); }
.dash-kv-group { margin-top: 12px; }

.dash-budget-total {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.dash-module-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.dash-module-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.dash-module-item:last-child { border-bottom: none; }
.dash-mod-name { color: var(--navy); font-weight: 500; }
.dash-mod-hrs  { color: var(--text-light); font-size: 0.8rem; }

.dash-substeps { margin-top: 10px; font-size: 0.88rem; }
.substep-list {
  list-style: decimal inside;
  margin: 6px 0 0 4px;
  padding: 0;
  color: var(--text-light);
  line-height: 1.9;
}

.activity-entry {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 8px 4px;
  border-bottom: 1px solid var(--border);
  font-size: 0.83rem;
}
.activity-entry:nth-child(even) { background: var(--warm-white); }
.activity-entry:last-child { border-bottom: none; }
.activity-ts    { color: var(--text-light); min-width: 110px; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.activity-event { color: var(--text-dark); }

.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
  letter-spacing: 0.03em;
}
.status-active { background: rgba(22, 163, 74, 0.1); color: var(--success); }
.status-paused { background: rgba(245, 158, 11, 0.12); color: #b07010; }
.status-closed { background: rgba(0,0,0,0.06); color: var(--text-light); }

/* ══════════════════════════════════════════
   RESPOND FORM
   ══════════════════════════════════════════ */

.page-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.page-header-row h1 { margin-bottom: 4px; }

.substep-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.substep-row:last-child { border-bottom: none; }
.substep-label {
  font-size: 0.88rem;
  color: var(--navy);
  flex: 1;
}
.substep-yesno {
  display: flex;
  gap: 18px;
}
.yn-option {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--deep);
}
.yn-option input[type="radio"] { cursor: pointer; }

/* ══════════════════════════════════════════════════════════════════════════════
   GANTT CHART — Phase 2A
   ══════════════════════════════════════════════════════════════════════════════ */

.gantt-wrapper { margin: 8px 0 16px; }
.gantt-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}
.gantt-chart { position: relative; min-height: 120px; }

.gantt-day-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
  border-right: 1px solid #f0f0f0;
  background: var(--warm-white);
  box-sizing: border-box;
}
.gantt-day-name { font-weight: 600; line-height: 1; }
.gantt-day-date { font-size: 0.6rem; line-height: 1; margin-top: 1px; }
.gantt-weekend-header { background: #f0f0f0; color: #999; }

.gantt-weekend-band {
  background: rgba(0,0,0,0.03);
  pointer-events: none;
}

.gantt-today-marker {
  width: 2px;
  background: var(--error);
  pointer-events: none;
  z-index: 5;
}
.gantt-today-marker::before {
  content: 'Today';
  position: absolute;
  top: -2px;
  left: -16px;
  font-size: 0.55rem;
  color: var(--error);
  font-weight: 600;
}

.gantt-row-label {
  font-size: 0.72rem;
  color: var(--navy);
  padding-left: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gantt-bar {
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 500;
  transition: opacity 0.15s;
  user-select: none;
  z-index: 2;
}
.gantt-bar:hover {
  opacity: 0.85;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.gantt-bar-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 6px;
}

.gantt-gap-indicator {
  z-index: 3;
}
.gantt-gap-input {
  background: var(--warm-white);
  color: var(--navy);
}
.gantt-gap-input:focus {
  outline: 2px solid var(--bright);
  border-color: var(--bright);
}

.gantt-warning {
  margin-top: 8px;
  padding: 8px 12px;
  background: #FEF3C7;
  border: 1px solid #F59E0B;
  border-radius: 6px;
  font-size: 0.8rem;
  color: #92400E;
}

.gantt-summary {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ══════════════════════════════════════════════════════════════════════════════
   ACTION ITEM STATUS PILLS — Phase 2A
   ══════════════════════════════════════════════════════════════════════════════ */

.status-pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.status-pill--pending     { background: #F1F5F9; color: #64748B; }
.status-pill--in_progress { background: #DBEAFE; color: #1D4ED8; }
.status-pill--complete    { background: #DCFCE7; color: #15803D; }
.status-pill--blocked     { background: #FEE2E2; color: #DC2626; }
.status-pill--overdue     { background: #FED7AA; color: #C2410C; }

/* ══════════════════════════════════════════════════════════════════════════════
   PROGRESS BAR (action item completion) — Phase 2A
   ══════════════════════════════════════════════════════════════════════════════ */

.progress-track {
  width: 100%;
  height: 8px;
  background: #E2E8F0;
  border-radius: 4px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--success);
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* ══════════════════════════════════════════════════════════════════════════════
   DASHBOARD ENHANCEMENTS — Phase 2A
   ══════════════════════════════════════════════════════════════════════════════ */

.action-item-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.84rem;
}
.action-item-row:last-child { border-bottom: none; }
.action-item-row.overdue { background: #FFF7ED; margin: 0 -12px; padding: 8px 12px; border-radius: 4px; }

.action-item-title { flex: 1; color: var(--navy); }
.action-item-date { font-size: 0.76rem; color: var(--text-light); white-space: nowrap; }
.action-item-owner { font-size: 0.76rem; color: var(--text-light); white-space: nowrap; }

.action-item-check {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--success);
}

.delegation-badge {
  display: inline-block;
  padding: 1px 6px;
  background: var(--pale);
  border-radius: 4px;
  font-size: 0.68rem;
  color: var(--mid);
}

.messages-ready-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  background: var(--bright);
  color: #fff;
  border-radius: 16px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}
.messages-ready-badge:hover { background: var(--deep); }

/* Delegation modal */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal-content {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.modal-content h3 { margin-bottom: 16px; }

/* Compose panel */
.compose-panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin: 12px 0;
  background: var(--warm-white);
}
.compose-field { margin-bottom: 10px; }
.compose-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}
.compose-field input,
.compose-field textarea {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.84rem;
  font-family: inherit;
  box-sizing: border-box;
}
.compose-field textarea { min-height: 120px; resize: vertical; }

/* Auto-refresh indicator */
.refresh-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: var(--text-light);
}
.refresh-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success);
}

/* Analytics panel */
.analytics-panel { margin-top: 24px; }
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 12px;
}
.metric-card {
  padding: 14px;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.metric-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
}
.metric-label {
  font-size: 0.76rem;
  color: var(--text-light);
  margin-top: 2px;
}
.metric-warning { color: var(--warning); }
.metric-danger { color: var(--error); }

/* Analytics sections */
.analytics-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.analytics-section-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}
.analytics-warning {
  font-size: 0.72rem;
  color: var(--error);
  margin-top: 4px;
  font-weight: 600;
}

/* Status breakdown bars */
.analytics-status-bars { display: flex; flex-direction: column; gap: 6px; }
.analytics-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.analytics-status-label {
  font-size: 0.76rem;
  color: var(--text-light);
  width: 80px;
  flex-shrink: 0;
}
.analytics-status-bar-track {
  flex: 1;
  height: 10px;
  background: #eee;
  border-radius: 5px;
  overflow: hidden;
}
.analytics-status-bar-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 0.3s ease;
}
.analytics-status-count {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--navy);
  width: 28px;
  text-align: right;
  flex-shrink: 0;
}

/* Module progress rows */
.analytics-module-list { display: flex; flex-direction: column; gap: 6px; }
.analytics-module-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.analytics-module-name {
  font-size: 0.76rem;
  color: var(--navy);
  width: 160px;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.analytics-module-bar-wrap {
  flex: 1;
  min-width: 60px;
}
.analytics-module-stat {
  font-size: 0.72rem;
  color: var(--text-light);
  width: 36px;
  text-align: right;
  flex-shrink: 0;
}

/* Module card (dashboard) */
.module-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
}
.module-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  cursor: pointer;
  background: var(--warm-white);
  transition: background 0.15s;
}
.module-card-header:hover { background: var(--pale); }
.module-card-body {
  padding: 0 14px 12px;
  border-top: 1px solid var(--border);
}

/* Notification toggle */
.notif-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--text-light);
  cursor: pointer;
}
.notif-toggle input { accent-color: var(--bright); }

/* ── Select page (Step 0) ─────────────────────────────────────────────────── */
.select-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.select-card {
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: var(--warm-white);
}
.select-card:hover {
  border-color: var(--bright);
  box-shadow: 0 2px 8px rgba(0,80,180,0.08);
}
.select-card.is-selected {
  border-color: var(--bright);
  background: var(--pale);
  box-shadow: 0 0 0 3px rgba(0,80,180,0.12);
}
.select-card-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 4px;
}
.select-card-desc {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.4;
}
.select-card-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--bright);
  border: 1px solid var(--bright);
  border-radius: 6px;
}
.primary-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  font-size: 0.68rem;
  font-weight: 600;
  color: white;
  background: var(--bright);
  border-radius: 4px;
  vertical-align: middle;
}
.template-star {
  color: #f5a623;
  margin-right: 4px;
}
.my-template-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.my-template-row:last-child { border-bottom: none; }

/* Intake questions (dynamic from playbook) */
.intake-question {
  margin-bottom: 12px;
}
.intake-question label {
  display: block;
  font-weight: 500;
  font-size: 0.85rem;
  margin-bottom: 4px;
  color: var(--navy);
}
.intake-question select,
.intake-question input[type="text"],
.intake-question input[type="number"] {
  width: 100%;
  max-width: 400px;
}

/* Quick-Start skipped steps */
.progress-step.skipped .step-num {
  background: var(--border);
  color: var(--muted);
}
.progress-step.skipped .step-label {
  color: var(--muted);
  font-style: italic;
}
.progress-connector--skipped {
  border-top-style: dashed;
  opacity: 0.5;
}

/* ══════════════════════════════════════════════════════════════════════════════
   PHASE 2D — Module Status, Cadence, Manage Tab
   ══════════════════════════════════════════════════════════════════════════════ */

/* Status badge additions */
.status-draft   { background: rgba(100,116,139,0.1); color: #64748B; }
.status-on_hold { background: rgba(245,158,11,0.12); color: #b07010; }

/* Module manage cards (project detail page) */
.module-manage-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
  border-left: 3px solid var(--border);
}
.module-manage-card--not_started { border-left-color: #CBD5E1; }
.module-manage-card--in_progress { border-left-color: var(--bright); }
.module-manage-card--complete    { border-left-color: var(--success); }
.module-manage-card--blocked     { border-left-color: var(--error); }

.module-manage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  cursor: pointer;
  background: var(--warm-white);
  transition: background 0.15s;
  gap: 8px;
}
.module-manage-header:hover { background: var(--pale); }
.module-manage-body {
  padding: 12px 14px 14px;
  border-top: 1px solid var(--border);
}

.chevron-icon {
  font-size: 0.6rem;
  color: var(--text-light);
  transition: transform 0.15s;
}

/* Module status icon (colored circle) */
.module-status-icon {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.module-status-icon--not_started { background: #CBD5E1; }
.module-status-icon--in_progress { background: var(--bright); }
.module-status-icon--complete    { background: var(--success); }
.module-status-icon--blocked     { background: var(--error); }

/* Status dots (legend and cadence) */
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}
.status-dot--not_started { background: #CBD5E1; }
.status-dot--in_progress { background: var(--bright); }
.status-dot--complete    { background: var(--success); }
.status-dot--blocked     { background: var(--error); }

/* Timeline block status colors */
.timeline-block--not_started { background: var(--warm-white) !important; border: 1px solid var(--border); }
.timeline-block--in_progress { background: rgba(46,139,212,0.15) !important; border: 1px solid var(--bright); }
.timeline-block--complete    { background: rgba(22,163,74,0.1) !important; border: 1px solid var(--success); }
.timeline-block--blocked     { background: rgba(220,38,38,0.08) !important; border: 1px solid var(--error); }

/* Module status select */
.module-status-select {
  font-family: inherit;
  font-size: 0.78rem;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: white;
  cursor: pointer;
  color: var(--text-dark);
}

/* Cadence panel (dashboard) */
.cadence-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.84rem;
}
.cadence-item:last-child { border-bottom: none; }

.cadence-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cadence-dot--overdue  { background: var(--error); }
.cadence-dot--stale    { background: var(--warning); }
.cadence-dot--on_track { background: var(--success); }
.cadence-dot--due_soon { background: #f59e0b; }

.cadence-item--due_soon { border-left: 3px solid #f59e0b; padding-left: 6px; }

/* Status filter bar (dashboard project list) */
.status-filter-bar {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.status-filter-btn {
  padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: white;
  font-size: 0.78rem;
  font-family: inherit;
  color: var(--text-light);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.status-filter-btn:hover { border-color: var(--bright); color: var(--navy); }
.status-filter-btn.active {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}

/* New action input */
.new-action-input:focus {
  outline: none;
  border-color: var(--bright);
  box-shadow: 0 0 0 2px rgba(46,139,212,0.1);
}

/* ══════════════════════════════════════════════════════════════════════════════
   PHASE 2E — Multi-Resource Staffing
   ══════════════════════════════════════════════════════════════════════════════ */

/* Staffing quote table (project detail — multi-column) */
.staffing-quote-table th {
  font-size: 0.72rem;
  white-space: nowrap;
}
.staffing-quote-table td {
  font-variant-numeric: tabular-nums;
}

/* Staffing panel (modules page — Step 3) */
.staffing-panel {
  padding: 8px 0;
}
.staffing-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
}
.staffing-row label {
  font-size: 0.78rem;
  color: var(--text-light);
  width: 90px;
  flex-shrink: 0;
}
.staffing-row input[type="number"] {
  width: 70px;
  padding: 4px 6px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.82rem;
  font-family: inherit;
}
.staffing-row input[type="number"]:focus {
  outline: none;
  border-color: var(--bright);
}
.staffing-summary {
  font-size: 0.72rem;
  color: var(--text-light);
}

/* Resource level editor (admin profile) */
.resource-level-row input:focus {
  outline: none;
  border-color: var(--bright);
  box-shadow: 0 0 0 2px rgba(46,139,212,0.1);
}

/* ══════════════════════════════════
   PHASE 2H: MICROSOFT EMAIL INTEGRATION
   ══════════════════════════════════ */

.ms-banner {
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 16px;
}
.ms-banner-connected {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}
.ms-banner-disconnected {
  background: var(--pale);
  border: 1px solid #bde0fe;
}

.btn-send {
  background: var(--bright);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
  transition: background 0.15s;
}
.btn-send:hover {
  background: var(--mid);
}
.btn-send:disabled {
  background: var(--border);
  cursor: not-allowed;
  color: var(--text-light);
}

.msg-sent-status {
  font-size: 0.78rem;
  color: var(--success);
  margin-bottom: 8px;
}

/* Email settings section in admin profile */
.email-settings-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.email-settings-section h3 {
  color: var(--navy);
  margin-bottom: 8px;
}
.sig-textarea {
  width: 100%;
  max-width: 500px;
  font-size: 0.85rem;
  font-family: inherit;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  resize: vertical;
  line-height: 1.5;
}
.sig-textarea:focus {
  outline: none;
  border-color: var(--bright);
  box-shadow: 0 0 0 2px rgba(46,139,212,0.1);
}
