/*
 * AfterLeads final visual refinement
 * Presentation-only layer. It does not alter product authority, mutations,
 * network behaviour, Gmail/OAuth flows, or lifecycle semantics.
 */

/* Follow-up cohesion: non-destructive position context and inline full-detail drawer. */
.follow-up-detail-scrim {
  position: fixed;
  z-index: 110;
  inset: 0;
  background: rgb(13 24 48 / 34%);
}
.follow-up-detail-scrim[hidden],.follow-up-detail-drawer[hidden] { display: none; }
.follow-up-detail-drawer {
  position: fixed;
  z-index: 111;
  inset: 0 0 0 auto;
  box-sizing: border-box;
  width: min(560px,calc(100vw - 48px));
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: 28px;
  border-left: 1px solid var(--vr-border);
  background: var(--vr-surface);
  color: var(--vr-ink);
  box-shadow: -20px 0 60px rgb(18 34 66 / 20%);
}
.follow-up-detail-header,.follow-up-detail-section > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.follow-up-detail-header {
  position: sticky;
  z-index: 2;
  top: -28px;
  margin: -28px -28px 0;
  padding: 28px 28px 20px;
  border-bottom: 1px solid var(--vr-border);
  background: var(--vr-surface);
}
.follow-up-detail-header h2 { margin: 0; font-size: 26px; color: var(--vr-ink); }
.follow-up-detail-header p:last-child { margin: 5px 0 0; color: var(--vr-muted); }
.follow-up-detail-header .icon-button { min-width: 44px; min-height: 44px; }
.follow-up-detail-section { padding: 22px 0; border-bottom: 1px solid var(--vr-border); }
.follow-up-detail-section > header { margin-bottom: 14px; }
.follow-up-detail-section > header > div { display: flex; gap: 12px; flex-wrap: wrap; }
.follow-up-detail-drawer .opportunity-detail-summary { margin: 20px 0 0; }
.workspace-priority-review select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--vr-border);
  border-radius: 10px;
  background: var(--vr-surface-soft);
  color: var(--vr-ink);
  font: inherit;
  letter-spacing: normal;
  text-transform: none;
}
.workspace-priority-next button,.workspace-priority-more-group button,.workspace-priority-other-channels > summary {
  min-height: 44px;
}
body.follow-up-detail-open { overflow: hidden; }
body.dark-mode .follow-up-detail-drawer,body.dark-mode .follow-up-detail-header { background: #171f35; }
body.dark-mode .workspace-priority-review select { background: #1e2842; }
@media (max-width: 560px) {
  .follow-up-detail-drawer { width: 100vw; padding: 20px 16px; }
  .follow-up-detail-header { top: -20px; margin: -20px -16px 0; padding: 20px 16px 16px; }
  .follow-up-detail-drawer .opportunity-detail-summary { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .follow-up-detail-drawer,.follow-up-detail-scrim { scroll-behavior: auto; }
}

/* PASS 1 + 2 — bounded spatial and type systems */
:root {
  --vr-space-1: 4px;
  --vr-space-2: 8px;
  --vr-space-3: 12px;
  --vr-space-4: 16px;
  --vr-space-5: 20px;
  --vr-space-6: 24px;
  --vr-space-7: 32px;
  --vr-space-8: 40px;
  --vr-space-9: 48px;
  --vr-text-xs: .75rem;
  --vr-text-sm: .8125rem;
  --vr-text-md: .9375rem;
  --vr-text-lg: 1.125rem;
  --vr-text-xl: 1.375rem;
  --vr-text-2xl: clamp(2rem, 4vw, 2.875rem);
  --vr-leading-tight: 1.2;
  --vr-leading-copy: 1.55;
  --vr-control: 40px;
  --vr-tap: 44px;
  --vr-radius-sm: 8px;
  --vr-radius-md: 12px;
  --vr-radius-lg: 16px;
  --vr-page: 1180px;
  --vr-ink: #17213a;
  --vr-muted: #536079;
  --vr-subtle: #667085;
  --vr-line: #dfe4ed;
  --vr-surface: #ffffff;
  --vr-surface-soft: #f7f8fb;
  --vr-blue: #3047c9;
  --vr-blue-hover: #2437a6;
  --vr-amber: #8a4b08;
  --vr-amber-soft: #fff7e8;
  --vr-green: #17603a;
  --vr-green-soft: #edf8f1;
  --vr-danger: #a61b1b;
  --vr-recovery: #1f5d50;
  --vr-shadow-popover: 0 16px 38px rgba(23,33,58,.14);
}

/* Bounded follow-up timing controls. */
.playbook-v2-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--vr-space-3); }
.playbook-status { flex: 0 0 auto; padding: 4px 8px; border: 1px solid #a9c8b5; border-radius: 999px; color: #255b3b; background: #f2faf5; font-size: var(--vr-text-xs); font-weight: 600; }
.playbook-status.customized { border-color: #b7c0d1; color: var(--vr-muted); background: var(--vr-surface-soft); }
.playbook-v2-runtime { display: grid; gap: var(--vr-space-3); }
.playbook-v2-step { display: grid; grid-template-columns: 74px minmax(180px, .8fr) minmax(220px, 1.2fr) auto; align-items: center; gap: var(--vr-space-3); padding: var(--vr-space-3) 0; border-top: 1px solid var(--vr-line); }
.playbook-v2-step-number { color: var(--vr-muted); font-size: var(--vr-text-xs); font-weight: 650; }
.playbook-v2-day { display: grid; gap: 4px; margin: 0; font-size: var(--vr-text-xs); }
.business-day-input { display: flex; align-items: center; gap: 8px; color: var(--vr-ink); font-size: var(--vr-text-md); }
.business-day-input input { width: 64px; min-height: 40px; text-align: center; }
.playbook-v2-day small,.playbook-v2-step-copy small,.recommended-calls small { color: var(--vr-muted); font-weight: 450; line-height: 1.4; }
.playbook-v2-step-copy { display: grid; gap: 3px; }
.playbook-v2-step-copy strong { font-weight: 650; }
.playbook-v2-step-copy span { color: var(--vr-muted); font-size: var(--vr-text-xs); }
.playbook-v2-end { display: flex; align-items: baseline; gap: 8px; padding: var(--vr-space-3); border-radius: var(--vr-radius-md); background: var(--vr-surface-soft); }
.playbook-v2-end span { color: var(--vr-muted); font-size: var(--vr-text-xs); }
.playbook-v2-controls { display: grid; grid-template-columns: minmax(200px, .7fr) minmax(260px, 1.3fr); gap: var(--vr-space-3); align-items: end; }
.playbook-v2-controls > label:first-child { display: grid; gap: 6px; font-weight: 650; }
.recommended-calls { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 10px 12px; border: 1px solid var(--vr-line); border-radius: var(--vr-radius-md); }
.recommended-calls input { width: auto; margin-top: 3px; }
.recommended-calls span { display: grid; gap: 2px; }
.playbook-v2-control { display: flex; align-items: center; justify-content: space-between; gap: var(--vr-space-3); padding: 10px 12px; border: 1px solid var(--vr-line); border-radius: var(--vr-radius-md); }
.playbook-v2-reset { min-height: 40px; }
.call-outcome-actions { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--vr-space-2); }

body.dark-mode .playbook-status { border-color: #4f7e60; color: #c7ead3; background: #193225; }
body.dark-mode .playbook-status.customized { border-color: var(--vr-line); color: var(--vr-muted); background: var(--vr-surface-soft); }

@media (max-width: 720px) {
  .playbook-v2-heading { display: grid; }
  .playbook-status { justify-self: start; }
  .playbook-v2-step { grid-template-columns: 1fr; gap: 8px; }
  .playbook-v2-step .preview-step-message { justify-self: start; min-height: 44px; }
  .playbook-v2-controls { grid-template-columns: 1fr; }
  .playbook-v2-end { display: grid; }
  .call-outcome-actions { grid-template-columns: 1fr; }
}
body {
  color: var(--vr-ink);
  font-size: var(--vr-text-md);
  line-height: var(--vr-leading-copy);
  text-rendering: optimizeLegibility;
}
.shell {
  width: min(100%, calc(var(--vr-page) + 48px));
  max-width: none;
  padding-inline: var(--vr-space-6);
}
h1,h2,h3,p { text-wrap: pretty; }
h1 {
  font-size: var(--vr-text-2xl);
  line-height: 1.08;
  letter-spacing: -.04em;
}
h2 {
  font-size: var(--vr-text-xl);
  line-height: var(--vr-leading-tight);
  letter-spacing: -.025em;
}
h3 {
  font-size: var(--vr-text-lg);
  line-height: 1.3;
  letter-spacing: -.018em;
}
.signed-out-positioning strong,
.signed-out-positioning span { display: block; }
.signed-out-positioning strong {
  color: var(--vr-ink);
  font-size: 1.05em;
  font-weight: 600;
}
.signed-out-positioning span { margin-top: var(--vr-space-1); }
.eyebrow,
.form-section-label span,
.message-preview-meta dt {
  color: var(--vr-subtle);
  font-size: var(--vr-text-xs);
  font-weight: 750;
  letter-spacing: .055em;
}
.lede,.dialog-copy { color: var(--vr-muted); line-height: var(--vr-leading-copy); }
small,.customer-email{
  color: var(--vr-muted);
  font-size: var(--vr-text-xs);
  line-height: 1.45;
}

/* Application frame and navigation */
.modern-topbar {
  min-height: 72px;
  height: auto;
  gap: var(--vr-space-5);
  padding-block: var(--vr-space-3);
  border-color: var(--vr-line);
}
.primary-nav,.user-controls { gap: var(--vr-space-1); }
.nav-item,.account-chip,.theme-toggle,.plan-status {
  min-height: var(--vr-control);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.intro.workspace-intro {
  align-items: flex-end;
  gap: var(--vr-space-6);
  margin: 0;
  padding: var(--vr-space-8) 0 var(--vr-space-6);
}
.workspace-intro h1 { max-width: 700px; margin: var(--vr-space-1) 0 var(--vr-space-2); }
.workspace-intro .lede { max-width: 660px; }

/* Workspace: operational queues first */
.panel {
  padding: var(--vr-space-6);
  border-color: var(--vr-line);
  border-radius: var(--vr-radius-lg);
  box-shadow: 0 4px 16px rgba(23,33,58,.04);
}

/* PASS 3 — coherent controls, inputs and semantic colour */
.button,
.row-action,
.add-followup,
.text-button{
  min-height: var(--vr-control);
  border-radius: var(--vr-radius-sm);
  padding: 9px 14px;
  font-size: var(--vr-text-sm);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  white-space: nowrap;
}
body .button:not(.secondary):not(.quiet):not(.destructive):not(.action-tonal):not(.action-overflow),
body .primary-opportunity-action,
body .approval-primary {
  background: var(--vr-blue) !important;
  border-color: var(--vr-blue) !important;
  color: #fff !important;
  box-shadow: none;
}
body .button:not(.secondary):not(.quiet):not(.destructive):not(.action-tonal):not(.action-overflow):hover,
body .primary-opportunity-action:hover,
body .approval-primary:hover {
  background: var(--vr-blue-hover) !important;
  border-color: var(--vr-blue-hover) !important;
}
body .button.secondary,
body .button.action-tonal,
body .row-action:not(.primary-opportunity-action){
  border-color: transparent !important;
  background: color-mix(in srgb,var(--vr-blue) 9%,var(--vr-surface)) !important;
  color: var(--vr-blue-hover) !important;
  box-shadow: inset 0 0 0 1px color-mix(in srgb,var(--vr-blue) 10%,transparent) !important;
}
body .button.secondary:hover,
body .button.action-tonal:hover,
body .row-action:not(.primary-opportunity-action):hover{
  border-color: transparent !important;
  background: color-mix(in srgb,var(--vr-blue) 14%,var(--vr-surface)) !important;
  color: var(--vr-blue-hover) !important;
  box-shadow: inset 0 0 0 1px color-mix(in srgb,var(--vr-blue) 18%,transparent) !important;
}
body .button.quiet,
body .text-button,
body .preview-step-message {
  border-color: transparent !important;
  background: transparent !important;
  color: #2942b8 !important;
}
body .button.destructive,
body .danger-button {
  background: var(--vr-danger) !important;
  border-color: var(--vr-danger) !important;
  color: #fff !important;
}
body .primary-action--reconnect,
body .primary-action--retry {
  background: var(--vr-recovery) !important;
  border-color: var(--vr-recovery) !important;
  color: #fff !important;
}
body .button:disabled,
body .row-action:disabled,
body .approval-primary:disabled {
  border-color: #c4cad7 !important;
  background: #e2e5ed !important;
  color: #55617a !important;
  box-shadow: none !important;
  opacity: 1;
}
.icon-button {
  min-width: var(--vr-control);
  min-height: var(--vr-control);
  border-radius: var(--vr-radius-sm);
}
:where(a,button,input,select,textarea,summary,[tabindex]):focus-visible {
  outline: 3px solid var(--vr-blue) !important;
  outline-offset: 2px !important;
}
input,select,textarea,.form-grid select {
  min-height: var(--vr-control);
  border: 1px solid #98a2b3;
  border-radius: var(--vr-radius-sm);
  padding: 9px 11px;
  color: var(--vr-ink);
  background: #fff;
  font-size: var(--vr-text-sm);
}
input:hover,select:hover,textarea:hover,.form-grid select:hover { border-color: #667085; }
input:focus,select:focus,textarea:focus,.form-grid select:focus {
  border-color: var(--vr-blue);
  box-shadow: none;
}
label {
  gap: 6px;
  color: #344054;
  font-size: var(--vr-text-xs);
  font-weight: 700;
}
.field-label { display: inline; }
.required-marker {
  color: #b42318;
  font-size: 1em;
  line-height: 1;
  vertical-align: baseline;
}
.phone-input-group {
  gap: var(--vr-space-2);
  grid-template-columns: 5.5rem minmax(10rem,1fr);
}
.phone-input-group select { border-radius: var(--vr-radius-sm) 6px 6px var(--vr-radius-sm); }
.phone-input-group input { border-radius: 6px var(--vr-radius-sm) var(--vr-radius-sm) 6px; }
.status { border-radius: 999px; padding: 4px 8px; }
.dnc-warning {
  border-color: #d29a42;
  background: var(--vr-amber-soft);
  color: #713f12;
}

.detail-more > div{
  border-color: var(--vr-line);
  border-radius: var(--vr-radius-md);
  box-shadow: var(--vr-shadow-popover);
}

/* Forms and modal rhythm */
dialog {
  max-height: calc(100dvh - 32px);
  border: 1px solid var(--vr-line);
  border-radius: var(--vr-radius-lg);
  box-shadow: 0 24px 72px rgba(15,23,42,.24);
}
dialog form,.import-shell { padding: var(--vr-space-6); }
.dialog-heading {
  align-items: flex-start;
  gap: var(--vr-space-4);
}
.dialog-heading h2 { margin-top: 2px; }
.dialog-copy { margin: var(--vr-space-4) 0; }
.form-grid {
  gap: var(--vr-space-3) var(--vr-space-4);
  margin: var(--vr-space-5) 0;
}
.lean-opportunity-form { gap: var(--vr-space-3) var(--vr-space-4); }
.form-section-label {
  padding-top: var(--vr-space-3);
  border-color: var(--vr-line);
}
.dialog-actions {
  align-items: center;
  gap: var(--vr-space-2);
  margin-top: var(--vr-space-5);
}

/* Inline message review and editors */
.approval-review-card {
  gap: var(--vr-space-3);
  padding: var(--vr-space-5);
  border-color: var(--vr-line);
  border-radius: var(--vr-radius-md);
  box-shadow: none;
}
.approval-review-card > header { gap: var(--vr-space-4); }
.approval-message {
  gap: var(--vr-space-2);
  padding: var(--vr-space-4);
  border-color: var(--vr-line);
  border-radius: var(--vr-radius-md);
}
.approval-message-body {
  padding: var(--vr-space-3);
  background: var(--vr-surface-soft);
  line-height: 1.6;
}
.approval-footer { gap: var(--vr-space-3); }
.approval-secondary-actions { gap: var(--vr-space-2); }
.draft-workspace,.response-workspace { gap: var(--vr-space-5); }
.draft-save-boundary { margin-bottom: var(--vr-space-4); }

/* Playbooks, Settings and Import */
.playbook-group {
  padding: var(--vr-space-5);
  border-radius: var(--vr-radius-md);
  box-shadow: none;
}
.playbook-group + .playbook-group { margin-top: var(--vr-space-3); }
.playbook-description { margin: var(--vr-space-1) 0 var(--vr-space-3); }
.schedule-inputs { gap: var(--vr-space-2); }
.playbook-preview-origin {
  gap: var(--vr-space-2) var(--vr-space-4);
  padding: var(--vr-space-3);
  border-radius: var(--vr-radius-md);
}
#accountDialog .account-sections {
  border-color: var(--vr-line);
  border-radius: var(--vr-radius-md);
}
#accountDialog .settings-section { padding: var(--vr-space-5); }
#accountDialog .settings-section > .eyebrow { margin-bottom: var(--vr-space-3); }
#accountDialog .settings-account-actions { display: block; }
#accountDialog .product-email-setting { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: var(--vr-space-5); align-items: center; padding: var(--vr-space-4); border: 1px solid var(--vr-line); border-radius: var(--vr-radius-md); background: var(--color-surface-muted); }
#accountDialog .product-email-copy { display: grid; gap: 5px; min-width: 0; }
#accountDialog .product-email-copy strong { font-size: 14px; font-weight: 620; }
#accountDialog .product-email-copy small { color: var(--color-text-secondary); font-size: 12px; line-height: 1.5; }
#accountDialog .product-email-switch { position: relative; display: block; flex: none; width: 42px; height: 24px; cursor: pointer; }
#accountDialog .product-email-switch input { position: absolute; width: 1px; min-height: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
#accountDialog .product-email-switch > span { position: absolute; inset: 0; border: 1px solid var(--color-border-strong); border-radius: 999px; background: var(--color-surface); transition: background-color .16s ease,border-color .16s ease; }
#accountDialog .product-email-switch > span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--color-text-muted); box-shadow: 0 1px 3px rgba(15,23,42,.22); transition: transform .16s ease,background-color .16s ease; }
#accountDialog .product-email-switch input:checked + span { border-color: var(--color-accent); background: var(--color-accent); }
#accountDialog .product-email-switch input:checked + span::after { background: #fff; transform: translateX(18px); }
#accountDialog .product-email-switch input:focus-visible + span { outline: 3px solid rgba(49,84,216,.28); outline-offset: 2px; }
#accountDialog .product-email-switch input:disabled + span { opacity: .55; cursor: wait; }
#accountDialog .account-action-row { display: flex; align-items: center; justify-content: space-between; gap: var(--vr-space-4); margin-top: var(--vr-space-4); padding-top: var(--vr-space-4); border-top: 1px solid var(--vr-line); }
#accountDialog .account-sections { overflow: visible; }
#accountDialog .settings-field { display: grid; gap: 6px; min-width: 0; }
#accountDialog .settings-label-row { position: relative; display: flex; align-items: center; gap: 6px; min-width: 0; }
#accountDialog .settings-label-row > label { display: inline; margin: 0; }
#accountDialog .settings-info-wrap { position: static; display: inline-flex; flex: 0 0 auto; }
#accountDialog .settings-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  min-width: 12px;
  height: 12px;
  min-height: 12px;
  box-sizing: border-box;
  padding: 0;
  border: 1px solid #98a2b3;
  border-radius: 50%;
  background: transparent;
  color: #536079;
  font: 700 7px/12px inherit;
  cursor: help;
}
#accountDialog .settings-info:hover,
#accountDialog .settings-info:focus-visible {
  border-color: #3047c9;
  color: #3047c9;
  outline: 2px solid #3047c9;
  outline-offset: 2px;
}
#accountDialog .settings-tooltip {
  position: absolute;
  z-index: 12;
  top: calc(100% + 8px);
  left: 0;
  width: min(260px,calc(100vw - 48px));
  padding: 9px 11px;
  border: 1px solid #cfd6e4;
  border-radius: var(--vr-radius-sm);
  background: #17213a;
  box-shadow: var(--vr-shadow-popover);
  color: #fff;
  font-size: var(--vr-text-sm);
  font-weight: 400;
  line-height: 1.45;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
#accountDialog .settings-info-wrap:hover .settings-tooltip,
#accountDialog .settings-info-wrap:focus-within .settings-tooltip {
  opacity: 1;
  visibility: visible;
}
#accountDialog .account-footer { flex-wrap: wrap; }
#accountDialog .account-footer #restartOnboardingButton { margin-right: auto; }
#accountDialog .settings-routine { margin-top: var(--vr-space-4); }
#accountDialog .routine-preference-actions { display: flex; align-items: center; flex-wrap: wrap; gap: var(--vr-space-3); margin-top: var(--vr-space-2); }
#accountDialog .routine-preference-actions [data-routine-status]:empty { display: none; }
body.dark-mode #accountDialog .settings-info { border-color: #7e8ca8; color: #cbd5e8; }
body.dark-mode #accountDialog .settings-info:hover,
body.dark-mode #accountDialog .settings-info:focus-visible { border-color: #8ca4ff; color: #dce4ff; outline-color: #8ca4ff; }
body.dark-mode #accountDialog .settings-tooltip { border-color: #596783; background: #0f172a; color: #f8fafc; }
.email-connect,.subscriber-status {
  border-radius: var(--vr-radius-md);
  box-shadow: none;
}
.import-dialog { border-radius: var(--vr-radius-lg); }
.import-progress { gap: var(--vr-space-2); margin: var(--vr-space-4) 0 var(--vr-space-5); }
.import-drop {
  gap: var(--vr-space-2);
  padding: var(--vr-space-5);
  border-radius: var(--vr-radius-md);
}
.import-defaults { gap: var(--vr-space-3); margin-top: var(--vr-space-4); }
.import-summary { gap: var(--vr-space-3); }
.import-summary div,.import-exceptions,.import-preview-wrap {
  border-radius: var(--vr-radius-md);
  box-shadow: none;
}
.import-preview th,.import-preview td { padding: 10px; }
.import-actions { gap: var(--vr-space-2); margin-top: var(--vr-space-5); }

/* History and archive: compact business story */
.opportunity-history-list { margin-top: var(--vr-space-2); }
.history-event {
  grid-template-columns: 12px minmax(0,1fr);
  gap: var(--vr-space-3);
  padding: var(--vr-space-3) 0 0;
}
.history-event > span { margin-top: 6px; }
.history-event div {
  gap: var(--vr-space-3);
  padding-bottom: var(--vr-space-3);
  border-color: var(--vr-line);
}
.history-event > div { display: grid; }
.history-event-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: var(--vr-space-3);
}
.history-event-copy { display: grid; gap: 2px; min-width: 0; }
.history-event-detail,
.history-event-evidence {
  color: var(--vr-muted);
  font-size: var(--vr-text-xs);
  font-weight: 400;
}
.history-event strong { font-size: var(--vr-text-sm); }
.history-event time {
  color: var(--vr-muted);
  font-size: var(--vr-text-xs);
}
.history-note { color: var(--vr-ink); }
.history-load-more { margin-top: var(--vr-space-3); }

/* PASS 5 — stable states and restrained motion */
.empty,.note-empty,.message-preview-status,.load-failure-row {
  color: var(--vr-muted);
  line-height: var(--vr-leading-copy);
}
.message-preview-error,.opportunity-load-status {
  border-radius: var(--vr-radius-md);
}
.toast {
  max-width: min(390px, calc(100vw - 32px));
  border-radius: var(--vr-radius-sm);
  line-height: 1.4;
}
.button,.row-action,.filter,input,select,textarea {
  transition: color .14s ease, background-color .14s ease, border-color .14s ease, box-shadow .14s ease;
}

/* Dark theme retains the same hierarchy and readable contrast. */
body.dark-mode {
  --vr-ink: #f4f6ff;
  --vr-muted: #aeb8cc;
  --vr-subtle: #aeb8cc;
  --vr-line: #35415f;
  --vr-surface: #171f35;
  --vr-surface-soft: #1c263f;
}
body.dark-mode .approval-message-body{
  background: var(--vr-surface-soft);
}
body.dark-mode .button.secondary,
body.dark-mode .button.action-tonal,
body.dark-mode .row-action:not(.primary-opportunity-action){
  border-color: transparent !important;
  background: color-mix(in srgb,var(--vr-blue) 20%,var(--vr-surface)) !important;
  color: #dfe5ff !important;
  box-shadow: inset 0 0 0 1px color-mix(in srgb,var(--vr-blue) 28%,transparent) !important;
}
body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea,
body.dark-mode .form-grid select {
  border-color: #66758f;
  background: #11172a;
  color: #f4f6ff;
}
body.dark-mode label { color: #dce3f3; }
body.dark-mode .dnc-warning {
  border-color: #946d32;
  background: #312718;
  color: #f4d49c;
}

/* PASS 4 — intentional responsive layouts */
@media (max-width: 900px) {
  .shell { padding-inline: var(--vr-space-5); }
  .intro.workspace-intro { align-items: flex-start; }
  #responseDialog.with-details .response-workspace,
  #draftDialog.with-details .draft-workspace { gap: var(--vr-space-5); }
}
@media (max-width: 768px) {
  :root { --vr-control: 44px; }
  .shell { padding-inline: var(--vr-space-4); }
  .modern-topbar { flex-wrap: wrap; gap: var(--vr-space-2); }
  .primary-nav { order: 3; width: 100%; overflow-x: auto; }
  .primary-nav .nav-item,
  .primary-nav .nav-item:not(.active) {
    display: inline-flex;
    min-height: var(--vr-tap);
    flex: 0 0 auto;
  }
  .intro.workspace-intro { padding: var(--vr-space-6) 0 var(--vr-space-5); }
  .panel { padding: var(--vr-space-5); }
  dialog {
    width: calc(100vw - 16px);
    max-width: none;
    max-height: calc(100dvh - 16px);
    margin: 8px;
  }
  dialog form,.import-shell { padding: var(--vr-space-5); }
  .approval-review-card { padding: var(--vr-space-4); }
  .import-dialog { width: calc(100vw - 16px); }
  .import-preview-wrap { max-width: 100%; }
}
@media (max-width: 640px) {
  .shell { padding-inline: var(--vr-space-3); padding-bottom: var(--vr-space-7); }
  .brand-wordmark { display: inline-flex; }
  .user-controls { margin-left: auto; }
  .user-controls .mode,.user-controls .plan-status { display: none; }
  .intro.workspace-intro { gap: var(--vr-space-4); }
  .panel { padding: var(--vr-space-4); }
  .detail-more > div{
    right: var(--vr-space-3);
    bottom: var(--vr-space-3);
    left: var(--vr-space-3);
    max-height: 65dvh;
    overflow: auto;
  }
  .form-grid,.lean-opportunity-form { grid-template-columns: 1fr; }
  .form-section-label { align-items: flex-start; gap: 2px; }
  .phone-input-group { grid-template-columns: 5.5rem minmax(0,1fr); }
  .approval-review-card > header { display: grid; gap: var(--vr-space-2); }
  .approval-footer,.approval-secondary-actions { display: grid; align-items: stretch; }
  .approval-primary-wrap,.approval-primary { width: 100%; }
  .approval-secondary-actions { grid-template-columns: minmax(0,1fr) auto; }
  .approval-secondary-actions > .button { width: 100%; }
  .message-preview-meta,.import-defaults,.import-summary,.import-confirm-list { grid-template-columns: 1fr; }
  .import-progress { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .import-progress li { overflow-wrap: anywhere; }
  .import-map-row { grid-template-columns: 1fr; }
  .import-actions { grid-template-columns: 1fr; }
  .import-actions .button { width: 100%; }
  #accountDialog .settings-section { padding: var(--vr-space-4); }
  #accountDialog .subscriber-status { align-items: flex-start; flex-direction: column; }
  #accountDialog .product-email-setting { align-items: start; }
  #accountDialog .account-action-row { align-items: flex-start; flex-direction: column; gap: var(--vr-space-2); }
  .history-event div { display: grid; gap: var(--vr-space-1); }
  .history-event-heading { display: grid; gap: var(--vr-space-1); }
  .history-event time { white-space: normal; }
}

/* Final interaction floor: primary Follow-up controls remain touch safe. */
.workspace-priority-next button,
.workspace-priority-more-group button,
.workspace-priority-other-channels > summary { min-height: 44px; }
@media (max-width: 430px) {
  .shell { padding-inline: 12px; }
  .modern-topbar { padding-inline: 4px; }
  .brand-wordmark { font-size: 16px; }
  .user-controls .email-verification-status { max-width: 96px; overflow: hidden; text-overflow: ellipsis; }
  .panel { padding: 14px; }
  dialog form,.import-shell { padding: 18px 16px; }
  .phone-input-group { grid-template-columns: 5.5rem minmax(0,1fr); }
  .approval-message { padding: 12px; }
  .approval-message p { grid-template-columns: 1fr; }
  .draft-editor-actions { grid-template-columns: 1fr !important; }
  .draft-editor-actions .button.primary { grid-column: auto; }
  .import-progress { display: flex; overflow-x: auto; padding-bottom: 4px; }
  .import-progress li { min-width: 72px; }
  .toast { right: 12px; bottom: 12px; left: 12px; }
}
@media (max-width: 390px) {
  .modern-topbar .brand-wordmark { display: none; }
  .phone-input-group { grid-template-columns: 5.25rem minmax(0,1fr); gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}


/* Public landing page — focused operational clarity */
.signed-out.landing-page {
  --landing-navy: #111b3d;
  --landing-blue: #3953df;
  --landing-blue-deep: #273cb9;
  --landing-cobalt-soft: #e9edff;
  --landing-cream: #f6f3eb;
  --landing-ink: #17213a;
  --landing-muted: #626d84;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.signed-out-mode .modern-topbar > .primary-nav { display: none; }
.signed-out-mode .modern-topbar .brand-mark-frame { display: grid; }
.signed-out-mode .modern-topbar .brand-wordmark { display: inline-flex; }
.signed-out-mode .modern-topbar .brand-wordmark span { display: inline; }
.signed-out-mode .modern-topbar .user-controls { margin-left: auto; }
.landing-page button { font-family: inherit; }
.landing-pricing-link { min-height: 38px; align-items: center; padding-inline: 10px; color: var(--landing-blue-deep); text-decoration: none; }
.signed-in-mode .landing-pricing-link { display: none; }


.landing-hero-copy { position: relative; z-index: 1; }




.landing-positioning {
  margin: 30px 0 0;
  color: var(--landing-ink);
  font-size: clamp(1.25rem,1.8vw,1.55rem);
  font-weight: 620;
  letter-spacing: -.025em;
}
.landing-explanation {
  max-width: 570px;
  margin: 8px 0 0;
  color: var(--landing-muted);
  font-size: 1rem;
  line-height: 1.65;
}
.landing-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.landing-page .landing-primary-cta,.landing-page .landing-close-cta {
  min-height: 48px;
  padding-inline: 22px;
  border-radius: 10px;
  font-weight: 620;
  box-shadow: 0 12px 25px rgba(48,71,201,.2);
}
.landing-page .landing-secondary-cta { min-height: 48px; padding-inline: 22px; border-radius: 10px; font-weight: 570; }
.landing-note { margin: 12px 0 0; color: #758096; font-size: 12px; }

.landing-visual-glow {
  position: absolute;
  z-index: 0;
  inset: 10% 3% 8% 10%;
  border-radius: 50%;
  background: rgba(57,83,223,.19);
  filter: blur(70px);
}
.landing-workspace-preview {
  position: absolute;
  z-index: 1;
  inset: 8px 10px 42px 0;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(173,185,231,.7);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 70px rgba(24,36,92,.16);
  transform: rotateY(-4deg) rotateX(1deg) rotateZ(-.35deg);
  transform-origin: 48% 52%;
}
.landing-workspace-preview::after {
  position: absolute;
  top: -56px;
  right: -46px;
  width: 145px;
  height: 145px;
  border-radius: 50%;
  background: #eef1ff;
  content: "";
}
.landing-workspace-eyebrow { position: relative; z-index: 1; margin: 0 0 13px; color: #304bd3; font-size: 8px; font-weight: 720; letter-spacing: .07em; }
.landing-summary-preview { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.landing-summary-preview > div { display: grid; min-width: 0; min-height: 76px; align-content: start; gap: 3px; padding: 10px 11px; overflow: hidden; border: 1px solid currentColor; border-radius: 11px; }
.landing-summary-preview span { font-size: 7px; font-weight: 760; letter-spacing: .06em; }
.landing-summary-preview strong { font-size: 17px; font-weight: 620; line-height: 1; }
.landing-summary-preview small { overflow: hidden; font-size: 7px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.landing-summary-preview .is-attention { color: var(--color-attention); background: var(--color-attention-surface); }
.landing-summary-preview .is-due { color: var(--color-due); background: var(--color-due-surface); }
.landing-summary-preview .is-upcoming { color: #1f4bc4; background: #f3f5ff; }
.landing-value-preview { display: flex; justify-content: space-between; gap: 16px; margin: 11px 0 0; color: #526790; font-size: 7px; }
.landing-workspace-actions { display: flex; justify-content: flex-end; gap: 6px; margin: 9px 0; }
.landing-workspace-actions span { padding: 5px 8px; border: 1px solid #b9c5ef; border-radius: 7px; color: #183aa9; background: #fff; font-size: 7px; font-weight: 650; }
.landing-queue-panel-preview { min-height: 210px; padding: 13px; border: 1px solid #e0e5f1; border-radius: 13px; background: #fff; }
.landing-queue-panel-preview > p { margin: 0; color: #6c7890; font-size: 8px; font-weight: 720; letter-spacing: .06em; }
.landing-queue-panel-preview > small { display: block; margin-top: 7px; color: #758099; font-size: 7px; }
.landing-current-tabs { display: grid; grid-template-columns: auto auto auto 1fr auto auto; align-items: center; gap: 5px; margin: 8px 0 4px; color: #69758d; font-size: 6px; }
.landing-current-tabs span { padding: 5px 6px; white-space: nowrap; }
.landing-current-tabs span.is-active { border-radius: 6px; color: #3453d5; background: #edf0ff; }
.landing-table-head { display: grid; grid-template-columns: 1.45fr 1.35fr .75fr .55fr .62fr; gap: 6px; padding: 6px 4px; border-bottom: 1px solid #e4e8f1; color: #647087; font-size: 5.5px; font-weight: 650; }
.landing-opportunity-preview { position: relative; display: grid; grid-template-columns: 25px 1.15fr 1.25fr .52fr .48fr; align-items: center; gap: 6px; min-width: 0; padding: 8px 4px 8px 7px; border-bottom: 1px solid #e8ebf3; }
.landing-opportunity-preview::before { position: absolute; inset: 6px auto 6px 0; width: 2px; border-radius: 2px; background: var(--color-attention-accent); content: ""; }
.landing-opportunity-preview.is-secondary::before { background: var(--color-due-accent); }
.landing-avatar { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 7px; color: #3047c9; background: #edf0ff; font-size: 6px; font-weight: 720; }
.landing-opportunity-preview > div:nth-child(2),.landing-next-action { display: grid; gap: 1px; min-width: 0; }
.landing-opportunity-preview strong { overflow: hidden; color: var(--landing-ink); font-size: 6.5px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.landing-opportunity-preview span { overflow: hidden; color: #758099; font-size: 5.5px; text-overflow: ellipsis; white-space: nowrap; }
.landing-next-action small { color: #8490a9; font-size: 5px; font-weight: 650; letter-spacing: .06em; }
.landing-row-value { color: #56627b !important; font-weight: 500; }
.landing-row-action { justify-self: end; padding: 4px 5px; border: 1px solid #b9c5ef; border-radius: 5px; color: #2745be !important; background: #fff; font-weight: 620; }
.landing-action-card { position: absolute; z-index: 3; right: -9px; bottom: 0; display: grid; width: min(285px,58%); gap: 7px; padding: 19px; border: 1px solid rgba(255,255,255,.24); border-radius: 16px; color: #fff; background: linear-gradient(145deg,#17265e,#334bd3); box-shadow: 0 22px 40px rgba(36,55,156,.29); transform: translateZ(36px) rotateZ(.3deg); }
.landing-action-card > span { color: #b9c5ff; font-size: 9px; font-weight: 750; letter-spacing: .13em; }
.landing-action-card strong { font-size: 14px; font-weight: 580; line-height: 1.35; }
.landing-action-card small { color: #c7d0fc; font-size: 10px; }
.landing-action-card button { justify-self: start; margin-top: 6px; padding: 8px 11px; border: 0; border-radius: 7px; color: #22349f; background: #fff; font-size: 10px; font-weight: 650; pointer-events: none; }

/* Public hero mascot; transparent replacement overrides legacy feathering below. */
.landing-mascot-scene { position: absolute; inset: 0; z-index: 2; margin: 0; }
.landing-mascot-scene img {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 24px 34px rgba(34,48,119,.12));
  -webkit-mask-image: radial-gradient(ellipse 60% 65% at 50% 49%,#000 48%,rgba(0,0,0,.82) 64%,transparent 93%);
  mask-image: radial-gradient(ellipse 60% 65% at 50% 49%,#000 48%,rgba(0,0,0,.82) 64%,transparent 93%);
}
.landing-loop { margin: clamp(72px,10vw,120px) clamp(24px,4.5vw,64px) 0; }
.landing-section-heading { max-width: 660px; }
.landing-section-heading h2 { margin: 0; color: var(--landing-navy); font-size: clamp(2rem,3.5vw,3.25rem); font-weight: 660; line-height: 1.05; letter-spacing: -.045em; }
.landing-section-heading > span { display: block; max-width: 600px; margin-top: 15px; color: var(--landing-muted); line-height: 1.65; }
.landing-loop ol { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; margin: 44px 0 0; padding: 0; overflow: hidden; border: 1px solid #e0e5f1; border-radius: 20px; background: #e0e5f1; list-style: none; }
.landing-loop li { position: relative; min-height: 176px; padding: 24px; background: #fff; }
.landing-loop li::after { position: absolute; right: 22px; bottom: 20px; width: 36px; height: 2px; border-radius: 2px; background: var(--landing-blue); content: ""; opacity: .3; }
.landing-loop-number { color: #a8b1c6; font-size: 12px; font-weight: 650; letter-spacing: .08em; }
.landing-loop li div { margin-top: 28px; }
.landing-loop h3 { margin: 0; color: var(--landing-navy); font-size: 1.25rem; font-weight: 620; }
.landing-loop li p { max-width: 255px; margin: 9px 0 0; color: var(--landing-muted); font-size: 14px; line-height: 1.6; }
.landing-loop-outcome { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin: 18px 2px 0; color: var(--landing-navy); font-size: 13px; font-weight: 570; }
.landing-loop-outcome span { width: 34px; height: 1px; background: #aab4ca; }
.landing-benefits { margin: clamp(84px,11vw,136px) clamp(24px,4.5vw,64px) 0; }
.landing-benefits > .landing-section-heading { max-width: 740px; }
.landing-benefit-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 40px; }
.landing-benefit-grid article { min-height: 190px; padding: 24px; border: 1px solid #e1e5ef; border-radius: 18px; background: linear-gradient(155deg,#fff,#fafbfe); }
.landing-benefit-grid article > span { display: grid; width: max-content; min-width: 36px; height: 36px; padding: 0 10px; place-items: center; border-radius: 10px; color: var(--landing-blue); background: var(--landing-cobalt-soft); font-size: 10px; font-weight: 680; letter-spacing: .035em; }
.landing-benefit-grid h3 { margin: 30px 0 0; color: var(--landing-navy); font-size: 1.05rem; font-weight: 620; }
.landing-benefit-grid p { margin: 8px 0 0; color: var(--landing-muted); font-size: 13px; line-height: 1.6; }
.landing-pricing { margin: clamp(84px,11vw,136px) clamp(24px,4.5vw,64px) 0; }
.landing-pricing > .landing-section-heading { max-width: 760px; }
.landing-plan-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: stretch; gap: 14px; margin-top: 42px; }
.landing-plan-card { position: relative; display: flex; min-width: 0; min-height: 430px; flex-direction: column; padding: 28px; border: 1px solid #dfe4ef; border-radius: 20px; background: linear-gradient(155deg,#fff,#fafbfe); box-shadow: 0 10px 28px rgba(34,48,103,.06); }
.landing-plan-card.is-featured { border-color: #788cff; background: linear-gradient(155deg,#f7f8ff,#eef1ff); box-shadow: 0 18px 38px rgba(57,83,223,.14); transform: translateY(-7px); }
.landing-plan-card.is-pro { border-color: #a9d8bd; background: linear-gradient(155deg,#fff,#f1fbf5); }
.landing-plan-card > div:first-child { min-height: 120px; }
.landing-plan-name { margin: 0 0 12px; color: var(--landing-blue); font-size: 10px; font-weight: 780; letter-spacing: .14em; }
.landing-plan-card.is-pro .landing-plan-name { color: #217346; }
.landing-plan-card h3 { margin: 0; color: var(--landing-navy); font-size: 1.22rem; font-weight: 650; letter-spacing: -.02em; }
.landing-plan-card > div:first-child > p:last-child { margin: 9px 0 0; color: var(--landing-muted); font-size: 13px; line-height: 1.55; }
.landing-plan-price { display: flex; align-items: baseline; gap: 6px; margin: 22px 0 20px; color: var(--landing-navy); }
.landing-plan-price strong { font-size: 2.35rem; font-weight: 690; letter-spacing: -.05em; }
.landing-plan-price span { color: var(--landing-muted); font-size: 12px; }
.landing-plan-card ul { display: grid; gap: 11px; margin: 0 0 26px; padding: 19px 0 0; border-top: 1px solid #e1e5ef; color: var(--landing-ink); font-size: 13px; list-style: none; }
.landing-plan-card li { display: grid; grid-template-columns: 18px 1fr; align-items: center; gap: 9px; line-height: 1.4; }
.landing-plan-card li svg { width: 18px; height: 18px; fill: none; stroke: var(--landing-blue); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.landing-plan-card.is-pro li svg { stroke: #217346; }
.landing-plan-card > .button { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; margin-top: auto; text-align: center; text-decoration: none; }
.landing-plan-card.is-featured > .button { border-color: #5268e7; color: #fff; background: #4055d6; }
.landing-plan-badge { position: absolute; top: 20px; right: 20px; padding: 5px 9px; border-radius: 999px; color: #2942be; background: #e1e6ff; font-size: 10px; font-weight: 720; }
.landing-pricing-footer { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 18px; padding: 17px 20px; border: 1px solid #dce3f2; border-radius: 14px; background: #f8f9fd; text-align: center; }
.landing-pricing-footer p { margin: 0; color: var(--landing-muted); font-size: 12px; line-height: 1.55; }
.landing-pricing-footer strong { color: var(--landing-ink); }
.landing-pricing-footer a { flex: none; color: var(--landing-blue-deep); font-size: 13px; font-weight: 650; text-decoration: none; }
.landing-pricing-footer a:hover { text-decoration: underline; }
.landing-close { max-width: 820px; margin: clamp(90px,12vw,150px) auto 70px; padding: 0 24px; text-align: center; }
.landing-close > p { margin: 0 0 12px; color: var(--landing-blue); font-size: 10px; font-weight: 760; letter-spacing: .15em; }
.landing-close h2 { margin: 0; color: var(--landing-navy); font-size: clamp(2.25rem,4.3vw,4rem); font-weight: 660; line-height: 1.03; letter-spacing: -.052em; }
.landing-close > span { display: block; margin-top: 16px; color: var(--landing-muted); }
.landing-close .landing-close-cta { margin-top: 28px; }

body.dark-mode .landing-page { --landing-navy: #f4f6ff; --landing-ink: #edf0fa; --landing-muted: #b5bfd6; }



body.dark-mode .landing-note { color: #99a5bf; }
body.dark-mode .landing-pricing-link { color: #bdc7ff; }
body.dark-mode .landing-workspace-preview { border-color: #3e4966; background: #182037; }
body.dark-mode .landing-workspace-preview::after { background: #202b4d; }
body.dark-mode .landing-workspace-actions span,body.dark-mode .landing-queue-panel-preview { border-color: #35405e; background: #18213a; }
body.dark-mode .landing-workspace-actions span { color: #c1caff; }
body.dark-mode .landing-value-preview,body.dark-mode .landing-queue-panel-preview > p,body.dark-mode .landing-current-tabs,body.dark-mode .landing-table-head { color: #b5bfd6; }
body.dark-mode .landing-queue-panel-preview > small { color: #aab4cb; }
body.dark-mode .landing-current-tabs span.is-active { color: #c7ceff; background: #29365f; }
body.dark-mode .landing-table-head,body.dark-mode .landing-opportunity-preview { border-color: #35405e; }
body.dark-mode .landing-avatar { color: #c6ceff; background: #29365f; }
body.dark-mode .landing-row-action { border-color: #52618d; color: #c1caff !important; background: #202b49; }
body.dark-mode .landing-loop ol { border-color: #33405e; background: #33405e; }
body.dark-mode .landing-loop li,body.dark-mode .landing-benefit-grid article { border-color: #33405e; background: #18213a; }
body.dark-mode .landing-benefit-grid article > span { color: #bcc6ff; background: #28365f; }
body.dark-mode .landing-plan-card { border-color: #35405e; background: #18213a; box-shadow: none; }
body.dark-mode .landing-plan-card.is-featured { border-color: #7589ff; background: #1c2749; box-shadow: 0 18px 38px rgba(0,0,0,.18); }
body.dark-mode .landing-plan-card.is-pro { border-color: #3f7057; background: #172b24; }
body.dark-mode .landing-plan-card ul { border-color: #35405e; }
body.dark-mode .landing-plan-card.is-featured > .button { border-color: #8798ff; background: #5268e7; }
body.dark-mode .landing-plan-badge { color: #d5dbff; background: #30427a; }
body.dark-mode .landing-pricing-footer { border-color: #35405e; background: #18213a; }
body.dark-mode .landing-pricing-footer a { color: #bdc7ff; }

@media (max-width: 980px) {

  .landing-hero-copy { max-width: 720px; }

}
@media (max-width: 720px) {
  .signed-out.landing-page { margin-inline: -12px; }



  .landing-workspace-preview { right: 0; padding: 19px; transform: rotateY(-2.5deg) rotateX(.7deg) rotateZ(-.25deg); }
  .landing-loop,.landing-benefits { margin-inline: 22px; }
  .landing-loop ol,.landing-benefit-grid,.landing-plan-grid { grid-template-columns: 1fr; }
  .landing-plan-card { min-height: 0; }
  .landing-plan-card.is-featured { transform: none; }
  .landing-plan-card > div:first-child { min-height: 0; }
  .landing-pricing-footer { align-items: flex-start; flex-direction: column; }
  .landing-loop li { min-height: 160px; }
  .landing-loop li div { margin-top: 22px; }
}
@media (max-width: 470px) {
  .signed-out.landing-page { margin-inline: 0; }


  .landing-positioning { margin-top: 24px; }
  .landing-actions { display: grid; }
  .landing-actions .button { width: 100%; }

  .landing-workspace-preview { inset: 10px 0 35px; padding: 14px; transform: rotateY(-2deg) rotateZ(-.2deg); }
  .landing-summary-preview { gap: 5px; }
  .landing-summary-preview > div { min-height: 64px; padding: 8px; }
  .landing-summary-preview strong { font-size: 16px; }
  .landing-summary-preview small { font-size: 6px; }
  .landing-value-preview { margin-top: 8px; font-size: 6px; }
  .landing-workspace-actions { margin: 9px 0; }
  .landing-workspace-actions span { padding: 5px 7px; }
  .landing-queue-panel-preview { min-height: 174px; padding: 10px; }
  .landing-current-tabs { grid-template-columns: auto auto auto 1fr; gap: 3px; }
  .landing-current-tabs span:nth-last-child(-n+2) { display: none; }
  .landing-table-head { grid-template-columns: 1.5fr 1.3fr .8fr; }
  .landing-table-head span:nth-child(4),.landing-table-head span:nth-child(5) { display: none; }
  .landing-opportunity-preview { grid-template-columns: 22px 1.15fr 1.2fr; padding-block: 7px; }
  .landing-opportunity-preview > .landing-row-value,.landing-opportunity-preview > .landing-row-action { display: none; }
  .landing-action-card { right: -4px; width: min(225px,68%); padding: 14px; }

  .landing-mascot-scene { inset: 0; }
  .landing-mascot-scene img { inset: 2%; width: 96%; height: 96%; border-radius: 20px; }
  .landing-loop,.landing-benefits,.landing-pricing { margin-inline: 18px; }
  .landing-loop li,.landing-benefit-grid article { padding: 22px; }
  .landing-close { margin-bottom: 48px; padding-inline: 20px; }
}

/* Cumulative refinement — primary queue summary identity */



/* Cumulative refinement — compact workspace hierarchy */
.intro.workspace-intro {
  display: block;
  margin: 0;
  padding: var(--vr-space-6) 0 var(--vr-space-3);
  border-bottom: 0;
}
.workspace-intro > .eyebrow { margin: 0; }

/* Queue identity and navigation stay compact so the work receives visual priority. */
#opportunityFilesDialog { width: min(620px, calc(100vw - 32px)); padding: 24px; }
#opportunityFilesDialog h2 { margin-top: 0; }
body.dark-mode #opportunityFilesDialog .text-button { color: #a6b1ff; }
#opportunityFilesDialog [data-file-error] { color: var(--vr-muted); }
.opportunity-file-row { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--vr-border, #d9dff0); }
.opportunity-file-row > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.opportunity-file-row small { display: block; color: var(--vr-muted); }
.opportunity-file-row label { display: flex; align-items: center; gap: 6px; }
.opportunity-file-row input[type="checkbox"] { width: 18px; height: 18px; margin: 0; }
@media(max-width: 500px) { .opportunity-file-row { flex-wrap: wrap; } .opportunity-file-row > span { flex-basis: 60%; } }
body.business-access-removed #workspace > :not(#businessAccessRemoved),
body.business-access-removed #accountButton,
body.business-access-removed #planStatus,
body.business-access-removed #analytics,
body.business-access-removed #emailVerificationButton { display: none !important; }
#businessAccessRemoved { margin-block: 24px; padding: 24px; }
#businessAccessRemoved p { max-width: 65ch; line-height: 1.6; color: var(--vr-muted); }
#businessAccessRemoved .actions { flex-wrap: wrap; }



/* Header navigation uses a larger logo-to-navigation gap than item-to-item spacing. */
.modern-topbar {
  --vr-header-logo-nav-gap: var(--vr-space-7);
  column-gap: var(--vr-header-logo-nav-gap);
}
.modern-topbar > .primary-nav {
  margin-left: 0;
  gap: var(--vr-space-1);
}
@media (max-width: 900px) {
  .modern-topbar { --vr-header-logo-nav-gap: var(--vr-space-6); }
}
@media (max-width: 650px) {
  .modern-topbar { --vr-header-logo-nav-gap: var(--vr-space-2); }
}

/* Keep the longest valid workspace action pair inside its table cell. */

/* Attention Balance — urgency is reserved for genuine human responsibility. */
.workspace-intro #workspaceAttentionTitle {
  max-width: 860px;
  margin: 8px 0 6px;
  color: var(--vr-ink);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 720;
  letter-spacing: -.035em;
  line-height: 1.06;
}
.workspace-intro #workspaceAttentionDescription {
  max-width: 780px;
  margin: 0;
  color: var(--vr-muted);
  font-size: 15px;
  line-height: 1.55;
}
.attention-balance {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  align-items: stretch;
  overflow: hidden;
  margin: 0 0 var(--vr-space-4);
  border: 1px solid var(--vr-border);
  border-radius: var(--vr-radius-lg);
  background: var(--vr-surface);
  box-shadow: var(--vr-shadow-sm);
}
.attention-balance-side {
  display: grid;
  position: relative;
  min-width: 0;
  grid-template-rows: auto auto auto;
  align-content: start;
  justify-content: stretch;
  gap: 0;
  min-height: 126px;
  padding: 20px 24px 22px;
}
button.attention-balance-side { width: 100%; margin: 0; border: 0; background: transparent; font: inherit; color: inherit; text-align: left; cursor: pointer; transition: background-color .15s ease, box-shadow .15s ease; }
button.attention-balance-side[aria-disabled="true"] { cursor: default; }
button.attention-balance-side:not([aria-disabled="true"]):hover { background: color-mix(in srgb,var(--tile-accent) 4%,transparent); }
button.attention-balance-side:focus-visible { outline: 3px solid #244bbb; outline-offset: -3px; }
.attention-balance-side.needs-you { --tile-accent: #bd233f; }
.attention-balance-side.under-control { --tile-accent: #244bbb; }
button.attention-balance-side.is-open { background: color-mix(in srgb,var(--tile-accent) 7%,transparent); box-shadow: inset 0 -3px 0 var(--tile-accent); }
.attention-balance-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 24px; }
.attention-balance-label { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--vr-muted); font-size: 11px; font-weight: 750; letter-spacing: .06em; line-height: 1.25; text-transform: uppercase; }
.attention-balance-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--tile-accent); }
.attention-balance-cue { display: inline-flex; align-items: center; gap: 2px; color: var(--vr-muted); font-size: 13px; font-weight: 600; }
.attention-balance-cue svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
button.attention-balance-side:not([aria-disabled="true"]):hover .attention-balance-cue,button.attention-balance-side.is-open .attention-balance-cue { color: var(--tile-accent); }
button.attention-balance-side[aria-disabled="true"] .attention-balance-cue { visibility: hidden; }
button.attention-balance-side.is-open .attention-balance-cue svg { transform: rotate(90deg); }
.attention-balance-figure { display: flex; align-items: baseline; gap: 8px; margin-top: 14px; }
.attention-balance-figure strong { color: var(--vr-ink); font-size: clamp(32px,3.2vw,40px); font-weight: 720; font-variant-numeric: tabular-nums; letter-spacing: -.03em; line-height: 1; }
.attention-balance-figure span { color: var(--vr-muted); font-size: 14px; font-weight: 600; }
.attention-balance-side > small { display: block; margin-top: 10px; padding-top: 10px; border-top: 1px solid color-mix(in srgb,var(--vr-ink) 8%,transparent); color: var(--vr-muted); font-size: 13px; line-height: 1.35; }
.workspace-managed-note { margin: 0 0 12px; color: var(--vr-muted); font-size: 13px; line-height: 1.45; }
.attention-balance-side + .attention-balance-side { border-left: 1px solid rgba(53,74,130,.12); }
.attention-balance-transfer {
  display: grid;
  min-width: 0;
  place-content: center;
  gap: 3px;
  margin: 0;
  padding: 18px 12px;
  color: var(--vr-muted);
  text-align: center;
}
.attention-balance-transfer > span { color: #8290b2; font-size: 32px; font-weight: 300; line-height: 1; }
.attention-balance-transfer small { max-width: 150px; font-size: 11px; line-height: 1.35; }
.workspace-control-receipt {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto auto;
  align-items: center;
  gap: var(--vr-space-3);
  margin: 0 0 var(--vr-space-4);
  padding: 14px 16px;
  border: 1px solid #a9d5b8;
  border-radius: var(--vr-radius-md);
  background: #f0faf3;
  color: #174d2a;
}
.workspace-control-receipt[hidden] { display: none; }
.workspace-control-receipt-icon { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: #d8f2df; font-weight: 750; }
.workspace-control-receipt strong { font-weight: 680; }
.workspace-control-receipt p { margin: 2px 0 0; color: #366445; font-size: 13px; line-height: 1.4; }
.workspace-control-receipt .text-button { color: #1d6335 !important; }
.workspace-receipt-dismiss { width: 40px; height: 40px; border: 0; background: transparent; color: inherit; font-size: 22px; cursor: pointer; }
.workspace-priority { margin: 0 0 var(--vr-space-4); }
.workspace-priority > header { display: flex; align-items: end; justify-content: space-between; gap: var(--vr-space-4); margin: 0 0 var(--vr-space-2); }
.workspace-priority > header .eyebrow { margin: 0; }
.workspace-priority > header h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.workspace-priority-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: var(--vr-space-5);
  padding: 22px 24px;
  border: 1px solid var(--vr-border);
  border-left: 4px solid var(--color-due-accent);
  border-radius: var(--vr-radius-lg);
  background: linear-gradient(118deg,var(--vr-surface) 0%,color-mix(in srgb,var(--vr-surface) 92%,#e8edff) 100%);
  box-shadow: 0 12px 30px rgba(24,42,82,.07),var(--vr-shadow-sm);
}
.workspace-priority-card.attention { border-left-color: var(--color-attention-accent); }
.workspace-priority-reason { margin: 0 0 5px; color: var(--color-attention); font-size: 12px; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; }
.workspace-priority-card.due .workspace-priority-reason { color: var(--color-due); }
.workspace-priority-card h3 { margin: 0; color: var(--vr-ink); font-size: 21px; font-weight: 680; letter-spacing: -.018em; }
.workspace-priority-meta { margin: 5px 0 0; color: var(--vr-muted); font-size: 13px; }
.workspace-priority-card blockquote {
  margin: 14px 0 0;
  padding: 11px 14px;
  border-left: 2px solid #c6cee3;
  border-radius: 0 8px 8px 0;
  background: var(--vr-surface-soft);
  color: var(--vr-ink);
  font-size: 14px;
  line-height: 1.5;
}
.workspace-priority-card .workspace-priority-copy > p:last-child:not(.workspace-priority-meta) { margin: 10px 0 0; color: var(--vr-muted); line-height: 1.5; }
.workspace-priority-action { min-width: 132px; white-space: nowrap; }
.workspace-priority-aside { display: grid; grid-template-rows: 1fr; min-width: min(300px,34vw); align-self: stretch; justify-items: end; gap: 12px; text-align: right; }
.workspace-priority-corner { display: flex; min-height: 42px; align-items: center; justify-content: flex-end; gap: 18px; }
.workspace-conversation-value { margin: 10px 0 0; color: var(--vr-muted); font-size: 13px; line-height: 1.5; }
.workspace-priority-navigation { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.workspace-priority-navigation button { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid var(--vr-border); border-radius: 10px; background: var(--vr-surface); color: var(--color-primary,#3154d8); font: inherit; font-size: 21px; line-height: 1; cursor: pointer; }
.workspace-priority-navigation button:hover,.workspace-priority-navigation button:focus-visible { border-color: currentColor; outline: 3px solid #c8d2ff; outline-offset: 1px; }
.workspace-priority-action { align-self: center; }
.workspace-priority-primary-actions { display: flex; grid-row: 1; width: 100%; align-items: center; justify-content: flex-end; gap: 8px; align-self: end; }
.workspace-priority-position { position: absolute; top: 22px; right: 24px; margin: 0; color: var(--vr-subtle); font-size: 12px; font-weight: 700; line-height: 1; white-space: nowrap; }
.workspace-priority-more { position: relative; }
.workspace-priority-more[open] { z-index:20; }
.workspace-priority-more > summary { list-style: none; cursor: pointer; }
.workspace-priority-more > summary::-webkit-details-marker { display: none; }
.button.action-overflow {
  display: inline-grid;
  width: 42px;
  min-width: 42px;
  min-height: 42px;
  place-items: center;
  padding: 0;
  border-color: transparent;
  background: transparent;
  color: var(--vr-muted);
  box-shadow: none;
  font-size: 18px;
  letter-spacing: .08em;
}
.button.action-overflow:hover { border-color: transparent; background: var(--vr-surface-soft); color: var(--vr-ink); }
.button.action-overflow > span { transform: translateY(-2px); }
.button.action-tonal[aria-expanded="true"] {
  background: var(--vr-surface-soft) !important;
  color: var(--vr-muted) !important;
  box-shadow: inset 0 0 0 1px var(--vr-border) !important;
}
.workspace-priority-more > div { position: absolute; z-index: 12; top: calc(100% + 8px); right: 0; width: 230px; overflow: visible; border: 1px solid var(--vr-border); border-radius: 12px; background: var(--vr-surface); box-shadow: var(--vr-shadow-popover); }
.workspace-priority-more-group { display: grid; padding: 6px; }
.workspace-priority-more hr { height: 1px; margin: 0 12px; border: 0; background: #cfd6e6; }
.workspace-priority-more-group button { width: 100%; padding: 10px 11px; border: 0; border-radius: 8px; background: transparent; color: var(--vr-ink); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.workspace-priority-more-group button:hover,.workspace-priority-more-group button:focus-visible { background: var(--vr-surface-soft); color: var(--color-primary,#3154d8); outline: none; }
.workspace-priority-more-protective button { color: var(--color-danger,#b4233b); }
.workspace-priority-more-protective button:hover,.workspace-priority-more-protective button:focus-visible { background: color-mix(in srgb,var(--color-danger,#b4233b) 8%,var(--vr-surface)); color: var(--color-danger,#b4233b); }
.workspace-priority-other-channels { position: relative; }
.workspace-priority-other-channels > summary { display: flex; min-height: 40px; align-items: center; justify-content: space-between; padding: 10px 11px; border-radius: 8px; color: var(--vr-ink); font-size: 13px; cursor: pointer; list-style: none; }
.workspace-priority-other-channels > summary::-webkit-details-marker { display: none; }
.workspace-priority-other-channels > summary:hover,.workspace-priority-other-channels > summary:focus-visible { background: var(--vr-surface-soft); color: var(--color-primary,#3154d8); outline: none; }
.workspace-priority-other-channels > summary span { font-size: 20px; line-height: 1; }
.workspace-priority-other-channels[open] > summary span { transform: rotate(180deg); }
.workspace-priority-other-channels > div { position: absolute; right: calc(100% + 8px); top: -7px; width: 190px; padding: 6px; border: 1px solid var(--vr-border); border-radius: 12px; background: var(--vr-surface); box-shadow: var(--vr-shadow-popover); }
.workspace-priority-other-channels > div button { width: 100%; padding: 10px 11px; border: 0; border-radius: 8px; background: transparent; color: var(--vr-ink); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.workspace-priority-other-channels > div button:hover,.workspace-priority-other-channels > div button:focus-visible { background: var(--vr-surface-soft); color: var(--color-primary,#3154d8); outline: none; }
.workspace-priority-other-channels > div button:disabled { color: var(--vr-subtle); cursor: default; }
.workspace-priority-other-channels > div p { margin: 0; padding: 10px 11px; color: var(--vr-subtle); font-size: 12px; line-height: 1.45; }
.workspace-priority-next { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 18px; margin: 0 0 var(--vr-space-4); padding: 11px 16px; border: 1px solid color-mix(in srgb,var(--vr-border) 88%,#bac8f2); border-radius: 14px; background: linear-gradient(100deg,color-mix(in srgb,var(--vr-surface) 94%,#f2f5ff),var(--vr-surface)); box-shadow: 0 8px 20px rgba(24,42,82,.045); }
.workspace-priority-card > .workspace-priority-next { grid-column: 1 / -1; width: 100%; margin: 0; }
.workspace-priority-next > p { margin: 0; color: var(--vr-muted); font-size: 12px; font-weight: 750; letter-spacing: .055em; text-transform: uppercase; }
.workspace-priority-next > div { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; width: 100%; }
.workspace-priority-next button { min-height: 44px; padding: 7px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--vr-muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.workspace-priority-next button:hover,.workspace-priority-next button:focus-visible { background: var(--vr-surface-soft); color: var(--color-primary,#3154d8); outline: 2px solid #c8d2ff; outline-offset: 1px; }
.workspace-priority-next .workspace-priority-selected-channel { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:10px; min-width:178px; min-height:48px; padding:8px 12px; border:1px solid #c8d2ff; border-radius:10px; background:linear-gradient(135deg,color-mix(in srgb,var(--color-primary,#3154d8) 9%,var(--vr-surface)),var(--vr-surface)); color:var(--vr-ink); text-align:left; box-shadow:0 1px 0 rgba(20,37,72,.04); }
.workspace-priority-next > div > .workspace-priority-selected-channel { margin-left:auto; }
.workspace-priority-channel-divider { width:1px; height:30px; margin-left:8px; background:var(--vr-border); }
.workspace-priority-next .workspace-priority-selected-channel:hover,.workspace-priority-next .workspace-priority-selected-channel:focus-visible { border-color:#91a7ff; background:linear-gradient(135deg,color-mix(in srgb,var(--color-primary,#3154d8) 14%,var(--vr-surface)),var(--vr-surface)); }
.workspace-priority-channel-kicker { flex:0 0 auto; padding:3px 5px; border-radius:5px; background:#e8edff; color:var(--color-primary,#3154d8); font-size:9px; font-weight:800; letter-spacing:.075em; line-height:1.15; }
.workspace-priority-channel-value { justify-self:center; min-width:0; color:var(--vr-ink); font-size:13px; font-weight:720; line-height:1.25; }
.workspace-priority-next .workspace-priority-selected-channel.is-empty { border-style:dashed; border-color:var(--vr-border); background:transparent; box-shadow:none; }
.workspace-priority-next .workspace-priority-selected-channel.is-empty .workspace-priority-channel-kicker { background:var(--vr-surface-soft); color:var(--vr-muted); }
.channel-picker-options { display:grid; gap:10px; margin-top:18px; }
.channel-picker-option { display:grid; gap:4px; width:100%; padding:14px 16px; border:1px solid var(--vr-border); border-radius:10px; background:var(--vr-surface); color:var(--vr-ink); text-align:left; cursor:pointer; }
.channel-picker-option strong { font-size:14px; }
.channel-picker-option span { color:var(--vr-muted); font-size:12px; line-height:1.45; }
.channel-picker-option:hover,.channel-picker-option:focus-visible { border-color:var(--color-primary,#3154d8); background:var(--vr-surface-soft); outline:2px solid #c8d2ff; outline-offset:1px; }
body.dark-mode .channel-picker-option { background:#1e2842; }
.workspace-priority-next .danger-text:hover,.workspace-priority-next .danger-text:focus-visible { color: var(--color-danger,#b4233b); }
.workspace-priority-review {
  position: relative;
  display: grid;
  gap: 18px;
  margin-top: 12px;
  padding: 22px 24px;
  border: 1px solid var(--vr-border);
  border-radius: var(--vr-radius-lg);
  background: var(--vr-surface);
  box-shadow: 0 12px 30px rgba(24,42,82,.07),var(--vr-shadow-sm);
}
.workspace-priority-review > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.workspace-priority-review > header .eyebrow { margin: 0 0 5px; }
.workspace-priority-review > header h3 { margin: 0; color: var(--vr-ink); font-size: 21px; letter-spacing: -.018em; }
.workspace-priority-review > header p:last-child { margin: 5px 0 0; color: var(--vr-muted); }
.workspace-priority-message-field { position: relative; min-width: 0; }
.workspace-priority-review-tools { position: absolute; z-index: 2; top: -9px; right: 0; display: grid; width: 34px; justify-items: center; }
.workspace-redraft-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--vr-border);
  border-radius: 999px;
  background: var(--vr-surface);
  color: var(--color-primary,#3154d8);
  cursor: pointer;
}
.workspace-redraft-button { width: 34px; height: 34px; }
.workspace-redraft-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.workspace-redraft-button:hover,.workspace-redraft-button:focus-visible { border-color: currentColor; outline: 3px solid #c8d2ff; outline-offset: 2px; }
.workspace-redraft-button:disabled { cursor: wait; opacity: .55; }
.workspace-priority-review-tools:has(.workspace-redraft-button:disabled) .workspace-redraft-button svg { animation: workspace-redraft-spin .9s linear infinite; }
@keyframes workspace-redraft-spin { to { transform: rotate(360deg); } }
.workspace-priority-review form { display: grid; gap: 14px; }
.workspace-priority-review label { display: grid; gap: 7px; color: var(--vr-muted); font-size: 12px; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; }
.workspace-priority-review input,.workspace-priority-review textarea { width: 100%; border: 1px solid var(--vr-border); border-radius: 10px; background: var(--vr-surface-soft); color: var(--vr-ink); font-family: inherit; font-size: 15px; font-weight: 400; line-height: 1.55; letter-spacing: normal; text-transform: none; }
.workspace-priority-review input { min-height: 44px; padding: 10px 12px; }
.workspace-priority-review textarea { min-height: 210px; padding: 14px; resize: vertical; }
.workspace-priority-review input:focus,.workspace-priority-review textarea:focus { border-color: var(--color-primary,#3154d8); outline: 3px solid #c8d2ff; outline-offset: 1px; background: var(--vr-surface); }
.workspace-priority-attachments { display: flex; align-items: center; gap: 10px 18px; flex-wrap: wrap; }
.workspace-priority-attachments .message-attachments { flex: 1 1 100%; }
.workspace-priority-attachments > p { margin: 0; color: var(--vr-muted); font-size: 13px; }
.prepared-delivery-plan { display:grid; grid-template-columns:minmax(190px,.72fr) minmax(300px,1.28fr); width:min(100%,760px); overflow:hidden; border:1px solid var(--vr-border); border-radius:12px; background:var(--vr-surface-soft); }
.prepared-send-now { display:flex; min-width:0; min-height:68px; align-items:center; gap:11px; max-width:none; padding:11px 14px; border:0; border-right:1px solid var(--vr-border); border-radius:0; background:transparent; color:var(--vr-ink); cursor:pointer; letter-spacing:normal; text-transform:none; }
.prepared-send-now input { flex:0 0 auto; width:17px; min-height:17px; height:17px; margin:0; padding:0; accent-color:var(--color-primary,#3154d8); }
.prepared-send-now strong { color:var(--vr-ink); font-size:12px; line-height:1.3; }
.prepared-send-now small { margin-top:2px; color:var(--vr-muted); font-size:11px; font-weight:500; line-height:1.35; letter-spacing:normal; text-transform:none; }
.prepared-send-now:has(input:checked) { background:color-mix(in srgb,var(--color-primary,#3154d8) 7%,var(--vr-surface)); }
.prepared-delivery-plan .post-contact-plan-summary { width:100%; max-width:none; min-height:68px; padding:11px 14px; border:0; border-radius:0; background:transparent; }
.workspace-priority-review form > footer { display: flex; justify-content: flex-start; padding-top: 2px; }
.workspace-priority-view-all { padding: 4px 0; font-size: 12px; font-weight: 650; }
.workspace-upcoming-group { margin: 0 0 var(--vr-space-4); }
.workspace-upcoming-divider { margin-top: 0; }
.workspace-upcoming-view-all { padding: 4px 0; font-size: 12px; font-weight: 650; }
.workspace-upcoming-window { display: grid; overflow: hidden; border: 1px solid var(--vr-border); border-radius: var(--vr-radius-lg); background: color-mix(in srgb,var(--vr-surface) 97%,#f3f6ff); box-shadow: 0 10px 28px rgba(24,42,82,.045); }
.workspace-upcoming-buckets { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.workspace-upcoming-buckets article { position: relative; display: grid; min-width: 0; align-content: start; padding: 18px 22px 16px; }
.workspace-upcoming-buckets article::before { position: absolute; top: 0; right: 22px; left: 22px; height: 2px; border-radius: 999px; background: color-mix(in srgb,var(--vr-ink) 10%,transparent); content: ""; }
.workspace-upcoming-buckets article.has-items { background: linear-gradient(145deg,color-mix(in srgb,var(--color-primary,#3154d8) 4%,transparent),transparent 64%); }
.workspace-upcoming-buckets article.has-items::before { background: var(--color-primary,#3154d8); }
.workspace-upcoming-buckets article + article { border-left: 1px solid color-mix(in srgb,var(--vr-ink) 9%,transparent); }
.workspace-upcoming-buckets article > span { display: block; color: var(--vr-muted); font-size: 10px; font-weight: 780; letter-spacing: .075em; text-transform: uppercase; }
.workspace-upcoming-buckets article > strong { display: flex; align-items: baseline; gap: 7px; margin-top: 6px; color: var(--vr-ink); line-height: 1; }
.workspace-upcoming-buckets article > strong b { font-size: 28px; font-weight: 680; letter-spacing: -.035em; }
.workspace-upcoming-buckets article > strong small { color: var(--vr-muted); font-size: 11px; font-weight: 620; letter-spacing: .01em; }
.workspace-upcoming-next { display: grid; grid-template-columns: auto minmax(0,1fr); min-width: 0; gap: 9px; margin: 12px 0 0; padding-top: 11px; border-top: 1px solid color-mix(in srgb,var(--vr-ink) 9%,transparent); color: var(--vr-muted); font-size: 12px; }
.workspace-upcoming-next time { color: var(--vr-ink); font-weight: 750; font-variant-numeric: tabular-nums; }
.workspace-upcoming-next span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-upcoming-clear { margin: 12px 0 0; padding-top: 11px; border-top: 1px solid color-mix(in srgb,var(--vr-ink) 7%,transparent); color: var(--vr-subtle); font-size: 11px; font-weight: 650; }
.workspace-upcoming-empty { margin: 0; color: var(--vr-muted); font-size: 13px; }
.workspace-work-area[hidden] { display: none; }
.workspace-work-area { margin: 0 0 var(--vr-space-4); }
.workspace-work-area > .workspace-priority-review { margin-top: 0; }
.workspace-queue-panel { position: relative; gap: 0; padding: 0; overflow: hidden; }
.workspace-queue-panel > header { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; padding: 18px 58px 18px 22px; border-bottom: 1px solid var(--vr-border); background: linear-gradient(115deg,color-mix(in srgb,var(--vr-surface) 94%,#eef2ff),var(--vr-surface)); }
.workspace-queue-panel > header h3 { font-size: 18px; }
.workspace-queue-panel > header .workspace-queue-close { position: absolute; top: 14px; right: 16px; }
.workspace-queue-close { display: inline-grid; width: 36px; height: 36px; place-items: center; padding: 0; border: 0; border-radius: 999px; appearance: none; background: transparent; color: var(--vr-muted); cursor: pointer; transition: background-color .16s ease,color .16s ease; }
.workspace-queue-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.workspace-queue-close:hover { background: color-mix(in srgb,var(--vr-ink) 6%,transparent); color: var(--vr-ink); }
.workspace-queue-close:active { background: color-mix(in srgb,var(--vr-ink) 10%,transparent); }
.workspace-queue-close:focus-visible { outline: 2px solid var(--color-primary,#3154d8); outline-offset: 2px; }
.workspace-queue-close:disabled { cursor: wait; opacity: .45; }
.workspace-queue-list { display: grid; grid-auto-rows: max-content; align-content: start; max-height: min(54vh,560px); margin: 0; padding: 0 22px; overflow-y: auto; overscroll-behavior: contain; list-style: none; scrollbar-gutter: stable; }
.workspace-queue-list li { display: grid; grid-template-columns: minmax(0,1fr) minmax(110px,auto) auto; align-items: center; gap: 18px; min-height: 88px; padding: 16px 0; border-top: 0; }
.workspace-queue-list li + li { border-top: 1px solid color-mix(in srgb,var(--vr-ink) 12%,transparent); }
.workspace-queue-list li:hover { background: linear-gradient(90deg,transparent,color-mix(in srgb,var(--color-primary,#3154d8) 3%,transparent),transparent); }
.workspace-queue-copy { display: grid; min-width: 0; gap: 3px; }
.workspace-queue-copy > strong { overflow: hidden; color: var(--vr-ink); font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.workspace-queue-copy > span,.workspace-queue-copy > small { overflow: hidden; color: var(--vr-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.workspace-queue-value { color: var(--vr-ink); font-size: 13px; font-weight: 650; }
.workspace-upcoming-list li { grid-template-columns: minmax(100px,auto) minmax(0,1fr) minmax(120px,auto); }
.workspace-upcoming-when,.workspace-upcoming-owner { display: grid; gap: 3px; }
.workspace-upcoming-when strong,.workspace-upcoming-owner strong { color: var(--vr-ink); font-size: 13px; }
.workspace-upcoming-when time,.workspace-upcoming-owner span { color: var(--vr-muted); font-size: 11px; }
.workspace-priority-preparing { margin: 0; padding: 14px 16px; border-radius: 10px; background: var(--vr-surface-soft); color: var(--vr-muted); }
.workspace-priority-state { position: relative; }
.workspace-priority-state > header:has(.workspace-panel-close) { padding-right: 46px; }
.workspace-priority-state > header .workspace-panel-close { position: absolute; top: 14px; right: 16px; }
.workspace-priority-state-actions { display: flex; align-items: center; gap: 10px; }
.workspace-priority-recovery-actions { flex-wrap: wrap; }
.workspace-priority-recovery-guidance { margin: 0; color: var(--vr-muted); font-size: 13px; line-height: 1.5; }
.workspace-priority-state .attention-action-preparation { margin: 0; }
.workspace-native-call { display: grid; gap: 10px; width: 100%; }
.workspace-native-call > p { margin: 0; color: var(--vr-muted); font-size: 13px; line-height: 1.5; }
.workspace-native-call > div { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.workspace-native-call a.button { min-width: 170px; text-align: center; text-decoration: none; }
.workspace-priority-state-notice { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--vr-surface-soft); color: var(--vr-muted); line-height: 1.5; }
.workspace-priority-state blockquote { margin: 0; padding: 14px 16px; border-left: 2px solid #c6cee3; border-radius: 0 10px 10px 0; background: var(--vr-surface-soft); color: var(--vr-ink); line-height: 1.55; }
.workspace-priority-whatsapp-body { display: grid; gap: 7px; color: var(--vr-muted); font-size: 12px; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; }
.workspace-priority-whatsapp-body textarea { width: 100%; min-height: 150px; padding: 14px; border: 1px solid var(--vr-border); border-radius: 10px; background: var(--vr-surface-soft); color: var(--vr-ink); font: 400 15px/1.55 inherit; letter-spacing: normal; resize: vertical; text-transform: none; }
.workspace-priority-whatsapp-body textarea:focus { border-color: var(--color-primary,#3154d8); outline: 3px solid #c8d2ff; outline-offset: 1px; background: var(--vr-surface); }
.workspace-priority-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.workspace-priority-form-grid label:last-child { grid-column: 1 / -1; }
.workspace-priority-form-error { margin: 0; color: var(--color-danger,#b4233b); font-size: 13px; font-weight: 650; }
.workspace-priority-history { display: grid; gap: 0; }
body.dark-mode .workspace-priority-review { background: #171f35; }
body.dark-mode .workspace-upcoming-window { background: #171f35; }
body.dark-mode .workspace-priority-more > div { background: #171f35; }
body.dark-mode .workspace-priority-other-channels > div { background: #171f35; }
body.dark-mode .workspace-priority-review input,body.dark-mode .workspace-priority-review textarea { background: #1e2842; }
body.dark-mode .attention-balance { background: #171f35; }
body.dark-mode .attention-balance-side.needs-you { --tile-accent: #ff9aae; }
body.dark-mode .attention-balance-side.under-control { --tile-accent: #b9c7ff; }
body.dark-mode .workspace-control-receipt { border-color: #376548; background: #182a20; color: #a5ddb9; }
body.dark-mode .workspace-control-receipt-icon { background: #23442f; }
body.dark-mode .workspace-control-receipt p { color: #9bc4a8; }
body.dark-mode .workspace-control-receipt .text-button { color: #a5ddb9 !important; }
body.dark-mode .workspace-priority-card { background: #171f35; }
body.dark-mode .workspace-priority-card blockquote { border-left-color: #506080; background: #1e2842; }
@media (max-width: 760px) {
  .attention-balance { grid-template-columns: 1fr; }
  .attention-balance-side + .attention-balance-side { border-top: 1px solid var(--vr-border); border-left: 0; }
  .workspace-priority-card { grid-template-columns: 1fr; }
  .workspace-priority-aside { min-width: 0; text-align: left; }
  .workspace-priority-corner { justify-content: flex-end; }
  .workspace-priority-action { width: 100%; }
  .workspace-priority-primary-actions { width: 100%; }
  .workspace-priority-primary-actions .workspace-priority-action { flex: 1; }
  .workspace-priority-next { grid-template-columns: 1fr; gap: 6px; }
  .workspace-priority-other-channels > div { right: 0; top: calc(100% + 5px); }
  .workspace-priority-review > header { align-items: flex-start; }
  .workspace-upcoming-buckets { grid-template-columns: 1fr; }
  .workspace-upcoming-buckets article { padding: 18px 20px 16px; }
  .workspace-upcoming-buckets article + article { border-top: 1px solid color-mix(in srgb,var(--vr-ink) 9%,transparent); border-left: 0; }
  .workspace-attention-list .workspace-queue-list li { grid-template-columns: minmax(0,1fr) auto; }
  .workspace-attention-list .workspace-queue-value { grid-column: 1; }
  .workspace-upcoming-list li { grid-template-columns: minmax(92px,auto) minmax(0,1fr); }
  .workspace-upcoming-owner { grid-column: 2; }
  .prepared-delivery-plan { grid-template-columns:1fr; }
  .prepared-send-now { border-right:0; border-bottom:1px solid var(--vr-border); }
  form[data-workspace-priority-whatsapp-form] .workspace-priority-state-actions { display:grid; grid-template-columns:1fr; width:100%; }
  form[data-workspace-priority-whatsapp-form] .prepared-delivery-plan { width:100%; }
  form[data-workspace-priority-whatsapp-form] .workspace-priority-state-actions > .button { width:100%; }
}
@media (max-width: 520px) {
  .workspace-intro #workspaceAttentionTitle { font-size: 32px; }
  .attention-balance-side { min-height: 0; padding: 18px 20px 20px; }
  .workspace-control-receipt { grid-template-columns: auto minmax(0,1fr) auto; }
  .workspace-control-receipt .text-button { grid-column: 2; justify-self: start; }
  .workspace-receipt-dismiss { grid-column: 3; grid-row: 1; }
  .workspace-priority-card { padding: 20px; }
  .workspace-priority-position { top: 20px; right: 20px; }
  .workspace-upcoming-window { border-radius: 16px; }
  .workspace-queue-panel > header { grid-template-columns: minmax(0,1fr) auto; padding-right: 52px; }
  .workspace-queue-panel > header .workspace-queue-close { top: 10px; right: 10px; }
  .workspace-attention-list .workspace-queue-list li { grid-template-columns: 1fr; }
  .workspace-attention-list .workspace-queue-list li > .button { grid-column: 1; justify-self: start; }
  .workspace-attention-list .workspace-queue-value { grid-column: 1; }
  .workspace-upcoming-list li { grid-template-columns: 1fr; }
  .workspace-upcoming-owner { grid-column: 1; }
  .workspace-priority-aside { width: 100%; }
  .workspace-priority-corner { justify-content: flex-end; }
  .workspace-priority-primary-actions { align-items: stretch; }
  .workspace-priority-more > summary { height: 100%; }
  .workspace-priority-next > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .workspace-priority-next .workspace-priority-selected-channel { grid-column: 1 / -1; width: 100%; margin-left:0; }
  .workspace-priority-channel-divider { display:none; }
  .workspace-priority-next button { text-align: left; }
  .workspace-priority-review { padding: 18px; }
  .workspace-priority-review > header { display: block; padding-right: 0; }
  .workspace-priority-state > header:has(.workspace-panel-close) { display: block; padding-right: 42px; }
  .workspace-priority-state > header .workspace-panel-close { top: 10px; right: 10px; }
  .workspace-priority-message-field > .workspace-priority-review-tools { top: -9px; right: 0; }
  .workspace-priority-review textarea { min-height: 180px; }
  .workspace-priority-review form > footer .button { width: 100%; }
  .workspace-priority-form-grid { grid-template-columns: 1fr; }
  .workspace-priority-form-grid label:last-child { grid-column: auto; }
}




/* Opportunity alternatives are menu rows; the canonical Next Action remains the button. */
.detail-more > .opportunity-more-menu {
  display: grid;
  width: max-content;
  min-width: 196px;
  max-width: min(280px,calc(100vw - 24px));
  padding: var(--vr-space-1);
  overflow-x: hidden;
}
.opportunity-more-group {
  display: grid;
  min-width: 0;
  padding: var(--vr-space-1) 0;
}
.opportunity-more-group + .opportunity-more-group {
  border-top: 1px solid var(--vr-line);
}
body .opportunity-more-menu .opportunity-more-action,
body .detail-more > .opportunity-more-menu .opportunity-more-action {
  display: flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
  border: 0 !important;
  border-radius: 5px;
  padding: 8px 12px;
  background: transparent !important;
  color: #3f4b63 !important;
  font-size: var(--vr-text-sm);
  font-weight: 500;
  line-height: 1.25;
  text-align: left;
  white-space: nowrap;
  box-shadow: none !important;
}
body .opportunity-more-menu .opportunity-more-action:hover,
body .opportunity-more-menu .opportunity-more-action:focus-visible {
  border: 0 !important;
  background: #f3f5f9 !important;
  color: #17213a !important;
}
body .opportunity-more-menu .opportunity-more-action--danger {
  color: #a61b1b !important;
}
body .opportunity-more-menu .opportunity-more-action--danger:hover,
body .opportunity-more-menu .opportunity-more-action--danger:focus-visible {
  background: #fff1f1 !important;
  color: #8f1515 !important;
}
body.dark-mode .opportunity-more-group + .opportunity-more-group { border-color: #45536d; }
body.dark-mode .opportunity-more-menu .opportunity-more-action { color: #dce3f3 !important; }
body.dark-mode .opportunity-more-menu .opportunity-more-action:hover,
body.dark-mode .opportunity-more-menu .opportunity-more-action:focus-visible {
  background: #28345b !important;
  color: #f4f6ff !important;
}
body.dark-mode .opportunity-more-menu .opportunity-more-action--danger { color: #ffaaa5 !important; }
body.dark-mode .opportunity-more-menu .opportunity-more-action--danger:hover,
body.dark-mode .opportunity-more-menu .opportunity-more-action--danger:focus-visible {
  background: #4a2328 !important;
  color: #ffd4d1 !important;
}
@media (max-width: 640px) {
  body .opportunity-more-menu .opportunity-more-action,
  body .detail-more > .opportunity-more-menu .opportunity-more-action { min-height: var(--vr-tap); }
}

/* Public hero polish: one main action and true-alpha standing artwork. */
.landing-page .landing-story-invite{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:20px 0 32px;padding:22px 26px;border:1px solid var(--landing-border,#d8e0f0);border-radius:14px;background:var(--landing-surface,#fff)}
.landing-story-invite h2{margin:0;font-size:18px;font-weight:600;letter-spacing:-.02em}
.landing-story-invite p{margin:6px 0 0;font-size:13px;line-height:1.6;color:var(--landing-muted)}
.landing-page .landing-story-invite .button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 18px;white-space:nowrap;text-decoration:none;font-size:13px;border-radius:9px}
body.dark-mode .landing-page .landing-story-invite{background:#131c30;border-color:#2d3b57}
@media(max-width:680px){.landing-page .landing-story-invite{align-items:flex-start;flex-direction:column;gap:16px;padding:20px}}
.landing-page .hero-polished{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:36px;min-height:600px;padding:64px clamp(24px,4.5vw,64px);background:#f5f7fc}
.landing-page .hero-polished::before,.hero-polished .landing-visual-glow{display:none}
.hero-polished h1{font-size:clamp(2.8rem,4.6vw,4.4rem);line-height:1.06;letter-spacing:-.05em}
.hero-polished .landing-positioning{margin-top:24px;font-size:clamp(1.15rem,1.8vw,1.4rem)}
.hero-polished .landing-explanation{font-size:15px;max-width:440px;margin-top:12px}
.hero-polished .landing-actions{display:flex;align-items:stretch;gap:12px;margin-top:28px;flex-wrap:wrap}
.landing-page .hero-polished .landing-actions .button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 20px;border-radius:9px;font-size:13px;font-weight:600;line-height:1.3;text-decoration:none!important;box-shadow:none;margin:0}
.hero-polished .landing-note{margin-top:12px;font-size:12px;line-height:1.5;color:var(--landing-muted)}

.hero-polished .landing-mascot-scene{position:relative;inset:auto;width:100%;height:100%}
.hero-polished .landing-mascot-scene img{position:static;inset:auto;width:100%;height:100%;object-fit:contain;border-radius:0;filter:none;-webkit-mask-image:none;mask-image:none}
body.dark-mode .landing-page .hero-polished{background:#131c30}

body.dark-mode .landing-pricing-link{color:#a6b1ff}
@media(max-width:900px){.landing-page .hero-polished{gap:24px;padding:40px 28px;min-height:0}}
@media(max-width:680px){.landing-page .hero-polished{grid-template-columns:1fr;gap:24px;padding:32px 20px}.hero-polished h1{font-size:clamp(2.4rem,8vw,3.2rem)}.landing-page .hero-polished .landing-actions{display:grid;grid-template-columns:1fr;width:100%}.landing-page .hero-polished .landing-actions .button{width:100%}}
.attention-task-footer.opportunity-utility-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 4px 12px;
  padding: 8px 0;
}
.attention-task-footer.opportunity-utility-actions > button {
  flex: 0 0 auto;
  width: auto;
  min-height: 44px;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
}
.attention-task-footer.opportunity-utility-actions > button:hover {
  background: var(--color-surface-soft, rgba(65, 80, 230, .06));
  text-decoration: underline;
}
.attention-task-footer.opportunity-utility-actions > button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Signed-in application shell — Follow-up stays focused while broader work lives in Opportunities. */
.mobile-sidebar-toggle,
.sidebar-scrim { display: none; }
.auth-pending .mobile-sidebar-toggle,
.business-access-removed .mobile-sidebar-toggle { display: none !important; }
.signed-in-mode .shell { max-width: 1500px; }
.signed-in-app {
  display: grid;
  grid-template-columns: 220px minmax(0,1fr);
  align-items: start;
  gap: var(--vr-space-6);
  margin-top: var(--vr-space-5);
}
.app-content { min-width: 0; }
.app-sidebar {
  position: sticky;
  z-index: 10;
  top: var(--vr-space-4);
  display: flex;
  min-height: calc(100vh - 132px);
  flex-direction: column;
  padding: var(--vr-space-2);
  border: 1px solid var(--vr-border);
  border-radius: var(--vr-radius-lg);
  background: color-mix(in srgb,var(--vr-surface) 94%,transparent);
  box-shadow: var(--vr-shadow-sm);
  transition: width .18s ease;
}
body.signed-in-mode { overflow-x: hidden; }
.app-sidebar-nav { display: grid; gap: 2px; }
.app-sidebar-divider { display: block; height: 1px; margin: 8px 12px; background: var(--vr-border); }
.app-sidebar-item,
.app-sidebar-collapse {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--vr-muted);
  font: 650 14px/1.2 inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.app-sidebar-item svg,
.app-sidebar-collapse svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.signed-in-app .app-sidebar .app-sidebar-item { color: var(--vr-muted); }
.signed-in-app .app-sidebar .app-sidebar-item:hover,
.app-sidebar-collapse:hover { color: var(--vr-ink); background: var(--vr-surface-soft); }
.app-sidebar-item:focus-visible,
.app-sidebar-collapse:focus-visible,
.mobile-sidebar-toggle:focus-visible { outline: 3px solid #7690f8; outline-offset: 2px; }
.signed-in-app .app-sidebar .app-sidebar-item.active {
  color: var(--color-primary,#3154d8);
  background: #e9eeff;
}
.app-sidebar-item.active svg { stroke-width: 2.1; }
.app-sidebar-collapse {
  position: absolute;
  z-index: 3;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  justify-content: center;
  width: 32px;
  min-height: 32px;
  padding: 7px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--vr-muted);
  opacity: .72;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  transition: none;
}
.app-sidebar-collapse svg {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
  stroke-width: 1.7;
}
.app-sidebar-collapse > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.app-sidebar-collapse:hover,
.app-sidebar-collapse:active,
.app-sidebar-collapse:focus {
  background: transparent;
  color: var(--vr-muted);
  box-shadow: none;
  filter: none;
}
.app-sidebar-collapse:active { transform: translateY(-50%); }
.app-sidebar-collapse:focus:not(:focus-visible) { outline: 0; }
.app-sidebar-collapse svg { transition: transform .18s ease; }
.sidebar-collapsed { grid-template-columns: 72px minmax(0,1fr); }
.sidebar-collapsed .app-sidebar-item,
.sidebar-collapsed .app-sidebar-collapse { justify-content: center; padding: 7px; }
.sidebar-collapsed .app-sidebar-item > span,
.sidebar-collapsed .app-sidebar-collapse > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sidebar-collapsed .app-sidebar-collapse svg { transform: rotate(180deg); }
.follow-up-view > .workspace-intro { padding-bottom: var(--vr-space-3); }
.workspace-priority-divider {
  display: grid;
  grid-template-columns: auto minmax(24px,1fr) auto;
  align-items: center;
  gap: var(--vr-space-3);
  margin: var(--vr-space-5) 0 var(--vr-space-3);
}
.workspace-priority-divider[hidden] { display: none; }
.workspace-priority-divider h2 {
  color: var(--vr-muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.workspace-priority-divider > span { height: 1px; background: var(--vr-border); }
.workspace-priority-divider > .workspace-priority-view-all[hidden] { display: none; }
#workspacePriorityDivider { display: flex; min-height: 24px; align-items: center; justify-content: space-between; margin-bottom: 8px; }
#workspacePriorityDivider[hidden] { display: none; }
#workspacePriorityDivider > span { display: none; }
.opportunities-view { display: grid; gap: var(--vr-space-4); }
.opportunities-view[hidden] { display: none; }
#workspace.is-opportunity-detail > :not(#opportunityDetailPage) { display: none !important; }
.opportunity-detail-page { display: grid; width: min(100%,1080px); margin: 24px auto 72px; gap: var(--vr-space-4); }
.opportunity-detail-page[hidden] { display: none; }
.opportunity-detail-header { display: flex; align-items: end; justify-content: space-between; gap: var(--vr-space-5); padding: var(--vr-space-3) 0 var(--vr-space-4); border-bottom: 1px solid var(--vr-border); }
.opportunity-detail-back { min-height: 40px; margin: 0 0 10px; padding-left: 0; }
.opportunity-detail-header h1 { margin: 4px 0 5px; color: var(--vr-ink); font-size: clamp(30px,4vw,44px); letter-spacing: -.035em; }
.opportunity-detail-header p:last-child { margin: 0; color: var(--vr-muted); }
.opportunity-detail-header-side { display: grid; justify-items: end; gap: 14px; }
.opportunity-detail-header-side > strong { color: var(--vr-ink); font-size: 28px; letter-spacing: -.025em; }
.opportunity-detail-header-side > div { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.opportunity-detail-summary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--vr-space-3); }
.opportunity-detail-summary article,.opportunity-detail-card { border: 1px solid var(--vr-border); border-radius: var(--vr-radius-lg); background: var(--vr-surface); box-shadow: var(--vr-shadow-sm); }
.opportunity-detail-summary article { display: grid; gap: 5px; padding: 18px 20px; }
.opportunity-detail-summary span,.opportunity-detail-card .eyebrow { color: var(--vr-muted); font-size: 12px; font-weight: 750; letter-spacing: .055em; text-transform: uppercase; }
.opportunity-detail-summary strong { color: var(--vr-ink); font-size: 18px; }
.opportunity-detail-summary small { color: var(--vr-muted); font-size: 13px; }
.opportunity-detail-card { display: grid; align-content: start; gap: 16px; padding: 22px; }
.opportunity-detail-card header h2 { margin: 4px 0 0; color: var(--vr-ink); font-size: 20px; }
.opportunity-detail-card header p { margin: 0; }
.opportunity-detail-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px 22px; margin: 0; }
.opportunity-detail-facts div { min-width: 0; }
.opportunity-detail-facts dt { margin-bottom: 5px; color: var(--vr-muted); font-size: 11px; font-weight: 750; letter-spacing: .055em; text-transform: uppercase; }
.opportunity-detail-facts dd { margin: 0; overflow-wrap: anywhere; color: var(--vr-ink); }
.opportunity-detail-more { margin-top: 18px; border-top: 1px solid var(--vr-border, #dde2ed); padding-top: 14px; }
.opportunity-detail-more > summary { display: inline-flex; align-items: center; gap: 6px; color: var(--color-primary, #3448df); font-size: 13px; font-weight: 600; cursor: pointer; list-style: none; }
.opportunity-detail-more > summary::-webkit-details-marker { display: none; }
.opportunity-detail-more > summary::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.opportunity-detail-more[open] > summary::after { transform: rotate(-135deg); }
.opportunity-detail-more > .opportunity-detail-facts { margin-top: 16px; }
.opportunity-detail-columns { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: var(--vr-space-3); align-items: start; }
.opportunity-detail-notes,.opportunity-detail-card .opportunity-history-list { display: grid; gap: 8px; margin: 0; }
.opportunity-detail-note-form { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--vr-border); }
.opportunity-detail-note-form[hidden] { display: none; }
.opportunity-detail-note-form label { display: grid; gap: 7px; color: var(--vr-muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.opportunity-detail-note-form textarea { min-height: 100px; resize: vertical; }
.opportunity-detail-note-form > div { display: flex; justify-content: flex-end; gap: 8px; }
.business-access-removed .signed-in-app { grid-template-columns: 1fr; }
.business-access-removed .app-sidebar { display: none; }
body.dark-mode .app-sidebar { background: #171f35; }
body.dark-mode .signed-in-app .app-sidebar .app-sidebar-item { color: #aeb7c9; }
body.dark-mode .signed-in-app .app-sidebar .app-sidebar-item.active { color: #c7d2ff; background: #27345d; }

@media (max-width: 900px) {
  .opportunity-detail-columns { grid-template-columns: 1fr; }
  .signed-in-app,
  .sidebar-collapsed { grid-template-columns: minmax(0,1fr); }
  .mobile-sidebar-toggle {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border: 1px solid var(--vr-border);
    border-radius: 10px;
    background: var(--vr-surface);
    color: var(--vr-ink);
    font: 700 18px inherit;
    cursor: pointer;
  }
  .signed-out-mode .mobile-sidebar-toggle { display: none; }
  .app-sidebar {
    position: fixed;
    z-index: 110;
    top: 12px;
    bottom: 12px;
    left: 12px;
    width: min(280px,calc(100vw - 52px));
    min-height: 0;
    transform: translateX(calc(-100% - 24px));
    transition: transform .2s ease;
  }
  .mobile-sidebar-open .app-sidebar { transform: translateX(0); }
  body.mobile-sidebar-open { overflow: hidden; }
  .sidebar-collapsed .app-sidebar-item,
  .sidebar-collapsed .app-sidebar-collapse { justify-content: flex-start; padding-inline: 12px; }
  .sidebar-collapsed .app-sidebar-item > span,
  .sidebar-collapsed .app-sidebar-collapse > span { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
  .sidebar-collapsed .app-sidebar-collapse svg { transform: none; }
  .app-sidebar-collapse { display: none; }
  .sidebar-scrim {
    position: fixed;
    z-index: 105;
    inset: 0;
    border: 0;
    background: rgba(12,20,42,.46);
  }
  .mobile-sidebar-open .sidebar-scrim { display: block; }
}

@media (max-width: 700px) {
  .opportunity-detail-header { align-items: stretch; flex-direction: column; }
  .opportunity-detail-header-side { justify-items: start; }
  .opportunity-detail-header-side > div { justify-content: flex-start; }
  .opportunity-detail-summary,
  .opportunity-detail-facts { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .signed-in-mode .modern-topbar .brand-wordmark { display: none; }
  .signed-in-mode .modern-topbar { gap: 8px; }
  .signed-in-mode .modern-topbar .user-controls { min-width: 0; }
  .signed-in-mode .modern-topbar .plan-status { display: none; }
  .workspace-priority-divider { margin-top: var(--vr-space-4); }
}

/* Routed configuration — account controls live where users expect to find them. */
#accountDialog[open] {
  position: static;
  inset: auto;
  display: block;
  width: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#accountDialog[hidden],
#accountDialog .settings-section[hidden],
#accountDialog .account-footer[hidden] { display: none !important; }
#accountDialog > form { display: grid; gap: var(--vr-space-4); padding: 0; }
#accountDialog .configuration-modal-close { display: none; }
#accountDialog .dialog-heading { margin: 0; padding: var(--vr-space-3) 0 0; }
#accountDialog .dialog-heading h2 { margin-top: 6px; color: var(--vr-ink); font-size: clamp(27px,3vw,36px); font-weight: 720; letter-spacing: -.03em; }
#accountDialog .dialog-copy { max-width: 720px; margin: 0 0 var(--vr-space-2); color: var(--vr-muted); font-size: 14px; line-height: 1.55; }
#accountDialog .account-sections { width: 100%; }
#accountDialog .account-footer { position: sticky; z-index: 4; bottom: 0; margin: var(--vr-space-2) 0 0; padding: var(--vr-space-3); border: 1px solid var(--vr-border); border-radius: var(--vr-radius-md); background: color-mix(in srgb,var(--vr-surface) 94%,transparent); box-shadow: 0 -8px 24px rgba(23,33,58,.06); }
#accountDialog .settings-section { background: var(--vr-surface); }
#accountDialog .settings-connections,
#accountDialog .settings-subscription { border-bottom: 0; }
.modern-topbar .plan-status {
  min-height: auto;
  padding: 4px 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--vr-muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
body.dark-mode .modern-topbar .plan-status { border: 0; background: transparent; color: #aeb7c9; }

.account-menu-dialog { width: min(340px,calc(100vw - 24px)); padding: 0; }
.account-menu-dialog form { display: grid; gap: 0; padding: 10px; }
.account-menu-identity { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 10px 10px 14px; border-bottom: 1px solid var(--vr-border); }
.account-menu-identity > div { display: grid; min-width: 0; gap: 4px; }
.account-menu-identity strong { color: var(--vr-ink); font-size: 14px; overflow-wrap: anywhere; }
.account-menu-identity span { color: var(--vr-muted); font-size: 12px; overflow-wrap: anywhere; }
.account-menu-dialog nav { display: grid; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--vr-border); }
.account-menu-dialog nav button,
.account-menu-signout { min-height: 42px; padding: 9px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--vr-ink); font: 650 13px/1.3 inherit; text-align: left; cursor: pointer; }
.account-menu-dialog nav button:hover,
.account-menu-dialog nav button:focus-visible,
.account-menu-signout:hover,
.account-menu-signout:focus-visible { background: var(--vr-surface-soft); outline: 0; }
.account-menu-signout { margin-top: 8px; color: var(--color-danger,#c62f45); }

@media (max-width: 640px) {
  #accountDialog[open] { width: 100%; }
  #accountDialog > form { padding: 0; }
  #accountDialog .account-footer { bottom: 8px; }
}
#followUpEmpty { display: flex; align-items: center; justify-content: center; gap: 28px; padding: 36px 24px; margin: 20px 0; }
#followUpEmpty[hidden] { display: none; }
#followUpEmpty img { object-fit: contain; flex: 0 0 120px; }
#followUpEmpty h2 { font-size: 21px; margin: 0 0 10px; }
#followUpEmpty p { color: var(--color-text-muted); font-size: 14px; margin: 0 0 20px; }
@media(max-width:560px) { #followUpEmpty { flex-direction: column; text-align: center; gap: 16px; } }
#followUpView .workspace-conversation-card { position:relative; overflow:visible; border:1px solid color-mix(in srgb,var(--color-primary,#3154d8) 15%,var(--vr-border)); padding:26px 28px; gap:24px; margin-top:24px; background:linear-gradient(112deg,var(--vr-surface) 0%,color-mix(in srgb,var(--vr-surface) 92%,#e8edff) 100%); box-shadow:0 14px 32px rgba(24,42,82,.075); }
#followUpView .workspace-conversation-card::after { position:absolute; top:-1px; bottom:-1px; left:-1px; width:min(42%,360px); box-sizing:border-box; border-top:3px solid var(--color-attention-accent); border-left:4px solid var(--color-attention-accent); border-radius:var(--vr-radius-lg) 0 0 var(--vr-radius-lg); content:""; pointer-events:none; }
#followUpView .workspace-conversation-card .workspace-priority-reason { margin:0 0 8px; color:var(--color-attention); font-size:10px; font-weight:800; letter-spacing:.09em; }
#followUpView .workspace-conversation-card .workspace-priority-copy h3 { font-size: 23px; margin: 0 0 5px; }
#followUpView .workspace-conversation-opportunity { color: var(--color-text-muted); font-size: 14px; margin: 0 0 12px; }
#followUpView .workspace-conversation-card .workspace-priority-meta { margin: 0 0 18px; font-size: 12px; }
#followUpView .workspace-conversation-card blockquote { padding: 18px 20px; border-left: 2px solid #bac6f0; border-radius: 0 10px 10px 0; font-size: 15px; line-height: 1.65; }
#followUpView .workspace-conversation-card .workspace-conversation-empty { font-size: 13px; color: var(--color-text-muted); line-height: 1.6; }
#followUpView .workspace-priority-action[aria-expanded="true"] { background: transparent; color: var(--color-text-secondary); border: 1px solid var(--color-border); box-shadow: none; }
.follow-up-empty-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
/* Free / Pro marketing alignment; legacy account plans remain supported. */
.landing-plan-grid.landing-plan-grid-two{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:640px){.landing-plan-grid.landing-plan-grid-two{grid-template-columns:1fr}}
.team-access-grace{margin:12px 24px;padding:12px 18px;border:1px solid #d9dfef;border-radius:12px;background:#f0f3ff;color:#27395e;font-size:13px;line-height:1.5}.team-access-grace[hidden]{display:none}

/* Shared AfterLeads finish: quiet confidence, clear hierarchy and restrained motion. */
body:not(.dark-mode) .app-content {
  background-color:#f6f8fc;
  background-image:radial-gradient(circle at 82% -12%,rgba(67,96,213,.075),transparent 32rem),radial-gradient(circle at -8% 56%,rgba(33,116,94,.035),transparent 28rem);
}
.modern-topbar { box-shadow:0 1px 0 rgba(26,41,76,.055),0 6px 20px rgba(26,41,76,.025); }
.panel { box-shadow:0 8px 24px rgba(23,33,58,.045); }
:where(.button,.row-action,.text-button,.nav-item,.workspace-priority-selected-channel) {
  transition:border-color 160ms ease,background-color 160ms ease,color 160ms ease,box-shadow 160ms ease,transform 160ms ease;
}
:where(.button,.row-action,.workspace-priority-selected-channel):not(:disabled):active { transform:translateY(1px); }
body.dark-mode .app-content { background-image:radial-gradient(circle at 82% -12%,rgba(99,123,244,.11),transparent 32rem); }

/* Keep the signed-in footer in the application content lane. It must never
   sit beneath the persistent sidebar or retain the public-page max width. */
body.signed-in-mode .site-footer {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  max-width: none;
  width: auto;
  margin: 28px var(--vr-space-6) 0 calc(220px + (var(--vr-space-6) * 2));
  padding: 18px 0 28px;
}
body.signed-in-mode:has(#signedInApp.sidebar-collapsed) .site-footer {
  margin-left: calc(72px + (var(--vr-space-6) * 2));
}
body.signed-in-mode .site-footer-brand { display: grid; gap: 2px; min-width: 0; }
body.signed-in-mode .site-footer-brand strong { color: var(--vr-ink); font-size: 13px; }
body.signed-in-mode .site-footer-brand span,
body.signed-in-mode .site-footer-brand small { color: var(--vr-muted); font-size: 11px; line-height: 1.4; }
body.signed-in-mode .site-footer-navigation { display: flex; align-items: flex-end; flex-direction: column; gap: 8px; min-width: 0; }
body.signed-in-mode .site-footer-social { display: none; }
body.signed-in-mode .site-footer-legal { justify-content: flex-end; gap: 14px; }
@media (max-width: 900px) {
  body.signed-in-mode .site-footer,
  body.signed-in-mode:has(#signedInApp.sidebar-collapsed) .site-footer {
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 24px var(--vr-space-5) 0;
    padding-bottom: 28px;
  }
  body.signed-in-mode .site-footer-navigation { align-items: flex-start; }
  body.signed-in-mode .site-footer-legal { justify-content: flex-start; }
}
@media (max-width: 520px) {
  body.signed-in-mode .site-footer,
  body.signed-in-mode:has(#signedInApp.sidebar-collapsed) .site-footer { margin-inline: var(--vr-space-3); }
  body.signed-in-mode .site-footer-legal { gap: 10px 14px; }
}
@media (prefers-reduced-motion:reduce) {
  :where(.button,.row-action,.text-button,.nav-item,.workspace-priority-selected-channel) { transition:none; }
}

/* A single opportunity-level choice: review every routine email, or permit only eligible automatic sends. */
.routine-policy-card { display: grid; gap: 12px; margin: 0; padding: 18px; border: 1px solid var(--vr-border); border-radius: 14px; background: linear-gradient(135deg,var(--vr-surface),var(--vr-surface-soft)); }
.routine-policy-card legend { padding: 0 6px; color: var(--vr-muted); font-size: 11px; font-weight: 780; letter-spacing: .075em; text-transform: uppercase; }
.routine-policy-setting { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 18px; }
.routine-policy-setting > div { display: grid; gap: 5px; }
.routine-policy-setting strong { color: var(--vr-ink); font-size: 14px; }
.routine-policy-setting p,.routine-policy-setting small,.routine-policy-help { margin: 0; color: var(--vr-muted); font-size: 12px; line-height: 1.5; }
.routine-policy-setting small { color: var(--color-primary,#3154d8); }
.routine-policy-card .product-email-switch { position: relative; display: block; flex: 0 0 auto; width: 44px; height: 25px; cursor: pointer; }
.routine-policy-card .product-email-switch input { position: absolute; width: 1px; min-height: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.routine-policy-card .product-email-switch > span { position: absolute; inset: 0; border: 1px solid var(--vr-border); border-radius: 999px; background: var(--vr-surface); transition: background-color .16s ease,border-color .16s ease; }
.routine-policy-card .product-email-switch > span::after { content:""; position:absolute; top:3px; left:3px; width:17px; height:17px; border-radius:50%; background:var(--vr-muted); box-shadow:0 1px 3px rgba(15,23,42,.22); transition:transform .16s ease,background-color .16s ease; }
.routine-policy-card .product-email-switch input:checked + span { border-color: var(--color-primary,#3154d8); background: var(--color-primary,#3154d8); }
.routine-policy-card .product-email-switch input:checked + span::after { background:#fff; transform:translateX(19px); }
.routine-policy-card .product-email-switch input:focus-visible + span { outline:3px solid rgba(49,84,216,.28); outline-offset:2px; }
.routine-policy-card .product-email-switch input:disabled + span { opacity:.55; cursor:not-allowed; }
.routine-policy-card [data-routine-status]:empty,.routine-policy-card .routine-policy-help:empty { display:none; }
@media (max-width: 520px) { .routine-policy-setting { gap: 12px; } }

/* Files are an opportunity library, not an attachment decision surface. */
.workspace-priority-more-protective button:not(.danger-text) { color: var(--vr-ink); }
.workspace-priority-more-protective button:not(.danger-text):hover,
.workspace-priority-more-protective button:not(.danger-text):focus-visible { background: var(--vr-surface-soft); color: var(--color-primary,#3154d8); }
#opportunityFilesDialog { position: relative; width: min(620px, calc(100vw - 32px)); padding: 26px; border: 1px solid var(--vr-border); border-radius: 16px; box-shadow: 0 24px 64px rgba(24,42,82,.2); }
#opportunityFilesDialog .opportunity-files-close { position: absolute; top: 12px; right: 12px; z-index: 1; }
#opportunityFilesDialog .opportunity-files-header { padding-right: 42px; }
#opportunityFilesDialog::backdrop { background: rgba(21,31,54,.34); backdrop-filter: blur(3px); }
#opportunityFilesDialog h2 { margin: 3px 0 7px; color: var(--vr-ink); font-size: 22px; letter-spacing: -.025em; }
.opportunity-files-header { padding-bottom: 16px; border-bottom: 1px solid var(--vr-border); }
.opportunity-files-header .eyebrow { margin: 0; color: var(--color-primary,#3154d8); }
.opportunity-files-header p:last-child { max-width: 54ch; margin: 0; color: var(--vr-muted); font-size: 13px; line-height: 1.55; }
.opportunity-file-upload { display: inline-flex; margin-top: 18px; }
.opportunity-file-upload input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.opportunity-file-guidance { display: block; margin-top: 8px; color: var(--vr-muted); font-size: 12px; }
.opportunity-file-row { transition: background-color 160ms ease; }
.opportunity-file-row:hover { background: var(--vr-surface-soft); }

/* First run: two ways in, and the short enquiry page setup. */
.first-run-doors { display: grid; gap: 12px; margin: 16px 0; }
.first-run-door { display: grid; gap: 6px; padding: 16px; border: 1px solid var(--color-border); border-radius: 14px; background: var(--color-surface-muted); }
.first-run-door small { color: var(--color-text-muted); line-height: 1.45; }
.first-run-door-kicker { color: var(--color-primary, #3c4bcf); font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.first-run-door strong { font-size: 17px; }
.first-run-door-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.first-run-ready-fields { margin: 16px 0 8px; }
.first-run-ready-error { margin: 0 0 8px; color: var(--color-danger, #b42318); font-size: 14px; }
.first-run-ready-error[hidden] { display: none; }

/* Sharing the enquiry page: link, WhatsApp and QR code. */
.enquiry-share { display: grid; gap: 10px; margin: 14px 0; }
.enquiry-share-link { display: flex; align-items: center; gap: 6px; padding: 4px 4px 4px 14px; border: 1px solid var(--color-border); border-radius: 10px; background: var(--color-surface); }
.enquiry-share-link:focus-within { border-color: var(--color-accent); }
.enquiry-share .enquiry-share-link input[type="text"] { flex: 1 1 auto; min-width: 0; padding: 0; border: 0; background: transparent; color: var(--color-text-secondary); font-size: 14px; text-overflow: ellipsis; box-shadow: none; outline: none; }
.enquiry-share-link .button { min-height: 36px; padding: 0 16px; }
.enquiry-share-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
.enquiry-share-actions .text-button,.enquiry-share-actions a,#workspaceReady .workspace-ready-hint .text-button { display: inline-flex; align-items: center; min-height: 32px; padding: 0; font: 600 14px/1.4 inherit; text-decoration: none; }
.enquiry-share-qr { display: grid; justify-items: start; gap: 8px; margin: 4px 0 0; }
.enquiry-share-qr[hidden] { display: none; }
.enquiry-share-qr img { width: 200px; height: 200px; padding: 8px; border-radius: 12px; background: #fff; image-rendering: pixelated; }
.enquiry-share-qr figcaption { color: var(--color-text-muted); font-size: 13px; }

/* A brand new workspace: ready for the first enquiry. */
#workspaceReady { display: flex; align-items: flex-start; gap: 24px; max-width: 680px; margin: 24px auto; padding: 28px 24px; }
#workspaceReady[hidden] { display: none; }
#workspaceReady > img { flex: 0 0 88px; width: 88px; height: 88px; object-fit: contain; }
#workspaceReady > div { flex: 1 1 auto; min-width: 0; }
#workspaceReady h2 { margin: 0 0 6px; font-size: 21px; }
#workspaceReady p { margin: 0; color: var(--color-text-muted); font-size: 14px; }
/* The share box and the customise link read as one row of quiet actions. */
.workspace-ready-share { display: flex; flex-wrap: wrap; align-items: center; column-gap: 20px; margin: 16px 0 0; }
.workspace-ready-share .enquiry-share { display: contents; }
.workspace-ready-share .enquiry-share-link { flex: 1 1 100%; margin-bottom: 8px; }
.workspace-ready-share .enquiry-share-qr { flex: 1 1 100%; order: 3; margin-top: 8px; }
#workspaceReady .workspace-ready-hint { order: 2; }
#workspaceReady .workspace-ready-hint[hidden] { display: none; }
.workspace-ready-first { display: grid; gap: 4px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--color-border); }
.workspace-ready-first strong { font-size: 15px; }
.workspace-ready-first span { color: var(--color-text-muted); font-size: 14px; }
.workspace-ready-first .follow-up-empty-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 12px; }
.workspace-ready-first .text-button { font-size: 14px; font-weight: 600; }
@media (max-width: 560px) {
  #workspaceReady { flex-direction: column; gap: 12px; padding: 20px 4px; }
  #workspaceReady > img { flex-basis: auto; width: 72px; height: 72px; }
  .enquiry-share-actions { gap: 0 18px; }
  .enquiry-share-actions .text-button,.enquiry-share-actions a,#workspaceReady .workspace-ready-hint .text-button { min-height: 44px; }
}
