:root {
  --ink: #101311;
  --ink-soft: #171b18;
  --line: #d9ded8;
  --line-dark: #2b312d;
  --paper: #f3f5f1;
  --white: #ffffff;
  --muted: #687169;
  --muted-light: #aeb6af;
  --signal: #baf15a;
  --signal-dark: #17220b;
  --amber: #f0b94b;
  --brand-accent: #e72335;
  --danger: #c82432;
}

[hidden] {
  display: none !important;
}

.static-open-button {
  font-family: inherit;
}

.quote-back-button {
  background: transparent;
  border: 0;
  color: #c6cec7;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 850;
  padding: 0;
  text-align: left;
  width: fit-content;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
textarea,
select {
  font: inherit;
  letter-spacing: 0;
}

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

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(186, 241, 90, 0.45);
  outline-offset: 2px;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 800;
  gap: 0.65rem;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1rem;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

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

.button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

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

.button-primary:hover {
  background: #252a26;
}

.button-secondary {
  background: transparent;
  border-color: #4b534d;
  color: var(--white);
}

.button-secondary:hover {
  border-color: var(--signal);
  color: var(--signal);
}

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

.button-brand:hover {
  background: color-mix(in srgb, var(--brand-accent), #000 12%);
}

.button-quiet {
  background: transparent;
  border-color: #cfd5cf;
  color: var(--ink);
}

.button-quiet:hover {
  background: #eef1ec;
  border-color: #aeb6af;
}

.button-full {
  width: 100%;
}

.section-kicker {
  color: #536052;
  display: block;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0;
  margin-bottom: 0.45rem;
}

/* Product console */

.console-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100dvh;
}

.console-sidebar {
  background: var(--ink);
  color: var(--white);
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding: 1.35rem 1rem;
  position: sticky;
  top: 0;
}

.product-mark {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  min-height: 50px;
  padding: 0 0.35rem;
}

.product-mark-icon {
  align-items: center;
  background: var(--signal);
  border-radius: 5px;
  color: var(--signal-dark);
  display: inline-flex;
  font-size: 1.05rem;
  font-weight: 950;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.product-mark strong,
.product-mark small {
  display: block;
}

.product-mark strong {
  font-size: 0.77rem;
  line-height: 1.2;
}

.product-mark small {
  color: #89928b;
  font-size: 0.67rem;
  margin-top: 0.2rem;
}

.console-nav {
  display: grid;
  gap: 0.3rem;
  margin-top: 2.5rem;
}

.console-nav-item {
  align-items: center;
  border-radius: 5px;
  color: #aeb6af;
  display: flex;
  font-size: 0.86rem;
  font-weight: 700;
  gap: 0.8rem;
  min-height: 43px;
  padding: 0.65rem 0.75rem;
}

.console-nav-item span {
  color: #818982;
  font-size: 1.05rem;
  text-align: center;
  width: 20px;
}

.console-nav-item:hover,
.console-nav-item.is-active {
  background: #222723;
  color: var(--white);
}

.console-nav-item.is-active span {
  color: var(--signal);
}

.sidebar-studio {
  align-items: center;
  border-top: 1px solid var(--line-dark);
  display: flex;
  gap: 0.7rem;
  margin-top: auto;
  padding: 1.1rem 0.35rem 0;
}

.studio-avatar {
  align-items: center;
  background: #2b302c;
  border: 1px solid #414943;
  border-radius: 5px;
  color: var(--white);
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 900;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.sidebar-studio strong,
.sidebar-studio small {
  display: block;
}

.sidebar-studio strong {
  font-size: 0.75rem;
}

.sidebar-studio small {
  color: #808982;
  font-size: 0.65rem;
  margin-top: 0.2rem;
}

.organization-switcher {
  color: #808982;
  display: grid;
  font-size: 0.62rem;
  font-weight: 750;
  gap: 0.35rem;
  margin: 0.7rem 0.35rem 0;
}

.organization-switcher select {
  background: #181c19;
  border: 1px solid #414943;
  border-radius: 5px;
  color: var(--white);
  font: inherit;
  min-height: 34px;
  padding: 0 0.55rem;
  width: 100%;
}

.console-main {
  min-width: 0;
  padding: 2rem clamp(1.1rem, 3vw, 3.2rem) 3.5rem;
}

.console-header {
  align-items: flex-end;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin: 0 auto 2rem;
  max-width: 1280px;
}

.console-header h1 {
  font-size: 2rem;
  line-height: 1.05;
  margin: 0;
}

.console-header p {
  color: var(--muted);
  margin: 0.45rem 0 0;
}

.metric-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1280px;
}

.metric-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 7px;
  display: flex;
  flex-direction: column;
  min-height: 145px;
  padding: 1.1rem;
}

.metric-card > span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
}

.metric-card strong {
  font-size: 1.8rem;
  line-height: 1.05;
  margin: 1rem 0 0.5rem;
  overflow-wrap: anywhere;
}

.metric-card small {
  color: #788279;
  font-size: 0.68rem;
  margin-top: auto;
}

.metric-card-primary {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--signal-dark);
}

.metric-card-primary > span,
.metric-card-primary small {
  color: #3d511c;
}

.console-section {
  margin: 2.6rem auto 0;
  max-width: 1280px;
}

.section-heading {
  align-items: flex-end;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.section-heading h2,
.install-band h2 {
  font-size: 1.25rem;
  line-height: 1.2;
  margin: 0;
}

.demo-label,
.channel-state,
.lead-status {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.64rem;
  font-weight: 850;
  line-height: 1;
  padding: 0.45rem 0.65rem;
  white-space: nowrap;
}

.demo-label {
  background: #e5e9e3;
  color: #687169;
}

.section-note {
  color: var(--muted);
  font-size: 0.75rem;
  margin: 0;
  max-width: 420px;
  text-align: right;
}

.lead-table {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}

.lead-row {
  align-items: center;
  border-top: 1px solid #e7eae6;
  display: grid;
  font-size: 0.77rem;
  gap: 1rem;
  grid-template-columns: 1.05fr 1.45fr 0.7fr 0.72fr 0.65fr;
  min-height: 68px;
  padding: 0.75rem 1rem;
}

.lead-row:first-child {
  border-top: 0;
}

.lead-row > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.lead-row strong,
.lead-row small {
  display: block;
}

.lead-row small {
  color: var(--muted);
  font-size: 0.67rem;
  margin-top: 0.2rem;
}

.lead-head {
  background: #f7f8f6;
  color: #727b73;
  font-size: 0.64rem;
  font-weight: 850;
  min-height: 42px;
}

.status-nowy {
  background: #eefbd8;
  color: #40551b;
}

.status-kontakt {
  background: #fff3d7;
  color: #735414;
}

.status-umowiony {
  background: #dcecf8;
  color: #214e70;
}

.channel-list {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}

.channel-row {
  align-items: center;
  border-top: 1px solid #e7eae6;
  display: grid;
  gap: 1rem;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  min-height: 82px;
  padding: 0.85rem 1rem;
}

.channel-row:first-child {
  border-top: 0;
}

.channel-marker {
  align-items: center;
  background: #171b18;
  border-radius: 5px;
  color: var(--white);
  display: inline-flex;
  font-size: 0.66rem;
  font-weight: 900;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.channel-row h3 {
  font-size: 0.87rem;
  margin: 0;
}

.channel-row p {
  color: var(--muted);
  font-size: 0.72rem;
  margin: 0.25rem 0 0;
}

.channel-state-active {
  background: #e7f8ca;
  color: #40551b;
}

.channel-state-ready {
  background: #e7edf2;
  color: #45545e;
}

.channel-state-pending {
  background: #fff1d5;
  color: #6f5114;
}

.install-band {
  align-items: center;
  background: var(--ink);
  border-radius: 7px;
  color: var(--white);
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  margin: 2.6rem auto 0;
  max-width: 1280px;
  padding: 1.6rem;
}

.install-band .section-kicker {
  color: var(--signal);
}

.install-band p {
  color: var(--muted-light);
  font-size: 0.8rem;
  line-height: 1.55;
  margin: 0.6rem 0 0;
  max-width: 590px;
}

.install-actions {
  display: grid;
  gap: 0.7rem;
}

.install-actions code {
  background: #202521;
  border: 1px solid #3a423c;
  border-radius: 5px;
  color: #d6ddd6;
  display: block;
  font-size: 0.68rem;
  overflow: hidden;
  padding: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.embed-snippet {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.embed-snippet code {
  border-radius: 5px 0 0 5px;
}

.embed-snippet button {
  background: var(--signal);
  border: 0;
  border-radius: 0 5px 5px 0;
  color: var(--signal-dark);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 900;
  padding: 0 0.75rem;
}

/* Public quote */

.quote-page {
  background: #0b0d0c;
  display: grid;
  grid-template-columns: minmax(340px, 0.82fr) minmax(520px, 1.18fr);
  min-height: 100dvh;
}

.quote-visual {
  min-height: 100dvh;
  overflow: hidden;
  position: relative;
}

.quote-visual > img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.quote-visual-overlay {
  background: rgba(7, 9, 8, 0.68);
  inset: 0;
  position: absolute;
}

.quote-brand {
  color: var(--white);
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
  min-height: 100dvh;
  padding: clamp(1.25rem, 4vw, 3.25rem);
  position: relative;
  z-index: 1;
}

.quote-product-link {
  color: #c6cec7;
  font-size: 0.66rem;
  font-weight: 900;
  width: fit-content;
}

.quote-eyebrow {
  color: var(--brand-accent);
  display: block;
  font-size: 0.72rem;
  font-weight: 950;
  margin-bottom: 0.8rem;
}

.quote-brand h1 {
  font-size: clamp(2.25rem, 5vw, 4.8rem);
  line-height: 0.95;
  margin: 0;
  max-width: 720px;
  overflow-wrap: anywhere;
}

.quote-brand p {
  color: #d2d8d3;
  font-size: 1rem;
  line-height: 1.6;
  margin: 1.2rem 0 0;
  max-width: 560px;
}

.quote-facts {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 1rem;
}

.quote-facts span {
  color: #bfc7c0;
  font-size: 0.68rem;
}

.quote-facts strong {
  color: var(--white);
  display: block;
  font-size: 0.94rem;
  margin-bottom: 0.15rem;
}

.quote-tool-shell {
  align-self: center;
  background: var(--paper);
  min-height: 100dvh;
  padding: clamp(1.1rem, 4vw, 3.4rem) clamp(1rem, 5vw, 4.5rem) 1.5rem;
}

.quote-tool-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto 1.2rem;
  max-width: 720px;
}

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

.quote-tool-header strong {
  font-size: 0.76rem;
}

.quote-tool-header span {
  color: var(--muted);
  font-size: 0.68rem;
  margin-top: 0.2rem;
}

.quote-tool-header a {
  color: var(--brand-accent);
  font-size: 0.75rem;
  font-weight: 850;
}

.quote-form,
.quote-result {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 7px;
  margin: 0 auto;
  max-width: 720px;
  padding: clamp(1.15rem, 3vw, 2rem);
}

.form-topline {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.form-step,
.result-kicker {
  color: var(--brand-accent);
  display: block;
  font-size: 0.66rem;
  font-weight: 950;
  margin-bottom: 0.4rem;
}

.form-topline h2,
.quote-result h2 {
  font-size: 1.45rem;
  line-height: 1.15;
  margin: 0;
}

.step-dots {
  display: flex;
  gap: 0.35rem;
  padding-top: 0.3rem;
}

.step-dots span {
  background: #dfe4de;
  border-radius: 2px;
  display: block;
  height: 5px;
  width: 34px;
}

.step-dots span.is-complete {
  background: var(--brand-accent);
}

.form-stage {
  display: grid;
  gap: 1.1rem;
}

.field-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-label,
.need-fieldset legend {
  color: #3d443e;
  display: grid;
  font-size: 0.71rem;
  font-weight: 850;
  gap: 0.45rem;
}

.field-label input,
.field-label textarea {
  background: #fafbf9;
  border: 1px solid #cdd3cd;
  border-radius: 5px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 500;
  min-height: 49px;
  padding: 0.75rem 0.85rem;
  resize: vertical;
  width: 100%;
}

.field-label textarea {
  line-height: 1.5;
  min-height: 104px;
}

.field-label input::placeholder,
.field-label textarea::placeholder {
  color: #969f97;
}

.field-label input:focus,
.field-label textarea:focus {
  background: var(--white);
  border-color: var(--brand-accent);
  outline: 2px solid color-mix(in srgb, var(--brand-accent), transparent 78%);
}

.need-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.need-fieldset legend {
  margin-bottom: 0.55rem;
}

.need-options {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.need-option {
  align-items: center;
  background: #fafbf9;
  border: 1px solid #d4dad4;
  border-radius: 5px;
  color: #353b36;
  cursor: pointer;
  display: flex;
  font-size: 0.72rem;
  font-weight: 750;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.65rem 0.7rem;
  text-align: left;
}

.need-option span {
  align-items: center;
  border: 1px solid #bcc4bd;
  border-radius: 3px;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.7rem;
  height: 20px;
  justify-content: center;
  width: 20px;
}

.need-option:hover,
.need-option.is-selected {
  border-color: var(--brand-accent);
}

.need-option.is-selected {
  background: color-mix(in srgb, var(--brand-accent), #fff 92%);
  color: color-mix(in srgb, var(--brand-accent), #000 28%);
}

.need-option.is-selected span {
  background: var(--brand-accent);
  border-color: var(--brand-accent);
  color: var(--white);
}

.form-actions,
.result-actions {
  align-items: center;
  display: flex;
  gap: 0.7rem;
  justify-content: flex-end;
}

.form-actions .button-brand {
  min-width: 220px;
}

.consent-row {
  align-items: flex-start;
  color: #5c655d;
  display: flex;
  font-size: 0.67rem;
  gap: 0.6rem;
  line-height: 1.45;
}

.consent-row input {
  accent-color: var(--brand-accent);
  flex: 0 0 auto;
  height: 17px;
  margin: 0.08rem 0 0;
  width: 17px;
}

.consent-row a {
  color: var(--ink);
  text-decoration: underline;
}

.honeypot {
  height: 0;
  left: -10000px;
  overflow: hidden;
  position: absolute;
  width: 0;
}

.form-error {
  background: #fff0f1;
  border-left: 3px solid var(--danger);
  color: #8d1d26;
  font-size: 0.72rem;
  line-height: 1.45;
  margin: 1rem 0 0;
  padding: 0.7rem 0.8rem;
}

.button-spinner {
  animation: spin 800ms linear infinite;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  border-top-color: var(--white);
  height: 16px;
  width: 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.powered-by {
  color: #8a938b;
  font-size: 0.62rem;
  margin: 0.8rem auto 0;
  max-width: 720px;
  text-align: center;
}

.powered-by strong {
  color: #5a635b;
}

.quote-result {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
}

.result-check {
  align-items: center;
  background: #e5f8d0;
  border-radius: 5px;
  color: #355418;
  display: inline-flex;
  font-size: 1.1rem;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  margin-bottom: 1rem;
  width: 42px;
}

.result-reply {
  color: #4f5850;
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 1rem 0 1.2rem;
}

.result-summary {
  border-bottom: 1px solid #e1e5e0;
  border-top: 1px solid #e1e5e0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 1.2rem;
  width: 100%;
}

.result-summary > div {
  min-width: 0;
  padding: 1rem 0.8rem 1rem 0;
}

.result-summary > div + div {
  border-left: 1px solid #e1e5e0;
  padding-left: 1rem;
}

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

.result-summary span {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.result-summary strong {
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

/* Embedded version */

.embed-page {
  background: var(--white);
  margin: 0;
  max-width: 720px;
  min-height: 100dvh;
  padding: 0.8rem;
}

.embed-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  padding: 0.3rem 0.2rem 0.8rem;
}

.embed-header span,
.embed-header strong {
  display: block;
}

.embed-header span {
  color: var(--brand-accent);
  font-size: 0.6rem;
  font-weight: 900;
  margin-bottom: 0.2rem;
}

.embed-header strong {
  font-size: 0.76rem;
}

.embed-header small {
  color: var(--muted);
  font-size: 0.64rem;
}

.quote-form-compact,
.quote-result-compact {
  border: 0;
  padding: 0.7rem 0.2rem;
}

/* Legal */

.legal-page {
  margin: 0 auto;
  max-width: 780px;
  min-height: 100dvh;
  padding: clamp(1.25rem, 6vw, 4rem) 1.2rem;
}

.legal-back {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 3rem;
}

.legal-page h1 {
  font-size: 2.25rem;
  line-height: 1.05;
  margin: 0;
}

.legal-intro {
  color: #4e574f;
  font-size: 1rem;
  line-height: 1.7;
  margin: 1rem 0 2.4rem;
}

.legal-page section {
  border-top: 1px solid var(--line);
  padding: 1.3rem 0;
}

.legal-page h2 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

.legal-page section p {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.65;
  margin: 0;
}

.legal-page aside {
  background: #fff4d9;
  border-left: 3px solid var(--amber);
  color: #654d19;
  font-size: 0.75rem;
  line-height: 1.6;
  margin-top: 1.2rem;
  padding: 1rem;
}

@media (max-width: 1080px) {
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quote-page {
    grid-template-columns: minmax(300px, 0.7fr) minmax(490px, 1.3fr);
  }
}

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

  .console-sidebar {
    min-height: auto;
    padding: 0.85rem 1rem;
    position: static;
  }

  .console-nav {
    display: flex;
    gap: 0.2rem;
    margin-top: 0.8rem;
    overflow-x: auto;
    padding-bottom: 0.15rem;
  }

  .console-nav-item {
    flex: 0 0 auto;
    min-height: 38px;
  }

  .sidebar-studio {
    display: none;
  }

  .organization-switcher {
    display: none;
  }

  .console-main {
    padding-top: 1.5rem;
  }

  .quote-page {
    display: block;
  }

  .quote-visual,
  .quote-brand {
    min-height: 390px;
  }

  .quote-brand {
    padding: 1.25rem;
  }

  .quote-brand h1 {
    font-size: 2.5rem;
  }

  .quote-tool-shell {
    min-height: auto;
    padding: 1.2rem 1rem 1.5rem;
  }

  .install-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .console-header {
    align-items: stretch;
    flex-direction: column;
  }

  .console-header .button {
    width: 100%;
  }

  .console-header h1 {
    font-size: 1.65rem;
  }

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

  .metric-card {
    min-height: 132px;
    padding: 0.85rem;
  }

  .metric-card strong {
    font-size: 1.35rem;
  }

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

  .section-note {
    text-align: left;
  }

  .lead-head {
    display: none;
  }

  .lead-row {
    align-items: start;
    gap: 0.65rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 1rem;
  }

  .lead-row > span::before {
    color: #8a938b;
    content: attr(data-label);
    display: block;
    font-size: 0.58rem;
    font-weight: 850;
    margin-bottom: 0.2rem;
  }

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

  .channel-state {
    grid-column: 2;
    justify-self: start;
  }

  .quote-visual,
  .quote-brand {
    min-height: 350px;
  }

  .quote-brand h1 {
    font-size: 2rem;
  }

  .quote-brand p {
    font-size: 0.86rem;
  }

  .quote-facts {
    gap: 0.5rem;
  }

  .quote-facts span {
    font-size: 0.6rem;
  }

  .field-grid,
  .need-options,
  .result-summary {
    grid-template-columns: 1fr;
  }

  .result-summary > div + div {
    border-left: 0;
    border-top: 1px solid #e1e5e0;
    padding-left: 0;
  }

  .form-actions,
  .result-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .form-actions .button,
  .result-actions .button {
    min-width: 0;
    width: 100%;
  }

  .quote-tool-header {
    align-items: flex-start;
    gap: 0.5rem;
  }

  .legal-page h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 390px) {
  .metric-grid {
    grid-template-columns: 1fr;
  }

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

  .quote-visual,
  .quote-brand {
    min-height: 430px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Live dashboard */

.auth-shell {
  align-items: center;
  background: linear-gradient(rgba(12, 14, 13, 0.86), rgba(12, 14, 13, 0.94)), url("assets/blackline-hero.png") center / cover no-repeat;
  display: flex;
  justify-content: center;
  min-height: 100dvh;
  padding: 1rem;
}

.auth-panel {
  background: #f7f8f6;
  border: 1px solid #3b423d;
  border-radius: 7px;
  max-width: 430px;
  padding: 2rem;
  width: 100%;
}

.auth-brand {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.auth-brand strong,
.auth-brand small {
  display: block;
}

.auth-brand strong { font-size: 0.8rem; }
.auth-brand small { color: var(--muted); font-size: 0.68rem; margin-top: 0.15rem; }
.auth-panel h1 { font-size: 1.8rem; margin: 0; }
.auth-panel > p { color: var(--muted); font-size: 0.85rem; line-height: 1.6; margin: 0.65rem 0 1.4rem; }
.auth-form { display: grid; gap: 1rem; }

.auth-public-link {
  background: transparent;
  border: 0;
  color: #59635b;
  cursor: pointer;
  display: block;
  font-size: 0.72rem;
  font-weight: 750;
  margin-top: 1.3rem;
  text-align: center;
  width: 100%;
}

.console-nav-button {
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  width: 100%;
}

.sidebar-signout {
  background: transparent;
  border: 0;
  color: #8f9991;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 750;
  margin-top: 0.75rem;
  padding: 0.35rem;
  text-align: left;
}

.header-actions,
.lead-controls { display: flex; gap: 0.55rem; }

.dashboard-alert {
  align-items: center;
  background: #fff1f2;
  border: 1px solid #e7b8bd;
  border-radius: 6px;
  color: #7e252f;
  display: flex;
  font-size: 0.77rem;
  gap: 0.7rem;
  margin: 0 auto 1rem;
  max-width: 1280px;
  padding: 0.8rem 1rem;
}

.settings-success {
  background: #eef9df;
  border: 1px solid #cfe6a6;
  border-radius: 6px;
  color: #34510b;
  font-size: 0.77rem;
  font-weight: 750;
  margin: 0 auto 1rem;
  max-width: 1280px;
  padding: 0.85rem 1rem;
}

.settings-layout {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin: 2rem auto 0;
  max-width: 1280px;
}

.settings-section {
  align-content: start;
  border-top: 2px solid #1a1e1b;
  display: grid;
  gap: 1rem;
  min-width: 0;
  padding-top: 1.1rem;
}

.settings-section-header,
.settings-form-footer {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.settings-section-header h2 {
  font-size: 1.15rem;
  margin: 0.2rem 0 0;
}

.settings-intro {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.6;
  margin: 0;
}

.service-list {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.service-item {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  gap: 0.4rem 1rem;
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: 1rem 0.2rem;
  text-align: left;
  width: 100%;
}

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

.service-item:hover {
  background: #f7f8f5;
}

.service-item strong,
.service-item small {
  display: block;
}

.service-item small {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.45;
  margin-top: 0.25rem;
}

.service-price {
  font-size: 0.8rem;
  font-weight: 850;
  white-space: nowrap;
}

.service-state {
  background: #edf8d9;
  border-radius: 999px;
  color: #3e5a09;
  font-size: 0.62rem;
  font-weight: 850;
  padding: 0.4rem 0.55rem;
  white-space: nowrap;
}

.service-state.is-inactive {
  background: #e8ebe8;
  color: #687069;
}

.settings-form {
  background: #f7f8f5;
  border: 1px solid var(--line);
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
}

.settings-toggle {
  align-items: center;
  color: #4e574f;
  cursor: pointer;
  display: flex;
  font-size: 0.72rem;
  font-weight: 750;
  gap: 0.55rem;
}

.settings-toggle input {
  accent-color: var(--signal);
  height: 17px;
  width: 17px;
}

.settings-toggle-compact {
  white-space: nowrap;
}

.settings-form-footer {
  border-top: 1px solid var(--line);
  margin-top: 0.25rem;
  padding-top: 1rem;
}

.settings-form-footer small {
  color: var(--muted);
  font-size: 0.65rem;
}

@media (max-width: 960px) {
  .settings-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .settings-section-header,
  .settings-form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .service-item {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .service-state {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

.lead-controls input,
.lead-controls select,
.detail-status-row select {
  background: var(--white);
  border: 1px solid #cdd3cd;
  border-radius: 5px;
  color: var(--ink);
  font-size: 0.72rem;
  min-height: 40px;
  padding: 0.55rem 0.7rem;
}

.lead-controls input { min-width: 270px; }
.status-new { background: #eefbd8; color: #40551b; }
.status-contacted { background: #fff3d7; color: #735414; }
.status-booked { background: #dcecf8; color: #214e70; }
.status-won { background: #dff4e7; color: #24613a; }
.status-lost { background: #f5e3e5; color: #852d36; }

#lead-list { display: contents; }

.lead-row-button {
  background: var(--white);
  border-bottom: 0;
  border-left: 0;
  border-right: 0;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  width: 100%;
}

.lead-row-button:hover { background: #fafbf9; }
.lead-client { align-items: center; display: flex; gap: 0.7rem; }

.lead-avatar {
  align-items: center;
  background: #e4e8e2;
  border: 1px solid #d2d7d1;
  border-radius: 5px;
  color: #3f4841;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.63rem;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.lead-empty { color: var(--muted); font-size: 0.8rem; padding: 2.5rem 1rem; text-align: center; }

.lead-drawer-backdrop {
  background: rgba(10, 12, 11, 0.52);
  inset: 0;
  position: fixed;
  z-index: 50;
}

.lead-drawer {
  background: #f7f8f6;
  box-shadow: -18px 0 50px rgba(0, 0, 0, 0.18);
  height: 100dvh;
  margin-left: auto;
  max-width: 510px;
  overflow-y: auto;
  width: min(100%, 510px);
}

.lead-drawer-header {
  align-items: flex-start;
  background: var(--ink);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  padding: 1.5rem;
}

.lead-detail-client { align-items: center; display: flex; gap: 0.9rem; }
.lead-avatar-large { background: var(--signal); border-color: var(--signal); color: var(--signal-dark); height: 46px; width: 46px; }
.lead-detail-client .section-kicker { color: var(--signal); }
.lead-detail-client h2 { font-size: 1.25rem; margin: 0; }
.lead-detail-client p { color: #aeb6af; font-size: 0.74rem; margin: 0.25rem 0 0; }

.drawer-close {
  align-items: center;
  background: transparent;
  border: 1px solid #424943;
  border-radius: 5px;
  color: var(--white);
  cursor: pointer;
  display: inline-flex;
  font-size: 1.25rem;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.lead-drawer-content { padding: 1.35rem; }
.detail-status-row { align-items: center; background: #edf0eb; border: 1px solid #d7ddd6; border-radius: 6px; display: flex; justify-content: space-between; padding: 0.75rem; }
.detail-status-row label { color: #59625a; font-size: 0.72rem; font-weight: 850; }
.detail-status-row select { min-width: 150px; }
.detail-section { border-bottom: 1px solid #dfe3de; padding: 1.3rem 0; }
.detail-section:last-child { border-bottom: 0; }
.detail-section h3 { font-size: 0.75rem; margin: 0 0 0.8rem; text-transform: uppercase; }
.detail-section p { color: #505a52; font-size: 0.8rem; line-height: 1.65; margin: 0; white-space: pre-wrap; }
.detail-list { display: grid; gap: 0.75rem; margin: 0; }
.detail-list > div { display: grid; gap: 1rem; grid-template-columns: 130px minmax(0, 1fr); }
.detail-list dt { color: #7b847c; font-size: 0.7rem; }
.detail-list dd { font-size: 0.76rem; font-weight: 700; margin: 0; overflow-wrap: anywhere; }
.detail-highlight { align-items: center; background: var(--white); border: 1px solid #d8ddd7; border-left: 4px solid var(--signal); border-radius: 5px; display: flex; gap: 0.8rem; justify-content: space-between; margin-bottom: 0.8rem; padding: 0.9rem; }
.detail-highlight strong { font-size: 0.82rem; }
.detail-highlight span { color: #3f531e; font-size: 0.78rem; font-weight: 850; white-space: nowrap; }

@media (max-width: 760px) {
  .header-actions,
  .lead-controls { width: 100%; }
  .header-actions .button,
  .lead-controls input,
  .lead-controls select { min-width: 0; width: 100%; }
  .dashboard-section-heading { align-items: stretch; }
  .lead-controls { flex-direction: column; }
  .lead-client { grid-column: 1 / -1; }
  .lead-client::before { display: none !important; }
  .dashboard-alert { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 520px) {
  .auth-panel { padding: 1.4rem; }
  .header-actions { flex-direction: column-reverse; }
  .lead-drawer-header,
  .lead-drawer-content { padding: 1rem; }
  .detail-list > div { gap: 0.25rem; grid-template-columns: 1fr; }
  .detail-highlight { align-items: flex-start; flex-direction: column; }
}
