/* ══════════════════════════════════════════════════════════════════
   DOMICARE PRACTITIONER — THREE-PAGE STITCH RECONSTRUCTION
   Visual target: sticthes.ui/practitioner.ui
     • domicare_practitioner_home_operational_command
     • domicare_practitioner_appointments
     • domicare_opportunity_detail_offered_request
   Scope: Practitioner Home, Practitioner Appointments,
          Care Opportunity Detail (+ their shared bento primitives).
   All values derive from the reference code exports (Plus Jakarta Sans /
   Inter scales, Material-ish 24-grid stroke icons, surface tokens) mapped
   onto the existing --pc-* tokens defined in practitioner-shell.css.
   ══════════════════════════════════════════════════════════════════ */

/* ─── Typography helpers ─────────────────────────────────────── */
.op-home, .op-appt, .op-opp {
  font-family: var(--pc-font-body);
  color: var(--pc-ink);
  min-width: 0;
}

/* Grid containment safety: grid tracks must never exceed their container */
.op-bento, .op-opp-bento, .op-upcoming-grid, .op-offer-grid,
.op-appt-active-body, .op-opp-factgrid {
  min-width: 0;
}
.op-bento > *, .op-opp-bento > *, .op-upcoming-grid > *, .op-appt-active-body > *,
.op-bento-main > .op-card, .op-bento-rail > .op-card { min-width: 0; }
@media (max-width: 1059px) {
  .op-bento { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1059px) {
  .op-opp-bento { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 639px) {
  .op-offer-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 719px) {
  .op-upcoming-grid { grid-template-columns: minmax(0, 1fr); }
}

.op-home h1, .op-home h2, .op-home h3,
.op-appt h1, .op-appt h2, .op-appt h3,
.op-opp h1, .op-opp h2, .op-opp h3 {
  font-family: var(--pc-font-head);
  color: var(--pc-ink);
  letter-spacing: -0.01em;
}

.op-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
  vertical-align: -0.15em;
}

/* Shared cards & surfaces */
.op-card {
  background: var(--pc-surface);
  border: 1px solid var(--pc-border);
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(10, 108, 71, 0.04), 0 4px 12px rgba(20, 38, 28, 0.03);
}

.op-card-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.op-hd-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.op-hd-title h2 {
  font-size: 18px;
  line-height: 26px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.005em;
}

.op-hd-title h2.op-h3 { font-size: 16px; line-height: 22px; }

.op-hd-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pc-primary-2);
  flex: 0 0 auto;
}

.op-hd-note {
  font-size: 12px;
  color: var(--pc-body);
  white-space: nowrap;
  flex-basis: 100%;
}

.op-text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--pc-primary-2);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.op-text-link:hover { color: var(--pc-primary-3); text-decoration: underline; }
.op-text-link.sm { font-size: 11px; }

/* Pills / badges */
.op-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 3px 10px;
  white-space: nowrap;
}
.op-pill-accent { background: #85f5bd; color: #006538; }
.op-pill-time { background: #e8f5ed; color: var(--pc-primary); border: 1px solid rgba(190, 201, 192, 0.4); font-weight: 600; }
.op-pill-live { background: #eaf7ee; color: var(--pc-primary); border: 1px solid rgba(10, 108, 71, 0.25); }
.op-pill-confirmed { background: #e8f5ed; color: var(--pc-primary-2); font-weight: 600; }
.op-pill-completed { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; font-weight: 600; }
.op-pill-cancelled { background: #fee2e2; color: #991b1b; font-weight: 600; }
.op-pill-neutral { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; font-weight: 600; }

.op-pulse-dot, .op-live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0d9464;
  flex: 0 0 auto;
}

/* Buttons */
.op-btn-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.op-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  line-height: 18px;
  min-height: 38px;
  padding: 8px 16px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  font-family: var(--pc-font-body);
}
.op-btn-primary {
  background: #0a6c47;
  color: #fff;
  box-shadow: 0 1px 2px rgba(10, 108, 71, 0.18);
}
.op-btn-primary:hover { background: #085e3e; }
.op-btn-ghost {
  background: var(--pc-surface);
  border-color: var(--pc-border);
  color: var(--pc-body);
}
.op-btn-ghost:hover { background: #f8faf9; color: var(--pc-primary); }
.op-btn-lg { min-height: 44px; padding: 10px 20px; font-size: 14px; }
.op-btn-sm { min-height: 32px; padding: 5px 12px; font-size: 12px; }

.op-count {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--pc-red, #ba1a1a);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

/* ─────────────────────────────────────────────────────────────
   PAGE 1 — PRACTITIONER HOME (operational command)
   ───────────────────────────────────────────────────────────── */
.op-home {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 60vh;
}

/* Hero card */
.op-hero {
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.op-hero-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  position: relative;
  z-index: 1;
}
.op-hero-copy { min-width: 0; }
.op-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--pc-primary-2);
}
.op-kicker-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pc-primary-2);
}
.op-kicker-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--pc-muted); }
.op-kicker-zone { font-size: 11px; font-weight: 600; color: var(--pc-body); text-transform: none; letter-spacing: 0; }
.op-hero h1 {
  font-size: 28px;
  line-height: 36px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 4px 0 6px;
  color: var(--pc-ink);
}
.op-hero-sub {
  margin: 0;
  max-width: 640px;
  color: var(--pc-body);
  font-size: 14px;
  line-height: 20px;
}

/* Right control box */
.op-hero-control {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f8faf9;
  border: 1px solid rgba(190, 201, 192, 0.6);
  border-radius: 12px;
  padding: 12px 14px;
  min-width: 300px;
}
.op-control-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.op-control-title { font-size: 12px; font-weight: 700; color: var(--pc-ink); }
.op-control-sub { width: 100%; font-size: 11px; font-weight: 500; color: var(--pc-body); margin-left: 16px; }
.op-control-error { width: 100%; margin: 6px 0 0 16px; font-size: 12px; font-weight: 600; color: var(--pc-red-text); }
.op-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid rgba(190, 201, 192, 0.6);
  border-radius: 8px;
  padding: 7px 10px;
  cursor: pointer;
}
.op-toggle {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: var(--pc-border);
  transition: background 0.18s ease;
  flex: 0 0 auto;
}
.op-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.18s ease;
}
.op-toggle.is-on { background: #0a6c47; }
.op-toggle.is-on .op-toggle-thumb { transform: translateX(18px); }
.op-toggle-label { font-size: 12px; font-weight: 700; }
.op-toggle-label.is-on { color: var(--pc-primary-2); }
.op-toggle-label.is-off { color: var(--pc-red); }

/* Metric strip */
.op-hero-metrics {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(190, 201, 192, 0.35);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  position: relative;
  z-index: 1;
}
.op-metric {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.op-metric-ic {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.op-metric-ic.mint { background: var(--pc-mint-150); color: var(--pc-primary-2); }
.op-metric-ic.green { background: #eaf7ee; color: var(--pc-primary-2); }
.op-metric-ic .op-icon { stroke-width: 1.7; }
.op-metric > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.op-metric-label { font-size: 11px; color: var(--pc-body); font-weight: 500; letter-spacing: 0.01em; }
.op-metric-value { font-size: 13px; font-weight: 600; color: var(--pc-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.op-metric-value.op-live { color: #0d9464; }

/* Bento grid — new layout structure */
.op-bento {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: start;
  min-width: 0;
}

/* Full-width items (NCO, Active Care) */
.op-bento-full {
  width: 100%;
  min-width: 0;
}

.op-card-active {
  width: 100%;
  min-width: 0;
}

/* 50/50 pair rows */
.op-bento-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  width: 100%;
  min-width: 0;
  align-items: start;
}

.op-pair-half {
  min-width: 0;
}

/* Internal card padding fix */
.op-card {
  padding: 20px 22px;
}

@media (min-width: 1060px) {
  .op-bento-pair {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet: two-column for pair rows */
@media (min-width: 768px) and (max-width: 1059px) {
  .op-bento-pair {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Opportunity card(s) */
.op-offers-list { display: flex; flex-direction: column; gap: 14px; }
.op-offer {
  background: rgba(227, 249, 234, 0.45);
  border: 1px solid var(--pc-border);
  border-radius: 12px;
  padding: 18px 20px;
}
.op-offer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(190, 201, 192, 0.35);
  flex-wrap: wrap;
}
.op-offer-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
  color: var(--pc-ink);
  font-family: var(--pc-font-head);
  min-width: 0;
  overflow-wrap: break-word; word-break: normal;
}
.op-mini-ic {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--pc-mint-200);
  color: var(--pc-primary-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.op-mini-ic.green { background: #eaf7ee; color: #0d9464; }

.op-offer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 14px 0 4px;
}
@media (min-width: 640px) {
  .op-offer-grid { grid-template-columns: repeat(3, 1fr); }
}
.op-cell-label, .op-cell-value, .op-cell-sub { display: block; }
.op-cell-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--pc-body);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.op-cell-value { font-size: 13px; font-weight: 600; color: var(--pc-ink); line-height: 1.4; }
.op-cell-sub { font-size: 12px; color: var(--pc-primary-2); font-weight: 500; margin-top: 2px; }
.op-offer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(190, 201, 192, 0.35);
  flex-wrap: wrap;
}
.op-foot-note { font-size: 12px; color: var(--pc-body); }

/* Active care feature card */
.op-card-active {
  border: 2px solid rgba(10, 108, 71, 0.22);
  box-shadow: 0 8px 24px rgba(10, 108, 71, 0.06);
}
.op-card-active .op-card-hd { margin-bottom: 0; padding-bottom: 12px; border-bottom: 1px solid rgba(190, 201, 192, 0.4); }
.op-pulse {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #0d9464;
  position: relative;
  flex: 0 0 auto;
}
.op-pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #0d9464;
  opacity: 0.6;
  animation: op-ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes op-ping {
  0% { transform: scale(1); opacity: 0.7; }
  80%, 100% { transform: scale(2.4); opacity: 0; }
}
.op-active-body { padding-top: 14px; }
.op-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pc-primary-2);
}
.op-active-patient h3 {
  font-size: 22px;
  line-height: 30px;
  font-weight: 700;
  margin: 2px 0 0;
  letter-spacing: -0.01em;
}
.op-active-patient p { margin: 2px 0 0; }
.op-active-facts {
  margin-top: 14px;
  background: #f8faf9;
  border: 1px solid rgba(190, 201, 192, 0.5);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.op-fact {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--pc-ink);
  font-weight: 500;
  min-width: 0;
}
.op-fact.sub { color: var(--pc-body); font-weight: 400; }
.op-fact .op-icon { color: var(--pc-primary-2); }
.op-fact.sub .op-icon { color: var(--pc-muted); }
.op-active-actions { margin-top: 18px; }

/* Today's schedule */
.op-sched-list { display: flex; flex-direction: column; gap: 12px; }
.op-sched-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 15px;
  border: 1px solid rgba(190, 201, 192, 0.65);
  border-radius: 12px;
  background: var(--pc-surface);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.op-sched-row:hover { background: #f8faf9; }
.op-sched-row.is-live {
  border: 2px solid rgba(10, 108, 71, 0.32);
  background: rgba(227, 249, 234, 0.3);
}
.op-sched-left {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}
.op-time { width: 44px; text-align: center; flex: 0 0 auto; }
.op-time-h { display: block; font-family: var(--pc-font-head); font-size: 16px; font-weight: 700; color: var(--pc-ink); line-height: 1.2; }
.op-sched-row.is-live .op-time-h { color: var(--pc-primary-2); }
.op-time-s { font-size: 10px; text-transform: uppercase; color: var(--pc-body); font-weight: 600; letter-spacing: 0.04em; }
.op-sched-main { display: flex; flex-direction: column; min-width: 0; overflow-wrap: break-word; word-break: normal; }
.op-sched-title { font-size: 14px; font-weight: 700; color: var(--pc-ink); line-height: 1.3; }
.op-sched-people { font-size: 12px; color: var(--pc-body); }
.op-sched-sub { font-size: 12px; color: var(--pc-body); display: flex; align-items: center; gap: 5px; margin-top: 1px; }
.op-sched-sub .op-icon { color: var(--pc-muted); }
.op-sched-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}
.op-sched-action {
  font-size: 12px;
  font-weight: 600;
  color: var(--pc-primary-2);
}
.op-sched-action:hover { text-decoration: underline; }
.op-sched-action.primary {
  background: var(--pc-primary-2);
  color: #fff;
  border-radius: 6px;
  padding: 5px 12px;
  font-weight: 600;
}
.op-sched-action.primary:hover { background: var(--pc-primary-3); text-decoration: none; }
.op-empty-row {
  border: 1px dashed var(--pc-border);
  border-radius: 12px;
  padding: 22px;
  text-align: center;
  color: var(--pc-body);
  font-size: 13px;
}
.op-empty-row p { margin: 0; }

/* Right rail cards */
.op-rail-card { padding: 18px 18px; }
.op-rail-card .op-card-hd { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid rgba(190, 201, 192, 0.4); }
.op-rail-card .op-hd-title { color: var(--pc-ink); }
.op-rail-card .op-hd-title .op-icon { color: var(--pc-primary-2); }
.op-rail-body { display: flex; flex-direction: column; gap: 10px; }
.op-cov-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.op-cov-value { font-size: 14px; font-weight: 600; color: var(--pc-ink); line-height: 1.35; }
.op-chip {
  background: var(--pc-mint-150);
  color: var(--pc-primary-2);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.op-rail-note { font-size: 12px; line-height: 1.55; color: var(--pc-body); margin: 0; }
.op-action-item {
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  background: #f8faf9;
  border: 1px solid rgba(190, 201, 192, 0.6);
}
.op-action-item > .op-icon { color: var(--pc-primary-2); margin-top: 2px; }
.op-action-copy { min-width: 0; }
.op-action-title { display: block; font-size: 12px; font-weight: 700; color: var(--pc-ink); }
.op-action-copy p { margin: 2px 0 0; font-size: 12px; line-height: 1.5; color: var(--pc-body); }
.op-action-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 11px; color: var(--pc-muted); }
.op-action-meta a { color: var(--pc-primary-2); font-weight: 700; text-decoration: none; }
.op-action-meta a:hover { text-decoration: underline; }
.op-allcaught { display: flex; gap: 10px; align-items: flex-start; }
.op-msg-list { gap: 8px; }
.op-msg-item {
  display: block;
  padding: 10px;
  border-radius: 10px;
  background: #f8faf9;
  border: 1px solid rgba(190, 201, 192, 0.5);
  text-decoration: none;
}
.op-msg-item:hover { background: rgba(227, 249, 234, 0.55); border-color: var(--pc-primary-2); }
.op-msg-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.op-msg-name { font-size: 12px; font-weight: 700; color: var(--pc-ink); }
.op-msg-time { font-size: 11px; font-weight: 600; color: var(--pc-primary-2); }
.op-msg-preview {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--pc-body);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Home responsive */
@media (max-width: 1059px) {
  .op-hero-main { flex-direction: column; align-items: stretch; gap: 18px; }
  .op-hero-control { min-width: 0; width: 100%; }
  .op-hero-metrics { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .op-hero { padding: 18px 16px; }
  .op-hero h1 { font-size: 23px; line-height: 30px; }
  .op-sched-row { flex-direction: column; align-items: stretch; }
  .op-sched-right { justify-content: space-between; }
  .op-metric-value { white-space: normal; overflow: visible; text-overflow: clip; }
}

/* ─────────────────────────────────────────────────────────────
   PAGE 2 — PRACTITIONER APPOINTMENTS
   ───────────────────────────────────────────────────────────── */
.op-muted-p { color: var(--pc-body); font-size: 13px; }
.op-appt { display: flex; flex-direction: column; gap: 20px; min-height: 60vh; }

.op-appt-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.op-appt-head h1 {
  font-size: 28px;
  line-height: 36px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--pc-primary);
  margin: 0 0 4px;
}
.op-appt-head p { margin: 0; color: var(--pc-body); font-size: 14px; }

/* Toolbar tabs */
.op-appt-toolbar {
  padding: 0 0 8px;
  border-bottom: 1px solid var(--pc-border-soft);
  margin-bottom: 20px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}
.op-appt-tabs { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; scrollbar-color: rgba(10, 108, 71, 0.3) transparent; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
.op-appt-tabs::-webkit-scrollbar { height: 4px; }
.op-appt-tabs::-webkit-scrollbar-thumb { background: rgba(10, 108, 71, 0.3); border-radius: 999px; }
.op-appt-tabs::-webkit-scrollbar-track { background: transparent; }
.op-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: var(--pc-body);
  font: 600 12px/16px var(--pc-font-body);
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease;
}
.op-tab:hover { background: var(--pc-mint-150); color: var(--pc-primary-2); }
.op-tab.is-active { background: var(--pc-mint-150); color: var(--pc-primary-2); font-weight: 700; }
.op-tab-count {
  background: #e5e9e7;
  color: var(--pc-body);
  font-size: 11px;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 999px;
}
.op-tab-count.accent { background: #85f5bd; color: #006538; }

/* Active banner */
.op-appt-active {
  background: var(--pc-surface);
  border: 2px solid rgba(13, 148, 100, 0.3);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(10, 108, 71, 0.07);
  overflow: hidden;
}
.op-appt-active-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 11px 22px;
  background: linear-gradient(90deg, var(--pc-mint-150), var(--pc-mint-200), var(--pc-mint-150));
  border-bottom: 1px solid rgba(13, 148, 100, 0.2);
}
.op-appt-active-eta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--pc-body);
}
.op-appt-active-eta .op-icon { color: var(--pc-primary-2); }
.op-appt-active-body {
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: center;
}
@media (min-width: 760px) {
  .op-appt-active-body { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) auto; }
}
.op-appt-ident { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.op-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--pc-mint-200);
  color: var(--pc-primary-2);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-family: var(--pc-font-head);
  border: 2px solid var(--pc-mint-200);
  overflow: hidden;
}
.op-avatar-lg { width: 56px; height: 56px; border-radius: 16px; font-size: 16px; }
.op-avatar-sm { width: 36px; height: 36px; font-size: 12px; border-radius: 50%; }
.op-appt-ident-copy { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.op-appt-name-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.op-appt-name-line h3 { margin: 0; font-size: 18px; line-height: 26px; font-weight: 700; }
.op-appt-age { background: #e5e9e7; color: var(--pc-body); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.op-appt-svc { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: var(--pc-primary-2); }
.op-appt-addr { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--pc-body); }
.op-appt-addr .op-icon, .op-appt-svc .op-icon { color: var(--pc-muted); }

/* Stepper */
.op-appt-stepper { background: #f8faf9; border: 1px solid rgba(190, 201, 192, 0.5); border-radius: 12px; padding: 14px 16px; }
.op-stepper-label { margin: 0 0 10px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--pc-body); }
.op-stepper { display: flex; align-items: flex-start; justify-content: space-between; position: relative; }
.op-stepper::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--pc-border);
}
.op-step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 20%; }
.op-step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--pc-border);
  color: var(--pc-body);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--pc-font-head);
}
.op-step.done .op-step-dot { background: var(--pc-primary-2); border-color: var(--pc-primary-2); color: #fff; }
.op-step.current .op-step-dot { background: var(--pc-primary-2); border-color: var(--pc-primary-2); color: #fff; box-shadow: 0 0 0 4px #85f5bd; }
.op-step-label { font-size: 11px; font-weight: 600; color: var(--pc-body); text-align: center; }
.op-step.current .op-step-label, .op-step.done .op-step-label { color: var(--pc-primary-2); font-weight: 700; }
.op-appt-active-actions { display: flex; flex-direction: column; gap: 10px; }
.op-btn-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.op-btn-grid2 .op-btn { padding-inline: 8px; }

/* Upcoming grid */
.op-appt-group { display: flex; flex-direction: column; gap: 16px; }
.op-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.op-sec-head h2 { margin: 0; font-size: 18px; line-height: 26px; font-weight: 700; color: var(--pc-ink); }
.op-upcoming-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 720px) {
  .op-upcoming-grid { grid-template-columns: repeat(2, 1fr); }
}
.op-upcoming-card {
  background: var(--pc-surface);
  border: 1px solid rgba(190, 201, 192, 0.6);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 1px 3px rgba(10, 108, 71, 0.04), 0 4px 12px rgba(20, 38, 28, 0.03);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.op-upcoming-card:hover { border-color: rgba(13, 148, 100, 0.4); box-shadow: 0 8px 24px rgba(10, 108, 71, 0.07); }
.op-upcoming-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.op-upcoming-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.op-upcoming-who h4 { margin: 0; font-size: 16px; line-height: 22px; font-weight: 700; }
.op-upcoming-who p { margin: 1px 0 0; font-size: 12px; color: var(--pc-body); }
.op-upcoming-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: #f8faf9;
  border: 1px solid rgba(190, 201, 192, 0.4);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
}
.op-up-meta-val { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--pc-ink); margin-top: 2px; }
.op-up-meta-val .op-icon { color: var(--pc-primary-2); }
.op-up-meta-val .trunc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.op-up-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 12px;
  color: var(--pc-ink);
  background: rgba(227, 249, 234, 0.6);
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 12px;
  line-height: 1.5;
}
.op-up-note .op-icon { color: var(--pc-primary-2); flex: 0 0 auto; margin-top: 1px; }
.op-up-actions { display: flex; gap: 10px; padding-top: 12px; border-top: 1px solid rgba(190, 201, 192, 0.4); }
.op-up-primary { flex: 1; }

/* Completed ledger */
.op-appt-ledger {
  background: var(--pc-surface);
  border: 1px solid rgba(190, 201, 192, 0.6);
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(10, 108, 71, 0.04), 0 4px 12px rgba(20, 38, 28, 0.03);
  overflow: hidden;
}
.op-appt-ledger > .op-sec-head { padding: 16px 22px; border-bottom: 1px solid rgba(190, 201, 192, 0.4); }
.op-chip-grey { background: #e5e9e7; color: var(--pc-body); font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.op-pill-done { background: #e8f5ed; color: var(--pc-primary-2); }
.op-pill-warn { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.op-table-wrap { overflow-x: auto; }
.op-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.op-table thead th {
  background: #f8faf9;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pc-body);
  padding: 13px 22px;
  border-bottom: 1px solid rgba(190, 201, 192, 0.4);
  white-space: nowrap;
}
.op-table thead th.right, .op-table td.right { text-align: right; }
.op-table tbody td {
  padding: 15px 22px;
  border-bottom: 1px solid rgba(190, 201, 192, 0.35);
  vertical-align: middle;
}
.op-table tbody tr:last-child td { border-bottom: 0; }
.op-table tbody tr { transition: background 0.12s ease; }
.op-table tbody tr:hover { background: rgba(227, 249, 234, 0.3); }
.op-table td strong { font-weight: 700; color: var(--pc-ink); display: block; font-size: 13px; }
.op-table td em { font-style: normal; font-size: 12px; color: var(--pc-body); display: block; }
.op-ledger-sub { margin-top: 1px; }
.op-ledger-who { display: flex; align-items: center; gap: 10px; min-width: 220px; }
.op-ledger-action { white-space: nowrap; }
.op-empty-card { padding: 34px 22px; text-align: center; }
.op-empty-card p { margin: 2px 0; }
.op-empty-card p:first-child { font-weight: 600; color: var(--pc-ink); }

/* ─────────────────────────────────────────────────────────────
   PAGE 3 — CARE OPPORTUNITY DETAIL
   ───────────────────────────────────────────────────────────── */
.op-opp { display: flex; flex-direction: column; gap: 18px; }
.op-opp-crumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--pc-body);
  flex-wrap: wrap;
}
.op-opp-crumb a { color: var(--pc-body); text-decoration: none; }
.op-opp-crumb a:hover { color: var(--pc-primary-2); text-decoration: underline; }
.op-opp-crumb .sep { color: var(--pc-muted); }
.op-opp-crumb .cur { color: var(--pc-primary-2); font-weight: 600; }
.op-opp-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.op-opp-head h1 { margin: 4px 0 0; font-size: 28px; line-height: 36px; font-weight: 700; letter-spacing: -0.015em; }
.op-opp-expiry {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #78350f;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.op-opp-expiry strong { font-weight: 800; font-family: var(--pc-font-head); }
.op-opp-bento { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
@media (min-width: 1060px) {
  .op-opp-bento { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
}
.op-opp-main, .op-opp-rail { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.op-opp-card { padding: 22px; }
.op-opp-card-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--pc-border-faint);
  margin-bottom: 16px;
}
.op-opp-overview { display: flex; align-items: center; gap: 14px; }
.op-initial-tile {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--pc-mint-150);
  color: var(--pc-primary-2);
  font-weight: 700;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-family: var(--pc-font-head);
}
.op-opp-overview h2 { margin: 0; font-size: 20px; line-height: 28px; font-weight: 700; }
.op-opp-overview .sub { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--pc-body); margin-top: 2px; }
.op-opp-overview .sub .op-icon { color: var(--pc-primary-2); }
.op-chip-sex { background: var(--pc-mint-200); color: var(--pc-primary-2); font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.op-opp-factgrid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .op-opp-factgrid { grid-template-columns: 1fr 1fr; } }
.op-opp-fact {
  background: #e8ffef;
  border: 1px solid var(--pc-mint-200);
  border-radius: 12px;
  padding: 14px;
}
.op-opp-fact h4 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--pc-primary-2);
  font-family: var(--pc-font-body);
}
.op-opp-fact h4 .op-icon { color: var(--pc-primary-2); }
.op-opp-fact p { margin: 0; font-size: 13px; font-weight: 500; color: var(--pc-ink); line-height: 1.5; }
.op-opp-fact .meta { display: block; margin-top: 4px; font-size: 11px; color: var(--pc-body); font-weight: 400; }
.op-opp-sec-title { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 18px; line-height: 26px; font-weight: 700; }
.op-opp-sec-title .op-icon { color: var(--pc-primary-2); }
.op-opp-reason {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 218, 214, 0.25);
  border: 1px solid rgba(186, 26, 26, 0.18);
  margin-bottom: 16px;
}
.op-opp-reason .op-icon { color: var(--pc-red); margin-top: 1px; }
.op-opp-reason h4 { margin: 0; font-size: 14px; font-weight: 700; color: var(--pc-red); }
.op-opp-reason p { margin: 4px 0 0; font-size: 13px; line-height: 1.6; color: var(--pc-ink); }
.op-chiprow { display: flex; flex-wrap: wrap; gap: 10px; }
.op-skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #e8ffef;
  border: 1px solid var(--pc-mint-200);
  font-size: 12px;
  font-weight: 600;
  color: var(--pc-ink);
}
.op-skill-chip .op-icon { color: var(--pc-primary-2); }
.op-cell-block { border: 1px solid rgba(190, 201, 192, 0.7); border-radius: 12px; padding: 12px; display: flex; gap: 10px; align-items: flex-start; }
.op-cell-block .op-icon-wrap { width: 34px; height: 34px; border-radius: 8px; background: var(--pc-mint-150); color: var(--pc-primary-2); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.op-cell-block .ttl { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--pc-body); }
.op-cell-block .val { display: block; font-size: 13px; font-weight: 700; color: var(--pc-ink); margin-top: 3px; }
.op-cell-block .note { display: block; font-size: 11px; color: var(--pc-body); margin-top: 2px; }

/* Decision rail */
.op-decision { padding: 20px; position: sticky; top: 96px; }
.op-decision .lbl {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--pc-body);
  margin: 0 0 14px;
}
.op-decision .pay { margin-bottom: 16px; }
.op-decision .pay .cap { font-size: 11px; color: var(--pc-body); }
.op-price { font-family: var(--pc-font-head); font-size: 32px; line-height: 40px; font-weight: 700; color: var(--pc-primary); }
.op-decision-actions { display: flex; flex-direction: column; gap: 10px; }
.op-rail-info { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--pc-border-faint); }
.op-rail-info-row { display: flex; gap: 10px; align-items: flex-start; }
.op-rail-info-row .op-icon-wrap { width: 30px; height: 30px; border-radius: 8px; background: var(--pc-mint-200); color: var(--pc-primary-2); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.op-rail-info-row .ttl { display: block; font-size: 11px; color: var(--pc-body); font-weight: 500; }
.op-rail-info-row .val { display: block; font-size: 13px; font-weight: 700; color: var(--pc-ink); }
.op-rail-info-row .note { display: block; font-size: 11px; color: var(--pc-primary-2); font-weight: 600; }
.op-safeguard {
  margin-top: 16px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(227, 249, 234, 0.6);
  border: 1px solid rgba(10, 108, 71, 0.2);
}
.op-safeguard .hd { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--pc-primary-2); margin-bottom: 4px; }
.op-safeguard p { margin: 0; font-size: 12px; line-height: 1.55; color: var(--pc-body); }
.op-decline-panel { margin-top: 10px; background: #e8ffef; border: 1px solid var(--pc-border); border-radius: 10px; padding: 12px; }
.op-decline-panel .ttl { font-size: 12px; font-weight: 600; color: var(--pc-ink); margin: 0 0 8px; }
.op-decline-panel label { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--pc-body); padding: 3px 0; cursor: pointer; }
.op-decline-panel input { accent-color: var(--pc-primary-2); }
.op-decline-panel .op-btn { margin-top: 8px; width: 100%; background: var(--pc-red); color: #fff; }
.op-decline-panel .op-btn:hover { background: #a01212; }

.op-busy { opacity: 0.65; pointer-events: none; }

/* Opportunities list (shares the offer card family) */
.op-opp-section { display: flex; flex-direction: column; gap: 14px; }
.op-opp-stack { display: flex; flex-direction: column; gap: 16px; }
.op-list-offer { background: var(--pc-surface); }
.op-opp-section .op-btn-primary { text-decoration: none; }
