:root {
  color-scheme: light;
  --ink: #111419;
  --muted: #667085;
  --soft: #f4f6f8;
  --paper: #ffffff;
  --line: #d9dee7;
  --line-strong: #b8c0cc;
  --field: #fbfcff;
  --field-hover: #f7f9fc;
  --brand: #e43d30;
  --brand-dark: #a9231c;
  --charcoal: #151a20;
  --steel: #455564;
  --green: #12845f;
  --gold: #a96713;
  --blue: #2457a6;
  --violet: #5d4bb7;
  --cyan: #0e7490;
  --shadow: 0 22px 62px rgba(17, 20, 25, 0.13);
  --shadow-soft: 0 12px 34px rgba(17, 20, 25, 0.08);
  --focus-ring: 0 0 0 4px rgba(228, 61, 48, 0.16);
  --radius: 8px;
  --topbar-height: 94px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, #ffffff 0, #f4f6f8 340px, #eef2f6 100%);
  color: var(--ink);
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

a {
  color: inherit;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--topbar-height);
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto minmax(230px, 0.72fr);
  gap: 20px;
  align-items: center;
  padding: 14px clamp(18px, 3vw, 44px);
  border-bottom: 1px solid rgba(217, 222, 231, 0.8);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px) saturate(1.14);
  box-shadow: 0 10px 34px rgba(17, 20, 25, 0.06);
}

body.is-guest .topbar {
  grid-template-columns: minmax(260px, 1fr) auto;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  min-width: 0;
}

.brand-logo-shell {
  display: inline-grid;
  place-items: center;
  width: 210px;
  height: 94px;
  border-radius: 8px;
  background: #050607;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    0 14px 28px rgba(17, 20, 25, 0.14);
}

.brand-logo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.view-tabs {
  display: none;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(249, 250, 251, 0.78);
  overflow-x: auto;
}

body.is-authenticated .view-tabs {
  display: inline-flex;
}

.tab-button {
  border: 0;
  border-radius: 6px;
  padding: 9px 12px;
  color: var(--steel);
  background: transparent;
  white-space: nowrap;
  min-width: 56px;
}

.tab-button.is-active {
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 4px 14px rgba(17, 20, 25, 0.08);
}

.quick-contact {
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}

.quick-contact a,
.owner-chip {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 750;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 18px rgba(17, 20, 25, 0.05);
  white-space: nowrap;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.quick-contact a:hover,
.owner-chip:hover,
.button:hover,
.mini-button:hover,
.icon-button:hover {
  border-color: rgba(69, 85, 100, 0.36);
  box-shadow: 0 10px 24px rgba(17, 20, 25, 0.08);
  transform: translateY(-1px);
}

.quick-text {
  min-width: 72px;
}

.owner-chip {
  color: var(--steel);
}

.owner-chip.owner-only {
  color: var(--green);
  border-color: rgba(18, 132, 95, 0.28);
  background: #f0fbf7;
}

.owner-chip.guest-only {
  color: var(--ink);
}

main {
  width: 100%;
}

.owner-only {
  display: none !important;
}

body.is-authenticated .owner-only {
  display: revert !important;
}

body.is-authenticated .tab-button.owner-only,
body.is-authenticated .owner-chip.owner-only {
  display: inline-flex !important;
}

body.is-authenticated .intake-form.owner-only,
body.is-authenticated .summary-grid.owner-only,
body.is-authenticated .owner-home.owner-only,
body.is-authenticated .command-grid.owner-only,
body.is-authenticated .two-column.owner-only {
  display: grid !important;
}

body.is-authenticated .view.owner-only {
  display: none !important;
}

body.is-authenticated .view.owner-only.is-active {
  display: block !important;
}

body.is-authenticated .guest-only {
  display: none !important;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

.workbench,
.page-band {
  width: min(1540px, 100%);
  margin: 0 auto;
  padding: clamp(18px, 3vw, 42px);
}

.booking-surface {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(320px, 0.96fr) minmax(300px, 0.64fr);
  gap: clamp(22px, 2.8vw, 46px);
  align-items: stretch;
  min-height: min(660px, calc(100svh - var(--topbar-height) - 56px));
}

.media-plate {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 430px;
  background: var(--charcoal);
  box-shadow: var(--shadow);
}

.media-primary {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-stat-stack span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 860;
  text-transform: uppercase;
}

.booking-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(12px, 2vw, 24px) 0;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 13ch;
  font-size: clamp(2.65rem, 4vw, 4.95rem);
  line-height: 0.98;
  font-weight: 900;
}

h2 {
  margin: 0;
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  line-height: 1.1;
}

h3 {
  margin: 0;
  font-size: 1rem;
}

.booking-copy p:not(.eyebrow) {
  max-width: 48ch;
  margin: 18px 0 0;
  color: var(--steel);
  font-size: 1.08rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-actions .button {
  min-width: 150px;
}

.verified-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.hero-stat-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.hero-stat-stack div {
  display: grid;
  gap: 6px;
  min-height: 94px;
  align-content: space-between;
  padding: 13px;
  border: 1px solid rgba(217, 222, 231, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
}

.hero-stat-stack span {
  color: var(--muted);
}

.hero-stat-stack strong {
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.25;
}

.verified-strip span,
.pill,
.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--steel);
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 750;
}

.status-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--green);
}

.intake-form,
.quote-request-card,
.owner-modal-card,
.tool-form,
.panel,
.metric-tile,
.proof-item,
.service-card,
.signal-card,
.pipeline-pill,
.finance-stat,
.proof-library-card,
.dock-card {
  border: 1px solid rgba(217, 222, 231, 0.92);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(17, 20, 25, 0.07);
}

.intake-form {
  align-self: center;
  display: grid;
  gap: 14px;
  padding: clamp(18px, 2vw, 26px);
}

.quote-request-card,
.owner-modal-card {
  align-self: center;
  display: grid;
  gap: 18px;
  padding: clamp(20px, 2vw, 28px);
  box-shadow: 0 18px 48px rgba(17, 20, 25, 0.09);
}

.quote-request-card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 251, 253, 0.96)),
    var(--paper);
}

.quote-request-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(90deg, var(--brand), #f2a21b 46%, var(--charcoal));
}

.quote-request-card .form-head h2 {
  font-size: clamp(1.24rem, 1.65vw, 1.68rem);
  white-space: nowrap;
}

.quote-request-card .split-fields {
  grid-template-columns: 1fr;
}

.owner-home {
  gap: 18px;
  margin-top: 2px;
}

.owner-home-head {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 0.62fr);
  gap: clamp(18px, 2.4vw, 34px);
  align-items: stretch;
}

.owner-home-head > div:first-child {
  display: grid;
  align-content: center;
  gap: 16px;
  min-height: 430px;
  padding: clamp(22px, 3vw, 38px);
  border: 1px solid rgba(217, 222, 231, 0.92);
  border-radius: var(--radius);
  color: white;
  background:
    linear-gradient(135deg, rgba(17, 20, 25, 0.96), rgba(34, 46, 56, 0.96)),
    var(--charcoal);
  box-shadow: var(--shadow);
}

.owner-home-head .eyebrow {
  color: #ffd2cc;
}

.owner-home-head h1 {
  max-width: 12ch;
}

.owner-home-head p:not(.eyebrow) {
  max-width: 54ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.05rem;
  line-height: 1.55;
}

.login-form {
  display: grid;
  gap: 12px;
}

.public-contact-row .button {
  flex: 1 1 140px;
}

.form-head,
.panel-head,
.section-title,
.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.form-head {
  padding-bottom: 4px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--steel);
  font-size: 0.84rem;
  font-weight: 750;
}

.label-row {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.lucide {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
}

.quick-contact .lucide,
.button .lucide,
.owner-chip .lucide,
.pill .lucide,
.label-row .lucide,
.media-card span .lucide,
.review-card span .lucide {
  width: 16px;
  height: 16px;
}

.label-row .lucide {
  color: var(--brand);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--field);
  color: var(--ink);
  min-height: 44px;
  padding: 10px 12px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.5 7.5L10 12l4.5-4.5' stroke='%23455564' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 18px;
  padding-right: 42px;
}

input:hover,
select:hover,
textarea:hover {
  background-color: var(--field-hover);
}

textarea {
  min-height: 92px;
  resize: vertical;
  line-height: 1.45;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  background-color: var(--paper);
  box-shadow: var(--focus-ring);
}

.split-fields {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 12px;
}

.button,
.icon-button {
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
  font-weight: 820;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background-color 160ms ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  text-decoration: none;
}

.button.primary {
  border-color: var(--brand);
  background: var(--brand);
  color: white;
}

.button.primary:hover {
  border-color: var(--brand-dark);
  background: var(--brand-dark);
}

.button.danger {
  border-color: rgba(169, 35, 28, 0.28);
  color: var(--brand-dark);
  background: #fff1f0;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  padding: 0;
  font-size: 1.35rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.service-showcase {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

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

.service-card {
  position: relative;
  overflow: hidden;
  min-height: 232px;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 10px;
  align-content: space-between;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 251, 253, 0.96)),
    var(--paper);
}

.service-card::after {
  content: "";
  position: absolute;
  inset: auto 18px 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: rgba(228, 61, 48, 0.22);
}

.service-card:nth-child(2)::after {
  background: rgba(36, 87, 166, 0.24);
}

.service-card:nth-child(3)::after {
  background: rgba(14, 116, 144, 0.24);
}

.service-card:nth-child(4)::after {
  background: rgba(169, 103, 19, 0.26);
}

.service-card:nth-child(5)::after {
  background: rgba(18, 132, 95, 0.24);
}

.service-card:nth-child(6)::after {
  background: rgba(93, 75, 183, 0.24);
}

.service-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(228, 61, 48, 0.16);
  border-radius: 8px;
  color: var(--brand);
  background: #fff5f3;
}

.service-icon .lucide {
  width: 20px;
  height: 20px;
}

.service-card span,
.signal-card span,
.pipeline-pill span,
.finance-stat span,
.proof-library-card span,
.dock-card span {
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 850;
  text-transform: uppercase;
}

.service-card strong {
  font-size: 1.08rem;
  line-height: 1.2;
}

.service-card p,
.signal-card p,
.finance-stat p,
.proof-library-card p,
.dock-card p {
  margin: 0;
  color: var(--steel);
  font-size: 0.9rem;
  line-height: 1.42;
}

.service-card small {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 850;
}

.public-proof-section {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.owner-command-dock {
  display: grid;
  grid-template-columns: minmax(190px, 0.34fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  margin-top: 18px;
}

.dock-copy {
  display: grid;
  align-content: center;
  padding: 18px;
  border: 1px solid rgba(217, 222, 231, 0.92);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(17, 20, 25, 0.98), rgba(38, 50, 60, 0.98));
  color: white;
  box-shadow: var(--shadow-soft);
}

.dock-copy .eyebrow {
  color: #ffd2cc;
}

.dock-copy h2 {
  font-size: clamp(1.45rem, 2.4vw, 2.25rem);
}

.dock-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 12px;
}

.dock-card {
  display: grid;
  gap: 10px;
  min-height: 142px;
  align-content: space-between;
  padding: 16px;
}

.dock-card strong,
.signal-card strong,
.finance-stat strong,
.proof-library-card strong {
  font-size: clamp(1.25rem, 2vw, 1.85rem);
  line-height: 1;
}

.dock-card:nth-child(2) {
  border-color: rgba(36, 87, 166, 0.26);
}

.dock-card:nth-child(3) {
  border-color: rgba(18, 132, 95, 0.28);
}

.dock-card:nth-child(4) {
  border-color: rgba(169, 103, 19, 0.3);
}

.dock-card:nth-child(5) {
  border-color: rgba(93, 75, 183, 0.28);
}

.section-title.compact {
  align-items: end;
  padding: 0 0 16px;
}

.section-title.compact h2 {
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
}

.media-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  gap: 14px;
}

.media-card {
  display: grid;
  grid-template-rows: 210px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 10px 28px rgba(17, 20, 25, 0.07);
}

.media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--charcoal);
}

.media-card div {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.media-card span,
.media-card small,
.review-card span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.media-card span,
.review-card span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.media-card p,
.review-card p {
  margin: 0;
  color: var(--steel);
  font-size: 0.9rem;
  line-height: 1.45;
}

.media-card small {
  color: var(--brand-dark);
}

.review-catalog {
  display: grid;
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  gap: 14px;
}

.review-card {
  display: grid;
  gap: 12px;
  min-height: 220px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(17, 20, 25, 0.06);
}

.review-card.is-needed {
  border-color: rgba(169, 103, 19, 0.32);
  background: #fffaf0;
}

.review-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.review-card blockquote {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 820;
}

.review-card a {
  color: var(--blue);
  font-weight: 850;
  text-decoration: none;
}

.metric-tile {
  min-height: 128px;
  display: grid;
  align-content: space-between;
  gap: 10px;
  padding: 18px;
}

.metric-tile span,
.proof-item span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.metric-tile strong {
  display: block;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1;
}

.metric-tile small {
  color: var(--steel);
  font-weight: 700;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.command-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(240px, 0.9fr) minmax(240px, 0.9fr) minmax(240px, 0.9fr);
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

.panel {
  padding: clamp(17px, 2vw, 24px);
}

.panel-copy {
  color: var(--steel);
  line-height: 1.5;
}

.task-list,
.ledger-list,
.insight-list,
.route-plan,
.quote-menu,
.proof-stack {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.task-item,
.ledger-item,
.job-card,
.insight-card,
.route-stop,
.quote-row,
.proof-check {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfe;
}

.command-panel {
  background:
    linear-gradient(135deg, rgba(17, 20, 25, 0.96), rgba(28, 37, 46, 0.96)),
    var(--charcoal);
  color: white;
}

.command-panel .eyebrow,
.command-panel .panel-copy,
.command-panel .task-meta,
.command-panel .insight-card p {
  color: rgba(255, 255, 255, 0.72);
}

.command-panel .status-dot {
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.08);
}

.insight-card {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
}

.insight-card strong,
.route-stop strong,
.quote-row strong,
.proof-check strong {
  line-height: 1.25;
}

.insight-card p,
.route-stop p,
.quote-row p,
.proof-check p {
  margin: 0;
  color: var(--steel);
  font-size: 0.9rem;
  line-height: 1.45;
}

.insight-rank,
.route-time,
.proof-state {
  width: fit-content;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--steel);
  background: #eef2f7;
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.insight-rank {
  color: #ffd8d2;
  background: rgba(228, 61, 48, 0.22);
}

.route-stop {
  position: relative;
  padding-left: 42px;
}

.route-stop::before {
  content: attr(data-stop);
  position: absolute;
  left: 12px;
  top: 14px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--blue);
  font-size: 0.72rem;
  font-weight: 900;
}

.quote-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.quote-row p {
  grid-column: 1 / -1;
}

.quote-price {
  color: var(--green);
  font-weight: 900;
}

.proof-check.is-ready {
  border-color: rgba(18, 132, 95, 0.28);
  background: #f0fbf7;
}

.proof-check.is-needed {
  border-color: rgba(169, 103, 19, 0.28);
  background: #fffaf0;
}

.proof-state.is-ready {
  color: var(--green);
  background: #dff7ed;
}

.proof-state.is-needed {
  color: var(--gold);
  background: #fff1d6;
}

.task-item strong,
.ledger-item strong,
.job-card strong {
  line-height: 1.2;
}

.task-meta,
.job-meta,
.ledger-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

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

.mini-button {
  min-height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 10px;
  background: var(--paper);
  color: var(--steel);
  font-weight: 800;
}

.reserve-bars {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.reserve-bars.large {
  margin-top: 22px;
}

.reserve-row {
  display: grid;
  grid-template-columns: 112px minmax(110px, 1fr) 92px;
  gap: 12px;
  align-items: center;
}

.reserve-track {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: #e9edf3;
}

.reserve-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
}

.reserve-row:nth-child(2) .reserve-fill {
  background: var(--blue);
}

.reserve-row:nth-child(3) .reserve-fill {
  background: var(--gold);
}

.reserve-row:nth-child(4) .reserve-fill {
  background: var(--green);
}

.reserve-row span,
.reserve-row strong {
  font-size: 0.84rem;
}

.reserve-row span {
  color: var(--steel);
  font-weight: 760;
}

.reserve-row strong {
  text-align: right;
}

.page-band {
  display: grid;
  gap: 22px;
}

.section-title {
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}

.section-title h1 {
  max-width: 14ch;
  font-size: clamp(2.25rem, 4vw, 4.5rem);
}

.section-title p:last-child {
  max-width: 62ch;
  margin: 0;
  color: var(--steel);
  line-height: 1.5;
}

.tool-form {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 12px;
  align-items: end;
  padding: 16px;
}

.tool-form.wide {
  grid-template-columns: 1.2fr 1.2fr 0.8fr 0.7fr 0.8fr auto;
}

.tool-form.stack {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.tool-form h2 {
  margin-bottom: 4px;
}

.table-toolbar {
  align-items: end;
}

.signal-grid,
.finance-snapshot,
.proof-library {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 14px;
}

.signal-card,
.finance-stat,
.proof-library-card {
  display: grid;
  gap: 10px;
  min-height: 136px;
  align-content: space-between;
  padding: 16px;
}

.signal-card strong,
.finance-stat strong,
.proof-library-card strong {
  color: var(--ink);
}

.signal-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf4;
}

.signal-meter-fill {
  height: 100%;
  width: var(--meter, 0%);
  border-radius: inherit;
  background: var(--blue);
}

.signal-card:nth-child(2) .signal-meter-fill {
  background: var(--brand);
}

.signal-card:nth-child(3) .signal-meter-fill {
  background: var(--green);
}

.signal-card:nth-child(4) .signal-meter-fill {
  background: var(--gold);
}

.search-box {
  width: min(480px, 100%);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.table-wrap.compact {
  margin-top: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.77rem;
  font-weight: 850;
  text-transform: uppercase;
  background: #f8fafc;
}

td {
  color: var(--steel);
  font-size: 0.92rem;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.customer-name,
.money-cell {
  color: var(--ink);
  font-weight: 850;
}

.job-board {
  display: grid;
  grid-template-columns: repeat(6, minmax(210px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.pipeline-ribbon {
  display: grid;
  grid-template-columns: repeat(6, minmax(150px, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.pipeline-pill {
  min-height: 118px;
  display: grid;
  gap: 8px;
  align-content: space-between;
  padding: 14px;
}

.pipeline-pill strong {
  font-size: 1.35rem;
  line-height: 1;
}

.pipeline-bar {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf4;
}

.pipeline-bar-fill {
  height: 100%;
  width: var(--meter, 0%);
  border-radius: inherit;
  background: var(--brand);
}

.pipeline-pill:nth-child(2) .pipeline-bar-fill {
  background: var(--blue);
}

.pipeline-pill:nth-child(3) .pipeline-bar-fill {
  background: var(--green);
}

.pipeline-pill:nth-child(4) .pipeline-bar-fill {
  background: var(--cyan);
}

.pipeline-pill:nth-child(5) .pipeline-bar-fill {
  background: var(--gold);
}

.pipeline-pill:nth-child(6) .pipeline-bar-fill {
  background: var(--violet);
}

.job-column {
  min-height: 340px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
}

.job-column h2 {
  position: sticky;
  top: var(--topbar-height);
  z-index: 1;
  padding: 13px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
  font-size: 0.93rem;
}

.job-column-body {
  display: grid;
  gap: 10px;
  padding: 10px;
}

.finance-grid,
.data-grid,
.proof-grid {
  display: grid;
  gap: 18px;
}

.finance-grid {
  grid-template-columns: minmax(280px, 0.7fr) minmax(360px, 1fr);
}

.finance-panel {
  min-height: 100%;
}

.reserve-settings {
  display: grid;
  grid-template-columns: repeat(4, minmax(100px, 1fr)) auto;
  gap: 12px;
  align-items: end;
  margin-top: 18px;
}

.proof-grid {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.proof-library {
  margin-top: 2px;
}

.proof-library-card {
  min-height: 150px;
}

.proof-library-card.is-needed,
.finance-stat.is-warning {
  border-color: rgba(169, 103, 19, 0.32);
  background: #fffaf0;
}

.finance-stat.is-good {
  border-color: rgba(18, 132, 95, 0.26);
  background: #f0fbf7;
}

.proof-item {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.proof-item strong {
  font-size: 1.12rem;
}

.proof-item p {
  margin: 0;
  color: var(--steel);
  line-height: 1.5;
}

.proof-item.warning {
  border-color: rgba(169, 103, 19, 0.42);
  background: #fffaf0;
}

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

.session-card {
  display: grid;
  gap: 6px;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid rgba(18, 132, 95, 0.24);
  border-radius: var(--radius);
  background: #f0fbf7;
}

.session-card span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.session-card strong {
  color: var(--green);
}

.danger-zone {
  border-color: rgba(169, 35, 28, 0.22);
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  max-width: min(360px, calc(100vw - 44px));
  padding: 13px 15px;
  border-radius: var(--radius);
  color: white;
  background: var(--charcoal);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.owner-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 20px;
}

body.is-owner-login-open .owner-modal {
  display: grid;
}

.owner-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 20, 25, 0.48);
  backdrop-filter: blur(10px);
}

.owner-modal-card {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  background: var(--paper);
}

.owner-modal-card .icon-button {
  font-size: 1.15rem;
}

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

.empty-state,
.not-found {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.empty-state {
  text-align: center;
  background: var(--paper);
}

.empty-state h1 {
  max-width: 16ch;
  margin-bottom: 22px;
}

@media (max-width: 1180px) {
  body.is-guest .topbar,
  .topbar {
    grid-template-columns: 1fr;
  }

  .view-tabs,
  .quick-contact {
    justify-self: start;
  }

  .booking-surface {
    grid-template-columns: minmax(240px, 0.8fr) minmax(320px, 1fr);
  }

  .quote-request-card {
    grid-column: 1 / -1;
  }

  .owner-home-head {
    grid-template-columns: 1fr;
  }

  .summary-grid,
  .command-grid,
  .owner-command-dock,
  .proof-grid,
  .data-grid,
  .signal-grid,
  .finance-snapshot,
  .proof-library,
  .media-gallery,
  .review-catalog {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

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

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

  .tool-form,
  .tool-form.wide,
  .reserve-settings {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }
}

@media (max-width: 820px) {
  :root {
    --topbar-height: 112px;
  }

  .topbar {
    position: sticky;
    gap: 10px;
    padding: 12px 16px;
  }

  .brand-lockup {
    width: fit-content;
  }

  .brand-logo-shell {
    width: 170px;
    height: 76px;
  }

  .quick-contact {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    justify-self: stretch;
  }

  .quick-contact a,
  .owner-chip {
    width: auto;
    min-width: 0;
    min-height: 38px;
    padding: 0 8px;
    font-size: 0.84rem;
  }

  .view-tabs {
    width: 100%;
  }

  .booking-surface,
  .owner-home-head,
  .two-column,
  .command-grid,
  .owner-command-dock,
  .finance-grid,
  .summary-grid,
  .proof-grid,
  .data-grid,
  .signal-grid,
  .finance-snapshot,
  .proof-library,
  .media-gallery,
  .review-catalog {
    grid-template-columns: 1fr;
  }

  .booking-surface {
    min-height: 0;
  }

  .hero-media {
    order: 1;
  }

  .booking-copy {
    order: 2;
  }

  .quote-request-card {
    order: 3;
  }

  .media-plate,
  .media-primary {
    min-height: 300px;
  }

  .booking-copy {
    padding: 2px 0 4px;
  }

  .booking-copy p:not(.eyebrow) {
    font-size: 1rem;
  }

  .section-title,
  .table-toolbar,
  .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-head {
    align-items: center;
  }

  .quote-request-card .form-head {
    flex-direction: row;
  }

  .tool-form,
  .tool-form.wide,
  .reserve-settings,
  .split-fields {
    grid-template-columns: 1fr;
  }

  .reserve-row {
    grid-template-columns: 92px minmax(82px, 1fr) 82px;
  }

  .job-board {
    grid-template-columns: repeat(6, minmax(250px, 78vw));
  }

  .pipeline-ribbon {
    grid-template-columns: repeat(6, minmax(180px, 62vw));
  }

  .dock-grid {
    grid-template-columns: 1fr;
  }

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

  .service-grid {
    grid-template-columns: 1fr;
  }

  .media-card {
    grid-template-rows: 240px 1fr;
  }
}

@media (max-width: 520px) {
  .workbench,
  .page-band {
    padding: 18px 16px;
  }

  .brand-lockup {
    align-items: center;
  }

  .brand-logo-shell {
    width: 148px;
    height: 66px;
  }

  h1 {
    max-width: 11ch;
    font-size: clamp(2.25rem, 10.5vw, 3rem);
  }

  .section-title h1 {
    font-size: clamp(2rem, 13vw, 3rem);
  }

  .hero-actions .button,
  .button-row .button {
    width: 100%;
  }

  .quick-contact a,
  .owner-chip {
    width: auto;
    gap: 6px;
    padding: 0 7px;
    font-size: 0.84rem;
  }

  .quick-contact .lucide,
  .owner-chip .lucide {
    width: 14px;
    height: 14px;
  }

  .media-plate,
  .media-primary {
    min-height: 270px;
  }

  .inline-actions .mini-button {
    flex: 1 1 auto;
  }
}
