:root {
  --bg: #fafaf9;
  --ink: #1c1917;
  --muted: #57534e;
  --line: #e7e5e4;
  --card: #ffffff;
  --brand: #fcb040;
  --brand-hover: #e09220;
  --brand-ink: #1c1917;
  --danger: #b42318;
  --ok: #157347;
  --warn: #9a6700;
  --sales: #c4851a;
  --service: #1d4e89;
  --leadership: #44403c;
  --shadow: 0 1px 2px rgba(28, 25, 23, 0.06), 0 8px 24px rgba(28, 25, 23, 0.04);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
h1, h2, h3, .brand strong, .eyebrow {
  font-family: "Inter Tight", Inter, sans-serif;
  letter-spacing: -0.02em;
}
h1 { font-size: 2rem; font-weight: 700; margin: 0 0 0.4rem; line-height: 1.2; }
h2 { font-size: 1.15rem; margin: 0 0 0.4rem; }
img { max-width: 100%; }
a { color: var(--ink); }
a:hover { color: #111; }
.skip {
  position: absolute; left: -999px; top: 0;
}
.skip:focus { left: 16px; background: #fff; padding: 8px; z-index: 10; }

.preview-banner {
  background: var(--ink);
  color: #fff;
  text-align: center;
  font-size: 0.82rem;
  padding: 0.45rem 1rem;
}
.wrap {
  width: min(1120px, calc(100% - 80px));
  margin: 0 auto;
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 32px); }
}

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 76px;
  flex-wrap: wrap;
  padding: 0.75rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.brand img { width: 40px; height: 40px; }
.brand strong { display: block; font-size: 0.95rem; }
.brand em { display: block; font-style: normal; color: var(--muted); font-size: 0.8rem; }
.nav { display: flex; gap: 0.25rem 1rem; flex-wrap: wrap; flex: 1; }
.nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
}
.nav a.active { border-bottom-color: var(--brand); }
.session { margin-left: auto; display: flex; align-items: center; gap: 0.75rem; }
.who { font-size: 0.9rem; color: var(--muted); }
button.linkish {
  background: none; border: 0; padding: 0; font: inherit; cursor: pointer;
  text-decoration: underline;
}

.page { padding: 2.75rem 0 4rem; }
.narrow { max-width: 640px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 0.5rem;
}
.lead { color: var(--muted); margin: 0 0 1.5rem; max-width: 46rem; }
.muted { color: var(--muted); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
}
.form label, .override label { display: block; font-weight: 500; margin: 0.9rem 0 0.35rem; }
.form label:first-child { margin-top: 0; }
input, select, textarea {
  width: 100%;
  font: inherit;
  padding: 0.65rem 0.75rem;
  border: 1px solid #d6d3d1;
  border-radius: 10px;
  background: #fff;
}
.btn, .btn-secondary, .btn-danger {
  display: inline-block;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font: inherit;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  background: var(--brand);
  color: var(--brand-ink);
}
.btn:hover { background: var(--brand-hover); }
.btn-secondary { background: #fff; border: 1px solid var(--line); }
.btn-secondary:hover { background: #f5f5f4; }
.btn-danger { background: #fff; color: var(--danger); border: 1px solid #f0c8c4; }
.form .btn { margin-top: 1.1rem; }
.form.inline {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: end;
}
.form.inline label { margin: 0; flex: 1; min-width: 160px; }
.form.inline label:first-child { flex: 1.6; min-width: 260px; }
.form.inline .btn, .form.inline .btn-secondary { margin: 0; }

.status-bar {
  display: flex; gap: 0.75rem; align-items: end; flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.status-bar label { margin: 0; }
.status-bar select { width: 240px; }
.status-bar .btn { margin: 0; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.person { display: flex; gap: 0.9rem; align-items: flex-start; }
.person h2 { margin: 0; font-size: 1.05rem; }
.person .role, .person .meta { margin: 0; font-size: 0.9rem; color: var(--muted); }
.avatar {
  flex: 0 0 42px;
  width: 42px; height: 42px; border-radius: 50%;
  background: #fde6b8;
  color: #7a4b00;
  display: grid; place-items: center;
  font-family: "Inter Tight", Inter, sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
}
.person.is-off { opacity: 0.92; background: #fafafa; }
.status-line { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.45rem 0 0; }
.pill, .tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
}
.pill { background: #f5f5f4; }
.tag { background: #fff6e5; color: #7a4b00; }
.status-off { background: #f4e8e8; color: #7a1f1f; }
.status-mt.-juliet-office, .status-gallatin-office { background: #e8f0e8; color: #1c5a2e; }
.status-remote { background: #eef2f7; color: #1d4e89; }
.status-in-the-field { background: #f3eee8; color: #6b4f2a; }
.note { font-size: 0.88rem; color: var(--muted); margin: 0.35rem 0 0; }

.cal-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin: 1rem 0 1.25rem;
}
.cal-nav h2 { margin: 0; font-size: 1.35rem; }
.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 1.25rem;
}
@media (max-width: 860px) {
  .calendar-layout { grid-template-columns: 1fr; }
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.cal-dow {
  background: #fff;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0.5rem 0;
}
.cal-cell {
  background: #fff;
  min-height: 108px;
  padding: 0.4rem;
}
.cal-cell.empty { background: #f5f5f4; }
.cal-cell.today { outline: 2px solid var(--brand); outline-offset: -2px; }
.cal-date { font-weight: 600; font-size: 0.85rem; margin-bottom: 0.25rem; }
.chip {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 6px;
  padding: 0.12rem 0.3rem;
  margin-bottom: 0.2rem;
  background: #f5f5f4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chip.team-sales { background: #fff1d6; color: #7a4b00; }
.chip.team-service { background: #e4eef8; color: #1d4e89; }
.chip.team-leadership { background: #eceae8; color: #3f3f3f; }
.chip.status-pending, .chip.status-escalated {
  border: 1px dashed currentColor;
  background: #fff;
}
.chip .mini { font-weight: 500; opacity: 0.7; margin-left: 0.15rem; }
.side ul.plain { list-style: none; padding: 0; margin: 0; }
.side li { display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.28rem 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.legend { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 1rem; }

.decision { border-left: 5px solid var(--brand); }
.decision-approved { border-left-color: var(--ok); }
.decision-denied { border-left-color: var(--danger); }
.decision-escalated, .decision-pending { border-left-color: var(--warn); }
.findings { padding-left: 1.1rem; }
.findings li { margin: 0.6rem 0; }
.dev-card { margin-top: 2rem; }
.dev-form { margin-top: 0.5rem; }
.notice {
  background: #fff6e5;
  border: 1px solid #f0d7a0;
  border-radius: 12px;
  padding: 0.8rem 1rem;
}
.code { font-size: 1.25rem; letter-spacing: 0.12em; }
.error, .error-list { color: var(--danger); }
.clock-box { margin: 1rem 0 1.75rem; }
.data { width: 100%; border-collapse: collapse; background: #fff; }
.data th, .data td { text-align: left; padding: 0.65rem 0.7rem; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.data th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.filters { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 0 0 1.25rem; }
.filters a { text-decoration: none; font-weight: 600; padding: 0.2rem 0; border-bottom: 2px solid transparent; }
.filters a.active { border-bottom-color: var(--brand); }
.request-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1rem; margin-bottom: 1rem; }
@media (max-width: 800px) { .request-row { grid-template-columns: 1fr; } }
.row-actions { display: flex; gap: 0.5rem; margin-top: 0.6rem; }
.total { margin: 1rem 0; }
.site-footer { border-top: 1px solid var(--line); padding: 1.5rem 0 2.5rem; color: var(--muted); font-size: 0.88rem; }
.site-footer p { margin: 0; }

.pill.group-rover { background: #f3eee8; color: #6b4f2a; }
.pill.group-account_manager { background: #e4eef8; color: #1d4e89; }
.pill.group-manager { background: #eceae8; color: #3f3f3f; }
.pill.group-unset { background: #f5f5f4; color: #57534e; }
.tag-warn { background: #f4e8e8; color: #7a1f1f; }
.tag-ok { background: #e8f0e8; color: #1c5a2e; }
.roster-row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1rem; margin-bottom: 1rem; }
@media (max-width: 800px) { .roster-row { grid-template-columns: 1fr; } }

.pill.group-sales_team { background: #efe8f5; color: #5b3d7a; }
.pill.group-sales_team_manager { background: #efe8f5; color: #5b3d7a; }
.pill.group-not_tracked { background: #f5f5f4; color: #57534e; }
