:root {
  --navy: #1F3A5F;
  --navy-dark: #142845;
  --gold: #C9A961;
  --gold-soft: #E8D9A8;
  --cream: #FBF8F0;
  --paper: #FFFFFF;
  --bg: #F7F5F1;
  --max: #2E5C8A;
  --max-soft: #DCE8F4;
  --max-tint: #F0F5FB;
  --harper: #C8553D;
  --harper-soft: #F5DDD5;
  --harper-tint: #FBEFEA;
  --ink: #1a1a1a;
  --gray: #6b6b6b;
  --gray-light: #E5E1DA;
  --gray-lighter: #F0EEE8;
  --green: #2D6A4F;
  --shadow: 0 1px 2px rgba(20,40,69,.05), 0 2px 8px rgba(20,40,69,.04);
  --shadow-lg: 0 2px 6px rgba(20,40,69,.06), 0 8px 24px rgba(20,40,69,.06);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  font-family: "Nunito", "Avenir Next", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1100px; margin: 0 auto; padding: 24px 20px 80px; }

/* Header — friendlier */
header.masthead {
  text-align: center;
  padding: 18px 16px 24px;
  margin-bottom: 22px;
  position: relative;
}
.eyebrow {
  font-family: inherit;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 800;
  margin-bottom: 8px;
}
h1.title {
  font-family: "Fraunces", "Recoleta", "Domine", Georgia, serif;
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 4px;
}
h1.title em {
  font-style: italic;
  color: var(--gold);
  font-weight: 700;
}
.subtitle {
  color: var(--gray);
  font-size: 15px;
  margin-top: 6px;
  font-weight: 500;
}
.hairline {
  width: 40px; height: 3px; background: var(--gold);
  border-radius: 2px;
  margin: 14px auto 0;
}

/* Reusable stat classes (used by Lot Scout scoreboard) */
.stat-label {
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 700;
  margin-bottom: 4px;
}
.stat-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.01em;
}
.stat-sub { font-size: 13px; color: var(--gray); margin-top: 2px; }

/* Tabs */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--gray-light);
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.tab {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 10px 16px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--gray);
  cursor: pointer;
  transition: all .15s ease;
  white-space: nowrap;
}
.tab:hover { color: var(--navy); }
.tab.active {
  color: var(--navy);
  border-bottom-color: var(--gold);
}

/* Module grid */
.modules {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}
.mod-card {
  background: var(--paper);
  border: 1px solid var(--gray-light);
  border-radius: 14px;
  padding: 18px 20px 20px;
  cursor: pointer;
  transition: all .18s ease;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.mod-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--max) 0%, var(--max) 50%, var(--harper) 50%, var(--harper) 100%);
  opacity: 0;
  transition: opacity .2s ease;
}
.mod-card:hover::before { opacity: 1; }
.mod-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}
.mod-card.completed {
  background: linear-gradient(135deg, #f0f9f3, var(--paper));
  border-color: #b5d6c0;
}
.mod-card.completed::before {
  opacity: 1;
  background: var(--green);
}
.mod-num {
  font-size: 11px;
  letter-spacing: .15em;
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.mod-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.25;
  letter-spacing: -.01em;
}
.mod-core {
  font-size: 13.5px;
  color: var(--gray);
  line-height: 1.5;
  margin-bottom: 14px;
  min-height: 40px;
}
.mod-tracks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
.track-mini {
  background: white;
  border-radius: 6px;
  padding: 8px 10px;
  font-family: ui-sans-serif, -apple-system, sans-serif;
  font-size: 11px;
}
.track-mini.max { border-left: 3px solid var(--max); }
.track-mini.harper { border-left: 3px solid var(--harper); }
.track-name {
  font-weight: 700;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.track-mini.max .track-name { color: var(--max); }
.track-mini.harper .track-name { color: var(--harper); }
.track-progress {
  display: flex;
  align-items: center;
  gap: 6px;
}
.track-bar {
  flex: 1;
  height: 4px;
  background: var(--gray-light);
  border-radius: 2px;
  overflow: hidden;
}
.track-fill {
  height: 100%;
  transition: width .3s ease;
  border-radius: 2px;
}
.track-mini.max .track-fill { background: var(--max); }
.track-mini.harper .track-fill { background: var(--harper); }
.track-pct {
  font-size: 10px;
  color: var(--gray);
  font-weight: 600;
  min-width: 24px;
}
.mod-status-icon {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: white;
  font-weight: 700;
}
.mod-card.completed .mod-status-icon { background: var(--green); }
.mod-card.in-progress .mod-status-icon { background: var(--gold); }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(20,40,69,.5);
  backdrop-filter: blur(4px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  z-index: 100;
  padding: 32px 16px;
  overflow-y: auto;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--paper);
  max-width: 820px;
  width: 100%;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--gray-light);
  margin-bottom: 32px;
}
.modal-head {
  background: var(--navy);
  color: white;
  padding: 24px 30px;
  position: relative;
}
.modal-eyebrow {
  font-family: ui-sans-serif, sans-serif;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 4px;
}
.modal-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
}
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255,255,255,.15);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover { background: rgba(255,255,255,.3); }
.modal-body { padding: 28px 30px 32px; }
.core-idea {
  background: var(--cream);
  border-left: 3px solid var(--gold);
  padding: 14px 18px;
  margin-bottom: 24px;
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: var(--navy-dark);
}
.core-idea strong { font-style: normal; color: var(--gold); font-family: ui-sans-serif, sans-serif; font-size: 11px; letter-spacing: .15em; text-transform: uppercase; display: block; margin-bottom: 4px; }
.topics-list {
  margin-bottom: 28px;
  color: var(--gray);
  line-height: 1.6;
}
.topics-list strong { color: var(--navy); font-family: ui-sans-serif, sans-serif; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; display: block; margin-bottom: 6px; }

/* Track sections in modal */
.track-section {
  background: white;
  border-radius: 10px;
  padding: 20px 22px;
  margin-bottom: 20px;
  border: 1px solid var(--gray-light);
}
.track-section.max { border-left: 4px solid var(--max); }
.track-section.harper { border-left: 4px solid var(--harper); }
.track-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.track-header h3 {
  font-family: ui-sans-serif, sans-serif;
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 800;
}
.track-section.max h3 { color: var(--max); }
.track-section.harper h3 { color: var(--harper); }
.track-progress-text {
  font-size: 12px;
  color: var(--gray);
  font-family: ui-sans-serif, sans-serif;
}

.task {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--gray-light);
}
.task:first-of-type { border-top: none; }
.task-checkbox {
  width: 22px;
  height: 22px;
  border: 2px solid var(--gray-light);
  border-radius: 5px;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
  background: white;
  transition: all .12s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 14px;
}
.task-checkbox:hover { border-color: var(--navy); }
.task.done .task-checkbox {
  background: var(--green);
  border-color: var(--green);
}
.task.done .task-checkbox::after { content: "✓"; }
.task.done .task-text { text-decoration: line-through; color: var(--gray); }
.task-text {
  flex: 1;
  font-size: 15px;
  line-height: 1.5;
  cursor: pointer;
}

/* Notes */
.notes-section {
  background: var(--cream);
  border-radius: 10px;
  padding: 18px 20px;
  margin-top: 20px;
  border: 1px solid var(--gold-soft);
}
.notes-label {
  font-family: ui-sans-serif, sans-serif;
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.notes-saved {
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  color: var(--green);
  font-weight: 500;
  font-size: 11px;
  opacity: 0;
  transition: opacity .3s;
}
.notes-saved.show { opacity: 1; }
textarea.notes {
  width: 100%;
  min-height: 100px;
  padding: 12px 14px;
  border: 1px solid var(--gray-light);
  border-radius: 6px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  background: white;
  resize: vertical;
  color: var(--ink);
}
textarea.notes:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.notes-meta {
  font-size: 11px;
  color: var(--gray);
  margin-top: 6px;
  font-family: ui-sans-serif, sans-serif;
}

/* Tab content panels */
.panel { display: none; }
.panel.active { display: block; }

/* Avatars in various places */
.track-avatar {
  width: 26px;
  height: 26px;
  vertical-align: middle;
  margin-right: 6px;
  display: inline-block;
}
.row-avatar {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: block;
}
.overview-avatar {
  width: 80px;
  height: 80px;
  display: block;
  margin: 0 auto 12px;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,.15));
}

/* Overview panel */
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}
@media (max-width: 720px) { .overview-grid { grid-template-columns: 1fr; } }
.kid-card {
  background: var(--paper);
  border-radius: 12px;
  padding: 24px 26px;
  border: 1px solid var(--gray-light);
  box-shadow: var(--shadow);
}
.kid-card.max { border-top: 4px solid var(--max); }
.kid-card.harper { border-top: 4px solid var(--harper); }
.kid-name {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 4px;
}
.kid-card.max .kid-name { color: var(--max); }
.kid-card.harper .kid-name { color: var(--harper); }
.kid-track-name {
  font-family: ui-sans-serif, sans-serif;
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 18px;
}
.big-progress { margin-bottom: 14px; }
.big-progress-bar {
  height: 10px;
  background: var(--gray-light);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 6px;
}
.big-progress-fill {
  height: 100%;
  transition: width .5s ease;
  border-radius: 5px;
}
.kid-card.max .big-progress-fill { background: linear-gradient(90deg, var(--max), #4a7eb8); }
.kid-card.harper .big-progress-fill { background: linear-gradient(90deg, var(--harper), #e07560); }
.big-progress-text {
  font-size: 13px;
  color: var(--gray);
  display: flex;
  justify-content: space-between;
}
.kid-strengths {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.55;
  margin-top: 14px;
  font-style: italic;
}

/* Capstone */
.capstone-card {
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  color: white;
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 24px;
}
.capstone-card .eyebrow { color: var(--gold); }
.capstone-card h2 {
  font-size: 24px;
  margin-bottom: 8px;
}
.capstone-card p { color: rgba(255,255,255,.85); font-size: 15px; line-height: 1.55; }

/* Journal */
.journal-entry {
  background: var(--paper);
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 14px;
  border: 1px solid var(--gray-light);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all .15s ease;
}
.journal-entry:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}
.journal-meta {
  font-family: ui-sans-serif, sans-serif;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 6px;
}
.journal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.journal-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  white-space: pre-wrap;
}
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray);
  font-style: italic;
}

/* Resources panel */
.resource-section {
  background: var(--paper);
  border-radius: 10px;
  padding: 22px 26px;
  margin-bottom: 18px;
  border: 1px solid var(--gray-light);
  box-shadow: var(--shadow);
}
.resource-section h3 {
  color: var(--navy);
  font-size: 18px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gold-soft);
}
.resource-list { list-style: none; }
.resource-list li {
  padding: 8px 0;
  font-size: 14px;
  line-height: 1.55;
  border-bottom: 1px dashed var(--gray-light);
}
.resource-list li:last-child { border-bottom: none; }
.resource-list li strong { color: var(--navy); }

/* Hard limits box */
.hard-limits {
  background: #FAEDED;
  border: 1px solid #d99090;
  border-radius: 10px;
  padding: 20px 24px;
  margin-top: 18px;
}
.hard-limits h3 { color: #8B0000; font-size: 16px; margin-bottom: 10px; }
.hard-limits ul { list-style: none; }
.hard-limits li {
  padding: 4px 0;
  color: #6b1010;
  font-size: 14px;
  padding-left: 20px;
  position: relative;
}
.hard-limits li::before { content: "✕"; position: absolute; left: 0; color: #8B0000; font-weight: 700; }

/* Data controls */
.data-controls {
  background: var(--paper);
  border-radius: 10px;
  padding: 22px 26px;
  margin-top: 24px;
  border: 1px solid var(--gray-light);
  box-shadow: var(--shadow);
}
.data-controls h3 {
  color: var(--navy);
  font-size: 18px;
  margin-bottom: 8px;
}
.data-note {
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 14px;
  font-style: italic;
}
.data-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  background: var(--navy);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-family: ui-sans-serif, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  transition: all .12s ease;
}
.btn:hover { background: var(--navy-dark); }
.btn-gold { background: var(--gold); color: var(--navy-dark); }
.btn-gold:hover { background: #b69648; }
.btn-ghost { background: transparent; color: var(--navy); border: 1px solid var(--gray-light); }
.btn-ghost:hover { background: var(--cream); }
.btn-danger { color: #8B0000; border-color: #d99090; }
.btn-danger:hover { background: #FAEDED; }

.session-controls {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-light);
  flex-wrap: wrap;
}
.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-family: ui-sans-serif, sans-serif;
  font-size: 11px;
  letter-spacing: .08em;
  font-weight: 700;
  text-transform: uppercase;
}
.status-badge.upcoming { background: var(--gray-light); color: var(--gray); }
.status-badge.in-progress { background: var(--gold-soft); color: #6e5418; }
.status-badge.complete { background: #d4e8da; color: var(--green); }

/* Footer */
footer {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-light);
  text-align: center;
  color: var(--gray);
  font-size: 13px;
  font-style: italic;
}
footer .quote {
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--navy);
}

@media (max-width: 600px) {
  .wrap { padding: 20px 14px 60px; }
  .modal-body { padding: 22px 20px 24px; }
  .modal-head { padding: 20px 22px; }
}

/* ============ DUO HERO — compact, friendly, side-by-side ============ */
.duo-hero {
  display: flex;
  align-items: stretch;
  background: var(--paper);
  border: 1px solid var(--gray-light);
  border-radius: 16px;
  padding: 18px 8px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  gap: 4px;
}

.kid-block {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 14px;
  border-radius: 12px;
  transition: background-color .15s ease;
  min-width: 0;
}
.kid-block:hover { background: var(--gray-lighter); }
.kid-block.max:hover { background: var(--max-tint); }
.kid-block.harper:hover { background: var(--harper-tint); }

.kid-divider {
  width: 1px;
  background: var(--gray-light);
  margin: 4px 0;
}
@media (max-width: 720px) {
  .duo-hero { flex-direction: column; padding: 14px; gap: 10px; }
  .kid-divider { width: 100%; height: 1px; margin: 0; }
}

.kid-avatar {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.08));
  transition: transform .25s ease;
}
.kid-block:hover .kid-avatar { transform: scale(1.06) rotate(-2deg); }
.kid-block.harper:hover .kid-avatar { transform: scale(1.06) rotate(2deg); }

.kid-info { flex: 1; min-width: 0; }

.kid-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.kid-headline {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}
.kid-firstname {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1;
}
.kid-block.max .kid-firstname { color: var(--max); }
.kid-block.harper .kid-firstname { color: var(--harper); }
.kid-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray);
  letter-spacing: .04em;
  white-space: nowrap;
}

.kid-streak {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: linear-gradient(135deg, #ff6b35, #ff3c3c);
  color: white;
  border-radius: 11px;
  padding: 2px 8px 2px 6px;
  font-weight: 800;
  font-size: 12px;
  box-shadow: 0 1px 3px rgba(255,60,60,.25);
  flex-shrink: 0;
}
.kid-streak.zero {
  background: var(--gray-lighter);
  color: var(--gray);
  box-shadow: none;
}
.kid-streak.zero .flame-icon { filter: grayscale(.8); opacity: .6; }
.flame-icon { font-size: 11px; line-height: 1; }
.flame-count { line-height: 1; }

.kid-progress-bar {
  height: 6px;
  background: var(--gray-lighter);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}
.kid-progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width .6s ease;
}
.kid-block.max .kid-progress-fill { background: linear-gradient(90deg, var(--max), #4a7eb8); }
.kid-block.harper .kid-progress-fill { background: linear-gradient(90deg, var(--harper), #e07560); }

.kid-row-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.kid-pct {
  font-weight: 800;
  font-size: 13px;
}
.kid-block.max .kid-pct { color: var(--max); }
.kid-block.harper .kid-pct { color: var(--harper); }
.kid-tasks {
  color: var(--gray);
  font-weight: 500;
}
.kid-flex-spacer { flex: 1; }
.kid-earned {
  color: var(--green);
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
  background: #f0f8f3;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid #d4ebd9;
}
.kid-pending {
  color: #b67a1a;
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
  background: #fff8e0;
  padding: 2px 7px;
  border-radius: 10px;
  border: 1px solid var(--gold-soft);
  font-style: italic;
}
.kid-pending::before { content: "•"; margin-right: 3px; opacity: .5; }

/* ============ COMPACT PROGRAM STRIP ============ */
.program-strip {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: var(--paper);
  border: 1px solid var(--gray-light);
  border-radius: 12px;
  padding: 12px 18px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  flex-wrap: wrap;
  gap: 10px;
}
.strip-item {
  text-align: center;
  flex: 1;
  min-width: 70px;
}
.strip-divider {
  width: 1px;
  height: 30px;
  background: var(--gray-light);
}
@media (max-width: 600px) { .strip-divider { display: none; } }
.strip-label {
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 700;
  margin-bottom: 2px;
}
.strip-value {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
}
.strip-next {
  font-size: 13px;
  color: var(--gold);
  font-weight: 700;
}

/* Portfolio Check-in box in modal */
.portfolio-checkin {
  background: linear-gradient(135deg, #fff8e8, var(--cream));
  border: 1px solid var(--gold);
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 22px;
}
.portfolio-checkin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px;
}
.portfolio-checkin-title {
  font-family: ui-sans-serif, sans-serif;
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 800;
}
.portfolio-checkin-help {
  font-size: 13px;
  color: var(--gray);
  font-style: italic;
  margin-bottom: 14px;
  line-height: 1.5;
}
.portfolio-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: white;
  border-radius: 6px;
  margin-bottom: 8px;
  border: 1px solid var(--gray-light);
  cursor: pointer;
  transition: all .12s ease;
}
.portfolio-row:hover { border-color: var(--gold); }
.portfolio-row:last-child { margin-bottom: 0; }
.portfolio-row.checked { background: #f0f7f2; border-color: var(--green); }
.portfolio-row .task-checkbox {
  width: 22px;
  height: 22px;
  border: 2px solid var(--gray-light);
  border-radius: 5px;
  flex-shrink: 0;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 14px;
}
.portfolio-row.checked .task-checkbox {
  background: var(--green);
  border-color: var(--green);
}
.portfolio-row.checked .task-checkbox::after { content: "✓"; }
.portfolio-row .kid-name {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
}
.portfolio-row.max .kid-name { color: var(--max); }
.portfolio-row.harper .kid-name { color: var(--harper); }
.portfolio-row .kid-task {
  flex: 1;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.4;
}
.portfolio-row.checked .kid-task { color: var(--gray); }

/* ============ WEEKLY JOBS ============ */
.weekly-jobs {
  background: linear-gradient(135deg, #f0f7f2, #e8f1eb);
  border: 1px solid #b5d6c0;
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 22px;
}
.weekly-jobs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.weekly-jobs-title {
  font-family: ui-sans-serif, sans-serif;
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 800;
}
.weekly-jobs-help {
  font-size: 13px;
  color: var(--gray);
  font-style: italic;
  margin-bottom: 14px;
  line-height: 1.5;
}
.job-track-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: ui-sans-serif, sans-serif;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 800;
  margin-top: 14px;
  margin-bottom: 8px;
}
.job-track-label:first-child { margin-top: 0; }
.job-track-label.max-label { color: var(--max); }
.job-track-label.harper-label { color: var(--harper); }
.row-avatar.small { width: 22px; height: 22px; }

.job-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: white;
  border-radius: 8px;
  margin-bottom: 8px;
  border: 1px solid var(--gray-light);
  border-left-width: 3px;
  cursor: pointer;
  transition: all .15s ease;
  position: relative;
}
.job-row:last-child { margin-bottom: 0; }
.job-row.max { border-left-color: var(--max); }
.job-row.harper { border-left-color: var(--harper); }
.job-row:hover { border-color: var(--gold); transform: translateY(-1px); box-shadow: var(--shadow); }
.job-row.max:hover { border-left-color: var(--max); }
.job-row.harper:hover { border-left-color: var(--harper); }

.job-row.done {
  background: #fff9e8;
  border-color: var(--gold);
}
.job-row.pending {
  background: #fff4d6;
  border-color: var(--gold);
  border-left-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold-soft) inset;
}
.job-row.paid {
  background: linear-gradient(135deg, #e8f5ec, #d4ebd9);
  border-color: var(--green);
  border-left-color: var(--green);
}
.job-row.paid .job-title { color: var(--green); }

.job-checkbox-stack {
  position: relative;
  flex-shrink: 0;
  margin-top: 2px;
}
.job-row .task-checkbox {
  width: 24px;
  height: 24px;
  border: 2px solid var(--gray-light);
  border-radius: 5px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 14px;
}
.job-row.done .task-checkbox.is-checked,
.job-row.pending .task-checkbox.is-checked {
  background: var(--gold);
  border-color: var(--gold);
}
.job-row.done .task-checkbox.is-checked::after,
.job-row.pending .task-checkbox.is-checked::after { content: "✓"; }
.job-row.paid .task-checkbox.is-checked {
  background: var(--green);
  border-color: var(--green);
}
.job-row.paid .task-checkbox.is-checked::after { content: "✓"; }
.job-paid-stamp {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--green);
  color: white;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
}

.job-icon {
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}
.job-content { flex: 1; min-width: 0; }
.job-row-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 3px;
}
.job-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
}
.job-badge {
  font-family: ui-sans-serif, sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 12px;
  letter-spacing: .04em;
  white-space: nowrap;
}
.job-badge.unearned {
  background: var(--cream);
  color: #6e5418;
  border: 1px solid var(--gold-soft);
}
.job-badge.pending {
  background: #fff0c4;
  color: #8a5a0a;
  border: 1px solid var(--gold);
}
.job-badge.paid {
  background: #d4ebd9;
  color: var(--green);
  border: 1px solid var(--green);
}
.job-description {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.45;
  margin-bottom: 4px;
}
.job-helper {
  font-family: ui-sans-serif, sans-serif;
  font-size: 11px;
  color: var(--gold);
  font-weight: 600;
  font-style: italic;
}
.lotscout-hero {
  background: linear-gradient(135deg, var(--max), #1d4068);
  color: white;
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-lg);
}
.lotscout-hero .eyebrow.gold { color: var(--gold); margin-bottom: 6px; }
.lotscout-hero h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.15;
}
.lotscout-intro {
  color: rgba(255,255,255,.85);
  font-size: 15px;
  line-height: 1.55;
  max-width: 720px;
}

.scoreboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.score-card {
  background: var(--paper);
  border: 1px solid var(--gray-light);
  border-top: 3px solid var(--max);
  border-radius: 10px;
  padding: 14px 16px;
  text-align: center;
  box-shadow: var(--shadow);
}
.score-card .stat-label { margin-bottom: 6px; }
.score-card .stat-value { font-size: 24px; }
.gold-text { color: var(--gold) !important; }

.lot-add-section {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.lot-form {
  background: var(--paper);
  border: 1px solid var(--gray-light);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.lot-form h3 {
  color: var(--navy);
  font-size: 18px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gold-soft);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
.form-field { display: flex; flex-direction: column; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-family: ui-sans-serif, sans-serif;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 700;
  margin-bottom: 6px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--gray-light);
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  background: white;
  color: var(--ink);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--gold);
  border-color: var(--gold);
}
.form-field textarea { resize: vertical; min-height: 60px; }
.form-actions { display: flex; gap: 10px; }

.lots-filters {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.filter-btn {
  background: transparent;
  border: 1px solid var(--gray-light);
  padding: 6px 12px;
  border-radius: 14px;
  font-family: ui-sans-serif, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray);
  cursor: pointer;
  transition: all .12s ease;
}
.filter-btn:hover { color: var(--navy); border-color: var(--navy); }
.filter-btn.active {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}

.lot-card {
  background: var(--paper);
  border: 1px solid var(--gray-light);
  border-left: 4px solid var(--gray);
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  transition: all .15s ease;
}
.lot-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}
.lot-card.status-pitched { border-left-color: var(--gold); }
.lot-card.status-review { border-left-color: var(--max); }
.lot-card.status-passed { border-left-color: var(--gray); opacity: .7; }
.lot-card.status-contract { border-left-color: var(--harper); }
.lot-card.status-closed { border-left-color: var(--green); }

.lot-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}
.lot-address {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.lot-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-family: ui-sans-serif, sans-serif;
  font-size: 12px;
  color: var(--gray);
}
.lot-meta strong { color: var(--navy); font-size: 13px; }
.lot-action-badge {
  background: var(--cream);
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
  color: var(--navy);
  border: 1px solid var(--gold-soft);
}
.lot-date { font-style: italic; }

.lot-status-pill {
  font-family: ui-sans-serif, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 12px;
  white-space: nowrap;
}
.lot-status-pill.status-pitched { background: var(--gold-soft); color: #6e5418; }
.lot-status-pill.status-review { background: var(--max-soft); color: var(--max); }
.lot-status-pill.status-passed { background: var(--gray-light); color: var(--gray); }
.lot-status-pill.status-contract { background: var(--harper-soft); color: var(--harper); }
.lot-status-pill.status-closed { background: #d4e8da; color: var(--green); }

.lot-section {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--gray-light);
}
.lot-section.dad-notes {
  background: var(--cream);
  border-radius: 6px;
  padding: 10px 12px;
  margin-top: 12px;
  border-top: none;
  border-left: 3px solid var(--gold);
}
.lot-section-label {
  font-family: ui-sans-serif, sans-serif;
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 4px;
}
.lot-section-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  white-space: pre-wrap;
}

.lot-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--gray-light);
  flex-wrap: wrap;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

/* LOT SCOUT tag in module tasks */
.lot-scout-tag {
  display: inline-block;
  background: var(--max);
  color: white;
  font-family: ui-sans-serif, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  padding: 2px 8px;
  border-radius: 10px;
  margin-right: 6px;
  vertical-align: middle;
}
/* MARKETING SCOUT tag (Harper's twin) */
.marketing-scout-tag {
  display: inline-block;
  background: var(--harper);
  color: white;
  font-family: ui-sans-serif, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  padding: 2px 8px;
  border-radius: 10px;
  margin-right: 6px;
  vertical-align: middle;
}

@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
  .lot-card-head { flex-direction: column; }
}

@media print {
  .tabs, .stats, .modal-overlay, .data-controls, footer { display: none !important; }
  .panel { display: block !important; }
  .mod-card { break-inside: avoid; box-shadow: none; }
}
