/* App2 — calm premium shell (marble, navy, cream — café reference) */
:root {
  --ish-navy: #243b56;
  --ish-navy-deep: #1a2f45;
  --ish-cream: #ebe4d8;
  --ish-cream-light: #f6f3ed;
  --ish-marble: #faf9f6;
  --ish-blue: var(--ish-navy);
  --ish-bg: #f4f1eb;
  --ish-card: #ffffff;
  --ish-text: #2a3140;
  --ish-muted: #6b7480;
  --ish-gold: #b8944f;
  --brand-accent: var(--ish-gold);
  --brand-header-bg: #ffffff;
  --radius: 18px;
  --shadow: 0 10px 36px rgba(36, 59, 86, 0.07);
  --border-soft: rgba(36, 59, 86, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
  background:
    radial-gradient(ellipse 120% 70% at 50% -15%, rgba(255, 255, 255, 0.85), transparent 55%),
    var(--ish-bg);
  color: var(--ish-text);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ish-navy); }

.app2-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px;
}

/* =========================================================
   APP2 HEADER
========================================================= */
.brand-shell {
    background: var(--ish-marble);
    border-bottom: 1px solid var(--border-soft);
}

.brand-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding-top: clamp(24px, 4vw, 42px);
    padding-bottom: clamp(20px, 3vw, 34px);
    text-align: center;
}

.brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex: 0 0 auto;
    max-width: 100%;
    overflow: hidden;
}

.brand-mark img.logo,
.brand-mark .logo {
    display: block;
    width: auto;
    height: auto;
    max-height: 90px;
    max-width: min(420px, 82vw);
    object-fit: contain;
    object-position: center;
}

.brand-mark span {
    color: var(--ish-navy-deep);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.8rem, 6vw, 3.6rem);
    font-weight: 700;
    letter-spacing: -.04em;
    white-space: nowrap;
}

.brand-title {
    display: grid;
    gap: 3px;
    color: var(--ish-muted);
    font-size: .9rem;
    line-height: 1.35;
}

.brand-title .brand-name {
    color: var(--ish-navy-deep);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.35rem, 3vw, 2.1rem);
    font-weight: 700;
    letter-spacing: -.035em;
}

@media (max-width: 720px) {
    .brand-header {
        gap: 10px;
        padding-top: 22px;
        padding-bottom: 20px;
    }

    .brand-mark img.logo,
    .brand-mark .logo {
        max-height: 64px;
        max-width: min(260px, 78vw);
    }

    .brand-title {
        font-size: .82rem;
    }

    .brand-title .brand-name {
        font-size: 1.28rem;
    }
}

.app2-brand {
  text-align: center;
  padding: 20px 12px 8px;
}

.app2-brand img.logo {
  max-width: 220px;
  height: auto;
}

.app2-brand h1 {
  margin: 12px 0 6px;
  font-size: 1.35rem;
}

.app2-brand .tag {
  color: var(--ish-muted);
  font-size: 0.95rem;
}

.app2-card {
  background: var(--ish-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(20px, 3vw, 28px);
  margin: 18px 0;
  border: 1px solid var(--border-soft);
}

/* Paruse doorway keeps shared auth while carrying the official brand mark. */
.app2-auth-paruse .brand-shell {
  display: none;
}

.app2-auth-paruse main.app2-wrap {
  width: min(100%, 32rem);
  padding-top: max(1.25rem, env(safe-area-inset-top));
  padding-right: max(1rem, env(safe-area-inset-right));
  padding-bottom: max(2.5rem, env(safe-area-inset-bottom));
  padding-left: max(1rem, env(safe-area-inset-left));
}

.app2-auth-card--paruse {
  margin-top: clamp(0.5rem, 4vh, 2.5rem) !important;
}

.paruse-auth-logo {
  display: flex;
  justify-content: center;
  width: min(100%, 20rem);
  margin: 0 auto 1.25rem;
  text-decoration: none;
}

.paruse-auth-logo img {
  display: block;
  width: min(100%, 18rem);
  height: auto;
  max-height: 10.5rem;
  object-fit: contain;
}

.ecosystem-menu-intro {
  max-width: 720px;
  margin: clamp(36px, 7vw, 76px) auto clamp(24px, 4vw, 42px);
  text-align: center;
}

.ecosystem-menu-eyebrow {
  margin: 0 0 12px;
  color: var(--ish-navy);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.ecosystem-menu-intro h1 {
  margin: 0;
  color: var(--ish-navy-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
}

.ecosystem-menu-intro p:last-child {
  margin: 18px auto 0;
  color: var(--ish-muted);
  font-size: clamp(1rem, 2.4vw, 1.22rem);
}

.ecosystem-menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin: 0 0 clamp(42px, 7vw, 78px);
}

/* Layer 1 — Choose your world (premium boxed cards, minimal copy) */
.concierge-layer1-intro h1 {
  margin: 0;
}

.concierge-layer1-intro .ecosystem-menu-intro p:last-child,
.concierge-layer1-intro p:last-child:not(.ecosystem-menu-eyebrow) {
  display: none;
}

.concierge-layer1.ecosystem-menu-grid {
  gap: clamp(18px, 3vw, 26px);
  margin: 0 auto clamp(48px, 8vw, 88px);
  padding: 0 clamp(12px, 3vw, 24px);
  max-width: 1080px;
}

@media (max-width: 519px) {
  .concierge-layer1.ecosystem-menu-grid {
    max-width: 360px;
  }
}

.concierge-layer1-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 100%;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.concierge-layer1-card:hover {
  border-color: rgba(184, 148, 79, 0.35);
  box-shadow: 0 14px 40px rgba(36, 59, 86, 0.1);
  transform: translateY(-2px);
}

.concierge-layer1-card:focus-visible {
  outline: 2px solid var(--ish-gold);
  outline-offset: 3px;
}

.concierge-layer1-card-inner {
  width: 100%;
}

.concierge-layer1-text {
  width: 100%;
  text-align: center;
}

.concierge-layer1-card .department-portrait,
.concierge-layer1-card .department-portrait--oval {
  margin-left: auto;
  margin-right: auto;
  align-self: center;
}

.concierge-layer1-card h2 {
  margin: 0;
  color: var(--ish-navy-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 2.4vw, 1.18rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
}

.concierge-layer1-card .ecosystem-guide-name {
  margin: 6px 0 0;
  color: var(--ish-gold);
}

/* iPad — Layer 1 oval portraits (fixed 3:4; avoid square stretch) */
@media (min-width: 521px) and (max-width: 1194px) {
  .concierge-layer1-card .department-portrait,
  .concierge-layer1-card .department-portrait--oval {
    width: 144px;
    height: 192px;
    margin-left: auto;
    margin-right: auto;
    align-self: center;
  }

  .concierge-layer1-card .department-portrait img,
  .concierge-layer1-card .department-portrait--oval img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* Layer 2 — world detail */
.concierge-layer2-intro {
  max-width: 720px;
  margin: clamp(28px, 5vw, 52px) auto clamp(20px, 3vw, 32px);
  text-align: center;
}

.concierge-back-link {
  display: inline-block;
  margin: 0 0 20px;
  color: var(--ish-muted);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
}

.concierge-back-link:hover {
  color: var(--ish-gold);
}

.concierge-menu-nav,
.guide-chat-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  max-width: 1100px;
  margin: clamp(16px, 3vw, 24px) auto 0;
  padding: 0 clamp(12px, 3vw, 20px);
}

.concierge-menu-nav-secondary,
.guide-chat-nav-secondary {
  color: var(--ish-muted);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: .02em;
}

.concierge-menu-nav-secondary:hover,
.guide-chat-nav-secondary:hover {
  color: var(--ish-navy);
}

.concierge-layer2-lead {
  margin: 12px 0 0;
  color: var(--ish-muted);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
}

.concierge-layer2 {
  max-width: 640px;
  margin: 0 auto clamp(48px, 8vw, 88px);
}

.concierge-layer2-card .department-head-text h1 {
  margin: 0;
  color: var(--ish-navy-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.25;
}

.concierge-layer3-stub {
  margin-top: 28px;
  padding: 16px 18px;
  border: 1px dashed rgba(184, 148, 79, 0.35);
  border-radius: 14px;
  background: rgba(246, 243, 237, 0.6);
}

.concierge-layer3-stub-label {
  margin: 0 0 6px;
  color: var(--ish-navy);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.concierge-layer3-stub-note {
  margin: 0;
  color: var(--ish-muted);
  font-size: .82rem;
  line-height: 1.5;
  font-style: italic;
}

.department-editorial {
  margin: 0 0 16px;
  color: var(--ish-navy);
  font-size: 0.95rem;
  line-height: 1.55;
}

.department-tagline {
  margin: 0 0 8px;
  color: var(--ish-gold);
  font-size: 0.88rem;
  font-style: italic;
  line-height: 1.45;
  text-align: center;
}

.department-link--chat {
  display: block;
  margin: 0 0 10px;
  text-align: center;
}

.department-phone--chat-hint {
  margin-top: 0;
}

.concierge-guide-routing {
  margin: 12px 0 0;
  padding: 10px 0 0;
  border-top: 1px solid var(--border-soft);
  color: var(--ish-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.concierge-guide-routing a {
  color: var(--ish-navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.concierge-guide-routing a:hover {
  color: var(--ish-gold);
}

/* Ecosystem department — concierge desk (premium paper card) */
.ecosystem-department-card {
  min-height: 100%;
  padding: clamp(24px, 3.5vw, 34px);
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  background: linear-gradient(180deg, #fff 0%, var(--ish-cream-light) 100%);
  box-shadow: var(--shadow);
}

.department-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 4px;
}

/* Centered vertical oval — all departments (photo or initials) */
.department-portrait,
.department-portrait--oval {
  display: block;
  flex: 0 0 auto;
  align-self: center;
  width: 144px;
  height: 192px;
  max-width: 100%;
  margin: 0 auto 4px;
  padding: 0;
  overflow: hidden;
  border: none;
  border-radius: 50%;
  aspect-ratio: 3 / 4;
  background: #fff;
  box-shadow: 0 2px 12px rgba(36, 59, 86, 0.06);
}

.department-portrait img,
.department-portrait--oval img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
}

.department-portrait-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 100%;
  padding: 12px 16px;
  box-sizing: border-box;
  color: var(--ish-navy);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  background: var(--ish-cream-light);
}

.department-head-text {
  width: 100%;
}

.department-head-text h2 {
  margin: 0;
  color: var(--ish-navy-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.25;
}

.department-guide {
  margin: 8px 0 0;
  color: var(--ish-gold);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.department-purpose {
  margin: 0 0 20px;
  color: var(--ish-muted);
  font-size: .94rem;
  line-height: 1.55;
  text-align: center;
}

.department-console {
  margin: 0 0 22px;
  padding: 14px 16px;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: var(--ish-marble);
}

.department-console label {
  display: block;
  margin: 0;
}

.department-console label span {
  display: block;
  margin-bottom: 8px;
  color: var(--ish-navy);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.department-console input {
  width: 100%;
  margin: 0;
  padding: 10px 16px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: #fff;
  color: var(--ish-muted);
  font-size: .88rem;
}

.department-console input:disabled {
  cursor: default;
  opacity: 1;
}

.department-phone {
  margin: 12px 0 0;
  color: var(--ish-muted);
  font-size: .8rem;
  font-style: italic;
}

.department-nav {
  display: grid;
  gap: 0;
}

.department-nav-label {
  margin: 16px 0 6px;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
  color: var(--ish-navy);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.department-nav-label:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.department-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 10px 0;
  border-top: 1px solid var(--border-soft);
  color: var(--ish-navy);
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none;
}

.department-link::after {
  content: "";
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-top: 1px solid var(--ish-navy);
  border-right: 1px solid var(--ish-navy);
  transform: rotate(45deg);
  opacity: .5;
}

.department-link--guild {
  border-top: none;
  margin-top: 0;
  font-weight: 700;
  color: var(--ish-navy-deep);
}

.department-link:hover {
  color: var(--ish-gold);
}

.department-link:hover::after {
  border-color: var(--ish-gold);
  opacity: 1;
}

@media (max-width: 520px) {
  .department-portrait,
  .department-portrait--oval {
    width: 120px;
    height: 160px;
  }
}

/* iPad / tablet: reinforce fixed oval (Safari flex+img can stretch square) */
@media (min-width: 521px) and (max-width: 1194px) {
  .department-head {
    align-items: center;
  }

  .ecosystem-department-card .department-portrait,
  .ecosystem-department-card .department-portrait--oval {
    width: 144px;
    height: 192px;
    margin-left: auto;
    margin-right: auto;
    align-self: center;
  }

  .ecosystem-department-card .department-portrait img,
  .ecosystem-department-card .department-portrait--oval img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* DIY Home Inspection */
.diy-intro h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--ish-navy-deep);
  letter-spacing: -.02em;
}

.diy-lede {
  margin: 12px 0 0;
  color: var(--ish-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.diy-panel h2 {
  margin: 0 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  color: var(--ish-navy-deep);
}

.diy-field-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 640px) {
  .diy-field-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.diy-field {
  display: block;
}

.diy-field span {
  display: block;
  margin-bottom: 6px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ish-navy);
}

.diy-field input,
.diy-field select,
.diy-question select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: #fff;
  font-size: .9rem;
}

.diy-questions {
  display: grid;
  gap: 12px;
}

.diy-question {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid rgba(36, 59, 86, 0.06);
}

.diy-question-label {
  margin: 0;
  font-size: .9rem;
  line-height: 1.45;
  color: var(--ish-text);
}

.diy-question select {
  min-width: 120px;
}

.diy-disclaimer {
  margin: 0 0 16px;
  color: var(--ish-muted);
  font-size: .84rem;
  line-height: 1.5;
}

.diy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.diy-concern-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.diy-concern-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: .9rem;
  line-height: 1.45;
}

.diy-concern-section {
  display: block;
  margin-bottom: 4px;
  color: var(--ish-gold);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.diy-ai-summary {
  margin-top: 12px;
  padding: 16px 18px;
  border-left: 3px solid var(--ish-navy);
  background: var(--ish-marble);
  color: var(--ish-text);
  font-size: .92rem;
  line-height: 1.6;
}

.diy-print-list {
  margin: 0;
  padding-left: 1.2rem;
}

.diy-print-list li {
  margin-bottom: 8px;
  font-size: .88rem;
  line-height: 1.4;
}

.diy-print-blank {
  color: var(--ish-muted);
  font-size: .78rem;
  white-space: nowrap;
}

.diy-print-fields {
  margin: 0;
  padding: 0;
  list-style: none;
}

.diy-print-fields li {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid rgba(36, 59, 86, 0.06);
  font-size: .88rem;
}

.diy-print-field-label {
  flex: 1 1 200px;
  color: var(--ish-text);
}

/* Rent-to-Own landing */
.rto-intro h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--ish-navy-deep);
  letter-spacing: -.02em;
}

.rto-lede {
  margin: 12px 0 0;
  color: var(--ish-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.rto-panel h2 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  color: var(--ish-navy-deep);
}

.rto-steps {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--ish-text);
  font-size: .92rem;
  line-height: 1.55;
}

.rto-steps li {
  margin-bottom: 8px;
}

.rto-note {
  margin: 0 0 16px;
  color: var(--ish-muted);
  font-size: .9rem;
  line-height: 1.5;
}

.rto-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.rto-actions--footer {
  margin-top: 0;
}

.rto-disclaimer p {
  margin: 0;
  color: var(--ish-muted);
  font-size: .86rem;
  line-height: 1.5;
}

@media print {
  .brand-shell,
  .app2-footer,
  .diy-actions,
  .diy-print-intro a {
    display: none !important;
  }

  .diy-question {
    grid-template-columns: 1fr;
  }
}

.ecosystem-menu-card {
  min-height: 100%;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  background: linear-gradient(180deg, #fff 0%, var(--ish-cream-light) 100%);
  box-shadow: var(--shadow);
}

.ecosystem-menu-card-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
}

.ecosystem-guide-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  background: var(--ish-cream-light);
}

.ecosystem-guide-mark span {
  color: var(--ish-navy);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
}

.ecosystem-guide-mark--photo {
  padding: 0;
  overflow: hidden;
  border-radius: 50%;
}

/* Diana & Andy: vertical oval portrait (3:4), no border */
.ecosystem-guide-mark--oval {
  width: 72px;
  height: 96px;
  border: none;
  border-radius: 50%;
  background: #fff;
}

.ecosystem-menu-card-top--centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.ecosystem-guide-mark--oval img {
  object-position: center center;
}

.ecosystem-guide-mark--photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.guide-profile-photo {
  display: block;
  border-radius: 50%;
  border: 2px solid rgba(201, 162, 39, .45);
  object-fit: cover;
  object-position: center top;
}

.guide-profile-photo--oval {
  width: 72px;
  height: 96px;
  border: none;
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
  object-position: center center;
}

.guide-profile-photo--walter {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(184, 148, 79, 0.35);
  object-fit: cover;
}

.ecosystem-systems-desk {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 520px;
  margin: 8px auto clamp(32px, 5vw, 56px);
  padding: 16px 18px;
  border-top: 1px solid var(--border-soft);
  text-align: left;
}

.ecosystem-systems-name {
  margin: 2px 0 0;
  color: var(--ish-navy-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 600;
}

.ecosystem-systems-note {
  margin: 6px 0 0;
  color: var(--ish-muted);
  font-size: .84rem;
  line-height: 1.45;
}

.ecosystem-systems-desk .ecosystem-menu-eyebrow {
  margin: 0;
  font-size: .68rem;
}

.guide-profile-photo--intro {
  margin: 0 auto 14px;
}

.guide-profile-photo--hero {
  flex-shrink: 0;
}

.franchise-leader-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.franchise-leader-name {
  margin: 4px 0 0;
  color: var(--ish-navy-deep);
  font-size: 1.05rem;
  font-weight: 700;
}

.smartlist-hero-guide {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 8px;
}

.smartlist-hero-guide--centered {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.smartlist-hero-guide .section-kicker {
  margin-top: 0;
}

.smartlist-hero-guide h2 {
  margin-top: 6px;
}

.smartlist-hero-guide--centered h2 {
  margin-top: 0;
}

.ecosystem-menu-card h2 {
  margin: 0;
  color: var(--ish-navy-deep);
  font-size: 1.18rem;
  letter-spacing: -.02em;
}

.ecosystem-guide-name {
  margin: 4px 0 0;
  color: var(--ish-navy);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.ecosystem-menu-card p {
  margin: 10px 0 18px;
  color: var(--ish-muted);
  font-size: .94rem;
}

.ecosystem-guide-console {
  margin: 18px 0;
  padding: 14px;
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  background: var(--ish-marble);
}

.ecosystem-guide-console label,
.ecosystem-guide-console label span {
  display: block;
}

.ecosystem-guide-console label {
  margin: 0;
}

.ecosystem-guide-console label span {
  margin-bottom: 8px;
  color: var(--ish-navy);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ecosystem-guide-console input {
  width: 100%;
  margin: 0;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: #fff;
  color: var(--ish-muted);
  font-size: .9rem;
}

.ecosystem-guide-console input:disabled {
  opacity: 1;
  cursor: default;
}

.ecosystem-guide-console p {
  margin: 10px 0 0;
  font-size: .82rem;
}

.ecosystem-menu-card nav {
  display: grid;
  gap: 8px;
}

.ecosystem-menu-card a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 10px 0;
  border-top: 1px solid var(--border-soft);
  color: var(--ish-navy);
  text-decoration: none;
  font-size: .94rem;
  font-weight: 600;
}

.ecosystem-menu-card a::after {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 1px solid var(--ish-navy);
  border-right: 1px solid var(--ish-navy);
  transform: rotate(45deg);
}

.ecosystem-menu-card a:hover {
  color: var(--brand-accent);
}

@media (min-width: 720px) {
  .ecosystem-menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1020px) {
  .ecosystem-menu-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.app2-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .app2-grid.cols-2 { grid-template-columns: 1fr 1fr; }
}

.app2-tile {
  display: block;
  padding: 18px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, var(--ish-cream-light));
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border-soft);
  font-weight: 600;
}

.app2-tile span.sub {
  display: block;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--ish-muted);
  margin-top: 6px;
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--ish-navy);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.landing-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 6vw, 52px);
  background:
    radial-gradient(circle at 88% 12%, rgba(235, 228, 216, 0.65), transparent 42%),
    radial-gradient(circle at 8% 88%, rgba(36, 59, 86, 0.05), transparent 40%),
    linear-gradient(180deg, var(--ish-marble) 0%, var(--ish-cream-light) 100%);
  color: var(--ish-text);
  border-color: var(--border-soft);
}

.landing-hero h2 {
  max-width: 820px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.85rem, 5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--ish-navy-deep);
}

.landing-hero p {
  max-width: 760px;
  color: var(--ish-muted);
}

.landing-lede {
  font-size: clamp(1.05rem, 2.6vw, 1.45rem);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.6);
  color: var(--ish-navy);
  border: 1px solid var(--border-soft);
}

.landing-hero .btn-ghost {
  color: var(--ish-navy);
  border-color: var(--border-soft);
  background: rgba(255, 255, 255, 0.75);
}

.section-heading {
  display: flex;
  gap: 16px;
  align-items: start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-heading h2 {
  margin: 0;
}

.empty-state {
  padding: 24px;
  border-radius: var(--radius);
  background: #f8fafc;
  border: 1px dashed rgba(23,23,23,.18);
}

.empty-state h3 {
  margin-top: 0;
}

.listing-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.listing-preview-card {
  display: block;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(23,23,23,.08);
  text-decoration: none;
  color: inherit;
}

.listing-preview-card img,
.listing-preview-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #111, #4b5563);
  color: rgba(255,255,255,.75);
  font-size: .82rem;
}

.listing-preview-title,
.listing-preview-meta {
  display: block;
  padding: 10px 12px 0;
}

.listing-preview-title {
  font-weight: 800;
}

.listing-preview-meta {
  padding-top: 4px;
  padding-bottom: 12px;
  color: var(--ish-muted);
  font-size: .84rem;
}

.map-preview {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(251,246,231,.96));
}

.map-preview-art {
  position: relative;
  min-height: 180px;
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(23,23,23,.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(23,23,23,.08) 1px, transparent 1px),
    #111827;
  background-size: 34px 34px;
}

.map-preview-art span {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand-accent);
  box-shadow: 0 0 0 10px rgba(201,162,39,.18);
}

.map-preview-art span:nth-child(1) { left: 22%; top: 34%; }
.map-preview-art span:nth-child(2) { right: 25%; top: 26%; }
.map-preview-art span:nth-child(3) { left: 52%; bottom: 24%; }

.trust-panel {
  border-color: var(--border-soft);
  background: linear-gradient(180deg, #fff, var(--ish-cream-light));
}

.meta-line {
  color: var(--ish-muted);
}

.smartlist-hero {
  overflow: hidden;
  color: var(--ish-text);
  background:
    radial-gradient(circle at 78% 8%, rgba(235, 228, 216, 0.7), transparent 38%),
    radial-gradient(circle at 12% 92%, rgba(36, 59, 86, 0.06), transparent 42%),
    linear-gradient(165deg, var(--ish-marble) 0%, var(--ish-cream-light) 52%, #dce4ec 100%);
  border-color: var(--border-soft);
}

.smartlist-hero h2 {
  max-width: 900px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -.03em;
  color: var(--ish-navy-deep);
}

.smartlist-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.smartlist-steps span,
.smartlist-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ish-navy);
  font-size: .82rem;
  font-weight: 600;
}

.smartlist-brand,
.smartlist-panel,
.smartlist-review,
.share-panel {
  display: grid;
  gap: 22px;
  align-items: center;
}

.smartlist-brand-badge {
  padding: 18px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(145deg, var(--ish-navy-deep), var(--ish-navy));
  border: 1px solid var(--border-soft);
}

.smartlist-brand-badge strong,
.smartlist-brand-badge span {
  display: block;
}

.smartlist-brand-badge strong {
  font-size: 1.35rem;
}

.smartlist-brand-badge span {
  margin-top: 4px;
  color: rgba(255,255,255,.72);
  font-size: .86rem;
}

.smartlist-camera,
.smartlist-preview {
  min-width: 0;
}

.smartlist-frame {
  display: grid;
  min-height: 280px;
  place-items: center;
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(circle at 70% 20%, rgba(235, 228, 216, 0.8), transparent 45%),
    linear-gradient(165deg, var(--ish-cream-light), #d4dde6);
  box-shadow: inset 0 0 0 1px var(--border-soft);
}

.smartlist-frame span {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--ish-navy);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border-soft);
  font-weight: 600;
}

.smartlist-form {
  margin: 0;
}

.smartlist-form button,
.smartlist-form .btn {
  margin-right: 8px;
}

.smartlist-preview {
  display: grid;
  gap: 14px;
}

.smartlist-preview img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.smartlist-ai-card,
.smartlist-questions {
  padding: 18px;
  border-radius: 20px;
  background: #111;
  color: #fff;
}

.smartlist-ai-card h3 {
  margin: 0;
  font-size: clamp(1.6rem, 5vw, 3rem);
}

.smartlist-ai-card p,
.smartlist-questions p {
  color: rgba(255,255,255,.76);
}

.smartlist-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.smartlist-tags span {
  border-color: rgba(201,162,39,.32);
  background: rgba(201,162,39,.14);
}

.smartlist-check {
  display: flex;
  gap: 10px;
  align-items: start;
}

.smartlist-check input {
  width: auto;
  margin-top: 4px;
}

.smartlist-network {
  background:
    linear-gradient(135deg, #fff, #fbf6e7);
  border-color: rgba(201,162,39,.22);
}

.share-panel {
  background:
    radial-gradient(circle at top left, rgba(201,162,39,.2), transparent 26%),
    #fff;
}

.share-qr {
  display: flex;
  justify-content: center;
}

.share-qr img {
  width: 180px;
  height: 180px;
  padding: 10px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(23,23,23,.1);
  box-shadow: 0 14px 34px rgba(15,23,42,.12);
}

@media (min-width: 760px) {
  .map-preview {
    grid-template-columns: 1fr .9fr;
  }

  .smartlist-brand,
  .smartlist-panel,
  .smartlist-review,
  .share-panel {
    grid-template-columns: .9fr 1.1fr;
  }

  .smartlist-review {
    align-items: start;
  }
}

.app2-footer {
  text-align: center;
  padding: 28px 12px 40px;
  font-size: 0.85rem;
  color: var(--ish-muted);
}

.app2-footer-logo {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 6px;
  text-decoration: none;
}

.app2-footer-logo img {
  display: block;
  width: auto;
  height: 44px;
  max-width: 180px;
  object-fit: contain;
}

.app2-footer-title {
  margin: 0 0 4px;
  color: var(--ish-text);
  font-weight: 800;
}

.app2-footer-note {
  margin-top: 8px;
  font-size: 0.75rem;
}

label { display: block; margin-top: 12px; font-weight: 600; font-size: 0.9rem; }

input, select, textarea {
  width: 100%;
  max-width: 100%;
  margin-top: 6px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 1rem;
}

button, .btn {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 22px;
  border: none;
  border-radius: 10px;
  background: var(--ish-navy);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-size: 1rem;
  box-shadow: 0 4px 14px rgba(36, 59, 86, 0.12);
}

.btn:hover, button:hover {
  opacity: .94;
  background: var(--ish-navy-deep);
}

.btn-secondary {
  background: #4a6278;
}

.error { color: #b91c1c; font-weight: 600; }
.notice { color: #166534; font-weight: 600; }
.ok { color: #15803d; font-weight: 600; }

table.list { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.list th, table.list td {
  padding: 10px 8px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: top;
}

#map { height: 60vh; min-height: 280px; border-radius: var(--radius); }

@media (max-width: 640px) {
  .section-heading {
    display: block;
  }

  .cta-row .btn {
    width: 100%;
    text-align: center;
  }
}

/* Contracts & Forms */
.contracts-intro {
  max-width: 720px;
  margin: clamp(28px, 5vw, 56px) auto clamp(20px, 3vw, 32px);
  text-align: center;
}

.contracts-eyebrow {
  margin: 0 0 10px;
  color: var(--ish-navy);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.contracts-intro h1 {
  margin: 0;
  color: var(--ish-navy-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.1;
}

.contracts-intro p:last-child {
  margin: 14px auto 0;
  color: var(--ish-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.contracts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin: 0 0 28px;
}

.contracts-card {
  padding: 20px 22px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff 0%, var(--ish-cream-light) 100%);
  box-shadow: var(--shadow);
}

.contracts-card h2 {
  margin: 0 0 10px;
  color: var(--ish-navy-deep);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.01em;
}

.contracts-card p {
  margin: 0 0 14px;
  color: var(--ish-muted);
  font-size: .92rem;
  line-height: 1.5;
}

.contracts-card-link {
  display: inline-block;
  color: var(--ish-navy);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(36, 59, 86, 0.22);
}

.contracts-card-link:hover {
  color: var(--ish-navy-deep);
}

.contracts-disclaimer {
  max-width: 720px;
  margin: 0 auto clamp(36px, 6vw, 64px);
  padding: 14px 18px;
  border-left: 3px solid var(--ish-navy);
  background: var(--ish-cream-light);
  border-radius: 0 12px 12px 0;
  color: var(--ish-muted);
  font-size: .88rem;
  line-height: 1.5;
}

.contract-view {
  max-width: 760px;
  margin: clamp(24px, 4vw, 48px) auto clamp(40px, 6vw, 72px);
  padding: 0 4px;
}

.contract-view-header h1 {
  margin: 0;
  color: var(--ish-navy-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -.02em;
}

.contract-view-franchise {
  margin: 10px 0 0;
  color: var(--ish-muted);
  font-size: .9rem;
}

.contract-view-notice {
  margin: 20px 0;
  padding: 14px 16px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: var(--ish-cream-light);
  color: var(--ish-text);
  font-size: .9rem;
  line-height: 1.5;
}

.contract-view-body {
  margin: 24px 0;
  color: var(--ish-text);
  font-size: .95rem;
  line-height: 1.6;
}

.contract-status {
  margin: 0 0 12px;
  color: var(--brand-accent);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.contract-view-body ul {
  margin: 16px 0 0;
  padding-left: 1.2rem;
}

.contract-view-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.contract-print-btn {
  background: var(--ish-navy);
  color: #fff;
  border: none;
}

@media print {
  .app2-header,
  .app2-footer,
  .contract-view-actions {
    display: none !important;
  }

  .contract-view {
    margin: 0;
    max-width: none;
  }
}

/* ——— App2 guide chat (Diana, Andy) ——— */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.guide-chat-page {
  max-width: 760px;
  margin: clamp(20px, 4vw, 40px) auto clamp(48px, 8vw, 80px);
  padding: 0 clamp(12px, 3vw, 20px);
}

.guide-chat-card {
  margin-top: 8px;
}

.guide-chat-nav {
  max-width: 760px;
  margin-bottom: clamp(12px, 2vw, 20px);
}

.guide-chat-eyebrow {
  margin: 0 0 6px;
  color: var(--brand-accent);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.guide-chat-head h1 {
  margin: 0;
  color: var(--ish-navy-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -.02em;
}

.guide-chat-head .guide-chat-intro {
  margin: 10px auto 0;
  max-width: 36rem;
  color: var(--ish-muted);
  font-size: .92rem;
  line-height: 1.55;
}

.guide-chat-peer {
  margin: 0 0 18px;
  padding: 12px 16px;
  border-left: 3px solid var(--ish-gold);
  background: var(--ish-cream-light);
  border-radius: 0 10px 10px 0;
  color: var(--ish-muted);
  font-size: .9rem;
  line-height: 1.5;
}

.guide-chat-peer a {
  color: var(--ish-navy);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(36, 59, 86, 0.2);
}

.guide-chat-panel {
  min-height: 220px;
  max-height: min(52vh, 420px);
  overflow-y: auto;
  margin-bottom: 16px;
  padding: clamp(16px, 3vw, 22px);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.guide-chat-message {
  max-width: 92%;
  margin-bottom: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: .94rem;
  line-height: 1.55;
}

.guide-chat-message p {
  margin: 0;
}

.guide-chat-message--assistant {
  margin-right: auto;
  background: var(--ish-cream-light);
  color: var(--ish-text);
  border: 1px solid var(--border-soft);
}

.guide-chat-message--user {
  margin-left: auto;
  background: var(--ish-navy);
  color: #fff;
}

.guide-chat-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}

.guide-chat-input-wrap {
  flex: 1;
  min-width: min(100%, 280px);
}

.guide-chat-input-wrap textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: #fff;
  color: var(--ish-text);
  font-family: inherit;
  font-size: .95rem;
  line-height: 1.45;
  resize: vertical;
}

.guide-chat-input-wrap textarea:focus {
  outline: none;
  border-color: var(--ish-navy);
  box-shadow: 0 0 0 3px rgba(36, 59, 86, 0.08);
}

.guide-chat-send {
  padding: 12px 22px;
  border: none;
  border-radius: 12px;
  background: var(--ish-navy);
  color: #fff;
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease;
}

.guide-chat-send:hover:not(:disabled) {
  background: var(--ish-navy-deep);
}

.guide-chat-send:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.guide-chat-status {
  margin: 10px 0 0;
  color: var(--ish-muted);
  font-size: .85rem;
  font-style: italic;
}

/* Listing payee split */
.payee-split-panel {
  border: 1px solid var(--border-soft);
  background: linear-gradient(180deg, #fff 0%, var(--ish-cream-light) 100%);
}

.payee-split-totals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.payee-total-card {
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  background: #fff;
  box-shadow: var(--shadow);
}

.payee-total-card.payee-total-warn {
  border-color: rgba(185, 28, 28, 0.35);
  background: #fff8f8;
}

.payee-total-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ish-muted);
}

.payee-total-value {
  display: block;
  margin-top: 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  color: var(--ish-navy-deep);
}

.payee-total-sub {
  display: block;
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--ish-muted);
}

.payee-mixed-note {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-left: 3px solid var(--ish-gold);
  background: rgba(184, 148, 79, 0.08);
  border-radius: 0 10px 10px 0;
  font-size: 0.92rem;
  color: var(--ish-text);
}

.payee-table-wrap {
  overflow-x: auto;
  margin-bottom: 20px;
}

.payee-table .payee-actions {
  white-space: nowrap;
}

.payee-inline-form {
  display: inline;
  margin-left: 8px;
}

.payee-inline-form .btn-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--ish-navy);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}

.payee-row-disabled {
  opacity: 0.55;
}

.payee-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}

.payee-status-pending {
  background: rgba(184, 148, 79, 0.2);
  color: #7a5c20;
}

.payee-status-approved {
  background: rgba(21, 128, 61, 0.12);
  color: #15803d;
}

.payee-status-disabled {
  background: rgba(107, 116, 128, 0.15);
  color: var(--ish-muted);
}

.payee-form-card {
  margin-top: 8px;
  padding: 20px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: #fff;
}

.payee-form-card h3 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ish-navy-deep);
}

.payee-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 640px) {
  .payee-form-row {
    grid-template-columns: 1fr;
  }
}

/* Welcome — Diana entrance */
body.page-welcome main.app2-wrap {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding-top: clamp(8px, 2vw, 20px);
  padding-bottom: clamp(40px, 6vw, 72px);
}

.welcome-hero {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 0;
}

.welcome-card {
  background: var(--ish-card);
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 36px) clamp(22px, 4vw, 40px);
}

.welcome-diana-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(14px, 3vw, 18px);
  margin-bottom: clamp(22px, 4vw, 30px);
  padding-bottom: clamp(18px, 3vw, 24px);
  border-bottom: 1px solid rgba(36, 59, 86, 0.06);
}

.welcome-diana-avatar-wrap {
  flex-shrink: 0;
  display: block;
  width: 120px;
  height: 150px;
}

.welcome-diana-avatar {
  display: block;
  width: 120px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  background: #fff;
}

.welcome-diana-meta {
  min-width: 0;
  text-align: center;
}

.welcome-diana-kicker {
  margin: 0 0 4px;
  color: var(--ish-muted);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.35;
  text-transform: uppercase;
}

.welcome-diana-name {
  margin: 0;
  color: var(--ish-navy-deep);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.25;
}

.welcome-diana-role {
  margin: 4px 0 0;
  color: var(--ish-muted);
  font-size: .92rem;
  line-height: 1.4;
}

.welcome-wisdom-wall-link {
  margin: 0 0 1.25rem;
  text-align: center;
  font-size: .95rem;
}

.welcome-wisdom-wall-link a {
  color: var(--ish-accent, #8b6914);
  font-weight: 600;
  text-decoration: none;
}

.welcome-wisdom-wall-link a:hover {
  text-decoration: underline;
}

.welcome-body {
  max-width: 100%;
  text-align: center;
}

.welcome-heading {
  margin: 0;
  color: var(--ish-navy-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 4.5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.12;
  text-align: center;
}

.welcome-lede {
  margin: clamp(12px, 2vw, 16px) auto 0;
  color: var(--ish-muted);
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  line-height: 1.55;
  max-width: 36rem;
  text-align: center;
}

.welcome-copy {
  margin: 10px auto 0;
  color: var(--ish-muted);
  font-size: .98rem;
  line-height: 1.55;
  max-width: 36rem;
  text-align: center;
}

.welcome-error {
  margin: 12px auto 0;
  text-align: center;
}

.welcome-name-form {
  margin: clamp(18px, 3vw, 24px) auto 0;
  max-width: 22rem;
  width: 100%;
  text-align: center;
}

.welcome-name-form label {
  margin-top: 0;
}

.welcome-name-label {
  display: block;
  margin: 0 0 8px;
  color: var(--ish-text);
  font-size: .88rem;
  font-weight: 700;
}

.welcome-name-input {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 12px 16px;
  border: 1px solid rgba(36, 59, 86, 0.14);
  border-radius: 12px;
  background: #fff;
  color: var(--ish-text);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
}

.welcome-name-input::placeholder {
  color: rgba(107, 116, 128, 0.72);
}

.welcome-name-input:focus {
  outline: none;
  border-color: rgba(36, 59, 86, 0.28);
  box-shadow: 0 0 0 3px rgba(36, 59, 86, 0.08);
}

.welcome-continue-btn {
  display: inline-block;
  min-width: min(100%, 200px);
  margin-top: 16px;
}

.welcome-actions .btn {
  margin-top: 0;
}

.welcome-btn-primary {
  margin-top: 0;
  background: var(--ish-navy);
  color: #fff;
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(36, 59, 86, 0.14);
}

.welcome-btn-primary:hover {
  background: var(--ish-navy-deep);
}

.welcome-btn-secondary {
  margin-top: 0;
  border-radius: 12px;
  background: #4a6278;
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(36, 59, 86, 0.1);
}

.welcome-btn-secondary:hover {
  background: #3d5266;
  opacity: 1;
}

.welcome-btn-ghost {
  margin-top: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--ish-navy);
  border: 1px solid var(--border-soft);
  box-shadow: none;
}

.welcome-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.9);
  opacity: 1;
}

.welcome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-top: clamp(20px, 3vw, 26px);
}

.welcome-footer {
  margin: clamp(20px, 3vw, 26px) auto 0;
  color: var(--ish-muted);
  font-size: .92rem;
  line-height: 1.55;
  max-width: 36rem;
  text-align: center;
}

.welcome-footer a {
  color: var(--ish-navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.welcome-footer a:hover {
  color: var(--ish-gold);
}

@media (max-width: 480px) {
  .welcome-diana-avatar-wrap,
  .welcome-diana-avatar {
    width: 100px;
    height: 125px;
  }

  .welcome-continue-btn,
  .welcome-actions .btn {
    width: 100%;
    text-align: center;
  }
}

/* =========================================================
   WISDOM WALL SPLASH (splash.php — standalone, no header)
========================================================= */
body.page-splash {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: var(--ish-navy-deep);
  color: #f6f3ed;
}

.splash-root {
  position: fixed;
  inset: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
}

.splash-carousel {
  position: absolute;
  inset: 0;
}

.splash-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.splash-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.splash-slide--fallback {
  background:
    radial-gradient(ellipse 80% 50% at 50% 20%, rgba(201, 162, 39, 0.18), transparent 55%),
    linear-gradient(165deg, var(--ish-navy-deep) 0%, #0f1a28 48%, var(--ish-navy) 100%);
}

.splash-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  object-fit: cover;
  object-position: center;
}

.splash-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 26, 40, 0.35) 0%, rgba(15, 26, 40, 0.72) 55%, rgba(10, 18, 28, 0.88) 100%),
    radial-gradient(ellipse 90% 70% at 50% 40%, transparent 0%, rgba(10, 18, 28, 0.45) 100%);
  pointer-events: none;
}

.splash-content {
  position: relative;
  z-index: 2;
  width: min(720px, 100%);
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 0 auto;
  padding:
    calc(28px + env(safe-area-inset-top, 0px))
    calc(24px + env(safe-area-inset-right, 0px))
    calc(72px + env(safe-area-inset-bottom, 0px))
    calc(24px + env(safe-area-inset-left, 0px));
  text-align: center;
}

.splash-kicker {
  margin: 0 0 14px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246, 243, 237, 0.72);
}

.splash-quote {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Palatino Linotype", serif;
  font-size: clamp(1.45rem, 4.2vw, 2.15rem);
  line-height: 1.42;
  font-weight: 400;
  color: #faf9f6;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
  overflow-wrap: anywhere;
  word-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  hyphens: auto;
}

.splash-name {
  margin: clamp(18px, 3vw, 24px) 0 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #f6f3ed;
}

.splash-location {
  margin: 6px 0 0;
  font-size: 0.95rem;
  color: rgba(246, 243, 237, 0.78);
}

.splash-community {
  margin: 16px 0 0;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(246, 243, 237, 0.62);
}

.splash-profile {
  margin: 10px 0 0;
}

.splash-profile-link {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid rgba(246, 243, 237, 0.35);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #faf9f6;
  text-decoration: none;
  background: rgba(15, 26, 40, 0.35);
  backdrop-filter: blur(4px);
}

.splash-profile-link:hover,
.splash-profile-link:focus-visible {
  background: rgba(15, 26, 40, 0.55);
  outline: none;
}

.splash-upload-btn {
  position: absolute;
  top: calc(16px + env(safe-area-inset-top, 0px));
  right: calc(16px + env(safe-area-inset-right, 0px));
  z-index: 4;
  display: inline-flex;
  align-items: center;
  max-width: min(220px, 46vw);
  padding: 10px 14px;
  border: 1px solid rgba(246, 243, 237, 0.32);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  color: #faf9f6;
  background: rgba(15, 26, 40, 0.52);
  backdrop-filter: blur(6px);
  -webkit-tap-highlight-color: transparent;
}

.splash-upload-btn:hover,
.splash-upload-btn:focus-visible {
  background: rgba(15, 26, 40, 0.72);
  outline: none;
}

.splash-footer {
  position: absolute;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 3;
  margin: 0;
  font-size: 0.92rem;
  color: rgba(246, 243, 237, 0.72);
  animation: splash-pulse 2.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes splash-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.splash-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(246, 243, 237, 0.28);
  border-radius: 50%;
  background: rgba(15, 26, 40, 0.42);
  color: #f6f3ed;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(4px);
  -webkit-tap-highlight-color: transparent;
}

.splash-nav--prev {
  left: calc(12px + env(safe-area-inset-left, 0px));
}

.splash-nav--next {
  right: calc(12px + env(safe-area-inset-right, 0px));
}

.splash-nav:hover,
.splash-nav:focus-visible {
  background: rgba(15, 26, 40, 0.62);
  outline: none;
}

.splash-dots {
  position: absolute;
  left: 50%;
  bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
  pointer-events: none;
}

.splash-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(246, 243, 237, 0.35);
  transition: background 0.25s ease, transform 0.25s ease;
}

.splash-dot.is-active {
  background: rgba(246, 243, 237, 0.92);
  transform: scale(1.15);
}

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

@media (max-width: 480px) {
  .splash-content {
    padding-left: calc(18px + env(safe-area-inset-left, 0px));
    padding-right: calc(18px + env(safe-area-inset-right, 0px));
  }
}

/* =========================================================
   MORNING ENTRY (morning.php — Wisdom Wall 2.0 Phase 1)
========================================================= */
body.page-morning {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--ish-navy-deep);
  color: #f6f3ed;
}

.morning-root {
  min-height: 100vh;
  min-height: 100dvh;
}

.morning-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}

.morning-hero--fallback {
  background:
    radial-gradient(ellipse 80% 50% at 50% 20%, rgba(201, 162, 39, 0.18), transparent 55%),
    linear-gradient(165deg, var(--ish-navy-deep) 0%, #0f1a28 48%, var(--ish-navy) 100%);
}

.morning-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.morning-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 26, 40, 0.3) 0%, rgba(15, 26, 40, 0.68) 55%, rgba(10, 18, 28, 0.85) 100%),
    radial-gradient(ellipse 90% 70% at 50% 40%, transparent 0%, rgba(10, 18, 28, 0.4) 100%);
  pointer-events: none;
}

.morning-moment {
  position: relative;
  z-index: 2;
  width: min(720px, 100%);
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 0 auto;
  padding:
    calc(32px + env(safe-area-inset-top, 0px))
    calc(24px + env(safe-area-inset-right, 0px))
    calc(48px + env(safe-area-inset-bottom, 0px))
    calc(24px + env(safe-area-inset-left, 0px));
  text-align: center;
}

.morning-quote {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Palatino Linotype", serif;
  font-size: clamp(1.5rem, 4.5vw, 2.25rem);
  line-height: 1.4;
  font-weight: 400;
  font-style: italic;
  color: #faf9f6;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
  overflow-wrap: anywhere;
  word-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  hyphens: auto;
}

.morning-attribution {
  margin: clamp(20px, 3.5vw, 28px) 0 0;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(246, 243, 237, 0.82);
}

.morning-continue {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(42vh, 320px);
  padding:
    clamp(40px, 8vw, 72px)
    calc(24px + env(safe-area-inset-right, 0px))
    calc(48px + env(safe-area-inset-bottom, 0px))
    calc(24px + env(safe-area-inset-left, 0px));
  background: linear-gradient(180deg, rgba(10, 18, 28, 0.92) 0%, var(--ish-navy-deep) 100%);
}

.morning-continue-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(280px, 100%);
  padding: 16px 36px;
  border: 1px solid rgba(246, 243, 237, 0.38);
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: #faf9f6;
  background: rgba(15, 26, 40, 0.55);
  backdrop-filter: blur(6px);
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.morning-continue-btn:hover,
.morning-continue-btn:focus-visible {
  background: rgba(15, 26, 40, 0.78);
  border-color: rgba(246, 243, 237, 0.55);
  outline: none;
}

@media (max-width: 480px) {
  .morning-moment {
    padding-left: calc(18px + env(safe-area-inset-left, 0px));
    padding-right: calc(18px + env(safe-area-inset-right, 0px));
  }

  .morning-continue-btn {
    width: 100%;
  }
}

/* Wisdom Wall text wrap — cards, preview, splash, morning */
.wisdom-text {
  overflow-wrap: anywhere;
  word-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  hyphens: auto;
}

body.page-splash,
body.page-morning {
  overflow-x: hidden;
}

.wisdom-preview-card {
  margin-top: 1rem;
}

.wisdom-preview-frame {
  min-width: 0;
  box-sizing: border-box;
  max-width: 100%;
  padding: 1rem;
  border: 1px solid var(--border-soft, #d8d2c8);
  border-radius: 12px;
  background: linear-gradient(165deg, #0f1a28 0%, #1a2740 100%);
  color: #faf9f6;
}

.wisdom-preview-image {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.85rem;
}

.wisdom-preview-quote {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  line-height: 1.45;
  font-style: italic;
}

.wisdom-preview-name {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  opacity: 0.85;
}

.my-wisdom-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.my-wisdom-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  min-width: 0;
  box-sizing: border-box;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-soft, #e5e0d8);
}

.my-wisdom-item:last-child {
  border-bottom: 0;
}

.my-wisdom-thumb {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.my-wisdom-body {
  min-width: 0;
  flex: 1;
  box-sizing: border-box;
}

.my-wisdom-quote {
  margin: 0 0 0.5rem;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.4;
}

.my-wisdom-remove-form {
  margin-top: 0.5rem;
}

.payee-form textarea[name="quote_text"],
.payee-form textarea.wisdom-text {
  overflow-wrap: anywhere;
  word-wrap: break-word;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.splash-status-removed {
  background: #e2e3e5;
  color: #383d41;
}

/* Andy — Create a Business Logo */
.andy-logo-hero-head {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.andy-logo-portrait {
  flex-shrink: 0;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.andy-logo-form label {
  display: block;
  margin-bottom: 1rem;
  font-weight: 600;
}

.andy-logo-form input,
.andy-logo-form textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  font: inherit;
}

.andy-logo-generate-btn {
  margin-top: 0.25rem;
}

.andy-logo-status {
  margin: 0.75rem 0 0;
  color: var(--ish-muted);
  font-size: 0.92rem;
}

.andy-logo-error:empty {
  display: none;
}

.andy-logo-preview {
  display: block;
  max-width: min(100%, 320px);
  margin: 0 auto 1rem;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

/* =========================================================
   WISDOM PREFERENCES (wisdom-preferences.php — Phase 2)
========================================================= */
.wisdom-pref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 10.5rem), 1fr));
  gap: 0.65rem 0.75rem;
}

.wisdom-pref-option {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--ish-cream-light);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
}

.wisdom-pref-option input {
  width: auto;
  margin-top: 0.2rem;
  padding: 0;
  flex-shrink: 0;
}

.wisdom-pref-option > span {
  flex: 1;
  min-width: 0;
}

.wisdom-pref-option:has(input:checked) {
  border-color: var(--ish-gold);
  background: #fff;
}

/* =========================================================
   MY WISDOM (my-wisdom.php — contributor removal)
========================================================= */
.my-wisdom-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.my-wisdom-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.85rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--ish-cream-light);
}

.my-wisdom-thumb {
  width: 96px;
  max-height: 72px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.my-wisdom-body {
  flex: 1;
  min-width: 0;
}

.my-wisdom-quote {
  margin: 0 0 0.35rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  line-height: 1.45;
}

.my-wisdom-remove-form {
  margin-top: 0.65rem;
}

.my-wisdom-remove-form .btn {
  font-size: 0.85rem;
  padding: 6px 12px;
}

@media (max-width: 520px) {
  .my-wisdom-item {
    flex-direction: column;
  }

  .my-wisdom-thumb {
    width: 100%;
    max-height: 140px;
  }
}

/* =========================================================
   DASHBOARD PRIMARY ASSISTANT (dashboard.php)
========================================================= */
.dashboard-assistants-lede {
  margin: 0 0 1rem;
  color: var(--ish-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.dashboard-assistant-card--primary {
  max-width: 28rem;
}

.dashboard-guide-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.dashboard-guide-row .dashboard-assistants-section {
  margin: 0;
  height: 100%;
}

.dashboard-guide-row .dashboard-assistant-card--primary {
  max-width: none;
}

@media (max-width: 720px) {
  .dashboard-guide-row {
    grid-template-columns: 1fr;
  }
}

.dashboard-assistant-card-top {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.dashboard-assistant-card-text h3 {
  margin: 0 0 0.2rem;
}

.dashboard-assistant-chat {
  display: inline-block;
  margin-top: 0.85rem;
  font-weight: 600;
}

.dashboard-assistant-edit {
  margin: 0.65rem 0 0;
  font-size: 0.9rem;
}

.dashboard-assistant-edit a {
  color: var(--ish-muted);
}

.dashboard-assistant-phone {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  color: var(--ish-muted);
}

.dashboard-assistant-phone--coming {
  font-style: italic;
}

/* Owner Control Center — business switcher + public profile */
.business-switcher-card {
  border-left: 3px solid var(--brand-accent, #c9a227);
}

.business-switcher-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.business-switcher-title {
  margin: 0;
  font-size: 1.15rem;
}

.business-switcher-active {
  margin: 0.35rem 0 0.75rem;
}

.business-switcher-select {
  width: 100%;
  max-width: 28rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font: inherit;
}

.business-switcher-links {
  margin: 0.75rem 0 0;
}

.business-stats-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.business-stats-card {
  border-left: 3px solid var(--brand-accent, #c9a227);
}

.dashboard-offers-table-wrap {
  overflow-x: auto;
}

.dashboard-offers-table .btn-compact {
  padding: 0.35rem 0.55rem;
  font-size: 0.78rem;
}

.business-profile-hero {
  overflow: hidden;
  padding: 0;
}

.business-profile-cover img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: cover;
}

.business-profile-hero-body {
  padding: 1rem 1.1rem 1.1rem;
}

.business-profile-logo {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin-bottom: 0.75rem;
  border-radius: 12px;
  background: #fff;
}

.business-profile-tagline {
  color: var(--ish-muted);
  margin: 0.25rem 0 0.5rem;
}

.business-profile-contact-list {
  margin: 0;
  padding-left: 1.1rem;
}

.business-profile-social a {
  margin-right: 0.35rem;
}

.business-profile-edit-form label,
.business-profile-social-fieldset label {
  display: block;
  margin-bottom: 0.75rem;
}

.business-profile-social-fieldset {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.75rem 1rem 0.25rem;
  margin: 0 0 0.75rem;
}

.business-profile-visibility {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.business-photo-fieldset .business-photo-field {
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
}

.business-photo-fieldset .business-photo-field:last-of-type {
  border-bottom: 0;
  margin-bottom: 0.5rem;
}

.business-photo-field-label {
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.business-photo-pending {
  margin: 0;
}

.listing-location-consent-prompt {
  margin: 0 0 0.65rem;
}

.listing-location-consent-choices {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0.5rem 0 0.75rem;
}

.listing-location-consent-choice {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0;
  font-weight: 400;
}

.listing-location-consent-choice input {
  margin-top: 0.2rem;
}

.business-photo-preview-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  min-height: 96px;
  margin-bottom: 0.65rem;
}

.business-photo-preview-wrap--cover {
  min-height: 120px;
}

.business-photo-preview {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
}

.business-photo-preview--cover {
  width: 100%;
  max-width: 320px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
}

.business-photo-preview-empty {
  margin: 0;
  color: var(--ish-muted, #64748b);
  font-size: 0.9rem;
}

.business-photo-file-label {
  display: block;
  margin-bottom: 0.35rem;
}

.business-photo-file-cta {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.business-photo-file-input {
  display: block;
  width: 100%;
  max-width: 100%;
}

.business-photo-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin: 0.5rem 0 0.75rem;
}

.business-photo-actions .btn {
  margin: 0;
}

.business-photo-remove {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin: 0;
  font-weight: 400;
}

.business-photo-advanced {
  margin: 0.35rem 0 0.75rem;
}

.business-photo-advanced summary {
  cursor: pointer;
  color: var(--ish-muted, #64748b);
  font-size: 0.9rem;
}

.business-photo-advanced-label {
  margin-top: 0.5rem;
}

.business-profile-dashboard-card .btn {
  margin-right: 0.5rem;
}

/* Dashboard listings management table */
.dashboard-listings-table-wrap {
  overflow-x: auto;
}

.dashboard-listings-thumb-cell {
  width: 56px;
}

.dashboard-listing-thumb {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  background: #e2e8f0;
}

.dashboard-listing-thumb--placeholder {
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

.dashboard-listing-title {
  font-weight: 600;
  color: var(--ish-navy-deep, #1e293b);
  text-decoration: none;
}

.dashboard-listing-meta {
  margin-top: 0.15rem;
  font-size: 0.82rem;
  color: var(--ish-muted, #64748b);
}

.dashboard-listing-status {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

.dashboard-listing-status--active {
  background: #dcfce7;
  color: #166534;
}

.dashboard-listing-status--hidden {
  background: #f1f5f9;
  color: #475569;
}

.dashboard-listing-status--draft {
  background: #fef3c7;
  color: #92400e;
}

.dashboard-listing-status--sold {
  background: #ede9fe;
  color: #5b21b6;
}

.dashboard-listing-status--pending-approval {
  background: #ffedd5;
  color: #9a3412;
}

.dashboard-listings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.dashboard-listings-actions .btn-compact {
  padding: 0.35rem 0.55rem;
  font-size: 0.78rem;
}

.dashboard-listings-status {
  margin: 0 0 0.75rem;
}

@media (max-width: 720px) {
  .dashboard-listings-table th:nth-child(3),
  .dashboard-listings-table td:nth-child(3),
  .dashboard-listings-table th:nth-child(5),
  .dashboard-listings-table td:nth-child(5) {
    display: none;
  }
}

/* Personal Dashboard — mirrors business card styling */
.dashboard-personal-zone {
  margin-bottom: 0.25rem;
}

.personal-profile-dashboard-card,
.personal-stats-card {
  border-left: 3px solid #5b8def;
}

.personal-profile-head,
.personal-stats-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.personal-profile-title {
  margin: 0;
  font-size: 1.15rem;
}

.personal-profile-active {
  margin: 0.35rem 0 0.75rem;
}

.personal-profile-links {
  margin: 0;
}

.personal-stats-list {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
}

.dashboard-assistants-section--personal {
  border-left: 3px solid #5b8def;
}

.dashboard-assistants-section--business {
  border-left: 3px solid var(--brand-accent, #c9a227);
}

.dashboard-guide-row-section {
  margin-top: 0.25rem;
}

.dashboard-guide-row-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.75rem;
}

.dashboard-guide-cell {
  min-width: 0;
}

.dashboard-guide-cell--personal {
  border-left: 3px solid #5b8def;
  padding-left: 0.75rem;
}

.dashboard-guide-cell--business {
  border-left: 3px solid var(--brand-accent, #c9a227);
  padding-left: 0.75rem;
}

.dashboard-guide-cell-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.dashboard-guide-cell .dashboard-assistant-card-text h4 {
  margin: 0;
}

.dashboard-offers-card {
  border-left: 3px solid var(--brand-accent, #c9a227);
}

.dashboard-zone-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0 1rem;
  color: var(--ish-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dashboard-zone-divider::before,
.dashboard-zone-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.guide-preferences-list {
  display: grid;
  gap: 0.75rem;
}

.guide-preferences-row {
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) minmax(12rem, 2fr);
  gap: 0.75rem;
  align-items: center;
}

.guide-preferences-role {
  font-weight: 600;
}

.personal-profile-edit-form .checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

@media (max-width: 720px) {
  .guide-preferences-row {
    grid-template-columns: 1fr;
  }

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

/* Directive 006 — Dashboard Phase 1 section layout */
.dashboard-006-section {
  margin: 0 0 1.25rem;
}

.dashboard-006-section-head {
  padding-bottom: 0.85rem;
}

/* Main dashboard: personal identity first, business work behind an authorized selection. */
.dashboard-home,
.dashboard-business-dashboard {
  display: grid;
  gap: 1.25rem;
}

.receiving-money-card {
  border-top: 6px solid #1f5b46;
  padding: clamp(1rem, 3vw, 1.5rem);
}

.receiving-money-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.receiving-money-head h2 {
  margin: 0;
}

.receiving-money-ready {
  padding: .55rem .75rem;
  border-radius: 999px;
  background: #e7f5ed;
  color: #155b38;
  white-space: nowrap;
}

.receiving-money-statuses {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.receiving-money-statuses li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  min-height: 3.25rem;
  padding: .7rem .8rem;
  border: 1px solid var(--line, #d8d4c9);
  border-radius: 12px;
  background: #fff;
}

.receiving-money-statuses .is-complete {
  border-color: #9bcbb0;
  background: #f1faf5;
  color: #155b38;
}

.receiving-money-complete {
  padding: .45rem .65rem;
  font-size: .85rem;
}

.dashboard-home-zone {
  border: 1px solid var(--line, #d8d4c9);
  border-radius: 22px;
  padding: clamp(1rem, 3vw, 1.75rem);
  background: #fff;
}

.dashboard-home-zone--personal {
  border-top: 6px solid #76544b;
}

.dashboard-home-zone--business {
  border-top: 6px solid #1f5b46;
}

.dashboard-home-zone-head h1,
.dashboard-home-zone-head h2,
.dashboard-business-hero h1 {
  margin: 0 0 .4rem;
}

.dashboard-home-zone-head > p:last-child,
.dashboard-business-hero > p:last-child {
  max-width: 46rem;
  margin-bottom: 1rem;
  color: var(--muted, #5f665f);
}

.dashboard-home-grid,
.dashboard-business-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.dashboard-home-grid > *,
.dashboard-business-entry > .app2-card,
.dashboard-business-assistant .dashboard-guide-cell {
  height: 100%;
}

.dashboard-home-links,
.dashboard-business-tools,
.dashboard-settings-disclosure nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .65rem;
}

.dashboard-home-links {
  margin-top: 1rem;
}

.dashboard-home-links a,
.dashboard-settings-disclosure a {
  padding: .8rem .9rem;
  border: 1px solid var(--line, #d8d4c9);
  border-radius: 12px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  font-weight: 650;
}

.dashboard-settings-disclosure {
  margin-top: 1rem;
}

.dashboard-settings-disclosure summary {
  cursor: pointer;
  font-weight: 700;
}

.dashboard-settings-disclosure nav {
  margin-top: .75rem;
}

.dashboard-notice {
  margin-bottom: 1rem;
  border-left: 5px solid #a4651d;
}

.dashboard-business-tools {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-business-metrics,
.dashboard-business-recent {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dashboard-business-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}

.dashboard-business-metrics li {
  display: grid;
  gap: .2rem;
  padding: .9rem;
  border-radius: 12px;
  background: #f5f3ed;
}

.dashboard-business-metrics strong {
  font-size: 1.3rem;
}

.dashboard-business-recent li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem 0;
  border-bottom: 1px solid var(--line, #d8d4c9);
}

@media (max-width: 760px) {
  .dashboard-home-grid,
  .dashboard-business-summary,
  .dashboard-home-links,
  .dashboard-business-tools,
  .dashboard-settings-disclosure nav,
  .dashboard-business-metrics {
    grid-template-columns: 1fr;
  }

  .receiving-money-statuses {
    grid-template-columns: 1fr;
  }

  .receiving-money-head {
    display: grid;
  }

  .receiving-money-ready {
    white-space: normal;
  }

  .dashboard-home-zone {
    padding: 1rem;
    border-radius: 16px;
  }

  .dashboard-business-recent li {
    display: grid;
    gap: .15rem;
  }
}

.dashboard-field-list {
  display: grid;
  gap: 0.45rem 1rem;
  margin: 0.75rem 0 1rem;
  padding: 0;
}

.dashboard-field-list > div {
  display: grid;
  grid-template-columns: minmax(7rem, 9rem) 1fr;
  gap: 0.5rem;
}

.dashboard-field-list dt {
  margin: 0;
  font-weight: 600;
  color: #445;
}

.dashboard-field-list dd {
  margin: 0;
}

.personal-profile-photo {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  background: #e8eef6;
}

.personal-profile-photo--placeholder {
  display: inline-block;
  border: 1px dashed rgba(0, 0, 0, 0.15);
}

.pp-share-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 0.35rem 0 0.85rem;
  font-size: 0.9rem;
}

.dashboard-opt-in-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.dashboard-opt-in-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.dashboard-opt-on {
  color: #1a7f37;
}

.dashboard-opt-off {
  color: #8a4b12;
}

.dashboard-business-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.dashboard-business-item {
  padding: 0.85rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.dashboard-business-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.dashboard-business-item.is-active {
  background: rgba(91, 141, 239, 0.06);
  margin: 0 -0.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  border-radius: 8px;
}

.dashboard-business-name {
  margin: 0;
  font-size: 1.05rem;
}

.dashboard-business-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.65rem 0 0;
}

.dashboard-active-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #2a5db0;
}

.dashboard-marketplace-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.dashboard-marketplace-action {
  text-align: center;
}

.dashboard-add-listing-card {
  border-left: 3px solid #5b8def;
}

.dashboard-add-listing-title {
  margin-top: 0;
  margin-bottom: 0.35rem;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.dashboard-add-listing-lead {
  margin: 0 0 0.25rem;
}

.dashboard-add-listing-fallback {
  margin: 1rem 0 0;
}

.dashboard-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.5rem 0 0;
}

.dashboard-pyramidian-card {
  border-left: 3px solid #c4a35a;
}

.dashboard-pyramidian-name {
  margin: 0.35rem 0 0.75rem;
  font-size: 1.15rem;
}

.dashboard-utility-strip {
  margin-bottom: 1rem;
}

@media (max-width: 720px) {
  .dashboard-field-list > div {
    grid-template-columns: 1fr;
  }
}

/* Concierge menu — Live Map first (above assistants / worlds) */
.menu-live-map {
  margin: 0 0 1.25rem;
}

.menu-live-map-card {
  padding-bottom: 0.85rem;
}

.menu-live-map-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem 1rem;
  margin-bottom: 0.85rem;
}

.menu-live-map-title {
  margin: 0.15rem 0 0.35rem;
  font-size: clamp(1.2rem, 2.8vw, 1.55rem);
}

.menu-live-map-meta {
  margin: 0;
}

.menu-live-map-fullscreen {
  flex: 0 0 auto;
  align-self: center;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.menu-live-map .listing-map-canvas {
  width: 100%;
  border-radius: var(--radius, 12px);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.menu-live-map-empty {
  padding: 1.25rem 0 0.5rem;
  text-align: center;
}

@media (max-width: 640px) {
  .menu-live-map-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .menu-live-map-fullscreen {
    width: 100%;
    text-align: center;
  }
}

/* Shared Leaflet listing map — compact popups & thumbnail markers (Phase 1 usability) */
.listing-map-canvas {
  width: 100%;
  background: #e8eef4;
}

/* Thumbnail markers — beat Leaflet .leaflet-marker-pane img { width: auto; max-width: none !important } */
.listing-map-thumb-marker-wrap,
.leaflet-container .leaflet-marker-pane .listing-map-thumb-marker-wrap.leaflet-marker-icon {
  background: transparent;
  border: 0;
  width: 44px !important;
  height: 44px !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.listing-map-thumb-marker,
.leaflet-container .leaflet-marker-pane .listing-map-thumb-marker {
  width: 44px;
  height: 44px;
  box-sizing: border-box;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  background: #dbe4ee;
}

.listing-map-thumb-marker img,
.leaflet-container .leaflet-marker-pane .listing-map-thumb-marker img {
  display: block;
  width: 44px !important;
  height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  object-fit: cover !important;
  padding: 0 !important;
}

.listing-map-thumb-marker--fallback {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #5b8def;
}

.listing-map-popup-shell .leaflet-popup-content {
  margin: 10px 12px;
  min-width: 220px;
  max-width: 280px;
}

.listing-map-popup {
  width: 100%;
  max-width: 280px;
}

.listing-map-popup-image-wrap {
  width: 100%;
  max-width: 280px;
  height: 160px;
  overflow: hidden;
  border-radius: 8px;
  background: #e8eef4;
  margin: 0 0 0.55rem;
}

.listing-map-popup-image-wrap--placeholder {
  background: linear-gradient(135deg, #d7e0ea, #eef2f6);
}

.listing-map-popup-image {
  display: block;
  width: 100%;
  max-width: 280px;
  height: 160px;
  object-fit: cover;
}

.listing-map-popup-body {
  display: grid;
  gap: 0.35rem;
}

.listing-map-popup-title {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.25;
}

.listing-map-popup-meta,
.listing-map-popup-location {
  margin: 0;
  font-size: 0.82rem;
  color: #445;
}

.listing-map-popup-sep {
  margin: 0 0.35rem;
  opacity: 0.55;
}

.listing-map-popup-btn {
  margin-top: 0.25rem;
  text-align: center;
}

.listing-map-canvas--preview {
  touch-action: pan-x pan-y;
}

.listing-map-status {
  margin: 0.35rem 0 0;
}

.listing-map-toolbar {
  margin-bottom: 0.85rem;
}

.listing-map-filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.75rem;
  align-items: end;
  margin-bottom: 0.45rem;
}

.listing-map-filter-form label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.9rem;
}

.listing-map-filter-form select {
  min-width: 12rem;
}

/* Leaflet.markercluster — keep cluster badges readable over thumbnail markers */
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
  background-color: rgba(91, 141, 239, 0.55);
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
  background-color: rgba(42, 93, 176, 0.9);
  color: #fff;
  font-weight: 700;
}
