:root {
  --ink: #004030;
  --muted: #4d665e;
  --line: #d8e6df;
  --paper: #f7fbf8;
  --panel: #ffffff;
  --field: #f4f8f6;
  --forest: #004030;
  --forest-dark: #003d31;
  --green: #1e8459;
  --orange: #f1892f;
  --cream: #fdf7f2;
  --success: #e0a639;
  --shadow: 0 18px 38px rgba(0, 64, 48, 0.1);
  --radius: 8px;

  /* Supporting palette — icons, status badges, small metric accents only.
     Never used for large surfaces; see design-system guidance in the brief. */
  --mint: #dcf1e6;
  --support-blue: #5b8def;
  --support-blue-tint: #e4ecff;
  --support-coral: #ef6f6c;
  --support-coral-tint: #fdeae9;
  --support-lavender: #8b7cf6;
  --support-lavender-tint: #ece9fe;
  --support-yellow: #d99a2b;
  --support-yellow-tint: #faf0dc;
  --support-pink: #e0608f;
  --support-pink-tint: #fbe6ee;

  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-script: "Caveat", cursive;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  font-family: var(--font-sans);
}

button,
input,
select,
textarea {
  font: inherit;
}

.sidebar {
  background: var(--forest);
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 24px 18px;
}

.brand {
  display: grid;
  gap: 10px;
  margin-bottom: 30px;
}

.brand img {
  background: #fff;
  border-radius: var(--radius);
  display: block;
  max-width: 172px;
  padding: 8px;
  width: 100%;
}

.brand span {
  color: #e7f3ee;
  font-size: 0.78rem;
  font-weight: 700;
}

nav {
  display: grid;
  gap: 6px;
}

.nav-btn {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: #e7f3ee;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  padding: 11px 12px;
  text-align: left;
}

.nav-btn:hover,
.nav-btn.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.nav-badge {
  background: var(--orange);
  border-radius: 999px;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
}

.nav-badge[hidden] {
  display: none;
}

.sidebar-support {
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  display: flex;
  font-size: 0.82rem;
  gap: 10px;
  margin-top: 16px;
  padding: 12px;
}

.sidebar-support strong {
  color: #fff;
  display: block;
  font-size: 0.85rem;
}

.sidebar-support .muted {
  color: #b9d0c7;
}

.support-icon svg {
  height: 18px;
  width: 18px;
}

.sidebar-support-btn {
  display: block;
  font-size: 0.82rem;
  margin: 8px 0 0;
  padding: 9px 12px;
  text-align: center;
  text-decoration: none;
}

.app-shell {
  min-width: 0;
  padding: 28px;
}

.topbar {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr auto 1fr;
  margin-bottom: 22px;
}

.topbar > div {
  text-align: center;
}

.search-wrap {
  align-items: center;
  display: flex;
  max-width: 360px;
  position: relative;
}

.input-icon {
  color: var(--muted);
  left: 12px;
  pointer-events: none;
  position: absolute;
}

.input-icon svg {
  display: block;
  height: 16px;
  width: 16px;
}

.search-input {
  padding-left: 36px;
  width: 100%;
}

.search-input:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.topbar-actions {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.icon-btn {
  align-items: center;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  padding: 9px;
  position: relative;
}

.icon-btn.has-unread {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(241, 137, 47, 0.16);
  color: var(--orange);
}

.icon-btn svg {
  height: 18px;
  width: 18px;
}

.topbar-account {
  position: relative;
}

.topbar-account-btn {
  align-items: center;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  gap: 8px;
  padding: 5px 10px 5px 5px;
}

.topbar-account-name {
  font-size: 0.84rem;
  font-weight: 700;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-account-btn .chevron svg {
  color: var(--muted);
  display: block;
  height: 14px;
  width: 14px;
}

.topbar-account-menu {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 2px;
  min-width: 170px;
  padding: 6px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
}

.topbar-account-menu[hidden] {
  display: none;
}

.topbar-account-menu button {
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 9px 10px;
  text-align: left;
}

.topbar-account-menu button:hover {
  background: var(--field);
}

.notif-badge {
  background: var(--muted);
  border-radius: 999px;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 1px 5px;
  position: absolute;
  right: -4px;
  top: -4px;
}

.notif-badge:not([hidden]) {
  animation: notification-pulse 1.8s ease-out 2;
}

.eyebrow {
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 4px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

/* Editorial serif for page titles, section titles, and card/entity names
   (business and campaign names read as headlines in the reference design).
   Everything else — body copy, metadata, labels — stays on the sans stack. */
h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 600;
}

h1 {
  font-size: 1.75rem;
  margin-bottom: 0;
}

.primary-btn,
.secondary-btn,
.danger-btn {
  align-items: center;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  gap: 6px;
  font-weight: 700;
  justify-content: center;
  padding: 10px 14px;
  transition:
    box-shadow 160ms ease,
    transform 160ms ease,
    background-color 160ms ease;
}

.primary-btn svg,
.secondary-btn svg,
.danger-btn svg {
  flex: 0 0 16px;
  height: 16px;
  width: 16px;
}

.match-actions > .primary-btn,
.match-actions > .secondary-btn {
  min-height: 40px;
  width: 100%;
}

.primary-btn:hover,
.secondary-btn:hover,
.danger-btn:hover {
  box-shadow: 0 6px 14px rgba(0, 64, 48, 0.14);
  transform: translateY(-2px);
}

.primary-btn:active,
.secondary-btn:active,
.danger-btn:active {
  box-shadow: 0 2px 5px rgba(0, 64, 48, 0.12);
  transform: translateY(1px) scale(0.985);
}

.primary-btn:focus-visible,
.secondary-btn:focus-visible,
.danger-btn:focus-visible {
  outline: 3px solid rgba(241, 137, 47, 0.3);
  outline-offset: 2px;
}

.primary-btn:disabled,
.secondary-btn:disabled,
.danger-btn:disabled {
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

@keyframes view-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes card-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes count-pop {
  0% {
    opacity: 0.5;
    transform: scale(0.88);
  }
  65% {
    transform: scale(1.08);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes check-pop {
  0% {
    transform: scale(0.7);
  }
  65% {
    transform: scale(1.18);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes notification-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(241, 137, 47, 0);
  }
  45% {
    box-shadow: 0 0 0 5px rgba(241, 137, 47, 0.18);
  }
}

.primary-btn {
  background: var(--orange);
  color: #fff;
}

.secondary-btn {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--forest);
}

.danger-btn {
  background: #ffe6e1;
  color: #8b2c1c;
}

.metric-grid,
.match-grid,
.form-grid {
  display: grid;
  gap: 14px;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(160px, 1fr));
}

.match-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.message-list,
.project-list {
  display: grid;
  gap: 14px;
}

.outreach-metrics {
  margin-bottom: 14px;
}

.project-metrics {
  margin-bottom: 14px;
}

.message-row,
.project-row {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  margin-bottom: 0;
}

.message-row h3,
.project-row h3,
.report-next-step h3 {
  margin: 0 0 4px;
}

.message-row p,
.project-row p,
.report-next-step p {
  margin-bottom: 0;
}

.project-detail-card {
  display: grid;
  gap: 16px;
}

.project-detail-header {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.project-detail-header .project-row-identity {
  min-width: 0;
}

.project-detail-header h3 {
  margin-bottom: 4px;
}

.project-detail-header p {
  margin-bottom: 0;
}

.project-stage-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.project-stage {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  font-size: 0.72rem;
  gap: 6px;
  text-align: center;
}

.project-stage span {
  align-items: center;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  font-weight: 800;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.project-stage.is-complete {
  color: var(--forest);
}

.project-stage.is-complete span {
  background: var(--mint);
  border-color: #b6ddc9;
}

.project-stage.is-current strong {
  color: var(--orange);
}

.project-detail-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-brief-section {
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.project-brief-section h4 {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  margin: 0 0 8px;
}

.project-brief-section p {
  margin-bottom: 0;
}

.project-reasons {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.project-reasons li {
  align-items: flex-start;
  display: flex;
  gap: 7px;
}

.project-reasons svg {
  color: var(--green);
  flex: 0 0 15px;
  height: 15px;
  margin-top: 2px;
  width: 15px;
}

.project-facts {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.project-facts span {
  color: var(--muted);
  display: grid;
  gap: 2px;
  font-size: 0.82rem;
}

.project-facts strong {
  color: var(--forest);
  font-size: 0.74rem;
  text-transform: uppercase;
}

.project-forecast {
  background: #fff5db;
  border: 1px solid rgba(224, 166, 57, 0.5);
  border-radius: 8px;
  color: #5f440d;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
}

.project-forecast strong {
  color: #5f440d;
  font-family: var(--font-serif);
  font-size: 1.08rem;
}

.project-forecast small {
  color: #80662d;
}

.project-detail-actions {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 14px;
}

.outreach-draft {
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--forest);
  display: block;
  font: inherit;
  line-height: 1.45;
  margin: 14px 0 8px;
  padding: 12px;
  resize: vertical;
  width: 100%;
}

.message-row-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.text-btn {
  background: transparent;
  border: 0;
  color: var(--orange);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 6px 0;
  text-decoration: underline;
}

.text-btn svg {
  height: 14px;
  margin-left: 3px;
  vertical-align: -2px;
  width: 14px;
}

.message-row-icon {
  align-items: center;
  background: var(--mint);
  border-radius: 50%;
  color: var(--forest);
  display: flex;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.message-row-icon svg {
  height: 22px;
  width: 22px;
}

.outreach-card {
  display: grid;
  gap: 14px;
}

.outreach-card-header {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.outreach-card-header h3 {
  margin-bottom: 4px;
}

.outreach-card-header p {
  margin-bottom: 0;
}

.outreach-context {
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
}

.outreach-context span {
  background: var(--panel);
  border-radius: 999px;
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 9px;
}

.outreach-agent-panel {
  align-items: center;
  background: #edf7f1;
  border: 1px solid #cce5d8;
  border-radius: 8px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 14px;
}

.outreach-agent-panel h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin: 0 0 4px;
}

.outreach-agent-panel p {
  margin-bottom: 0;
  max-width: 760px;
}

.outreach-label {
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 800;
}

.outreach-empty-state {
  align-items: center;
  display: flex;
  gap: 18px;
  padding: 28px;
}

.outreach-empty-state h3 {
  margin-bottom: 6px;
}

.outreach-empty-state p {
  margin-bottom: 14px;
  max-width: 680px;
}

.project-row-identity {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 0;
}

.project-row-identity img {
  border-radius: 10px;
  height: 52px;
  object-fit: cover;
  width: 68px;
}

.report-metrics {
  margin-bottom: 18px;
}

.report-metrics .metric-card strong {
  display: block;
  font-size: 2rem;
  margin: 6px 0 2px;
}

.report-metrics .metric-card small {
  color: var(--muted);
}

.report-next-step {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

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

.panel,
.metric-card,
.match-card,
.entity-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel {
  margin-bottom: 18px;
  padding: 18px;
}

.metric-card {
  padding: 16px;
}

.metric-link {
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.metric-link:hover,
.metric-link:focus-visible {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(241, 137, 47, 0.16), var(--shadow);
  outline: 0;
  transform: translateY(-1px);
}

.metric-card span,
.small-label {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.metric-card strong {
  display: block;
  font-size: 1.7rem;
  margin-top: 4px;
}

.entity-list {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.directory-page-header {
  margin: 6px 0 18px;
  max-width: 780px;
}

.directory-page-header h2 {
  color: var(--forest);
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: 0 0 4px;
}

.directory-page-header p:last-child {
  font-size: 1rem;
  margin: 0;
}

.directory-helper {
  margin-bottom: 14px;
}

.directory-card {
  padding: 16px;
}

.directory-card-top,
.directory-meta,
.directory-card-footer {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.directory-card-top {
  margin-bottom: 14px;
}

.directory-card-media {
  background: #eef5f1;
  border-radius: 10px;
  height: 144px;
  margin: 0 0 14px;
  overflow: hidden;
  width: 100%;
}

.directory-card-media img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.directory-card-media.brand-photo img {
  object-fit: contain;
  padding: 24px;
}

.opportunity-kind {
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 5px 9px;
  text-transform: uppercase;
}

.opportunity-nonprofit {
  background: #ffe3e4;
  color: #9b3d43;
}

.opportunity-business {
  background: #d9f1ed;
  color: #176b63;
}

.directory-location,
.directory-meta span {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  font-size: 0.74rem;
  gap: 4px;
}

.directory-location svg,
.directory-meta svg {
  height: 14px;
  width: 14px;
}

.directory-identity {
  align-items: center;
  display: flex;
  gap: 11px;
  min-height: 58px;
}

.directory-identity h3 {
  font-size: 1rem;
  line-height: 1.15;
  margin: 0 0 4px;
}

.directory-identity p {
  font-size: 0.78rem;
  margin: 0;
}

.entity-list-photo,
.entity-avatar {
  align-items: center;
  background: #e7f3ee;
  border-radius: 50%;
  display: flex;
  flex: 0 0 auto;
  height: 56px;
  justify-content: center;
  object-fit: contain;
  overflow: hidden;
  width: 56px;
}

.entity-list-photo {
  padding: 7px;
}

.entity-avatar {
  color: var(--forest);
  font-size: 1rem;
  font-weight: 800;
}

.entity-avatar-business {
  background: #fff0df;
  color: #9a5b1c;
}

.directory-card-copy {
  border-top: 1px solid var(--line);
  margin-top: 15px;
  padding-top: 13px;
}

.directory-card-copy h4 {
  font-size: 0.95rem;
  margin: 0 0 5px;
}

.directory-card-copy p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.42;
  margin: 0;
}

.directory-card-copy .lead-source-note {
  background: #fff8ec;
  border: 1px solid #f6d8ad;
  border-radius: 8px;
  color: #654319;
  margin-top: 10px;
  padding: 8px 10px;
}

.directory-meta {
  justify-content: flex-start;
  margin-top: 13px;
}

.directory-card-footer {
  border-top: 1px solid var(--line);
  margin-top: 13px;
  padding-top: 12px;
}

.directory-card-footer .link-btn {
  align-items: center;
  display: inline-flex;
  gap: 5px;
  margin: 0;
}

.directory-card-footer .link-btn svg {
  height: 14px;
  width: 14px;
}

.directory-card-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  width: 100%;
}

.directory-card-actions .secondary-btn {
  font-size: 0.78rem;
  padding: 7px 10px;
}

.directory-card-actions .secondary-btn.is-success {
  background: var(--mint);
  color: var(--ink);
}

.action-feedback {
  flex-basis: 100%;
  color: var(--forest);
  font-size: 0.78rem;
  line-height: 1.35;
}

.action-feedback.is-error {
  color: var(--coral);
}

.profile-detail-hero {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(180px, 300px) minmax(0, 1fr);
  margin-bottom: 18px;
  overflow: hidden;
  padding: 18px;
}

.profile-detail-image {
  aspect-ratio: 4 / 3;
  background: #eef5f1;
  border-radius: 10px;
  max-height: 220px;
  overflow: hidden;
}

.profile-detail-image img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.profile-detail-image img.brand-photo,
.profile-detail-image img[src*="logo"],
.profile-detail-image img[src*="Logo"] {
  object-fit: contain;
  padding: 22px;
}

.lead-detail-note {
  background: #fff5db;
  border: 1px solid rgba(248, 135, 42, 0.3);
  border-radius: 8px;
  color: #725112;
  margin-top: 12px;
  max-width: 760px;
  padding: 10px 12px;
}

.lead-context-panel {
  border-color: rgba(248, 135, 42, 0.32);
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  margin-bottom: 18px;
}

.lead-context-panel h3 {
  color: var(--forest);
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2vw, 2rem);
  line-height: 1.08;
  margin: 0 0 10px;
}

.detail-facts {
  display: grid;
  gap: 10px;
}

.detail-facts > div {
  background: #f6fbf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.detail-facts span {
  color: var(--muted);
  display: block;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.detail-facts strong {
  color: var(--forest);
  display: block;
  font-weight: 800;
  line-height: 1.35;
}

.detail-facts p {
  font-size: 0.92rem;
  margin: 8px 0 0;
}

.change-review {
  border-color: rgba(224, 166, 57, 0.55);
}

.change-review-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.change-review-list > div {
  align-items: center;
  background: #fff5db;
  border-radius: 8px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 9px 11px;
}

.directory-outcome {
  margin-top: 10px;
}

.entity-card,
.match-card {
  overflow: hidden;
}

.entity-card {
  padding: 15px;
}

.match-card {
  padding: 0;
}

.match-visual {
  background: #dcece5;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 152px;
  position: relative;
}

.match-visual-half {
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.match-visual-half + .match-visual-half {
  border-left: 2px solid var(--panel);
}

.match-visual-photo {
  background: #eef5f1;
  display: block;
  height: 100%;
  min-height: 152px;
  object-fit: cover;
  width: 100%;
}

.match-preview-photo {
  max-height: 180px;
  object-fit: cover;
}

.match-visual-photo.brand-photo {
  object-fit: contain;
  padding: 18px;
}

.match-visual-label {
  background: rgba(0, 64, 48, 0.88);
  bottom: 9px;
  color: #fff;
  font-size: 0.66rem;
  font-weight: 800;
  left: 9px;
  letter-spacing: 0.04em;
  padding: 4px 7px;
  position: absolute;
  text-transform: uppercase;
}

.match-score-badge {
  align-items: center;
  background: var(--panel);
  border: 4px solid var(--panel);
  border-radius: 50%;
  color: var(--forest);
  display: flex;
  flex-direction: column;
  height: 78px;
  justify-content: center;
  left: 50%;
  line-height: 1;
  position: absolute;
  text-align: center;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 78px;
}

.match-score-badge::before {
  border: 3px solid var(--green);
  border-radius: 50%;
  content: "";
  inset: 0;
  position: absolute;
}

.match-score-badge span,
.match-score-badge small {
  color: var(--muted);
  font-size: 0.52rem;
  font-weight: 800;
  position: relative;
  text-transform: uppercase;
}

.match-score-badge strong {
  font-size: 1.45rem;
  position: relative;
}

.match-card-body {
  padding: 15px;
}

.match-card-body h3 {
  font-size: 1.05rem;
  line-height: 1.18;
  margin: 0;
}

.match-summary {
  color: var(--ink);
  font-weight: 700;
  margin: 12px 0 8px;
}

.match-goals {
  font-size: 0.82rem;
  margin: 9px 0 0;
}

.match-card .forecast {
  margin: 10px 0 0;
}

.match-card > .match-actions,
.match-card > .notification-note,
.match-card > .rating-widget,
.match-card > .secondary-btn,
.match-card > .primary-btn {
  margin-left: 15px;
  margin-right: 15px;
}

.match-card > .match-actions {
  margin-bottom: 15px;
}

.match-card > .notification-note {
  margin-bottom: 15px;
}

.entity-photo {
  aspect-ratio: 16 / 9;
  background: var(--field);
  border-radius: calc(var(--radius) - 2px);
  display: block;
  height: auto;
  margin: -15px -15px 12px;
  object-fit: cover;
  width: calc(100% + 30px);
}

.entity-photo.brand-photo {
  object-fit: contain;
  padding: 18px;
}

.entity-head,
.match-head {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag {
  background: #e7f3ee;
  border-radius: 999px;
  color: var(--forest);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 8px;
}

.tag-muted {
  background: #f1f1ef;
  border-radius: 999px;
  color: #63665f;
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  margin-top: 8px;
  padding: 4px 8px;
}

.score {
  background: #e7f3ee;
  border: 1px solid #b9d8ca;
  border-radius: 8px;
  color: var(--forest);
  font-weight: 800;
  display: grid;
  min-width: 112px;
  padding: 8px;
  text-align: center;
}

.score span,
.score small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.score strong {
  font-size: 1.65rem;
  line-height: 1;
}

.notification-note {
  background: #fff8ea;
  border: 1px solid #f0d39a;
  border-radius: 8px;
  color: #704500;
  font-size: 0.86rem;
  font-weight: 700;
  margin: 12px 0 0;
  padding: 10px;
}

.decision-path {
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 10px;
}

.decision-path summary {
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 800;
}

.decision-path ul {
  display: grid;
  gap: 7px;
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}

.decision-path li {
  border-radius: 8px;
  font-size: 0.82rem;
  padding: 8px;
}

.decision-path .passed {
  background: #e7f3ee;
}

.decision-path .blocked {
  background: #ffe6e1;
}

.muted {
  color: var(--muted);
}

.field-row {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

label {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
}

input,
select,
textarea {
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-width: 0;
  padding: 10px 11px;
  width: 100%;
}

textarea {
  resize: vertical;
}

.split-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-pill {
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 5px 8px;
}

.status-new {
  background: #fff0df;
  color: #8a4b0c;
}

.status-ready {
  background: #e7f3ee;
  color: var(--forest);
}

.status-active {
  background: #fff5db;
  color: #725112;
}

.mission-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  padding: 22px;
  text-align: center;
}

.mission-panel > div {
  margin-left: auto;
  margin-right: auto;
  max-width: 1080px;
}

.intro-hero {
  background:
    linear-gradient(rgba(0, 64, 48, 0.86), rgba(0, 64, 48, 0.88)),
    url("assets/raise-local-symbol-hires.png") right 30px center / 180px auto no-repeat,
    var(--forest);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  padding: 28px;
}

.intro-hero h2 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.02;
  margin-bottom: 12px;
  max-width: 780px;
}

.intro-hero p:last-child {
  color: #e7f3ee;
  font-size: 1rem;
  line-height: 1.55;
  margin-bottom: 0;
  max-width: 720px;
}

.quiz-choice-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
}

.choice-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--ink);
  cursor: pointer;
  padding: 18px;
  text-align: left;
}

.choice-card:hover,
.choice-card.active {
  border-color: var(--orange);
  outline: 3px solid rgba(241, 137, 47, 0.18);
}

.choice-card span {
  color: var(--orange);
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.choice-card strong {
  display: block;
  font-family: var(--font-sans);
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
}

.choice-card small {
  color: var(--muted);
  display: block;
  font-size: 0.88rem;
  line-height: 1.45;
}

.quiz-panel {
  max-width: 980px;
}

/* Pre-auth flow: landing, quiz choice/steps, register, verify, set password,
   log in. No sidebar/topbar chrome — see body.no-sidebar below. */
body.no-sidebar {
  grid-template-columns: 1fr;
}

body.no-sidebar .app-shell {
  align-items: flex-start;
  display: flex;
  justify-content: center;
  padding: 56px 24px;
}

body.no-sidebar .view-root {
  width: 100%;
  max-width: 640px;
  position: relative;
  z-index: 1;
}

.landing-scene {
  position: relative;
}

.community-network {
  height: 100vh;
  inset: 0;
  overflow: visible;
  pointer-events: none;
  position: fixed;
  width: 100vw;
  z-index: 0;
}

.network-lines {
  fill: none;
  stroke: #bdd8ca;
  stroke-linecap: round;
  stroke-width: 1.4;
}

.network-lines path {
  animation: network-draw 13s ease-in-out infinite;
  stroke-dasharray: 260 520;
  stroke-dashoffset: 260;
}

.network-lines path:nth-child(2n) {
  animation-delay: -5s;
  animation-duration: 16s;
}

.network-lines path:nth-child(3n) {
  animation-delay: -9s;
  animation-duration: 19s;
}

.network-nodes .node {
  animation: node-breathe 8s ease-in-out infinite;
  fill: #a8cdbb;
  opacity: 0.55;
}

.network-nodes .node:nth-child(3n) {
  animation-delay: -3s;
}

.network-nodes .node-orange {
  fill: var(--orange);
  opacity: 0.5;
}

.network-pulses circle {
  animation: match-pulse 7s ease-out infinite;
  fill: none;
  stroke: var(--orange);
  stroke-width: 1.5;
}

.network-pulses circle:nth-child(2) {
  animation-delay: -3.5s;
  stroke: var(--green);
}

@keyframes network-draw {
  0%, 12% {
    opacity: 0.08;
    stroke-dashoffset: 260;
  }
  42%, 66% {
    opacity: 0.42;
    stroke-dashoffset: 0;
  }
  92%, 100% {
    opacity: 0.08;
    stroke-dashoffset: -260;
  }
}

@keyframes node-breathe {
  0%, 100% {
    opacity: 0.32;
    transform: scale(0.9);
    transform-box: fill-box;
    transform-origin: center;
  }
  50% {
    opacity: 0.7;
    transform: scale(1.15);
  }
}

@keyframes match-pulse {
  0%, 35% {
    opacity: 0;
    transform: scale(0.45);
    transform-box: fill-box;
    transform-origin: center;
  }
  58% {
    opacity: 0.28;
  }
  100% {
    opacity: 0;
    transform: scale(2.7);
  }
}

@media (prefers-reduced-motion: reduce) {
  .primary-btn,
  .secondary-btn,
  .danger-btn {
    transition: none;
  }

  .primary-btn:hover,
  .secondary-btn:hover,
  .danger-btn:hover,
  .primary-btn:active,
  .secondary-btn:active,
  .danger-btn:active {
    transform: none;
  }

  .dashboard-hero,
  .dashboard-stats,
  .dashboard-layout,
  .dashboard-tab-content > *,
  .match-grid > *,
  .triage-grid > *,
  .dashboard-tab-content .entity-card,
  .stat-value,
  .impact-checklist li.done .checklist-dot,
  .notif-badge:not([hidden]),
  .match-loading,
  .match-loading-network span,
  .match-loading-network i,
  .match-loading-steps span {
    animation: none;
  }

  .triage-btn {
    transition: none;
  }

  .triage-btn:active {
    transform: none;
  }

  .network-lines path,
  .network-nodes .node,
  .network-pulses circle {
    animation: none;
  }

  .network-lines path {
    opacity: 0.24;
    stroke-dasharray: none;
    stroke-dashoffset: 0;
  }

  .network-nodes .node {
    opacity: 0.46;
    transform: none;
  }

  .network-pulses circle {
    opacity: 0.08;
    transform: none;
  }
}

.landing-hero {
  position: relative;
  text-align: center;
  z-index: 1;
}

.landing-logo {
  background: #fff;
  border-radius: var(--radius);
  display: block;
  margin: 0 auto 18px;
  max-width: 200px;
  padding: 10px;
  width: 100%;
}

.landing-copy {
  color: #e7f3ee;
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 480px;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 22px;
}

.landing-actions .primary-btn,
.landing-actions .secondary-btn {
  padding: 13px 26px;
}

.landing-hero #landing-demo {
  flex-basis: 100%;
  justify-content: center;
  text-align: center;
}

.auth-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.auth-panel form {
  margin-top: 18px;
}

.demo-access-box {
  background: var(--mint-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 18px 0;
  padding: 16px;
}

.demo-access-box p {
  margin-bottom: 10px;
}

.demo-choice-panel {
  max-width: 980px;
}

.demo-choice-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 22px 0 18px;
}

.form-error {
  background: #ffe6e1;
  border: 1px solid #f3b3a4;
  border-radius: 8px;
  color: #8b2c1c;
  font-size: 0.86rem;
  font-weight: 700;
  margin: 16px 0 0;
  padding: 10px 12px;
}

.link-btn {
  background: none;
  border: 0;
  color: var(--orange);
  cursor: pointer;
  font-weight: 700;
  padding: 0;
  text-decoration: underline;
}

.nav-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.settings-grid .account-panel {
  grid-row: span 2;
}

.account-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 16px 0 22px;
}

.large-account-avatar {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--forest);
  color: white;
  font-size: 24px;
  font-weight: 800;
}

.account-summary h2 {
  margin: 0;
  overflow-wrap: anywhere;
}

.settings-detail-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  margin-bottom: 22px;
}

.settings-detail-list > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.settings-detail-list span {
  color: var(--muted);
}

.settings-detail-list strong {
  text-align: right;
}

.settings-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.settings-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.settings-check {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e0f2e9;
  color: var(--green);
}

.settings-check svg {
  width: 13px;
  height: 13px;
}

.settings-note-panel {
  grid-column: 2;
}

@media (max-width: 820px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .settings-grid .account-panel,
  .settings-note-panel {
    grid-row: auto;
    grid-column: auto;
  }
}

.sidebar-account {
  margin-top: auto;
}

.account-identity {
  align-items: center;
  display: flex;
  gap: 10px;
  padding: 10px 12px;
}

.account-identity > div {
  min-width: 0;
}

.account-avatar {
  align-items: center;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #fff;
  display: flex;
  flex: 0 0 auto;
  font-weight: 800;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.topbar-account-btn .account-avatar {
  background: var(--forest);
  height: 26px;
  width: 26px;
}

.account-email {
  color: #e7f3ee;
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-role {
  color: #b9d0c7;
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
}

.progress-rail {
  background: #e7f3ee;
  border-radius: 999px;
  height: 8px;
  margin-bottom: 18px;
  overflow: hidden;
}

.progress-rail span {
  background: var(--success);
  display: block;
  height: 100%;
}

.quiz-question {
  margin: 18px 0;
}

.quiz-question h3 {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  line-height: 1.08;
  margin-bottom: 18px;
  max-width: 760px;
}

.quiz-suggestions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.quiz-suggestions-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  margin-right: 2px;
  text-transform: uppercase;
}

.quiz-suggestion {
  background: #f5faf7;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--forest);
  cursor: pointer;
  font-size: 0.84rem;
  padding: 7px 10px;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.quiz-suggestion:hover,
.quiz-suggestion:focus-visible {
  background: #e7f3ee;
  border-color: var(--success);
  outline: 0;
  transform: translateY(-1px);
}

.option-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.quiz-option {
  align-items: center;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  gap: 10px;
  min-height: 56px;
  padding: 13px;
}

.quiz-option:hover,
.quiz-option.selected {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(241, 137, 47, 0.16);
}

.quiz-option input {
  accent-color: var(--orange);
  flex: 0 0 auto;
  width: auto;
}

.quiz-option span {
  font-weight: 700;
}

.quiz-actions {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 16px;
}

.quiz-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.success-banner {
  align-items: center;
  background: #fff5db;
  border: 1px solid rgba(224, 166, 57, 0.55);
  border-radius: var(--radius);
  color: #5f440d;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  font-weight: 700;
  margin-bottom: 16px;
  padding: 12px 14px;
}

.success-banner .secondary-btn {
  flex: 0 0 auto;
  padding: 8px 11px;
}

.mission-panel h2 {
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  line-height: 1.12;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
  max-width: 980px;
}

.loop-list {
  margin: 0;
  padding-left: 20px;
}

.loop-list li {
  margin-bottom: 8px;
}

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

.match-actions {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding-top: 12px;
}

.quiz-intro {
  border-left: 4px solid var(--orange);
  margin: 16px 0 12px;
  padding-left: 12px;
}

.quiz-intro h3 {
  margin-bottom: 0;
}

.other-input {
  margin-top: 10px;
}

.other-input.is-hidden {
  display: none;
}

.is-hidden {
  display: none !important;
}

.results-panel h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.2;
}

.forecast {
  background: #fff5db;
  border: 1px solid rgba(224, 166, 57, 0.5);
  border-radius: 8px;
  color: #5f440d;
  font-size: 0.9rem;
  margin: 12px 0 0;
  padding: 10px;
}

/* Role dashboard */

.dashboard-hero {
  align-items: center;
  background: var(--forest);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 320px;
  margin-bottom: 18px;
  overflow: hidden;
  padding: 32px;
}

.dashboard-filter-bar {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(130px, 0.7fr));
  margin-bottom: 12px;
}

.dashboard-filter-bar label,
.dashboard-filter-bar select {
  min-width: 0;
}

.dashboard-filter-bar select,
.dashboard-search {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 40px;
}

.dashboard-filter-bar select {
  color: var(--ink);
  padding: 0 10px;
  width: 100%;
}

.dashboard-search {
  align-items: center;
  display: flex;
  gap: 8px;
  padding: 0 11px;
}

.dashboard-search svg {
  color: var(--muted);
  flex: 0 0 auto;
  height: 17px;
  width: 17px;
}

.dashboard-search input {
  background: transparent;
  border: 0;
  min-height: 38px;
  outline: 0;
  padding: 0;
}

.dashboard-hero-reference {
  background: linear-gradient(120deg, #fff9f1 0%, #f4f8f4 62%, #e6f1eb 100%);
  border: 1px solid var(--line);
  color: var(--ink);
  grid-template-columns: minmax(0, 1.25fr) 360px;
  padding: 24px;
}

.dashboard-hero-reference .eyebrow {
  color: var(--orange);
}

.dashboard-hero-reference .hero-copy {
  text-align: center;
}

.dashboard-hero-reference h2 {
  color: var(--forest);
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.3vw, 2.85rem);
  line-height: 1.08;
  margin-left: auto;
  margin-right: auto;
  max-width: 800px;
}

.dashboard-hero-reference p {
  color: var(--muted);
  margin-left: auto;
  margin-right: auto;
  max-width: 720px;
}

.dashboard-hero-reference .hero-photo-wrap {
  min-height: 190px;
}

.dashboard-hero-reference .hero-photo {
  filter: saturate(0.72);
  opacity: 0.82;
}

.dashboard-hero-reference .hero-sticker {
  color: var(--orange);
  font-size: 1.35rem;
  right: 8px;
  top: 12px;
}

/* The reference hero is light, so it needs to override the dark-hero text
   defaults declared below. Keep the same forest-green hierarchy as the rest
   of the dashboard while preserving the warm orange eyebrow. */
.dashboard-hero.dashboard-hero-reference .eyebrow {
  color: var(--orange);
}

.dashboard-hero.dashboard-hero-reference h2 {
  color: var(--forest);
}

.dashboard-hero.dashboard-hero-reference p {
  color: var(--muted);
}

.dashboard-hero .eyebrow {
  color: #ffd9a8;
}

.dashboard-hero h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.15;
  margin-bottom: 10px;
}

.dashboard-hero p {
  color: #e7f3ee;
  font-size: 0.96rem;
  margin-bottom: 18px;
  max-width: 480px;
}

.hero-cta {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.hero-cta svg {
  height: 16px;
  width: 16px;
}

.hero-photo-wrap {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: visible;
  position: relative;
}

.hero-photo {
  border-radius: var(--radius);
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

/* The handwritten sticky-note accent style seen throughout the reference
   designs ("Good Businesses Build Brighter Futures") — Caveat script,
   underline flourish, no pill background. Markup composition (single-word
   stickers vs. one cursive phrase) is a Dashboard-phase change; this is
   just the shared visual treatment. */
.hero-sticker {
  color: var(--ink);
  font-family: var(--font-script);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.15;
  padding: 2px 4px;
  position: absolute;
  text-shadow: 0 2px 6px rgba(255, 255, 255, 0.6);
}

.hero-sticker::after {
  background: var(--orange);
  border-radius: 2px;
  bottom: -2px;
  content: "";
  height: 3px;
  left: 4px;
  position: absolute;
  width: calc(100% - 16px);
}

.sticker-0 {
  left: -14px;
  top: 10%;
  transform: rotate(-8deg);
}

.sticker-1 {
  right: -10px;
  top: 30%;
  transform: rotate(5deg);
}

.sticker-2 {
  left: 6%;
  bottom: 18%;
  transform: rotate(6deg);
}

.sticker-3 {
  right: 4%;
  bottom: -12px;
  transform: rotate(-4deg);
}

.dashboard-stats {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.dashboard-hero,
.dashboard-stats,
.dashboard-layout {
  animation: view-enter 240ms ease both;
}

.dashboard-stats {
  animation-delay: 60ms;
}

.dashboard-layout {
  animation-delay: 120ms;
}

.stat-card {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  gap: 12px;
  min-width: 0;
  padding: 14px;
}

.stat-icon {
  align-items: center;
  border-radius: 999px;
  display: flex;
  flex: 0 0 auto;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.stat-icon svg {
  height: 19px;
  width: 19px;
}

.tint-peach {
  background: #ffe4c2;
  color: #a85b12;
}

.tint-blue {
  background: #d9e8ff;
  color: #1d5fbf;
}

.tint-pink {
  background: #ffdce6;
  color: #c23a67;
}

.tint-teal {
  background: #d3f0e6;
  color: #147858;
}

.tint-mint {
  background: #d9f0e8;
  color: #176b52;
}

.tint-gray {
  background: #e4e9e7;
  color: #4d665e;
}

.stat-label {
  color: var(--muted);
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.stat-value {
  display: block;
  font-size: 1.4rem;
  line-height: 1.3;
  animation: count-pop 360ms ease both;
}

.stat-caption {
  color: var(--muted);
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
}

.dashboard-layout {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 300px;
}

.tabs-row,
.dashboard-tabs-row {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.tabs,
.dashboard-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.sort-select-wrap {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex: 0 0 auto;
  font-size: 0.8rem;
  font-weight: 700;
  gap: 6px;
  padding-bottom: 10px;
}

.sort-select-wrap select {
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 8px;
  width: auto;
}

.tab-btn,
.dashboard-tab {
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
  padding: 10px 6px 12px;
}

.tab-btn:focus-visible,
.dashboard-tab:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.tab-btn.active,
.dashboard-tab.active {
  border-bottom-color: var(--orange);
  color: var(--ink);
}

.tab-count {
  background: var(--field);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
  margin-left: 4px;
  padding: 2px 7px;
}

.tab-btn.active .tab-count,
.dashboard-tab.active .tab-count {
  background: #ffe9d3;
  color: var(--orange);
}

.dashboard-tab-content {
  display: grid;
  gap: 12px;
}

.dashboard-tab-content > *,
.match-grid > *,
.triage-grid > *,
.dashboard-tab-content .entity-card {
  animation: card-enter 240ms ease both;
}

.dashboard-tab-content > :nth-child(2),
.match-grid > :nth-child(2),
.triage-grid > :nth-child(2) {
  animation-delay: 60ms;
}

.dashboard-tab-content > :nth-child(3),
.match-grid > :nth-child(3),
.triage-grid > :nth-child(3) {
  animation-delay: 120ms;
}

.dashboard-tab-content > :nth-child(4),
.match-grid > :nth-child(4),
.triage-grid > :nth-child(4) {
  animation-delay: 180ms;
}

.match-preview-card {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
  grid-template-columns: 96px minmax(0, 1fr) auto auto;
  overflow: hidden;
  padding: 12px;
  position: relative;
}

.match-preview-menu {
  color: var(--muted);
  position: absolute;
  right: 10px;
  top: 10px;
}

.match-preview-menu svg {
  display: block;
  height: 16px;
  width: 16px;
}

.match-preview-photo {
  aspect-ratio: 1;
  border-radius: calc(var(--radius) - 2px);
  height: 72px;
  object-fit: cover;
  width: 72px;
}

.match-preview-photo.brand-photo {
  background: #eef5f1;
  object-fit: contain;
  padding: 10px;
}

.match-preview-body h3 {
  font-size: 1rem;
  margin: 4px 0 2px;
  padding-right: 20px;
}

.match-preview-body p {
  margin: 2px 0 0;
}

.match-preview-meta {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.78rem;
  font-weight: 700;
  gap: 14px;
  margin-top: 8px;
}

.match-preview-meta span {
  align-items: center;
  display: inline-flex;
  gap: 5px;
}

.match-preview-meta svg {
  height: 14px;
  width: 14px;
}

.match-preview-actions {
  display: grid;
  gap: 6px;
}

.match-preview-actions button {
  align-items: center;
  display: inline-flex;
  gap: 6px;
  justify-content: center;
  white-space: nowrap;
}

.match-preview-actions button svg {
  height: 14px;
  width: 14px;
}

.tag-sep {
  color: var(--muted);
  font-weight: 700;
}

.tag-nonprofit {
  background: #e7f3ee;
  color: var(--forest);
}

.tag-business {
  background: #fff0df;
  color: #8a4b0c;
}

.dashboard-sidebar {
  display: grid;
  gap: 14px;
}

.sidebar-widget h3 {
  justify-content: space-between;
}

.text-link {
  align-items: center;
  color: var(--forest);
  display: inline-flex;
  font-size: 0.78rem;
  gap: 4px;
  text-decoration: underline;
}

.text-link svg {
  height: 13px;
  width: 13px;
}

.quick-actions {
  display: grid;
  gap: 8px;
}

.quick-actions h3 {
  margin-bottom: 3px;
}

.quick-actions button {
  align-items: center;
  display: inline-flex;
  gap: 7px;
  justify-content: center;
}

.quick-actions button svg {
  height: 15px;
  width: 15px;
}

.admin-launch-panel {
  display: grid;
  gap: 14px;
}

.quick-action-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
}

.quick-action-grid .primary-btn,
.quick-action-grid .secondary-btn {
  min-height: 44px;
  text-align: center;
  width: 100%;
}

.invite-email-form,
.comment-form {
  display: grid;
  gap: 8px;
}

.invite-email-form label,
.comment-form label {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
}

.invite-email-controls {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 220px) auto;
}

.comment-thread {
  display: grid;
  gap: 16px;
}

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

.comment-item {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 6px;
  padding: 12px;
}

.comment-item p {
  color: var(--ink);
  margin: 0;
}

.sr-only {
  height: 1px;
  margin: -1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
  clip: rect(0, 0, 0, 0);
}

.sidebar-widget h3 {
  align-items: center;
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}

.sidebar-widget h3 svg {
  color: var(--green);
  height: 17px;
  width: 17px;
}

.small-note {
  font-size: 0.82rem;
}

.demo-role-switcher {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 4px;
  margin-top: 5px;
  padding: 8px 0;
}

.demo-role-switcher .small-label {
  padding: 0 10px 3px;
}

.demo-role-switcher button {
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  padding: 7px 10px;
  text-align: left;
}

.demo-role-switcher button:hover,
.demo-role-switcher button.active {
  background: #e7f3ee;
  color: var(--forest);
}

.activity-feed {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.activity-feed li {
  align-items: flex-start;
  display: flex;
  gap: 10px;
}

.activity-feed li > div {
  display: grid;
  font-size: 0.86rem;
  gap: 1px;
}

.activity-icon {
  align-items: center;
  border-radius: 999px;
  display: flex;
  flex: 0 0 auto;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.activity-icon svg {
  height: 15px;
  width: 15px;
}

.impact-checklist {
  display: grid;
  gap: 9px;
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.impact-checklist li {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.88rem;
  font-weight: 600;
  gap: 9px;
}

.impact-checklist li.done {
  color: var(--ink);
}

.checklist-dot {
  align-items: center;
  border: 2px solid var(--line);
  border-radius: 999px;
  color: #fff;
  display: flex;
  flex: 0 0 auto;
  height: 16px;
  justify-content: center;
  width: 16px;
}

.checklist-dot svg {
  height: 10px;
  width: 10px;
}

.impact-checklist li.done .checklist-dot {
  background: var(--green);
  border-color: var(--green);
  animation: check-pop 360ms ease both;
}

.sidebar-quote {
  background: var(--cream);
  border: 1px solid rgba(224, 166, 57, 0.4);
  border-radius: var(--radius);
  padding: 18px;
}

.sidebar-quote p {
  font-size: 0.95rem;
  font-style: italic;
  margin-bottom: 6px;
}

.match-activity h2 {
  margin-bottom: 12px;
}

.activity-stats {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  margin-bottom: 14px;
}

.activity-stats > div {
  background: var(--field);
  border-radius: var(--radius);
  padding: 12px;
  text-align: center;
}

.activity-stats strong {
  display: block;
  font-size: 1.5rem;
}

.activity-stats span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.match-activity .primary-btn {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

.match-activity .primary-btn svg {
  height: 14px;
  width: 14px;
}

@media (max-width: 1080px) {
  .dashboard-filter-bar {
    grid-template-columns: 1fr 1fr 1fr;
  }

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

  .dashboard-hero {
    grid-template-columns: 1fr;
  }

  .hero-photo-wrap {
    aspect-ratio: 16 / 9;
  }

  .dashboard-stats {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }

  .quick-action-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .invite-email-controls {
    grid-template-columns: 1fr;
  }

  .dashboard-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .directory-card-media {
    height: 168px;
  }

  .outreach-card-header {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .outreach-card-header .status-pill {
    grid-column: 2;
    justify-self: start;
  }

  .outreach-agent-panel,
  .outreach-empty-state {
    align-items: flex-start;
    flex-direction: column;
  }

  .outreach-agent-panel .primary-btn {
    width: 100%;
  }

  .project-detail-header,
  .project-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .project-stage-list {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .project-stage {
    align-items: center;
    flex-direction: row;
    text-align: left;
  }

  .project-detail-actions {
    justify-content: flex-start;
  }

  .match-detail-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .match-visual,
  .match-visual-photo {
    min-height: 128px;
  }

  .match-score-badge {
    height: 68px;
    width: 68px;
  }

  .match-preview-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .match-preview-photo {
    height: 140px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 860px) {
  .profile-detail-hero {
    grid-template-columns: 1fr;
  }

  .profile-detail-image {
    max-height: 190px;
  }

  body {
    grid-template-columns: 1fr;
  }

  .sidebar {
    min-height: auto;
  }

  .metric-grid,
  .form-grid,
  .scope-grid,
  .quick-action-grid,
  .demo-choice-grid,
  .quiz-choice-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .topbar > div {
    text-align: left;
  }

  .search-input {
    max-width: none;
  }

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

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

  .topbar-actions {
    justify-content: flex-start;
  }

  .community-network {
    opacity: 0.72;
  }
}

@media (max-width: 640px) {
  .community-network .network-nodes .node:nth-child(3n),
  .community-network .network-lines path:nth-child(3n),
  .community-network .network-pulses circle:nth-child(2) {
    display: none;
  }
}

/* Notifications */

.match-loading {
  animation: view-enter 240ms ease both;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 0 auto;
  max-width: 640px;
  overflow: hidden;
  padding: 48px 28px;
  position: relative;
  text-align: center;
}

.match-loading h2 {
  margin-bottom: 8px;
}

.match-loading > p:not(.eyebrow) {
  margin-left: auto;
  margin-right: auto;
  max-width: 430px;
}

.match-loading-network {
  height: 72px;
  margin: 0 auto 20px;
  position: relative;
  width: 220px;
}

.match-loading-network::before,
.match-loading-network::after {
  border-top: 1px solid #b9d8ca;
  content: "";
  left: 28px;
  position: absolute;
  top: 35px;
  transform: rotate(-14deg);
  width: 165px;
}

.match-loading-network::after {
  transform: rotate(16deg);
}

.match-loading-network span,
.match-loading-network i {
  background: #a8cdbb;
  border-radius: 999px;
  display: block;
  height: 11px;
  position: absolute;
  width: 11px;
  z-index: 1;
}

.match-loading-network span:nth-child(1) { left: 18px; top: 28px; }
.match-loading-network span:nth-child(2) { left: 76px; top: 10px; }
.match-loading-network span:nth-child(3) { right: 72px; top: 50px; }
.match-loading-network span:nth-child(4) { right: 18px; top: 25px; }

.match-loading-network i {
  background: var(--orange);
  height: 8px;
  width: 8px;
}

.match-loading-network i:nth-child(5) { left: 118px; top: 28px; }
.match-loading-network i:nth-child(6) { right: 42px; top: 5px; }

.match-loading-network span,
.match-loading-network i {
  animation: node-breathe 1.8s ease-in-out infinite;
}

.match-loading-network span:nth-child(2),
.match-loading-network i:nth-child(5) { animation-delay: 300ms; }

.match-loading-network span:nth-child(3),
.match-loading-network i:nth-child(6) { animation-delay: 600ms; }

.match-loading-steps {
  color: var(--muted);
  display: grid;
  font-size: 0.82rem;
  gap: 5px;
  margin: 22px auto 0;
  max-width: 280px;
}

.match-loading-steps span {
  animation: loading-step 4.4s ease-in-out infinite;
  opacity: 0.28;
}

.match-loading-steps span:nth-child(2) { animation-delay: 1.1s; }
.match-loading-steps span:nth-child(3) { animation-delay: 2.2s; }
.match-loading-steps span:nth-child(4) { animation-delay: 3.3s; }

.match-loading-progress {
  background: #e7f3ee;
  border-radius: 999px;
  height: 7px;
  margin: 22px auto 16px;
  max-width: 440px;
  overflow: hidden;
}

.match-loading-progress span {
  animation: match-progress 1.1s ease-in-out forwards;
  background: linear-gradient(90deg, var(--orange), var(--green));
  border-radius: inherit;
  display: block;
  height: 100%;
  transform-origin: left;
  width: 100%;
}

@keyframes match-progress {
  from { transform: scaleX(0.08); }
  to { transform: scaleX(1); }
}

.back-link {
  align-items: center;
  background: transparent;
  color: var(--forest);
  display: inline-flex;
  font-weight: 800;
  gap: 6px;
  margin: 0 0 14px;
  padding: 0;
}

.back-link svg {
  height: 16px;
  width: 16px;
}

.match-detail-hero {
  align-items: center;
  background: linear-gradient(120deg, #fff8ed, #e7f3ee);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 24px;
}

.match-detail-hero h2 {
  color: var(--forest);
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.08;
  margin: 0 0 8px;
}

.match-detail-hero p:last-child {
  margin: 0;
  max-width: 720px;
}

.match-detail-score {
  align-items: center;
  background: var(--panel);
  border: 4px solid #b9d8ca;
  border-radius: 50%;
  color: var(--forest);
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  height: 110px;
  justify-content: center;
  line-height: 1;
  text-align: center;
  width: 110px;
}

.match-detail-score span,
.match-detail-score small {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
}

.match-detail-score strong {
  font-size: 2.1rem;
}

.match-detail-grid {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
}

.match-detail-decision {
  margin: 14px 0 0;
}

.match-detail-decision > strong {
  color: var(--forest);
  display: block;
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.match-detail-decision p:last-of-type {
  margin-bottom: 0;
}

.match-detail-decision-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}

.match-detail-rail {
  display: grid;
  gap: 14px;
}

.detail-insight {
  margin: 0;
}

.detail-insight h3 {
  color: var(--forest);
  font-size: 1.05rem;
  line-height: 1.25;
  margin: 0 0 8px;
}

.detail-insight p:last-child {
  margin-bottom: 0;
}

.detail-check-list {
  display: grid;
  gap: 7px;
}

.detail-check-list div {
  align-items: center;
  border-radius: 7px;
  display: flex;
  font-size: 0.82rem;
  gap: 7px;
  padding: 7px;
}

.detail-check-list .passed { background: #e7f3ee; color: var(--forest); }
.detail-check-list .blocked { background: #ffe6e1; color: #8b2c1c; }
.detail-check-list svg { height: 14px; width: 14px; }

@keyframes loading-step {
  0%, 22%, 100% { opacity: 0.28; }
  10% { color: var(--ink); opacity: 1; }
}

.notif-menu {
  min-width: 300px;
  padding: 6px;
}

.notif-row {
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 2px;
  padding: 10px;
  text-align: left;
  width: 100%;
}

.notif-row:hover {
  background: var(--field);
}

.notif-row.unread {
  background: #fff5db;
}

.notif-row.unread:hover {
  background: #ffefc4;
}

.notif-empty {
  padding: 10px;
}

.quality-panel h2 {
  align-items: center;
  display: flex;
  gap: 8px;
}

.quality-row {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 12px 0;
}

.quality-row > div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.quality-row .muted {
  font-size: 0.82rem;
}

.quality-row .split-actions {
  align-items: center;
  flex: 0 0 auto;
}

/* Match triage (dating-card style) */

.triage-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 280px));
  margin-bottom: 18px;
  perspective: 1200px;
}

.flip-card {
  aspect-ratio: 3 / 4;
  max-width: 280px;
  width: 100%;
}

.flip-card-inner {
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
  width: 100%;
}

.flip-card.is-flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  backface-visibility: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  position: absolute;
  width: 100%;
}

.flip-card-front img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.flip-card-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 14px;
}

.flip-card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.flip-card-body p {
  font-size: 0.85rem;
  margin: 0 0 6px;
}

.triage-reason {
  color: var(--green);
  font-weight: 700 !important;
}

.triage-actions {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 8px;
}

.triage-btn {
  align-items: center;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  font-weight: 800;
  gap: 4px;
  justify-content: center;
  min-width: 0;
  padding: 8px 6px;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.triage-btn span {
  font-size: 0.72rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.triage-btn svg {
  flex: 0 0 auto;
  height: 15px;
  width: 15px;
}

.triage-btn.deny {
  background: #ffe6e1;
  color: #8b2c1c;
}

.triage-btn.hold {
  background: var(--field);
  color: var(--muted);
}

.triage-btn.approve {
  background: #e7f3ee;
  color: var(--green);
}

.triage-btn.deny:hover {
  background: #ffd2c8;
}

.triage-btn.hold:hover {
  background: var(--line);
}

.triage-btn.approve:hover {
  background: #cdead9;
}

.triage-btn:active {
  box-shadow: 0 2px 5px rgba(0, 64, 48, 0.12);
  transform: scale(0.9);
}

.flip-card-back {
  align-items: center;
  background: var(--forest);
  color: #fff;
  justify-content: center;
  padding: 24px;
  text-align: center;
  transform: rotateY(180deg);
}

.flip-check {
  color: var(--success);
  display: block;
  margin: 0 auto 10px;
}

.flip-check svg {
  height: 40px;
  width: 40px;
}

.flip-card-back h3 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.flip-card-back .muted {
  color: #cfe4db;
}

/* Denied & held bin */

.match-bin {
  margin-top: 18px;
}

.match-bin summary {
  cursor: pointer;
  font-weight: 800;
  padding: 10px 0;
}

.match-bin .match-grid {
  margin-top: 12px;
}

.bin-card button svg {
  height: 14px;
  width: 14px;
  vertical-align: -2px;
}

/* Ratings */

.rating-widget {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 14px;
}

.rating-widget-head {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 8px;
}

.rating-widget-head h4 {
  margin: 0;
}

.rating-widget label {
  display: block;
  margin-bottom: 6px;
  margin-top: 12px;
}

.star-row {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}

.star-btn {
  background: none;
  border: 0;
  color: var(--line);
  cursor: pointer;
  padding: 2px;
}

.star-btn svg {
  height: 22px;
  width: 22px;
}

.star-btn.filled {
  color: var(--success);
}

.match-rating-summary {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 14px;
}

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

.rating-summary-grid > div {
  background: var(--mint);
  border-radius: 8px;
  padding: 12px;
}

.rating-summary-grid span,
.experience-list small {
  color: var(--muted);
  display: block;
}

.experience-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.experience-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.experience-list article > div {
  align-items: baseline;
  display: flex;
  gap: 10px;
  margin-bottom: 6px;
}

/* ==========================================================================
   Shared components — design-system primitives used across multiple pages.
   Built during the Raise Local visual redesign (see docs/action-and-build-plan.md
   history). JS helpers that emit this markup live in src/ui.js.
   ========================================================================== */

/* --- Icon tints: small colored circles behind stat/metric icons. Icons
   themselves stay inline SVG (src/icons.js); these classes only set the
   circle's background + icon color. Used sparingly — accents, not surfaces. */
.icon-tint {
  align-items: center;
  border-radius: 999px;
  display: flex;
  flex: 0 0 auto;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.icon-tint svg {
  height: 20px;
  width: 20px;
}

.icon-tint-mint {
  background: var(--mint);
  color: var(--green);
}

.icon-tint-blue {
  background: var(--support-blue-tint);
  color: var(--support-blue);
}

.icon-tint-coral {
  background: var(--support-coral-tint);
  color: var(--support-coral);
}

.icon-tint-lavender {
  background: var(--support-lavender-tint);
  color: var(--support-lavender);
}

.icon-tint-yellow {
  background: var(--support-yellow-tint);
  color: var(--support-yellow);
}

.icon-tint-pink {
  background: var(--support-pink-tint);
  color: var(--support-pink);
}

/* --- EmptyState: the "nothing here yet" pattern. Explains what's missing,
   why it matters, and gives one clear next action — never a bare sentence
   in blank space. */
.empty-state {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 48px 32px;
  text-align: center;
}

.empty-state .icon-tint {
  height: 56px;
  margin-bottom: 4px;
  width: 56px;
}

.empty-state .icon-tint svg {
  height: 28px;
  width: 28px;
}

.empty-state h3 {
  font-size: 1.15rem;
  margin: 0;
}

.empty-state p {
  color: var(--muted);
  margin: 0;
  max-width: 420px;
}

.empty-state .primary-btn,
.empty-state .secondary-btn {
  margin-top: 6px;
}

/* --- PageHero: generalized version of .dashboard-hero, usable on any page
   (Campaign Requests, My Organization, Business Profile, ...). Two-column
   photo-collage layout with room for hero-sticker accents on the image. */
.page-hero {
  align-items: center;
  background: var(--forest);
  border-radius: 16px;
  color: #fff;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  overflow: hidden;
  padding: 28px 32px;
  position: relative;
}

.page-hero-eyebrow {
  color: #ffe9d3;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-hero h1 {
  color: #fff;
  font-size: 2rem;
  margin: 4px 0 10px;
}

.page-hero p {
  color: #e7f3ee;
  font-size: 0.96rem;
  margin: 0;
  max-width: 480px;
}

.page-hero-photo-wrap {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: visible;
  position: relative;
}

.page-hero-photo {
  border-radius: 12px;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

@media (max-width: 860px) {
  .page-hero {
    grid-template-columns: 1fr;
  }
}

/* --- ProfileHeader: shared by Business Profile and My Organization. A
   cover strip, avatar/logo, identity block, and verification/status pills —
   the "hub" header pattern from the reference designs. */
.profile-header {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.profile-header-cover {
  background: linear-gradient(120deg, var(--forest), var(--green));
  height: 96px;
  position: relative;
}

.profile-header-body {
  align-items: flex-end;
  display: flex;
  gap: 16px;
  margin-top: -36px;
  padding: 0 24px 20px;
}

.profile-header-avatar {
  align-items: center;
  background: var(--panel);
  border: 4px solid var(--panel);
  border-radius: 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex: 0 0 auto;
  font-size: 1.6rem;
  font-weight: 700;
  height: 72px;
  justify-content: center;
  overflow: hidden;
  width: 72px;
}

.profile-header-avatar img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.profile-header-identity {
  flex: 1 1 auto;
  min-width: 0;
  padding-bottom: 2px;
}

.profile-header-identity h1 {
  font-size: 1.4rem;
  margin-bottom: 2px;
}

.profile-header-meta {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.84rem;
  gap: 4px 14px;
}

.profile-header-meta span {
  align-items: center;
  display: inline-flex;
  gap: 4px;
}

.profile-header-badge {
  align-items: center;
  background: var(--mint);
  border-radius: 999px;
  color: var(--green);
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 800;
  gap: 4px;
  padding: 3px 10px;
}

/* --- FilterPanel: right-rail filters for pool/browse pages (Campaign
   Requests, Business Profiles). Only rendered with filters the data model
   actually supports — see src/ui.js filterPanel(). */
.filter-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.filter-panel-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.filter-panel-head h2 {
  font-size: 1rem;
}

.filter-panel-reset {
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0;
  text-decoration: underline;
}

.filter-field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.filter-field label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.filter-field select {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  width: 100%;
}

.filter-checkbox {
  align-items: center;
  color: var(--ink);
  display: flex;
  font-size: 0.84rem;
  gap: 8px;
  margin-bottom: 10px;
}

.filter-checkbox input {
  height: 16px;
  width: 16px;
}
