.error-box,
.success-box {
  padding: 16px 20px;
  border-radius: 8px;
  margin: 16px 0;
  line-height: 1.5;
}
.error-box {
  background: #fff0ec;
  color: #8a2e19;
  border: 1px solid #d79b89;
}
.success-box {
  background: #eaf4f3;
  color: #19383c;
  border: 1px solid #9bbebb;
}
.error-box[hidden],
.success-box[hidden] {
  display: none;
}
.portal {
  background: #f6f9f8;
  color: #19383c;
}
.portal-header {
  background: white;
  border-bottom: 1px solid #cedddb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px max(24px, calc((100vw - 1240px) / 2));
}
.portal-header .brand img {
  width: 42px;
  height: 42px;
}
.portal-header a {
  text-decoration: none;
}
.portal-header button {
  background: none;
  border: 0;
  color: #147786;
  text-decoration: underline;
  padding: 10px;
}
.portal-message {
  max-width: 1160px;
  margin: 16px auto;
}
.login-panel {
  max-width: 440px;
  margin: 8vh auto;
  padding: 32px;
  background: #fff;
  border: 1px solid #cedddb;
  border-radius: 16px;
}
.login-panel h1 {
  font-size: 36px;
  line-height: 1.1;
}
.login-panel p {
  margin: 16px 0;
  color: #52656a;
}
.portal input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
.portal select,
.portal textarea {
  width: 100%;
  background: white;
  border: 1px solid #aabfbe;
  border-radius: 8px;
  padding: 12px 14px;
  font: inherit;
  color: #19383c;
  min-height: 46px;
  box-sizing: border-box;
}
.portal label {
  display: block;
  margin: 18px 0 7px;
  font-size: 14px;
  font-weight: 600;
}
.portal .check-line,
.check-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
  margin: 18px 0;
}
.check-line input {
  width: 20px !important;
  height: 20px;
  min-height: 20px !important;
  flex-shrink: 0;
  accent-color: #147786;
  margin-top: 2px;
}
.portal .full {
  margin-top: 24px;
}
.portal-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 36px 24px 80px;
}
.portal-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.portal-title h1 {
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin: 4px 0 10px;
}
.portal-title p {
  color: #52656a;
  max-width: 650px;
  line-height: 1.6;
}
.portal-nav {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid #cedddb;
  overflow: auto;
  margin-bottom: 32px;
}
.portal-nav button {
  white-space: nowrap;
  padding: 14px 18px;
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  color: #52656a;
  font: inherit;
  cursor: pointer;
}
.portal-nav button.active {
  color: #147786;
  border-color: #147786;
  font-weight: 700;
}
.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
}
.settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 36px;
  align-items: start;
}
.settings-main,
.surface {
  background: white;
  padding: 28px;
  border: 1px solid #cedddb;
  border-radius: 12px;
}
.settings-main h2,
.surface h2 {
  font-size: 24px;
  line-height: 1.25;
  margin: 0 0 10px;
}
.settings-main h3 {
  font-size: 19px;
  margin: 24px 0 12px;
}
.settings-main p,
.surface p {
  line-height: 1.6;
  color: #52656a;
}
.settings-main details {
  margin: 24px 0;
  border-top: 1px solid #cedddb;
  padding-top: 20px;
}
.settings-main summary {
  cursor: pointer;
  font-weight: 600;
}
.settings-main fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
.control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
}
.control-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.dial {
  display: grid;
  grid-template-columns: 1fr 88px;
  gap: 14px;
  align-items: center;
}
.dial input[type="range"] {
  width: 100%;
  accent-color: #147786;
  min-height: 36px;
}
.preview-price {
  position: sticky;
  top: 24px;
  background: #eaf4f3;
  padding: 26px;
  border-radius: 12px;
}
.preview-price h2 {
  font-size: 20px;
  margin: 0 0 14px;
}
.preview-price .amount {
  display: block;
  font-size: 44px;
  letter-spacing: -1.8px;
  font-weight: 700;
  margin: 20px 0 0;
}
.preview-price p {
  font-size: 14px;
  line-height: 1.6;
  color: #52656a;
}
.preview-price label {
  font-size: 13px;
}
.save-bar {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #cedddb;
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}
.save-bar small {
  color: #52656a;
  line-height: 1.6;
  max-width: 310px;
}
.record {
  padding: 22px 0;
  border-bottom: 1px solid #cedddb;
}
.record:first-child {
  padding-top: 0;
}
.record:last-child {
  border-bottom: 0;
}
.record h3 {
  font-size: 19px;
  margin: 0 0 8px;
}
.record p {
  font-size: 14px;
  margin: 6px 0;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.record summary {
  cursor: pointer;
}
.record .meta {
  font-size: 13px;
  color: #52656a;
}
.record-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.status {
  background: #eaf4f3;
  color: #255d63;
  border-radius: 30px;
  display: inline-block;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  align-self: flex-start;
}
.status.sandbox {
  background: #f7eed7;
  color: #715714;
}
.empty {
  padding: 32px 0;
  color: #52656a;
  line-height: 1.7;
}
.next-action {
  padding: 18px 0;
  border-bottom: 1px solid #cedddb;
}
.next-action h3 {
  font-size: 17px;
  margin: 0 0 8px;
}
.next-action p {
  font-size: 14px;
  margin: 0;
}
.checklist-readiness {
  padding: 0;
  list-style: none;
}
.checklist-readiness li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid #cedddb;
}
.checklist-readiness small {
  color: #52656a;
}
.small-button {
  border: 1px solid #9db6b6;
  background: white;
  color: #147786;
  border-radius: 7px;
  padding: 10px 14px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  margin: 8px 6px 0 0;
}
.small-button:disabled {
  opacity: 0.5;
  cursor: default;
}
.quiet {
  color: #52656a;
  font-size: 13px;
  line-height: 1.6;
}
.visit-shell {
  max-width: 720px;
  margin: 48px auto;
  padding: 0 24px 60px;
}
.visit-shell h1 {
  font-size: clamp(36px, 6vw, 52px);
  line-height: 1.1;
  letter-spacing: -1.5px;
}
.visit-shell .surface {
  margin: 24px 0;
}
.private-link {
  word-break: break-all;
  font-size: 13px;
}
.price-trace {
  list-style: none;
  padding: 0;
}
.price-trace li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid #cedddb;
  font-size: 14px;
}
.price-trace li span:last-child {
  white-space: nowrap;
}
.portal .btn {
  cursor: pointer;
}
.portal button:focus-visible,
.portal input:focus-visible,
.portal a:focus-visible,
.portal select:focus-visible,
.portal summary:focus-visible {
  outline: 3px solid #147786;
  outline-offset: 4px;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
textarea {
  resize: vertical;
}
.tab-panel[hidden] {
  display: none;
}
.service-grid {
  padding-bottom: 18px;
  border-bottom: 1px solid #e1e9e7;
}
.split-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.split-line label {
  margin: 0;
}
.portal legend {
  font-weight: 700;
  margin: 20px 0 4px;
}
.portal ul {
  line-height: 1.8;
}
.portal table {
  width: 100%;
  font-size: 14px;
  border-collapse: collapse;
}
.portal td,
.portal th {
  text-align: left;
  padding: 12px 8px;
  border-bottom: 1px solid #cedddb;
}
.scroll-table {
  overflow: auto;
}
@media (max-width: 850px) {
  .dashboard-layout,
  .settings-layout {
    grid-template-columns: 1fr;
  }
  .preview-price {
    position: static;
    grid-row: 1;
  }
  .portal-shell {
    padding: 24px 18px 60px;
  }
  .portal-header {
    padding: 16px 18px;
  }
  .settings-main,
  .surface {
    padding: 22px;
  }
  .portal-message {
    margin: 12px 18px;
  }
  .portal-title {
    display: block;
  }
  .portal-title .status {
    margin-top: 10px;
    display: inline-block;
  }
  .control-grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .login-panel {
    margin: 32px 18px;
  }
  .portal-nav button {
    padding: 14px 10px;
  }
  .preview-price .control-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .preview-price {
    padding: 22px;
  }
  .portal-title p {
    font-size: 15px;
  }
}
@media (max-width: 420px) {
  .control-grid,
  .control-grid.three {
    grid-template-columns: 1fr;
  }
  .preview-price .control-grid {
    grid-template-columns: 1fr 1fr;
  }
  .record-top {
    display: block;
  }
  .record-top .status {
    margin-bottom: 10px;
  }
  .brand-small {
    font-size: 11px;
  }
  .portal-header .brand {
    font-size: 17px;
  }
  .portal-header .brand img {
    width: 34px;
    height: 34px;
  }
}
button.back-link {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  color: #52656a;
}
.skip:not(:focus) {
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
}
.skip:focus {
  clip-path: none;
  width: auto;
  height: auto;
  top: 12px;
  padding: 14px 24px;
}
.journey-form .field-pair > div {
  min-width: 0;
}

/* Residential operations use quiet rows and one focused task at a time. */
.filter-bar {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px 20px;
  padding: 8px 0 24px;
  border-bottom: 1px solid #cedddb;
}
.filter-more,
.filter-actions {
  grid-column: 1/-1;
}
.filter-more summary {
  cursor: pointer;
  color: #147786;
  margin-top: 12px;
}
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
}
.search-line {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  margin-bottom: 24px;
}
.search-line > div {
  flex: 1;
  min-width: 0;
}
.search-line button {
  margin-bottom: 0;
}
.record-links {
  margin: 8px 0 16px;
  display: flex;
  flex-wrap: wrap;
}
a.small-button {
  text-decoration: none;
  display: inline-block;
}
.care-note {
  background: #eaf4f3;
  border-left: 3px solid #147786;
  padding: 16px 20px;
  margin: 20px 0;
}
.care-note h3,
.care-note h4 {
  margin: 0 0 6px;
  font-size: 16px;
}
.preserve-lines {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.customer-title {
  margin: 28px 0 12px;
}
.section-gap {
  margin: 32px 0 12px;
}
.recurring-list {
  margin: 28px 0 12px;
  border-top: 1px solid #cedddb;
  padding-top: 24px;
}
.recurring-list summary {
  cursor: pointer;
  font-weight: 600;
}
.team-shell {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.team-shell h1 {
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 12px;
}
.team-shell h2 {
  margin: 18px 0 12px;
}
.team-shell p {
  line-height: 1.7;
}
.team-job {
  margin: 24px 0;
}
.team-job h3 {
  font-size: 18px;
  margin: 24px 0 12px;
}
.team-filters {
  display: flex;
  gap: 8px;
  margin: 20px 0;
  flex-wrap: wrap;
}
.team-filters [aria-pressed="true"] {
  background: #147786;
  color: white;
  border-color: #147786;
}
.schedule-visits {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}
.schedule-range {
  max-width: 540px;
}
.schedule-range .save-bar {
  flex-wrap: wrap;
}
.portal input:disabled,
.portal textarea:disabled {
  opacity: 0.7;
}
.portal textarea:focus-visible {
  outline: 3px solid #147786;
  outline-offset: 4px;
}
.record details > summary {
  padding: 8px 0;
}
.record h4 {
  font-size: 16px;
}
.print-check {
  padding: 10px 0;
  border-bottom: 1px solid #cedddb;
}
@media (max-width: 700px) {
  .filter-bar {
    grid-template-columns: 1fr;
  }
  .search-line {
    display: block;
  }
  .pager {
    flex-wrap: wrap;
  }
  .team-shell .split-line {
    display: block;
  }
  .team-shell {
    padding: 28px 18px 60px;
  }
  .team-job {
    padding: 20px;
  }
  .team-job .save-bar {
    display: block;
  }
  .team-job .save-bar button {
    width: 100%;
    margin-top: 12px;
  }
}
@media print {
  body.portal {
    background: white;
    font-size: 12pt;
  }
  .print-actions {
    display: none;
  }
  .visit-shell {
    max-width: none;
    margin: 0;
    padding: 0;
  }
  .surface {
    border: 0;
    padding: 0;
  }
  .visit-shell h1 {
    font-size: 28pt;
  }
  .print-check {
    break-inside: avoid;
  }
  a {
    color: inherit;
  }
  body {
    color: #000;
  }
}

.availability-planner {
  border-top: 1px solid #cedddb;
  margin-top: 28px;
  padding-top: 24px;
}
.availability-planner summary {
  font-weight: 600;
  cursor: pointer;
  color: #147786;
}
.weekday-choices {
  padding: 0;
  border: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 8px;
}
.weekday-choices .check-line {
  margin: 8px 0;
  font-size: 13px;
}
.plan-window-list {
  max-height: 300px;
  overflow: auto;
  border-top: 1px solid #cedddb;
}
.plan-window-list p {
  font-size: 13px;
  padding: 10px 0;
  border-bottom: 1px solid #cedddb;
}
.plan-window-list small {
  color: #52656a;
}

/* The time clock is the main action; history stays folded below it. */
.clock-panel {
  margin: 28px 0 14px;
  border-top: 4px solid #147786;
}
.clock-panel h2 {
  margin: 0;
}
.clock-total {
  font-size: clamp(40px, 8vw, 56px);
  font-weight: 650;
  letter-spacing: -1.6px;
  margin: 20px 0 0;
  font-variant-numeric: tabular-nums;
}
.clock-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 22px;
}
.clock-actions .small-button {
  margin: 0;
}
.time-history {
  margin-bottom: 28px;
}
.time-history > summary {
  font-weight: 650;
  cursor: pointer;
}
.time-summary {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  padding: 24px 0 0;
}
.time-summary strong {
  font-size: 28px;
  color: #19383c;
}
.time-lines {
  border-left: 3px solid #cedddb;
  padding-left: 18px;
}
.time-lines p {
  padding: 8px 0;
}
.time-editor {
  width: min(760px, calc(100vw - 32px));
  box-sizing: border-box;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid #aabfbe;
  border-radius: 12px;
  padding: 28px;
  color: #19383c;
}
.time-editor::backdrop {
  background: #19383c99;
}
.time-editor h2 {
  margin: 0 0 10px;
  font-size: 28px;
}
.time-entry {
  border-bottom: 1px solid #cedddb;
  padding: 12px 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 18px;
}
.time-entry > div:first-child,
.time-entry > p {
  grid-column: 1/-1;
}
@media (max-width: 600px) {
  .time-summary {
    gap: 12px 28px;
  }
  .time-editor {
    padding: 20px;
  }
  .time-entry {
    grid-template-columns: 1fr;
  }
  .clock-actions > button {
    flex: 1 1 140px;
  }
  .clock-panel .control-grid {
    grid-template-columns: 1fr;
  }
}
.clock-choices {
  margin: 18px 0;
}
.clock-choices summary {
  cursor: pointer;
  color: #147786;
  font-weight: 600;
}

/* Pay preparation follows the same quiet, single-column review flow as timesheets. */
.pay-review,
.pay-freeze,
.pay-history {
  padding-block: 1.5rem;
  border-top: 1px solid var(--line, #dce6e4);
}
.pay-review li {
  margin-block: 0.5rem;
}
.pay-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
}
.pay-amounts p {
  margin-block: 0.5rem;
  font-size: 0.9rem;
}
.pay-amounts strong {
  color: var(--ink, #19383c);
  font-size: 1.1rem;
}
.pay-allocation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: end;
  margin-block: 1rem;
}
.pay-allocation [hidden] {
  display: none;
}
.view-pay .record,
#pay-packet-dialog {
  overflow-wrap: anywhere;
}
#pay-packet-dialog details {
  margin-block: 1.3rem;
}
@media (max-width: 600px) {
  .pay-allocation {
    grid-template-columns: minmax(0, 1fr);
  }
  .pay-allocation button {
    justify-self: start;
  }
}

/* Residential checkout: one decision at a time, with the agreed price in view. */
.journey-recap {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  border-block: 1px solid #cedddb;
  padding: 18px 0;
  margin: 24px 0;
}
.journey-recap div {
  min-width: 0;
}
.journey-recap span {
  display: block;
  color: #52656a;
  font-size: 14px;
  margin-top: 4px;
}
.journey-recap > strong {
  font-size: 24px;
  white-space: nowrap;
}
.checkout-summary {
  background: #f6f9f8;
  border-radius: 12px;
  padding: 24px;
  margin: 24px 0;
}
.checkout-summary-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.checkout-summary-heading h3 {
  margin: 0;
  font-weight: 600;
  font-size: 20px;
}
.checkout-summary .summary-list {
  margin: 0;
}
.checkout-summary dd {
  overflow-wrap: anywhere;
}
.checkout-edit-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 20px;
}
.journey-form .text-link {
  background: none;
  border: 0;
  color: #105e6a;
  padding: 8px 0;
}
.demo-payment,
.checkout-payment {
  padding-block: 12px 20px;
}
.demo-label {
  background: #eaf4f3;
  border-radius: 5px;
  padding: 4px 10px;
  font-size: 13px;
  white-space: nowrap;
}
.demo-payment .demo-card {
  border: 2px solid #147786;
  background: #f3faf9;
}
.demo-options {
  margin-top: 16px;
}
.demo-options summary {
  font-size: 14px;
  color: #52656a;
}
.demo-options label {
  margin-top: 12px;
}
.checkout-reassurance {
  color: #52656a;
  font-size: 14px;
  text-align: center;
  margin: 12px 0 0;
}
.coverage-note {
  margin-block: 16px;
  font-size: 14px;
}
#home-error .small-button {
  display: block;
  margin-top: 14px;
}
@media (max-width: 600px) {
  .checkout-summary {
    padding: 20px 16px;
  }
  .checkout-summary .summary-list > div {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 12px;
  }
  .checkout-summary .summary-list dd {
    text-align: left;
  }
  .journey-progress {
    gap: 10px;
    font-size: 12px;
  }
  .checkout-summary-heading {
    align-items: flex-start;
  }
}

/* Business setup and migration evidence */
.hours-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 1fr 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line, #d9e4e3);
}
.recovery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.recovery-grid h2 {
  font-size: 1.25rem;
}
.source-checksum {
  overflow-wrap: anywhere;
}
@media (max-width: 700px) {
  .recovery-grid {
    grid-template-columns: 1fr;
  }
  .hours-row {
    gap: 10px;
    grid-template-columns: minmax(95px, 1fr) 1fr 1fr;
  }
  .hours-row input[type="time"] {
    min-width: 0;
    width: 100%;
    padding: 10px 4px;
  }
}
@media (max-width: 700px) {
  .hours-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .hours-row > label {
    grid-column: 1/-1;
    margin: 0;
  }
  .hours-row > div {
    min-width: 0;
  }
}
/* A launch path with evidence, rather than a percentage of unlike work. */
.roadmap-intro {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  margin: 8px 0 32px;
}
.roadmap-intro h2 {
  font-size: 30px;
  line-height: 1.2;
  margin: 0 0 16px;
  max-width: 700px;
}
.roadmap-intro p {
  max-width: 740px;
  color: #52656a;
  line-height: 1.6;
}
.roadmap-position {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-size: 14px;
}
.roadmap-position strong {
  color: #19383c;
}
.roadmap-path {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0;
  margin: 0 0 36px;
  border-block: 1px solid #cedddb;
}
.roadmap-path li {
  padding: 24px 20px 24px 0;
  display: flex;
  gap: 12px;
  border-right: 1px solid #cedddb;
  margin: 0 0 0 20px;
}
.roadmap-path li:first-child {
  margin-left: 0;
}
.roadmap-path li:last-child {
  border: 0;
}
.roadmap-path h3 {
  font-size: 17px;
  line-height: 1.35;
  margin: 0;
}
.roadmap-path p {
  font-size: 13px;
  color: #52656a;
  margin: 10px 0 0;
  line-height: 1.4;
}
.roadmap-step {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  height: 28px;
  border: 1px solid #9bbebb;
  border-radius: 50%;
  font-size: 14px;
}
.roadmap-path .current .roadmap-step {
  background: #147786;
  color: white;
  border-color: #147786;
}
.roadmap-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 32px;
  align-items: start;
}
.roadmap-layout > *,
.roadmap-intro > * {
  min-width: 0;
}
.roadmap-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.roadmap-filters button {
  padding: 10px 16px;
  border: 1px solid #9bbebb;
  border-radius: 6px;
  background: white;
  color: #19383c;
  font-size: 14px;
  cursor: pointer;
}
.roadmap-filters button.active {
  background: #19383c;
  color: white;
  border-color: #19383c;
}
.roadmap-group {
  background: white;
  border: 1px solid #cedddb;
  border-radius: 8px;
  margin: 0 0 16px;
  overflow: hidden;
}
.roadmap-group > summary {
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
  cursor: pointer;
}
.roadmap-group > summary strong {
  display: block;
  font-size: 20px;
}
.roadmap-group > summary small {
  display: block;
  color: #52656a;
  margin-top: 8px;
  line-height: 1.5;
}
.roadmap-group-count {
  font-size: 13px;
  white-space: nowrap;
}
.roadmap-group-count:after {
  content: " +";
  font-size: 18px;
  margin-left: 8px;
}
.roadmap-group[open] .roadmap-group-count:after {
  content: " −";
}
.roadmap-task {
  padding: 22px;
  border-top: 1px solid #cedddb;
}
.roadmap-task-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}
.roadmap-task h3 {
  font-size: 17px;
  line-height: 1.4;
  margin: 0;
}
.roadmap-task p {
  font-size: 14px;
  line-height: 1.65;
  color: #52656a;
  max-width: 68ch;
  margin: 12px 0;
}
.roadmap-status {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 5px;
  background: #f8efd8;
  color: #805900;
  max-width: 180px;
}
.roadmap-status.demo,
.roadmap-status.verified {
  background: #eaf4f3;
  color: #165d57;
}
.roadmap-status.later {
  background: #eef1f2;
  color: #52656a;
}
.roadmap-task-detail summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #147786;
}
.roadmap-task-detail .small-button {
  margin-top: 0;
}
.roadmap-next ol {
  padding-left: 20px;
  margin: 20px 0;
}
.roadmap-next li {
  padding-left: 6px;
  line-height: 1.65;
  margin-bottom: 20px;
  font-size: 14px;
  color: #52656a;
}
.roadmap-checks {
  margin-top: 24px;
}
.roadmap-checks ul {
  list-style: none;
  padding: 0;
}
.roadmap-checks li {
  display: flex;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  margin: 16px 0;
}
.roadmap-checks li > span:first-child {
  color: #147786;
}
.roadmap-evidence {
  margin-top: 32px;
  border-top: 1px solid #cedddb;
  padding-top: 16px;
  font-size: 12px;
  color: #52656a;
  line-height: 1.7;
  max-width: 100ch;
}
@media (max-width: 1000px) {
  .roadmap-path {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .roadmap-path li:nth-child(2) {
    border-right: 0;
  }
  .roadmap-path li:nth-child(3) {
    margin-left: 0;
  }
  .roadmap-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 22px;
  }
}
@media (max-width: 750px) {
  .roadmap-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .roadmap-intro {
    display: block;
  }
  .roadmap-intro h2 {
    font-size: 26px;
  }
  .roadmap-intro > button {
    margin-top: 16px;
  }
  .roadmap-task-title {
    display: block;
  }
  .roadmap-status {
    display: inline-block;
    margin-top: 8px;
  }
  .roadmap-group > summary {
    padding: 18px;
    gap: 12px;
  }
  .roadmap-task {
    padding: 18px;
  }
  .roadmap-path li {
    padding: 20px 10px 20px 0;
    margin-left: 12px;
  }
  .roadmap-path h3 {
    font-size: 15px;
  }
  .roadmap-path li {
    gap: 8px;
  }
  .roadmap-step {
    flex-basis: 24px;
    height: 24px;
  }
  .roadmap-filters button {
    padding: 10px 12px;
  }
  .roadmap-layout aside {
    display: grid;
    gap: 16px;
  }
  .roadmap-checks {
    margin-top: 0;
  }
}
@media (max-width: 420px) {
  .roadmap-path {
    grid-template-columns: minmax(0, 1fr);
  }
  .roadmap-path li {
    margin: 0;
    border: 0;
    border-bottom: 1px solid #cedddb;
    padding: 16px 0;
    align-items: center;
  }
  .roadmap-path p {
    margin: 4px 0 0;
  }
  .roadmap-path li:last-child {
    border: 0;
  }
  .roadmap-path .roadmap-step {
    margin-right: 6px;
  }
  .roadmap-group > summary strong {
    font-size: 18px;
  }
}
.launch-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.launch-price {
  font-size: 1.75rem;
}
.launch-workbench #launch-content {
  margin-top: 24px;
}
.launch-workbench .record p {
  overflow-wrap: anywhere;
}
.wrap-code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.8rem;
}
.launch-workbench .roadmap-filters {
  flex-wrap: wrap;
}
.launch-workbench input[type="file"] {
  max-width: 100%;
  box-sizing: border-box;
}
.launch-workbench .actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.launch-workbench details.record summary {
  cursor: pointer;
  padding: 12px 0;
  font-weight: 650;
}
.launch-workbench form button {
  margin-top: 12px;
}
@media (max-width: 800px) {
  .launch-cards {
    grid-template-columns: 1fr;
  }
  .launch-workbench .split-line {
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
  }
}
.launch-workbench > .split-line h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  line-height: 1.2;
}
.launch-workbench details.record {
  margin: 0;
  padding: 12px 0;
  border: 0;
  border-top: 1px solid var(--line, #cbdcde);
}
.launch-workbench .dashboard-layout > aside {
  align-self: start;
}

/* Owner review: a guided path with quiet, practical navigation. */
.owner-more-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 0 auto;
  flex-shrink: 0;
  padding: 0 4px;
}
.owner-more-label select {
  width: 185px;
  margin: 0;
  padding: 9px;
  font-size: 14px;
  background: #fff;
}
.review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(240px, 1fr);
  gap: 36px;
  align-items: start;
}
.review-intro {
  padding: 8px 0 28px;
  border-bottom: 1px solid #cedddb;
}
.review-intro h2 {
  font-size: 30px;
  line-height: 1.2;
  max-width: 22ch;
  margin: 0 0 14px;
}
.review-intro p,
.review-note p {
  max-width: 62ch;
  line-height: 1.65;
}
.review-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 22px;
}
.review-tour {
  list-style: none;
  padding: 0;
  margin: 0;
}
.review-tour > li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 16px;
  padding: 28px 0;
  border-bottom: 1px solid #cedddb;
}
.review-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #147786;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.review-tour h3 {
  font-size: 21px;
  margin: 2px 0 10px;
}
.review-tour p {
  line-height: 1.65;
  margin: 10px 0;
  max-width: 65ch;
}
.review-result {
  color: #365d61;
  font-size: 15px;
}
.review-aside {
  display: grid;
  gap: 22px;
}
.review-note {
  background: #eaf4f3;
  border-radius: 12px;
  padding: 24px;
}
.review-note h2 {
  font-size: 21px;
  margin: 0 0 12px;
  line-height: 1.25;
}
.review-note a {
  display: block;
  margin: 15px 0;
  color: #116b78;
  font-weight: 600;
}
.feedback-item {
  margin: 16px 0;
  padding: 24px;
}
.feedback-copy {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.65;
}
.feedback-response {
  border-left: 3px solid #147786;
  padding-left: 16px;
  margin-top: 18px;
}
#review-feedback-form textarea {
  width: 100%;
  resize: vertical;
}
@media (max-width: 760px) {
  .review-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .review-intro h2 {
    font-size: 27px;
  }
  .review-tour > li {
    gap: 12px;
    padding: 22px 0;
  }
  .review-note {
    padding: 20px;
  }
  .review-actions .btn {
    width: 100%;
    text-align: center;
  }
  .owner-more-label {
    padding: 0 8px;
  }
  .portal-title h1 {
    font-size: 32px;
  }
  .feedback-item .record-top {
    align-items: start;
    flex-wrap: wrap;
  }
}
@media (max-width: 760px) {
  .portal-nav:has(.owner-more-label) {
    display: flex;
    flex-wrap: wrap;
    overflow: visible;
    gap: 2px;
    padding-bottom: 12px;
  }
  .portal-nav:has(.owner-more-label) > button {
    flex: 1 1 auto;
    padding: 12px 5px;
    font-size: 12px;
    white-space: nowrap;
  }
  .portal-nav .owner-more-label {
    width: 100%;
    margin: 8px 0 0;
    padding: 0;
    font-size: 13px;
  }
  .portal-nav .owner-more-label select {
    flex: 1;
    width: auto;
    min-width: 0;
    font-size: 14px;
  }
}
.company-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:10px;margin:24px 0}.company-stat{background:#f5f9f8;border:1px solid #d7e4e1;border-radius:12px;padding:15px;text-align:left;color:var(--ink,#103d42);cursor:pointer}.company-stat strong{display:block;font-size:1.6rem}.company-stat span{display:block;font-size:.82rem;margin-top:4px}.company-stat.selected{border-color:#147786;background:#e8f4f1}.company-record{display:block;width:100%;text-align:left;cursor:pointer;font:inherit;color:inherit;background:#fff}.company-record:hover{border-color:#147786}.company-message{white-space:pre-wrap;overflow-wrap:anywhere}.company-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 28px}.company-fields>div{padding:14px 0;border-bottom:1px solid #e3e9e6;min-width:0}.company-fields dt{font-weight:650;font-size:.82rem;color:#496365}.company-fields dd{margin:5px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}.company-detail{margin-top:24px}.company-related{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}.company-detail textarea{display:block;width:100%;box-sizing:border-box;margin-bottom:14px}.access-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:24px 0}.company-manifest{font-size:.85rem}.warning-text{color:#805b15}@media(max-width:640px){.company-fields,.access-grid{grid-template-columns:1fr}.company-records .filter-bar{display:flex;flex-direction:column;align-items:stretch}.company-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.company-detail .split-line{align-items:flex-start}}

.company-record{border:1px solid #d7e4e1;border-radius:14px;padding:22px;margin:0 0 12px}.company-record h3{margin:0 0 8px}.company-record .record-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.company-record .text-link{display:inline-block;margin-top:10px}.company-stats{grid-template-columns:repeat(4,minmax(0,1fr))}@media(max-width:640px){.company-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.company-record .record-top{display:block}}

.company-fields .message-field{grid-column:1/-1}.company-fields .message-field dd{line-height:1.75}

/* Job photographs stay with their customer and visit. */
.attachment-library {margin-top:1.5rem;}
.attachment-heading p {margin:.3rem 0 1.5rem;}
.attachment-filters {display:grid;grid-template-columns:minmax(0,2fr) minmax(140px,1fr);gap:1rem;margin-bottom:1.75rem;}
.attachment-filters label {display:grid;gap:.4rem;}
.attachment-group {padding:1.5rem 0;border-top:1px solid #c7dbdc;}
.attachment-group-heading {display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1rem;}
.attachment-group-heading h4 {font-size:1.2rem;line-height:1.35;margin:0 0 .35rem;}
.attachment-group-heading p {margin:.2rem 0;line-height:1.6;}
.attachment-record-links {display:flex;gap:.5rem;flex-wrap:wrap;}
.attachment-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.1rem;}
.attachment-card {min-width:0;overflow:hidden;background:#fff;border:1px solid #d8e4e3;border-radius:12px;}
.attachment-preview {position:relative;display:flex;width:100%;padding:0;border:0;border-radius:0;aspect-ratio:4/3;background:#edf3f2;align-items:center;justify-content:center;overflow:hidden;cursor:pointer;}
.attachment-preview img {width:100%;height:100%;object-fit:contain;}
.attachment-enlarge {position:absolute;bottom:.6rem;right:.6rem;border-radius:5px;background:#113b40;color:white;padding:.3rem .55rem;font-size:.75rem;}
.attachment-document {flex-direction:column;gap:1rem;color:#19444a;text-decoration:none;}
.attachment-file-icon {display:block;padding:1rem 1.25rem;background:#fff;border:1px solid #cededd;border-radius:6px;font-weight:700;}
.attachment-caption {padding:1rem;}
.attachment-caption>strong {display:block;line-height:1.45;overflow-wrap:anywhere;}
.attachment-caption p {margin:.35rem 0;}
.attachment-actions {display:flex;gap:1rem;align-items:center;margin:.7rem 0;}
.attachment-actions a,.attachment-actions button {font-size:.88rem;color:#096f7e;font-weight:600;}
.text-button {border:0;background:none;padding:.35rem 0;cursor:pointer;text-decoration:underline;}
.attachment-caption details {font-size:.8rem;margin-top:.75rem;}
.attachment-caption summary {cursor:pointer;color:#50666b;}
.attachment-filename {overflow-wrap:anywhere;word-break:break-word;font-size:.8rem;}
.attachment-show-more {margin-top:1rem;}
.attachment-archives {border-top:1px solid #c7dbdc;margin-top:1rem;padding-top:1.25rem;}
.attachment-lightbox {width:min(1080px,94vw);max-height:94vh;padding:0;border:0;border-radius:14px;color:#153c40;background:#fff;}
.attachment-lightbox::backdrop {background:rgba(9,28,31,.82);}
.attachment-lightbox header,.attachment-lightbox footer {display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1rem 1.5rem;}
.attachment-lightbox header h3,.attachment-lightbox p {margin:.2rem 0;}
.attachment-lightbox footer>div {min-width:0;flex:1;}
.attachment-full-image {min-height:120px;background:#edf3f2;display:flex;align-items:center;justify-content:center;}
.attachment-full-image img {display:block;max-width:100%;max-height:65vh;object-fit:contain;}
@media(max-width:900px){.attachment-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.attachment-group-heading{flex-direction:column;}}
@media(max-width:520px){.attachment-grid{gap:.65rem;}.attachment-caption{padding:.7rem;}.attachment-filters{grid-template-columns:1fr;}.attachment-lightbox header,.attachment-lightbox footer{padding:1rem;flex-wrap:wrap;}.attachment-lightbox footer>div{flex-basis:100%;}.attachment-enlarge{font-size:.65rem;}}

.connection-uri {overflow-wrap:anywhere;padding:.75rem;background:#edf3f2;border-radius:6px;font-size:.85rem;}
/* Working schedule: compact daily groups with a focused job sheet. */
.schedule-heading{margin-bottom:24px}.working-schedule{display:grid;gap:28px}.schedule-day>h2{font-size:1.15rem;margin:0 0 12px}.schedule-day-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:16px}.schedule-card{padding:24px;align-self:start}.schedule-card h3{margin:18px 0 8px}.schedule-card p{margin:8px 0 14px}.schedule-card .status{font-size:.75rem}.working-dialog{width:min(720px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow:auto;border:1px solid var(--line,#c8dadd);border-radius:20px;padding:28px;color:var(--ink,#173a3d)}.working-dialog::backdrop{background:rgba(10,35,40,.55)}.working-dialog fieldset{border:0;padding:0;margin:20px 0}.working-dialog legend{font-weight:700;margin-bottom:12px}.working-staff{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:20px}.working-staff .check-line{margin:0;font-size:.9rem}.working-dialog textarea{margin-bottom:20px}.working-dialog a{white-space:normal}@media(max-width:600px){.working-dialog{padding:20px}.working-staff{grid-template-columns:1fr}.schedule-card{padding:20px}.schedule-heading .split-line{align-items:flex-start}}
.schedule-heading .schedule-range{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px 24px;margin:20px 0 12px}.schedule-heading .working-date{width:230px;max-width:100%}.schedule-heading .working-date input{margin:0}.schedule-heading .save-bar{border:0;padding:0;margin:0;gap:8px}.schedule-heading .quiet{margin:12px 0}.schedule-heading h2{margin:0 0 8px}.schedule-heading p{margin:0}.schedule-card .split-line{gap:8px}.schedule-heading .small-button{min-height:44px}
