/* Shared desk for every private portal. The public marketing site does not load this file. */
body[data-portal],
body[data-view],
body.recruit {
  --bg: #f4f7fb;
  --card: #ffffff;
  --ink: #0b1f33;
  --dim: #3e5166;
  --navy: #0b1f33;
  --line: #d5deea;
  --accent: #1d4e89;
  --orange: #1d4e89;
  --orange-hi: #2563a8;
  --orange-deep: #163a66;
  --orange-pale: #e8f0fa;
  --copper: #1d4e89;
  --copper-deep: #163a66;
  --paper: #f4f7fb;
  --muted: #3e5166;
  --danger: #b42318;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Segoe UI", sans-serif;
}

body[data-portal] .crew-btn,
body[data-view] .crew-btn,
body.recruit .crew-btn,
body[data-portal] .supply-actions button,
body[data-view] .supply-actions button,
body[data-portal] .supply-link,
body[data-view] .supply-link,
body[data-portal] .pml-actions .yes,
body[data-portal] .pml-side button[aria-current="true"],
body.recruit .cta,
body.recruit .progress span {
  background: #1d4e89;
  color: #fff;
  border-radius: 8px;
  box-shadow: none;
}
body[data-portal] .pml-actions .no,
body[data-portal] .office-secondary {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 8px;
}
body[data-portal] [data-delete-job],
body[data-portal] #remove-job,
body[data-portal] #delete-selected,
body[data-portal] #delete-past {
  background: var(--danger);
  color: #fff;
}
body[data-portal] input,
body[data-portal] select,
body[data-portal] textarea,
body[data-view] input,
body[data-view] select,
body[data-view] textarea,
body.recruit input,
body.recruit select,
body.recruit textarea {
  border-color: #c5d0de;
  border-radius: 8px;
  font-family: inherit;
}
body[data-portal] :focus-visible,
body[data-view] :focus-visible,
body.recruit :focus-visible {
  outline: 2px solid #1d4e89;
  outline-offset: 2px;
}
body[data-portal] .detail-card,
body[data-portal] .job-card,
body[data-portal] .portal-card,
body[data-view] .portal-card,
body[data-portal] .offer-card,
body[data-portal] .pml-card,
body.recruit .recruit-card,
body.recruit .form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(11, 31, 51, 0.05);
}
body[data-portal] h1,
body[data-portal] h2,
body[data-view] h1,
body[data-view] h2,
body.recruit h1,
body.recruit h2 {
  font-family: Inter, "Segoe UI", sans-serif;
  letter-spacing: -0.03em;
}

/* Crew and partner shells */
body[data-portal="crew"] .crew-app,
body[data-portal="partner"] .crew-app {
  width: min(960px, calc(100% - 24px));
  margin: 0 auto;
  padding-bottom: 96px;
}
body[data-portal="crew"] .crew-top,
body[data-portal="partner"] .crew-top {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 20;
}
body[data-portal="crew"] .crew-brand,
body[data-portal="partner"] .crew-brand { color: var(--navy); }
body[data-portal="crew"] .crew-tabs,
body[data-portal="partner"] #app-view .crew-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}
body[data-portal="crew"] .crew-tab,
body[data-portal="partner"] .crew-tab {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  border-radius: 8px;
  min-height: 40px;
}
body[data-portal="crew"] .crew-bottom {
  background: #0b1f33;
  border-top: 0;
}
body[data-portal="crew"] .crew-bottom .crew-tab {
  background: transparent;
  color: #d7e3ef;
  border: 0;
}
body[data-portal="crew"] .crew-bottom .crew-tab[aria-pressed="true"] {
  background: #1d4e89;
  color: #fff;
}
body[data-portal="crew"]:has(#contractor-shell) .crew-tabs,
body[data-portal="crew"]:has(#contractor-shell) .crew-customer-nav,
body[data-portal="crew"]:has(#contractor-shell) .crew-bottom,
body[data-portal="crew"]:has(#contractor-shell) #today-panel,
body[data-portal="crew"]:has(#contractor-shell) #week-panel,
body[data-portal="crew"]:has(#contractor-shell) #calendar-panel,
body[data-portal="crew"]:has(#employee-desk) .crew-tabs,
body[data-portal="crew"]:has(#employee-desk) .crew-customer-nav,
body[data-portal="crew"]:has(#employee-desk) .crew-bottom,
body[data-portal="crew"]:has(#employee-desk) #today-panel,
body[data-portal="crew"]:has(#employee-desk) #week-panel,
body[data-portal="crew"]:has(#employee-desk) #calendar-panel {
  display: none !important;
}

/* Contractor desk and employee desk */
body[data-portal="crew"] .pml-shell {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}
body[data-portal="crew"] .pml-main h2,
body[data-portal="crew"] .pay-xl,
body[data-portal="crew"] .hero-job .when,
body[data-portal="crew"] .stat b { font-family: Inter, "Segoe UI", sans-serif; }
body[data-portal="crew"] .hero-job {
  background: #0b1f33;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(11, 31, 51, 0.12);
}
body[data-portal="crew"] .hero-job .next-kicker,
body[data-portal="crew"] .pml-kicker { color: #8ea3b8; }
body[data-portal="crew"] .chip.pay { background: #e8f0fa; color: #1d4e89; }
body[data-portal="crew"] .empty svg path { stroke: #1d4e89; }
body[data-portal="crew"] .chart rect { fill: #1d4e89; }
@media (min-width: 900px) {
  body[data-portal="crew"] .pml-shell {
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: 70vh;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
  }
  body[data-portal="crew"] .pml-side {
    flex-direction: column;
    align-items: stretch;
    background: #0b1f33;
    color: #e7eef6;
    padding: 12px;
    gap: 4px;
  }
  body[data-portal="crew"] .pml-side button {
    justify-content: flex-start;
    color: #e7eef6;
    border-radius: 8px;
  }
}
@media (max-width: 899px) {
  body[data-portal="crew"] .pml-side {
    background: #0b1f33;
    color: #e7eef6;
  }
  body[data-portal="crew"] .pml-side button[aria-current="true"] { background: #1d4e89; color: #fff; }
}

/* Partner: sidebar once signed in */
@media (min-width: 860px) {
  body[data-portal="partner"] #app-view:not([hidden]) {
    display: grid;
    grid-template-columns: 220px 1fr;
    column-gap: 18px;
    align-items: start;
  }
  body[data-portal="partner"] #app-view:not([hidden]) .crew-who { grid-column: 2; }
  body[data-portal="partner"] #app-view:not([hidden]) .crew-tabs {
    grid-column: 1;
    grid-row: 1 / span 12;
    position: sticky;
    top: 72px;
    display: flex;
    flex-direction: column;
    background: #0b1f33;
    padding: 12px;
    border-radius: 12px;
  }
  body[data-portal="partner"] #app-view:not([hidden]) .crew-tab {
    background: transparent;
    color: #e7eef6;
    border: 0;
    text-align: left;
  }
  body[data-portal="partner"] #app-view:not([hidden]) > div { grid-column: 2; }
}

/* Customer move portal */
body[data-view] {
  background: #f4f7fb;
}
body[data-view] .crew-app { width: min(760px, calc(100% - 24px)); }
body[data-view] .move-hero {
  background: #0b1f33;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(11, 31, 51, 0.12);
}
body[data-view] .move-hero h1,
body[data-view] .move-hero .crew-lead { color: #fff; }
body[data-view] .countdown,
body[data-view] .sample-flag,
body[data-view] .portal .status-steps li.current::before { background: #1d4e89; color: #fff; }
body[data-view] .portal-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 14px 0;
}
body[data-view] .portal-tabs .crew-tab {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 8px;
}
body[data-view] .portal-tabs .crew-tab[aria-pressed="true"] {
  background: #1d4e89;
  color: #fff;
  border-color: #1d4e89;
}
body[data-view] .status-steps { gap: 6px; }
body[data-view] .status-steps li {
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
}
body[data-view] .truck .cab { background: #1d4e89; }
body[data-view] .supply-check input { accent-color: #1d4e89; }
body[data-view] .move-checks { list-style: none; margin: 0; padding: 0; }
body[data-view] .move-checks li { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; }
body[data-view] .move-checks label { display: flex; gap: 10px; align-items: flex-start; margin: 0; }
body[data-view] .move-checks input { accent-color: #1d4e89; width: 1.15rem; min-width: 1.15rem; height: 1.15rem; margin-top: 2px; flex: 0 0 auto; }
body[data-view] #home-scan .scan-steps { margin: 12px 0; background: #fff; border: 1px solid #d5deea; border-radius: 12px; padding: 2px 14px 8px; }
body[data-view] #home-scan .scan-steps summary { min-height: 48px; display: flex; align-items: center; color: #0b1f33; font-weight: 700; cursor: pointer; }
body[data-view] #home-scan .scan-list { margin: 0 0 8px; padding-left: 1.35em; color: #0b1f33; }
body[data-view] #home-scan .scan-list li { margin: 0 0 10px; line-height: 1.45; }
body[data-view] #home-scan .scan-list strong,
body[data-view] #home-scan .scan-tip strong { display: inline; font-size: inherit; font-weight: 700; }
body[data-view] #home-scan .scan-important { background: #e8f0fa; border-radius: 8px; padding: 8px 10px; }
body[data-view] #home-scan .scan-tip { margin: 0 0 8px; color: #0b1f33; }
body[data-view] #home-scan .scan-stop { margin: 14px 0 6px; font-weight: 700; color: #0b1f33; }
body[data-view] #home-scan .scan-record { position: relative; display: flex; align-items: center; justify-content: center; min-height: 52px; margin: 0 0 8px; background: #1d4e89; color: #fff; border-radius: 8px; font-weight: 700; cursor: pointer; }
body[data-view] #home-scan .scan-record input,
body[data-view] #home-scan .scan-existing input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
body[data-view] #home-scan .scan-existing { position: relative; display: inline-block; margin: 0 0 4px; color: #1d4e89; font-weight: 700; cursor: pointer; }
body[data-view] #home-scan .scan-list a { color: #1d4e89; font-weight: 700; margin-right: 10px; }
body[data-view] #home-scan .scan-help { margin: 12px 0 0; }
body[data-view] #home-scan .scan-help a { color: #1d4e89; font-weight: 700; font-size: 15px; }
body[data-view] .check-line { display: flex; gap: 8px; align-items: center; }
body[data-view] .room-photos { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
body[data-view] .room-photos img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.hub-dialog { position: fixed; inset: 0; z-index: 90; background: rgba(11, 31, 51, .55); padding: 16px; overflow: auto; }
.hub-card { background: #fff; color: #0b1f33; border-radius: 10px; padding: 16px; max-width: 560px; margin: 0 auto; font-family: Inter, "Segoe UI", sans-serif; }
.hub-card h2 { margin-top: 0; }
.hub-channels { display: flex; gap: 12px; flex-wrap: wrap; margin: 8px 0; }
.hub-card pre { white-space: pre-wrap; background: #e8f0fa; border-radius: 8px; padding: 12px; }
.hub-card .crew-btn { background: #1d4e89; color: #fff; border: 0; border-radius: 8px; }
.hub-card .office-secondary, body[data-portal] .office-secondary { background: #fff; color: #0b1f33; border: 1px solid #d5deea; }

/* Contractor application */
body.recruit { margin: 0; }
body.recruit .recruit-hero {
  background: #0b1f33;
  min-height: 0;
  padding: 40px 24px 48px;
}
body.recruit .recruit-hero .crew-art { display: none; }
body.recruit .recruit-hero .eyebrow { color: #c5d4e8 !important; }
body.recruit .recruit-hero h1 { font-family: Inter, "Segoe UI", sans-serif; font-size: clamp(36px, 6vw, 56px); }
body.recruit .recruit-hero .cta { border-radius: 8px; background: #1d4e89; color: #fff; }
body.recruit .recruit-body { margin-top: 20px; }
body.recruit .benefit .ico,
body.recruit .step-no { border-radius: 8px; background: #0b1f33; }
body.recruit .faq details,
body.recruit .form-card { border-radius: 12px; }

body[data-portal="crew"] .property-map {
  min-height: 180px;
  margin: 8px 0;
  background: #e8f0fa;
  border: 1px solid var(--line, #d5deea);
  border-radius: 10px;
  overflow: hidden;
  padding: 8px;
}
body[data-portal="crew"] .property-map:has(a) { min-height: 0; }
body[data-portal="crew"] .property-map .crew-btn,
body[data-portal="crew"] .property-full .crew-btn {
  background: #1d4e89;
  color: #fff;
  border: 0;
  border-radius: 8px;
}
body[data-portal="crew"] .property-full {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(11, 31, 51, 0.55);
  padding: 16px;
}
body[data-portal="crew"] .property-full-card {
  background: #fff;
  color: #0b1f33;
  border-radius: 10px;
  padding: 16px;
  max-width: 960px;
  margin: 0 auto;
}
body[data-portal="crew"] .property-full .property-map { height: min(70vh, 640px); }
body[data-portal="crew"] .property-full .property-map:has(a) { height: auto; }
body[data-portal="crew"] .property-full .crew-text { color: #1d4e89; }
.property-full-exit {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 100;
  background: #0b1f33;
  color: #fff;
  font: 700 18px/1.2 Inter, "Segoe UI", sans-serif;
  padding: 14px 18px;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(11, 31, 51, 0.35);
  cursor: pointer;
}
.property-map gmp-map-3d {
  display: block;
  width: 100%;
  height: 240px;
  min-height: 240px;
}

@media (prefers-reduced-motion: reduce) {
  body[data-portal] .skel { animation: none; }
}
