/* Job details on phones (768px and below) and tablets (769px to 1023px): the job hub.
   The design's values; 640px and up widens the gutter and the title, tablets keep the
   desktop navbar on top. */

.ccp-jobDetail {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--ccp-bg);
  color: var(--ccp-text);
  line-height: normal;
}

/* The page fills the window under the bars fixed above it (the demo banner, the tablet
   navbar), so a job that fits on the screen doesn't scroll, as in the design. */
body.cc-demo:not([data-route="landing"]) .ccp-jobDetail {
  min-height: calc(100vh - var(--cc-demo-banner-h, 0px));
  min-height: calc(100dvh - var(--cc-demo-banner-h, 0px));
}

@media (min-width: 769px) and (max-width: 1023px) {
  .ccp-jobDetail {
    min-height: calc(100vh - var(--ccp-top));
    min-height: calc(100dvh - var(--ccp-top));
  }

  body.cc-demo:not([data-route="landing"]) .ccp-jobDetail {
    min-height: calc(100vh - var(--ccp-top) - var(--cc-demo-banner-h, 0px));
    min-height: calc(100dvh - var(--ccp-top) - var(--cc-demo-banner-h, 0px));
  }
}

.ccp-jobDetail [hidden] {
  display: none !important;
}

.ccp-jobDetail button {
  -webkit-appearance: none;
  appearance: none;
  font-family: inherit;
  touch-action: manipulation;
}

.ccp-jobDetail .ccp-jd-sr,
.ccp-jd-sheet .ccp-jd-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.ccp-jobDetail .ccp-jd-title:focus,
.ccp-jobDetail .ccp-jd-empty-title:focus {
  outline: none;
}

/* Desktop's draft action bar lives outside the layout; this screen has its own. */
body[data-phone-screen="jobDetail"] #draft-action-bar-portal {
  display: none !important;
}

/* The page: Back and help in a row that scrolls with it, then the title. The page
   ends 96px above the hub bar (10 + 52 + 14 + its 1px border). */

.ccp-jobDetail .ccp-jd-page {
  padding: 4px var(--ccp-gutter) calc(96px + 77px + var(--ccp-safe-b));
}

.ccp-jobDetail .ccp-jd-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ccp-jobDetail .ccp-jd-back {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  flex-shrink: 0;
  gap: 6px;
  height: 44px;
  margin: 12px 0 16px;
  padding: 0 18px 0 12px;
  border: 1px solid rgba(39, 176, 121, 0.35);
  border-radius: 999px;
  background: rgba(99, 234, 113, 0.16);
  box-shadow: none;
  color: var(--ccp-deep);
  font-size: 1.24rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.ccp-jobDetail .ccp-jd-back:active {
  transform: scale(0.97);
  background: rgba(99, 234, 113, 0.28);
}

.ccp-jobDetail .ccp-jd-back svg {
  flex-shrink: 0;
}

.ccp-jobDetail .ccp-jd-help {
  display: flex;
  align-items: center;
  align-self: flex-start;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin: 12px 0 16px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  background: #fff;
  color: #374151;
  cursor: pointer;
}

.ccp-jobDetail .ccp-jd-help:active {
  transform: scale(0.95);
}

.ccp-jobDetail .ccp-jd-title {
  margin-top: 10px;
  font-size: 1.76rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: var(--ccp-text);
  text-wrap: balance;
  overflow-wrap: anywhere;
}

/* Draft: not live yet */

.ccp-jobDetail .ccp-jd-draft {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.09), rgba(245, 158, 11, 0.02));
}

.ccp-jobDetail .ccp-jd-draft-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.792rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #92400e;
}

.ccp-jobDetail .ccp-jd-draft-h {
  margin-top: 6px;
  font-size: 1.265rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ccp-jobDetail .ccp-jd-draft-sub {
  margin-top: 4px;
  font-size: 0.968rem;
  line-height: 1.5;
  color: #4b5563;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}

.ccp-jobDetail .ccp-jd-draft-sub strong {
  color: #111827;
}

.ccp-jobDetail .ccp-jd-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.ccp-jobDetail .ccp-jd-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.968rem;
  color: #374151;
}

.ccp-jobDetail .ccp-jd-check-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 0.35rem;
  background: rgba(245, 158, 11, 0.14);
  color: #92400e;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.77rem;
  font-weight: 700;
}

/* Drafts show the job information in the page, in the design's docked panel. The
   design leaves its empty stage list (16px) between the draft card and the panel. */
.ccp-jobDetail .ccp-jd-panel {
  position: relative;
  margin-top: 32px;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  background: #f6f7f9;
  box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.22);
}

.ccp-jobDetail .ccp-jd-panel-body {
  padding: 0 16px 20px;
}

.ccp-jobDetail .ccp-jd-panel-card {
  margin-top: 20px;
}

/* Job information (sheet, and inline for drafts) */

.ccp-jd-info {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.ccp-jd-info .ccp-jd-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  margin: 0;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
}

.ccp-jd-info .ccp-jd-fact {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.ccp-jd-info .ccp-jd-fact dt {
  font-size: 0.825rem;
  color: #6b7280;
}

.ccp-jd-info .ccp-jd-fact dd {
  margin: 0;
  font-size: 1.045rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ccp-text);
  overflow-wrap: anywhere;
}

.ccp-jd-info .ccp-jd-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.ccp-jd-info .ccp-jd-sec-label {
  margin: 0 0 10px;
  font-size: 0.858rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
}

.ccp-jd-info .ccp-jd-sec-head .ccp-jd-sec-label {
  margin: 0;
}

.ccp-jd-info .ccp-jd-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ccp-jd-info .ccp-jd-chip {
  display: inline-flex;
  max-width: 100%;
  padding: 0.3rem 0.65rem;
  border: 1px solid rgba(99, 234, 113, 0.25);
  border-radius: 0.4rem;
  background: rgba(99, 234, 113, 0.1);
  color: #1a1a2e;
  font-size: 0.924rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.ccp-jd-info .ccp-jd-chip--des {
  border-color: rgba(251, 191, 36, 0.25);
  background: rgba(251, 191, 36, 0.1);
  color: #92400e;
}

.ccp-jd-info .ccp-jd-chip--ins {
  border-color: rgba(99, 234, 113, 0.2);
  background: rgba(99, 234, 113, 0.08);
}

.ccp-jd-info .ccp-jd-about {
  font-size: 1.045rem;
  line-height: 1.6;
  color: #374151;
  white-space: pre-wrap;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}

.ccp-jd-info .ccp-jd-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ccp-jd-info .ccp-jd-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 1.045rem;
  line-height: 1.5;
  color: #374151;
  overflow-wrap: anywhere;
}

.ccp-jd-info .ccp-jd-list li > span:last-child {
  min-width: 0;
}

.ccp-jd-info .ccp-jd-list-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 0.3rem;
  background: rgba(0, 0, 0, 0.06);
  color: #6b7280;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.77rem;
  font-weight: 700;
  transform: translateY(-1px);
}

.ccp-jd-info .ccp-jd-q-count {
  flex-shrink: 0;
  padding: 0.18rem 0.5rem;
  border-radius: 0.35rem;
  background: rgba(0, 0, 0, 0.05);
  color: #6b7280;
  font-size: 0.726rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ccp-jd-info .ccp-jd-qs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ccp-jd-info .ccp-jd-q {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border: 1.5px solid rgba(0, 0, 0, 0.07);
  border-radius: 12px;
  background: #fff;
}

.ccp-jd-info .ccp-jd-q-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 1.7rem;
  height: 1.45rem;
  padding: 0 0.4rem;
  border: 1px solid rgba(99, 234, 113, 0.22);
  border-radius: 0.35rem;
  background: rgba(99, 234, 113, 0.1);
  color: var(--ccp-accent);
  font-size: 0.792rem;
  font-weight: 800;
}

.ccp-jd-info .ccp-jd-q p {
  min-width: 0;
  font-size: 0.99rem;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.ccp-jd-info .ccp-jd-meta {
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.88rem;
  color: #6b7280;
}

/* Stage rows: the design's hub (16px under the title) holds the stage list (16px more) */

.ccp-jobDetail .ccp-jd-hub {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.ccp-jobDetail .ccp-jd-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.ccp-jobDetail .ccp-jd-row {
  --stage: #2563eb;
  --stage-bg: #e8f0ff;
  border-radius: 18px;
  background: var(--stage-bg);
  outline: 0 solid transparent;
  outline-offset: -1px;
  transition: background 0.3s ease, box-shadow 0.3s ease, opacity 0.2s ease;
}

.ccp-jobDetail .ccp-jd-row.is-viewed {
  --stage: #475569;
  --stage-bg: #edf1f6;
}

.ccp-jobDetail .ccp-jd-row.is-shortlisted {
  --stage: #b7791f;
  --stage-bg: #fff6d8;
}

.ccp-jobDetail .ccp-jd-row.is-closed {
  --stage: #dc2626;
  --stage-bg: #fdeaea;
}

.ccp-jobDetail .ccp-jd-row.is-open {
  background: #fff;
  box-shadow: 0 10px 30px -14px rgba(15, 23, 42, 0.25);
}

.ccp-jobDetail .ccp-jd-hub.is-dragging .ccp-jd-row.is-target {
  outline: 1.5px dashed var(--stage);
}

.ccp-jobDetail .ccp-jd-hub.is-dragging .ccp-jd-row.is-blocked {
  opacity: 0.45;
}

.ccp-jobDetail .ccp-jd-hub.is-dragging .ccp-jd-row.is-hot {
  background: #fff;
  outline-color: transparent;
  box-shadow: 0 0 0 2.5px var(--stage), 0 14px 30px -14px var(--stage);
}

.ccp-jobDetail .ccp-jd-row.is-landed {
  box-shadow: 0 0 0 3px var(--stage);
}

.ccp-jobDetail .ccp-jd-row-h {
  margin: 0;
  font: inherit;
}

.ccp-jobDetail .ccp-jd-row-head {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 66px;
  padding: 12px 14px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: #1a1a2e;
  text-align: left;
  cursor: pointer;
}

.ccp-jobDetail .ccp-jd-row-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  color: var(--stage);
}

.ccp-jobDetail .ccp-jd-row-label {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.ccp-jobDetail .ccp-jd-faces {
  display: flex;
  flex-shrink: 0;
  padding-left: 6px;
  transition: opacity 0.25s ease;
}

.ccp-jobDetail .ccp-jd-row.is-open .ccp-jd-faces {
  opacity: 0;
}

.ccp-jobDetail .ccp-jd-face {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-left: -6px;
  overflow: hidden;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #94a3b8;
  color: #fff;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.572rem;
  font-weight: 700;
}

.ccp-jobDetail .ccp-jd-face .pfp-img {
  object-fit: cover;
}

.ccp-jobDetail .ccp-jd-row-n {
  flex-shrink: 0;
  min-width: 28px;
  font-family: "JetBrains Mono", monospace;
  font-size: 1.485rem;
  font-weight: 700;
  text-align: right;
  color: var(--stage);
}

.ccp-jobDetail .ccp-jd-chev {
  flex-shrink: 0;
  color: #6b7280;
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.ccp-jobDetail .ccp-jd-row.is-open .ccp-jd-chev {
  transform: rotate(180deg);
}

.ccp-jobDetail .ccp-jd-row-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.42s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.ccp-jobDetail .ccp-jd-row.is-open .ccp-jd-row-body {
  grid-template-rows: 1fr;
}

/* clip, not hidden, so the selection tray can stick to the bottom of the screen.
   A clip box is no scroll container, so its grid track would otherwise widen to the tray. */
.ccp-jobDetail .ccp-jd-row-clip {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 0 0 18px 18px;
}

@supports (overflow: clip) {
  .ccp-jobDetail .ccp-jd-row-clip {
    overflow: clip;
  }
}

.ccp-jobDetail .ccp-jd-row-inner {
  padding: 4px 14px 18px;
}

.ccp-jobDetail .ccp-jd-row-empty {
  padding: 2px;
  font-size: 0.968rem;
  color: #6b7280;
}

/* Photo tiles */

.ccp-jobDetail .ccp-jd-tiles {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
  gap: 16px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ccp-jobDetail .ccp-jd-cell {
  position: relative;
  min-width: 0;
}

.ccp-jobDetail .ccp-jd-cell.is-in {
  animation: ccpJdTileIn 0.42s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--d, 0ms);
}

@keyframes ccpJdTileIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.ccp-jobDetail .ccp-jd-tile,
.ccp-jobDetail .ccp-jd-more {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0 0 9px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.ccp-jobDetail .ccp-jd-tile {
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.ccp-jobDetail .ccp-jd-tile:focus-visible,
.ccp-jobDetail .ccp-jd-more:focus-visible {
  outline: none;
}

.ccp-jobDetail .ccp-jd-tile:focus-visible .ccp-jd-ph,
.ccp-jobDetail .ccp-jd-more:focus-visible .ccp-jd-more-box {
  outline: 2px solid var(--ccp-active);
  outline-offset: 3px;
}

.ccp-jobDetail .ccp-jd-ph {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  background: #94a3b8;
  color: #fff;
  font-family: "JetBrains Mono", monospace;
  font-size: 1.045rem;
  font-weight: 700;
  outline: 0 solid transparent;
  outline-offset: 2px;
  box-shadow: 0 6px 14px -8px rgba(15, 23, 42, 0.45);
  transition: transform 0.25s ease, opacity 0.3s ease;
}

.ccp-jobDetail .ccp-jd-ph .pfp-img,
.ccp-jobDetail .ccp-jd-ph .avatar-initials {
  position: absolute;
  inset: 0;
  border-radius: 16px;
}

.ccp-jobDetail .ccp-jd-ph .pfp-img {
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}

.ccp-jobDetail .ccp-jd-tile.is-sel .ccp-jd-ph {
  outline: 3px solid #16a34a;
  transform: scale(0.9);
}

.ccp-jobDetail .ccp-jd-tile.is-dragged .ccp-jd-ph {
  opacity: 0.3;
}

.ccp-jobDetail .ccp-jd-check {
  position: absolute;
  top: -7px;
  right: -7px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.3);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.28);
  transform: scale(0);
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.2, 1), background 0.2s ease;
}

.ccp-jobDetail .ccp-jd-check svg {
  opacity: 0;
}

.ccp-jobDetail.is-selecting .ccp-jd-check {
  transform: scale(1);
}

.ccp-jobDetail .ccp-jd-tile.is-sel .ccp-jd-check {
  background: #16a34a;
}

.ccp-jobDetail .ccp-jd-tile.is-sel .ccp-jd-check svg {
  opacity: 1;
}

.ccp-jobDetail .ccp-jd-badge {
  position: absolute;
  left: 50%;
  bottom: -9px;
  z-index: 1;
  padding: 0.08rem 0.45rem;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.726rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  transform: translateX(-50%);
}

.ccp-jobDetail .ccp-jd-badge--lock {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 20px;
  padding: 0;
  background: #64748b;
}

.ccp-jobDetail .ccp-jd-more-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1.5px dashed var(--stage);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--stage);
  font-family: "JetBrains Mono", monospace;
  font-size: 1.705rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ccp-jobDetail .ccp-jd-more:active .ccp-jd-more-box {
  transform: scale(0.96);
}

/* Selection toolbar (the open row's rounded clip shapes its bottom corners) */

.ccp-jobDetail .ccp-jd-tray {
  position: sticky;
  bottom: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px -14px -18px;
  padding: 10px 12px calc(10px + var(--ccp-safe-b)) 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  background: #fff;
  box-shadow: 0 -10px 24px -18px rgba(15, 23, 42, 0.35);
}

.ccp-jobDetail .ccp-jd-tray-all {
  flex-shrink: 0;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ccp-deep);
  font-size: 1.24rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.ccp-jobDetail .ccp-jd-tray-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  font-size: 0.99rem;
  font-weight: 600;
  color: #4b5563;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ccp-jobDetail .ccp-jd-tray-done {
  flex-shrink: 0;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  background: #111827;
  color: #fff;
  font-size: 1.24rem;
  font-weight: 700;
  cursor: pointer;
}

.ccp-jobDetail .ccp-jd-tray-done:active {
  transform: scale(0.97);
}

/* A job that no longer exists */

.ccp-jobDetail .ccp-jd-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 1.5rem;
  text-align: center;
}

.ccp-jobDetail .ccp-jd-empty-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: 1rem;
  border: 1.5px dashed rgba(0, 0, 0, 0.08);
  border-radius: 1.25rem;
  background: rgba(0, 0, 0, 0.025);
  color: #d1d5db;
}

.ccp-jobDetail .ccp-jd-empty-title {
  margin: 0 0 0.4rem;
  font-size: 1.265rem;
  font-weight: 700;
  color: #4b5563;
}

.ccp-jobDetail .ccp-jd-empty--missing {
  padding-top: 4rem;
}

.ccp-jobDetail .ccp-jd-empty-btn {
  min-height: 44px;
  margin-top: 1.25rem;
  padding: 0 1.25rem;
  border: 1px solid rgba(99, 234, 113, 0.35);
  border-radius: 0.75rem;
  background: rgba(99, 234, 113, 0.15);
  color: var(--ccp-text);
  font-size: 1.24rem;
  font-weight: 600;
  cursor: pointer;
}

/* Hub bar */

.ccp-jobDetail .ccp-jd-bar {
  align-items: center;
  gap: 10px;
  padding: 10px calc(var(--ccp-gutter) + var(--ccp-safe-r)) calc(14px + var(--ccp-safe-b))
    calc(var(--ccp-gutter) + var(--ccp-safe-l));
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.05);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.ccp-jobDetail.is-selecting .ccp-jd-bar {
  display: none;
}

.ccp-jobDetail .ccp-jd-bar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  gap: 8px;
  min-width: 0;
  min-height: 52px;
  padding: 0 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 14px;
  background: #fff;
  color: #1a1a2e;
  font-size: 1.24rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.ccp-jobDetail .ccp-jd-bar-btn:active {
  transform: scale(0.98);
}

.ccp-jobDetail .ccp-jd-bar-btn--post {
  border-color: transparent;
  background: linear-gradient(135deg, var(--ccp-brand), var(--ccp-brand-2));
  color: #000;
}

/* Drag preview */

.ccp-jd-ghost {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1150;
  width: 68px;
  height: 68px;
  pointer-events: none;
  will-change: transform;
  transform: translate(-200px, -200px);
}

.ccp-jd-ghost-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 20px;
  background: #94a3b8;
  color: #fff;
  font-family: "JetBrains Mono", monospace;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 18px 34px -10px rgba(15, 23, 42, 0.55);
}

.ccp-jd-ghost-face .pfp-img,
.ccp-jd-ghost-face .avatar-initials {
  position: absolute;
  inset: 0;
  border-radius: 0;
}

.ccp-jd-ghost-face .pfp-img {
  object-fit: cover;
}

.ccp-jd-ghost-n {
  position: absolute;
  top: -12px;
  right: -12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border: 2.5px solid #fff;
  border-radius: 999px;
  background: #16a34a;
  color: #fff;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.935rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.3);
}

/* Sheets: the design's grabber, header row (title and a plain 44px close, 10px
   into the right padding) and padding, per sheet. */

.ccp-jd-sheet .v-bs-sheet {
  max-height: 90dvh;
  background: linear-gradient(180deg, rgba(99, 234, 113, 0.1), rgba(99, 234, 113, 0) 150px), #fff;
  box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.2);
  line-height: normal;
}

.ccp-jd-sheet button {
  -webkit-appearance: none;
  appearance: none;
  font-family: inherit;
  touch-action: manipulation;
}

.ccp-jd-sheet .v-bs-body {
  padding: 0;
}

.ccp-jd-sheet .v-bs-body > .ccp-sheet-head {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 64px 0 16px;
}

.ccp-jd-sheet .ccp-sheet-title {
  font-size: 1.43rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: normal;
}

.ccp-jd-sheet .v-bs-close.v-action-btn {
  z-index: 3;
  right: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #6b7280;
}

.ccp-jd-sheet .v-bs-close.v-action-btn svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.5;
}

/* Manage job: max 560px wide, 8px 16px 24px around (the grabber's 2px top margin
   included), title row 12px above the menu */

.ccp-jd-sheet--manage .v-bs-sheet {
  max-width: 560px;
}

.ccp-jd-sheet--manage .v-bs-handle-wrap {
  padding: 10px 0;
}

.ccp-jd-sheet--manage .v-bs-close.v-action-btn {
  top: 24px;
}

.ccp-jd-sheet--manage .v-bs-body > .ccp-sheet-head {
  margin-bottom: 12px;
}

.ccp-jd-sheet--manage .ccp-sheet-content {
  padding: 0 16px calc(24px + var(--ccp-safe-b));
}

/* Job Details: full width, a white header and footer around the grey body */

.ccp-jd-sheet--details .v-bs-sheet {
  max-width: none;
  background: #f6f7f9;
  box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.22);
}

.ccp-jd-sheet--details .v-bs-handle-wrap {
  padding: 8px 0 10px;
  background: #fff;
}

.ccp-jd-sheet--details .v-bs-body > .ccp-sheet-head {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 57px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
}

.ccp-jd-sheet--details .v-bs-close.v-action-btn,
.ccp-jd-sheet--help .v-bs-close.v-action-btn {
  top: 22px;
  color: #374151;
}

.ccp-jd-sheet--details .v-bs-close.v-action-btn svg,
.ccp-jd-sheet--help .v-bs-close.v-action-btn svg {
  stroke-width: 2;
}

.ccp-jd-sheet--details .ccp-sheet-content {
  padding: 0 16px 20px;
}

.ccp-jd-sheet--details .ccp-jd-panel-card {
  margin-top: 8px;
}

.ccp-jd-sheet--details .ccp-sheet-foot {
  padding: 10px 16px calc(16px + var(--ccp-safe-b));
}

@media (min-width: 640px) {
  .ccp-jd-info .ccp-jd-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.ccp-jd-sheet .ccp-jd-edit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 14px;
  background: #0a0f1a;
  color: #fff;
  font-size: 1.24rem;
  font-weight: 700;
  cursor: pointer;
}

.ccp-jd-sheet .ccp-jd-edit svg {
  flex-shrink: 0;
}

/* Manage sheet */

.ccp-jd-sheet .ccp-jd-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ccp-jd-sheet .ccp-jd-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 60px;
  padding: 10px 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  background: #fff;
  color: #1a1a2e;
  text-align: left;
  cursor: pointer;
}

.ccp-jd-sheet .ccp-jd-menu-item:active {
  transform: scale(0.985);
}

.ccp-jd-sheet .ccp-jd-menu-ic {
  display: flex;
  flex-shrink: 0;
  color: var(--ccp-accent);
}

.ccp-jd-sheet .ccp-jd-menu-t {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 1.155rem;
  font-weight: 650;
}

.ccp-jd-sheet .ccp-jd-menu-item.is-danger {
  border-color: rgba(244, 63, 94, 0.22);
  background: rgba(244, 63, 94, 0.04);
  color: #be123c;
}

.ccp-jd-sheet .ccp-jd-menu-item.is-danger .ccp-jd-menu-ic {
  color: #be123c;
}

/* Confirm sheets (close, reopen, delete, post): white, max 560px wide, no close
   button; the message and the two buttons run edge to edge, 6px above the bottom. */

.ccp-jd-sheet--confirm .v-bs-sheet {
  max-width: 560px;
  background: #fff;
}

.ccp-jd-sheet--confirm .v-bs-handle-wrap {
  padding: 10px 0;
}

.ccp-jd-sheet--confirm .v-bs-close.v-action-btn {
  display: none;
}

.ccp-jd-sheet--confirm .ccp-sheet-content {
  padding: 0 0 calc(6px + var(--ccp-safe-b));
}

.ccp-jd-sheet .ccp-jd-confirm {
  margin-top: -6px;
  text-align: center;
}

.ccp-jd-sheet .ccp-jd-confirm-top {
  padding: 1.85rem 1.5rem 1.5rem;
}

.ccp-jd-sheet .ccp-jd-confirm-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.1rem;
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 1.1rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(16, 185, 129, 0.07));
  color: #10b981;
}

.ccp-jd-sheet .ccp-jd-confirm-ic.is-danger {
  border-color: rgba(239, 68, 68, 0.4);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.18), rgba(239, 68, 68, 0.08));
  color: #ef4444;
}

.ccp-jd-sheet .ccp-jd-confirm-title {
  margin: 0 0 0.55rem;
  font-size: 1.54rem;
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.25;
  color: #1a1a2e;
  overflow-wrap: anywhere;
}

.ccp-jd-sheet .ccp-jd-confirm-desc {
  max-width: 32rem;
  margin: 0 auto;
  font-size: 1.045rem;
  line-height: 1.6;
  color: #6b7280;
  overflow-wrap: anywhere;
}

.ccp-jd-sheet .ccp-jd-confirm-foot {
  display: flex;
  gap: 0.75rem;
  padding: 0.875rem 1.5rem 1.1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.6);
}

.ccp-jd-sheet .ccp-jd-confirm-cancel,
.ccp-jd-sheet .ccp-jd-confirm-ok {
  flex: 1 1 0%;
  min-height: 48px;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.6rem;
  background: rgba(0, 0, 0, 0.04);
  color: #1a1a2e;
  font-size: 1.24rem;
  font-weight: 600;
  cursor: pointer;
}

.ccp-jd-sheet .ccp-jd-confirm-ok {
  border-color: rgba(99, 234, 113, 0.35);
  background: rgba(99, 234, 113, 0.15);
  white-space: nowrap;
}

.ccp-jd-sheet .ccp-jd-confirm-ok.is-danger {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
}

/* Help sheet with the drag demo: max 640px wide and 88% high, the demo in a 540px box */

.ccp-jd-sheet--help .v-bs-sheet {
  max-height: 88dvh;
  background: #fff;
  box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.22);
}

.ccp-jd-sheet--help .v-bs-handle-wrap {
  padding: 8px 0 10px;
}

.ccp-jd-sheet--help .v-bs-body > .ccp-sheet-head {
  min-height: 50px;
  padding-bottom: 6px;
}

.ccp-jd-sheet--help .ccp-sheet-title {
  color: #111827;
}

.ccp-jd-sheet--help .ccp-sheet-content {
  padding: 6px 16px 12px;
}

.ccp-jd-sheet .ccp-jd-demo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 540px;
  padding-top: 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 22px;
  background: #f6f7f9;
}

.ccp-jd-sheet .ccp-jd-d-frame {
  position: relative;
  flex-shrink: 0;
  width: 340px;
  height: 470px;
}

.ccp-jd-sheet .ccp-jd-d-stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 340px;
  height: 470px;
  overflow: hidden;
  transform-origin: 0 0;
}

.ccp-jd-sheet .ccp-jd-d-stage img {
  display: block;
  object-fit: cover;
  -webkit-user-drag: none;
}

.ccp-jd-sheet .ccp-jd-d-open {
  position: absolute;
  left: 6px;
  top: 6px;
  width: 328px;
  height: 160px;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px -14px rgba(15, 23, 42, 0.25);
}

.ccp-jd-sheet .ccp-jd-d-head {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 11px;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
}

.ccp-jd-sheet .ccp-jd-d-head .ccp-jd-chev {
  transform: rotate(180deg);
}

.ccp-jd-sheet .ccp-jd-d-ic {
  display: flex;
  flex-shrink: 0;
  width: 28px;
  justify-content: center;
  color: var(--stage);
}

.ccp-jd-sheet .ccp-jd-d-label {
  flex: 1 1 auto;
  font-size: 16px;
  font-weight: 700;
  color: #1a1a2e;
}

.ccp-jd-sheet .ccp-jd-d-n {
  min-width: 28px;
  font-family: "JetBrains Mono", monospace;
  font-size: 21.6px;
  font-weight: 700;
  text-align: right;
  color: var(--stage);
}

.ccp-jd-sheet .ccp-jd-chev {
  flex-shrink: 0;
  color: #6b7280;
}

.ccp-jd-sheet .ccp-jd-d-tile {
  position: absolute;
  top: 66px;
  width: 70px;
  height: 70px;
  border-radius: 16px;
  outline-offset: 2px;
  box-shadow: 0 6px 14px -8px rgba(15, 23, 42, 0.45);
}

.ccp-jd-sheet .ccp-jd-d-tile img {
  width: 100%;
  height: 100%;
  border-radius: 16px;
}

.ccp-jd-sheet .ccp-jd-d-score {
  position: absolute;
  left: 50%;
  bottom: -9px;
  padding: 1px 7px;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  transform: translateX(-50%);
}

.ccp-jd-sheet .ccp-jd-d-ck {
  position: absolute;
  top: -7px;
  right: -7px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.3);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.28);
  transform: scale(0);
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.2, 1), background 0.2s ease;
}

.ccp-jd-sheet .ccp-jd-d-ck svg {
  width: 12px;
  height: 12px;
  opacity: 0;
}

.ccp-jd-sheet .ccp-jd-d-open.is-sel .ccp-jd-d-ck {
  transform: scale(1);
}

.ccp-jd-sheet .ccp-jd-d-tile.is-on .ccp-jd-d-ck {
  background: #16a34a;
}

.ccp-jd-sheet .ccp-jd-d-tile.is-on .ccp-jd-d-ck svg {
  opacity: 1;
}

.ccp-jd-sheet .ccp-jd-d-tray {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 10px 0 6px;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  background: #fff;
  font-size: 14px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.3s ease;
}

.ccp-jd-sheet .ccp-jd-d-open.is-sel .ccp-jd-d-tray {
  opacity: 1;
  transform: none;
}

.ccp-jd-sheet .ccp-jd-d-all {
  padding: 8px 10px;
  font-weight: 700;
  color: var(--ccp-deep);
}

.ccp-jd-sheet .ccp-jd-d-sel {
  flex: 1 1 auto;
  font-weight: 600;
  color: #4b5563;
  text-align: center;
}

.ccp-jd-sheet .ccp-jd-d-done {
  padding: 9px 16px;
  border-radius: 12px;
  background: #111827;
  color: #fff;
  font-weight: 700;
}

.ccp-jd-sheet .ccp-jd-d-row {
  position: absolute;
  left: 6px;
  width: 328px;
  height: 62px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border-radius: 18px;
  background: var(--stage-bg);
  outline: 0 solid transparent;
  outline-offset: -1px;
}

.ccp-jd-sheet .ccp-jd-d-row.is-dash {
  outline: 1.5px dashed var(--stage);
}

.ccp-jd-sheet .ccp-jd-d-row.is-hot {
  background: #fff;
  outline-color: transparent;
  box-shadow: 0 0 0 2.5px var(--stage), 0 14px 30px -14px var(--stage);
}

.ccp-jd-sheet .ccp-jd-d-row.is-landed {
  box-shadow: 0 0 0 3px var(--stage);
}

.ccp-jd-sheet .ccp-jd-d-faces {
  display: flex;
  padding-left: 6px;
}

.ccp-jd-sheet .ccp-jd-d-faces img {
  width: 26px;
  height: 26px;
  margin-left: -6px;
  border: 2px solid #fff;
  border-radius: 50%;
}

.ccp-jd-sheet .ccp-jd-d-ring {
  position: absolute;
  left: 9px;
  top: 61px;
  width: 92px;
  height: 92px;
  border: 2.5px solid #16a34a;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.ccp-jd-sheet .ccp-jd-d-ghost {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 4;
  width: 62px;
  height: 62px;
  pointer-events: none;
  opacity: 0;
}

.ccp-jd-sheet .ccp-jd-d-ghost img {
  position: absolute;
  left: 0;
  top: 0;
  width: 62px;
  height: 62px;
  border: 3px solid #fff;
  border-radius: 18px;
  box-shadow: 0 16px 30px -10px rgba(15, 23, 42, 0.55);
}

.ccp-jd-sheet .ccp-jd-d-ghost img:nth-child(1) {
  transform: rotate(-9deg) translate(-7px, 4px);
}

.ccp-jd-sheet .ccp-jd-d-ghost img:nth-child(2) {
  transform: rotate(7deg) translate(7px, 3px);
}

.ccp-jd-sheet .ccp-jd-d-ghost img:nth-child(3) {
  transform: rotate(-3deg) scale(1.04);
}

.ccp-jd-sheet .ccp-jd-d-gn {
  position: absolute;
  top: -11px;
  right: -11px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border: 2.5px solid #fff;
  border-radius: 999px;
  background: #16a34a;
  color: #fff;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 700;
}

.ccp-jd-sheet .ccp-jd-d-toast {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 12px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #111827;
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  opacity: 0;
}

.ccp-jd-sheet .ccp-jd-d-toast > span:first-of-type {
  flex: 1 1 auto;
}

.ccp-jd-sheet .ccp-jd-d-undo {
  font-weight: 700;
  color: #63ea71;
}

.ccp-jd-sheet .ccp-jd-d-finger {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 5;
  width: 34px;
  height: 34px;
  pointer-events: none;
  opacity: 0;
}

.ccp-jd-sheet .ccp-jd-d-finger span {
  display: block;
  width: 34px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.18);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.28);
  transition: transform 0.15s ease, background 0.15s ease;
}

.ccp-jd-sheet .ccp-jd-d-finger.is-down span {
  background: rgba(17, 24, 39, 0.34);
  transform: scale(0.8);
}

.ccp-jd-sheet .ccp-jd-d-cap {
  margin-top: 14px;
  min-height: 1.4em;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #111827;
  text-align: center;
}

.ccp-jd-sheet .ccp-jd-help-ok {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--ccp-brand), var(--ccp-brand-2));
  color: #000;
  font-size: 1.24rem;
  font-weight: 700;
  cursor: pointer;
}

.ccp-jd-sheet .ccp-jd-help-ok:active {
  transform: scale(0.98);
}

/* Toasts: 16px above where the design's bottom bar would be (4rem), over the hub bar */

body[data-phone-screen="jobDetail"] .ccp-toast-host {
  bottom: calc(4rem + 16px + var(--ccp-safe-b));
  padding: 0 12px;
}

/* The design's toast: a dark card at least 320px wide, the tick, the message and Undo.
   A long message wraps onto more lines, as in the design, instead of being cut. It
   shows and goes at once, without the shared toast's fade and rise. */

body[data-phone-screen="jobDetail"] .ccp-toast,
body[data-phone-screen="jobDetail"] .ccp-toast:has(.ccp-toast-undo) {
  justify-content: center;
  gap: 0.5rem;
  min-width: min(320px, 100%);
  max-width: 100%;
  padding: 0.95rem 1.3rem;
  border-radius: 16px;
  font-size: 1.1rem;
  line-height: 1.4;
  text-align: center;
  white-space: normal;
  overflow: visible;
  transform: none;
  transition: none;
}

body[data-phone-screen="jobDetail"] .ccp-toast-check {
  width: 15px;
  height: 15px;
  border-radius: 0;
  background: none;
}

body[data-phone-screen="jobDetail"] .ccp-toast-check svg {
  width: 15px;
  height: 15px;
  stroke: #63ea71;
  stroke-width: 2.25;
}

body[data-phone-screen="jobDetail"] .ccp-toast--error .ccp-toast-check svg {
  stroke: #fca5a5;
}

body[data-phone-screen="jobDetail"] .ccp-toast--lock .ccp-toast-check svg,
body[data-phone-screen="jobDetail"] .ccp-toast--info .ccp-toast-check svg {
  stroke: #e5e7eb;
}

body[data-phone-screen="jobDetail"] .ccp-toast-msg {
  display: block;
  overflow: visible;
  line-height: 1.4;
}

body[data-phone-screen="jobDetail"] .ccp-toast-undo {
  margin-left: 6px;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  color: #63ea71;
  font-size: 1.045rem;
  font-weight: 700;
}

/* 640px and up */

@media (min-width: 640px) {
  .ccp-jobDetail .ccp-jd-title {
    font-size: 2.09rem;
  }
}

/* Tablets (769px to 1023px): under the navbar the page starts 16px down and ends 48px
   above the hub bar; the job information sits on a white card, the Job Details sheet
   runs the full width and toasts sit 24px above the bottom edge. */

@media (min-width: 769px) and (max-width: 1023px) {
  .ccp-jobDetail .ccp-jd-page {
    padding: 16px 24px calc(48px + 77px + var(--ccp-safe-b));
  }

  .ccp-jobDetail .ccp-jd-panel-card,
  .ccp-jd-sheet--details .ccp-jd-panel-card {
    padding: 16px 24px 24px;
    border: 1px solid #e0e0da;
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05), 0 0 0 0.5px rgba(0, 0, 0, 0.04);
  }

  .ccp-jd-sheet--details .ccp-jd-panel-card {
    margin-top: 16px;
  }

  body[data-phone-screen="jobDetail"] .ccp-toast-host {
    bottom: calc(24px + var(--ccp-safe-b));
  }
}

@media (hover: hover) {
  .ccp-jobDetail .ccp-jd-tray-all:hover {
    background: rgba(99, 234, 113, 0.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ccp-jobDetail .ccp-jd-row,
  .ccp-jobDetail .ccp-jd-row-body,
  .ccp-jobDetail .ccp-jd-chev,
  .ccp-jobDetail .ccp-jd-faces,
  .ccp-jobDetail .ccp-jd-ph,
  .ccp-jobDetail .ccp-jd-check,
  .ccp-jobDetail .ccp-jd-bar-btn,
  .ccp-jd-sheet .ccp-jd-d-ck,
  .ccp-jd-sheet .ccp-jd-d-tray,
  .ccp-jd-sheet .ccp-jd-d-finger span {
    transition: none;
  }

  .ccp-jobDetail .ccp-jd-cell.is-in {
    animation: none;
  }

  .ccp-jobDetail .ccp-jd-back:active,
  .ccp-jobDetail .ccp-jd-help:active,
  .ccp-jobDetail .ccp-jd-bar-btn:active,
  .ccp-jobDetail .ccp-jd-tray-done:active,
  .ccp-jobDetail .ccp-jd-more:active .ccp-jd-more-box,
  .ccp-jd-sheet .ccp-jd-menu-item:active,
  .ccp-jd-sheet .ccp-jd-help-ok:active {
    transform: none;
  }

  .ccp-jd-sheet .ccp-jd-hire-ph {
    transition: none;
  }
}

/* Who did you hire? (the design's hire sheet): max 560px wide, the grabber and no
   close button; photo tiles in 3 columns (4 from 640px) with a radio badge on the
   corner; the two buttons pinned below, edge to edge, 24px above the bottom. */

.ccp-jd-sheet--hire .v-bs-sheet {
  max-width: 560px;
}

.ccp-jd-sheet--hire .v-bs-handle-wrap {
  padding: 10px 0;
}

.ccp-jd-sheet--hire .v-bs-close.v-action-btn {
  display: none;
}

.ccp-jd-sheet--hire .ccp-sheet-content {
  padding: 0 16px 4px;
}

.ccp-jd-sheet .ccp-jd-hire {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 2px;
}

.ccp-jd-sheet .ccp-jd-hire-title {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #111827;
}

.ccp-jd-sheet .ccp-jd-hire-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 12px;
  padding: 6px 4px 0;
}

@media (min-width: 640px) {
  .ccp-jd-sheet .ccp-jd-hire-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.ccp-jd-sheet .ccp-jd-hire-card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.ccp-jd-sheet .ccp-jd-hire-ph {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  color: #fff;
  font-family: "JetBrains Mono", monospace;
  font-size: 1.045rem;
  font-weight: 700;
  outline: 0 solid transparent;
  outline-offset: 2px;
  transition: transform 0.2s ease;
}

.ccp-jd-sheet .ccp-jd-hire-ph .pfp-img,
.ccp-jd-sheet .ccp-jd-hire-ph .avatar-initials {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ccp-jd-sheet .ccp-jd-hire-ph .pfp-img {
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}

.ccp-jd-sheet .ccp-jd-hire-card[aria-checked="true"] .ccp-jd-hire-ph {
  outline: 3px solid #16a34a;
  transform: scale(0.94);
}

.ccp-jd-sheet .ccp-jd-hire-radio {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: rgba(17, 24, 39, 0.3);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ccp-jd-sheet .ccp-jd-hire-radio svg {
  visibility: hidden;
}

.ccp-jd-sheet .ccp-jd-hire-card[aria-checked="true"] .ccp-jd-hire-radio {
  background: #16a34a;
}

.ccp-jd-sheet .ccp-jd-hire-card[aria-checked="true"] .ccp-jd-hire-radio svg {
  visibility: visible;
}

.ccp-jd-sheet .ccp-jd-hire-name {
  max-width: 100%;
  margin-top: 2px;
  font-size: 0.98rem;
  font-weight: 650;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ccp-jd-sheet .ccp-jd-hire-st {
  margin-top: -4px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #b45309;
}

.ccp-jd-sheet--hire .ccp-sheet-foot {
  margin-top: 4px;
  padding: 14px 16px calc(24px + var(--ccp-safe-b));
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.ccp-jd-sheet .ccp-jd-hire-foot {
  display: flex;
  gap: 0.6rem;
}

.ccp-jd-sheet .ccp-jd-hire-no,
.ccp-jd-sheet .ccp-jd-hire-ok {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  padding: 0 10px;
  border-radius: 0.7rem;
  font-size: 1.08rem;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
}

.ccp-jd-sheet .ccp-jd-hire-no {
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  color: #1a1a2e;
}

.ccp-jd-sheet .ccp-jd-hire-ok {
  border: 1px solid rgba(244, 63, 94, 0.35);
  background: rgba(244, 63, 94, 0.12);
  color: #be123c;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.ccp-jd-sheet .ccp-jd-hire-ok:disabled {
  background: rgba(244, 63, 94, 0.06);
  opacity: 0.5;
  cursor: default;
}
