@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/fonts/barlow-condensed-latin-800-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-latin-400-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-latin-500-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-latin-600-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-latin-700-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --carbon: #17191c;
  --carbon-soft: #222529;
  --carbon-muted: #30343a;
  --bone: #f4efe6;
  --bone-light: #fbf8f2;
  --signal: #ff5a1f;
  --signal-deep: #c83c0c;
  --signal-pale: #fff0e9;
  --ink: #17191c;
  --forest: #17191c;
  --pine: #222529;
  --pine-soft: #30343a;
  --mint: #ff5a1f;
  --mint-deep: #c83c0c;
  --mint-pale: #fff0e9;
  --ivory: #f4efe6;
  --paper: #fbf8f2;
  --white: #ffffff;
  --gold: #c83c0c;
  --gold-pale: #fff0e9;
  --text: #202225;
  --muted: #6d706d;
  --muted-light: #aeb1b0;
  --line: #d8d1c6;
  --line-dark: rgba(255, 255, 255, 0.1);
  --danger: #a43d32;
  --danger-pale: #fff0ed;
  --success: #1d7a55;
  --success-pale: #e9f6ef;
  --warning: #9b5b0e;
  --warning-pale: #fff5e6;
  --shadow-sm: 0 1px 2px rgba(23, 25, 28, 0.06), 0 9px 24px rgba(23, 25, 28, 0.05);
  --shadow-md: 0 20px 55px rgba(23, 25, 28, 0.14);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --sidebar-width: 280px;
  --ease: 160ms ease;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--ivory);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 88% 3%, rgba(95, 240, 187, 0.08), transparent 24rem),
    var(--ivory);
}

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

button {
  color: inherit;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(14, 143, 104, 0.28);
  outline-offset: 2px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
.brand-lockup strong,
.quote-title strong {
  letter-spacing: -0.035em;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.1;
}

h2 {
  margin-bottom: 0.45rem;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.08;
}

h3 {
  margin-bottom: 0.3rem;
  font-size: 1.05rem;
  line-height: 1.2;
}

p {
  line-height: 1.6;
}

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

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  padding: 24px 18px 20px;
  color: #edf7f3;
  background:
    radial-gradient(circle at 30% 0%, rgba(95, 240, 187, 0.11), transparent 17rem),
    linear-gradient(180deg, var(--pine) 0%, var(--forest) 68%);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 6px 26px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.brand-mark img {
  width: 34px;
  height: 34px;
}

.brand-lockup strong {
  display: block;
  font-size: 1.02rem;
}

.brand-lockup small {
  display: block;
  margin-top: 3px;
  color: var(--muted-light);
  font-size: 0.69rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.primary-nav {
  display: grid;
  gap: 6px;
}

.nav-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  color: var(--muted-light);
  font-size: 0.92rem;
  font-weight: 650;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: color var(--ease), background var(--ease), border-color var(--ease);
}

.nav-item:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

.nav-item.is-active {
  color: var(--mint);
  background: rgba(95, 240, 187, 0.09);
  border-color: rgba(95, 240, 187, 0.14);
}

.nav-icon {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: currentColor;
  font-size: 1.15rem;
}

.sidebar-card {
  margin-top: auto;
  padding: 16px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line-dark);
  border-radius: 14px;
}

.sidebar-card p {
  margin: 8px 0 0;
  color: #d6e5df;
  font-size: 0.82rem;
  line-height: 1.55;
}

.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 8px 0;
  color: #7fa198;
  font-size: 0.71rem;
  font-weight: 650;
}

.trust-dot {
  width: 7px;
  height: 7px;
  background: var(--mint);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(95, 240, 187, 0.09);
}

.workspace {
  grid-column: 2;
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(22px, 4vw, 54px);
  background: rgba(244, 241, 233, 0.9);
  border-bottom: 1px solid rgba(5, 32, 28, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.topbar-kicker {
  display: none;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

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

.demo-pill {
  padding: 7px 10px;
  color: #6d562f;
  font-size: 0.69rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--gold-pale);
  border: 1px solid rgba(181, 138, 74, 0.25);
  border-radius: 999px;
}

#main-content {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 34px clamp(22px, 4vw, 54px) 60px;
}

#main-content:focus {
  outline: none;
}

.view[hidden] {
  display: none !important;
}

.eyebrow {
  display: inline-block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow-mint {
  color: var(--mint);
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 15px;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  background: var(--white);
  border: 1px solid transparent;
  border-radius: 11px;
  cursor: pointer;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease), border-color var(--ease);
}

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

.button-primary {
  color: #f7fffc;
  background: var(--pine);
  box-shadow: 0 7px 18px rgba(5, 32, 28, 0.13);
}

.button-primary:hover:not(:disabled) {
  background: #0c4036;
  box-shadow: 0 10px 24px rgba(5, 32, 28, 0.17);
}

.button-secondary {
  color: var(--text);
  background: var(--white);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.button-secondary:hover:not(:disabled) {
  border-color: #bdcec6;
}

.button-mint {
  color: var(--forest);
  background: var(--mint);
  box-shadow: 0 10px 28px rgba(95, 240, 187, 0.16);
}

.button-mint:hover:not(:disabled) {
  background: #76f5c5;
}

.button-mint-dark {
  color: var(--forest);
  background: linear-gradient(135deg, var(--mint), #47d8a4);
  box-shadow: 0 9px 22px rgba(14, 143, 104, 0.15);
}

.button-quiet-on-dark {
  color: #d9e8e2;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.button-smart {
  color: #063c31;
  background: var(--mint-pale);
  border-color: rgba(14, 143, 104, 0.16);
}

.button-large {
  min-height: 48px;
  padding-inline: 20px;
}

.button-small {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 0.76rem;
}

.button-full {
  width: 100%;
}

.text-button,
.back-button {
  padding: 6px;
  color: var(--success);
  font-size: 0.82rem;
  font-weight: 750;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.text-button:hover,
.back-button:hover {
  color: var(--forest);
}

.text-button.centered {
  display: block;
  margin: 10px auto 0;
}

.hero-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  min-height: 360px;
  overflow: hidden;
  color: #edf7f3;
  background:
    radial-gradient(circle at 82% 23%, rgba(95, 240, 187, 0.16), transparent 20rem),
    linear-gradient(135deg, #05201c 0%, #0a3028 68%, #0c3b31 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.hero-card::after {
  position: absolute;
  right: -60px;
  bottom: -110px;
  width: 360px;
  height: 360px;
  content: "";
  border: 1px solid rgba(95, 240, 187, 0.09);
  border-radius: 46% 54% 48% 52%;
  transform: rotate(18deg);
}

.hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: clamp(34px, 5vw, 62px);
}

.hero-copy h2 {
  max-width: 680px;
  margin-top: 14px;
  color: #f5fbf8;
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 0.99;
}

.hero-copy p {
  max-width: 630px;
  margin: 18px 0 26px;
  color: #b8cec6;
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
}

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

.hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 38px 42px 38px 10px;
}

.scope-flow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.flow-card {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 10px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13px;
  backdrop-filter: blur(10px);
}

.flow-card-scope {
  background: rgba(95, 240, 187, 0.11);
  border-color: rgba(95, 240, 187, 0.18);
}

.flow-card small,
.flow-card strong {
  display: block;
}

.flow-card small {
  margin-bottom: 2px;
  color: #8fada3;
  font-size: 0.64rem;
  font-weight: 650;
}

.flow-card strong {
  overflow: hidden;
  color: #effaf6;
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flow-icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  color: var(--mint);
  background: rgba(95, 240, 187, 0.09);
  border: 1px solid rgba(95, 240, 187, 0.12);
  border-radius: 9px;
}

.flow-arrow {
  color: #71968a;
  font-weight: 800;
}

.hero-total {
  padding: 24px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 17px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  transform: rotate(-1.2deg);
}

.hero-total span,
.hero-total strong,
.hero-total small {
  display: block;
}

.hero-total span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.hero-total strong {
  margin: 5px 0 7px;
  color: var(--forest);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.055em;
}

.hero-total small {
  color: var(--muted);
  font-size: 0.72rem;
}

.setup-alert {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 14px 16px;
  background: #fffaf0;
  border: 1px solid #ead8ba;
  border-radius: 14px;
}

.setup-alert[hidden] {
  display: none;
}

.setup-alert strong {
  display: block;
  font-size: 0.88rem;
}

.setup-alert p {
  margin: 3px 0 0;
  color: #75644a;
  font-size: 0.78rem;
  line-height: 1.4;
}

.setup-icon {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  color: #7e5a22;
  font-weight: 850;
  background: var(--gold-pale);
  border-radius: 9px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.stat-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  background: rgba(255, 253, 250, 0.9);
  border: 1px solid rgba(5, 32, 28, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.stat-card-accent {
  background: linear-gradient(135deg, #effbf6, #fffdfa);
}

.stat-card-accent::after {
  position: absolute;
  top: -22px;
  right: -20px;
  width: 80px;
  height: 80px;
  content: "";
  background: rgba(95, 240, 187, 0.18);
  border-radius: 50%;
}

.stat-label,
.stat-card strong,
.stat-card small {
  display: block;
}

.stat-label {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.stat-card strong {
  margin: 8px 0 3px;
  color: var(--forest);
  font-size: 1.75rem;
  letter-spacing: -0.045em;
}

.stat-card small {
  color: #7c8f89;
  font-size: 0.72rem;
}

.panel,
.form-card {
  background: rgba(255, 253, 250, 0.94);
  border: 1px solid rgba(5, 32, 28, 0.09);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.recent-panel {
  margin-top: 18px;
  padding: 24px;
}

.panel-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.panel-heading h2 {
  margin-top: 4px;
  font-size: 1.35rem;
}

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

.data-table,
.line-items-table,
.quote-items table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 14px 12px;
  font-size: 0.81rem;
  text-align: left;
  border-bottom: 1px solid #e6ebe8;
}

.data-table th {
  padding-top: 6px;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.data-table tbody tr {
  transition: background var(--ease);
}

.data-table tbody tr:hover {
  background: #f8faf7;
}

.customer-cell strong,
.customer-cell small {
  display: block;
}

.customer-cell small {
  max-width: 360px;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  color: #725a36;
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--gold-pale);
  border-radius: 999px;
}

.status-pill::before {
  width: 6px;
  height: 6px;
  content: "";
  background: currentColor;
  border-radius: 50%;
}

.status-approved {
  color: var(--success);
  background: var(--mint-pale);
}

.status-ready {
  color: #315b86;
  background: #e7f1fb;
}

.status-draft {
  color: #80612e;
  background: var(--gold-pale);
}

.open-job {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--success);
  background: #eff8f4;
  border: 1px solid #dcece5;
  border-radius: 9px;
  cursor: pointer;
}

.empty-state {
  padding: 42px 20px 30px;
  text-align: center;
}

.empty-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin: 0 auto 13px;
  place-items: center;
  color: var(--success);
  font-size: 1.4rem;
  background: var(--mint-pale);
  border-radius: 14px;
}

.empty-state p {
  max-width: 440px;
  margin: 7px auto 17px;
  color: var(--muted);
  font-size: 0.85rem;
}

.builder-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 318px;
  gap: 22px;
  align-items: start;
}

.builder-main {
  min-width: 0;
}

.builder-intro,
.page-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.builder-intro h2,
.page-intro h2 {
  margin-top: 7px;
}

.builder-intro p,
.page-intro p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.step-badge {
  flex: 0 0 auto;
  padding: 8px 11px;
  color: var(--success);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--mint-pale);
  border: 1px solid rgba(14, 143, 104, 0.14);
  border-radius: 999px;
}

.form-card {
  margin-bottom: 14px;
  padding: 24px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.section-heading-action {
  justify-content: space-between;
}

.section-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.section-number {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  color: var(--success);
  font-size: 0.67rem;
  font-weight: 850;
  background: var(--mint-pale);
  border: 1px solid rgba(14, 143, 104, 0.13);
  border-radius: 10px;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.form-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

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

.field > span:first-child {
  color: #38534c;
  font-size: 0.72rem;
  font-weight: 750;
}

.field b {
  color: var(--danger);
}

input,
select,
textarea {
  width: 100%;
  color: var(--text);
  background: var(--white);
  border: 1px solid #d3ded8;
  border-radius: 10px;
  transition: border-color var(--ease), box-shadow var(--ease);
}

input,
select {
  min-height: 43px;
  padding: 9px 11px;
}

textarea {
  min-height: 104px;
  padding: 12px;
  line-height: 1.5;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #9aaa9f;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #bdcec6;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--mint-deep);
  outline: none;
  box-shadow: 0 0 0 3px rgba(14, 143, 104, 0.09);
}

.input-suffix {
  position: relative;
}

.input-suffix input {
  padding-right: 55px;
}

.input-suffix span {
  position: absolute;
  top: 50%;
  right: 12px;
  color: var(--muted);
  font-size: 0.72rem;
  transform: translateY(-50%);
}

.voice-capture {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.record-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 750;
  background: #eff8f4;
  border: 1px solid #d3e9df;
  border-radius: 10px;
  cursor: pointer;
}

.record-button.is-recording {
  color: #7d2c20;
  background: var(--danger-pale);
  border-color: #edc7bc;
}

.record-dot {
  width: 9px;
  height: 9px;
  background: var(--danger);
  border-radius: 50%;
}

.record-button.is-recording .record-dot {
  animation: pulse 1.15s infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(168, 71, 53, 0.22);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(168, 71, 53, 0);
  }
}

.voice-support {
  color: var(--muted);
  font-size: 0.7rem;
}

.photo-capture {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding: 16px;
  background: linear-gradient(145deg, #f1f8f5, #fbfdfc);
  border: 1px solid #cfe0d8;
  border-radius: 14px;
}

.photo-capture-heading {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
}

.camera-icon {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--white);
  font-size: 0;
  background: var(--green-900);
  border-radius: 11px;
}

.camera-icon::before {
  width: 18px;
  height: 12px;
  content: "";
  border: 2px solid currentColor;
  border-radius: 4px;
}

.camera-icon::after {
  position: absolute;
  width: 6px;
  height: 6px;
  content: "";
  border: 2px solid currentColor;
  border-radius: 50%;
}

.photo-capture strong {
  display: block;
  font-size: 0.88rem;
}

.photo-capture p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.4;
}

.photo-count {
  padding: 5px 8px;
  color: var(--success);
  font-size: 0.65rem;
  font-weight: 850;
  background: #e0eee8;
  border-radius: 999px;
}

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

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

.photo-capture .photo-device-note {
  margin: -2px 1px 0;
  font-size: 0.67rem;
}

.upload-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.photo-empty {
  margin-top: 11px;
  padding: 12px;
  color: var(--muted);
  font-size: 0.7rem;
  text-align: center;
  background: #fafcfb;
  border: 1px dashed #cfd9d4;
  border-radius: 10px;
}

.photo-empty[hidden] {
  display: none;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.photo-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e9efeb;
  border: 1px solid #d7e1dc;
  border-radius: 11px;
}

.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  color: var(--white);
  font-weight: 850;
  background: rgba(5, 32, 28, 0.77);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.suggestion-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: -3px 0 18px;
  padding: 13px;
  background: linear-gradient(135deg, #effbf6, #f9fdfb);
  border: 1px solid #cfe8dd;
  border-radius: 12px;
}

.suggestion-box[hidden] {
  display: none;
}

.suggestion-box > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.suggestion-box strong {
  display: block;
  font-size: 0.8rem;
}

.suggestion-box p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.35;
}

.suggestion-icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  color: var(--success);
  background: var(--mint-pale);
  border-radius: 9px;
}

.add-service-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
}

.line-items-wrap {
  overflow-x: auto;
  border: 1px solid #e0e8e4;
  border-radius: 12px;
}

.line-items-table {
  min-width: 650px;
}

.line-items-table th,
.line-items-table td {
  padding: 10px;
  font-size: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e7ece9;
}

.line-items-table th {
  color: var(--muted);
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: #f7f9f7;
}

.line-items-table tbody tr:last-child td {
  border-bottom: 0;
}

.line-items-table .item-description {
  min-width: 250px;
}

.line-items-table input {
  min-height: 37px;
  padding: 7px 8px;
}

.line-items-table .quantity-input {
  width: 78px;
}

.line-items-table .price-input {
  width: 100px;
}

.line-total {
  min-width: 88px;
  color: var(--forest);
  font-weight: 800;
}

.remove-line {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--danger);
  background: var(--danger-pale);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.mini-empty {
  padding: 24px;
  color: var(--muted);
  font-size: 0.76rem;
  text-align: center;
  background: #fafbf9;
}

.builder-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 6px;
}

.builder-summary {
  position: sticky;
  top: 108px;
}

.summary-card {
  overflow: hidden;
  padding: 22px;
  background: var(--white);
  border: 1px solid rgba(5, 32, 28, 0.1);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
}

.summary-card::before {
  display: block;
  height: 4px;
  margin: -22px -22px 20px;
  content: "";
  background: linear-gradient(90deg, var(--mint), var(--mint-deep));
}

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

.summary-customer {
  padding: 18px 0;
  border-bottom: 1px solid #e5ebe8;
}

.summary-customer strong,
.summary-customer span {
  display: block;
}

.summary-customer strong {
  font-size: 0.94rem;
}

.summary-customer span {
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.71rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-totals {
  margin: 15px 0;
}

.summary-totals > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
}

.summary-totals dt {
  color: var(--muted);
  font-size: 0.74rem;
}

.summary-totals dd {
  margin: 0;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 750;
}

.summary-totals .summary-total {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid #dce5e0;
}

.summary-totals .summary-total dt {
  color: var(--forest);
  font-weight: 800;
}

.summary-totals .summary-total dd {
  color: var(--forest);
  font-size: 1.5rem;
  letter-spacing: -0.04em;
}

.summary-deposit {
  color: var(--success);
}

.control-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 16px;
  padding: 11px;
  color: #416159;
  background: #eff8f4;
  border: 1px solid #dcece5;
  border-radius: 10px;
}

.control-note span {
  color: var(--success);
  font-weight: 850;
}

.control-note p {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.5;
}

.verification-chip {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  color: #775c31;
  font-size: 0.71rem;
  font-weight: 750;
  background: var(--gold-pale);
  border: 1px solid #ead8ba;
  border-radius: 999px;
}

.verification-chip.is-confirmed {
  color: var(--success);
  background: var(--mint-pale);
  border-color: #cde8dc;
}

.verification-dot {
  width: 7px;
  height: 7px;
  background: currentColor;
  border-radius: 50%;
}

.settings-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  gap: 18px;
  align-items: start;
}

.settings-panel,
.price-panel {
  padding: 24px;
}

.settings-panel .button {
  margin-top: 18px;
}

.pricebook-panel-heading {
  align-items: center;
}

.pricebook-list {
  display: grid;
  gap: 9px;
}

.price-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(90px, 0.7fr) 110px 34px;
  gap: 9px;
  align-items: center;
  padding: 10px;
  background: #fafbf9;
  border: 1px solid #e1e8e4;
  border-radius: 11px;
}

.price-row input {
  min-height: 38px;
  padding: 7px 9px;
  font-size: 0.76rem;
}

.price-input-wrap {
  position: relative;
}

.price-input-wrap span {
  position: absolute;
  top: 50%;
  left: 9px;
  color: var(--muted);
  font-size: 0.73rem;
  transform: translateY(-50%);
}

.price-input-wrap input {
  padding-left: 21px;
}

.confirmation-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 15px;
  color: #edf7f3;
  background: var(--pine);
  border-radius: 13px;
}

.confirmation-panel strong {
  display: block;
  font-size: 0.82rem;
}

.confirmation-panel p {
  margin: 3px 0 0;
  color: #a8c1b8;
  font-size: 0.68rem;
  line-height: 1.45;
}

.quote-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.quote-toolbar-actions {
  display: flex;
  gap: 9px;
}

.quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 22px;
  align-items: start;
}

.quote-document {
  min-width: 0;
  padding: clamp(30px, 5vw, 58px);
  color: #17312b;
  background: var(--white);
  border: 1px solid rgba(5, 32, 28, 0.09);
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(5, 32, 28, 0.1);
}

.quote-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 2px solid var(--forest);
}

.quote-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.quote-brand img {
  width: 42px;
  height: 42px;
}

.quote-brand span,
.quote-brand small {
  display: block;
}

.quote-brand span {
  color: var(--forest);
  font-size: 0.92rem;
  font-weight: 850;
}

.quote-brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.63rem;
}

.quote-title {
  text-align: right;
}

.quote-title span,
.quote-title strong {
  display: block;
}

.quote-title span {
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.quote-title strong {
  margin-top: 5px;
  color: var(--forest);
  font-size: 1.2rem;
}

.quote-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  padding: 28px 0;
}

.quote-meta > div:last-child {
  padding-left: 28px;
  border-left: 1px solid #dfe6e2;
}

.quote-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.61rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.quote-meta strong {
  display: block;
  margin-bottom: 5px;
  color: var(--forest);
  font-size: 0.92rem;
}

.quote-meta p {
  margin: 2px 0;
  color: #536962;
  font-size: 0.7rem;
  line-height: 1.45;
}

.quote-meta p b {
  display: inline-block;
  min-width: 64px;
  color: #425a52;
  font-weight: 750;
}

.quote-scope-summary {
  padding: 15px;
  background: #f2f8f5;
  border-left: 3px solid var(--mint-deep);
  border-radius: 4px 9px 9px 4px;
}

.quote-scope-summary p,
.quote-clarifications p {
  margin: 0;
  color: #435c54;
  font-size: 0.7rem;
  line-height: 1.6;
  white-space: pre-line;
}

.quote-items {
  margin-top: 26px;
}

.quote-items th,
.quote-items td {
  padding: 11px 9px;
  font-size: 0.68rem;
  text-align: left;
  border-bottom: 1px solid #e2e8e4;
}

.quote-items th {
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #f7f9f7;
}

.quote-items th:nth-child(n + 2),
.quote-items td:nth-child(n + 2) {
  text-align: right;
}

.quote-items td:first-child {
  color: var(--forest);
  font-weight: 700;
}

.quote-financials {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 26px;
  align-items: start;
  margin-top: 20px;
}

.quote-financials > dl {
  grid-column: 2;
  margin: 0;
}

.quote-financials > dl > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 6px 0;
}

.quote-financials dt {
  color: var(--muted);
  font-size: 0.66rem;
}

.quote-financials dd {
  margin: 0;
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 750;
}

.quote-financials .quote-grand-total {
  margin: 7px 0;
  padding: 11px 0;
  border-top: 1px solid #cdd9d3;
  border-bottom: 1px solid #cdd9d3;
}

.quote-grand-total dt,
.quote-grand-total dd {
  color: var(--forest);
  font-weight: 850;
}

.quote-grand-total dd {
  font-size: 1rem;
}

.quote-photo-area {
  min-width: 0;
}

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

.quote-photos img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}

.quote-clarifications {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid #dde5e1;
}

.quote-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 34px;
  padding-top: 15px;
  color: var(--muted);
  font-size: 0.57rem;
  border-top: 1px solid #dde5e1;
}

.quote-footer strong,
.quote-footer span {
  display: block;
}

.quote-footer strong {
  margin-bottom: 2px;
  color: var(--text);
}

.approval-card {
  position: sticky;
  top: 108px;
  padding: 22px;
  background: var(--pine);
  color: #edf7f3;
  border-radius: 17px;
  box-shadow: var(--shadow-md);
}

.approval-card .eyebrow {
  color: var(--mint);
}

.approval-card h2 {
  margin-top: 9px;
  font-size: 1.55rem;
}

.approval-card > p {
  margin: 10px 0 18px;
  color: #a8c1b8;
  font-size: 0.75rem;
  line-height: 1.6;
}

.approval-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  padding: 11px;
  background: rgba(181, 138, 74, 0.13);
  border: 1px solid rgba(181, 138, 74, 0.25);
  border-radius: 10px;
}

.approval-status.is-approved {
  background: rgba(95, 240, 187, 0.1);
  border-color: rgba(95, 240, 187, 0.18);
}

.approval-status-icon {
  display: grid;
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  place-items: center;
  color: #f1c879;
  font-size: 0.78rem;
  font-weight: 850;
  background: rgba(181, 138, 74, 0.13);
  border-radius: 8px;
}

.approval-status.is-approved .approval-status-icon {
  color: var(--mint);
  background: rgba(95, 240, 187, 0.1);
}

.approval-status strong,
.approval-status span {
  display: block;
}

.approval-status strong {
  font-size: 0.74rem;
}

.approval-status span {
  margin-top: 2px;
  color: #a8c1b8;
  font-size: 0.63rem;
}

.approval-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0 0 15px;
  color: #dce9e4;
  font-size: 0.7rem;
  line-height: 1.5;
  cursor: pointer;
}

.approval-check input {
  width: 17px;
  height: 17px;
  min-height: 0;
  flex: 0 0 17px;
  margin: 2px 0 0;
  accent-color: var(--mint);
}

.approval-card .text-button {
  color: #9fc0b5;
}

.approval-divider {
  height: 1px;
  margin: 18px 0;
  background: rgba(255, 255, 255, 0.1);
}

.safety-list {
  display: grid;
  gap: 8px;
  color: #9fc0b5;
  font-size: 0.66rem;
}

.safety-list div {
  display: flex;
  align-items: center;
  gap: 7px;
}

.safety-list span {
  color: var(--mint);
  font-weight: 850;
}

.mobile-nav {
  display: none;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: min(390px, calc(100vw - 32px));
  padding: 12px 15px;
  color: #f4fbf8;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--forest);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  box-shadow: 0 16px 42px rgba(5, 32, 28, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity var(--ease), transform var(--ease);
}

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

.toast.is-error .toast-icon {
  color: #ffad98;
}

.toast-icon {
  color: var(--mint);
  font-weight: 850;
}

@media (max-width: 1120px) {
  .hero-card {
    grid-template-columns: 1fr 360px;
  }

  .hero-copy {
    padding: 42px;
  }

  .hero-visual {
    padding-right: 30px;
  }

  .builder-layout,
  .quote-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

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

@media (max-width: 920px) {
  :root {
    --sidebar-width: 218px;
  }

  .sidebar {
    padding-inline: 12px;
  }

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

  .hero-visual {
    padding: 0 42px 42px;
  }

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

  .builder-layout,
  .quote-layout {
    grid-template-columns: 1fr;
  }

  .builder-summary,
  .approval-card {
    position: static;
    grid-row: auto;
  }

  .builder-summary {
    display: none;
  }

  .approval-card {
    max-width: 620px;
  }
}

@media (max-width: 720px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .workspace {
    width: 100%;
  }

  .topbar {
    min-height: 72px;
    padding: 11px 16px;
  }

  .topbar-kicker {
    display: block;
  }

  .topbar h1 {
    font-size: 1.25rem;
  }

  .demo-pill {
    display: none;
  }

  .topbar-new {
    width: 42px;
    min-width: 42px;
    padding: 0;
    font-size: 0;
    border-radius: 12px;
  }

  .topbar-new span {
    font-size: 1.2rem;
  }

  #main-content {
    padding: 18px 14px calc(94px + env(safe-area-inset-bottom));
  }

  .hero-card {
    min-height: 0;
    border-radius: 20px;
  }

  .hero-copy {
    padding: 31px 24px;
  }

  .hero-copy h2 {
    font-size: 2.25rem;
  }

  .hero-copy p {
    font-size: 0.9rem;
  }

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

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

  .hero-visual {
    padding: 0 24px 28px;
  }

  .scope-flow {
    gap: 5px;
  }

  .flow-card {
    padding: 10px;
  }

  .flow-icon {
    display: none;
  }

  .hero-total {
    padding: 19px;
  }

  .hero-total strong {
    font-size: 2.15rem;
  }

  .setup-alert {
    grid-template-columns: auto 1fr;
  }

  .setup-alert .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .stats-grid {
    gap: 9px;
  }

  .stat-card {
    padding: 16px;
  }

  .stat-card strong {
    font-size: 1.45rem;
  }

  .recent-panel,
  .form-card,
  .settings-panel,
  .price-panel {
    padding: 18px;
  }

  .recent-panel .table-wrap {
    max-width: 100%;
    overflow: hidden;
  }

  .data-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }

  .data-table th:nth-child(2),
  .data-table td:nth-child(2),
  .data-table th:nth-child(3),
  .data-table td:nth-child(3) {
    display: none;
  }

  .data-table th:nth-child(4),
  .data-table td:nth-child(4) {
    width: 88px;
  }

  .data-table th:last-child,
  .data-table td:last-child {
    width: 44px;
  }

  .recent-panel {
    overflow: hidden;
  }

  .data-table th:nth-child(2),
  .data-table td:nth-child(2) {
    display: none;
  }

  .data-table th,
  .data-table td {
    padding-inline: 8px;
  }

  .builder-intro,
  .page-intro {
    display: block;
  }

  .step-badge,
  .verification-chip {
    margin-top: 13px;
  }

  .form-grid-two {
    grid-template-columns: 1fr;
  }

  .field-wide {
    grid-column: auto;
  }

  .section-heading-action {
    align-items: stretch;
    flex-direction: column;
  }

  .section-heading-action .button {
    width: 100%;
  }

  .voice-capture,
  .suggestion-box {
    align-items: stretch;
    flex-direction: column;
  }

  .voice-support {
    padding-left: 2px;
  }

  .suggestion-box .button {
    width: 100%;
  }

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

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

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

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

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

  .pricebook-panel-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .price-row {
    grid-template-columns: 1fr 96px 34px;
  }

  .price-row .price-name {
    grid-column: 1 / -1;
  }

  .confirmation-panel {
    align-items: stretch;
    flex-direction: column;
  }

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

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

  .quote-toolbar-actions .button {
    white-space: normal;
  }

  .quote-document {
    padding: 25px 20px;
  }

  .quote-header,
  .quote-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .quote-title {
    text-align: left;
  }

  .quote-meta {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .quote-meta > div:last-child {
    padding-top: 18px;
    padding-left: 0;
    border-top: 1px solid #dfe6e2;
    border-left: 0;
  }

  .quote-items {
    overflow-x: auto;
  }

  .quote-items table {
    min-width: 540px;
  }

  .quote-financials {
    grid-template-columns: 1fr;
  }

  .quote-financials > dl {
    grid-column: auto;
  }

  .quote-clarifications {
    grid-template-columns: 1fr;
  }

  .mobile-nav {
    position: fixed;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 10px;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 7px;
    background: rgba(5, 32, 28, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(5, 32, 28, 0.3);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .mobile-nav-item {
    display: grid;
    gap: 2px;
    min-height: 52px;
    place-items: center;
    align-content: center;
    color: #88a79d;
    background: transparent;
    border: 0;
    border-radius: 12px;
  }

  .mobile-nav-item span {
    font-size: 1.05rem;
  }

  .mobile-nav-item small {
    font-size: 0.59rem;
    font-weight: 750;
  }

  .mobile-nav-item.is-active {
    color: var(--mint);
    background: rgba(95, 240, 187, 0.08);
  }

  .mobile-nav-create {
    color: var(--forest);
    background: var(--mint);
  }

  .mobile-nav-create.is-active {
    color: var(--forest);
    background: var(--mint);
  }

  .toast {
    right: 16px;
    bottom: calc(88px + env(safe-area-inset-bottom));
    left: 16px;
  }
}

@media print {
  @page {
    size: letter;
    margin: 0.45in;
  }

  body {
    min-height: 0;
    background: white;
  }

  .sidebar,
  .topbar,
  .mobile-nav,
  .quote-toolbar,
  .approval-card,
  .toast {
    display: none !important;
  }

  .app-shell,
  .workspace,
  #main-content,
  .view,
  .quote-layout {
    display: block !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .view:not(#view-quote) {
    display: none !important;
  }

  .quote-document {
    width: 100%;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .quote-scope-summary,
  .quote-items,
  .quote-financials,
  .quote-clarifications {
    break-inside: avoid;
  }
}

/* Scope Control — Signal Boundary brand system */
@media screen {
  body {
    color: var(--text);
    background:
      linear-gradient(rgba(23, 25, 28, 0.018) 1px, transparent 1px),
      linear-gradient(90deg, rgba(23, 25, 28, 0.018) 1px, transparent 1px),
      var(--bone);
    background-size: 28px 28px;
  }

  button:focus-visible,
  a:focus-visible,
  input:focus-visible,
  select:focus-visible,
  textarea:focus-visible {
    outline-color: rgba(255, 90, 31, 0.38);
  }

  h1,
  h2,
  h3,
  .brand-lockup strong,
  .quote-title strong,
  .stat-card strong,
  .summary-total dd,
  .hero-total strong {
    font-family: "Barlow Condensed", Inter, sans-serif;
    letter-spacing: -0.02em;
  }

  h1,
  h2,
  h3 {
    color: var(--carbon);
  }

  h2 {
    font-weight: 700;
  }

  .ui-icon,
  .button-icon,
  .inline-icon,
  .nav-icon img,
  .flow-icon,
  .setup-icon img,
  .camera-icon img,
  .suggestion-icon img,
  .control-note img,
  .approval-status-icon img,
  .safety-list img,
  .mobile-nav-item img,
  .toast-icon img,
  .empty-icon img {
    display: block;
    width: 1em;
    height: 1em;
  }

  .button-icon,
  .inline-icon {
    flex: 0 0 auto;
  }

  .inline-icon {
    display: inline-block;
    margin-left: 3px;
    vertical-align: -0.14em;
  }

  .sidebar {
    width: var(--sidebar-width);
    padding: 28px 20px 22px;
    color: #f7f2e9;
    background:
      radial-gradient(circle at 50% -10%, rgba(255, 90, 31, 0.1), transparent 19rem),
      var(--carbon);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }

  .brand-lockup {
    gap: 13px;
    padding: 0 4px 34px;
  }

  .brand-mark {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
    overflow: hidden;
    background: #111315;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  }

  .brand-mark img {
    width: 52px;
    height: 52px;
    object-fit: cover;
  }

  .brand-lockup strong {
    color: var(--bone-light);
    font-size: 1.28rem;
    font-weight: 800;
    letter-spacing: 0.005em;
    line-height: 0.95;
    text-transform: uppercase;
  }

  .brand-lockup small {
    margin-top: 6px;
    color: #8e9193;
    font-size: 0.52rem;
    font-weight: 700;
    letter-spacing: 0.13em;
  }

  .primary-nav {
    gap: 5px;
  }

  .nav-item {
    gap: 11px;
    min-height: 48px;
    padding: 10px 12px;
    color: #aeb1b3;
    font-size: 0.79rem;
    font-weight: 700;
    letter-spacing: 0.015em;
    border: 1px solid transparent;
    border-radius: 9px;
  }

  .nav-item:hover {
    color: var(--bone-light);
    background: rgba(255, 255, 255, 0.055);
  }

  .nav-item.is-active {
    color: var(--carbon);
    background: var(--signal);
    border-color: var(--signal);
    box-shadow: 0 9px 22px rgba(255, 90, 31, 0.19);
  }

  .nav-icon {
    width: 25px;
    height: 25px;
    color: inherit;
    background: transparent;
    border: 0;
    border-radius: 0;
  }

  .nav-icon img {
    width: 19px;
    height: 19px;
    filter: invert(1);
    opacity: 0.74;
  }

  .nav-item.is-active .nav-icon img {
    filter: none;
    opacity: 1;
  }

  .sidebar-card {
    margin-top: auto;
    padding: 18px 17px 17px;
    background: #1e2124;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 2px solid var(--signal);
    border-radius: 10px;
  }

  .sidebar-card .eyebrow {
    color: var(--signal);
  }

  .sidebar-card p {
    margin-top: 9px;
    color: #c7c6c2;
    font-size: 0.76rem;
    line-height: 1.55;
  }

  .sidebar-footer {
    padding: 16px 5px 0;
    color: #777b7e;
    font-size: 0.63rem;
  }

  .trust-dot {
    background: var(--signal);
    box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.1);
  }

  .topbar {
    min-height: 84px;
    padding: 14px clamp(24px, 3.6vw, 52px);
    background: rgba(244, 239, 230, 0.9);
    border-bottom: 1px solid rgba(23, 25, 28, 0.1);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.58);
  }

  .topbar h1 {
    font-size: 1.55rem;
    font-weight: 700;
  }

  .topbar-kicker {
    color: var(--signal-deep);
  }

  .demo-pill {
    color: #5d6063;
    background: rgba(255, 255, 255, 0.46);
    border-color: rgba(23, 25, 28, 0.12);
    border-radius: 7px;
  }

  #main-content {
    width: min(1480px, 100%);
    padding: 38px clamp(24px, 3.6vw, 52px) 64px;
  }

  .eyebrow {
    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.16em;
  }

  .eyebrow-mint {
    color: var(--signal-deep);
  }

  .button {
    min-height: 43px;
    padding: 10px 16px;
    color: var(--carbon);
    font-size: 0.76rem;
    font-weight: 750;
    letter-spacing: 0.01em;
    border-radius: 8px;
    box-shadow: none;
  }

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

  .button-primary,
  .button-mint,
  .button-mint-dark {
    color: var(--carbon);
    background: var(--signal);
    border-color: var(--signal);
    box-shadow: 0 8px 20px rgba(255, 90, 31, 0.17);
  }

  .button-primary:hover:not(:disabled),
  .button-mint:hover:not(:disabled),
  .button-mint-dark:hover:not(:disabled) {
    color: var(--carbon);
    background: #ff6c37;
    border-color: #ff6c37;
    box-shadow: 0 11px 24px rgba(255, 90, 31, 0.22);
  }

  .button-secondary {
    color: var(--carbon);
    background: rgba(255, 255, 255, 0.74);
    border-color: rgba(23, 25, 28, 0.16);
    box-shadow: none;
  }

  .button-secondary:hover:not(:disabled) {
    background: var(--white);
    border-color: rgba(23, 25, 28, 0.32);
  }

  .button-quiet-on-dark {
    color: var(--bone-light);
    background: var(--carbon);
    border-color: var(--carbon);
  }

  .button-quiet-on-dark:hover:not(:disabled) {
    background: var(--carbon-soft);
  }

  .button-smart {
    color: var(--signal-deep);
    background: var(--signal-pale);
    border-color: rgba(200, 60, 12, 0.2);
  }

  .text-button,
  .back-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--signal-deep);
  }

  .text-button:hover,
  .back-button:hover {
    color: var(--carbon);
  }

  #view-dashboard {
    display: flex;
    flex-direction: column;
  }

  .hero-card {
    order: 1;
    grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.72fr);
    min-height: 486px;
    color: var(--carbon);
    background-color: #f6f0e7;
    background-image: url("assets/brand/scope-control-hero-motif.png");
    background-position: center right;
    background-size: cover;
    border: 1px solid rgba(23, 25, 28, 0.1);
    border-radius: 14px;
    box-shadow: 0 22px 54px rgba(23, 25, 28, 0.12);
  }

  .hero-card::after {
    display: none;
  }

  .hero-copy {
    padding: clamp(42px, 5vw, 68px);
  }

  .hero-copy h2 {
    max-width: 630px;
    margin-top: 18px;
    color: var(--carbon);
    font-size: clamp(4rem, 6.4vw, 6.7rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 0.82;
    text-transform: uppercase;
  }

  .hero-copy h2 em {
    color: var(--signal);
    font-style: normal;
  }

  .hero-copy p {
    max-width: 520px;
    margin: 25px 0 28px;
    color: #5f615f;
    font-size: 0.96rem;
    line-height: 1.62;
  }

  .hero-actions {
    gap: 9px;
  }

  .hero-visual {
    justify-content: flex-end;
    padding: 52px 48px 52px 6px;
  }

  .hero-total {
    position: relative;
    padding: 29px 28px 25px;
    color: var(--bone-light);
    background: rgba(23, 25, 28, 0.965);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 4px solid var(--signal);
    border-radius: 11px;
    box-shadow: 0 28px 58px rgba(23, 25, 28, 0.22);
    transform: none;
  }

  .hero-total .hero-total-label {
    color: #9b9ea0;
    font-size: 0.61rem;
    letter-spacing: 0.16em;
  }

  .hero-total strong {
    margin: 9px 0 12px;
    color: var(--bone-light);
    font-size: clamp(2.7rem, 4.3vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.035em;
  }

  .hero-total-rule {
    height: 1px;
    margin: 0 0 16px;
    background: rgba(255, 255, 255, 0.1);
  }

  .hero-total-status {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .hero-total-status > img {
    width: 25px;
    height: 25px;
    filter: invert(43%) sepia(99%) saturate(3380%) hue-rotate(350deg) brightness(103%);
  }

  .hero-total-status span,
  .hero-total-status b,
  .hero-total-status small {
    display: block;
  }

  .hero-total-status b {
    color: var(--bone-light);
    font-size: 0.7rem;
  }

  .hero-total-status small {
    margin-top: 3px;
    color: #898d90;
    font-size: 0.61rem;
  }

  .scope-flow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin: 9px 0 0;
  }

  .flow-card {
    min-width: 0;
    gap: 8px;
    padding: 10px;
    color: var(--carbon);
    background: rgba(251, 248, 242, 0.86);
    border: 1px solid rgba(23, 25, 28, 0.12);
    border-radius: 8px;
    backdrop-filter: blur(8px);
  }

  .flow-card-scope {
    color: var(--carbon);
    background: var(--signal);
    border-color: var(--signal);
  }

  .flow-card .flow-icon {
    width: 19px;
    height: 19px;
    flex-basis: 19px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
  }

  .flow-card small {
    margin: 0;
    color: #747775;
    font-size: 0.53rem;
    font-weight: 700;
    letter-spacing: 0.09em;
  }

  .flow-card strong {
    color: var(--carbon);
    font-size: 0.65rem;
  }

  .flow-card-scope small {
    color: rgba(23, 25, 28, 0.62);
  }

  .recent-panel {
    order: 2;
    margin-top: 22px;
    padding: 24px 26px;
  }

  .setup-alert {
    order: 3;
    margin-top: 18px;
  }

  .stats-grid {
    order: 4;
  }

  .setup-alert {
    background: var(--warning-pale);
    border-color: rgba(155, 91, 14, 0.23);
    border-left: 3px solid var(--warning);
    border-radius: 9px;
  }

  .setup-alert p {
    color: #6e5a3d;
  }

  .setup-icon {
    color: var(--warning);
    background: rgba(155, 91, 14, 0.1);
    border-radius: 7px;
  }

  .setup-icon img {
    width: 17px;
    height: 17px;
    filter: invert(35%) sepia(78%) saturate(974%) hue-rotate(358deg) brightness(86%);
  }

  .stats-grid {
    gap: 12px;
  }

  .stat-card {
    padding: 19px;
    background: rgba(251, 248, 242, 0.92);
    border-color: rgba(23, 25, 28, 0.11);
    border-radius: 10px;
    box-shadow: none;
  }

  .stat-card-accent {
    color: var(--bone-light);
    background: var(--carbon);
  }

  .stat-card-accent::after {
    right: -28px;
    background: var(--signal);
    border-radius: 10px;
    transform: rotate(35deg);
  }

  .stat-card-accent .stat-label,
  .stat-card-accent small {
    color: #aeb1b3;
  }

  .stat-card-accent strong {
    color: var(--bone-light);
  }

  .stat-label {
    font-size: 0.59rem;
    letter-spacing: 0.13em;
  }

  .stat-card strong {
    color: var(--carbon);
    font-size: 2rem;
    font-weight: 700;
  }

  .stat-card small {
    color: #7b7e7c;
  }

  .panel,
  .form-card {
    background: rgba(251, 248, 242, 0.94);
    border-color: rgba(23, 25, 28, 0.11);
    border-radius: 11px;
    box-shadow: 0 8px 25px rgba(23, 25, 28, 0.045);
  }

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

  .panel-heading h2 {
    color: var(--carbon);
    font-size: 1.45rem;
    font-weight: 700;
  }

  .data-table th,
  .data-table td {
    border-bottom-color: rgba(23, 25, 28, 0.1);
  }

  .data-table th {
    color: #7a7d7b;
  }

  .data-table tbody tr:hover {
    background: rgba(255, 90, 31, 0.045);
  }

  .status-pill {
    border-radius: 6px;
  }

  .status-approved {
    color: var(--success);
    background: var(--success-pale);
  }

  .status-ready {
    color: #315b86;
    background: #e7f1fb;
  }

  .status-draft {
    color: var(--warning);
    background: var(--warning-pale);
  }

  .open-job {
    color: var(--carbon);
    background: var(--signal);
    border-color: var(--signal);
    border-radius: 7px;
  }

  .open-job .ui-icon {
    width: 16px;
    height: 16px;
  }

  .empty-icon {
    color: var(--carbon);
    background: var(--signal);
    border-radius: 9px;
  }

  .empty-icon img {
    width: 20px;
    height: 20px;
  }

  .builder-intro h2,
  .page-intro h2 {
    color: var(--carbon);
    font-size: clamp(2.25rem, 4vw, 3.25rem);
    font-weight: 750;
  }

  .builder-intro p,
  .page-intro p {
    color: #666966;
  }

  .step-badge {
    color: var(--signal-deep);
    background: var(--signal-pale);
    border-color: rgba(200, 60, 12, 0.18);
    border-radius: 7px;
  }

  .form-card {
    padding: 26px;
  }

  .section-number {
    color: var(--carbon);
    background: var(--signal);
    border-color: var(--signal);
    border-radius: 7px;
  }

  .section-heading h3 {
    font-size: 1.24rem;
    font-weight: 700;
  }

  .section-heading p {
    color: #747775;
  }

  .field > span:first-child {
    color: #505351;
  }

  input,
  select,
  textarea {
    color: var(--carbon);
    background: #fffdf9;
    border-color: #cec7bc;
    border-radius: 7px;
  }

  input::placeholder,
  textarea::placeholder {
    color: #9a9994;
  }

  input:hover,
  select:hover,
  textarea:hover {
    border-color: #aca59b;
  }

  input:focus,
  select:focus,
  textarea:focus {
    border-color: var(--signal-deep);
    box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.11);
  }

  .record-button {
    color: var(--carbon);
    background: #fffaf4;
    border-color: #d1c9bd;
    border-radius: 7px;
  }

  .record-button .button-icon {
    width: 16px;
    height: 16px;
  }

  .record-dot {
    width: 7px;
    height: 7px;
    background: var(--signal);
  }

  .record-button.is-recording {
    background: var(--danger-pale);
    border-color: rgba(164, 61, 50, 0.27);
  }

  .photo-capture {
    background: #efe9df;
    border-color: #d4ccc0;
    border-left: 3px solid var(--signal);
    border-radius: 9px;
  }

  .camera-icon {
    width: 40px;
    height: 40px;
    color: var(--bone-light);
    background: var(--carbon);
    border-radius: 8px;
  }

  .camera-icon::before,
  .camera-icon::after {
    display: none;
  }

  .camera-icon img {
    width: 20px;
    height: 20px;
    filter: invert(1);
  }

  .photo-count {
    color: var(--signal-deep);
    background: var(--signal-pale);
    border-radius: 6px;
  }

  .photo-empty,
  .mini-empty {
    background: rgba(255, 255, 255, 0.45);
    border-color: #cbc4b9;
  }

  .photo-thumb {
    background: #e6dfd5;
    border-color: #cfc7bb;
    border-radius: 8px;
  }

  .photo-remove {
    background: rgba(23, 25, 28, 0.88);
  }

  .photo-remove .ui-icon {
    width: 13px;
    height: 13px;
    filter: invert(1);
  }

  .suggestion-box {
    background: var(--signal-pale);
    border-color: rgba(200, 60, 12, 0.18);
    border-radius: 8px;
  }

  .suggestion-icon {
    color: var(--carbon);
    background: var(--signal);
    border-radius: 7px;
  }

  .suggestion-icon img {
    width: 16px;
    height: 16px;
  }

  .line-items-wrap {
    border-color: #d6cec2;
    border-radius: 8px;
  }

  .line-items-table th,
  .line-items-table td {
    border-bottom-color: #ded7cc;
  }

  .line-items-table th {
    background: #eee8df;
  }

  .line-total {
    color: var(--carbon);
  }

  .remove-line {
    color: var(--danger);
    background: var(--danger-pale);
    border-radius: 7px;
  }

  .remove-line .ui-icon {
    width: 14px;
    height: 14px;
    filter: invert(26%) sepia(38%) saturate(2070%) hue-rotate(324deg) brightness(95%);
  }

  .summary-card {
    color: var(--bone-light);
    background: var(--carbon);
    border-color: rgba(255, 255, 255, 0.08);
    border-radius: 11px;
  }

  .summary-card::before {
    background: var(--signal);
  }

  .summary-card .eyebrow,
  .summary-card .summary-customer span,
  .summary-card .summary-totals dt {
    color: #999c9f;
  }

  .summary-card .summary-customer strong,
  .summary-card .summary-totals dd,
  .summary-card .summary-total dt,
  .summary-card .summary-total dd {
    color: var(--bone-light);
  }

  .summary-customer,
  .summary-totals .summary-total {
    border-color: rgba(255, 255, 255, 0.1);
  }

  .summary-totals .summary-total dd {
    color: var(--signal);
    font-size: 1.8rem;
  }

  .control-note {
    color: #c6c8c8;
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(255, 255, 255, 0.09);
    border-radius: 8px;
  }

  .control-note img {
    width: 18px;
    height: 18px;
    filter: invert(43%) sepia(99%) saturate(3380%) hue-rotate(350deg) brightness(103%);
  }

  .verification-chip {
    color: var(--warning);
    background: var(--warning-pale);
    border-color: rgba(155, 91, 14, 0.2);
    border-radius: 7px;
  }

  .verification-chip.is-confirmed {
    color: var(--success);
    background: var(--success-pale);
    border-color: rgba(29, 122, 85, 0.2);
  }

  .settings-panel,
  .price-panel {
    padding: 26px;
  }

  .price-row {
    background: #f1ebe2;
    border-color: #d8d0c4;
    border-radius: 8px;
  }

  .confirmation-panel {
    color: var(--bone-light);
    background: var(--carbon);
    border-top: 3px solid var(--signal);
    border-radius: 9px;
  }

  .confirmation-panel p {
    color: #aeb1b3;
  }

  .quote-document {
    color: var(--carbon);
    background: #fffdf9;
    border-color: rgba(23, 25, 28, 0.12);
    box-shadow: 0 18px 48px rgba(23, 25, 28, 0.12);
  }

  .quote-header {
    border-bottom: 3px solid var(--signal);
  }

  .quote-brand img {
    overflow: hidden;
    border-radius: 7px;
  }

  .quote-brand span,
  .quote-title strong,
  .quote-meta strong,
  .quote-items td:first-child,
  .quote-grand-total dt,
  .quote-grand-total dd {
    color: var(--carbon);
  }

  .quote-meta > div:last-child,
  .quote-items th,
  .quote-items td,
  .quote-financials .quote-grand-total,
  .quote-clarifications,
  .quote-footer {
    border-color: #d8d1c6;
  }

  .quote-scope-summary {
    background: var(--signal-pale);
    border-left-color: var(--signal);
  }

  .quote-items th {
    background: #f0eae1;
  }

  .approval-card {
    color: var(--bone-light);
    background: var(--carbon);
    border-top: 4px solid var(--signal);
    border-radius: 11px;
  }

  .approval-card .eyebrow {
    color: var(--signal);
  }

  .approval-card h2 {
    color: var(--bone-light);
  }

  .approval-card > p,
  .approval-status span,
  .safety-list,
  .approval-card .text-button {
    color: #aeb1b3;
  }

  .approval-status {
    background: rgba(255, 90, 31, 0.1);
    border-color: rgba(255, 90, 31, 0.24);
    border-radius: 8px;
  }

  .approval-status.is-approved {
    background: rgba(29, 122, 85, 0.16);
    border-color: rgba(63, 185, 137, 0.28);
  }

  .approval-status-icon {
    background: rgba(255, 90, 31, 0.14);
    border-radius: 7px;
  }

  .approval-status-icon img {
    width: 16px;
    height: 16px;
    filter: invert(43%) sepia(99%) saturate(3380%) hue-rotate(350deg) brightness(103%);
  }

  .approval-status.is-approved .approval-status-icon img {
    filter: invert(49%) sepia(29%) saturate(1056%) hue-rotate(103deg) brightness(91%);
  }

  .approval-check {
    color: #d3d4d3;
  }

  .approval-check input {
    accent-color: var(--signal);
  }

  .safety-list span {
    color: var(--signal);
  }

  .safety-list img {
    width: 15px;
    height: 15px;
    filter: invert(43%) sepia(99%) saturate(3380%) hue-rotate(350deg) brightness(103%);
  }

  .toast {
    color: var(--bone-light);
    background: var(--carbon);
    border-color: rgba(255, 255, 255, 0.1);
    border-left: 3px solid var(--signal);
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(23, 25, 28, 0.26);
  }

  .toast-icon img {
    width: 17px;
    height: 17px;
    filter: invert(43%) sepia(99%) saturate(3380%) hue-rotate(350deg) brightness(103%);
  }

  .toast.is-error {
    border-left-color: var(--danger);
  }

  .toast.is-error .toast-icon img {
    filter: invert(26%) sepia(38%) saturate(2070%) hue-rotate(324deg) brightness(95%);
  }
}

@media screen and (max-width: 1120px) {
  .hero-card {
    grid-template-columns: minmax(0, 1fr) 340px;
  }

  .hero-copy {
    padding: 48px 40px;
  }

  .hero-visual {
    padding-right: 32px;
  }
}

@media screen and (max-width: 920px) {
  :root {
    --sidebar-width: 226px;
  }

  .brand-lockup strong {
    font-size: 1.1rem;
  }

  .brand-lockup small {
    font-size: 0.46rem;
  }

  .hero-card {
    grid-template-columns: 1fr;
    background-position: 70% center;
  }

  .hero-visual {
    padding: 0 40px 42px;
  }

  .hero-total {
    max-width: 470px;
  }

  .scope-flow {
    max-width: 470px;
  }
}

@media screen and (max-width: 720px) {
  .topbar {
    min-height: 70px;
    padding: 10px 15px;
  }

  .topbar-new {
    width: 44px;
    min-width: 44px;
    padding: 0;
    gap: 0;
    overflow: hidden;
    font-size: 0;
    border-radius: 8px;
  }

  .topbar-new .button-icon {
    width: 19px;
    height: 19px;
  }

  #main-content {
    padding: 16px 13px calc(94px + env(safe-area-inset-bottom));
  }

  .hero-card {
    min-height: 0;
    background-position: 63% center;
    border-radius: 11px;
  }

  .hero-copy {
    padding: 35px 25px 28px;
  }

  .hero-copy h2 {
    font-size: clamp(3.25rem, 17vw, 4.7rem);
    line-height: 0.84;
  }

  .hero-copy p {
    margin: 20px 0 23px;
    font-size: 0.84rem;
  }

  .hero-visual {
    padding: 0 24px 27px;
  }

  .hero-total {
    padding: 22px 20px 20px;
  }

  .hero-total strong {
    font-size: 2.65rem;
  }

  .scope-flow {
    gap: 5px;
  }

  .flow-card {
    display: grid;
    justify-items: center;
    gap: 5px;
    padding: 9px 5px;
    text-align: center;
  }

  .flow-card .flow-icon {
    display: block;
    width: 17px;
    height: 17px;
  }

  .recent-panel,
  .form-card,
  .settings-panel,
  .price-panel {
    padding: 18px;
  }

  .builder-intro h2,
  .page-intro h2 {
    font-size: 2.3rem;
  }

  .photo-capture-heading {
    grid-template-columns: auto 1fr;
  }

  .photo-count {
    grid-column: 2;
    justify-self: start;
  }

  .mobile-nav {
    background: rgba(23, 25, 28, 0.97);
    border-color: rgba(255, 255, 255, 0.1);
    border-radius: 13px;
    box-shadow: 0 18px 44px rgba(23, 25, 28, 0.32);
  }

  .mobile-nav-item {
    color: #93979a;
    border-radius: 8px;
  }

  .mobile-nav-item img {
    width: 19px;
    height: 19px;
    filter: invert(1);
    opacity: 0.68;
  }

  .mobile-nav-item.is-active {
    color: var(--signal);
    background: rgba(255, 90, 31, 0.1);
  }

  .mobile-nav-item.is-active img {
    filter: invert(43%) sepia(99%) saturate(3380%) hue-rotate(350deg) brightness(103%);
    opacity: 1;
  }

  .mobile-nav-create,
  .mobile-nav-create.is-active {
    color: var(--carbon);
    background: var(--signal);
  }

  .mobile-nav-create img,
  .mobile-nav-create.is-active img {
    filter: none;
    opacity: 1;
  }
}
