/* ===== Job detail two-column (§34–§36) ===== */
.jobdetail-split{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,0.95fr); gap:20px; align-items:stretch; }
.jobdetail-split-map{ display:flex; flex-direction:column; gap:10px; min-height:100%; }
.jobdetail-map{ flex:1; min-height:260px; border-radius:12px; overflow:hidden; border:1.5px solid var(--line); background:var(--paper); }
.jobdetail-directions{
  display:inline-flex; align-items:center; justify-content:center; gap:7px;
  width:100%; padding:11px 16px; border-radius:9px; cursor:pointer;
  font-family:inherit; font-size:13.5px; font-weight:700;
  background:var(--safety); color:#fff; border:none;
}
.jobdetail-directions:hover{ filter:brightness(1.08); }

/* Crew-only Help button above the job map. A dark glass pill with a blue glow that travels
   round its rim while the shape itself slowly breathes. --help-angle is a registered custom
   property so the conic gradient can be animated; browsers without @property just show the
   still ring. */
@property --help-angle{ syntax:'<angle>'; inherits:false; initial-value:0deg; }
.jobdetail-help-row{ display:flex; justify-content:flex-end; align-items:center; flex-wrap:wrap; gap:10px; }
.jobdetail-call{
  display:inline-flex; align-items:center; gap:8px; padding:10px 20px; border:none; cursor:pointer;
  border-radius:24px 20px 22px 21px / 21px 23px 20px 24px;
  background:var(--safety); color:#fff; font-family:inherit; font-size:14px; font-weight:700; letter-spacing:.01em;
  box-shadow:0 4px 14px rgba(24,95,165,.35); transition:transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.jobdetail-call:hover{ transform:translateY(-1px); filter:brightness(1.08); box-shadow:0 7px 18px rgba(24,95,165,.45); }
.jobdetail-call:active{ transform:scale(.97); }
.jobdetail-call svg{ width:16px; height:16px; }
.jobdetail-help{
  position:relative; isolation:isolate; display:inline-flex; align-items:center; gap:8px;
  padding:10px 20px; border:none; cursor:pointer; color:#fff; background:#0b0f14;
  font-family:inherit; font-size:14px; font-weight:700; letter-spacing:.01em;
  border-radius:24px 20px 22px 21px / 21px 23px 20px 24px;
  box-shadow:0 6px 22px rgba(47,140,255,.45), inset 0 1px 0 rgba(255,255,255,.12);
  animation:helpMorph 4.5s ease-in-out infinite; transition:transform .15s ease, box-shadow .15s ease;
}
.jobdetail-help:hover{ transform:translateY(-1px); box-shadow:0 10px 26px rgba(47,140,255,.6), inset 0 1px 0 rgba(255,255,255,.16); }
.jobdetail-help:active{ transform:scale(.97); }
.jobdetail-help svg{ width:16px; height:16px; }
.jobdetail-help::before,.jobdetail-help::after{
  content:''; position:absolute; inset:0; border-radius:inherit; pointer-events:none;
  animation:helpSpin 2.6s linear infinite;
}
/* the glow riding the rim */
.jobdetail-help::before{
  padding:2px; z-index:1;
  background:conic-gradient(from var(--help-angle), rgba(47,140,255,0) 0 40%, rgba(47,140,255,.7) 58%, #5db0ff 76%, #cfe8ff 87%, rgba(47,140,255,0) 97%);
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite:xor; mask-composite:exclude;
}
/* the same glow bleeding inward, so the pill looks lit from inside */
.jobdetail-help::after{
  z-index:-1; filter:blur(8px); opacity:1; inset:1px;
  background:conic-gradient(from var(--help-angle), rgba(47,140,255,0) 0 38%, rgba(47,140,255,.9) 70%, #5db0ff 82%, rgba(47,140,255,0) 97%);
}
@keyframes helpSpin{ to{ --help-angle:360deg; } }
@keyframes helpMorph{
  0%,100%{ border-radius:24px 20px 22px 21px / 21px 23px 20px 24px; }
  33%{ border-radius:20px 24px 21px 23px / 24px 20px 23px 21px; }
  66%{ border-radius:22px 21px 24px 20px / 20px 24px 21px 23px; }
}
@media (prefers-reduced-motion:reduce){
  .jobdetail-help,.jobdetail-help::before,.jobdetail-help::after{ animation:none; }
}

/* Call status strip on the job page: one place that says how the latest call went */
.call-strip{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-top:14px; padding:12px 14px; border-radius:12px; border:1.5px solid var(--line); background:var(--paper-dim); font-size:13.5px; font-weight:600; }
.call-strip.live{ border-color:#5aa6f5; background:#eef6ff; }
.call-strip.missed{ border-color:#e3b9b9; background:#fdf4f4; }
.call-strip .call-strip-text{ flex:1; min-width:170px; line-height:1.45; }
.call-strip .btn{ flex:0 0 auto; }
.call-strip > svg{ width:18px; height:18px; flex:none; color:var(--ink-soft); }
.call-strip.live > svg{ color:var(--safety); animation:helpRing 1.4s ease-in-out infinite; border-radius:50%; }
/* Help modal */
#crew-help-modal{ position:fixed; inset:0; z-index:400; display:flex; align-items:center; justify-content:center; padding:20px; }
#crew-help-modal .modal-backdrop{ position:absolute; inset:0; background:rgba(20,22,20,0.55); }
#crew-help-modal .modal-box{
  position:relative; background:#fff; border-radius:20px; padding:26px; max-width:420px; width:100%;
  box-shadow:0 20px 60px rgba(0,0,0,0.3); animation:modalPop .18s ease; max-height:88vh; overflow-y:auto;
}
.help-head{ display:flex; align-items:center; gap:10px; margin-bottom:18px; }
.help-head h3{ font-size:18px; margin:0; flex:1; font-family:'Inter',sans-serif; font-weight:700; text-transform:none; }
.help-icon-btn{
  width:32px; height:32px; border-radius:50%; border:1px solid var(--line); background:#fff; cursor:pointer;
  display:inline-flex; align-items:center; justify-content:center; color:var(--ink-soft); flex:none;
}
.help-icon-btn:hover{ border-color:var(--ink); color:var(--ink); }
.help-icon-btn svg{ width:16px; height:16px; }
.help-list{ display:flex; flex-direction:column; gap:8px; }
.help-row{
  display:flex; align-items:center; gap:12px; width:100%; text-align:left; cursor:pointer;
  padding:14px 14px; border:1.5px solid var(--line); border-radius:12px; background:#fff;
  font-family:inherit; font-size:14.5px; font-weight:600; color:var(--ink);
  transition:border-color .12s ease, background .12s ease;
}
.help-row:hover{ border-color:var(--ink-soft); background:var(--paper-dim); }
.help-row svg{ width:18px; height:18px; flex:none; color:var(--ink-soft); }
.help-row .help-chev{ margin-left:auto; width:14px; height:14px; }
.help-row.danger,.help-row.danger svg{ color:var(--danger); }
.help-pill{
  display:inline-flex; align-items:center; justify-content:center; gap:8px; width:100%;
  padding:13px 18px; border:none; border-radius:999px; cursor:pointer;
  background:var(--safety); color:#fff; font-family:inherit; font-size:14.5px; font-weight:700;
}
.help-pill:hover{ filter:brightness(1.08); }
.help-pill svg{ width:16px; height:16px; }
.help-body-text{ font-size:14px; line-height:1.6; color:var(--ink); margin:0 0 18px; }
.help-actions{ display:flex; gap:12px; }
.help-actions .btn{ flex:1; }
.help-calling{ text-align:center; padding:8px 0 4px; }
.help-calling .help-ring{
  width:54px; height:54px; margin:0 auto 14px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background:var(--safety); color:#fff;
}
.help-calling .help-ring svg{ width:24px; height:24px; }
.help-calling.ok .help-ring{ animation:helpRing 1.4s ease-in-out infinite; }
@keyframes helpRing{ 0%,100%{ box-shadow:0 0 0 0 rgba(24,95,165,.45); } 50%{ box-shadow:0 0 0 14px rgba(24,95,165,0); } }
.help-calling.err .help-ring{ background:var(--danger); }
.help-calling-title{ font-size:16px; font-weight:700; margin:0 0 6px; }
.help-calling-sub{ font-size:13.5px; color:var(--ink-soft); line-height:1.6; margin:0; }
.help-field{ margin-bottom:14px; }
.help-field label{ display:block; font-size:13px; font-weight:600; margin-bottom:6px; }
.help-field textarea{ min-height:96px; resize:vertical; }
.jobdetail-directions svg{ width:15px; height:15px; }
.jobdetail-map-locked{
  display:flex; align-items:center; justify-content:center; text-align:center;
  height:100%; min-height:260px; padding:24px; font-size:13px; color:var(--ink-soft); line-height:1.6;
}
.job-desc-box{ border:1.5px solid var(--line); border-radius:11px; padding:18px 20px; }
.job-desc-text{ font-size:14px; line-height:1.7; color:var(--ink); margin:0; white-space:pre-wrap; }
.job-desc-more{
  background:none; border:none; padding:0; margin-left:4px; cursor:pointer;
  font-family:inherit; font-size:13.5px; font-weight:700; color:var(--safety);
}
@media(max-width:1000px){ .jobdetail-split{ grid-template-columns:1fr; } }



/* The wrapper had no rule of its own, so it was an inline-formatting context: the select sat
   inside a 45px line box and the pill ended up 8px taller than the language switch and 4px
   higher than everything else in the header. */
.nav-area-select{ display:flex; align-items:center; min-width:0; }

/* .page carries 48px top / 80px bottom padding, which is right for a marketing page and far
   too much for a dashboard that is supposed to fit on one screen. */
/* One value for all four gutters. This rule beats .container-dash on specificity, so the
   top padding has to live here or it silently loses. */
body.on-dashboard .page{ padding-top:28px; padding-bottom:28px; }



/* The marketing footer (180px of site links) was rendering under the dashboard, which is
   both the largest single cause of the page scrolling and not something a signed-in user
   needs while reading their overview. */
body.on-dashboard footer{ display:none; }

/* Row 2 ran ~60px taller than row 1, which pushed the last panel past the fold. Trimming the
   message pane brings the two rows into line and the whole overview onto one screen. */
.msg-layout-widget .msg-scroll{ max-height:176px; min-height:110px; }
.msg-preview-pane{ padding:16px 22px; gap:7px; }
.msg-preview-headline{ font-size:19px; }

