:root {
  --ink: #0f172a;
  --muted: #64748b;
  --body: #475569;
  --line: #e2e8f0;
  --teal: #14b8a6;
  --teal-dark: #0d9488;
  --teal-soft: #f0fdfa;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --slate: #0f172a;
  --max: 1140px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { max-width: 100%; height: auto; }
a { color: var(--teal-dark); text-decoration: none; }
a:hover { color: var(--teal); }
button, input, select, textarea { font-family: inherit; font-size: 16px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.announcement {
  background: var(--slate); color: #fff; text-align: center;
  padding: 9px 16px; padding-top: max(9px, var(--safe-t));
  font-size: 13.5px; font-weight: 600;
}
.announcement span { color: var(--teal); }
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 16px;
  min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}
.logo:hover { color: var(--ink); }
.logo:hover .logo-word-pros { color: var(--teal); }
.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: block;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.22);
}
.logo-word {
  display: inline-flex;
  align-items: baseline;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.035em;
  line-height: 1;
  white-space: nowrap;
}
.logo-word-pop { color: var(--ink); }
.logo-word-pros { color: var(--teal-dark); }
.footer-logo .logo-img { width: 36px; height: 36px; border-radius: 11px; }
.footer-logo .logo-word { font-size: 1.1rem; }
@media (max-width: 380px) {
  .logo-word { font-size: 1.05rem; }
  .logo-img { width: 36px; height: 36px; }
}
.nav-links { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; }
.nav-links a:hover, .nav-links a.active { color: var(--teal-dark); }
.btn {
  border: none; cursor: pointer; font-weight: 700; border-radius: 12px;
  transition: .15s; min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
}
.btn-primary { background: var(--orange); color: #fff; padding: 11px 20px; font-size: 14.5px; box-shadow: 0 6px 16px rgba(249,115,22,.3); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-lg { padding: 15px 28px; font-size: 16px; border-radius: 14px; width: 100%; max-width: 320px; }
.btn-ghost {
  background: #fff; color: var(--ink); border: 2px solid #cbd5e1; padding: 13px 26px;
  font-size: 16px; border-radius: 14px; font-weight: 700;
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-dark); }
.menu-toggle {
  display: none; border: 1px solid var(--line); background: #fff; border-radius: 10px;
  padding: 10px 14px; font-weight: 700; cursor: pointer; min-height: 44px;
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 48px 16px; }
.section-title { margin: 0 0 8px; font-size: clamp(28px, 4vw, 34px); font-weight: 800; letter-spacing: -.02em; }
.section-sub { margin: 0 0 28px; color: var(--muted); font-size: 17px; }
.h2 { margin: 28px 0 12px; font-size: 1.25rem; font-weight: 800; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 16px; }
.grid-4 { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 480px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .wrap { padding: 64px 24px; }
  .nav-inner { padding: 0 24px; height: 68px; }
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .btn-lg { width: auto; }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.hero { background: linear-gradient(180deg, #f0fdfa 0%, #fff 100%); }
.hero-inner {
  max-width: var(--max); margin: 0 auto; padding: 40px 16px 48px;
  display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center;
}
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.1fr 0.9fr; gap: 40px; padding: 64px 24px 56px; }
}
.hero h1 { margin: 0 0 16px; font-size: clamp(32px, 6vw, 52px); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero p.lead, .lead-wide { margin: 0 0 20px; font-size: 18px; line-height: 1.55; color: var(--body); max-width: 540px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.contact-hint { font-size: 14px; color: var(--muted); margin: 0 0 14px; max-width: 480px; }
.trust-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.trust-row .dot { color: var(--teal); }
.tag {
  display: inline-flex; background: var(--teal-soft); color: var(--teal-dark);
  font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: 999px; margin-bottom: 12px;
}
.svc-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px;
  display: flex; flex-direction: column; gap: 8px; box-shadow: 0 4px 14px rgba(15,23,42,.05);
  color: var(--ink); transition: .15s; height: 100%;
}
.svc-card:hover { border-color: var(--teal); box-shadow: 0 12px 30px rgba(20,184,166,.15); color: var(--ink); }
.svc-img, .detail-hero-img {
  border-radius: 14px; background-size: cover; background-position: center;
  background-color: #f1f5f9; width: 100%;
}
.svc-img { aspect-ratio: 960 / 640; min-height: 120px; }
.detail-hero-img { aspect-ratio: 960 / 640; min-height: 200px; }

/* Line-art service illustrations (rev 3.0) */
.service-art-col { min-width: 0; }
.service-art {
  width: 100%;
  border-radius: 20px;
  border: 1px solid rgba(13, 148, 136, 0.22);
  background: linear-gradient(160deg, #f0fdfa 0%, #fff 70%);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-art-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.service-art-inner svg.line-art,
.service-art-inner svg {
  width: 100%;
  height: 100%;
  max-height: 100%;
  display: block;
}
.service-art--static .service-art-inner svg * {
  animation: none !important;
}
.svc-card-art {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 4px;
}
.svc-card-art .service-art {
  border-radius: 14px;
  box-shadow: none;
  aspect-ratio: 4 / 3;
}
.svc-card-art .service-art-inner { padding: 4px; }
.svc-card h3 { margin: 0; font-size: 16px; font-weight: 700; }
.svc-card p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.45; flex: 1; }
.svc-card .more { color: var(--orange); font-weight: 700; font-size: 13.5px; }
.card-grid { display: grid; gap: 16px; }
.step-card { border: 1px solid var(--line); border-radius: 16px; padding: 20px; background: #fff; }
.step-num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--teal); color: var(--ink);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; margin-bottom: 12px;
}
.dark { background: var(--slate); color: #fff; border-radius: 0; }
.dark .section-title { color: #fff; }
.dark .muted, .dark .section-sub { color: #94a3b8; }
.center-cta { text-align: center; margin-top: 28px; }
.checklist { list-style: none; padding: 0; margin: 16px 0 0; }
.checklist li { padding: 8px 0 8px 28px; position: relative; color: var(--body); font-size: 15px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--teal-dark); font-weight: 800; }
.note-box, .price-note {
  margin-top: 16px; padding: 14px 16px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; font-size: 14px; color: var(--body);
}
.crumb { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.crumb a { color: var(--muted); }
.detail-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .detail-grid { grid-template-columns: 1.1fr 0.9fr; gap: 40px; } }
.hook { font-weight: 600; color: var(--teal-dark); margin: 0 0 12px; }
.summary { color: var(--body); font-size: 1.05rem; line-height: 1.65; margin: 0; }
.detail-hero-caption { margin-top: 12px; }
.detail-hero-caption h3 { margin: 0 0 4px; font-size: 1.1rem; }
.detail-hero-caption p { margin: 0; color: var(--muted); font-size: 14px; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-bottom: 10px; background: #fff; }
.faq-item summary { font-weight: 700; cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.faq-item p { margin: 10px 0 0; color: var(--body); font-size: 15px; }
.related { margin-top: 48px; }
.catalog-page {
  padding-top: 28px;
  padding-bottom: 48px;
}

.cat-stage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
}
@media (min-width: 560px) {
  .cat-stage { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (min-width: 900px) {
  .cat-stage { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}
.cat-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
  min-width: 0;
}
.cat-card.is-open {
  border-color: rgba(13, 148, 136, 0.45);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
  /* Span full row when expanded so service list is readable */
  grid-column: 1 / -1;
}
.cat-card-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px 14px 12px;
  background: #fff;
  border: 0;
  text-align: left;
  cursor: pointer;
  min-height: 72px;
  transition: background .15s;
}
.cat-card-head:hover { background: #f8fafc; }
.cat-card-head:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: -2px;
}
.cat-card.is-open .cat-card-head { background: var(--teal-soft); }
.cat-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: #f1f5f9; color: var(--ink);
  border: 1px solid var(--line);
}
.cat-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}
.cat-icon[data-bucket="care"]   { background: #fff1f2; border-color: #fecdd3; color: #be123c; }
.cat-icon[data-bucket="home"]   { background: #f0fdfa; border-color: #99f6e4; color: #0f766e; }
.cat-icon[data-bucket="errands"]{ background: #fff7ed; border-color: #fed7aa; color: #c2410c; }
.cat-icon[data-bucket="events"] { background: #f5f3ff; border-color: #ddd6fe; color: #6d28d9; }
.cat-icon[data-bucket="travel"] { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.cat-icon[data-bucket="tech"]   { background: #ecfeff; border-color: #a5f3fc; color: #0e7490; }
.cat-icon[data-bucket="auto"]   { background: #f1f5f9; border-color: #cbd5e1; color: #334155; }

.cat-card-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cat-card-title { font-size: 15px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); line-height: 1.2; }
.cat-card-meta {
  font-size: 12.5px; color: var(--muted); font-weight: 500; line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cat-card-aside { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.cat-count {
  min-width: 26px; height: 26px; padding: 0 7px;
  border-radius: 999px; background: #f1f5f9; color: var(--body);
  font-size: 12px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.cat-card.is-open .cat-count { background: #fff; color: var(--teal-dark); }
.cat-chevron {
  width: 28px; height: 28px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted); background: #f8fafc;
  transition: transform .25s ease, background .15s, color .15s;
}
.cat-chevron svg { width: 16px; height: 16px; }
.cat-card.is-open .cat-chevron {
  transform: rotate(180deg);
  background: #fff;
  color: var(--teal-dark);
}

/* Height animated in JS for smooth open + close (grid 0fr→1fr is often choppy on close) */
.cat-card-body {
  overflow: hidden;
  height: 0;
  border-top: 1px solid transparent;
  will-change: height;
}
.cat-card.is-open .cat-card-body {
  border-top-color: var(--line);
}
.cat-card-body-inner {
  min-height: 0;
}
.cat-card-body[hidden] {
  display: block;
}
/* When a category expands full-width, lay services in a compact multi-column grid */
.cat-card.is-open .cat-card-body-inner {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .cat-card.is-open .cat-card-body-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 900px) {
  .cat-card.is-open .cat-card-body-inner {
    grid-template-columns: repeat(3, 1fr);
  }
}
.cat-svc-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 8px;
  row-gap: 2px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  min-height: 48px;
  text-decoration: none;
  transition: background .12s;
}
@media (min-width: 560px) {
  .cat-svc-row {
    border-right: 1px solid var(--line);
  }
  .cat-svc-row:nth-child(2n) { border-right: 0; }
}
@media (min-width: 900px) {
  .cat-svc-row:nth-child(2n) { border-right: 1px solid var(--line); }
  .cat-svc-row:nth-child(3n) { border-right: 0; }
}
.cat-svc-row:last-child { border-bottom: 0; }
.cat-svc-name {
  grid-column: 1; grid-row: 1;
  font-weight: 700; font-size: 15px; color: var(--ink);
}
.cat-svc-hook {
  grid-column: 1; grid-row: 2;
  font-size: 13px; color: var(--muted); line-height: 1.35;
}
.cat-svc-go {
  grid-column: 2; grid-row: 1 / span 2;
  color: var(--orange); font-weight: 800; font-size: 16px;
  opacity: 0.7; transition: opacity .12s, transform .12s;
}
.cat-svc-row:hover { background: var(--teal-soft); }
.cat-svc-row:hover .cat-svc-go { opacity: 1; transform: translateX(2px); }
.cat-svc-row:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }

@media (prefers-reduced-motion: reduce) {
  .cat-card-body, .cat-chevron, .cat-svc-go { transition: none; }
}
.site-footer { background: #f8fafc; border-top: 1px solid var(--line); margin-top: 24px; padding-bottom: var(--safe-b); }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-heading { margin: 0 0 10px; font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a, .linkish {
  color: var(--ink); font-weight: 600; font-size: 14px; background: none; border: 0; padding: 0; cursor: pointer; text-align: left;
}
.footer-blurb { color: var(--body); font-size: 14px; max-width: 280px; }
.footer-legal { font-size: 13px; color: var(--muted); font-weight: 600; }
.footer-hint { font-size: 13px; color: var(--muted); line-height: 1.4; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  padding-top: 0; padding-bottom: 24px; font-size: 13px; color: var(--muted);
}
.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom a { color: var(--muted); font-weight: 600; }
.about-card { background: var(--teal-soft); border-radius: 20px; padding: 24px; border: 1px solid #99f6e4; }
.about-steps { padding-left: 20px; color: var(--body); }
.legal h2 { margin-top: 28px; font-size: 1.15rem; }
.legal ul { color: var(--body); }
.muted { color: var(--muted); }

/* Modal */
.modal[hidden] { display: none !important; }
.modal {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-end; justify-content: center;
  padding: 0; padding-bottom: var(--safe-b);
}
@media (min-width: 640px) {
  .modal { align-items: center; padding: 24px; }
}
.modal-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.45); }
.modal-panel {
  position: relative; background: #fff; width: 100%; max-width: 520px; max-height: min(92dvh, 900px);
  border-radius: 20px 20px 0 0; display: flex; flex-direction: column; box-shadow: 0 25px 60px rgba(15,23,42,.25);
}
@media (min-width: 640px) { .modal-panel { border-radius: 20px; } }
.modal-head { display: flex; justify-content: space-between; gap: 12px; padding: 18px 18px 8px; }
.modal-head h2 { margin: 0; font-size: 1.25rem; }
.step-label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.modal-close {
  border: 0; background: #f1f5f9; width: 44px; height: 44px; border-radius: 12px; font-size: 24px; cursor: pointer; line-height: 1;
}
.progress-wrap { height: 4px; background: #e2e8f0; margin: 0 18px 8px; border-radius: 99px; overflow: hidden; }
.progress-bar { height: 100%; width: 25%; background: var(--teal); transition: width .2s; }
.modal-body { padding: 8px 18px; overflow: auto; flex: 1; }
.modal-actions {
  display: flex; gap: 10px; justify-content: space-between; padding: 12px 18px 18px; border-top: 1px solid var(--line);
}
.modal-err { color: #b91c1c; font-size: 14px; font-weight: 600; min-height: 1.2em; margin: 0 18px; }
.field { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--muted); }
.modal-body input, .modal-body textarea, .modal-body select,
.review-form input, .review-form textarea, .review-form select {
  width: 100%; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; margin-bottom: 12px;
}
.svc-pick, .time-pick {
  display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 12px;
  border: 2px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; min-height: 52px;
}
.svc-pick.selected, .time-pick.selected { border-color: var(--teal); background: var(--teal-soft); }
.svc-pick strong { display: block; }
.svc-pick small { color: var(--muted); }
.svc-pick-thumb {
  width: 44px; height: 44px; border-radius: 10px; background-size: cover; background-position: center; flex-shrink: 0;
}
.time-picks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.success-box { text-align: center; padding: 20px 8px; }
.success-check {
  width: 56px; height: 56px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-dark);
  display: flex; align-items: center; justify-content: center; font-size: 28px; margin: 0 auto 12px; font-weight: 800;
}
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.review-form { max-width: 640px; }
.field-grid { display: grid; gap: 0; }
@media (min-width: 640px) { .field-grid { grid-template-columns: 1fr 1fr; gap: 12px; } }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--body); margin: 12px 0 16px; }
.check-row input { margin-top: 4px; width: auto; }
.hint { font-weight: 500; color: var(--muted); }

/* Sonar map */
.sonar-map { background: #fff; border: 1px solid rgba(20,184,166,.25); border-radius: 24px; padding: 16px; box-shadow: 0 20px 50px rgba(15,23,42,.08); }
.sonar-map__scene { position: relative; max-height: 360px; }
.sonar-map__geo { width: 100%; height: auto; display: block; max-height: 320px; }
.sonar-map__sweep-group { transform-origin: 200px 210px; animation: sonar-spin 8s linear infinite; }
@keyframes sonar-spin { to { transform: rotate(360deg); } }
.sonar-map__hub { animation: hub-pulse 2s ease-in-out infinite; }
@keyframes hub-pulse { 50% { r: 7; opacity: .85; } }
.sonar-map__pins {
  list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; justify-content: center;
}
.sonar-map__pins .pin {
  font-size: 11px; font-weight: 700; color: var(--teal-dark); background: var(--teal-soft);
  padding: 4px 8px; border-radius: 999px;
}
.sonar-map__pins .is-hub { background: #ffedd5; color: var(--orange-dark); }
.sonar-map__caption { margin: 10px 0 0; font-size: 12px; color: var(--muted); text-align: center; line-height: 1.4; }
@media (prefers-reduced-motion: reduce) {
  .sonar-map__sweep-group, .sonar-map__hub { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* Chat launcher label helper (typebot theme + our nudge) */
.chat-nudge {
  position: fixed; right: 16px; bottom: calc(88px + var(--safe-b)); z-index: 190;
  background: var(--slate); color: #fff; padding: 12px 14px; border-radius: 14px;
  font-size: 14px; font-weight: 600; max-width: 220px; box-shadow: 0 12px 30px rgba(15,23,42,.25);
}
.chat-nudge button {
  position: absolute; top: 4px; right: 6px; border: 0; background: transparent; color: #fff;
  font-size: 18px; cursor: pointer; min-width: 36px; min-height: 36px;
}
.chat-label-hint {
  position: fixed; right: 16px; bottom: calc(22px + var(--safe-b)); z-index: 180; pointer-events: none;
  background: var(--orange); color: #fff; font-size: 12px; font-weight: 800; padding: 6px 10px;
  border-radius: 999px; box-shadow: 0 6px 16px rgba(249,115,22,.35);
  transform: translateX(-52px);
}
@media (max-width: 380px) {
  .chat-label-hint { font-size: 11px; transform: translateX(-44px); }
}

@media (max-width: 767px) {
  .menu-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line); flex-direction: column;
    align-items: stretch; padding: 12px 16px 16px; gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links .btn { width: 100%; }
  .nav-inner { position: relative; }
}

/* ——— Ops + customer contract ——— */
.ops-body, .contract-body { background: #f8fafc; min-height: 100dvh; }
.ops-top, .contract-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; padding-top: max(12px, var(--safe-t));
  background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.ops-top-actions { display: flex; gap: 8px; align-items: center; }
.ops-main { padding: 24px 16px 48px; max-width: 900px; }
.ops-card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 22px 20px; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}
.ops-form input, .ops-form textarea, .ops-form select,
.contract-card input {
  width: 100%; padding: 12px 14px; border: 2px solid var(--line);
  border-radius: 12px; margin-bottom: 12px; background: #fff;
}
.ops-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.ops-list-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  align-items: flex-end; margin-bottom: 16px;
}
.ops-table-wrap { overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.ops-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ops-table th {
  text-align: left; padding: 12px 14px; font-size: 12px; text-transform: uppercase;
  letter-spacing: .04em; color: var(--muted); border-bottom: 1px solid var(--line);
  background: #f8fafc;
}
.ops-table td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ops-table tbody tr { cursor: pointer; }
.ops-table tbody tr:hover { background: var(--teal-soft); }
.ops-table .small, .muted.small { font-size: 12px; font-weight: 500; }
.status-pill {
  display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px;
  border-radius: 999px; text-transform: lowercase; letter-spacing: .02em;
  background: #f1f5f9; color: var(--ink);
}
.st-draft { background: #f1f5f9; color: #475569; }
.st-sent, .st-viewed { background: #e0f2fe; color: #0369a1; }
.st-signed, .st-pay { background: #ffedd5; color: #c2410c; }
.st-paid { background: #ccfbf1; color: #0f766e; }
.st-void { background: #fee2e2; color: #b91c1c; }
.ops-detail-head {
  display: flex; justify-content: space-between; gap: 12px; align-items: flex-start;
  margin-bottom: 16px;
}
.ops-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 16px 0;
}
@media (min-width: 640px) {
  .ops-stats { grid-template-columns: repeat(4, 1fr); }
}
.ops-stat {
  background: #f8fafc; border: 1px solid var(--line); border-radius: 14px; padding: 12px;
  display: flex; flex-direction: column; gap: 4px;
}
.ops-stat strong { font-size: 1.05rem; }
.ops-block { margin-top: 22px; padding-top: 8px; border-top: 1px solid var(--line); }
.ops-block h2 { font-size: 1.1rem; margin: 0 0 10px; }
.ops-dl {
  display: grid; grid-template-columns: 120px 1fr; gap: 8px 12px; margin: 0;
  font-size: 14px;
}
.ops-dl dt { color: var(--muted); font-weight: 600; }
.ops-dl dd { margin: 0; }
.scope-pre, .scope-box {
  white-space: pre-wrap; font-family: inherit; font-size: 14px; line-height: 1.55;
  background: #f8fafc; border-radius: 12px; padding: 14px; border: 1px solid var(--line);
  margin: 0;
}
.contract-link-box {
  background: #f8fafc; border: 1px dashed var(--line); border-radius: 12px; padding: 12px;
  word-break: break-all; font-size: 13px;
}
.btn-sm { padding: 8px 12px; font-size: 13px; min-height: 40px; }
.btn-danger-ghost {
  background: transparent; color: #b91c1c; border: 2px solid #fecaca;
}
.btn-danger-ghost:hover { background: #fef2f2; }
.contract-main { padding: 20px 16px 40px; max-width: 720px; }
.contract-badge {
  font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  color: var(--teal-dark); background: var(--teal-soft); padding: 6px 10px; border-radius: 999px;
}
.contract-banner {
  padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; font-weight: 600; font-size: 14px;
}
.contract-banner.is-success { background: #ccfbf1; color: #0f766e; }
.contract-banner.is-warn { background: #ffedd5; color: #c2410c; }
.contract-h3 { font-size: 15px; margin: 14px 0 8px; }
.terms-details summary {
  cursor: pointer; font-weight: 700; color: var(--teal-dark); padding: 8px 0;
}
.terms-body {
  font-size: 13.5px; color: var(--body); line-height: 1.55; max-height: 320px; overflow: auto;
  padding: 8px 0 4px;
}
.terms-body h2, .terms-body h3 { font-size: 14px; color: var(--ink); margin: 14px 0 6px; }
.terms-body ul { padding-left: 1.2em; }
.sig-wrap {
  border: 2px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 8px;
  touch-action: none;
}
.sig-wrap canvas { display: block; width: 100%; height: 180px; border-radius: 10px; cursor: crosshair; }
.contract-foot {
  text-align: center; padding: 16px; padding-bottom: calc(16px + var(--safe-b));
  font-size: 12px;
}
