:root {
  --bg-0: #07090d;
  --bg-1: #10141b;
  --bg-2: #181f2a;
  --surface: rgba(255, 255, 255, 0.98);
  --surface-soft: rgba(247, 248, 250, 0.94);
  --surface-strong: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.075);
  --line: rgba(15, 15, 15, 0.12);
  --line-strong: rgba(15, 15, 15, 0.24);
  --text: #111827;
  --text-soft: #5b6472;
  --text-invert: #f8fafc;
  --accent: #f2b705;
  --accent-strong: #ffd166;
  --accent-ink: #2a2100;
  --good: #167c4a;
  --warn: #c98600;
  --danger: #b34036;
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 20px 56px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 34px 90px rgba(0, 0, 0, 0.36);
  --space-1: 0.35rem;
  --space-2: 0.55rem;
  --space-3: 0.8rem;
  --space-4: 1rem;
  --space-5: 1.3rem;
  --space-6: 1.8rem;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.45;
  letter-spacing: 0.01em;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 34%),
    linear-gradient(145deg, var(--bg-0), var(--bg-1) 54%, var(--bg-2));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.42;
  z-index: 0;
}

body.onboarding-open {
  overflow: hidden;
}

body.modal-open {
  overflow: hidden;
}

.hidden {
  display: none !important;
}

.orb {
  position: fixed;
  pointer-events: none;
  border-radius: 999px;
  display: none;
  filter: blur(16px);
  z-index: 0;
}

.orb-a {
  width: 260px;
  height: 260px;
  top: 44%;
  left: -80px;
  background: rgba(242, 183, 5, 0.18);
}

.orb-b {
  width: 230px;
  height: 230px;
  top: 12%;
  right: -60px;
  background: rgba(242, 183, 5, 0.14);
}

.topbar,
.dashboard {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 1.2rem));
  margin-inline: auto;
}

.topbar {
  margin-top: 0.8rem;
  padding: clamp(1rem, 2.4vw, 1.85rem);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(7, 9, 13, 0.99), rgba(16, 20, 27, 0.97) 58%, rgba(24, 31, 42, 0.96)),
    linear-gradient(90deg, rgba(242, 183, 5, 0.11), transparent 42%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: var(--space-5);
  overflow: hidden;
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(140deg, rgba(0, 0, 0, 0.38), transparent 78%);
}

.brand-wrap,
.user-wrap,
.kpi-row,
.screen-nav {
  position: relative;
  z-index: 1;
}

.brand-wrap {
  display: grid;
  align-content: center;
  gap: 0.45rem;
}

.brand-wrap h1,
.panel h2,
.panel h3,
.kpi-value,
.card h4 {
  margin: 0;
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  letter-spacing: -0.01em;
}

.brand-wrap h1 {
  font-size: clamp(1.74rem, 5vw, 2.78rem);
  color: #ffffff;
  text-wrap: balance;
}

.subline {
  margin: var(--space-1) 0 0;
  color: rgba(255, 255, 255, 0.82);
  max-width: 44ch;
}

.swipe-headliner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(148px, 0.46fr);
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-3);
  padding: 0.85rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.035)),
    linear-gradient(90deg, rgba(242, 183, 5, 0.09), transparent 58%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.swipe-headliner h2 {
  margin: 0.12rem 0 0.2rem;
  color: #ffffff;
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  font-size: clamp(1.1rem, 3.2vw, 1.52rem);
  letter-spacing: -0.035em;
}

.swipe-headliner p {
  margin: 0;
  color: rgba(248, 250, 252, 0.76);
}

.swipe-kicker {
  color: var(--accent-strong) !important;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.swipe-mini-stack {
  position: relative;
  min-height: 112px;
}

.swipe-mini-card {
  position: absolute;
  right: 0;
  top: 50%;
  display: grid;
  place-items: center;
  width: 132px;
  height: 86px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  font-weight: 900;
  letter-spacing: 0.1em;
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.24);
}

.swipe-mini-card-back {
  color: rgba(248, 250, 252, 0.74);
  background: #1f2937;
  transform: translateY(-50%) translateX(-32px) rotate(-9deg) scale(0.92);
}

.swipe-mini-card-mid {
  color: #111827;
  background: #f8fafc;
  transform: translateY(-50%) translateX(-13px) rotate(-1deg) scale(0.97);
}

.swipe-mini-card-front {
  color: var(--accent-ink);
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  transform: translateY(-50%) translateX(8px) rotate(8deg);
}

.trust-strip {
  margin-top: var(--space-2);
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.trust-strip span {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 0.32rem 0.58rem;
}

.eyebrow {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  color: #686868;
}

.topbar .eyebrow,
.topbar .helper,
.topbar .kpi-label,
.topbar .kpi-value,
.topbar .kpi-card {
  color: var(--text-invert);
}

.user-wrap {
  display: grid;
  gap: var(--space-3);
  align-items: stretch;
}

.active-user {
  display: grid;
  gap: var(--space-2);
  min-width: min(100%, 430px);
}

.identity-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  align-items: center;
  justify-content: flex-start;
}

.identity-stack .helper {
  color: rgba(255, 255, 255, 0.74);
}

.cloud-sync-card {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  padding: 0.72rem;
  display: grid;
  gap: 0.62rem;
}

.sync-indicator {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.58rem;
}

.sync-dot {
  width: 0.72rem;
  height: 0.72rem;
  margin-top: 0.2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.08);
}

.sync-title {
  margin: 0;
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 900;
}

.cloud-sync-card .helper {
  color: rgba(255, 255, 255, 0.7);
}

.sync-ready .sync-dot {
  background: #2fdf84;
  box-shadow: 0 0 0 5px rgba(47, 223, 132, 0.13), 0 0 22px rgba(47, 223, 132, 0.45);
}

.sync-saving .sync-dot {
  background: var(--accent-strong);
  box-shadow: 0 0 0 5px rgba(242, 183, 5, 0.16), 0 0 22px rgba(242, 183, 5, 0.42);
  animation: sync-pulse 1s ease-in-out infinite;
}

.sync-error .sync-dot,
.sync-offline .sync-dot {
  background: #ff7a59;
  box-shadow: 0 0 0 5px rgba(255, 122, 89, 0.13), 0 0 20px rgba(255, 122, 89, 0.34);
}

.cloud-sync-row {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto auto auto;
  gap: 0.35rem;
  align-items: center;
  margin-top: 0.35rem;
}

.cloud-sync-row input {
  min-height: 38px;
  padding: 0.48rem 0.62rem;
  border-radius: 12px;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.94);
}

.cloud-sync-row button {
  min-height: 38px;
  padding: 0.48rem 0.68rem;
  border-radius: 12px;
  white-space: nowrap;
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.screen-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 0.4rem;
  padding: 0.3rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(7, 9, 13, 0.34);
}

.screen-nav-item {
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(245, 245, 245, 0.9);
  min-height: 40px;
  font-size: 0.8rem;
  font-weight: 800;
}

.screen-nav-item.active {
  color: var(--accent-ink);
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 10px 24px rgba(242, 183, 5, 0.2);
}

.kpi-card {
  padding: 0.72rem 0.8rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

.kpi-label {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.82;
}

.kpi-value {
  margin-top: 0.3rem;
  font-size: 1.38rem;
}

.dashboard {
  margin-top: var(--space-4);
  margin-bottom: 5.5rem;
  display: block;
  min-height: calc(100dvh - 190px);
}

.app-screen {
  min-height: calc(100dvh - 220px);
  margin-bottom: var(--space-4);
}

.app-screen.is-active {
  animation: screen-in 260ms ease;
}

.panel {
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-md);
  padding: var(--space-5);
}

.panel-wide {
  grid-column: 1 / -1;
}

.section-title {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.panel h2 {
  font-size: clamp(1.2rem, 2.6vw, 1.72rem);
  text-wrap: balance;
}

.panel h3 {
  font-size: clamp(1.04rem, 2vw, 1.22rem);
}

.tag,
.pill,
.badge,
.status-chip {
  white-space: nowrap;
}

.tag {
  font-size: 0.74rem;
  border-radius: 999px;
  padding: 0.34rem 0.6rem;
  border: 1px solid rgba(242, 183, 5, 0.44);
  background: rgba(242, 183, 5, 0.17);
  color: #694f00;
  font-weight: 800;
}

.subsection {
  margin-top: var(--space-5);
}

.tight {
  margin-top: 0.2rem;
}

.helper {
  margin: var(--space-2) 0 0;
  font-size: 0.84rem;
  color: var(--text-soft);
}

.hero-rank {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.momentum-strip {
  margin-top: var(--space-3);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
}

.momentum-card {
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 15, 15, 0.1);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.96), rgba(246, 246, 246, 0.92));
  padding: 0.7rem;
}

.momentum-card h4 {
  margin-top: 0.22rem;
  font-size: 1.26rem;
}

.momentum-card p {
  margin-top: 0.12rem;
  font-size: 0.76rem;
  color: #545454;
}

.hero-card {
  border-color: rgba(17, 24, 39, 0.14);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.99), rgba(247, 248, 250, 0.94));
}

.hero-mini-row {
  margin-top: var(--space-3);
  display: grid;
  gap: var(--space-2);
}

.hero-mini {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(15, 15, 15, 0.16);
  background: rgba(15, 15, 15, 0.05);
  color: #2f2f2f;
  text-align: left;
  padding: 0.55rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.wizard-head {
  display: grid;
  gap: 0.42rem;
}

.wizard-progress {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: rgba(15, 15, 15, 0.1);
  overflow: hidden;
}

.wizard-progress span {
  display: block;
  height: 100%;
  width: 25%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  transition: width 0.25s ease;
}

.wizard-panel {
  display: grid;
  gap: var(--space-3);
}

.wizard-nav {
  justify-content: space-between;
}

.wizard-review h3 {
  margin: 0;
}

.project-form,
.filters,
.profile-form,
.contractor-only,
.match-grid,
.compare-grid,
.role-picker-row,
.photo-grid,
.photo-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

.role-picker-row {
  margin-top: var(--space-3);
}

label {
  font-size: 0.8rem;
  font-weight: 800;
  color: #3c3c3c;
  display: grid;
  gap: 0.35rem;
}

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

input,
select,
textarea {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--text);
  padding: 0.72rem 0.78rem;
  min-height: 44px;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

input[type="checkbox"] {
  width: auto;
  min-height: 0;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(242, 183, 5, 0.72);
  box-shadow: 0 0 0 3px rgba(242, 183, 5, 0.22);
}

.full {
  grid-column: 1 / -1;
}

button {
  border: 0;
  border-radius: 999px;
  padding: 0.68rem 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
}

button:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  transform: none;
}

.primary {
  color: var(--accent-ink);
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 10px 26px rgba(242, 183, 5, 0.32);
}

.secondary {
  color: #ffffff;
  background: #171717;
}

.ghost {
  color: #2f2f2f;
  background: rgba(17, 17, 17, 0.08);
}

.topbar .ghost {
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
}

.topbar .ghost:hover {
  background: rgba(242, 183, 5, 0.18);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

.form-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}

.checkbox-row {
  display: flex;
  gap: 0.5rem;
  align-items: start;
  color: #383838;
}

.stack {
  display: grid;
  gap: var(--space-3);
}

.lead-feed {
  gap: var(--space-4);
}

.lead-feed-first {
  margin-top: 0;
}

.filter-note {
  margin: 0;
  border-radius: 14px;
  border: 1px solid rgba(242, 183, 5, 0.28);
  background: rgba(242, 183, 5, 0.1);
  color: #5f4a00;
  padding: 0.65rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.contractor-profile-card {
  overflow: hidden;
  border-radius: 18px;
}

.contractor-profile-media {
  margin: -1rem -1rem 0.7rem;
}

.contractor-profile-cover {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.contractor-profile-fallback {
  height: 160px;
  display: grid;
  place-items: center;
  color: #fff7d5;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.homeowner-profile-card {
  overflow: hidden;
  border-radius: 18px;
  border-color: rgba(15, 15, 15, 0.1);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(247, 247, 247, 0.95));
}

.card,
.account-card,
.compare-card,
.kpi-card,
.saved-searches,
.trust-card,
.subscription-card,
.bid-composer,
.onboarding-card,
.invite-gate,
.deck-card,
.ops-card,
.mobile-nav {
  backdrop-filter: blur(10px);
}

.card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface-strong);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.card-compact {
  gap: var(--space-2);
}

.match-mode,
.lead-mode {
  display: grid;
  gap: var(--space-3);
}

.match-mode {
  padding: 0.3rem;
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(248, 250, 252, 0.7), rgba(255, 255, 255, 0.48));
  border: 1px solid rgba(17, 24, 39, 0.08);
}

.lead-mode .filters {
  border-radius: 16px;
  border: 1px solid rgba(15, 15, 15, 0.08);
  background: rgba(250, 250, 250, 0.86);
  padding: var(--space-3);
}

.lead-map-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(17, 24, 39, 0.11);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(247, 248, 250, 0.94));
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
}

.map-stat-row,
.map-result-list,
.verification-list,
.chat-workspace,
.chat-message-list,
.quick-reply-row {
  display: grid;
  gap: var(--space-2);
}

.map-stat-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: var(--space-3);
}

.map-stat-row span {
  border-radius: 8px;
  background: rgba(17, 17, 17, 0.07);
  padding: 0.52rem;
  font-size: 0.72rem;
  color: #4a4a4a;
}

.map-stat-row strong {
  display: block;
  font-size: 0.96rem;
  color: #161616;
}

.lead-map-canvas {
  position: relative;
  width: 100%;
  min-height: 210px;
  margin-top: var(--space-3);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, 0.12);
  background:
    radial-gradient(circle at 50% 50%, rgba(242, 183, 5, 0.08), transparent 52%),
    linear-gradient(0deg, rgba(17, 24, 39, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 39, 0.045) 1px, transparent 1px),
    linear-gradient(155deg, #fbfcfe, #eef1f5);
  background-size: auto, 26px 26px, 26px 26px, auto;
}

.map-center-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #111111;
  border: 2px solid #f2b705;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 8px rgba(242, 183, 5, 0.14);
}

.map-dot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  min-height: 0;
  line-height: 1;
  color: #111111;
  font-size: 0.62rem;
  font-weight: 900;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.map-dot:hover {
  transform: translate(-50%, -50%) scale(1.08);
}

.contractor-area-ring {
  position: absolute;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  border: 1px solid rgba(242, 183, 5, 0.34);
  background: radial-gradient(circle, rgba(242, 183, 5, 0.2), rgba(242, 183, 5, 0.03) 58%, transparent 70%);
  pointer-events: none;
}

.contractor-map-dot {
  z-index: 2;
  background: #111111;
  color: #fff1ae;
  border: 2px solid #f2b705;
}

.homeowner-map-center {
  background: #f2b705;
  border-color: #111111;
}

.map-dot-engaged-lead {
  background: #16a34a;
  color: #ecfff3;
}

.map-dot-hot-lead {
  background: #f59e0b;
  color: #2f1d00;
}

.map-dot-warm-lead {
  background: #f2b705;
  color: #2a2100;
}

.map-dot-new-lead {
  background: #d7d7d7;
  color: #292929;
}

.map-list {
  display: grid;
  gap: 0.4rem;
  padding: 0.8rem;
}

.map-list span {
  font-size: 0.75rem;
  border-radius: 999px;
  width: fit-content;
  padding: 0.24rem 0.5rem;
  background: rgba(17, 17, 17, 0.08);
}

.map-empty {
  margin: 0;
  padding: 0.9rem;
  font-size: 0.78rem;
  color: #595959;
}

.map-result-list {
  margin-top: var(--space-3);
}

.map-result-list button {
  width: 100%;
  border-radius: 8px;
  background: rgba(17, 17, 17, 0.06);
  color: #252525;
  text-align: left;
  padding: 0.65rem 0.72rem;
}

.map-result-list button span {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.72rem;
  color: #636363;
}

.project-card {
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(15, 15, 15, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 246, 246, 0.96));
  transform: translateZ(0);
  backface-visibility: hidden;
}

.project-card.project-lead {
  border-color: rgba(242, 183, 5, 0.34);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.09);
}

@keyframes cardRiseIn {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .project-card,
  .contractor-profile-card,
  .homeowner-profile-card,
  .map-result-list button {
    animation: cardRiseIn 240ms cubic-bezier(0.2, 0.85, 0.2, 1) both;
  }

  .project-card:nth-child(2),
  .contractor-profile-card:nth-child(2),
  .homeowner-profile-card:nth-child(2) {
    animation-delay: 26ms;
  }

  .project-card:nth-child(3),
  .contractor-profile-card:nth-child(3),
  .homeowner-profile-card:nth-child(3) {
    animation-delay: 52ms;
  }
}

.project-posts-showcase,
.homeowner-project-showcase,
.marketplace-examples-showcase,
.onboarding-demo-board {
  position: relative;
  overflow: hidden;
}

.project-posts-showcase::before,
.homeowner-project-showcase::before,
.marketplace-examples-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0.035), transparent 46%),
    radial-gradient(circle at 100% 18%, rgba(17, 24, 39, 0.045), transparent 30%);
}

.project-posts-showcase > *,
.homeowner-project-showcase > *,
.marketplace-examples-showcase > *,
.onboarding-demo-board > * {
  position: relative;
  z-index: 1;
}

.role-example-grid,
.sample-role-preview-grid,
.profile-example-grid,
.project-post-grid {
  display: grid;
  gap: var(--space-3);
}

.role-example-grid,
.sample-role-preview-grid {
  margin-top: var(--space-3);
}

.profile-example-grid {
  margin-top: var(--space-2);
}

.example-column,
.sample-preview-column {
  min-width: 0;
}

.profile-example-grid .contractor-profile-card,
.profile-example-grid .homeowner-profile-card {
  min-height: 100%;
}

.profile-example-grid.compact .contractor-profile-cover,
.profile-example-grid.compact .contractor-profile-fallback {
  height: 120px;
}

.profile-example-grid.compact .photo-strip img {
  height: 96px;
}

.project-post-grid .project-card {
  min-height: 100%;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.project-post-grid .project-card:hover,
.profile-example-grid .contractor-profile-card:hover,
.profile-example-grid .homeowner-profile-card:hover {
  transform: translateY(-3px);
  border-color: rgba(242, 183, 5, 0.42);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.12);
}

.project-card.project-showcase,
.project-card.project-preview {
  border-color: rgba(15, 15, 15, 0.11);
}

.project-card.project-showcase {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

.project-card.project-swipe-front {
  --swipe-like-opacity: 0;
  --swipe-pass-opacity: 0;
  position: relative;
  will-change: transform, opacity;
  cursor: grab;
}

.project-card.project-swipe-front:active {
  cursor: grabbing;
}

.project-card .swipe-flags {
  z-index: 3;
  inset: 0.86rem 0.86rem auto 0.86rem;
}

.project-post-grid.compact .project-cover,
.project-post-grid.compact .project-media-fallback {
  height: 150px;
}

.project-media {
  margin: -1rem -1rem 0.55rem;
}

.project-cover {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.project-media-fallback {
  height: 190px;
  display: grid;
  place-items: center;
  color: #f8fafc;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background:
    radial-gradient(circle at 78% 16%, rgba(242, 183, 5, 0.2), transparent 38%),
    linear-gradient(150deg, rgba(7, 9, 13, 0.97), rgba(24, 31, 42, 0.94));
}

.project-media-painting,
.deck-media-painting {
  background:
    radial-gradient(circle at 80% 15%, rgba(242, 183, 5, 0.24), transparent 40%),
    linear-gradient(145deg, #07090d, #1f2937);
}

.project-media-roofing,
.deck-media-roofing {
  background:
    radial-gradient(circle at 80% 16%, rgba(242, 183, 5, 0.18), transparent 42%),
    linear-gradient(145deg, #080b11, #202838);
}

.project-media-plumbing,
.deck-media-plumbing {
  background:
    radial-gradient(circle at 80% 16%, rgba(242, 183, 5, 0.17), transparent 42%),
    linear-gradient(145deg, #0a1018, #253142);
}

.project-media-electrical,
.deck-media-electrical {
  background:
    radial-gradient(circle at 80% 16%, rgba(255, 209, 102, 0.26), transparent 42%),
    linear-gradient(145deg, #07090d, #24200f);
}

.project-media-hvac,
.deck-media-hvac {
  background:
    radial-gradient(circle at 80% 16%, rgba(242, 183, 5, 0.17), transparent 42%),
    linear-gradient(145deg, #08111b, #243044);
}

.price-headline {
  margin: 0.28rem 0 0;
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  font-size: clamp(1.72rem, 6vw, 2.35rem);
  font-weight: 900;
  color: #151515;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.job-profile-label {
  margin: 0.4rem 0 0;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6a6a6a;
}

.lead-metrics {
  margin-top: 0.44rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.36rem;
}

.lead-metrics span {
  border-radius: 999px;
  padding: 0.22rem 0.54rem;
  font-size: 0.7rem;
  font-weight: 800;
  color: #4d4d4d;
  background: rgba(17, 17, 17, 0.07);
}

.featured-card {
  border-color: rgba(242, 183, 5, 0.42);
  background: linear-gradient(135deg, rgba(242, 183, 5, 0.1), rgba(255, 255, 255, 0.99));
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: var(--space-2);
}

.card h4 {
  font-size: 1.06rem;
}

.project-card .card-top {
  align-items: center;
  margin-top: 0.78rem;
}

.project-card .card-top h4 {
  max-width: 68%;
  font-size: clamp(1.32rem, 5.2vw, 1.85rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.card p {
  margin: 0.44rem 0 0;
  color: #444444;
}

.project-meta {
  font-size: clamp(0.98rem, 3.6vw, 1.08rem);
  font-weight: 800;
  color: #2d2d2d;
}

.project-actions {
  margin-top: var(--space-3);
  align-items: center;
}

.project-actions .primary {
  order: -2;
  flex: 1 1 100%;
  min-height: 52px;
  font-size: 1rem;
  box-shadow: 0 14px 30px rgba(242, 183, 5, 0.28);
}

.project-actions .ghost:not(.safety-action),
.project-actions .secondary:not(.safety-action) {
  flex: 1 1 auto;
  min-height: 42px;
}

.card-link {
  border: 1px solid rgba(15, 15, 15, 0.14);
  background: rgba(255, 255, 255, 0.88);
}

.project-open-link {
  font-weight: 900;
  color: #ffffff;
  background: #171717;
  border-color: #171717;
}

.project-scope-link {
  color: #333333;
}

.safety-action {
  flex: 0 0 auto;
  align-self: center;
  min-height: 0;
  padding: 0.28rem 0.44rem;
  font-size: 0.64rem;
  color: #727272;
  background: transparent;
  border: 1px solid rgba(15, 15, 15, 0.08);
  box-shadow: none;
}

.project-details {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(15, 15, 15, 0.11);
}

.pill-row {
  margin-top: var(--space-2);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.pill,
.badge,
.status-chip {
  font-size: 0.73rem;
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  border: 1px solid transparent;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.status-chip::before {
  content: "";
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
  background: currentColor;
}

.pill.intent {
  color: #714f00;
  background: rgba(242, 183, 5, 0.2);
}

.pill.info {
  color: #4e4e4e;
  background: rgba(17, 17, 17, 0.08);
}

.topbar .pill.info {
  width: fit-content;
  color: rgba(248, 250, 252, 0.86);
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.13);
}

.pill.good {
  color: #165f40;
  background: rgba(25, 135, 84, 0.16);
}

.pill.beta {
  width: fit-content;
  margin-top: var(--space-2);
  color: #fdfdfd;
  background: rgba(242, 183, 5, 0.2);
  border: 1px solid rgba(242, 183, 5, 0.36);
}

.status-posted {
  background: rgba(17, 17, 17, 0.08);
  border-color: rgba(17, 17, 17, 0.12);
  color: #4f4f4f;
}

.status-interested,
.status-site-visit {
  background: rgba(242, 183, 5, 0.24);
  border-color: rgba(242, 183, 5, 0.44);
  color: #6b4d00;
}

.status-matched,
.status-hired,
.status-completed {
  background: rgba(25, 135, 84, 0.18);
  border-color: rgba(25, 135, 84, 0.28);
  color: #12633d;
}

.saved-searches {
  margin: 0.8rem 0;
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
}

.saved-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.saved-head h3 {
  margin: 0;
}

.compare-grid {
  margin-top: var(--space-3);
}

.compare-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(242, 183, 5, 0.24);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 212, 0.72));
  padding: var(--space-4);
}

.photo-grid,
.photo-strip {
  margin-top: var(--space-2);
  gap: var(--space-2);
}

.photo-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(15, 15, 15, 0.12);
  background: rgba(15, 15, 15, 0.05);
}

.photo-empty {
  margin: 0;
  padding: 0.6rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--line-strong);
  background: rgba(247, 247, 247, 0.85);
  font-size: 0.76rem;
  color: #5a5a5a;
}

#contractor-deck {
  margin-top: var(--space-3);
  display: grid;
  justify-items: center;
}

.swipe-stage {
  width: 100%;
  min-height: 580px;
}

.deck-stack {
  position: relative;
  width: min(100%, 460px);
  min-height: 540px;
}

.deck-card-front {
  position: relative;
  z-index: 3;
}

.deck-card-back {
  position: absolute;
  inset: 16px 0 auto 0;
  transform: scale(0.97);
  opacity: 0.72;
  z-index: 2;
  pointer-events: none;
}

.deck-card-back::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(15, 15, 15, 0.06));
  border-radius: inherit;
}

.deck-next-label {
  margin: 0 0 0.5rem;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6e5400;
}

.deck-queue-note {
  margin: 0.85rem 0 0;
  font-size: 0.76rem;
  color: #5a5a5a;
  text-align: center;
}

.deck-card {
  --swipe-like-opacity: 0;
  --swipe-pass-opacity: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(242, 183, 5, 0.36);
  background:
    radial-gradient(circle at 90% 8%, rgba(242, 183, 5, 0.2), transparent 46%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(255, 249, 227, 0.86));
  box-shadow: var(--shadow-md);
  padding: var(--space-5);
  width: min(100%, 460px);
}

.deck-media {
  margin: -1.3rem -1.3rem 0.78rem;
}

.deck-cover {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.deck-media-fallback {
  height: 220px;
  display: grid;
  place-items: center;
  color: #fff7d5;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background:
    radial-gradient(circle at 80% 16%, rgba(255, 255, 255, 0.24), transparent 40%),
    linear-gradient(150deg, rgba(20, 20, 20, 0.93), rgba(42, 42, 42, 0.95));
}

.deck-location {
  margin-top: 0.22rem;
  font-size: 0.94rem;
  color: #3e3e3e;
}

.deck-stats {
  margin-top: 0.44rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.deck-stats span {
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.08);
  color: #4a4a4a;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.26rem 0.56rem;
}

.swipe-flags {
  position: absolute;
  inset: 0.7rem 0.7rem auto 0.7rem;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.swipe-flag {
  border-radius: 999px;
  padding: 0.22rem 0.52rem;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  border: 1px solid currentColor;
}

.swipe-flag-pass {
  color: #505050;
  background: rgba(15, 15, 15, 0.06);
  opacity: var(--swipe-pass-opacity);
}

.swipe-flag-like {
  color: #755800;
  background: rgba(242, 183, 5, 0.16);
  opacity: var(--swipe-like-opacity);
}

.deck-actions {
  justify-content: center;
}

.deck-actions button {
  flex: 0 0 auto;
  min-width: 82px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.trust-card,
.today-card,
.account-card,
.subscription-card,
.bid-composer,
.ops-card,
.verification-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface-soft);
  padding: var(--space-4);
}

.today-hero {
  position: relative;
  display: grid;
  gap: var(--space-4);
  align-items: end;
  border-radius: var(--radius-lg);
  padding: clamp(1rem, 3vw, 1.45rem);
  background:
    linear-gradient(135deg, rgba(7, 9, 13, 0.97), rgba(24, 31, 42, 0.94)),
    radial-gradient(circle at 82% 10%, rgba(242, 183, 5, 0.22), transparent 34%);
  color: var(--text-invert);
  box-shadow: var(--shadow-sm);
}

.today-hero h2 {
  margin: 0.1rem 0 0.35rem;
  color: #ffffff;
}

.today-hero .helper {
  color: rgba(248, 250, 252, 0.78);
}

.today-actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.today-stats,
.today-grid {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-3);
}

#today-panel > .today-card {
  margin-top: var(--space-3);
}

.today-stat {
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 15, 15, 0.09);
  background: rgba(255, 255, 255, 0.78);
  padding: var(--space-3);
}

.today-stat span,
.today-stat small {
  display: block;
  color: var(--text-soft);
  font-size: 0.78rem;
}

.today-stat strong {
  display: block;
  margin: 0.18rem 0;
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  font-size: clamp(1.45rem, 4vw, 2.15rem);
}

.today-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface-soft);
  padding: var(--space-4);
}

.today-checklist {
  display: grid;
  gap: var(--space-2);
}

.today-step,
.today-highlight {
  display: grid;
  gap: var(--space-3);
  align-items: center;
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 15, 15, 0.08);
  background: rgba(255, 255, 255, 0.76);
  padding: var(--space-3);
}

.today-step {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.today-highlight {
  align-items: start;
}

.today-step > span {
  border-radius: 999px;
  background: rgba(242, 183, 5, 0.18);
  color: #5a4300;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.28rem 0.48rem;
}

.today-step.done > span {
  background: rgba(25, 135, 84, 0.12);
  color: #0f6840;
}

.today-step p,
.today-highlight p {
  margin: 0.18rem 0 0;
  color: var(--text-soft);
}

.today-highlight h4 {
  margin: 0;
}

.subscription-card,
.bid-composer,
.verification-card {
  margin-top: var(--space-3);
}

.account-grid {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.account-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface-soft);
  padding: var(--space-4);
}

.account-hero-card {
  background:
    radial-gradient(circle at 14% 0%, rgba(242, 183, 5, 0.1), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(247, 247, 247, 0.94));
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.setting-list {
  display: grid;
  gap: 0.48rem;
  margin-top: var(--space-2);
  color: #3d3d3d;
  font-size: 0.92rem;
}

.ops-metric-card h3 {
  margin: 0.08rem 0;
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1;
}

.moderation-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--space-3);
  align-items: center;
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 15, 15, 0.09);
  background: rgba(255, 255, 255, 0.76);
  padding: var(--space-3);
}

.moderation-item h4 {
  margin: 0;
}

.moderation-item p {
  margin: 0.22rem 0 0;
  color: #5b5b5b;
}

.subscription-card h3 {
  margin-bottom: 0.38rem;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
  margin: var(--space-3) 0;
}

.plan-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.plan-card {
  min-height: 110px;
  display: grid;
  align-content: start;
  gap: 0.25rem;
  text-align: left;
  border-radius: 18px;
  border: 1px solid rgba(15, 15, 15, 0.1);
  background:
    radial-gradient(circle at 92% 0%, rgba(242, 183, 5, 0.18), transparent 36%),
    rgba(255, 255, 255, 0.76);
  color: #171717;
  padding: var(--space-3);
}

.plan-card.active {
  border-color: rgba(242, 183, 5, 0.76);
  background:
    radial-gradient(circle at 90% 0%, rgba(255, 219, 72, 0.34), transparent 40%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 203, 0.78));
  box-shadow: 0 14px 32px rgba(242, 183, 5, 0.18);
}

.plan-card span,
.plan-card small {
  color: #555555;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.plan-card strong {
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  font-size: 1.28rem;
}

.plan-card small {
  line-height: 1.25;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
}

.subscription-disclaimer,
.subscription-gate-card {
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 15, 15, 0.09);
  background: rgba(17, 17, 17, 0.05);
  padding: var(--space-3);
}

.subscription-disclaimer {
  display: grid;
  gap: 0.2rem;
  margin-top: var(--space-3);
  color: #4b4b4b;
  font-size: 0.82rem;
}

.subscription-gate-card {
  display: grid;
  gap: var(--space-3);
  background:
    radial-gradient(circle at 12% 0%, rgba(242, 183, 5, 0.24), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(247, 247, 247, 0.92));
}

.subscription-gate-card h3 {
  margin: 0.1rem 0 0.35rem;
}

.badge-row {
  margin-top: var(--space-2);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.nudge-list {
  margin-top: var(--space-2);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.nudge-list .helper {
  width: 100%;
}

.nudge-btn {
  min-height: 0;
  padding: 0.38rem 0.66rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(17, 17, 17, 0.07);
}

.detail-drawer,
.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
}

.drawer-backdrop,
.modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(14px);
}

.drawer-panel {
  position: relative;
  justify-self: end;
  width: min(680px, 100%);
  height: 100%;
  overflow-y: auto;
  background:
    radial-gradient(circle at 88% 0%, rgba(242, 183, 5, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 242, 242, 0.96));
  box-shadow: -28px 0 80px rgba(0, 0, 0, 0.34);
  padding: clamp(1rem, 3vw, 1.5rem);
  animation: drawerIn 220ms ease both;
}

.drawer-close {
  border: 1px solid rgba(15, 15, 15, 0.11);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #222222;
  min-height: 0;
  padding: 0.48rem 0.72rem;
  font-size: 0.72rem;
  font-weight: 800;
}

.drawer-panel > .drawer-close {
  position: sticky;
  top: 0;
  z-index: 2;
  margin-left: auto;
}

.detail-sheet {
  display: grid;
  gap: var(--space-4);
}

.detail-hero {
  display: grid;
  gap: var(--space-3);
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(15, 15, 15, 0.09);
}

.detail-hero .project-media,
.detail-hero .contractor-profile-media {
  margin: 0;
}

.detail-hero .project-cover,
.detail-hero .contractor-profile-cover,
.detail-hero .project-media-fallback,
.detail-hero .contractor-profile-fallback {
  height: clamp(230px, 42vw, 360px);
}

.detail-hero-copy {
  padding: 0 var(--space-4) var(--space-4);
}

.detail-hero-copy h2 {
  margin: 0.12rem 0 0;
  font-size: clamp(2rem, 7vw, 3.3rem);
  letter-spacing: -0.06em;
}

.detail-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-2);
}

.detail-metric {
  border-radius: 18px;
  border: 1px solid rgba(15, 15, 15, 0.08);
  background: rgba(255, 255, 255, 0.78);
  padding: var(--space-3);
}

.detail-metric span {
  display: block;
  color: #666666;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.detail-metric strong {
  display: block;
  margin-top: 0.18rem;
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  font-size: 1.12rem;
}

.detail-section {
  border-radius: 22px;
  border: 1px solid rgba(15, 15, 15, 0.09);
  background: rgba(255, 255, 255, 0.78);
  padding: var(--space-4);
}

.detail-section h3 {
  margin: 0;
}

.detail-section p {
  color: #4d4d4d;
}

.scope-factors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.44rem;
  margin-top: var(--space-3);
}

.scope-factors span {
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.06);
  color: #454545;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.34rem 0.62rem;
}

.detail-photo-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.detail-photo-rail img {
  width: 100%;
  aspect-ratio: 1.15;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(15, 15, 15, 0.08);
}

.detail-carousel {
  display: grid;
  gap: var(--space-2);
  background: #101010;
}

.detail-carousel-main {
  width: 100%;
  height: clamp(260px, 48vw, 390px);
  object-fit: cover;
  display: block;
}

.detail-carousel-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(74px, 1fr);
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0 var(--space-3) var(--space-3);
}

.detail-carousel-strip button {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid transparent;
  opacity: 0.7;
  padding: 0;
  min-height: 0;
  background: transparent;
}

.detail-carousel-strip button.active {
  border-color: var(--accent);
  opacity: 1;
}

.detail-carousel-strip img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  display: block;
}

.detail-map-section {
  overflow: hidden;
}

.detail-map-preview {
  position: relative;
  min-height: 220px;
  margin-top: var(--space-3);
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(15, 15, 15, 0.1);
  background:
    radial-gradient(circle at 70% 28%, rgba(242, 183, 5, 0.24), transparent 22%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(226, 226, 226, 0.78));
}

.map-grid-line {
  position: absolute;
  height: 2px;
  width: 130%;
  left: -15%;
  background: rgba(15, 15, 15, 0.08);
  transform: rotate(-14deg);
}

.map-grid-line.line-a {
  top: 28%;
}

.map-grid-line.line-b {
  top: 52%;
  transform: rotate(18deg);
}

.map-grid-line.line-c {
  top: 74%;
}

.detail-map-pin {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  border-radius: 999px;
  padding: 0.42rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 900;
  color: #171717;
  border: 1px solid rgba(15, 15, 15, 0.12);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.14);
}

.detail-map-pin::before {
  content: "";
  width: 0.58rem;
  height: 0.58rem;
  margin-right: 0.35rem;
  border-radius: 999px;
  background: currentColor;
}

.project-pin {
  top: 34%;
  left: 54%;
  color: #6f5400;
  background: rgba(255, 238, 145, 0.94);
}

.base-pin {
  top: 62%;
  left: 18%;
  color: #1e1e1e;
}

.fit-breakdown,
.bid-history-section {
  background:
    radial-gradient(circle at 92% 8%, rgba(242, 183, 5, 0.18), transparent 30%),
    rgba(255, 255, 255, 0.8);
}

.bid-history-list {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.bid-history-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-2);
  align-items: start;
  border-radius: 18px;
  border: 1px solid rgba(15, 15, 15, 0.08);
  background: rgba(255, 255, 255, 0.78);
  padding: var(--space-3);
}

.bid-history-item strong {
  display: block;
}

.bid-history-item p {
  margin: 0.18rem 0 0;
}

.ranked-contractor-list {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.ranked-contractor-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--space-2);
  align-items: center;
  width: 100%;
  text-align: left;
  border-radius: 18px;
  border: 1px solid rgba(15, 15, 15, 0.08);
  background: rgba(255, 255, 255, 0.82);
  color: #171717;
  padding: var(--space-3);
}

.ranking-position {
  display: inline-grid;
  place-items: center;
  min-width: 2.2rem;
  min-height: 2.2rem;
  border-radius: 999px;
  background: rgba(242, 183, 5, 0.2);
  color: #5c4600;
  font-weight: 900;
}

.ranked-contractor-row strong,
.ranked-contractor-row small {
  display: block;
}

.ranked-contractor-row small {
  margin-top: 0.16rem;
  color: #5d5d5d;
  font-weight: 700;
}

.trust-band {
  display: grid;
  gap: var(--space-3);
  background:
    radial-gradient(circle at 100% 0%, rgba(242, 183, 5, 0.22), transparent 36%),
    rgba(255, 255, 255, 0.82);
}

.drawer-action-row,
.chat-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}

.drawer-action-row {
  position: sticky;
  bottom: 0;
  border-radius: 22px;
  border: 1px solid rgba(15, 15, 15, 0.1);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  padding: var(--space-3);
  box-shadow: 0 -12px 34px rgba(0, 0, 0, 0.08);
}

.safety-action {
  color: #555555;
}

.modal-layer {
  place-items: center;
  padding: var(--space-4);
}

.modal-card {
  position: relative;
  width: min(560px, 100%);
  max-height: min(88vh, 720px);
  overflow-y: auto;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(circle at 80% 0%, rgba(242, 183, 5, 0.22), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 244, 244, 0.97));
  box-shadow: var(--shadow-lg);
  padding: var(--space-5);
  animation: modalIn 180ms ease both;
}

.report-form,
.preview-frame,
.preview-project-list {
  display: grid;
  gap: var(--space-3);
}

.profile-preview-modal {
  width: min(720px, 100%);
}

.subscription-hero {
  color: var(--text-invert);
  padding: clamp(1.2rem, 4vw, 2rem);
  background:
    radial-gradient(circle at 90% 8%, rgba(242, 183, 5, 0.34), transparent 38%),
    linear-gradient(145deg, rgba(8, 8, 8, 0.98), rgba(31, 31, 31, 0.94));
}

.subscription-hero h2,
.subscription-hero p {
  color: #ffffff;
}

@keyframes drawerIn {
  from {
    opacity: 0;
    transform: translateX(28px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.chat-preview-card {
  border-radius: 18px;
  border-color: rgba(15, 15, 15, 0.12);
}

.chat-preview-card .action-row {
  margin-top: var(--space-2);
}

.chat-preview-card .action-row .ghost {
  font-size: 0.72rem;
  padding: 0.45rem 0.62rem;
}

.verification-list {
  margin-top: var(--space-3);
}

.verification-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-2);
  align-items: center;
  border-radius: 8px;
  border: 1px solid rgba(15, 15, 15, 0.1);
  background: rgba(255, 255, 255, 0.8);
  padding: 0.62rem;
}

.verification-item > span {
  border-radius: 999px;
  background: rgba(242, 183, 5, 0.22);
  color: #5f4700;
  font-size: 0.66rem;
  font-weight: 900;
  padding: 0.22rem 0.44rem;
}

.verification-item.done > span {
  color: #165f40;
  background: rgba(25, 135, 84, 0.16);
}

.verification-item strong {
  display: block;
  font-size: 0.82rem;
}

.verification-item p {
  margin: 0.12rem 0 0;
  color: #666666;
  font-size: 0.74rem;
}

.verification-item button {
  padding: 0.38rem 0.62rem;
  font-size: 0.72rem;
}

.chat-workspace {
  margin-top: var(--space-3);
}

.chat-thread-list {
  display: grid;
  gap: var(--space-2);
}

.chat-thread {
  width: 100%;
  border-radius: 8px;
  background: rgba(17, 17, 17, 0.06);
  color: #252525;
  text-align: left;
  padding: 0.72rem;
}

.chat-thread.active {
  background: rgba(242, 183, 5, 0.22);
  box-shadow: inset 0 0 0 1px rgba(242, 183, 5, 0.55);
}

.chat-thread span,
.chat-thread small {
  display: block;
}

.chat-thread small {
  margin-top: 0.16rem;
  color: #646464;
  font-size: 0.7rem;
}

.chat-active-panel {
  border-radius: 8px;
  border: 1px solid rgba(15, 15, 15, 0.12);
  background: rgba(255, 255, 255, 0.78);
  padding: var(--space-3);
}

.chat-active-head {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  align-items: flex-start;
}

.chat-active-head h4 {
  margin: 0.1rem 0 0;
}

.chat-message-list {
  margin-top: var(--space-3);
  max-height: 360px;
  overflow-y: auto;
}

.chat-bubble {
  width: min(88%, 520px);
  border-radius: 8px;
  background: rgba(17, 17, 17, 0.07);
  padding: 0.58rem 0.68rem;
}

.chat-bubble.mine {
  justify-self: end;
  color: var(--accent-ink);
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.chat-bubble.system {
  width: 100%;
  background: rgba(17, 17, 17, 0.05);
}

.chat-bubble p {
  margin: 0;
}

.chat-bubble small {
  display: block;
  margin-top: 0.22rem;
  color: rgba(0, 0, 0, 0.55);
  font-size: 0.66rem;
}

.quick-reply-row {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-top: var(--space-3);
}

.quick-reply-row button {
  border-radius: 8px;
  font-size: 0.72rem;
  padding: 0.5rem 0.62rem;
}

.chat-message-form {
  margin-top: var(--space-3);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-2);
}

.badge {
  color: #624900;
  background: rgba(242, 183, 5, 0.18);
}

.inline-control {
  margin-top: var(--space-3);
}

.match-grid,
.ops-grid {
  gap: var(--space-3);
}

.activity,
.empty-state {
  margin: var(--space-3) 0 0;
  border-radius: var(--radius-md);
  padding: 0.75rem 0.82rem;
}

.activity {
  border: 1px dashed rgba(242, 183, 5, 0.54);
  background: rgba(255, 247, 212, 0.74);
  color: #5a4300;
}

.empty-state {
  border: 1px dashed rgba(15, 15, 15, 0.22);
  background: rgba(247, 247, 247, 0.85);
  color: #575757;
}

.onboarding-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  padding: 0.8rem;
  display: grid;
  place-items: start center;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(9px);
}

.onboarding-card {
  width: min(760px, 100%);
  margin: auto 0;
  max-height: calc(100dvh - 1.4rem);
  overflow-y: auto;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-md);
  padding: var(--space-5);
}

.onboarding-card h2 {
  margin: 0.18rem 0 0;
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
}

.invite-gate {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(17, 24, 39, 0.14);
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 0.98));
  padding: var(--space-4);
}

.onboarding-demo-board {
  margin-top: var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(17, 24, 39, 0.1);
  background: rgba(248, 250, 252, 0.78);
  padding: var(--space-3);
}

.onboarding-demo-board .project-post-grid {
  max-height: min(56dvh, 620px);
  overflow-y: auto;
  padding-right: 0.18rem;
}

.onboarding-demo-board .project-card {
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
}

.role-picker {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  color: #2a2a2a;
  font-weight: 800;
  text-align: left;
  padding: 0.88rem;
}

.role-picker.active {
  border-color: rgba(242, 183, 5, 0.64);
  box-shadow: 0 0 0 3px rgba(242, 183, 5, 0.16);
  background: linear-gradient(145deg, rgba(242, 183, 5, 0.12), rgba(255, 255, 255, 0.98));
}

.selected-role {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  color: #4e4e4e;
}

.contractor-only {
  padding: 0.8rem;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(242, 183, 5, 0.52);
  background: rgba(242, 183, 5, 0.09);
}

.mobile-nav {
  position: fixed;
  left: 0.6rem;
  right: 0.6rem;
  bottom: 0.55rem;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 0.4rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(7, 9, 13, 0.94);
  box-shadow: var(--shadow-md);
  padding: 0.4rem;
}

.mobile-nav-item {
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(245, 245, 245, 0.88);
  font-weight: 700;
  font-size: 0.77rem;
  min-height: 40px;
  padding: 0.45rem 0.4rem;
}

.mobile-nav-item.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: var(--accent-ink);
  box-shadow: 0 10px 24px rgba(242, 183, 5, 0.22);
}

.fade-up {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.45s ease forwards;
}

.app-screen.is-active,
.panel.is-active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  animation-delay: 0.08s;
}

.delay-2 {
  animation-delay: 0.16s;
}

@media (max-width: 620px) {
  body::before {
    opacity: 0.28;
  }

  .swipe-headliner {
    grid-template-columns: 1fr;
  }

  .swipe-mini-stack {
    min-height: 98px;
  }

  .swipe-mini-card {
    left: 50%;
    right: auto;
    width: min(132px, 34vw);
  }

  .swipe-mini-card-back {
    transform: translateY(-50%) translateX(calc(-50% - 38px)) rotate(-9deg) scale(0.9);
  }

  .swipe-mini-card-mid {
    transform: translateY(-50%) translateX(calc(-50% - 10px)) rotate(-1deg) scale(0.96);
  }

  .swipe-mini-card-front {
    transform: translateY(-50%) translateX(calc(-50% + 24px)) rotate(8deg);
  }
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes screen-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes sync-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(0.72);
    opacity: 0.68;
  }
}

@keyframes vt-old {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-10px);
  }
}

@keyframes vt-new {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

::view-transition-old(root) {
  animation: vt-old 220ms ease;
}

::view-transition-new(root) {
  animation: vt-new 260ms ease;
}

@media (hover: hover) {
  .card:hover,
  .compare-card:hover,
  .deck-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.14);
  }
}

@media (min-width: 720px) {
  .project-form,
  .filters,
  .profile-form,
  .contractor-only,
  .role-picker-row,
  .compare-grid,
  .photo-grid,
  .photo-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photo-grid,
  .photo-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .role-picker-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .match-grid,
  .today-grid,
  .role-example-grid,
  .sample-role-preview-grid,
  .profile-example-grid,
  .project-post-grid,
  .account-grid,
  .ops-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .today-hero {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .chat-workspace {
    grid-template-columns: minmax(190px, 0.85fr) minmax(0, 2fr);
    align-items: start;
  }
}

@media (min-width: 980px) {
  .topbar {
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
    align-items: center;
  }

  .kpi-row,
  .screen-nav {
    grid-column: 1 / -1;
  }

  .user-wrap {
    width: min(440px, 100%);
    justify-self: end;
    justify-items: end;
  }

  .active-user {
    width: 100%;
  }

  .dashboard {
    margin-bottom: 2rem;
  }

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

  .project-post-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .kpi-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .plan-grid,
  .detail-stat-grid {
    grid-template-columns: 1fr;
  }

  .drawer-panel {
    justify-self: stretch;
    width: 100%;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .saved-head {
    align-items: flex-start;
  }

  .cloud-sync-row {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1060px) {
  .mobile-nav {
    display: none;
  }

  .dashboard {
    margin-bottom: 2rem;
  }
}

@media (max-width: 500px) {
  .screen-nav {
    display: none;
  }

  .mobile-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .topbar,
  .panel,
  .onboarding-card {
    padding: var(--space-4);
  }

  .app-screen {
    min-height: calc(100dvh - 250px);
  }

  .dashboard {
    margin-bottom: 8rem;
  }

  .kpi-row {
    grid-template-columns: 1fr;
  }

  .section-title {
    align-items: flex-start;
  }

  .swipe-stage {
    min-height: 500px;
  }

  .deck-stack {
    min-height: 470px;
  }

  .deck-cover,
  .deck-media-fallback {
    height: 190px;
  }

  .lead-map-canvas {
    min-height: 180px;
  }

  .map-stat-row,
  .chat-message-form {
    grid-template-columns: 1fr;
  }

  .verification-item {
    grid-template-columns: 1fr;
  }

  .today-step {
    grid-template-columns: 1fr;
  }

  .today-actions {
    flex-direction: column;
  }

  .today-actions button {
    width: 100%;
  }

  .moderation-item {
    grid-template-columns: 1fr;
  }

  .drawer-action-row {
    position: static;
  }

  .modal-layer {
    padding: 0.7rem;
  }

  .modal-card {
    padding: var(--space-4);
  }
}

@media (max-width: 620px) {
  body {
    background: linear-gradient(145deg, var(--bg-0), var(--bg-1) 56%, var(--bg-2));
  }

  .topbar {
    width: min(100% - 0.75rem, 460px);
    margin-top: 0.38rem;
    padding: 0.82rem;
    border-radius: 24px;
    gap: 0.7rem;
  }

  .topbar::before {
    opacity: 0.55;
    background-size: 44px 44px;
  }

  .brand-wrap {
    gap: 0.26rem;
  }

  .brand-wrap .eyebrow {
    font-size: 0.58rem;
    letter-spacing: 0.15em;
  }

  .brand-wrap h1 {
    font-size: clamp(1.75rem, 10vw, 2.35rem);
    line-height: 0.92;
  }

  .subline {
    display: none;
  }

  .swipe-headliner {
    grid-template-columns: minmax(0, 1fr) 104px;
    gap: 0.48rem;
    margin-top: 0.32rem;
    padding: 0.72rem;
    border-radius: 20px;
    min-height: 104px;
  }

  .swipe-kicker {
    font-size: 0.56rem;
    letter-spacing: 0.12em;
  }

  .swipe-headliner h2 {
    max-width: 10.5rem;
    margin-top: 0.08rem;
    font-size: clamp(1.03rem, 4.8vw, 1.28rem);
    line-height: 0.98;
  }

  .swipe-headliner p {
    display: none;
  }

  .swipe-mini-stack {
    min-height: 76px;
  }

  .swipe-mini-card {
    left: auto;
    right: 0;
    width: 92px;
    height: 58px;
    border-radius: 16px;
    font-size: 0.68rem;
  }

  .swipe-mini-card-back {
    transform: translateY(-50%) translateX(-24px) rotate(-9deg) scale(0.9);
  }

  .swipe-mini-card-mid {
    transform: translateY(-50%) translateX(-10px) rotate(-1deg) scale(0.96);
  }

  .swipe-mini-card-front {
    transform: translateY(-50%) translateX(5px) rotate(8deg);
  }

  #beta-pill,
  #theme-pill,
  .trust-strip,
  .topbar .user-wrap,
  .topbar .kpi-row {
    display: none;
  }

  .dashboard {
    width: min(100% - 0.75rem, 460px);
    margin-top: 0.65rem;
    margin-bottom: 8.8rem;
  }

  .panel {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .today-hero {
    padding: 0.95rem;
    border-radius: 24px;
    gap: 0.8rem;
  }

  .today-hero .eyebrow {
    font-size: 0.58rem;
    letter-spacing: 0.14em;
  }

  .today-hero h2 {
    font-size: clamp(1.55rem, 8vw, 2rem);
    line-height: 0.95;
  }

  .today-hero .helper {
    display: none;
  }

  .today-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .today-actions button {
    width: 100%;
    min-height: 46px;
    padding-inline: 0.75rem;
  }

  .project-posts-showcase {
    margin-top: 0.75rem;
    padding: 0.92rem;
    border-radius: 24px;
  }

  .project-posts-showcase .card-top {
    align-items: start;
    gap: 0.55rem;
  }

  .project-posts-showcase .card-top h3 {
    max-width: 12rem;
    font-size: clamp(1.22rem, 6vw, 1.55rem);
    line-height: 1.02;
  }

  .project-posts-showcase > .helper {
    display: none;
  }

  .project-post-grid {
    gap: 0.9rem;
  }

  .project-card {
    border-radius: 24px;
    padding: 0.92rem;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.13);
  }

  .project-media {
    margin: -0.92rem -0.92rem 0.72rem;
  }

  .project-cover,
  .project-media-fallback {
    height: clamp(168px, 52vw, 220px);
  }

  .project-card .card-top {
    margin-top: 0.52rem;
  }

  .project-card .card-top h4 {
    max-width: 58%;
    font-size: clamp(1.48rem, 7vw, 1.88rem);
  }

  .job-profile-label {
    margin-top: 0.36rem;
    font-size: 0.66rem;
  }

  .price-headline {
    font-size: clamp(2rem, 9vw, 2.55rem);
  }

  .project-meta {
    font-size: 0.86rem;
  }

  .lead-metrics,
  .pill-row {
    gap: 0.32rem;
  }

  .project-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }

  .project-actions .primary,
  .project-actions .ghost:not(.safety-action),
  .project-actions .secondary:not(.safety-action) {
    width: 100%;
    min-height: 44px;
  }

  .project-actions .primary {
    grid-column: 1 / -1;
  }

  .project-actions .safety-action {
    min-height: 36px;
    font-size: 0.72rem;
    opacity: 0.82;
  }

  .mobile-nav {
    left: 0.45rem;
    right: 0.45rem;
    bottom: 0.45rem;
    border-radius: 22px;
    padding: 0.34rem;
  }

  .mobile-nav-item {
    min-height: 42px;
  }
}
