:root {
  --bg: #f6f1e8;
  --card: #fffdf8;
  --ink: #1c2430;
  --dim: #4d5868;
  --navy: #142033;
  --line: #e4d9c8;
  --orange: #e36a2f;
  --ok: #1f7a4d;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.45;
}
.crew-app { width: min(880px, calc(100% - 24px)); margin: 0 auto; padding-bottom: 48px; }
body[data-portal="crew"] .crew-tabs { display: none; }
body[data-portal="crew"] .crew-app { padding-bottom: 108px; }
.crew-bottom { display: none; }
body[data-portal="crew"] .crew-bottom { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; gap: 8px; padding: 8px 10px calc(10px + env(safe-area-inset-bottom)); background: white; border-top: 1px solid var(--line); }
.crew-bottom .crew-tab { flex: 1; min-height: 56px; font-size: 16px; }
.crew-warn { color: #9a3412; font-weight: 700; }
.scan-dialog { position: fixed; inset: 0; z-index: 40; background: rgba(11, 31, 51, 0.55); overflow: auto; padding: 16px; }
.scan-card { width: min(720px, 100%); margin: 0 auto; background: white; border-radius: 16px; padding: 16px; }
.scan-stage { background: #111; border-radius: 12px; min-height: 180px; }
.scan-stage video, .scan-stage canvas { width: 100%; height: auto; display: block; }
.scan-pages { font-weight: 700; }
.crew-top { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; }
.crew-brand { color: var(--navy); font-family: Outfit, sans-serif; font-weight: 700; text-decoration: none; font-size: 20px; }
.crew-brand small { display: block; font-weight: 500; color: var(--dim); font-size: 13px; }
h1, h2 { font-family: Outfit, sans-serif; letter-spacing: -0.03em; margin: 0 0 8px; }
h1 { font-size: 34px; }
h2 { font-size: 24px; margin-top: 28px; }
.crew-lead, .crew-who { color: var(--dim); }
form label, .crew-block { display: block; margin: 0 0 12px; font-weight: 600; }
label.check-line input { display: inline-block; width: auto; margin: 0 8px 0 0; vertical-align: middle; }
input, select, textarea {
  display: block; width: 100%; margin-top: 4px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px; font: inherit; background: white;
}
.crew-btn, .crew-tab, .job-card, .dir-btn {
  min-height: 48px; border-radius: 12px; font: inherit; font-weight: 700;
}
.crew-btn { width: 100%; border: 0; background: var(--orange); color: white; cursor: pointer; }
.crew-btn-big { min-height: 72px; font-size: 22px; margin-top: 8px; }
input[readonly] { background: #f3eee6; color: var(--ink); }
.crew-text { border: 0; background: transparent; color: var(--navy); font: inherit; font-weight: 700; padding: 12px 0; }
.invite-actions { display: grid; gap: 8px; }
button.invite-revoke,
button.invite-refresh {
  display: inline;
  width: auto;
  min-height: 0;
  margin: 8px 8px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #1d4e89;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}
.detail-sticky {
  position: fixed;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-sizing: border-box;
  min-height: 68px;
  padding: 8px 12px;
  background: #fff;
  color: #0b1f33;
  border-bottom: 1px solid #d5deea;
}
.detail-sticky[hidden] { display: none !important; }
.detail-back {
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #0b1f33;
  font: 700 18px/1 Inter, "Segoe UI", sans-serif;
  cursor: pointer;
}
.detail-close {
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 10px;
  background: #0b1f33;
  color: #fff;
  font: 500 36px/1 Inter, "Segoe UI", sans-serif;
  cursor: pointer;
}
body[data-portal="crew"] #detail.detail-open { padding-top: 76px; }
.property-office-card {
  background: #fff;
  border: 1px solid #d5deea;
  border-radius: 12px;
  padding: 16px;
  margin: 12px 0 8px;
  box-shadow: 0 1px 2px rgba(11, 31, 51, 0.06);
}
.property-office-card h3 {
  margin: 0 0 4px;
  color: #0b1f33;
  font-size: 26px;
}
.property-role {
  margin: 0 0 10px;
  color: #1d4e89;
  font-weight: 700;
}
.property-pending {
  margin: 0;
  padding: 12px 14px;
  background: #e8f0fa;
  color: #0b1f33;
  border-radius: 8px;
  font-weight: 700;
}
.property-booking {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin: 14px 0 0;
}
.property-booking div { margin: 0; }
.property-booking dt {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #3e5166;
  font-weight: 700;
}
.property-booking dd {
  margin: 2px 0 0;
  color: #0b1f33;
  font-weight: 700;
}
@media (max-width: 720px) {
  .property-booking { grid-template-columns: 1fr; }
}
.matterport-wrap { margin: 0 0 12px; }
.matterport-wrap iframe,
#matterport-full-frame {
  display: block;
  width: 100%;
  height: 320px;
  border: 1px solid #d5deea;
  border-radius: 10px;
  background: #fff;
}
#matterport-full { display: flex; align-items: stretch; }
#matterport-full[hidden] { display: none !important; }
#matterport-full-frame { height: calc(100vh - 96px); margin: 64px 16px 16px; }
.matterport-wrap .crew-btn,
.scan-video .crew-btn { background: #1d4e89; color: #fff; border: 0; border-radius: 8px; }
.scan-video video,
#scan-full-video {
  display: block;
  width: 100%;
  max-height: 420px;
  background: #0b1f33;
  border-radius: 10px;
  margin: 0 0 8px;
}
#scan-full-video { max-height: calc(100vh - 96px); margin: 64px 16px 16px; }
.crew-status { min-height: 1.4em; color: var(--navy); font-weight: 700; }
.crew-status:not(:empty) { background: #fff4d6; border-radius: 10px; padding: 10px 12px; }
button:disabled { opacity: 0.7; }
.crew-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.crew-tab { flex: 1 1 108px; border: 1px solid var(--line); background: white; }
.crew-tab[aria-pressed="true"] { background: var(--navy); color: white; border-color: var(--navy); }
.crew-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.position-picks { border: 1px solid #d5deea; border-radius: 12px; margin: 0 0 12px; padding: 8px 12px 12px; background: #fff; }
.position-picks legend { font-weight: 700; color: #0b1f33; padding: 0 6px; }
.position-picks label { display: flex; align-items: center; gap: 8px; margin: 8px 0; font-weight: 600; color: #0b1f33; }
.position-picks input { accent-color: #1d4e89; width: 1.15rem; height: 1.15rem; }
#place-form .crew-btn { background: #1d4e89; color: #fff; border: 0; border-radius: 8px; }
.day { margin: 0 0 16px; }
.day h3 { margin: 0 0 8px; font-size: 16px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--dim); }
.job-card { display: block; width: 100%; text-align: left; min-height: 72px; padding: 18px 16px; margin: 0 0 8px; border: 1px solid var(--line); background: var(--card); cursor: pointer; }
.job-row { display: flex; gap: 8px; align-items: stretch; margin: 0 0 8px; }
.truck-pickup { display: block; margin: 0 0 12px; font-weight: 600; }
.truck-pickup select { margin-top: 4px; }
.job-row .job-card { flex: 1; margin: 0; }
.job-check { display: flex; align-items: center; }
.job-row > .crew-btn { align-self: center; white-space: nowrap; width: auto; flex: 0 1 auto; padding: 10px 12px; }
@media (max-width: 720px) {
  .job-row { flex-direction: column; align-items: stretch; }
  .job-row .job-card { flex: 1 1 auto; width: 100%; }
  .job-row > .crew-btn { width: 100%; }
}
.review-ask { flex: 1 0 180px; display: flex; flex-direction: column; justify-content: center; padding: 8px 8px 8px 0; }
.review-channels { display: flex; flex-wrap: wrap; gap: 8px 16px; border: 0; margin: 0 0 12px; padding: 0; }
.review-channels label { font-weight: 600; }
.review-stand { margin-bottom: 18px; }
.review-stand h2 { margin-top: 0; }
#review-dialog-sms { text-align: center; text-decoration: none; display: flex; align-items: center; justify-content: center; }
#review-dialog-sms[hidden], #review-dialog-copy[hidden], #review-dialog-send[hidden] { display: none; }
.board-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.job-card strong { display: block; font-size: 22px; }
.count-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.count-row p { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.count-row strong { font-size: 28px; }
.review-link { display: flex; align-items: center; justify-content: center; margin-top: 8px; text-decoration: none; }
.hours-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hours-card { margin-top: 18px; }
.job-card span { color: var(--dim); font-weight: 600; }
.job-block { margin: 0 0 12px; }
.work-order-actions { margin: 0 0 8px; }
a.crew-btn, .print-work-order { display: flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; padding: 12px; margin: 0 0 8px; }
.paperwork-missing { color: #b84e1c; font-weight: 700; }
.paperwork-received { color: var(--ok); font-weight: 700; }
.cal-block { margin: 4px 0 0; }
.cal-block .work-order-actions { margin: 4px 0 0; }
.cal-block .crew-lead { margin: 4px 0; font-size: 13px; }
.cal-block a.crew-btn { padding: 8px; font-size: 14px; }
.cal-job .paperwork-missing, .cal-job .paperwork-received { color: #ffe7b0; }
.detail-card, .office-price { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin: 0 0 12px; }
.heat{display:inline-block;font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;border-radius:999px;padding:2px 8px;}
.heat-hot{background:#fde8dc;color:#b84e1c;}
.heat-warm{background:#fff4d6;color:#8a5a00;}
.heat-new{background:#e7edf4;color:#142033;}
.partner-flag{display:inline-block;font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;border-radius:999px;padding:2px 8px;}
.partner-flag-expired,.partner-flag-missing{background:#fde8dc;color:#b84e1c;}
.partner-flag-expiring{background:#fff4d6;color:#8a5a00;}
.partner-flag-current{background:#e7f6ee;color:#1f7a4d;}
.overnight h3{font-size:18px;margin:14px 0 4px;}
.overnight ul{margin:0 0 8px;padding-left:20px;}
.office-price { background: #fff7e8; }
.raw-email { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 320px; overflow: auto; font-size: 14px; }
.dir-row, .action-row { display: flex; gap: 8px; flex-wrap: wrap; }
.property-stop { margin: 8px 0 12px; }
.property-stop p { margin: 0 0 8px; }
.property-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.property-photos figure { margin: 0; }
.property-photos figcaption { font-size: 13px; color: var(--dim); font-weight: 700; }
.property-photos img { width: 100%; height: 140px; object-fit: cover; border-radius: 12px; background: #e7e1d6; display: block; }
.property-missing { margin: 8px 0 0; color: var(--dim); font-weight: 700; }
@media (max-width: 640px) {
  .property-photos { grid-template-columns: 1fr; }
}
.dir-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; padding: 12px; background: var(--navy); color: white; text-decoration: none; }
.dir-btn.alt { background: white; color: var(--navy); border: 1px solid var(--line); }
.media img, .media video { width: 100%; border-radius: 12px; margin-top: 8px; background: #ddd; }
canvas { width: 100%; height: 180px; background: white; border: 1px dashed var(--line); border-radius: 12px; touch-action: none; }
.crew-linkbox { word-break: break-all; font-size: 14px; }
.truck-map { margin: 12px 0; border-radius: 12px; overflow: hidden; }
.crew-quiet { color: var(--dim); font-size: 14px; text-decoration: none; }
.week-nav { display: flex; gap: 8px; align-items: center; margin: 0 0 12px; }
.week-nav p { flex: 1; margin: 0; text-align: center; font-weight: 700; }
.call { font-size: 28px; }
.status-steps { list-style: none; padding: 0; margin: 16px 0 20px; }
.status-steps li { padding: 16px; margin: 0 0 8px; border: 1px solid var(--line); border-radius: 12px; background: white; font-weight: 700; }
.status-steps li.past { color: var(--ok); border-color: #b7dfc8; }
.status-steps li.current { background: var(--navy); color: white; border-color: var(--navy); }
.ok { color: var(--ok); }
.job-stack { display: flex; flex-direction: column; gap: 12px; margin: 0 0 12px; }
#rental-truck label:not([hidden]), #job-details label:not([hidden]), #people-card label:not([hidden]) { display: flex; flex-direction: column; gap: 4px; align-items: stretch; }
#rental-truck [hidden], #job-details [hidden], #people-card [hidden] { display: none !important; }
#rental-truck .crew-btn, #job-details .crew-btn { min-height: 44px; }
@media (max-width: 860px) {
  #rental-truck .crew-row, #job-details .crew-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  h1 { font-size: 32px; }
  .crew-app { width: min(880px, calc(100% - 20px)); }
  .crew-row { grid-template-columns: 1fr; }
}
.portal-card, .money-grid p { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin: 0 0 12px; }
.portal-tabs, .crew-customer-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.portal-tabs .crew-tab, .crew-customer-nav .crew-tab { min-height: 44px; }
.portal-tabs .crew-tab[aria-pressed="true"] { background: var(--navy); color: white; border-color: var(--navy); }
.portal-hint { margin: 0 0 12px; color: var(--dim); }
.thread { display: flex; flex-direction: column; gap: 8px; margin: 0 0 12px; }
.bubble { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 0; }
.detail-list { margin: 0; }
.detail-list div { margin: 0 0 10px; }
.detail-list dt { font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--dim); }
.detail-list dd { margin: 0; font-weight: 700; }
.inv-room { margin: 0 0 12px; }
.inv-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 8px; }
.inv-row span { flex: 1; }
.qty-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: white; font: inherit; font-weight: 700; }
.qty-num { min-width: 24px; text-align: center; font-weight: 700; }
.recent-flag { display: inline-block; margin-left: 8px; background: #fff1e4; color: #9a3412; border-radius: 999px; padding: 2px 8px; font-size: 13px; font-weight: 700; }
.media-grid img, .media-grid video { width: 100%; max-height: 280px; border-radius: 12px; background: white; }
.crew-customer-nav { display: none; }
body[data-portal="crew"] .crew-customer-nav { display: flex; }
.money-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 12px; }
.money-grid p { margin: 0; }
.hours-line { grid-column: 1 / -1; font-size: 17px; line-height: 1.45; font-weight: 600; }
.email-preview { white-space: pre-wrap; background: #fffdf8; border: 1px solid var(--line); border-radius: 12px; padding: 12px; max-height: 320px; overflow: auto; font-size: 14px; line-height: 1.45; }
.portal-email-step { position: fixed; inset: 0; z-index: 40; background: rgba(11, 31, 51, 0.55); overflow: auto; padding: 16px; }
.portal-email-card { width: min(720px, 100%); margin: 12px auto; max-height: calc(100vh - 32px); display: flex; flex-direction: column; overflow: hidden; }
.portal-email-card h2 { margin-top: 0; }
.portal-email-card .email-preview { flex: 1 1 auto; min-height: 140px; max-height: none; }
.portal-email-actions { flex: 0 0 auto; }
.money-grid strong, .portal-card strong { display: block; font-size: 22px; }
.pay-link { display: flex; align-items: center; justify-content: center; margin: 0 0 10px; text-decoration: none; }
.flag { background: #fff4d6; }
.move-hero {
  background: linear-gradient(165deg, #142033 0%, #24344d 72%);
  color: #fffdf8;
  border-radius: 22px;
  padding: 18px 16px 20px;
  margin: 8px 0 16px;
}
.move-logo { display: inline-block; background: #fffdf8; border-radius: 12px; padding: 8px 10px; line-height: 0; }
.move-logo img { display: block; width: min(220px, 70vw); height: auto; }
.move-hero h1 { color: #fffdf8; margin-top: 12px; }
.move-hero .sample-flag { margin-top: 12px; }
.move-hero .crew-lead { color: #f3e4d4; margin: 0; }
.sample-flag {
  display: inline-block;
  margin: 0 0 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--orange);
  color: white;
  font-family: Outfit, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.countdown, .cheer {
  display: inline-block;
  margin: 10px 8px 0 0;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
}
.countdown { background: var(--orange); color: white; }
.cheer { background: #fff4d6; color: var(--navy); }
.move-hero .cheer { background: #fffdf8; }
.link-box { border-color: var(--navy); }
.portal .status-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin: 8px 0 18px;
}
.portal .status-steps li {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--dim);
  text-align: center;
  font-size: 12px;
  line-height: 1.25;
}
.portal .status-steps li::before {
  content: "";
  display: block;
  height: 8px;
  margin: 0 0 8px;
  border-radius: 99px;
  background: #e4d9c8;
}
.portal .status-steps li.past { color: var(--ok); }
.portal .status-steps li.past::before { background: var(--ok); }
.portal .status-steps li.current { color: var(--navy); }
.portal .status-steps li.current::before {
  background: var(--orange);
  animation: stage-pulse 1.4s ease-in-out infinite;
}
.how-steps { margin: 0; padding-left: 1.1em; }
.how-steps li { margin: 0 0 8px; }
.truck-scene { margin: 0 0 12px; }
.road {
  position: relative;
  height: 74px;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(#d9e4c8 0 46px, #8d97a3 46px 52px, #c5ccd4 52px);
}
.truck {
  position: absolute;
  top: 14px;
  left: 8px;
  width: 86px;
  height: 36px;
  animation: truck-drive 7s linear infinite;
}
.truck .box { position: absolute; left: 0; top: 6px; width: 48px; height: 24px; border-radius: 4px; background: var(--navy); }
.truck .cab { position: absolute; left: 44px; top: 10px; width: 28px; height: 20px; border-radius: 0 8px 4px 0; background: var(--orange); }
.truck .wheel { position: absolute; top: 26px; width: 12px; height: 12px; border-radius: 50%; background: #142033; }
.truck .w1 { left: 10px; }
.truck .w2 { left: 54px; }
@keyframes stage-pulse {
  0%, 100% { transform: scaleX(1); opacity: 1; }
  50% { transform: scaleX(1.08); opacity: 0.72; }
}
@keyframes truck-drive {
  0% { transform: translateX(0); }
  100% { transform: translateX(240px); }
}
@media (prefers-reduced-motion: reduce) {
  .portal .status-steps li.current::before,
  .truck { animation: none; }
}
@media (max-width: 640px) {
  .money-grid { grid-template-columns: 1fr; }
}
@media (min-width: 900px) {
  .week-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: start; }
  .week-grid .day { margin: 0; }
}
.cal-nav, .cal-modes { display: flex; gap: 8px; align-items: center; margin: 0 0 12px; }
.cal-nav p { flex: 1; margin: 0; text-align: center; font-weight: 700; font-size: 22px; }
.cal-nav .crew-tab, .cal-modes .crew-tab { min-height: 52px; font-size: 18px; }
.cal-dow, .cal-month, .cal-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-dow span { text-align: center; color: var(--dim); font-weight: 700; font-size: 14px; }
.cal-day { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 6px; min-height: 92px; }
.cal-day.is-today { box-shadow: inset 0 0 0 2px var(--orange); }
.cal-day.is-out { opacity: 0.55; }
.cal-date { min-height: 44px; min-width: 44px; border: 0; background: transparent; font: inherit; font-weight: 700; color: var(--navy); cursor: pointer; padding: 8px; }
.cal-job { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; min-height: 52px; margin: 4px 0 0; padding: 8px 10px; border: 0; border-radius: 10px; background: var(--navy); color: white; font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.cal-job span { font-size: 14px; font-weight: 600; }
.cal-job strong { font-size: 16px; line-height: 1.2; }
.cal-day-list { max-height: min(70vh, 720px); overflow: auto; }
.cal-day-list .cal-job { min-height: 64px; padding: 14px 16px; }
.cal-day-list .cal-job strong { font-size: 22px; white-space: normal; }
.cal-undated { margin-top: 16px; }
.cal-day.is-selected { box-shadow: inset 0 0 0 2px var(--navy); }
.cal-day.is-today.is-selected { box-shadow: inset 0 0 0 2px var(--orange); }
.cal-more { display: block; width: 100%; margin-top: 2px; padding: 4px 2px; border: 0; background: transparent; color: var(--orange); font: inherit; font-size: 13px; font-weight: 700; text-align: left; cursor: pointer; min-height: 32px; }
.place-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 12px; }
.place-field { margin: 0; }
.place-field select { margin-top: 4px; min-height: 52px; font-size: 18px; background: white; }
.place-summary { margin: 0 0 10px; font-weight: 700; }
.job-scroll { max-height: min(68vh, 720px); overflow: auto; border: 1px solid var(--line); border-radius: 16px; background: white; padding: 4px; }
.place-row { display: flex; align-items: stretch; gap: 8px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.place-row:last-child { border-bottom: 0; }
.place-row .job-check { padding-left: 8px; }
.place-job { border: 0; border-radius: 12px; background: transparent; margin: 0; min-height: 68px; padding: 12px 12px 12px 4px; }
.place-job strong { font-size: 20px; }
.place-flag { display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 999px; background: #fff1e6; color: #9a3412; font-size: 13px; font-weight: 700; }
.place-empty { margin: 16px; color: var(--dim); }
body[data-portal="office"] .cal-month .cal-job,
body[data-portal="office"] .cal-week .cal-job { min-height: 0; padding: 5px 7px; gap: 0; }
body[data-portal="office"] .cal-month .cal-job strong,
body[data-portal="office"] .cal-week .cal-job strong { font-size: 13px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
body[data-portal="office"] .cal-month .cal-job span,
body[data-portal="office"] .cal-week .cal-job span { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
@media (max-width: 720px) {
  .cal-dow { display: none; }
  .cal-month, .cal-week { grid-template-columns: 1fr; }
  .cal-day { min-height: 0; }
  .cal-day.is-out:not(:has(.cal-job)) { display: none; }
  body[data-portal="office"] .cal-month .cal-day:not(:has(.cal-job)),
  body[data-portal="office"] .cal-week .cal-day:not(:has(.cal-job)) { display: none; }
  .cal-job { min-height: 56px; }
  .cal-job strong { font-size: 20px; }
  .place-picker { grid-template-columns: 1fr; }
  .job-scroll { max-height: 62vh; }
  body[data-portal="office"] .cal-month .cal-job strong,
  body[data-portal="office"] .cal-week .cal-job strong { font-size: 18px; white-space: normal; }
  body[data-portal="office"] .cal-month .cal-job span,
  body[data-portal="office"] .cal-week .cal-job span { font-size: 14px; white-space: normal; }
}
.month-nav { display: flex; gap: 8px; align-items: center; margin: 0 0 12px; }
.month-nav p { flex: 1; margin: 0; text-align: center; font-weight: 700; }
.month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.month-grid span, .month-grid button {
  min-height: 48px; border-radius: 10px; border: 1px solid var(--line); background: white;
  font: inherit; font-weight: 700; padding: 4px;
}
.month-grid .dow { min-height: 0; border: 0; background: transparent; color: var(--dim); font-size: 13px; text-align: center; }
.month-grid button { cursor: pointer; }
.month-grid button.blocked { background: var(--navy); color: white; border-color: var(--navy); }
.month-grid button.has-job { box-shadow: inset 0 0 0 2px var(--orange); }
.month-grid .pad { border: 0; background: transparent; }
fieldset { border: 1px solid var(--line); border-radius: 12px; margin: 0 0 12px; }
fieldset label { font-weight: 600; }
fieldset input[type="checkbox"] { display: inline-block; width: auto; margin: 0 8px 0 0; }
.partner-log { margin: 0 0 12px; padding-left: 18px; }
.partner-log li { margin: 0 0 8px; }
.partner-log time { color: var(--dim); font-weight: 600; }
.sign-pad { width: 100%; height: 160px; border: 1px solid var(--line); border-radius: 12px; background: white; touch-action: none; }
.desk-head { margin: 4px 0 20px; }
.desk-head h2 { margin-top: 0; }
details.desk-more { margin: 12px 0 20px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 16px 14px; }
details.desk-more summary { min-height: 48px; display: flex; align-items: center; font-weight: 700; cursor: pointer; }
body[data-portal="office"] .crew-tabs {
  position: sticky; top: 0; z-index: 20; flex-wrap: nowrap; overflow-x: auto;
  background: var(--navy); margin: 0 0 20px; padding: 8px; gap: 6px;
}
body[data-portal="office"] .crew-tabs .crew-tab {
  flex: 0 0 auto; color: #fffdf8; background: transparent; border-color: transparent;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 14px; white-space: nowrap;
}
body[data-portal="office"] .crew-tabs .crew-tab[hidden] { display: none; }
body[data-portal="office"] .crew-tabs .crew-tab[aria-pressed="true"] { background: var(--orange); color: white; border-color: var(--orange); }
body[data-portal="office"] .crew-btn,
body[data-portal="office"] .job-card,
body[data-portal="office"] .cal-job { scroll-margin-bottom: 112px; scroll-margin-top: 76px; }
@media (max-width: 800px) {
  body[data-portal="office"] .crew-app { padding-bottom: 128px; }
  body[data-portal="office"] .crew-tabs {
    position: fixed; top: auto; left: 0; right: 0; bottom: 0; margin: 0;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  }
  body[data-portal="office"] .crew-top { padding: 8px 0; }
  body[data-portal="office"] .desk-head { margin: 0 0 8px; }
  .place-picker { gap: 8px; margin-bottom: 8px; }
  .place-summary { margin-bottom: 6px; }
  .place-job { min-height: 56px; padding: 8px 10px 8px 4px; }
  .job-scroll { max-height: calc(100svh - 560px); }
  body[data-portal="office"] .cal-nav { margin-bottom: 8px; }
  body[data-portal="office"] .cal-modes { margin-bottom: 8px; }
  body[data-portal="office"] .cal-month .cal-job,
  body[data-portal="office"] .cal-week .cal-job { min-height: 44px; padding: 6px 10px; }
  body[data-portal="office"] .cal-month,
  body[data-portal="office"] .cal-week,
  body[data-portal="office"] .cal-day-list { margin-bottom: 8px; }
}

/* People on a job: one row per person, with a role picker next to each checked person. */
.assign-people [data-people-list], .assign-crew-list { display: grid; gap: 6px; margin: 8px 0; }
.assign-person-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.assign-person-row:last-child { border-bottom: 0; }
label.assign-person { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; flex: 1 1 200px; min-width: 0; }
label.assign-person input[type="checkbox"] { display: inline-block; width: 1.15rem; height: 1.15rem; margin: 0; padding: 0; flex: none; accent-color: #1d4e89; }
.assign-tag { font-weight: 400; color: #5b6573; font-size: 0.9em; }
.assign-tag::before { content: "· "; }
select.assign-role { display: inline-block; width: auto; min-width: 9rem; margin: 0; padding: 8px 10px; }
.assign-chip { display: inline-flex; align-items: center; gap: 6px; margin: 2px 6px 2px 0; padding: 4px 8px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; }
.assign-chip select.assign-role { min-width: 0; padding: 4px 6px; border-radius: 8px; }
.assign-chip-x { border: 0; background: transparent; font: inherit; font-size: 1.1em; line-height: 1; cursor: pointer; padding: 2px 4px; color: #8a2a12; }
.assign-views { display: flex; gap: 8px; margin: 0 0 12px; }
.assign-views .crew-btn[aria-pressed="false"] { background: #e9e4dc; color: var(--ink); }
.job-team-list { margin: 4px 0 8px; padding-left: 18px; }
.job-team { font-weight: 600; }
