:root {
  --blue: #075194;
  --blue-2: #2d7ac2;
  --light-blue: #a7ddfb;
  --panel: #eeeeee;
  --page: #ffffff;
  --border: #d8d8d8;
  --text: #151515;
  --muted: #646464;
  --disabled: #c7d8e6;
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  background: #fff;
  color: var(--text);
  font-size: 14px;
  margin: 0;
}

button,
input,
select {
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: 150px 1fr;
  min-height: 100vh;
}

.app-shell.is-locked {
  display: none;
}

.login-gate {
  align-items: center;
  background: #f5f7f9;
  display: grid;
  min-height: 100vh;
  padding: 24px;
}

.login-gate.is-unlocked {
  display: none;
}

.login-panel {
  background: var(--panel);
  border-radius: 5px;
  margin: 0 auto;
  max-width: 460px;
  overflow: hidden;
  width: 100%;
}

.login-body {
  padding: 22px;
}

.login-body h1 {
  font-size: 20px;
  margin: 0 0 10px;
}

.login-body p {
  color: #444;
  font-size: 13px;
  line-height: 1.45;
}

.login-body label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin: 14px 0 5px;
}

.login-body input {
  background: #fff;
  border: 1px solid #d4d4d4;
  border-radius: 4px;
  min-height: 38px;
  padding: 8px 10px;
  width: 100%;
}

.login-body .primary-pill {
  margin-top: 16px;
  width: 100%;
}

.login-body .outline-button {
  margin-top: 8px;
  width: 100%;
}

.app-nav {
  background: #f0f0f0;
  border-right: 1px solid #ddd;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 28px 14px;
}

.nav-item {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #1f1f1f;
  cursor: pointer;
  display: flex;
  gap: 7px;
  min-width: 0;
  min-height: 36px;
  padding: 8px 10px;
  text-align: left;
  width: 100%;
}

.nav-item span:last-child {
  min-width: 0;
  white-space: nowrap;
}

.nav-item.active {
  background: #fff;
  border-color: #dfdfdf;
}

.logout-item {
  margin-top: auto;
}

.nav-icon {
  color: var(--blue);
  display: inline-block;
  font-weight: 700;
  text-align: center;
  width: 16px;
}

.main-stage {
  padding: 38px 18px 32px;
  position: relative;
}

.view {
  display: none;
}

.active-view {
  display: block;
}

.page-card,
.my-estimates,
.support-form,
.reach-us,
.question-panel,
.estimate-summary,
.quote-preview {
  border-radius: 5px;
}

.page-card,
.my-estimates,
.question-panel,
.estimate-summary,
.quote-preview {
  background: var(--panel);
}

.page-card {
  margin: 0 auto;
  max-width: 1220px;
}

.blue-title,
.summary-title,
.question-titlebar {
  background: var(--blue);
  border-radius: 5px 5px 0 0;
  color: #fff;
  font-weight: 700;
  min-height: 34px;
  padding: 9px 13px;
}

.intro-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) 430px;
  padding: 22px;
}

.intro-copy h1,
.support-form h1,
.finish-copy h1 {
  font-size: 19px;
  line-height: 1.2;
  margin: 0 0 12px;
}

.intro-copy p,
.finish-copy p,
.support-form p {
  color: #333;
  font-size: 13px;
  line-height: 1.45;
}

.intro-image {
  align-self: stretch;
  border-radius: 3px;
  height: 336px;
  object-fit: cover;
  width: 100%;
}

.primary-pill,
.next-button {
  background: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  min-height: 34px;
  padding: 7px 16px;
}

.primary-pill:hover,
.next-button:hover {
  background: #063f72;
}

.site-footer {
  color: #333;
  display: flex;
  font-size: 11px;
  justify-content: space-between;
  margin: 72px auto 0;
  max-width: 1220px;
}

.my-estimates {
  margin: 18px auto;
  max-width: 1180px;
}

.estimate-dashboard {
  background: #dce5ec;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-stat {
  background: #fff;
  padding: 14px 16px;
}

.dashboard-stat span {
  color: #666;
  display: block;
  font-size: 11px;
  margin-bottom: 6px;
}

.dashboard-stat strong {
  color: #111;
  font-size: 18px;
}

.estimate-tools {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px 0 4px;
}

.estimate-tools input {
  border: 1px solid #d4d4d4;
  border-radius: 4px;
  min-height: 36px;
  padding: 8px 10px;
  width: 100%;
}

.estimate-section-head {
  align-items: flex-end;
  display: flex;
  justify-content: space-between;
  margin: 18px 0 8px;
}

.estimate-section-head h2 {
  font-size: 16px;
  margin: 0 0 4px;
}

.estimate-section-head p {
  color: #666;
  font-size: 12px;
  margin: 0;
}

.server-head {
  margin-top: 26px;
}

.estimate-row,
.create-row {
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  display: block;
  padding: 13px 16px;
  text-align: left;
  width: 100%;
}

.estimate-row-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
}

.server-estimate-row-wrap {
  grid-template-columns: minmax(0, 1fr) 82px 82px;
}

.server-group-card {
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.server-group-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
}

.server-group-head.has-delete-all {
  grid-template-columns: minmax(0, 1fr) 112px 142px;
}

.server-group-main {
  border-bottom: 1px solid #e8e8e8;
  font-weight: 700;
}

.server-version-list {
  background: #f8fafc;
  padding-left: 18px;
}

.server-version-row-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px 82px;
}

.server-version-row {
  align-items: center;
  background: #fbfbfb;
  border: 0;
  border-bottom: 1px solid #e2e7eb;
  color: #333;
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: 48px 92px minmax(80px, 1fr) minmax(120px, auto);
  min-height: 38px;
  padding: 8px 12px;
  text-align: left;
  width: 100%;
}

.server-version-row strong {
  color: var(--blue);
}

.server-version-row span {
  color: #666;
  font-size: 12px;
  min-width: 0;
}

.server-version-row:hover,
.server-group-main:hover {
  background: #f3f8fc;
}

.estimate-row span {
  color: #666;
  float: right;
  font-size: 12px;
}

.delete-estimate {
  background: #f6f6f6;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-left: 1px solid var(--border);
  color: #777;
  cursor: pointer;
  font-size: 12px;
}

.delete-estimate:hover {
  color: #a40000;
}

.delete-server-group,
.open-server-estimate {
  background: #f6f6f6;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-left: 1px solid var(--border);
  color: var(--blue);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.open-server-estimate:hover {
  color: #063f72;
}

.delete-server-group {
  color: #8a1f1f;
  font-weight: 700;
}

.delete-server-group:hover {
  color: #a40000;
}

.create-row {
  background: #e6e6e6;
  font-weight: 700;
}

.empty-estimates {
  background: #fff;
  border-bottom: 1px solid var(--border);
  color: #666;
  padding: 14px 16px;
}

.server-estimate-detail {
  background: #fff;
  border-top: 3px solid var(--blue);
  margin-top: 18px;
  min-height: 56px;
}

.server-detail-head {
  align-items: flex-start;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 18px;
}

.server-detail-head h3 {
  font-size: 18px;
  margin: 3px 0 6px;
}

.server-detail-head p {
  color: #666;
  font-size: 12px;
  line-height: 1.4;
  margin: 0;
}

.server-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.server-detail-tabs {
  background: #f6f8fa;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  padding: 8px 18px;
}

.server-detail-tab {
  background: #fff;
  border: 1px solid #dce5ec;
  border-radius: 999px;
  color: #24445e;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 11px;
}

.server-detail-grid {
  background: #dce5ec;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.server-detail-stat {
  background: #f9fbfc;
  padding: 14px 16px;
}

.server-detail-stat span {
  color: #666;
  display: block;
  font-size: 11px;
  margin-bottom: 6px;
}

.server-detail-stat strong {
  color: #111;
  font-size: 16px;
}

.server-detail-body {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  padding: 18px;
}

.server-detail-full {
  grid-column: 1 / -1;
}

.server-detail-section h4 {
  font-size: 14px;
  margin: 18px 0 10px;
}

.server-detail-section h4:first-child {
  margin-top: 0;
}

.server-detail-table {
  border-collapse: collapse;
  font-size: 12px;
  width: 100%;
}

.server-detail-table td,
.server-detail-table th {
  border-bottom: 1px solid #e8e8e8;
  padding: 8px 4px;
  text-align: left;
}

.server-detail-table th:nth-child(n + 2),
.server-detail-table td:nth-child(n + 2) {
  text-align: right;
}

.server-answer-list {
  display: grid;
  gap: 1px;
}

.server-answer-row {
  background: #f7f9fa;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.5fr);
  padding: 9px 10px;
}

.server-answer-row span {
  color: #555;
  font-size: 12px;
}

.server-answer-row strong {
  font-size: 12px;
  text-align: right;
}

.support-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 730px) 340px;
  margin: 28px auto;
  max-width: 1130px;
}

.support-form,
.reach-us,
.faq-section {
  background: var(--panel);
  padding: 18px;
}

.support-form label,
.field-label,
.settings-grid label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin: 12px 0 5px;
}

.support-form input,
.support-form textarea,
.input-row input,
.input-row select,
.input-row textarea,
.settings-grid input,
.settings-grid select {
  background: #fff;
  border: 1px solid #d4d4d4;
  border-radius: 4px;
  min-height: 37px;
  padding: 8px 10px;
  width: 100%;
}

.support-form textarea {
  font-family: inherit;
  line-height: 1.4;
  resize: vertical;
}

.input-row textarea {
  font-family: inherit;
  resize: vertical;
}

.input-row input {
  font-size: 15px;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  appearance: none;
  margin: 0;
}

input[type="number"] {
  appearance: textfield;
}

.two-cols {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
}

.small-copy {
  font-size: 11px;
}

.support-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}

.disabled-button {
  background: #e9e9e9;
  border: 1px solid #d6d6d6;
  color: #777;
  min-height: 33px;
  padding: 7px 12px;
}

.reach-us h2 {
  font-size: 14px;
  margin: 0 0 8px;
}

.reach-us p {
  line-height: 1.45;
  margin: 0 0 18px;
}

.faq-section {
  grid-column: 1 / -1;
}

.faq-section h2 {
  font-size: 16px;
  margin: 0 0 12px;
}

.faq-section details {
  background: #fff;
  border: 1px solid #dce5ec;
  border-radius: 5px;
  margin-top: 8px;
}

.faq-section summary {
  color: #24445e;
  cursor: pointer;
  font-weight: 700;
  padding: 11px 12px;
}

.faq-section p {
  border-top: 1px solid #eef2f5;
  color: #444;
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
  padding: 10px 12px 12px;
}

.wizard-layout {
  display: grid;
  gap: 12px;
  grid-template-columns: 260px minmax(0, 1fr);
  margin: 0 auto;
  max-width: 1230px;
}

.estimate-summary {
  align-self: start;
  overflow: hidden;
}

#summaryList {
  list-style: none;
  margin: 0;
  padding: 0;
}

#summaryList li {
  align-items: start;
  background: #e8e8e8;
  border-bottom: 1px solid #d4d4d4;
  cursor: pointer;
  display: grid;
  gap: 8px;
  grid-template-columns: 24px minmax(0, 1fr) minmax(58px, auto);
  min-height: 42px;
  padding: 10px 9px;
}

.summary-step-button {
  align-items: start;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: grid;
  font: inherit;
  gap: 8px;
  grid-template-columns: 24px minmax(0, 1fr) minmax(58px, auto);
  min-height: 42px;
  padding: 10px 9px;
  text-align: left;
  width: 100%;
}

.summary-step-button span {
  min-width: 0;
}

.summary-step-button > span:nth-child(2) {
  line-height: 1.25;
  overflow-wrap: normal;
  word-break: normal;
}

.summary-step-button:hover,
.summary-step-button:focus-visible {
  background: #f5f5f5;
  outline: none;
}

#summaryList li.active {
  background: #f5f5f5;
  font-weight: 700;
}

#summaryList li:hover,
#summaryList li:focus-visible {
  background: #f5f5f5;
  outline: none;
}

.summary-index {
  color: #555;
}

.summary-value {
  color: #333;
  font-size: 12px;
  text-align: right;
}

.question-panel {
  min-height: 314px;
  overflow: visible;
}

.question-titlebar {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.question-titlebar button {
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  font-size: 17px;
}

.question-content {
  min-height: 210px;
  padding: 18px 20px 8px;
}

.question-content h1 {
  font-size: 18px;
  margin: 0 0 8px;
}

.hint {
  color: #333;
  font-size: 12px;
  line-height: 1.4;
  margin: 0 0 16px;
}

.question-kicker {
  color: #111;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 7px;
}

.hint .info-dot {
  margin-left: 5px;
}

.validation-message {
  background: #fff5df;
  border: 1px solid #e8c77d;
  border-radius: 4px;
  color: #794900;
  font-size: 12px;
  margin: 14px 0 0;
  padding: 10px;
}

.choice-grid {
  display: grid;
  gap: 12px;
}

.choice-grid.five {
  grid-template-columns: repeat(5, minmax(100px, 1fr));
}

.choice-grid.three {
  grid-template-columns: repeat(3, minmax(150px, 1fr));
}

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

.choice-card {
  align-items: center;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #555;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 11px;
  justify-content: center;
  min-height: 126px;
  padding: 14px 10px;
  text-align: center;
}

.choice-card.selected {
  background: #4287cf;
  border-color: var(--blue);
  color: #fff;
}

.choice-icon {
  font-size: 33px;
  line-height: 1;
}

.coming {
  color: #777;
  display: block;
  font-size: 11px;
  font-weight: 400;
  margin-top: 5px;
}

.form-stack {
  display: grid;
  gap: 14px;
}

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

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

.input-row {
  display: grid;
  gap: 7px;
}

.unit-control {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) 68px;
}

.unit-control.fixings-control {
  grid-template-columns: minmax(0, 1fr) 150px;
}

.unit-select {
  min-width: 76px;
}

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

.field-help {
  color: #555;
  font-size: 12px;
  line-height: 1.4;
  margin: -2px 0 0;
}

.review-note {
  background: #fff6e7;
  border: 1px solid #f0cf92;
  border-radius: 4px;
  color: #7a4b00;
  font-size: 12px;
  line-height: 1.4;
  margin: 0 0 14px;
  padding: 10px;
}

.radio-row {
  align-items: center;
  display: flex;
  gap: 13px;
}

.radio-row label {
  align-items: center;
  display: flex;
  gap: 5px;
  margin: 0;
}

.radio-row input {
  accent-color: #00a9c8;
}

.info-dot {
  align-items: center;
  background: #fff;
  border: 1px solid #333;
  border-radius: 50%;
  color: #333;
  cursor: help;
  display: inline-flex;
  font-size: 10px;
  height: 15px;
  justify-content: center;
  padding: 0;
  width: 15px;
}

.info-wrap {
  display: inline-flex;
  margin-left: 5px;
  position: relative;
  vertical-align: middle;
}

.info-popover {
  background: #fff;
  border: 1px solid #b7c6d2;
  border-radius: 5px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
  color: #222;
  display: none;
  font-size: 12px;
  font-weight: 400;
  left: 50%;
  line-height: 1.4;
  max-width: min(360px, calc(100vw - 48px));
  min-width: 260px;
  padding: 10px 12px;
  position: absolute;
  text-align: left;
  top: calc(100% + 8px);
  transform: translateX(-50%);
  white-space: normal;
  z-index: 30;
}

.info-popover::before {
  background: #fff;
  border-left: 1px solid #b7c6d2;
  border-top: 1px solid #b7c6d2;
  content: "";
  height: 8px;
  left: 50%;
  position: absolute;
  top: -5px;
  transform: translateX(-50%) rotate(45deg);
  width: 8px;
}

.info-wrap:hover .info-popover,
.info-wrap:focus-within .info-popover,
.info-wrap.open .info-popover {
  display: block;
}

.question-actions {
  align-items: center;
  border-top: 1px solid #dedede;
  display: flex;
  gap: 9px;
  padding: 12px 20px 8px;
}

.outline-button {
  background: #fff;
  border: 1px solid var(--blue);
  border-radius: 999px;
  color: var(--blue);
  cursor: pointer;
  font-weight: 700;
  min-height: 34px;
  padding: 7px 14px;
}

.outline-button:disabled,
.next-button:disabled {
  background: #e5eef6;
  border-color: #c8d9e9;
  color: #82a5c3;
  cursor: default;
}

.temp-skip-button {
  border-color: #a66a00;
  color: #8a5300;
}

.progress-wrap {
  padding: 8px 20px 16px;
  text-align: center;
}

.progress-track {
  background: var(--light-blue);
  height: 7px;
  overflow: hidden;
}

.progress-track span {
  background: var(--blue-2);
  display: block;
  height: 100%;
  transition: width 180ms ease;
}

.progress-wrap p {
  color: #666;
  font-size: 11px;
  margin: 8px 0 0;
}

.chat-button {
  align-items: center;
  background: #1da1f2;
  border: 0;
  border-radius: 50%;
  bottom: 26px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: 18px;
  height: 44px;
  justify-content: center;
  position: fixed;
  right: 26px;
  width: 44px;
}

.app-status {
  background: #123f6c;
  border-radius: 999px;
  bottom: 28px;
  color: #fff;
  left: 140px;
  opacity: 0;
  padding: 10px 14px;
  pointer-events: none;
  position: fixed;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 20;
}

.app-status.visible {
  opacity: 1;
  transform: translateY(0);
}

.server-save-notice {
  background: #fff;
  border: 2px solid #123f6c;
  border-radius: 6px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
  color: #123f6c;
  display: none;
  font-size: 16px;
  font-weight: 800;
  left: 50%;
  max-width: min(420px, calc(100vw - 32px));
  padding: 16px 18px;
  position: fixed;
  text-align: center;
  top: 20px;
  transform: translateX(-50%);
  z-index: 50;
}

.server-save-notice.visible {
  display: block;
}

.server-save-notice.warning {
  border-color: #b3261e;
  color: #b3261e;
}

.build-marker {
  color: #6d7f8e;
  display: inline-block;
  font-size: 11px;
  margin-right: 12px;
}

.quote-preview {
  margin: 0 auto;
  max-width: 1200px;
  overflow: hidden;
}

.finish-copy {
  padding: 18px 20px 4px;
}

.quote-paper {
  background: #fff;
  border-radius: 3px;
  margin: 12px 20px 22px;
  padding: 22px;
}

.quote-head,
.customer-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.quote-head h2,
.customer-row h3 {
  font-size: 17px;
  margin: 0 0 6px;
}

.quote-head p,
.customer-row p {
  font-size: 12px;
  line-height: 1.45;
  margin: 0 0 10px;
}

.quote-logo {
  color: #111;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.84;
  text-align: right;
}

.quote-logo span {
  color: var(--blue);
}

.description-table {
  border-collapse: collapse;
  font-size: 12px;
  margin-top: 22px;
  width: 100%;
}

.quote-main-summary {
  background: #f3f6f8;
  border: 1px solid #dce5ec;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
  margin: 18px 0 4px;
}

.quote-main-summary div {
  background: #fff;
  display: grid;
  gap: 5px;
  padding: 12px;
}

.quote-main-summary span {
  color: #555;
  font-size: 11px;
}

.quote-main-summary strong {
  font-size: 17px;
}

.description-table th,
.description-table td {
  border-bottom: 1px solid #e2e2e2;
  padding: 12px 8px;
  text-align: left;
}

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

.quote-totals {
  margin-left: auto;
  max-width: 360px;
  padding: 12px 0;
}

.quote-notes,
.hubspot-readiness {
  background: #f7f9fa;
  border: 1px solid #dce5ec;
  margin-top: 14px;
  padding: 12px;
}

.quote-notes:empty,
.hubspot-readiness:empty {
  display: none;
}

.quote-notes h3,
.hubspot-readiness h3 {
  font-size: 14px;
  margin: 0 0 8px;
}

.quote-notes p,
.hubspot-readiness p {
  color: #444;
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
}

.readiness-details summary {
  color: #24445e;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.readiness-details[open] summary {
  margin-bottom: 8px;
}

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

.readiness-item {
  align-items: center;
  background: #fff;
  border: 1px solid #e3e8ed;
  display: flex;
  gap: 8px;
  min-height: 36px;
  padding: 8px 10px;
}

.readiness-dot {
  border-radius: 999px;
  flex: 0 0 auto;
  height: 9px;
  width: 9px;
}

.readiness-dot.ready {
  background: #198754;
}

.readiness-dot.missing {
  background: #b3261e;
}

.hubspot-preview {
  border-collapse: collapse;
  font-size: 12px;
  margin-top: 12px;
  width: 100%;
}

.hubspot-preview td {
  border-top: 1px solid #e3e8ed;
  padding: 7px 4px;
}

.hubspot-preview td:first-child {
  color: #555;
  width: 36%;
}

.quote-total-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
}

.quote-total-row.total {
  border-top: 1px solid #cfcfcf;
  font-weight: 700;
}

.terms-line {
  align-items: center;
  display: flex;
  gap: 8px;
  font-size: 12px;
}

.quote-actions {
  border-top: 1px solid #dce5ec;
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
}

.customer-quote-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: flex-end;
}

.dev-tools-panel {
  background: #f7f9fa;
  border: 1px solid #dce5ec;
  border-radius: 5px;
  margin-left: auto;
  max-width: 520px;
  width: 100%;
}

.dev-tools-panel summary {
  color: #555;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 12px;
}

.dev-tool-actions {
  border-top: 1px solid #dce5ec;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  padding: 10px 12px 12px;
}

.dev-tool-actions .outline-button {
  border-color: #b7c6d2;
  color: #3f5f78;
}

.order-status-message {
  background: #f4f8fb;
  border: 1px solid #d3e2ee;
  border-radius: 4px;
  color: #24445e;
  font-size: 12px;
  margin: 10px 0 0;
  min-height: 18px;
  padding: 9px 10px;
}

.order-status-message.warning {
  background: #fff6e7;
  border-color: #f0cf92;
  color: #8a5300;
}

.order-status-message.success {
  background: #edf8f1;
  border-color: #b7dfc6;
  color: #116b37;
}

dialog {
  border: 0;
  border-radius: 8px;
  max-width: 960px;
  width: min(960px, calc(100vw - 32px));
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.28);
}

.settings-dialog {
  margin: 0;
  padding: 20px;
}

.settings-head {
  align-items: start;
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.settings-head h2 {
  margin: 0;
}

.mini-label {
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  margin: 0 0 5px;
  text-transform: uppercase;
}

.settings-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  margin-bottom: 16px;
}

.settings-grid p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  margin: 4px 0 0;
}

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

  .app-nav {
    border-bottom: 1px solid #ddd;
    border-right: 0;
    flex-direction: row;
    padding: 10px;
  }

  .wizard-layout,
  .intro-grid,
  .support-layout {
    grid-template-columns: 1fr;
  }

  .choice-grid.five,
  .choice-grid.three,
  .choice-grid.two,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .server-group-head,
  .server-version-row-wrap {
    grid-template-columns: 1fr;
  }

  .server-version-list {
    padding-left: 0;
  }

  .server-version-row {
    grid-template-columns: 44px 86px minmax(0, 1fr);
  }

  .unit-control,
  .unit-control.fixings-control {
    grid-template-columns: 1fr;
  }

  .customer-quote-actions,
  .dev-tool-actions {
    justify-content: stretch;
  }

  .customer-quote-actions button,
  .dev-tool-actions button {
    width: 100%;
  }

  .dev-tools-panel {
    max-width: none;
  }

  .main-stage {
    padding: 14px;
  }
}

@media print {
  .app-nav,
  .chat-button,
  .question-actions,
  .progress-wrap,
  .quote-actions,
  .terms-line,
  .order-status-message,
  .finish-copy {
    display: none;
  }

  .app-shell {
    display: block;
  }

  .main-stage {
    padding: 0;
  }

  .quote-preview {
    background: #fff;
    max-width: none;
  }

  .quote-paper {
    margin: 0;
    padding: 0;
  }
}


.project-folder-card {
  background: #fff;
  border-bottom: 3px solid var(--blue);
  margin-bottom: 12px;
}

.project-folder-head {
  align-items: center;
  background: #eef4f9;
  border-bottom: 1px solid var(--border);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 14px 18px;
}

.project-folder-head h3 {
  color: #111;
  font-size: 18px;
  margin: 0 0 3px 0;
}

.project-folder-head p {
  color: #555;
  font-size: 13px;
  margin: 0;
}

.project-folder-head strong {
  color: var(--blue);
  font-size: 13px;
  white-space: nowrap;
}

.project-folder-kicker {
  color: var(--blue) !important;
  font-size: 11px !important;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}


.draft-save-status {
  align-self: center;
  color: #666;
  font-size: 12px;
  padding: 0 8px;
}

.draft-save-status.success {
  color: #1f7a3a;
  font-weight: 700;
}

.draft-save-status.warning {
  color: #a66a00;
  font-weight: 700;
}


.pending-order-panel {
  background: #f8fafc;
  border: 1px solid #dce5ec;
  border-radius: 5px;
  margin-top: 18px;
  padding: 0;
  overflow: hidden;
}

.pending-order-header {
  align-items: center;
  background: #eef4f9;
  border-bottom: 1px solid #dce5ec;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 14px 16px;
}

.pending-order-header h3 {
  color: #111;
  font-size: 18px;
  margin: 0 0 3px 0;
}

.pending-order-header p {
  color: #555;
  font-size: 13px;
  margin: 0;
}

.pending-order-header span {
  border: 1px solid var(--blue);
  border-radius: 999px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  white-space: nowrap;
}

.pending-order-sections {
  display: grid;
  gap: 0;
}

.pending-order-section {
  border-bottom: 1px solid #e3e8ed;
  padding: 14px 16px;
}

.pending-order-section:last-of-type {
  border-bottom: 0;
}

.pending-order-section h4 {
  color: var(--blue);
  font-size: 13px;
  margin: 0 0 10px 0;
  text-transform: uppercase;
}

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

.pending-order-section label {
  color: #333;
  display: grid;
  font-size: 13px;
  font-weight: 700;
  gap: 5px;
}

.pending-order-grid .wide {
  grid-column: 1 / -1;
}

.pending-order-section input,
.pending-order-section textarea {
  background: #fff;
  border: 1px solid #cfd8df;
  border-radius: 4px;
  font: inherit;
  font-weight: 400;
  min-height: 42px;
  padding: 10px;
  width: 100%;
}

.pending-order-section textarea {
  min-height: 78px;
  resize: vertical;
}

.pending-confirmation {
  align-items: flex-start;
  background: #fff;
  border-top: 1px solid #dce5ec;
  display: flex;
  gap: 10px;
  line-height: 1.35;
  margin: 0;
  padding: 14px 16px;
}

.pending-confirmation input {
  margin-top: 2px;
}

.pending-confirmation span {
  color: #333;
  font-size: 13px;
}

@media (max-width: 760px) {
  .pending-order-header,
  .pending-order-grid {
    grid-template-columns: 1fr;
  }

  .pending-order-header span {
    width: fit-content;
  }
}

.quote-total-row.discount-row {
  color: #075194;
}
