/* Prospecting workspace ---------------------------------------------------- */
.prospecting-workspace {
  --pw-ink: var(--ink, var(--cn-teal-800));
  --pw-ink-soft: var(--ink-soft, var(--cn-sage-600));
  --pw-ink-muted: var(--ink-muted, var(--cn-sage-500));
  --pw-line: var(--line, var(--cn-sage-200));
  --pw-line-soft: var(--line-soft, var(--cn-sage-150));
  --pw-surface: var(--surface, var(--cn-surface));
  --pw-surface-soft: var(--surface-soft, var(--cn-surface-muted));
  --pw-surface-tint: var(--brand-lime-soft, var(--cn-action-soft));
  --pw-accent: var(--brand-teal, #083e34);
  --pw-accent-strong: var(--brand-teal-deep, var(--cn-teal-900));
  --pw-accent-bright: var(--brand-lime, var(--cn-lime-400));
  --pw-accent-pale: var(--brand-lime-soft, var(--cn-lime-100));
  --pw-blue: #315f90;
  --pw-warning: var(--warning, var(--cn-amber-700));
  --pw-danger: var(--danger, var(--cn-red-700));
  --pw-shadow-sm: var(--shadow-card, 0 2px 4px #143f3206);
  --pw-shadow-lg: var(--shadow-float, 0 24px 80px #143f3229);
  --pw-radius-sm: var(--control-radius, 8px);
  --pw-radius: var(--radius, 12px);
  --pw-radius-lg: var(--radius, 12px);
  min-width: 0;
  color: var(--pw-ink);
}

.prospecting-workspace *,
.prospecting-workspace *::before,
.prospecting-workspace *::after {
  box-sizing: border-box;
}

.prospecting-workspace button,
.prospecting-workspace input,
.prospecting-workspace textarea,
.prospecting-workspace select {
  font: inherit;
}

.prospecting-workspace button:focus-visible,
.prospecting-workspace input:focus-visible,
.prospecting-workspace textarea:focus-visible,
.prospecting-workspace select:focus-visible,
.prospecting-workspace a:focus-visible {
  outline: 3px solid var(--focus, #386b36);
  outline-offset: 2px;
}

/* Daily delivery docket -------------------------------------------------- */
.pw-product-delivery {
  overflow: hidden;
  margin-bottom: 22px;
  background: var(--cn-surface-muted);
  border: 1px solid #cad8ce;
  border-radius: var(--pw-radius-lg);
  box-shadow: 0 14px 38px rgba(20, 63, 50, .08);
}

.pw-product-delivery[hidden] { display: none; }

.pw-product-delivery-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 26px 21px;
  color: var(--cn-on-brand);
  background: var(--pw-accent-strong);
}

.pw-product-delivery-head [data-product-summary] > span {
  display: block;
  margin-bottom: 8px;
  color: var(--pw-accent-bright);
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.pw-product-delivery-head h2 {
  max-width: 680px;
  margin: 0;
  color: inherit;
  font-family: var(--font-display, inherit);
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 650;
  letter-spacing: -.035em;
}

.pw-product-delivery-head p {
  max-width: 650px;
  margin: 7px 0 0;
  color: rgba(247, 255, 249, .72);
  line-height: 1.5;
}

.pw-product-delivery-date {
  display: grid;
  justify-items: end;
  gap: 8px;
  flex: 0 0 auto;
}

.pw-product-delivery-date > span {
  color: rgba(247, 255, 249, .78);
  font-size: 12px;
  font-weight: 700;
  text-transform: capitalize;
}

.pw-product-delivery-date .button {
  min-height: 38px;
  color: var(--cn-on-brand);
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .24);
}

.pw-product-message {
  margin: 16px 26px 0;
  padding: 11px 13px;
  color: var(--pw-accent-strong);
  background: var(--cn-success-bg);
  border: 1px solid #ccddcb;
  border-radius: var(--pw-radius-sm);
  font-size: 13px;
}

.pw-product-message[data-kind="error"] { color: var(--pw-danger); background: var(--cn-danger-bg); border-color: #f0c8c3; }
.pw-product-message[data-kind="success"] { color: #176044; background: var(--cn-success-bg); border-color: #c8e1c9; }

.pw-product-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 22px 26px 26px;
}

.pw-product-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 430px;
  padding: 19px;
  background: var(--cn-surface);
  border: 1px solid var(--cn-border);
}

.pw-product-slot + .pw-product-slot { border-left: 0; }
.pw-product-slot:first-child { border-radius: 10px 0 0 10px; }
.pw-product-slot:last-child { border-radius: 0 10px 10px 0; }

.pw-product-slot > header,
.pw-product-lead-heading,
.pw-product-slot > footer,
.pw-product-contact,
.pw-product-feedback-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pw-product-slot > header {
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--cn-border);
}

.pw-product-slot-number {
  color: var(--pw-accent-strong);
  font-family: var(--font-mono, monospace);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.08em;
}

.pw-product-slot-state {
  color: #28724f;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.pw-product-lead-heading { align-items: flex-start; margin: 18px 0 15px; }
.pw-product-lead-heading h3 { margin: 0; font-size: 18px; line-height: 1.2; }
.pw-product-lead-heading p { margin: 5px 0 0; color: var(--pw-ink-soft); font-size: 12px; }
.pw-product-lead-heading > strong { color: var(--pw-accent); font-size: 21px; }
.pw-product-lead-heading > strong small { color: var(--pw-ink-muted); font-size: 10px; }

.pw-product-contact-list { display: grid; gap: 8px; }
.pw-product-contact { padding: 10px 11px; background: var(--cn-bg); border-radius: 8px; }
.pw-product-contact span { display: grid; min-width: 0; gap: 2px; }
.pw-product-contact small { color: var(--pw-ink-muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.pw-product-contact strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.pw-product-contact button { min-height: 34px; padding: 0 9px; color: var(--pw-accent); background: var(--cn-surface); border: 1px solid #cad8ce; border-radius: 7px; font-size: 11px; font-weight: 750; cursor: pointer; }

.pw-product-evidence { display: grid; gap: 3px; margin: 13px 0; padding: 10px 0; color: var(--pw-accent); border-block: 1px solid var(--cn-border-subtle); text-decoration: none; }
.pw-product-evidence span { color: var(--pw-ink-muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.pw-product-evidence strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

.pw-product-feedback-control { align-items: stretch; flex-direction: column; margin-top: 12px; }
.pw-product-feedback-control label { display: grid; flex: 1 1 auto; gap: 5px; min-width: 0; }
.pw-product-feedback-control label > span { color: var(--pw-ink-muted); font-size: 11px; }
.pw-product-feedback-control select { width: 100%; min-height: 40px; padding: 0 30px 0 10px; border: 1px solid var(--pw-line); border-radius: 7px; }
.pw-product-feedback-control .button { width: 100%; min-height: 40px; padding-inline: 11px; font-size: 11px; }
.pw-product-feedback-sent { margin: 13px 0; color: #426255; font-size: 12px; }

.pw-product-slot > footer { margin-top: auto; padding-top: 16px; color: var(--pw-ink-muted); font-family: var(--font-mono, monospace); font-size: 9px; }

.pw-product-slot.is-empty { color: var(--pw-ink-soft); background: repeating-linear-gradient(-45deg, var(--cn-surface-muted), var(--cn-surface-muted) 10px, var(--cn-surface-muted) 10px, var(--cn-surface-muted) 20px); }
.pw-product-slot.is-empty .pw-product-slot-state { color: #6b776f; }
.pw-product-slot.is-empty h3 { margin: 22px 0 7px; color: var(--pw-ink); font-size: 16px; }
.pw-product-slot.is-empty p { margin: 0; font-size: 13px; line-height: 1.5; }
.pw-product-empty-mark { display: flex; gap: 6px; margin-top: 88px; }
.pw-product-empty-mark i { width: 8px; height: 8px; background: #c8d2c7; border-radius: 50%; }

.pw-product-replacements {
  margin: 0 26px 24px;
  padding: 18px;
  background: var(--cn-brand-soft);
  border: 1px solid #c9ddce;
  border-radius: 10px;
}
.pw-product-replacements[hidden] { display: none; }
.pw-product-replacements > header { margin-bottom: 12px; }
.pw-product-replacements > header span,
.pw-product-replacement-label { color: #28724f; font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.pw-product-replacements > header h3 { margin: 3px 0 0; color: var(--pw-accent-strong); font-size: 17px; }
.pw-product-replacements [data-product-replacement-list] { display: grid; gap: 12px; }
.pw-product-replacement-card { padding: 16px; background: var(--cn-surface); border: 1px solid var(--cn-border); border-radius: 9px; }
.pw-product-replacement-card .pw-product-lead-heading { margin-top: 0; }
.pw-product-replacement-card > footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; color: var(--pw-ink-muted); font-family: var(--font-mono, monospace); font-size: 9px; }

.pw-product-contract-note { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 14px 26px; color: var(--cn-text-muted); background: var(--cn-bg-subtle); border-top: 1px solid var(--cn-border); font-size: 11px; }
.pw-product-contract-note strong { color: var(--pw-accent-strong); }

@media (max-width: 980px) {
  .pw-product-slots { grid-template-columns: 1fr; gap: 12px; }
  .pw-product-slot + .pw-product-slot { border-left: 1px solid var(--cn-border); }
  .pw-product-slot,
  .pw-product-slot:first-child,
  .pw-product-slot:last-child { min-height: 360px; border-radius: 10px; }
  .pw-product-empty-mark { margin-top: 54px; }
}

@media (max-width: 620px) {
  .pw-product-delivery-head { display: grid; padding: 20px; }
  .pw-product-delivery-date { display: flex; align-items: center; justify-content: space-between; width: 100%; }
  .pw-product-slots { padding: 16px; }
  .pw-product-message { margin-inline: 16px; }
  .pw-product-replacements { margin-inline: 16px; }
  .pw-product-replacement-card > footer { display: grid; }
  .pw-product-contract-note { display: grid; padding-inline: 20px; }
}

.pw-page-header {
  align-items: center;
  margin-bottom: 24px;
}

.pw-page-header .view-heading {
  gap: 8px;
}

.pw-page-header .view-heading h1 {
  max-width: 820px;
  color: var(--pw-ink);
  font-family: var(--font-display, inherit);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 650;
  letter-spacing: -.045em;
}

.pw-page-header .view-heading p {
  max-width: 760px;
  color: var(--pw-ink-soft);
  font-size: 15px;
  line-height: 1.55;
}

.pw-agent-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 8px 13px;
  color: var(--pw-ink-soft);
  background: rgba(255, 255, 255, .82);
  border: 1px solid var(--pw-line);
  border-radius: 999px;
  box-shadow: var(--pw-shadow-sm);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.pw-agent-pill i {
  position: relative;
  width: 9px;
  height: 9px;
  background: #a4aea9;
  border-radius: 50%;
}

.pw-agent-pill i::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid currentColor;
  border-radius: inherit;
  opacity: .2;
}

.pw-agent-pill.is-scheduled,
.pw-agent-pill.is-completed {
  color: var(--pw-accent-strong);
  background: var(--pw-accent-pale);
  border-color: var(--cn-lime-200);
}

.pw-agent-pill.is-scheduled i,
.pw-agent-pill.is-completed i {
  color: #2b9b68;
  background: #2b9b68;
  box-shadow: 0 0 0 4px rgba(43, 155, 104, .1);
}

.pw-agent-pill.is-running {
  color: var(--pw-blue);
  background: var(--cn-info-bg);
  border-color: #bfd4ed;
}

.pw-agent-pill.is-running i {
  color: var(--pw-blue);
  background: var(--pw-blue);
  box-shadow: 0 0 0 4px rgba(49, 95, 144, .1);
}

.pw-agent-pill.is-attention {
  color: var(--pw-warning);
  background: var(--cn-danger-bg);
  border-color: #ecd9ac;
}

.pw-agent-pill.is-attention i {
  color: #c48b25;
  background: #c48b25;
}

.pw-agent-pill.is-disabled {
  color: var(--pw-ink-soft);
  background: var(--pw-surface-soft);
}

.pw-feedback {
  margin: 0 0 16px;
  padding: 12px 14px;
  color: #244239;
  background: var(--cn-brand-soft);
  border: 1px solid var(--cn-border);
  border-radius: var(--pw-radius-sm);
  font-size: 13px;
  font-weight: 560;
}

.pw-feedback[data-kind="success"] {
  color: #145d40;
  background: var(--cn-success-bg);
  border-color: #b9dfca;
}

.pw-feedback[data-kind="warning"] {
  color: #76500e;
  background: var(--cn-danger-bg);
  border-color: #ecd8a7;
}

.pw-feedback[data-kind="error"] {
  color: #87362f;
  background: var(--cn-danger-bg);
  border-color: var(--cn-danger-border);
}

.pw-feedback[data-workspace-retry="true"] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.pw-feedback[data-workspace-retry="true"] > span {
  flex: 1 1 240px;
  overflow-wrap: anywhere;
}

.pw-feedback-retry {
  min-height: 44px;
  padding: 8px 14px;
  color: var(--pw-ink);
  background: var(--pw-surface);
  border: 1px solid currentColor;
  border-radius: var(--pw-radius-sm);
  font-weight: 600;
}

.pw-feedback-retry:hover {
  background: var(--pw-surface-soft);
}

.pw-review-key-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 12px 24px;
  margin: 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--pw-line);
}

.pw-review-key-facts dt {
  color: var(--pw-ink-soft);
  font-size: 13px;
}

.pw-review-key-facts dd {
  margin: 4px 0 0;
  color: var(--pw-ink);
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.pw-provider-notice {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 18px;
  padding: 15px 17px;
  color: #67470d;
  background: linear-gradient(135deg, var(--cn-danger-bg), var(--cn-surface));
  border: 1px solid #ead8ac;
  border-radius: 14px;
}

.pw-provider-notice > span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  color: var(--cn-on-brand);
  background: #b77b17;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 750;
}

.pw-provider-notice div {
  display: grid;
  gap: 3px;
}

.pw-provider-notice strong {
  color: #59400f;
  font-size: 13px;
}

.pw-provider-notice p {
  color: #765f32;
  font-size: 12px;
  line-height: 1.5;
}

.pw-tabs {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 20px;
  padding: 4px;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  color: var(--pw-ink-soft);
  background: var(--cn-bg-subtle);
  border: 1px solid var(--cn-teal-100);
  border-radius: 12px;
  scrollbar-width: none;
}

.pw-tabs::-webkit-scrollbar {
  display: none;
}

.pw-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 8px 15px;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 620;
  white-space: nowrap;
}

.pw-tabs button:hover {
  color: var(--pw-ink);
  background: rgba(255, 255, 255, .5);
}

.pw-tabs button[aria-selected="true"] {
  color: var(--pw-ink);
  background: var(--cn-surface);
  box-shadow: 0 1px 3px rgba(16, 37, 31, .1);
}

.pw-tabs button span {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  color: var(--pw-accent-strong);
  background: var(--pw-accent-pale);
  border-radius: 999px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.pw-loading {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 116px;
  padding: 22px;
  background: var(--pw-surface);
  border: 1px solid var(--pw-line);
  border-radius: var(--pw-radius);
  box-shadow: var(--pw-shadow-sm);
}

.pw-loading > span {
  width: 30px;
  height: 30px;
  border: 3px solid var(--cn-teal-100);
  border-top-color: var(--pw-accent);
  border-radius: 50%;
  animation: pw-spin .8s linear infinite;
}

.pw-loading div {
  display: grid;
  gap: 3px;
}

.pw-loading strong {
  font-size: 14px;
}

.pw-loading p {
  color: var(--pw-ink-soft);
  font-size: 13px;
}

.pw-content,
.pw-panel {
  min-width: 0;
}

.pw-panel.is-active {
  animation: pw-panel-in .24s ease-out;
}

.pw-kicker {
  display: inline-block;
  color: var(--pw-accent);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: .09em;
  text-transform: uppercase;
}

/* Today dashboard */
.pw-daily-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(170px, .58fr) auto;
  gap: clamp(22px, 3vw, 44px);
  align-items: center;
  min-height: 244px;
  padding: clamp(26px, 3vw, 42px);
  overflow: hidden;
  color: var(--cn-on-brand);
  background:
    radial-gradient(circle at 82% 5%, rgba(139, 226, 185, .23), transparent 34%),
    linear-gradient(135deg, var(--cn-brand-hover) 0%, #0b5849 56%, #0b4b38 100%);
  border: 1px solid rgba(14, 69, 51, .8);
  border-radius: var(--pw-radius-lg);
  box-shadow: 0 18px 46px rgba(11, 61, 46, .17);
}

.pw-daily-hero::before,
.pw-daily-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(199, 242, 220, .13);
  border-radius: 50%;
}

.pw-daily-hero::before {
  top: -155px;
  right: -75px;
  width: 330px;
  height: 330px;
}

.pw-daily-hero::after {
  right: 100px;
  bottom: -210px;
  width: 420px;
  height: 420px;
}

.pw-daily-copy {
  display: grid;
  gap: 11px;
  min-width: 0;
}

.pw-daily-hero .pw-kicker {
  color: #a9e4c6;
}

.pw-daily-copy h2 {
  max-width: 670px;
  color: var(--cn-on-brand);
  font-size: clamp(24px, 2.45vw, 36px);
  font-weight: 630;
  line-height: 1.12;
  letter-spacing: -.035em;
}

.pw-daily-copy > p {
  max-width: 650px;
  color: rgba(237, 249, 243, .78);
  font-size: 14px;
  line-height: 1.6;
}

.pw-daily-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 20px;
  margin-top: 3px;
  color: rgba(236, 248, 242, .68);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.pw-daily-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.pw-daily-meta span::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--cn-action);
  border-radius: 50%;
}

.pw-daily-progress {
  display: grid;
  gap: 10px;
  min-width: 170px;
  padding: 20px;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.pw-daily-progress > div {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.pw-daily-progress strong {
  color: var(--cn-on-brand);
  font-size: 39px;
  font-weight: 640;
  line-height: .95;
  letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
}

.pw-daily-progress span,
.pw-daily-progress small {
  color: rgba(239, 250, 244, .72);
  font-size: 12px;
}

.pw-daily-progress progress {
  width: 100%;
  height: 7px;
  overflow: hidden;
  appearance: none;
  background: rgba(255, 255, 255, .16);
  border: 0;
  border-radius: 999px;
}

.pw-daily-progress progress::-webkit-progress-bar {
  background: rgba(255, 255, 255, .16);
  border-radius: 999px;
}

.pw-daily-progress progress::-webkit-progress-value {
  background: var(--cn-action);
  border-radius: 999px;
}

.pw-daily-progress progress::-moz-progress-bar {
  background: var(--cn-action);
  border-radius: 999px;
}

.pw-daily-actions {
  display: grid;
  gap: 9px;
  min-width: 138px;
}

.pw-daily-actions .button {
  width: 100%;
  min-height: 44px;
  border-radius: 9px;
}

.pw-daily-actions .button-secondary {
  color: var(--cn-teal-800);
  background: var(--cn-surface);
  border-color: var(--cn-sage-0);
  box-shadow: 0 4px 15px rgba(4, 32, 23, .18);
}

.pw-daily-actions .button-secondary:hover {
  background: var(--cn-brand-soft);
  border-color: var(--cn-teal-50);
}

.pw-daily-actions .button-primary {
  color: var(--cn-surface-muted);
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .3);
}

.pw-daily-actions .button-primary:hover {
  background: rgba(255, 255, 255, .15);
  border-color: rgba(255, 255, 255, .44);
}

.pw-daily-actions .button:disabled {
  color: rgba(255, 255, 255, .5);
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .12);
}

.pw-hybrid-schedule {
  display: grid;
  gap: 16px;
  margin-top: 16px;
  padding: clamp(20px, 3vw, 30px);
  color: var(--pw-ink);
  background: var(--pw-surface);
  border: 1px solid var(--pw-line);
  border-radius: var(--pw-radius);
}

.pw-today-empty {
  display: grid;
  gap: 10px;
  justify-items: start;
  margin-top: 16px;
  padding: clamp(20px, 3vw, 30px);
  color: var(--pw-ink);
  background: var(--pw-surface);
  border: 1px solid var(--pw-line);
  border-radius: var(--pw-radius);
}

.pw-today-empty[hidden] {
  display: none;
}

.pw-today-empty h2 {
  margin: 0;
  font-size: 22px;
}

.pw-today-empty p {
  max-width: 68ch;
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

.pw-today-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.pw-today-empty-actions [hidden] {
  display: none;
}

.pw-hybrid-schedule[hidden] {
  display: none;
}

.pw-hybrid-schedule-head,
.pw-hybrid-schedule-actions,
.pw-hybrid-schedule-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.pw-hybrid-schedule-head {
  justify-content: space-between;
}

.pw-hybrid-schedule-head h2 {
  margin-top: 5px;
  font-size: 22px;
}

.pw-hybrid-schedule-state {
  padding: 7px 12px;
  color: var(--pw-accent);
  background: var(--pw-accent-pale);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
}

.pw-hybrid-schedule > p,
.pw-hybrid-schedule-readiness,
.pw-hybrid-schedule-notice {
  font-size: 13px;
  line-height: 1.6;
}

.pw-hybrid-schedule > p,
.pw-hybrid-schedule-readiness,
.pw-hybrid-schedule-meta {
  color: var(--pw-ink-soft);
}

.pw-hybrid-schedule-form,
.pw-hybrid-schedule-fields > label {
  display: grid;
  gap: 10px;
}

.pw-hybrid-schedule-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
}

.pw-hybrid-schedule-fields > label {
  align-content: start;
  font-size: 13px;
  font-weight: 600;
}

.pw-hybrid-schedule-actions [hidden] {
  display: none;
}

.pw-delivery-summary {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 14px 0;
  border-block: 1px solid var(--pw-line);
}

.pw-delivery-summary > span {
  color: var(--pw-ink-soft);
  font-size: 13px;
}

.pw-delivery-summary > strong {
  font-size: 20px;
  line-height: 1.25;
}

.pw-hybrid-schedule-fields select,
.pw-hybrid-schedule-fields input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--pw-ink);
  background: var(--pw-surface);
  border: 1px solid var(--pw-line);
  border-radius: 9px;
}

.pw-hybrid-schedule-fields small,
.pw-hybrid-schedule-meta {
  color: var(--pw-ink-soft);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

.pw-hybrid-schedule-fields :disabled {
  opacity: .7;
  cursor: not-allowed;
}

.pw-hybrid-schedule-fields [aria-invalid="true"] {
  border-color: var(--pw-danger);
}

.pw-hybrid-schedule-notice[data-kind="error"] {
  color: var(--pw-danger);
}

.pw-hybrid-schedule-notice[data-kind="success"] {
  color: var(--pw-accent);
}

.pw-hybrid-schedule-actions .button {
  min-height: 44px;
  white-space: normal;
}

.pw-profile-engine-notice {
  margin: 16px 0;
  padding: 12px 16px;
  color: var(--pw-ink-soft);
  background: var(--pw-surface-soft);
  border: 1px solid var(--pw-line);
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.6;
}

.pw-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.pw-kpis article {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 11px;
  align-items: center;
  min-width: 0;
  min-height: 92px;
  padding: 16px;
  background: var(--pw-surface);
  border: 1px solid var(--pw-line);
  border-radius: 14px;
  box-shadow: var(--pw-shadow-sm);
}

.pw-kpi-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--pw-accent-strong);
  background: var(--pw-accent-pale);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 750;
}

.pw-kpis article > div {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.pw-kpis article > div strong {
  color: var(--pw-ink);
  font-size: 22px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
}

.pw-kpis article > div span {
  overflow: hidden;
  color: var(--pw-ink-soft);
  font-size: 12px;
  font-weight: 580;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pw-kpis article > small {
  align-self: end;
  color: var(--pw-ink-muted);
  font-size: 12px;
  white-space: nowrap;
}

/* Leads */
.pw-lead-section {
  margin-top: 30px;
}

.pw-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 14px;
}

.pw-section-head > div {
  display: grid;
  gap: 4px;
}

.pw-section-head h2 {
  color: var(--pw-ink);
  font-size: clamp(20px, 1.7vw, 25px);
  font-weight: 640;
  letter-spacing: -.03em;
}

.pw-section-head p {
  max-width: 680px;
  color: var(--pw-ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

.pw-section-head > span {
  color: var(--pw-ink-muted);
  font-size: 12px;
  font-weight: 620;
  white-space: nowrap;
}

.pw-leads-heading {
  margin-top: 4px;
  margin-bottom: 17px;
}

.pw-filter-bar {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) minmax(160px, 210px) minmax(180px, 230px);
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
  background: var(--pw-surface);
  border: 1px solid var(--pw-line);
  border-radius: 14px;
  box-shadow: var(--pw-shadow-sm);
}

.pw-filter-bar label {
  min-width: 0;
}

.pw-filter-bar input,
.pw-filter-bar select {
  min-height: 44px;
  color: var(--pw-ink);
  background: var(--cn-surface);
  border: 1px solid var(--cn-border);
  border-radius: 9px;
  font-size: 13px;
}

.pw-filter-bar input:hover,
.pw-filter-bar select:hover {
  border-color: var(--cn-sage-300);
}

.pw-search {
  position: relative;
  display: flex;
  align-items: center;
}

.pw-search svg {
  position: absolute;
  left: 12px;
  width: 17px;
  height: 17px;
  color: var(--pw-ink-muted);
  stroke-width: 1.7;
  pointer-events: none;
}

.pw-search input {
  padding-left: 38px;
}

.pw-lead-table-wrap {
  min-width: 0;
  overflow-x: auto;
  background: var(--pw-surface);
  border: 1px solid var(--pw-line);
  border-radius: var(--pw-radius);
  box-shadow: var(--pw-shadow-sm);
}

.pw-lead-table {
  width: 100%;
  min-width: 870px;
  border-collapse: collapse;
  table-layout: fixed;
}

.pw-lead-table th,
.pw-lead-table td {
  min-width: 0;
  padding: 0 15px;
  text-align: left;
}

.pw-lead-table th {
  height: 43px;
  color: var(--pw-ink-muted);
  background: var(--cn-surface-muted);
  border-bottom: 1px solid var(--pw-line);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.pw-lead-table th:nth-child(1) { width: 23%; }
.pw-lead-table th:nth-child(2) { width: 8%; }
.pw-lead-table th:nth-child(3) { width: 17%; }
.pw-lead-table th:nth-child(4) { width: 22%; }
.pw-lead-table th:nth-child(5) { width: 11%; }
.pw-lead-table th:nth-child(6) { width: 11%; }

.pw-lead-table td {
  height: 76px;
  border-bottom: 1px solid var(--pw-line-soft);
  font-size: 12px;
  vertical-align: middle;
}

.pw-lead-table tbody tr:last-child td {
  border-bottom: 0;
}

.pw-lead-table tbody tr {
  transition: background-color .16s ease;
}

.pw-lead-table tbody tr:hover {
  background: var(--cn-surface);
}

.pw-company-cell,
.pw-lead-card-main {
  min-width: 0;
  padding: 0;
  text-align: left;
  background: transparent;
  border: 0;
}

.pw-lead-card-summary {
  display: -webkit-box;
  overflow: hidden;
  color: var(--pw-ink-soft);
  font-size: 12px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pw-company-cell {
  display: grid;
  gap: 3px;
  width: 100%;
}

.pw-company-cell strong {
  overflow: hidden;
  color: var(--pw-ink);
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pw-company-cell span {
  overflow: hidden;
  color: var(--pw-ink-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pw-score {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  padding: 5px 7px;
  color: var(--cn-teal-600);
  background: var(--cn-success-bg);
  border: 1px solid var(--cn-green-100);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.pw-score b {
  font-size: 13px;
  font-weight: 740;
}

.pw-score.is-high {
  color: #0d5d3e;
  background: #dff5e8;
  border-color: #aedcc2;
}

.pw-segment-copy {
  display: -webkit-box;
  overflow: hidden;
  color: var(--pw-ink-soft);
  font-size: 12px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pw-contact-inline {
  display: grid;
  gap: 1px;
  max-width: 100%;
  padding: 0;
  text-align: left;
  background: transparent;
  border: 0;
}

.pw-contact-inline span {
  color: var(--pw-accent);
  font-size: 12px;
  font-weight: 670;
}

.pw-contact-inline strong {
  max-width: 100%;
  overflow: hidden;
  color: var(--pw-ink);
  font-size: 12px;
  font-weight: 590;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pw-contact-inline:hover strong {
  color: var(--pw-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pw-no-contact {
  color: var(--pw-ink-muted);
  font-size: 12px;
}

.pw-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  color: #436057;
  background: var(--cn-brand-soft);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 670;
  white-space: nowrap;
}

.pw-status::before {
  content: "";
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
}

.pw-status.is-new {
  color: #22609c;
  background: var(--cn-info-bg);
}

.pw-status.is-reviewed {
  color: #496258;
  background: var(--cn-brand-soft);
}

.pw-status.is-contacted {
  color: #815d12;
  background: var(--cn-warning-bg);
}

.pw-status.is-converted {
  color: #126341;
  background: var(--cn-success-bg);
}

.pw-status.is-discarded {
  color: #8a514d;
  background: var(--cn-danger-bg);
}

.pw-row-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 4px;
  color: var(--pw-accent);
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 670;
  white-space: nowrap;
}

.pw-row-action span {
  transition: transform .16s ease;
}

.pw-row-action:hover span {
  transform: translateX(2px);
}

.pw-lead-cards {
  display: none;
}

.pw-empty-list {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 230px;
  padding: 30px;
  color: var(--pw-ink-soft);
  background: var(--pw-surface);
  border: 1px dashed var(--cn-border);
  border-radius: var(--pw-radius);
  text-align: center;
}

.pw-empty-list > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 3px;
  color: var(--pw-accent);
  background: var(--pw-accent-pale);
  border-radius: 12px;
  font-size: 18px;
}

.pw-empty-list strong {
  color: var(--pw-ink);
  font-size: 14px;
}

.pw-empty-list p {
  max-width: 430px;
  font-size: 12px;
  line-height: 1.5;
}

/* Profile overview */
.pw-profile-overview,
.pw-onboarding {
  min-width: 0;
}

.pw-profile-summary {
  display: grid;
  gap: 12px;
}

.pw-profile-warning {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
  padding: 14px 16px;
  color: #704b13;
  background: var(--cn-danger-bg);
  border: 1px solid #ead6a5;
  border-left: 4px solid #c28b22;
  border-radius: 12px;
}

.pw-profile-warning[hidden] {
  display: none;
}

.pw-profile-warning strong {
  font-size: 13px;
  font-weight: 690;
}

.pw-profile-warning p {
  color: #80652f;
  font-size: 12px;
  line-height: 1.5;
}

.pw-profile-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 150px;
  padding: clamp(24px, 3vw, 34px);
  color: var(--cn-on-brand);
  background:
    radial-gradient(circle at 90% 12%, rgba(145, 223, 183, .2), transparent 30%),
    linear-gradient(128deg, var(--cn-brand-hover), var(--cn-teal-700));
  border-radius: var(--pw-radius-lg);
}

.pw-profile-hero > div {
  display: grid;
  gap: 5px;
}

.pw-profile-hero > div > span {
  color: #aee1c7;
  font-size: 12px;
  font-weight: 720;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pw-profile-hero h3 {
  color: var(--cn-on-brand);
  font-size: clamp(23px, 2vw, 30px);
  font-weight: 630;
  letter-spacing: -.035em;
}

.pw-profile-hero p {
  color: rgba(239, 249, 244, .72);
  font-size: 14px;
}

.pw-profile-hero > div > small {
  margin-top: 4px;
  color: rgba(239, 249, 244, .62);
  font-size: 12px;
  line-height: 1.45;
}

.pw-profile-hero > strong {
  display: grid;
  justify-items: end;
  color: #aee7ca;
  font-size: 32px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}

.pw-profile-hero > strong small {
  margin-top: 5px;
  color: rgba(238, 249, 243, .64);
  font-size: 12px;
  font-weight: 560;
  letter-spacing: 0;
}

.pw-profile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.pw-profile-grid article {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 148px;
  padding: 19px;
  background: var(--pw-surface);
  border: 1px solid var(--pw-line);
  border-radius: 14px;
  box-shadow: var(--pw-shadow-sm);
}

.pw-profile-grid article > span {
  color: var(--pw-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .065em;
  text-transform: uppercase;
}

.pw-profile-grid article strong {
  color: var(--pw-ink);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
}

.pw-profile-grid article p {
  color: var(--pw-ink-soft);
  font-size: 12px;
  line-height: 1.5;
}

.pw-profile-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pw-profile-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.pw-profile-facts article {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 112px;
  padding: 18px;
  background: var(--pw-surface);
  border: 1px solid var(--pw-line);
  border-radius: 14px;
  box-shadow: var(--pw-shadow-sm);
}

.pw-profile-facts span {
  color: var(--pw-ink-muted);
  font-size: 12px;
  font-weight: 650;
}

.pw-profile-facts strong {
  color: var(--pw-ink);
  font-size: 14px;
  font-weight: 630;
  line-height: 1.45;
}

.pw-profile-all-details,
.pw-advanced-options {
  min-width: 0;
  overflow: hidden;
  background: var(--pw-surface);
  border: 1px solid var(--pw-line);
  border-radius: 14px;
}

.pw-profile-all-details > summary,
.pw-advanced-options > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 50px;
  padding: 14px 16px;
  color: var(--pw-accent);
  font-size: 13px;
  font-weight: 680;
  list-style: none;
  cursor: pointer;
}

.pw-profile-all-details > summary::-webkit-details-marker,
.pw-advanced-options > summary::-webkit-details-marker {
  display: none;
}

.pw-profile-all-details > summary span:last-child {
  font-size: 16px;
  transition: transform .16s ease;
}

.pw-profile-all-details[open] > summary span:last-child {
  transform: rotate(180deg);
}

.pw-profile-all-details > .pw-profile-sections,
.pw-advanced-options > .pw-question-stack {
  padding: 0 16px 16px;
}

.pw-profile-all-details > .pw-profile-sections {
  grid-template-columns: 1fr;
}

.pw-advanced-options > summary small {
  color: var(--pw-ink-muted);
  font-size: 12px;
  font-weight: 560;
}

.pw-profile-section {
  min-width: 0;
  overflow: hidden;
  background: var(--pw-surface);
  border: 1px solid var(--pw-line);
  border-radius: 14px;
  box-shadow: var(--pw-shadow-sm);
}

.pw-profile-section summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 13px 16px;
  color: var(--pw-ink);
  font-size: 13px;
  font-weight: 680;
  list-style: none;
  cursor: pointer;
}

.pw-profile-section summary::-webkit-details-marker {
  display: none;
}

.pw-profile-section summary span {
  color: var(--pw-accent);
  font-size: 16px;
  transition: transform .16s ease;
}

.pw-profile-section[open] summary span {
  transform: rotate(180deg);
}

.pw-profile-section dl {
  margin: 0;
  padding: 0 16px 14px;
}

.pw-profile-section dl > div {
  display: grid;
  grid-template-columns: minmax(120px, .75fr) minmax(0, 1.25fr);
  gap: 14px;
  padding: 9px 0;
  border-top: 1px solid var(--pw-line-soft);
}

.pw-profile-section dt,
.pw-profile-section dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.45;
}

.pw-profile-section dt {
  color: var(--pw-ink-muted);
}

.pw-profile-section dd {
  color: var(--pw-ink);
  font-weight: 580;
}

.pw-profile-empty {
  display: grid;
  place-items: center;
  min-height: 420px;
  padding: 50px 24px;
  background: linear-gradient(145deg, var(--cn-surface), var(--cn-surface-muted));
  border: 1px dashed #c8d8cf;
  border-radius: var(--pw-radius-lg);
  text-align: center;
}

.pw-profile-empty > span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 15px;
  color: var(--pw-accent);
  background: var(--pw-accent-pale);
  border-radius: 17px;
  font-size: 23px;
}

.pw-profile-empty h2 {
  color: var(--pw-ink);
  font-size: 24px;
  font-weight: 640;
  letter-spacing: -.03em;
  font-family: var(--font-display, inherit);
}

.pw-profile-empty p {
  max-width: 500px;
  margin: 7px 0 20px;
  color: var(--pw-ink-soft);
  font-size: 13px;
  line-height: 1.55;
}

/* Profile onboarding */
.pw-onboarding {
  overflow: hidden;
  background: var(--pw-surface);
  border: 1px solid var(--pw-line);
  border-radius: var(--pw-radius-lg);
  box-shadow: var(--pw-shadow-sm);
  scroll-margin-top: 72px;
}

.pw-onboarding-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 28px 21px;
  border-bottom: 1px solid var(--pw-line-soft);
}

.pw-onboarding-head > div {
  display: grid;
  gap: 4px;
}

.pw-onboarding-head h2 {
  color: var(--pw-ink);
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -.035em;
  font-family: var(--font-display, inherit);
}

.pw-onboarding-head p {
  color: var(--pw-ink-soft);
  font-size: 13px;
}

.pw-close-onboarding,
.pw-lead-drawer > header > button {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--pw-ink-soft);
  background: var(--pw-surface-soft);
  border: 1px solid var(--pw-line);
  border-radius: 10px;
  font-size: 23px;
  font-weight: 400;
  line-height: 1;
}

.pw-close-onboarding:hover,
.pw-lead-drawer > header > button:hover {
  color: var(--pw-ink);
  background: var(--cn-brand-soft);
}

.pw-stepper {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(18px, 82px) minmax(150px, 1fr) minmax(18px, 82px) minmax(150px, 1fr);
  align-items: center;
  width: min(820px, 100%);
  margin: 0 auto;
  gap: 8px;
  padding: 20px 28px 5px;
}

.pw-stepper button {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 0;
  color: var(--pw-ink-soft);
  background: transparent;
  border: 0;
  text-align: left;
  min-height: 44px;
}

.pw-stepper button strong {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--pw-ink-muted);
  background: var(--cn-bg);
  border: 1px solid var(--pw-line);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 720;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

.pw-stepper button span {
  font-size: 12px;
  font-weight: 620;
  line-height: 1.25;
}

.pw-stepper button:disabled {
  cursor: default;
  opacity: .62;
}

.pw-stepper i {
  height: 1px;
  background: var(--pw-line);
}

.pw-stepper button.is-current strong {
  color: var(--cn-on-brand);
  background: var(--pw-accent);
  border-color: var(--pw-accent);
  box-shadow: 0 0 0 5px rgba(8, 62, 52, .09);
}

.pw-stepper button.is-complete strong {
  color: var(--pw-accent-strong);
  background: var(--pw-accent-pale);
  border-color: #b7ddc8;
}

.pw-onboarding form {
  min-width: 0;
}

.pw-form-step {
  width: min(1020px, 100%);
  min-height: 390px;
  margin: 0 auto;
  padding: 28px clamp(24px, 4vw, 48px) 38px;
}

.pw-step-title {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 26px;
}

.pw-step-title > span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  color: var(--pw-accent);
  background: var(--pw-accent-pale);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 730;
  letter-spacing: .04em;
}

.pw-step-title > div {
  display: grid;
  gap: 3px;
}

.pw-step-title h3 {
  color: var(--pw-ink);
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -.025em;
}

.pw-step-title p {
  color: var(--pw-ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

.pw-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.pw-form-step .field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.pw-form-step .field > span:first-child,
.pw-check-group legend {
  color: var(--pw-ink);
  font-size: 12px;
  font-weight: 650;
}

.pw-form-step .field > span small {
  color: var(--pw-ink-muted);
  font-weight: 500;
}

.pw-form-step input,
.pw-form-step textarea,
.pw-form-step select {
  width: 100%;
  min-height: 43px;
  padding: 10px 12px;
  color: var(--pw-ink);
  background: var(--cn-surface);
  border: 1px solid var(--cn-border);
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.4;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.pw-form-step textarea {
  min-height: 78px;
  resize: vertical;
}

.pw-form-step input:hover,
.pw-form-step textarea:hover,
.pw-form-step select:hover {
  border-color: var(--cn-sage-300);
}

.pw-form-step input:focus,
.pw-form-step textarea:focus,
.pw-form-step select:focus {
  background: var(--cn-surface);
  border-color: var(--pw-accent);
  outline: 3px solid rgba(8, 62, 52, .11);
}

.pw-form-step input::placeholder,
.pw-form-step textarea::placeholder {
  color: #8b9992;
}

.pw-field-wide {
  grid-column: 1 / -1;
}

.pw-question-stack {
  display: grid;
  gap: 18px;
}

.pw-question-stack > .pw-check-group {
  margin: 0;
  padding: 17px;
  background: var(--cn-surface);
  border: 1px solid var(--pw-line-soft);
  border-radius: 12px;
}

.pw-question-stack > .field {
  margin-bottom: 2px;
}

.pw-check-group {
  min-width: 0;
  margin: 0 0 22px;
  padding: 0;
  border: 0;
}

.pw-check-group legend {
  margin-bottom: 9px;
}

.pw-check-group legend small {
  margin-left: 5px;
  color: var(--pw-ink-muted);
  font-size: 12px;
  font-weight: 540;
}

.pw-check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.pw-check-grid.is-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pw-option-scroll {
  max-height: 306px;
  padding: 2px 5px 2px 2px;
  overflow-y: auto;
  scrollbar-color: var(--cn-sage-300) transparent;
  scrollbar-width: thin;
}

.pw-check-grid label {
  position: relative;
  min-width: 0;
}

.pw-check-grid input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  opacity: 0;
  pointer-events: none;
}

.pw-check-grid label span {
  display: flex;
  align-items: center;
  min-height: 43px;
  padding: 9px 11px;
  color: var(--pw-ink-soft);
  background: var(--cn-surface);
  border: 1px solid var(--cn-border);
  border-radius: 9px;
  font-size: 12px;
  font-weight: 590;
  line-height: 1.25;
  transition: color .16s ease, background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.pw-state-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pw-state-grid label span {
  gap: 7px;
}

.pw-state-grid label span b {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  min-width: 25px;
  height: 21px;
  color: var(--pw-accent-strong);
  background: var(--cn-brand-soft);
  border-radius: 6px;
  font-size: 12px;
  letter-spacing: .035em;
}

.pw-check-grid input:disabled + span {
  color: #9da8a2;
  background: var(--cn-bg);
  border-color: var(--cn-border-subtle);
  box-shadow: none;
  cursor: not-allowed;
}

.pw-check-grid label:hover span {
  color: var(--pw-ink);
  border-color: var(--cn-sage-300);
}

.pw-check-grid input:checked + span {
  color: var(--pw-accent-strong);
  background: var(--pw-accent-pale);
  border-color: var(--cn-teal-200);
  box-shadow: inset 3px 0 0 var(--pw-accent);
}

.pw-check-grid input:focus-visible + span {
  outline: 3px solid rgba(29, 117, 218, .3);
  outline-offset: 2px;
}

.pw-helper,
.pw-field-help {
  color: var(--pw-ink-muted);
  font-size: 12px;
  line-height: 1.5;
}

.pw-helper {
  margin-top: 9px;
}

.pw-field-help {
  margin-top: -2px;
}

.pw-rank-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.pw-rank-grid-regions {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.pw-fixed-rule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.pw-fixed-rule-grid article {
  display: grid;
  gap: 3px;
  min-height: 100px;
  padding: 15px;
  background: var(--cn-surface-muted);
  border: 1px solid var(--cn-border);
  border-radius: 11px;
}

.pw-fixed-rule-grid span,
.pw-fixed-rule-grid small {
  color: var(--pw-ink-muted);
  font-size: 12px;
}

.pw-fixed-rule-grid strong {
  color: var(--pw-accent-strong);
  font-size: 21px;
  font-weight: 680;
  letter-spacing: -.035em;
}

.pw-toggle-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  padding: 14px 16px;
  background: var(--cn-surface-muted);
  border: 1px solid var(--cn-border);
  border-radius: 11px;
}

.pw-toggle-row input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  min-height: 0;
  margin-top: 2px;
  accent-color: var(--pw-accent);
}

.pw-toggle-row > span {
  display: grid;
  gap: 2px;
}

.pw-toggle-row strong {
  color: var(--pw-ink);
  font-size: 12px;
}

.pw-toggle-row small {
  color: var(--pw-ink-soft);
  font-size: 12px;
  line-height: 1.4;
}

.pw-territory-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: -5px 0 15px;
}

.pw-territory-summary span {
  padding: 6px 9px;
  color: var(--cn-teal-600);
  background: var(--cn-brand-soft);
  border: 1px solid var(--cn-border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 620;
  line-height: 1.25;
}

.pw-territory-disclosure {
  margin: 0 0 10px;
  overflow: hidden;
  background: var(--cn-surface);
  border: 1px solid var(--pw-line);
  border-radius: 11px;
}

.pw-territory-disclosure > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 11px 14px;
  color: var(--pw-ink);
  font-size: 12px;
  font-weight: 650;
  list-style: none;
  cursor: pointer;
}

.pw-territory-disclosure > summary::-webkit-details-marker {
  display: none;
}

.pw-territory-disclosure > summary::after {
  content: "⌄";
  grid-column: 2;
  grid-row: 1 / span 2;
  color: var(--pw-accent);
  font-size: 16px;
  transition: transform .16s ease;
}

.pw-territory-disclosure[open] > summary::after {
  transform: rotate(180deg);
}

.pw-territory-disclosure > summary > span {
  grid-column: 1;
  color: var(--pw-ink);
}

.pw-territory-disclosure > summary > small {
  grid-column: 1;
  color: var(--pw-ink-muted);
  font-size: 12px;
  font-weight: 520;
}

.pw-territory-disclosure > .pw-check-group {
  margin: 0;
  padding: 13px;
  border-top: 1px solid var(--pw-line-soft);
}

.pw-input-suffix {
  position: relative;
  display: flex;
  align-items: center;
}

.pw-input-suffix input {
  padding-right: 35px;
}

.pw-input-suffix b {
  position: absolute;
  right: 12px;
  color: var(--pw-ink-muted);
  font-size: 12px;
  pointer-events: none;
}

.pw-privacy-note {
  position: relative;
  display: grid;
  gap: 3px;
  margin-top: 20px;
  padding: 14px 16px 14px 44px;
  color: #285044;
  background: var(--pw-surface-tint);
  border: 1px solid var(--cn-border);
  border-radius: 11px;
}

.pw-privacy-note::before {
  content: "✓";
  position: absolute;
  transform: translate(-29px, 1px);
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: var(--cn-on-brand);
  background: var(--pw-accent);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 730;
}

.pw-privacy-note strong {
  font-size: 12px;
}

.pw-privacy-note p {
  color: var(--cn-text-subtle);
  font-size: 12px;
  line-height: 1.45;
}

.pw-profile-review {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 0;
}

.pw-profile-review-intro {
  display: grid;
  gap: 4px;
  padding: 16px;
  background: var(--cn-surface-muted);
  border: 1px solid var(--cn-border);
  border-radius: 11px;
}

.pw-profile-review-intro > span {
  color: var(--pw-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .065em;
  text-transform: uppercase;
}

.pw-profile-review-intro strong {
  color: var(--pw-ink);
  font-size: 13px;
}

.pw-profile-review-intro p {
  color: var(--pw-ink-soft);
  font-size: 12px;
  line-height: 1.5;
}

.pw-profile-review .pw-profile-section {
  box-shadow: none;
}

.pw-form-error {
  width: min(804px, calc(100% - 48px));
  margin: 0 auto 14px;
  padding: 11px 13px;
  color: #8a352f;
  background: var(--cn-danger-bg);
  border: 1px solid var(--cn-danger-border);
  border-radius: 9px;
  font-size: 12px;
  font-weight: 570;
}

.pw-form-actions {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 9px;
  align-items: center;
  min-height: 72px;
  padding: 14px 28px;
  background: var(--cn-surface);
  border-top: 1px solid var(--pw-line-soft);
}

.pw-form-actions .button {
  min-width: 108px;
  min-height: 44px;
  border-radius: 9px;
}

/* Lead drawer */
.pw-lead-dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
}

.pw-lead-dialog::backdrop {
  background: rgba(8, 24, 19, .48);
  backdrop-filter: blur(2px);
  animation: pw-backdrop-in .2s ease-out;
}

.pw-lead-dialog[open] {
  display: block;
}

.pw-lead-drawer {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(560px, 94vw);
  height: 100dvh;
  margin-left: auto;
  overflow: hidden;
  color: var(--pw-ink);
  background: var(--cn-surface-muted);
  box-shadow: var(--pw-shadow-lg);
  animation: pw-drawer-in .28s cubic-bezier(.2, .75, .25, 1);
}

.pw-lead-drawer > header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 23px 18px;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--pw-line);
  backdrop-filter: blur(12px);
}

.pw-lead-drawer > header > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.pw-lead-drawer > header h2 {
  overflow: hidden;
  color: var(--pw-ink);
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -.035em;
  text-overflow: ellipsis;
}

.pw-lead-detail {
  min-width: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.pw-detail-loading,
.pw-detail-error {
  margin: 12px 12px 0;
  padding: 11px 13px;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.45;
}

.pw-detail-loading {
  color: var(--pw-accent-strong);
  background: var(--pw-accent-pale);
  border: 1px solid var(--cn-lime-200);
}

.pw-detail-error {
  color: var(--pw-danger);
  background: var(--cn-danger-bg);
  border: 1px solid var(--cn-danger-border);
}

.pw-detail-score {
  display: grid;
  gap: 11px;
  padding: 24px;
  background: var(--cn-surface);
  border-bottom: 1px solid var(--pw-line);
}

.pw-detail-score > div {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pw-detail-score p {
  color: var(--pw-ink);
  font-size: 14px;
  font-weight: 540;
  line-height: 1.55;
}

.pw-detail-score > small {
  color: var(--pw-ink-muted);
  font-size: 12px;
}

.pw-detail-section {
  display: grid;
  gap: 12px;
  margin: 12px;
  padding: 18px;
  background: var(--cn-surface);
  border: 1px solid var(--pw-line);
  border-radius: 14px;
  box-shadow: var(--pw-shadow-sm);
}

.pw-detail-section > header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.pw-detail-section > header span {
  color: var(--pw-ink);
  font-size: 13px;
  font-weight: 680;
}

.pw-detail-section > header small {
  color: var(--pw-ink-muted);
  font-size: 12px;
  text-align: right;
}

.pw-contact-list {
  display: grid;
  gap: 8px;
}

.pw-contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  padding: 13px;
  background: var(--cn-surface-muted);
  border: 1px solid var(--pw-line-soft);
  border-radius: 10px;
}

.pw-contact-card > div:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.pw-contact-card > div:first-child > span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--pw-accent);
  font-size: 12px;
  font-weight: 690;
}

.pw-contact-card strong {
  overflow-wrap: anywhere;
  color: var(--pw-ink);
  font-size: 12px;
  font-weight: 630;
}

.pw-contact-card small {
  color: var(--pw-ink-muted);
  font-size: 12px;
}

.pw-contact-card > div:last-child {
  display: flex;
  flex: 0 0 auto;
  gap: 5px;
}

.pw-contact-card .button {
  min-height: 32px;
  padding: 6px 9px;
  border-radius: 7px;
  font-size: 12px;
}

.pw-verified {
  display: inline-flex;
  align-items: center;
  min-height: 17px;
  padding: 2px 6px;
  color: #185b3f;
  background: var(--cn-success-bg);
  border-radius: 999px;
  font-size: 8px;
  font-weight: 700;
}

.pw-detail-empty {
  padding: 16px;
  color: var(--pw-ink-soft);
  background: var(--pw-surface-soft);
  border-radius: 9px;
  font-size: 12px;
  text-align: center;
}

.pw-evidence-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pw-evidence-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.pw-evidence-list li > i {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-top: 5px;
  background: var(--pw-accent-bright);
  border: 2px solid #dff4e8;
  border-radius: 50%;
  box-sizing: content-box;
}

.pw-evidence-list li > span {
  display: grid;
  gap: 1px;
}

.pw-evidence-list strong {
  color: var(--pw-ink);
  font-size: 12px;
  font-weight: 570;
  line-height: 1.45;
}

.pw-evidence-list small {
  color: var(--pw-ink-muted);
  font-size: 12px;
}

.pw-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pw-tags span {
  padding: 6px 8px;
  color: var(--cn-teal-600);
  background: var(--cn-brand-soft);
  border: 1px solid var(--cn-teal-100);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 590;
}

.pw-detail-actions {
  position: sticky;
  z-index: 2;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96);
  border-top: 1px solid var(--pw-line);
  backdrop-filter: blur(12px);
}

.pw-detail-actions .button {
  min-height: 40px;
  border-radius: 9px;
}

@keyframes pw-spin {
  to { transform: rotate(360deg); }
}

@keyframes pw-panel-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pw-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pw-drawer-in {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@media (max-width: 1100px) {
  .pw-daily-hero {
    grid-template-columns: minmax(0, 1fr) minmax(170px, 230px);
  }

  .pw-daily-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(140px, 190px));
  }

  .pw-kpis,
  .pw-profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pw-profile-grid article {
    min-height: 126px;
  }

  .pw-kpis article {
    min-height: 82px;
  }
}

@media (max-width: 820px) {
  .pw-form-step {
    scroll-margin-top: calc(124px + env(safe-area-inset-top));
  }

  .pw-page-header {
    align-items: flex-start;
  }

  .pw-page-header .view-heading h1 {
    font-size: clamp(27px, 7vw, 36px);
  }

  .pw-agent-pill {
    margin-top: 3px;
  }

  .pw-tabs {
    width: 100%;
  }

  .pw-tabs button {
    flex: 1 0 auto;
  }

  .pw-daily-hero {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 26px;
  }

  .pw-daily-progress {
    grid-template-columns: auto minmax(100px, 1fr);
    align-items: center;
  }

  .pw-daily-progress > div {
    grid-row: 1 / 3;
  }

  .pw-daily-progress small {
    grid-column: 2;
  }

  .pw-daily-actions {
    grid-column: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pw-section-head {
    align-items: flex-start;
  }

  .pw-filter-bar {
    grid-template-columns: 1fr 1fr;
  }

  .pw-search {
    grid-column: 1 / -1;
  }

  .pw-lead-table-wrap {
    display: none;
  }

  .pw-lead-cards {
    display: grid;
    gap: 9px;
  }

  .pw-lead-card {
    min-width: 0;
    overflow: hidden;
    background: var(--pw-surface);
    border: 1px solid var(--pw-line);
    border-radius: 14px;
    box-shadow: var(--pw-shadow-sm);
  }

  .pw-lead-card-main {
    display: grid;
    gap: 4px;
    width: 100%;
    padding: 16px;
  }

  .pw-lead-card-main .pw-score {
    justify-self: start;
    margin-bottom: 4px;
  }

  .pw-lead-card-main > strong {
    color: var(--pw-ink);
    font-size: 15px;
    font-weight: 650;
  }

  .pw-lead-card-main > small {
    color: var(--pw-ink-muted);
    font-size: 12px;
  }

  .pw-lead-card-main > p {
    display: -webkit-box;
    margin-top: 6px;
    overflow: hidden;
    color: var(--pw-ink-soft);
    font-size: 12px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .pw-lead-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    padding: 11px 16px;
    background: var(--cn-surface-muted);
    border-top: 1px solid var(--pw-line-soft);
  }

  .pw-lead-card-foot .pw-contact-inline {
    max-width: 66%;
  }

  .pw-profile-hero {
    min-height: 135px;
  }

  .pw-profile-sections {
    grid-template-columns: 1fr;
  }

  .pw-profile-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pw-onboarding-head {
    padding: 21px;
  }

  .pw-form-step {
    padding: 26px 22px 32px;
  }

  .pw-check-grid,
  .pw-check-grid.is-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pw-rank-grid,
  .pw-rank-grid-regions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pw-form-actions {
    padding: 13px 20px;
  }

  .pw-lead-drawer {
    width: min(520px, 100vw);
  }
}

@media (max-width: 560px) {
  .pw-page-header {
    display: grid;
    gap: 15px;
    margin-bottom: 18px;
  }

  .pw-page-header .view-heading p {
    font-size: 13px;
  }

  .pw-agent-pill {
    justify-self: start;
  }

  .pw-provider-notice {
    padding: 13px;
  }

  .pw-tabs {
    gap: 2px;
    margin-bottom: 14px;
  }

  .pw-tabs button {
    min-height: 44px;
    padding: 7px 10px;
    font-size: 12px;
  }

  .pw-daily-hero {
    min-height: 0;
    padding: 22px 19px;
    border-radius: 18px;
  }

  .pw-daily-copy h2 {
    font-size: 24px;
  }

  .pw-daily-progress {
    min-width: 0;
    padding: 15px;
  }

  .pw-daily-progress strong {
    font-size: 32px;
  }

  .pw-daily-actions {
    grid-template-columns: 1fr;
  }

  .pw-kpis,
  .pw-profile-grid {
    grid-template-columns: 1fr;
  }

  .pw-kpis article {
    min-height: 76px;
  }

  .pw-section-head {
    display: grid;
    gap: 12px;
  }

  .pw-section-head .button,
  .pw-section-head > span {
    justify-self: start;
  }

  .pw-lead-section {
    margin-top: 24px;
  }

  .pw-filter-bar {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .pw-search {
    grid-column: auto;
  }

  .pw-lead-card-foot {
    align-items: flex-end;
  }

  .pw-lead-card-foot .pw-contact-inline {
    max-width: 62%;
  }

  .pw-profile-hero {
    display: grid;
    align-items: flex-start;
    padding: 22px;
  }

  .pw-profile-facts {
    grid-template-columns: 1fr;
  }

  .pw-profile-hero > strong {
    justify-items: start;
    font-size: 26px;
  }

  .pw-profile-warning {
    padding: 13px;
  }

  .pw-profile-section dl > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .pw-territory-disclosure > summary,
  .pw-profile-section summary {
    min-height: 48px;
  }

  .pw-territory-disclosure > .pw-check-group {
    padding: 11px;
  }

  .pw-profile-grid article {
    min-height: 0;
  }

  .pw-profile-empty {
    min-height: 350px;
  }

  .pw-onboarding {
    border-radius: 16px;
  }

  .pw-onboarding-head h2 {
    font-size: 20px;
  }

  .pw-stepper {
    grid-template-columns: minmax(0, 1fr) 8px minmax(0, 1fr) 8px minmax(0, 1fr);
    gap: 5px;
    padding: 17px 20px 3px;
  }

  .pw-stepper button {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .pw-stepper button strong {
    width: 28px;
    height: 28px;
  }

  .pw-stepper button span {
    font-size: 12px;
    line-height: 1.4;
    text-align: left;
  }

  .pw-form-step {
    min-height: 0;
    padding: 24px 17px 30px;
  }

  .pw-step-title {
    gap: 10px;
    margin-bottom: 22px;
  }

  .pw-form-grid,
  .pw-check-grid,
  .pw-check-grid.is-four,
  .pw-rank-grid,
  .pw-rank-grid-regions,
  .pw-fixed-rule-grid {
    grid-template-columns: 1fr;
  }

  .pw-question-stack > .pw-check-group {
    padding: 14px;
  }

  .pw-field-wide {
    grid-column: auto;
  }

  .pw-form-error {
    width: calc(100% - 34px);
  }

  .pw-form-actions {
    grid-template-columns: auto 1fr auto;
    padding: 12px 17px calc(12px + env(safe-area-inset-bottom));
  }

  .pw-form-actions .button {
    min-width: 0;
    min-height: 44px;
  }

  .pw-check-grid label span {
    min-height: 44px;
  }

  .pw-form-actions > span {
    display: none;
  }

  .pw-form-actions [data-pw-next-step],
  .pw-form-actions [data-pw-save-profile] {
    grid-column: 3;
  }

  .pw-lead-dialog {
    padding-top: max(28px, env(safe-area-inset-top));
  }

  .pw-lead-drawer {
    width: 100%;
    height: calc(100dvh - max(28px, env(safe-area-inset-top)));
    border-radius: 18px 18px 0 0;
    animation-name: pw-drawer-up;
  }

  .pw-lead-drawer > header {
    padding: 18px;
  }

  .pw-lead-drawer > header h2 {
    font-size: 20px;
  }

  .pw-detail-score {
    padding: 19px;
  }

  .pw-detail-section {
    margin: 9px;
    padding: 15px;
  }

  .pw-detail-section > header {
    display: grid;
    gap: 2px;
  }

  .pw-detail-section > header small {
    text-align: left;
  }

  .pw-contact-card {
    align-items: flex-start;
  }

  .pw-contact-card > div:last-child {
    flex-direction: column;
  }

  .pw-detail-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 380px) {
  .pw-form-actions {
    grid-template-columns: 1fr 1fr;
  }

  .pw-form-actions [data-pw-next-step],
  .pw-form-actions [data-pw-save-profile] {
    grid-column: 2;
  }

  .pw-detail-actions {
    grid-template-columns: 1fr;
  }
}

@keyframes pw-drawer-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .prospecting-workspace *,
  .prospecting-workspace *::before,
  .prospecting-workspace *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media (forced-colors: active) {
  .pw-score,
  .pw-status,
  .pw-agent-pill,
  .pw-tags span,
  .pw-check-grid label span {
    border: 1px solid CanvasText;
  }

  .pw-daily-hero,
  .pw-profile-hero {
    border: 2px solid CanvasText;
  }
}

/* Hybrid finalist review ------------------------------------------------- */
.pw-hybrid-review-panel {
  min-height: 420px;
}

.phr-review {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.phr-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  background: linear-gradient(135deg, var(--cn-surface), var(--pw-surface-soft));
  border: 1px solid var(--pw-line);
  border-radius: var(--pw-radius);
  box-shadow: var(--pw-shadow-sm);
}

.phr-header > div {
  display: grid;
  gap: 4px;
}

.phr-header h3 {
  color: var(--pw-ink);
  font-size: clamp(21px, 2vw, 28px);
  font-weight: 660;
  letter-spacing: -.03em;
  font-family: var(--font-display, inherit);
}

.phr-card__eyebrow {
  color: var(--pw-accent);
  font-size: 12px;
  font-weight: 730;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.phr-quota {
  flex: 0 0 auto;
  padding: 8px 11px;
  color: var(--pw-accent-strong);
  background: var(--pw-accent-pale);
  border: 1px solid var(--cn-lime-200);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 680;
}

.phr-filters {
  display: flex;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  padding: 4px;
  overflow-x: auto;
  background: var(--cn-brand-soft);
  border-radius: 11px;
}

.phr-filters button {
  min-height: 44px;
  padding: 7px 12px;
  color: var(--pw-ink-soft);
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
}

.phr-filters button[aria-selected="true"] {
  color: var(--pw-ink);
  background: var(--cn-surface);
  box-shadow: var(--pw-shadow-sm);
}

.phr-filters button span,
[data-pw-review-count] {
  display: inline-grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  margin-left: 4px;
  padding: 0 5px;
  color: var(--pw-accent-strong);
  background: var(--pw-accent-pale);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
}

.phr-list {
  display: grid;
  gap: 10px;
}

.phr-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  background: var(--pw-surface);
  border: 1px solid var(--pw-line);
  border-radius: 14px;
  box-shadow: var(--pw-shadow-sm);
}

.phr-card__main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.phr-card__main h4 {
  overflow: hidden;
  color: var(--pw-ink);
  font-size: 15px;
  font-weight: 660;
  text-overflow: ellipsis;
}

.phr-card__main p {
  overflow: hidden;
  color: var(--pw-ink-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phr-card__metrics {
  display: flex;
  gap: 18px;
  margin: 0;
}

.phr-card__metrics div {
  display: grid;
  gap: 2px;
  min-width: 54px;
}

.phr-card__metrics dt {
  color: var(--pw-ink-muted);
  font-size: 12px;
  text-transform: uppercase;
}

.phr-card__metrics dd {
  margin: 0;
  color: var(--pw-ink);
  font-size: 17px;
  font-weight: 700;
}

.phr-button,
.phr-icon-button {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 660;
  cursor: pointer;
}

.phr-button:disabled {
  cursor: not-allowed;
  opacity: .48;
}

.phr-button--primary {
  color: var(--cn-on-brand);
  background: var(--pw-accent);
}

.phr-button--secondary,
.phr-icon-button {
  color: var(--pw-accent-strong);
  background: var(--cn-surface);
  border-color: var(--pw-line);
}

.phr-button--danger {
  color: #8b302a;
  background: var(--cn-danger-bg);
  border-color: var(--cn-danger-border);
}

.phr-notice,
.phr-warning,
.phr-empty {
  padding: 12px 14px;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.5;
}

.phr-notice {
  color: #244239;
  background: var(--cn-brand-soft);
  border: 1px solid var(--cn-border);
}

.phr-warning {
  color: #76500e;
  background: var(--cn-danger-bg);
  border: 1px solid #ecd8a7;
}

.phr-empty {
  color: var(--pw-ink-muted);
  background: var(--pw-surface-soft);
  text-align: center;
}

.phr-load-more {
  justify-self: center;
}

.phr-dialog-backdrop {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  place-items: center;
  padding: 24px;
}

.phr-dialog-backdrop[open] {
  display: grid;
}

.phr-dialog-backdrop::backdrop {
  background: rgba(8, 24, 19, .5);
  backdrop-filter: blur(2px);
}

.phr-dialog {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(760px, 100%);
  max-height: min(820px, calc(100dvh - 48px));
  overflow: hidden;
  background: var(--cn-surface-muted);
  border: 1px solid var(--pw-line);
  border-radius: 18px;
  box-shadow: var(--pw-shadow-lg);
}

.phr-dialog > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  background: var(--cn-surface);
  border-bottom: 1px solid var(--pw-line);
}

.phr-dialog > header > div {
  display: grid;
  gap: 4px;
}

.phr-dialog > header h3 {
  color: var(--pw-ink);
  font-family: var(--font-display, inherit);
  font-size: 21px;
  font-weight: 660;
}

.phr-dialog > header p {
  color: var(--pw-ink-muted);
  font-size: 12px;
}

.phr-icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  flex: 0 0 44px;
  padding: 0;
  font-size: 20px;
}

.phr-dialog__body {
  display: grid;
  gap: 14px;
  padding: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.phr-dialog__body > section {
  display: grid;
  gap: 10px;
  padding: 16px;
  background: var(--cn-surface);
  border: 1px solid var(--pw-line);
  border-radius: 12px;
}

.phr-dialog__body h4,
.phr-dialog__body h5 {
  color: var(--pw-ink);
  font-weight: 660;
}

.phr-evidence,
.phr-contact {
  display: grid;
  gap: 7px;
  padding: 12px;
  background: var(--pw-surface-soft);
  border-radius: 9px;
}

.phr-evidence ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
  color: var(--pw-ink-soft);
  font-size: 12px;
  line-height: 1.5;
}

.phr-evidence__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--pw-ink-muted);
  font-size: 12px;
}

.phr-evidence__meta a {
  color: var(--pw-accent);
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.phr-contact {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.phr-contact > div:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.phr-contact strong,
.phr-contact span,
.phr-contact small,
.phr-contact code {
  overflow-wrap: anywhere;
}

.phr-contact span,
.phr-contact small {
  color: var(--pw-ink-muted);
  font-size: 12px;
}

.phr-contact__revealed {
  display: flex;
  align-items: center;
  gap: 8px;
}

.phr-contact__revealed code {
  color: var(--pw-ink);
  font-size: 12px;
}

.phr-decision,
.phr-confirm {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  align-items: end;
  gap: 10px;
  padding: 14px;
  background: var(--cn-surface);
  border: 1px solid var(--pw-line);
  border-radius: 11px;
}

.phr-decision label {
  display: grid;
  gap: 4px;
  color: var(--pw-ink-soft);
  font-size: 12px;
}

.phr-decision select {
  min-height: 44px;
  padding: 7px 9px;
  color: var(--pw-ink);
  background: var(--cn-surface);
  border: 1px solid var(--pw-line);
  border-radius: 8px;
}

.phr-confirm {
  grid-template-columns: 1fr;
  color: var(--pw-ink-soft);
  font-size: 12px;
}

.phr-confirm > div {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

@media (max-width: 720px) {
  .phr-header,
  .phr-card,
  .phr-decision {
    grid-template-columns: 1fr;
  }

  .phr-header {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .phr-quota {
    justify-self: start;
  }

  .phr-card__metrics {
    justify-content: flex-start;
  }

  .phr-card .phr-button,
  .phr-decision .phr-button {
    width: 100%;
  }

  .phr-dialog-backdrop {
    align-items: end;
    padding: max(24px, env(safe-area-inset-top)) 0 0;
  }

  .phr-dialog {
    width: 100%;
    max-height: calc(100dvh - max(24px, env(safe-area-inset-top)));
    border-radius: 18px 18px 0 0;
  }

  .phr-contact {
    grid-template-columns: 1fr;
  }

  .phr-contact__revealed {
    align-items: stretch;
    flex-direction: column;
  }

  .phr-dialog__body,
  .phr-dialog__body > section {
    padding: 12px;
  }

  .phr-dialog__body,
  .phr-dialog > header > div,
  .phr-evidence {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .phr-button,
  .phr-notice,
  .phr-warning,
  .phr-empty,
  .phr-contact__revealed code,
  .phr-evidence ul,
  .phr-decision label,
  .phr-confirm {
    font-size: 14px;
  }

  .phr-confirm > div {
    flex-wrap: wrap;
  }
}
