@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/poppins-600.ttf") format("truetype");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/poppins-700.ttf") format("truetype");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/poppins-800.ttf") format("truetype");
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/lato-400.ttf") format("truetype");
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/lato-700.ttf") format("truetype");
}

:root {
  --navy: #0F1B2D;
  --navy-2: #16263c;
  --navy-3: #1c314d;
  --steel: #3D5A80;
  --cream: #F4EFE6;
  --ice: #90CAF9;
  --ink: #E8E4DA;
  --muted: #9AA8BB;
  --line: #2A3F5A;
  --ok: #7DCEA0;
  --ok-bg: #173528;
  --warn: #F0C36A;
  --warn-bg: #3A2E12;
  --danger: #E07A6A;
  --danger-bg: #3A1C1A;
  --tap: 44px;
  --wrap: 1100px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--navy); }
body {
  font-family: "Lato", "Segoe UI", system-ui, sans-serif;
  background: var(--navy);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.45;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, .brand, .score, .stat b, .stamp {
  font-family: "Poppins", "Segoe UI", sans-serif;
}

img, svg, video { max-width: 100%; }
a { color: var(--ice); }
a:focus-visible, button:focus-visible, select:focus-visible,
input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--ice);
  outline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 16px;
}

/* —— Header —— */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(15, 27, 45, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 8px 0 4px;
}
.brand-block {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.brand {
  color: var(--cream);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 18px;
  text-transform: uppercase;
}
.chip-sample {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--navy-3);
  color: var(--muted);
  white-space: nowrap;
  border: 1px solid var(--line);
}
.when {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.navs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  padding: 0 0 8px;
}
.nav-main, .nav-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  min-width: 0;
}
.nav-main a, .nav-sub a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 0 12px;
  text-decoration: none;
  border-radius: 8px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  white-space: nowrap;
}
.nav-main a {
  color: var(--cream);
  font-size: 14px;
}
.nav-sub a {
  color: var(--muted);
  font-size: 13px;
}
.nav-main a.on, .nav-main a[aria-current="page"],
.nav-sub a.on, .nav-sub a[aria-current="page"] {
  color: var(--navy);
  background: var(--ice);
}
.nav-split {
  width: 1px;
  height: 22px;
  background: var(--line);
  margin: 0 4px;
}

main {
  padding: 20px 0 48px;
}

h1 {
  font-size: 26px;
  margin: 0 0 6px;
  color: var(--cream);
  font-weight: 700;
}
h2 {
  font-size: 16px;
  margin: 28px 0 10px;
  color: var(--cream);
  font-weight: 700;
  letter-spacing: 0.01em;
}
h3 {
  font-size: 15px;
  margin: 0 0 6px;
  color: var(--cream);
  font-weight: 600;
}
.lead {
  color: var(--muted);
  margin: 0 0 18px;
  font-size: 15px;
}
.meta { color: var(--muted); font-size: 13px; }
.crumb {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 10px;
}
.crumb a { color: var(--ice); text-decoration: none; }
.empty { color: var(--muted); padding: 8px 0; }

.flash {
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 14px;
  font-size: 14px;
  min-height: var(--tap);
  display: flex;
  align-items: center;
}
.flash.ok { background: var(--ok-bg); color: var(--ok); }
.flash.err { background: var(--danger-bg); color: var(--danger); }
.flash.warn { background: var(--warn-bg); color: var(--warn); }
.flash[hidden] { display: none; }

/* —— Cards & grids —— */
.card {
  background: var(--navy-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  min-width: 0;
}
.card a.block {
  display: block;
  text-decoration: none;
  color: inherit;
  min-height: var(--tap);
}
.cards { display: grid; gap: 10px; }
.grid-2, .grid-3, .grid-home {
  display: grid;
  gap: 12px;
}
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-home { grid-template-columns: 1fr; }
.row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.row.wrap { flex-wrap: wrap; }
.stack { display: grid; gap: 10px; }

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--navy-3);
  color: var(--ice);
  white-space: nowrap;
}
.badge.real { background: var(--ice); color: var(--navy); }
.badge.open { background: var(--ok-bg); color: var(--ok); }
.badge.low { background: var(--danger-bg); color: var(--danger); }
.badge.praise { background: #1F3A2C; color: var(--ok); }
.badge.float { background: var(--steel); color: var(--cream); }
.badge.inactive { background: #2A2A32; color: #8A8A96; }
.badge.proposed { background: #1A3348; color: var(--ice); }
.badge.countered { background: var(--warn-bg); color: var(--warn); }
.badge.accepted { background: #1F3A2C; color: var(--ok); }
.badge.hired { background: var(--ok); color: var(--navy); }
.badge.passed { background: var(--danger-bg); color: var(--danger); }
.badge.incoming { background: #2A2416; color: var(--warn); }
.badge.draft { background: var(--navy-3); color: var(--muted); }

.score {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: 22px;
  color: var(--ice);
  white-space: nowrap;
}
.score small { font-size: 12px; color: var(--muted); font-weight: 600; }

/* —— Forms —— */
label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin: 12px 0 6px;
  color: var(--cream);
}
input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
input[type="file"], input[type="date"], select, textarea {
  width: 100%;
  max-width: 100%;
  min-height: var(--tap);
  border: 1px solid var(--steel);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 16px;
  background: #0B1524;
  color: var(--cream);
  font-family: inherit;
}
textarea { min-height: 88px; resize: vertical; }
.scores { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.scores label { margin-top: 0; }
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--tap);
  font-weight: 700;
}
.check input { width: 22px; height: 22px; flex: 0 0 22px; }

button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: var(--ice);
  color: var(--navy);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  width: 100%;
  margin-top: 10px;
  font-family: "Poppins", sans-serif;
}
button.secondary, .btn.secondary {
  background: transparent;
  color: var(--ice);
  border: 1.5px solid var(--ice);
}
button.ghost, .btn.ghost {
  background: var(--navy-3);
  color: var(--cream);
}
button:disabled, .btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: default;
}
.btn-row, .btn-row-3 {
  display: grid;
  gap: 8px;
}
.btn-row { grid-template-columns: 1fr 1fr; }
.btn-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.btn-row .btn, .btn-row button,
.btn-row-3 .btn, .btn-row-3 button { margin-top: 8px; }

/* —— Tables —— */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--navy-2);
  border-radius: 12px;
  overflow: hidden;
}
th, td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-family: "Poppins", sans-serif;
}
tr:last-child td { border-bottom: 0; }
td a { text-decoration: none; font-weight: 700; }

.statgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.stat {
  background: var(--navy-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}
.stat b { display: block; font-size: 22px; color: var(--cream); }
.stat span { color: var(--muted); font-size: 12px; font-weight: 700; }

.dl { margin: 0; }
.dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.dl dt { color: var(--muted); font-size: 13px; }
.dl dd { margin: 0; font-weight: 700; text-align: right; color: var(--cream); word-break: break-word; }

.chips, .creds {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 4px;
}
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: var(--navy-3);
  color: var(--muted);
  white-space: nowrap;
}
.chip.on { background: var(--ok-bg); color: var(--ok); }
.chip.off { background: #1A1F28; color: #6B7787; }
.chip.float { background: var(--steel); color: var(--cream); }
.chip.rel { background: var(--warn-bg); color: var(--warn); }
.chip.room { background: #1A3348; color: var(--ice); }
.chip.lang { background: #1A3348; color: var(--cream); }

.filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}
.filterbar select {
  width: auto;
  min-width: 160px;
  flex: 1 1 160px;
}

.letter-doc {
  background: #141C1A;
  border: 2px solid var(--ice);
  border-radius: 12px;
  padding: 20px 18px 16px;
  margin: 0 0 14px;
  color: var(--cream);
}
.letter-doc.hired { border-color: var(--ok); background: var(--ok-bg); }
.letter-doc.passed { border-color: var(--danger); background: var(--danger-bg); }
.letter-doc.counter { border-color: var(--warn); }
.stamp {
  display: inline-block;
  border: 3px solid var(--ok);
  color: var(--ok);
  font-weight: 800;
  letter-spacing: 0.14em;
  padding: 2px 10px;
  transform: rotate(-8deg);
  font-size: 18px;
}
.letter-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}

.thread { margin: 8px 0 0; padding: 0; list-style: none; }
.thread li {
  position: relative;
  padding: 0 0 16px 18px;
  border-left: 3px solid var(--steel);
}
.thread li:last-child { padding-bottom: 0; }
.thread li::before {
  content: "";
  position: absolute;
  left: -6px; top: 4px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--ice);
}
.thread .who { font-weight: 700; color: var(--cream); }

.why { margin: 8px 0 0; font-size: 14px; color: var(--cream); }
.quiet { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.resume {
  white-space: pre-wrap;
  background: #0B1524;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  overflow-x: auto;
}
.inactive-card { opacity: 0.7; }
.hidden { display: none !important; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.section-head h2 { margin: 28px 0 10px; }
.count { color: var(--muted); font-size: 13px; }

.split {
  display: grid;
  gap: 16px;
}

@media (min-width: 720px) {
  .wrap { padding: 0 24px; }
  h1 { font-size: 30px; }
  .grid-2, .grid-home { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
  .statgrid { grid-template-columns: repeat(4, 1fr); }
  .scores { grid-template-columns: repeat(4, 1fr); }
  button, .btn { width: auto; }
  .btn-row, .btn-row-3 { justify-items: start; }
  .split { grid-template-columns: 340px 1fr; align-items: start; }
  .nav-split { display: block; }
}

@media (min-width: 1100px) {
  .statgrid { grid-template-columns: repeat(6, 1fr); }
}

@media (max-width: 719px) {
  .nav-split { display: none; }
  .when { display: none; }
  .nav-main a, .nav-sub a { padding: 0 10px; }
  table { font-size: 13px; }
  th, td { padding: 10px 8px; }
}

/* —— Dashboard / office (group desk) —— */
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.dash > section { margin: 0 0 8px; }
.dash .section-head h2 { margin: 22px 0 10px; }
.dash > section:first-of-type .section-head h2 { margin-top: 6px; }
.section-link {
  color: var(--ice);
  text-decoration: none;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}
.section-link:hover { text-decoration: underline; }
.section-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: baseline;
}
.subhead-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin: 14px 0 8px;
}
.subhead-row .subhead { margin: 0; }
.incoming-note, .block-note {
  color: var(--muted);
  font-size: 13px;
  margin: 10px 0 0;
}
.sample-mark {
  display: inline;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-left: 4px;
}
.subhead {
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 14px 0 8px;
}
.subhead:first-child { margin-top: 0; }
.table-block {
  background: var(--navy-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.table-block + .table-block { margin-top: 10px; }
.table-block table { border-radius: 0; background: transparent; }
.table-block th, .table-block td { padding: 10px 12px; }
.table-block tr:last-child td { border-bottom: 0; }
.short td:nth-child(3) { color: var(--warn); }
.facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0 0 18px;
}
.fact {
  background: var(--navy-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}
.fact span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.fact b {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  color: var(--cream);
  font-weight: 700;
}
.office-empty { color: var(--muted); margin: 0; }
.office-list { list-style: none; margin: 0; padding: 0; }
.office-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.office-list li:last-child { border-bottom: 0; }
.office-list a { font-weight: 700; text-decoration: none; }
.badge.approved { background: var(--ok-bg); color: var(--ok); }
.badge.not-connected { background: var(--navy-3); color: var(--muted); }

@media (min-width: 720px) {
  .facts { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) {
  .facts { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 719px) {
  table.stack thead { display: none; }
  table.stack,
  table.stack tbody,
  table.stack tr,
  table.stack td { display: block; width: 100%; }
  table.stack tr {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
  }
  table.stack tr:last-child { border-bottom: 0; }
  table.stack td {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 3px 0;
    border: 0;
  }
  table.stack td::before {
    content: attr(data-th);
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex: 0 0 40%;
  }
  table.stack td:first-child {
    color: var(--cream);
    font-weight: 700;
    padding-bottom: 6px;
  }
}

/* —— Home board: cards + collapse —— */
.dash {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dash-sec {
  margin: 0;
  background: transparent;
}
.dash-sum {
  display: flex;
  align-items: baseline;
  gap: 12px;
  list-style: none;
  cursor: pointer;
  min-height: 44px;
  padding: 6px 0;
}
.dash-sum::-webkit-details-marker { display: none; }
.dash-sum::marker { content: none; display: none; }
.dash-sum h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--cream);
  flex: 1 1 auto;
  min-width: 0;
}
.dash-sum .section-link {
  flex: 0 0 auto;
  margin-left: auto;
}
.dash-sum .chev {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  margin: 0 2px 3px 4px;
  transition: transform 0.15s ease;
}
.dash-sec[open] > .dash-sum .chev {
  transform: rotate(-135deg);
  margin-bottom: 0;
  margin-top: 6px;
}
.dash-body {
  padding: 12px 0 14px;
}
.card-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
.card-grid .card {
  margin: 0;
  padding: 16px;
}
.card-grid .card h3 { margin: 0 0 4px; }
.card-grid .card h3 a { text-decoration: none; color: var(--cream); }
.card-grid .kv {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 5px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.card-grid .card .kv:first-of-type { margin-top: 10px; }
.card-grid .kv span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex: 0 0 42%;
}
.card-grid .kv b {
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--cream);
  text-align: right;
  word-break: break-word;
}
.card-grid .kv.short b { color: var(--warn); }
.room-card.short { border-color: #3A2E12; }
.card-grid .jobs { margin: 8px 0 0; padding: 0; list-style: none; }
.card-grid .jobs li { padding: 4px 0; }
.dash-body .subhead { margin-top: 16px; }
.dash-body .subhead:first-child { margin-top: 0; }
.dash-body .block-note { margin-top: 0; margin-bottom: 10px; }

@media (min-width: 720px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .card-grid.rooms { grid-template-columns: 1fr 1fr 1fr; }
}


/* —— Pricing (coming soon) —— */
.nav-soon {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-left: 5px;
  color: var(--muted);
}
.nav-sub a.on .nav-soon,
.nav-sub a[aria-current="page"] .nav-soon {
  color: var(--navy);
  opacity: 0.75;
}
.cadence {
  display: flex;
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--steel);
  border-radius: 10px;
  overflow: hidden;
}
.cadence button {
  width: auto;
  margin: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  min-width: 96px;
}
.cadence button.on {
  background: var(--ice);
  color: var(--navy);
}
.soon-mark {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-left: 8px;
  opacity: 0.8;
}

/* —— Saturday watchlist (layer on room cards, not a fifth home H2) —— */
.watch-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0 0 14px;
  padding: 10px 12px;
  background: var(--navy-2);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.watch-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.watch-chip {
  width: auto;
  margin: 0;
  min-height: 36px;
  padding: 0 12px;
  background: var(--navy-3);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}
.watch-chip.on {
  background: var(--steel);
  color: var(--cream);
  border-color: var(--steel);
}
.watch-rank-lab {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: "Poppins", sans-serif;
}
.watch-rank-lab select {
  width: auto;
  min-width: 176px;
  min-height: 40px;
}
.watch-count {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.watch-bar .section-link {
  margin-left: auto;
}
.watch-hide { display: none !important; }

.room-card {
  position: relative;
}
.room-card.risk-at {
  border-color: #4A2A28;
  box-shadow: inset 4px 0 0 #C45C4A;
}
.room-card.risk-watch {
  border-color: #3F3420;
  box-shadow: inset 4px 0 0 #C4A056;
}
.room-card.risk-steady {
  box-shadow: none;
}
.risk-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.risk-chip.at {
  background: var(--danger-bg);
  color: var(--danger);
}
.risk-chip.watch {
  background: var(--warn-bg);
  color: var(--warn);
}
.risk-chip.steady {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  font-weight: 700;
}
.room-card .chips { margin: 6px 0 0; }
.watch-why {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--cream);
  line-height: 1.35;
}
.room-card.risk-steady .watch-why { color: var(--muted); }

.office-watch {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--navy-2);
}
.office-watch.risk-at {
  box-shadow: inset 4px 0 0 #C45C4A;
  border-color: #4A2A28;
}
.office-watch.risk-watch {
  box-shadow: inset 4px 0 0 #C4A056;
  border-color: #3F3420;
}
.office-watch .chips { margin: 0 0 6px; }
.office-watch .watch-why { margin: 0; }

.thresh-sec { margin: 22px 0; }
.thresh-sec h2 { margin: 0 0 8px; }
.thresh-row {
  display: grid;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.thresh-row:last-child { border-bottom: 0; }
.thresh-row label { margin: 0; }
.thresh-row .meta { margin: 0; }
.thresh-row input[type="range"] {
  width: 100%;
  accent-color: var(--ice);
}
.thresh-num {
  display: flex;
  align-items: center;
  gap: 10px;
}
.thresh-num input[type="number"] {
  width: 88px;
  min-width: 88px;
  flex: 0 0 88px;
}
.thresh-soon {
  opacity: 0.72;
}
.thresh-soon input,
.thresh-soon button { pointer-events: none; }
.band-list { margin: 0; padding: 0; list-style: none; }
.band-list li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.band-list li:last-child { border-bottom: 0; }
.weight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (min-width: 720px) {
  .thresh-row {
    grid-template-columns: minmax(180px, 1.2fr) 1fr auto;
    align-items: center;
  }
  .weight-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 719px) {
  .watch-bar .section-link { margin-left: 0; }
  .watch-chip { flex: 1 1 auto; }
}


/* —— Sentiment / recovery (sample) —— */
.sent-flags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.sent-flag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.sent-flag.slipping {
  background: var(--warn-bg);
  color: var(--warn);
}
.sent-flag.chronic {
  background: var(--danger-bg);
  color: var(--danger);
}
.sent-flag.praise {
  background: #1F3A2C;
  color: var(--ok);
}
.office-sent {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--cream);
}
.badge.not-called { background: var(--danger-bg); color: var(--danger); }
.badge.draft-ready { background: #1A3348; color: var(--ice); }
.badge.called { background: var(--ok-bg); color: var(--ok); }
.badge.thanked { background: #1F3A2C; color: var(--ok); }
@media (min-width: 1100px) {
  .card-grid.rooms-sent { grid-template-columns: 1fr 1fr 1fr; }
}


/* —— Guests folds (quiet, not a hero) —— */
.fold {
  margin: 22px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--navy-2);
  padding: 0 14px;
}
.fold.fold-quiet {
  background: transparent;
}
.fold > summary {
  list-style: none;
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--muted);
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 13px;
}
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::marker { content: none; display: none; }
.fold[open] { padding-bottom: 14px; }
.fold h3 { margin-top: 12px; }
#guest-filter .watch-rank-lab { margin-right: 2px; }

.listing-link {
  display: inline;
  font-weight: 700;
  word-break: normal;
  overflow-wrap: normal;
}
p.quiet { overflow-wrap: anywhere; }


/* —— Tonight list (under Restaurants, not a fifth home head) —— */
.tonight-list {
  display: flex;
  flex-direction: column;
  margin: 0 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--navy-2);
  overflow: hidden;
}
.tonight-list[hidden] { display: none; }
.tonight-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 12px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--line);
  min-height: 36px;
}
.tonight-row:last-child { border-bottom: 0; }
.tonight-row:hover { background: var(--navy-3); }
.tonight-row .risk-chip { flex: 0 0 auto; }
.tonight-name {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--cream);
  flex: 0 1 auto;
  white-space: nowrap;
}
.tonight-detail {
  font-size: 13px;
  color: var(--muted);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1 1 auto;
}

.risk-at .kv.slip b { color: var(--danger); }
.risk-watch .kv.slip b { color: var(--warn); }


/* —— Create new role (openings) —— */
.create-role {
  margin: 0 0 18px;
  padding: 16px;
}
.create-role > h2 {
  margin: 0 0 4px;
}
.create-role > .quiet {
  margin: 0 0 14px;
}
.create-role-paths {
  display: grid;
  gap: 12px;
}
.create-role .drop-card {
  background: var(--navy);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  min-width: 0;
}
.create-role .drop-card h3 { margin: 0 0 4px; }
.create-role .drop-card .meta { margin: 0 0 12px; }
.create-role .file-pick { margin: 0 0 10px; }
.create-role .file-pick input[type="file"] { margin: 0; width: 100%; }
.create-role .drop-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 12px;
  border: 2px dashed var(--ice);
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  background: #0B1524;
}
.create-role .drop-zone.over {
  border-color: var(--steel);
  background: #1A3348;
  color: var(--cream);
}
.create-role .file-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.create-role .file-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  min-height: var(--tap);
}
.create-role .file-row:last-child { border-bottom: 0; }
.create-role .file-name {
  flex: 1 1 140px;
  min-width: 0;
  font-weight: 700;
  color: var(--cream);
  word-break: break-word;
}
.create-role .file-mark,
.create-role .file-size {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.create-role-linkrow {
  display: grid;
  gap: 8px;
}
.create-role-linkrow button { margin-top: 0; }
.create-role .drop-card label { margin-top: 0; }

#new-role {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}
#new-role:empty {
  display: none;
  margin: 0;
}
.new-role-card {
  background: var(--navy);
  border: 1px solid var(--line);
}
.new-role-card > .row h3 { margin: 0; }
.new-role-card .dl { margin-top: 8px; }
.match-list {
  display: grid;
  gap: 8px;
  margin: 8px 0 0;
}
.match-card {
  background: var(--navy-2);
  padding: 12px 14px;
}
.match-card h3 { margin: 0; }
.match-card .why { margin: 6px 0 8px; }
.match-card .person-link {
  font-weight: 700;
  text-decoration: none;
}
.badge.new {
  background: var(--steel);
  color: var(--cream);
}

@media (min-width: 720px) {
  .create-role-paths { grid-template-columns: 1fr 1fr; }
  .create-role-linkrow {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
  .match-list { grid-template-columns: 1fr 1fr; }
}


/* —— Customers (mini book, not last-night) —— */
.badge.card,
.chip.card {
  display: inline-flex;
  align-items: center;
  width: auto;
  min-width: 0;
  min-height: 26px;
  padding: 0 8px;
  margin: 0;
  border: 0;
  border-radius: 999px;
  box-shadow: none;
}
.badge.card {
  background: var(--ok-bg);
  color: var(--ok);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.chip.card {
  background: var(--steel);
  color: var(--cream);
  font-size: 11px;
  font-weight: 700;
}
.badge.card-lapsed {
  background: var(--warn-bg);
  color: var(--warn);
}
#customer-filter .watch-rank-lab { margin-right: 2px; }
