:root {
  --brand: #ff6a00;
  --brand-dark: #d64c00;
  --steel: #0f4c81;
  --ink: #17202f;
  --muted: #4f5868;
  --line: #dde2ea;
  --soft: #f7f8fa;
  --panel: #ffffff;
  --sidebar: #101a27;
  --radius: 8px;
  --shadow: 0 20px 60px rgba(17, 24, 39, 0.12);
  font-family: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(rgba(15, 76, 129, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 76, 129, 0.035) 1px, transparent 1px),
    var(--soft);
  background-size: 32px 32px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

.builder-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 100vh;
}

.app-mode,
.app-mode body {
  min-height: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--soft);
}

.app-mode .builder-shell,
.app-mode .workspace,
.app-mode .content-grid,
.app-mode .phone-stage,
.app-mode .phone-frame,
.app-mode .phone-shell {
  display: block;
  width: 100%;
  max-width: none;
  min-height: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  aspect-ratio: auto;
}

.app-mode .sidebar,
.app-mode .topbar,
.app-mode .editor,
.app-mode .phone-notch {
  display: none;
}

.app-mode .app-screen {
  min-height: 100dvh;
  height: 100dvh;
  border-radius: 0;
}

.app-mode .mobile-header {
  padding-top: max(18px, env(safe-area-inset-top));
}

.app-mode .mobile-page {
  padding-bottom: calc(132px + env(safe-area-inset-bottom));
}

.app-mode .mobile-nav {
  bottom: calc(18px + env(safe-area-inset-bottom));
  left: calc(12px + env(safe-area-inset-left));
  right: calc(12px + env(safe-area-inset-right));
  min-height: 74px;
  padding: 8px 5px 9px;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.14);
}

.app-mode .mobile-nav .icon {
  width: 22px;
  height: 22px;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 28px 18px;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 106, 0, 0.18), transparent 28%),
    linear-gradient(180deg, #111d2b, #08111c);
  color: #fff;
}

.builder-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 34px;
  font-size: 22px;
  font-weight: 900;
}

.builder-brand strong {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
}

.roof-mark {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 30px;
  flex: 0 0 auto;
}

.roof-mark::before,
.roof-mark::after {
  content: "";
  position: absolute;
  background: var(--brand);
}

.roof-mark::before {
  left: 2px;
  top: 10px;
  width: 28px;
  height: 17px;
  clip-path: polygon(0 42%, 50% 0, 100% 42%, 100% 100%, 69% 100%, 69% 57%, 31% 57%, 31% 100%, 0 100%);
}

.roof-mark::after {
  right: -1px;
  top: 3px;
  width: 9px;
  height: 20px;
  transform: rotate(-36deg);
}

.roof-mark.compact {
  width: 28px;
  height: 25px;
}

.side-nav {
  display: grid;
  gap: 7px;
}

.side-nav button,
.help-link {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 52px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}

.side-nav button.active {
  background: linear-gradient(135deg, rgba(255, 106, 0, 0.9), rgba(168, 83, 5, 0.8));
  color: #fff;
}

.publish-card {
  margin-top: auto;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.publish-card .icon {
  width: 30px;
  height: 30px;
  color: var(--brand);
}

.publish-card h2 {
  margin: 12px 0 8px;
  font-size: 18px;
}

.publish-card p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
}

.publish-card button,
.save-action {
  min-height: 52px;
  border: 0;
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(255, 106, 0, 0.22);
}

.publish-card button {
  width: 100%;
}

.help-link {
  margin-top: 18px;
  padding-inline: 8px;
}

.workspace {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 78px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

.project-switcher,
.top-actions,
.device-toggle,
.preview-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
}

.project-switcher strong {
  font-size: 22px;
}

.chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.save-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.save-state i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}

.device-toggle {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.device-toggle button,
.ghost-action,
.preview-action {
  min-width: 54px;
  min-height: 44px;
  border: 0;
  background: #fff;
  color: var(--ink);
  font-weight: 780;
  cursor: pointer;
}

.device-toggle button.active {
  background: #edf2f7;
}

.top-actions {
  justify-content: flex-end;
}

.ghost-action {
  color: var(--muted);
  font-size: 24px;
}

.preview-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.save-action {
  padding: 0 22px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(520px, 0.58fr) minmax(0, 1fr);
  min-height: calc(100vh - 78px);
}

.phone-stage {
  display: grid;
  place-items: start center;
  padding: 34px 28px;
  border-right: 1px solid var(--line);
}

.phone-frame {
  width: min(100%, 450px);
  transition: width 240ms ease;
}

.phone-frame.wide {
  width: min(100%, 760px);
}

.phone-shell {
  position: relative;
  margin: 0 auto;
  width: min(100%, 510px);
  aspect-ratio: 10 / 20;
  padding: 16px;
  border-radius: 58px;
  background: #050607;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
}

.phone-notch {
  position: absolute;
  top: 20px;
  left: 50%;
  z-index: 5;
  width: 150px;
  height: 34px;
  border-radius: 0 0 22px 22px;
  background: #050607;
  transform: translateX(-50%);
}

.app-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 43px;
  background: var(--soft);
  color: var(--ink);
}

.mobile-header {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  min-height: 82px;
  padding: 18px 22px 8px;
  background: var(--header-bg, #fff);
}

.mobile-header button,
.mobile-header a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--brand);
}

.mobile-header button span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 3px 0;
  border-radius: 99px;
  background: var(--ink);
}

.mobile-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  font-size: 22px;
}

.mobile-logo img,
.upload-box img {
  max-width: 150px;
  max-height: 54px;
  object-fit: contain;
}

.mobile-logo img {
  max-width: 132px;
  max-height: 58px;
  border-radius: 8px;
}

.mobile-page {
  display: none;
  flex: 1;
  overflow: auto;
  padding-bottom: 92px;
}

.mobile-page.active {
  display: block;
}

.hero-photo {
  min-height: 300px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.12)),
    url("https://images.unsplash.com/photo-1621905252507-b35492cc74b4?auto=format&fit=crop&w=1100&q=82") center / cover;
}

.hero-overlay {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 300px;
  padding: 36px 28px 18px;
  color: #fff;
}

.hero-overlay h1 {
  margin: 0;
  max-width: 360px;
  font-size: clamp(34px, 4vw, 43px);
  line-height: 0.98;
}

.hero-overlay p {
  margin: 10px 0 18px;
  font-size: 16px;
  font-weight: 750;
}

.mobile-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  min-height: 54px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.mobile-section,
.page-title {
  padding: 18px 22px 0;
}

.mobile-section.tight {
  padding-top: 12px;
}

.mobile-section h2,
.page-title h1 {
  margin: 0 0 13px;
  font-size: 19px;
}

.page-title h1 {
  margin-top: 12px;
  font-size: 30px;
}

.assistant-title h1 {
  font-size: 34px;
}

.page-title p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.45;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.service-tile,
.service-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.04);
  font-weight: 780;
}

.service-tile .service-symbol,
.service-row .service-symbol {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--brand);
  font-size: 22px;
}

.review-card,
.contact-card {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.review-avatar {
  width: 68px;
  height: 68px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 106, 0, 0.12), transparent),
    url("https://images.unsplash.com/photo-1494790108377-be9c29b29330?auto=format&fit=crop&w=200&q=80") center / cover;
}

.review-card strong {
  color: var(--brand);
}

.review-card span {
  color: var(--ink);
}

.review-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.service-list {
  display: grid;
  gap: 12px;
  padding: 0 22px 22px;
}

.business-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 22px 8px;
}

.assistant-panel {
  margin: 0 22px 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.04);
}

.assistant-panel h2 {
  margin: 0 0 13px;
  font-size: 18px;
}

.assistant-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.assistant-stats article {
  display: grid;
  gap: 3px;
  min-height: 76px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--soft);
  text-align: center;
}

.assistant-stats strong {
  color: var(--brand);
  font-size: 25px;
}

.assistant-stats span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.assistant-actions,
.quick-tools,
.assistant-tasks {
  display: grid;
  gap: 10px;
  padding: 0 22px 18px;
}

.assistant-task-form {
  display: grid;
  gap: 9px;
  padding: 0 22px 18px;
}

.assistant-task-form input,
.assistant-task-form select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-weight: 600;
}

.assistant-task-form button {
  min-height: 42px;
  border: 0;
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff;
  font-weight: 850;
}

.assistant-task {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.assistant-task:has(> div:first-child:last-child) {
  grid-template-columns: 1fr;
  text-align: center;
}

.assistant-task.done {
  opacity: 0.58;
}

.home-appointments {
  display: grid;
  gap: 9px;
  padding: 0 22px 18px;
}

.home-appointment-card {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.home-appointment-card time {
  color: var(--brand);
  font-weight: 900;
}

.home-appointment-card strong,
.home-appointment-card span {
  display: block;
}

.home-appointment-card span,
.home-appointment-card small {
  color: var(--muted);
  font-size: 12px;
}

.assistant-task > button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--brand);
  font-weight: 900;
}

.assistant-task strong {
  display: block;
  font-size: 14px;
}

.assistant-task span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.assistant-task small {
  padding: 6px 8px;
  border-radius: 999px;
  background: #eef2f7;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.assistant-task small.high {
  background: #ffe9e2;
  color: #c33a1a;
}

.assistant-task small.medium {
  background: #fff4d8;
  color: #966900;
}

.assistant-task small.low {
  background: #e8f7ef;
  color: #168052;
}

.assistant-actions button,
.quick-tools button {
  display: grid;
  gap: 4px;
  min-height: 58px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  text-align: left;
  font-weight: 850;
  cursor: pointer;
}

.assistant-actions button span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.quick-tools {
  grid-template-columns: 1fr 1fr;
}

.quick-tools button {
  place-items: center;
  min-height: 76px;
  text-align: center;
}

.quick-tools .icon {
  color: var(--brand);
}

.business-summary article {
  display: grid;
  gap: 3px;
  min-height: 74px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.business-summary strong {
  color: var(--brand);
  font-size: 26px;
}

.business-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.job-list,
.check-list,
.customer-list,
.invoice-list,
.supplier-list {
  display: grid;
  gap: 10px;
  padding: 0 22px 20px;
}

.job-card,
.customer-card,
.invoice-card,
.supplier-card,
.check-list button {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.04);
}

.job-card {
  position: relative;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  overflow: hidden;
  padding: 14px 14px 14px 18px;
}

.job-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: var(--job-color, var(--brand));
}

.job-card time {
  display: grid;
  place-items: center;
  min-height: 46px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--job-color, var(--brand)) 12%, white);
  color: var(--job-color, var(--brand));
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.job-card strong,
.customer-card strong,
.supplier-card strong {
  display: block;
  margin-bottom: 4px;
}

.job-card span,
.supplier-card small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.job-card small {
  width: fit-content;
  padding: 6px 9px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--job-color, var(--brand)) 12%, white);
  color: var(--job-color, var(--brand));
  font-size: 11px;
  font-weight: 800;
}

.job-card b {
  grid-column: 2 / -1;
  width: fit-content;
  padding: 5px 8px;
  border-radius: 999px;
  background: #f4f6f8;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.check-list button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 13px;
  color: var(--ink);
  text-align: left;
  font-weight: 800;
  cursor: pointer;
}

.check-list button span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 2px solid var(--line);
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
}

.check-list button.done {
  color: var(--muted);
  text-decoration: line-through;
}

.check-list button.done span {
  border-color: var(--brand);
  background: var(--brand);
}

.check-list.buying button span {
  border-radius: 50%;
}

.customer-card {
  padding: 16px;
}

.customer-browser {
  display: grid;
  gap: 12px;
}

.customer-list {
  display: grid;
  gap: 8px;
}

.customer-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.customer-list-item.active {
  border-color: var(--brand);
  background: rgba(255, 106, 0, 0.08);
}

.customer-list-item strong {
  font-size: 15px;
}

.customer-list-item span {
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
}

.customer-list-item small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

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

.customer-jobs {
  display: grid;
  gap: 12px;
}

.customer-job {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.customer-topline,
.customer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.customer-topline small,
.customer-meta b {
  width: fit-content;
  padding: 6px 9px;
  border-radius: 6px;
  background: rgba(255, 106, 0, 0.1);
  color: var(--brand);
  font-size: 12px;
  font-weight: 750;
}

.job-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.job-facts span {
  display: grid;
  gap: 5px;
  padding: 11px;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.25;
}

.job-facts strong {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.customer-card a {
  color: var(--brand);
  font-weight: 900;
}

.customer-card > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.customer-card p,
.supplier-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.customer-card p strong {
  color: var(--ink);
}

.customer-card details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.customer-card summary {
  padding: 10px 12px;
  color: var(--ink);
  font-weight: 750;
  cursor: pointer;
}

.job-document-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.job-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.job-gallery img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
}

.job-photo-upload,
.app-logo-upload {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px dashed #aab3c2;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-weight: 850;
}

.job-photo-upload input,
.app-logo-upload input {
  width: 100%;
}

.app-settings-form {
  display: grid;
  gap: 12px;
  padding: 0 22px 28px;
}

.app-settings-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 850;
}

.app-settings-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  color: var(--ink);
  font-weight: 750;
}

.mini-checks {
  display: grid;
  gap: 7px;
  padding: 0 10px 10px;
}

.mini-checks button {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-weight: 780;
  text-align: left;
}

.mini-checks button span {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border: 2px solid var(--line);
  border-radius: 5px;
  color: #fff;
  font-size: 12px;
}

.mini-checks button.done {
  color: var(--muted);
  text-decoration: line-through;
}

.mini-checks button.done span {
  border-color: var(--brand);
  background: var(--brand);
}

.edit-customer-button {
  min-height: 40px;
  border: 0;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-weight: 850;
}

.invoice-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 15px;
}

.invoice-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.invoice-card em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.invoice-card b {
  font-size: 22px;
}

.invoice-card small {
  grid-column: 1 / -1;
  width: fit-content;
  padding: 6px 9px;
  border-radius: 6px;
  background: #eef2f7;
  color: var(--muted);
  font-weight: 900;
}

.invoice-card.paid small {
  background: #e5f8ef;
  color: #158051;
}

.invoice-card.sent small {
  background: rgba(255, 106, 0, 0.1);
  color: var(--brand);
}

.invoice-card button {
  grid-column: 1 / -1;
  min-height: 38px;
  border: 0;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-weight: 850;
  cursor: pointer;
}

.supplier-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
}

.supplier-card.preferred {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 8%, white), #fff 58%);
}

.supplier-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.supplier-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  padding: 0 22px 12px;
}

.supplier-tools select,
.supplier-tools button {
  min-width: 0;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.supplier-tools button {
  grid-column: 1 / -1;
  border: 0;
  background: var(--ink);
  color: #fff;
}

.supplier-order-list {
  display: grid;
  gap: 10px;
  padding: 0 22px 14px;
}

.supplier-order-card {
  display: grid;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.04);
}

.supplier-order-head {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.supplier-order-head .icon {
  color: var(--brand);
}

.supplier-order-head small,
.supplier-order-count {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.supplier-order-card ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.supplier-order-card li {
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.supplier-order-card a,
.supplier-actions a,
.supplier-actions button {
  display: grid;
  place-items: center;
  min-height: 38px;
  border: 0;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-weight: 850;
}

.supplier-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.supplier-heading strong {
  margin: 0;
}

.supplier-heading small,
.supplier-card > div > small {
  display: block;
  margin-top: 3px;
}

.supplier-heading em {
  padding: 6px 8px;
  border-radius: 999px;
  background: #fff4d8;
  color: #966900;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.supplier-contact,
.supplier-note {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.supplier-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 11px;
}

.supplier-meta span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.supplier-meta b {
  color: var(--ink);
  font-size: 10px;
  text-transform: uppercase;
}

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

.supplier-actions a {
  grid-column: 1 / -1;
  background: var(--brand);
}

.service-row {
  justify-content: space-between;
  min-height: 74px;
}

.service-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 600;
}

.quote-form {
  display: grid;
  gap: 13px;
  padding: 0 22px 24px;
}

.quote-form label,
.stack label,
.form-grid label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 780;
}

.quote-form input,
.quote-form select,
.quote-form textarea,
.quote-form label button,
.stack input,
.stack textarea,
.form-grid input,
.form-grid textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-weight: 600;
}

.quote-form textarea,
.stack textarea,
.form-grid textarea {
  min-height: 92px;
  padding-top: 12px;
  resize: vertical;
}

.quote-form label button {
  text-align: left;
  color: var(--steel);
}

.quote-lines {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.quote-lines > strong {
  color: var(--brand);
  font-size: 16px;
}

.quote-lines span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}

.quote-lines small {
  color: var(--ink);
  font-weight: 750;
  white-space: nowrap;
}

.mobile-cta.secondary-cta {
  background: var(--ink);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 22px 22px;
}

.gallery-grid span {
  min-height: 150px;
  border-radius: var(--radius);
  background-position: center;
  background-size: cover;
}

.gallery-grid span:nth-child(1) { background-image: url("https://images.unsplash.com/photo-1607472586893-edb57bdc0e39?auto=format&fit=crop&w=500&q=80"); }
.gallery-grid span:nth-child(2) { background-image: url("https://images.unsplash.com/photo-1581092160562-40aa08e78837?auto=format&fit=crop&w=500&q=80"); }
.gallery-grid span:nth-child(3) { background-image: url("https://images.unsplash.com/photo-1589939705384-5185137a7f0f?auto=format&fit=crop&w=500&q=80"); }
.gallery-grid span:nth-child(4) { background-image: url("https://images.unsplash.com/photo-1504307651254-35680f356dfd?auto=format&fit=crop&w=500&q=80"); }

.contact-card {
  grid-template-columns: 1fr;
  margin: 0 22px 20px;
}

.contact-card a,
.contact-card span {
  display: block;
  padding: 13px;
  border-radius: var(--radius);
  background: var(--soft);
  font-weight: 800;
}

.client-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.client-detail-grid span {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.client-detail-grid b {
  color: var(--ink);
  font-size: 11px;
  text-transform: uppercase;
}

.mobile-nav {
  position: absolute;
  right: 12px;
  bottom: 14px;
  left: 12px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  min-height: 82px;
  padding: 8px 6px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.12);
}

.mobile-nav button {
  display: grid;
  place-items: center;
  gap: 3px;
  min-width: 0;
  padding: 7px 1px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: clamp(8px, 2.1vw, 11px);
  font-weight: 780;
  line-height: 1.1;
  white-space: nowrap;
  cursor: pointer;
}

.mobile-nav button.active {
  color: var(--brand);
}

.mobile-nav .icon {
  width: 24px;
  height: 24px;
}

.editor {
  min-width: 0;
  padding: 0 24px 36px;
}

.preview-tabs {
  position: sticky;
  top: 78px;
  z-index: 9;
  min-height: 64px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 248, 250, 0.9);
  backdrop-filter: blur(14px);
}

.preview-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 64px;
  padding: 0 18px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 780;
  cursor: pointer;
}

.preview-tabs button.active {
  border-color: var(--brand);
  color: var(--brand);
}

.editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  padding-top: 24px;
}

.panel,
.editor-actions {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 8px 30px rgba(17, 24, 39, 0.045);
}

.panel {
  padding: 22px;
}

.span-2 {
  grid-column: span 2;
}

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

.panel h2 {
  margin: 0 0 4px;
  font-size: 22px;
}

.panel p,
.panel small {
  margin: 0;
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.logo-uploader input,
.image-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 76px;
  border: 1px dashed #aab3c2;
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
}

.upload-box strong {
  font-size: 20px;
}

.upload-box:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 45%, white);
  outline-offset: 3px;
}

.upload-status {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.edit-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(15, 23, 42, 0.58);
}

.edit-modal {
  width: min(720px, 100%);
  max-height: min(86vh, 820px);
  overflow: auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.edit-modal header,
.edit-modal footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.edit-modal footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.edit-modal h2 {
  margin: 0;
  font-size: 26px;
}

.edit-modal form {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.edit-modal label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.edit-modal input,
.edit-modal textarea,
.edit-modal select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  font: inherit;
  font-weight: 650;
}

.edit-modal textarea {
  min-height: 118px;
  resize: vertical;
}

.edit-modal .modal-close,
.edit-modal .modal-cancel,
.edit-modal .modal-save {
  border: 0;
  border-radius: 8px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.edit-modal .modal-close,
.edit-modal .modal-cancel {
  background: #eef2f7;
  color: var(--ink);
}

.edit-modal .modal-save {
  background: var(--brand);
  color: #fff;
}

.swatch-group {
  display: grid;
  gap: 10px;
  font-size: 14px;
  font-weight: 780;
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.swatches button {
  width: 44px;
  height: 44px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: var(--swatch);
  cursor: pointer;
}

.swatches button.active {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 4px #fff;
}

input[type="color"] {
  height: 48px;
  padding: 4px;
  cursor: pointer;
}

.stack {
  display: grid;
  gap: 16px;
}

.setup-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.selected-trade-card {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 20px;
  border: 1px solid rgba(255, 106, 0, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 106, 0, 0.12), rgba(255, 255, 255, 0.96) 52%),
    #fff;
}

.selected-trade-card > span {
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.selected-trade-card strong {
  color: var(--ink);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 0.95;
}

.selected-trade-card p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.selected-trade-card div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.selected-trade-card small {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 10px;
  background: #fff;
  color: var(--muted);
  font-weight: 800;
}

.selected-trade-card b {
  color: var(--brand);
  font-size: 22px;
}

.compliance-card {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(23, 32, 47, 0.12);
  border-radius: var(--radius);
  background: #fbfcfd;
}

.compliance-card strong {
  color: var(--ink);
  font-size: 16px;
}

.compliance-card ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.5;
}

.compliance-card li {
  padding-left: 2px;
}

.scope-library {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.scope-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.scope-toolbar strong {
  color: var(--ink);
  font-size: 18px;
}

.scope-toolbar button,
.scope-actions button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff;
  font-weight: 850;
  cursor: pointer;
}

.scope-library article {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfd;
}

.scope-library strong {
  color: var(--brand);
  font-size: 18px;
}

.scope-library p,
.scope-library small {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.scope-library small {
  font-size: 12px;
  font-weight: 700;
}

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

.scope-lists div {
  display: grid;
  gap: 7px;
  align-content: start;
}

.scope-lists b {
  color: var(--ink);
  font-size: 13px;
}

.scope-lists span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.scope-lists span button,
.pricing-list span button {
  min-height: 26px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: rgba(23, 32, 47, 0.08);
  color: var(--ink);
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.pricing-list {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: var(--radius);
  background: #fff;
}

.pricing-list > b {
  color: var(--ink);
  font-size: 13px;
}

.pricing-list > em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.pricing-list > span {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.pricing-list small {
  color: var(--ink);
  font-weight: 850;
  white-space: nowrap;
}

.pricing-list > strong {
  justify-self: end;
  color: var(--brand);
  font-size: 16px;
}

.pricing-editor {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
}

.pricing-service-tabs {
  display: grid;
  gap: 8px;
  align-content: start;
}

.pricing-service-tabs button {
  display: grid;
  gap: 4px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.pricing-service-tabs button.active {
  border-color: var(--brand);
  background: #fff7ed;
  box-shadow: inset 4px 0 0 var(--brand);
}

.pricing-service-tabs span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.pricing-service-detail {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.pricing-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.pricing-detail-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.pricing-detail-head h3 {
  margin: 4px 0 6px;
  font-size: 25px;
}

.pricing-detail-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.pricing-detail-head > strong {
  color: var(--brand);
  font-size: 30px;
  white-space: nowrap;
}

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

.pricing-item-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #eef1f5;
  border-radius: var(--radius);
  background: #fbfcfd;
}

.pricing-item-list strong,
.pricing-item-list span {
  display: block;
}

.pricing-item-list span {
  margin-top: 4px;
  color: var(--muted);
}

.pricing-item-list button,
.add-pricing-button {
  min-height: 42px;
  border: 0;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-weight: 850;
  cursor: pointer;
}

.add-pricing-button {
  justify-self: start;
  padding: 0 18px;
  background: var(--brand);
}

.empty-note {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

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

.scope-actions button {
  background: var(--ink);
}

.price-mini-list {
  display: grid;
  gap: 7px;
}

.price-mini-list span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 11px 12px;
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.price-mini-list b {
  color: var(--ink);
  white-space: nowrap;
  font-size: 14px;
  font-weight: 750;
}

.invoice-job-button {
  min-height: 42px;
  border: 0;
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff;
  font-weight: 850;
  cursor: pointer;
}

.hero-editor {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) 1fr;
  gap: 18px;
  align-items: stretch;
}

.image-drop {
  display: grid;
  place-items: center;
  min-height: 150px;
  padding: 22px;
  border: 1px dashed #aab3c2;
  border-radius: var(--radius);
  background: #fbfcfd;
  text-align: center;
  cursor: pointer;
}

.image-drop .icon {
  width: 36px;
  height: 36px;
  color: var(--brand);
}

.image-drop em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.hero-thumb {
  min-height: 150px;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.28), transparent),
    url("https://images.unsplash.com/photo-1621905252507-b35492cc74b4?auto=format&fit=crop&w=900&q=82") center / cover;
}

.service-editor {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 11px;
}

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

.mini-form {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfd;
}

.mini-form h3 {
  margin: 0 0 3px;
  font-size: 16px;
}

.mini-form input,
.mini-form select,
.mini-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-weight: 650;
}

.mini-form textarea {
  min-height: 84px;
  padding-top: 10px;
  resize: vertical;
}

.attachment-input {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px dashed #aab3c2;
  border-radius: var(--radius);
  background: #fbfcfd;
  color: var(--ink);
  font-weight: 850;
}

.attachment-input input {
  min-height: auto;
  padding: 0;
  border: 0;
}

.attachment-input span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.attachment-list {
  display: grid;
  gap: 8px;
}

.attachment-list span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.attachment-list small {
  color: var(--muted);
}

.mini-form button {
  min-height: 42px;
  border: 0;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-weight: 850;
  cursor: pointer;
}

.service-check {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-weight: 750;
}

.service-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}

.editor-actions {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr 1fr;
  align-content: start;
  gap: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.tip-card {
  padding: 22px;
  border: 1px solid #b8d9f5;
  border-radius: var(--radius);
  background: #eaf5ff;
  color: #164b78;
}

.tip-card .icon {
  color: #164b78;
}

.tip-card strong {
  display: block;
  margin: 8px 0;
  font-size: 18px;
}

.tip-card p {
  margin: 0;
  line-height: 1.55;
}

.save-action.full,
.reset-action,
.download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border-radius: var(--radius);
  font-weight: 850;
}

.reset-action,
.download-link {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  max-width: 360px;
  padding: 15px 18px;
  border-radius: var(--radius);
  background: #101a27;
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.owner-lock {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(180deg, rgba(247, 248, 250, 0.96), rgba(255, 255, 255, 0.98));
}

.owner-lock-card {
  display: grid;
  gap: 14px;
  width: min(100%, 390px);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
}

.owner-lock-card .roof-mark {
  justify-self: center;
}

.owner-lock-card h1,
.owner-lock-card p {
  margin: 0;
}

.owner-lock-card p,
.owner-lock-card small {
  color: var(--muted);
}

.owner-lock-card input,
.owner-lock-card button {
  min-height: 50px;
  border-radius: var(--radius);
  font: inherit;
}

.owner-lock-card input {
  border: 1px solid var(--line);
  padding: 0 14px;
}

.owner-lock-card button {
  border: 0;
  background: var(--brand);
  color: #fff;
  font-weight: 850;
}

.icon {
  display: inline-block;
  width: 21px;
  height: 21px;
  background: currentColor;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}

.pencil { mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='m12 20 9-9-4-4-9 9-2 6 6-2zM15 9l4 4'/%3E%3C/svg%3E"); }
.pages { mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linejoin='round' d='M7 3h8l4 4v14H7V3zM15 3v5h4M5 7H3v14h12v-2'/%3E%3C/svg%3E"); }
.grid { mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='2'%3E%3Crect x='4' y='4' width='6' height='6' rx='1'/%3E%3Crect x='14' y='4' width='6' height='6' rx='1'/%3E%3Crect x='4' y='14' width='6' height='6' rx='1'/%3E%3Crect x='14' y='14' width='6' height='6' rx='1'/%3E%3C/g%3E%3C/svg%3E"); }
.image { mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 16 5-5 4 4 3-3 6 6'/%3E%3Ccircle cx='16' cy='9' r='1'/%3E%3C/g%3E%3C/svg%3E"); }
.star { mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linejoin='round' d='m12 3 3 6 7 .9-5 4.8 1.3 6.8L12 18l-6.3 3.5L7 14.7 2 9.9 9 9l3-6z'/%3E%3C/svg%3E"); }
.settings { mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19 12a7 7 0 0 0-.1-1l2-1.5-2-3.5-2.4 1a8 8 0 0 0-1.7-1L14.5 3h-5L9.2 6a8 8 0 0 0-1.7 1L5.1 6l-2 3.5 2 1.5a7 7 0 0 0 0 2l-2 1.5 2 3.5 2.4-1a8 8 0 0 0 1.7 1l.3 3h5l.3-3a8 8 0 0 0 1.7-1l2.4 1 2-3.5-2-1.5c.1-.3.1-.7.1-1z'/%3E%3C/g%3E%3C/svg%3E"); }
.rocket { mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4c3-1 5-1 6 0 1 1 1 3 0 6l-5 5-6-6 5-5zM9 15l-4 4 4-1 1 4 4-4'/%3E%3Ccircle cx='16' cy='8' r='1'/%3E%3C/g%3E%3C/svg%3E"); }
.help { mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9.5 9a2.7 2.7 0 0 1 5 1.5c0 2-2.5 2-2.5 4M12 18h.01'/%3E%3C/g%3E%3C/svg%3E"); }
.phone { mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='7' y='2' width='10' height='20' rx='2' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M10 18h4' stroke='black' stroke-width='2'/%3E%3C/svg%3E"); }
.desktop { mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='4' width='18' height='12' rx='1'/%3E%3Cpath d='M8 21h8M12 16v5'/%3E%3C/g%3E%3C/svg%3E"); }
.eye { mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M2 12s4-7 10-7 10 7 10 7-4 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/g%3E%3C/svg%3E"); }
.call { mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M22 16.9v3a2 2 0 0 1-2.2 2A19.8 19.8 0 0 1 3 5.2 2 2 0 0 1 5 3h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.4 2.1L8 12a16 16 0 0 0 4 4l2.4-2.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E"); }
.home { mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linejoin='round' d='M3 11 12 3l9 8v10h-6v-6H9v6H3V11z'/%3E%3C/svg%3E"); }
.clipboard { mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M8 4H5v18h14V4h-3'/%3E%3Crect x='8' y='2' width='8' height='4' rx='1'/%3E%3Cpath d='M8 11h8M8 16h8'/%3E%3C/g%3E%3C/svg%3E"); }
.info { mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 10v7M12 7h.01'/%3E%3C/g%3E%3C/svg%3E"); }
.calendar { mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M8 3v4M16 3v4M3 10h18M8 15h3M14 15h2'/%3E%3C/g%3E%3C/svg%3E"); }
.people { mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='4'/%3E%3Cpath d='M2 21a7 7 0 0 1 14 0'/%3E%3Ccircle cx='17' cy='9' r='3'/%3E%3Cpath d='M16 16a6 6 0 0 1 6 5'/%3E%3C/g%3E%3C/svg%3E"); }
.invoice { mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h12v18l-2-1-2 1-2-1-2 1-2-1-2 1V3z'/%3E%3Cpath d='M9 8h6M9 12h6M9 16h3'/%3E%3C/g%3E%3C/svg%3E"); }
.link { mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7 0l2-2a5 5 0 0 0-7-7l-1 1'/%3E%3Cpath d='M14 11a5 5 0 0 0-7 0l-2 2a5 5 0 0 0 7 7l1-1'/%3E%3C/g%3E%3C/svg%3E"); }
.assistant { mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v3M12 18v3M3 12h3M18 12h3M5.6 5.6l2.1 2.1M16.3 16.3l2.1 2.1M18.4 5.6l-2.1 2.1M7.7 16.3l-2.1 2.1'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3C/g%3E%3C/svg%3E"); }

@media (max-width: 1280px) {
  .builder-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    min-height: auto;
  }

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

  .publish-card {
    display: none;
  }

  .content-grid,
  .editor-grid {
    grid-template-columns: 1fr;
  }

  .span-2,
  .editor-actions {
    grid-column: auto;
  }

  .editor-actions {
    grid-template-columns: 1fr;
  }

  .phone-stage {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  body {
    background-size: 24px 24px;
  }

  .topbar {
    grid-template-columns: 1fr;
    gap: 14px;
    min-height: auto;
    padding: 18px 16px;
    position: static;
  }

  .project-switcher {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    width: 100%;
  }

  .project-switcher strong {
    min-width: 0;
    font-size: clamp(24px, 8vw, 34px);
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .project-switcher .chevron {
    align-self: center;
  }

  .save-state {
    grid-column: 1 / -1;
    margin-left: 0;
    font-size: 15px;
  }

  .top-actions,
  .device-toggle {
    width: 100%;
    justify-content: stretch;
  }

  .device-toggle button,
  .ghost-action,
  .preview-action,
  .save-action {
    min-height: 50px;
  }

  .device-toggle button {
    flex: 1;
  }

  .top-actions {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
  }

  .preview-action,
  .save-action {
    width: 100%;
    justify-content: center;
    padding: 0 12px;
    font-size: 17px;
    line-height: 1.15;
    text-align: center;
  }

  .side-nav,
  .form-grid,
  .service-editor,
  .ops-grid,
  .setup-grid,
  .selected-trade-card div,
  .scope-lists,
  .hero-editor {
    grid-template-columns: 1fr;
  }

  .content-grid {
    display: block;
  }

  .phone-stage {
    padding: 22px 12px;
  }

  .phone-shell {
    border-radius: 42px;
    padding: 11px;
  }

  .app-screen {
    border-radius: 32px;
  }

  .preview-tabs {
    overflow-x: auto;
  }

  .editor {
    padding-inline: 14px;
  }

  .panel {
    padding: 18px;
  }

  .scope-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .scope-toolbar button,
  .scope-actions button {
    width: 100%;
  }

  .scope-library {
    gap: 16px;
  }

  .pricing-editor {
    grid-template-columns: 1fr;
  }

  .pricing-service-tabs {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .pricing-service-tabs button {
    min-width: 210px;
  }

  .pricing-detail-head {
    display: grid;
  }

  .pricing-item-list article {
    grid-template-columns: 1fr;
  }

  .supplier-tools,
  .supplier-meta,
  .supplier-actions {
    grid-template-columns: 1fr;
  }

  .scope-library article {
    gap: 16px;
    padding: 16px;
    background: #fff;
  }

  .scope-library strong {
    font-size: 22px;
    line-height: 1.15;
  }

  .scope-library p,
  .scope-library small {
    color: #475162;
    font-size: 15px;
    line-height: 1.5;
  }

  .scope-lists {
    gap: 10px;
  }

  .scope-lists b,
  .pricing-list > b {
    font-size: 18px;
  }

  .scope-lists span {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 12px;
    color: #344054;
    font-size: 15px;
    line-height: 1.35;
  }

  .pricing-list {
    gap: 12px;
    padding: 16px;
    border: 1px solid #eef1f5;
    background: #fff;
  }

  .pricing-list > em {
    color: #5a6372;
    font-size: 15px;
    line-height: 1.45;
  }

  .pricing-list > span {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 13px;
    border: 1px solid #eef1f5;
    border-radius: 8px;
    background: #fbfcfd;
    color: #344054;
    font-size: 16px;
    line-height: 1.35;
  }

  .pricing-list small {
    display: block;
    color: var(--ink);
    font-size: 17px;
    white-space: normal;
  }

  .pricing-list span button {
    min-height: 42px;
    width: 100%;
    font-size: 15px;
  }

  .pricing-list > strong {
    justify-self: stretch;
    padding-top: 4px;
    color: var(--brand);
    font-size: 24px;
    text-align: right;
  }

  .scope-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .mobile-logo {
    font-size: 18px;
  }

  .mobile-logo img {
    max-width: 112px;
  }
}
