:root {
  --navy: #1b2b4b;
  --teal: #137b78;
  --ink: #1b2b4b;
  --muted: #62736f;
  --line: #dce2df;
  --canvas: #f6f7f6;
  --font: "Sora", Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font:
    14px/1.55 Arial,
    Helvetica,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font);
  line-height: 1.3;
  letter-spacing: -0.035em;
  font-weight: 500;
}
h1 {
  font-size: 27px;
}
h2 {
  font-size: 18px;
}
h3 {
  font-size: 15px;
}
p {
  margin: 0;
  color: var(--muted);
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: var(--ink);
}
button {
  border: 0;
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}
input,
select,
textarea {
  max-width: 100%;
}
img {
  display: block;
  max-width: 100%;
}
svg {
  flex-shrink: 0;
  vertical-align: middle;
}
strong {
  font-weight: 600;
}
::selection {
  background: #c5eadf;
}

/* Shared controls */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  flex-shrink: 0;
}
.button.primary {
  background: var(--teal);
  color: white;
}
.button.primary:hover {
  background: #106a67;
}
.button.secondary {
  background: white;
  border-color: #cfddd5;
}
.button.secondary:hover {
  background: #edf7f3;
  border-color: #a7c8b7;
}
.button.text {
  min-height: 34px;
  padding: 6px 0;
  background: none;
  color: var(--teal);
}
.button.text:hover,
.text-button:hover {
  text-decoration: underline;
}
.button.icon-button {
  min-height: 40px;
  padding: 8px;
  background: none;
}
.full {
  width: 100%;
}
.text-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0;
  background: none;
  color: var(--teal);
  font-weight: 600;
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field label {
  font-size: 12px;
  font-weight: 600;
}
.field input,
.field select,
.field textarea,
.toolbar select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #ceddd4;
  border-radius: 4px;
  background: white;
  font-size: 14px;
  line-height: 1.5;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--teal);
}
.field input:disabled {
  background: #f2f5f3;
  color: #6e7d76;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #89968f;
}
.field textarea {
  resize: vertical;
  min-height: 100px;
}
.field small {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 19px;
}
.form-grid.thirds {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.wide {
  grid-column: 1 / -1;
}
.form-section {
  margin-top: 25px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.form-section h3 {
  margin-bottom: 19px;
}
.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
  padding: 13px 15px;
  border: 1px solid #efcccc;
  border-radius: 4px;
  background: #fff1ef;
  color: #923a32;
  font-size: 13px;
}
.notice svg {
  margin-top: 1px;
}
.notice.success {
  border-color: #bedcbc;
  background: #f1f8e9;
  color: #42672b;
}
.notice.info {
  border-color: #c6dfd6;
  background: #f0f8f4;
  color: #3e675b;
}
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 60vh;
  color: var(--muted);
}
.spinner {
  width: 23px;
  height: 23px;
  border: 2px solid #d0e2d8;
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.loading-compact {
  min-height: 120px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.footnote {
  margin-top: 17px;
  font-size: 12px;
  line-height: 1.65;
}
.panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 23px;
}
.panel-heading h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
}
.panel-heading .button {
  font-size: 12px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 27px;
}
.section-title p {
  margin-top: 9px;
  font-size: 13px;
}
.empty {
  padding: 60px 25px;
  text-align: center;
}
.empty-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 57px;
  height: 57px;
  margin-bottom: 18px;
  border-radius: 5px;
  background: #edf7f3;
  color: var(--teal);
}
.empty h3 {
  font-size: 17px;
}
.empty p {
  max-width: 360px;
  margin: 8px auto 20px;
}

/* Sign-in and account recovery */
.login-simple {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  background: white;
}
.login-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: calc(100% - 80px);
  max-width: 1200px;
  height: 122px;
  margin: 0 auto;
  border-bottom: 1px solid #e2e7e3;
}
.login-header img {
  width: 115px;
  height: 115px;
  object-fit: contain;
}
.login-header > a:last-child {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #65776b;
  font-size: 12px;
}
.login-content {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 62px 25px 70px;
}
.login-form-wrap {
  width: 100%;
  max-width: 365px;
}
.login-form-wrap h1 {
  font-size: 26px;
  letter-spacing: -0.04em;
}
.login-subtitle {
  margin: 9px 0 31px;
  font-size: 13px;
  line-height: 1.65;
}
.login-form-wrap form > .field {
  margin-bottom: 21px;
}
.login-form-wrap .full {
  min-height: 44px;
}
.password-field {
  position: relative;
}
.password-field input {
  padding-right: 45px;
}
.password-toggle {
  position: absolute;
  right: 9px;
  bottom: 7px;
  padding: 6px;
  background: none;
  color: #687a70;
}
.forgot {
  margin: 13px 0 24px;
  text-align: right;
  font-size: 12px;
}
.access-note {
  margin-top: 22px;
  text-align: center;
  font-size: 12px;
}
.access-note a {
  color: var(--teal);
  font-weight: 600;
}
.demo-entry {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.demo-entry > span {
  color: var(--muted);
  font-size: 13px;
}
.demo-entry > div {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.login-footer {
  display: flex;
  justify-content: space-between;
  width: calc(100% - 80px);
  max-width: 1200px;
  margin: auto auto 0;
  padding: 22px 0;
  border-top: 1px solid #e2e7e3;
  color: #77837a;
  font-size: 11px;
}
.password-screen,
.account-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 100vh;
  padding: 30px;
}
.password-screen > .panel {
  width: min(460px, 100%);
  padding: 35px;
}
.login-logo {
  width: 154px;
  height: 154px;
  margin: 0 auto 24px;
  object-fit: contain;
}
.password-screen h1 {
  margin-bottom: 12px;
  font-size: 25px;
}
.password-screen form {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}
.account-error {
  max-width: 650px;
  margin: auto;
  text-align: center;
}
.account-error img {
  width: 160px;
}
.account-error h1 {
  font-size: 25px;
}

/* Navigation and workspace */
.workspace {
  display: flex;
  min-height: 100dvh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: 235px;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: white;
}
.sidebar-brand {
  align-self: center;
  display: block;
  margin-top: 9px;
}
.sidebar-brand img {
  width: 133px;
  height: 129px;
  object-fit: contain;
}
.workspace-label {
  margin: 0 0 25px;
  color: #707b75;
  text-align: center;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
}
.sidebar nav {
  display: grid;
  gap: 6px;
  margin-bottom: 28px;
  padding: 0 16px;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 11px 13px;
  border-radius: 3px;
  color: #5c6b66;
  font-size: 13px;
}
.sidebar nav a:hover {
  background: #f2f7f4;
  color: var(--teal);
}
.sidebar nav a.active {
  background: #edf4f0;
  color: #176b60;
  font-weight: 600;
  box-shadow: inset 2px 0 var(--teal);
}
.sidebar nav a svg {
  width: 18px;
  height: 18px;
  color: #71887c;
}
.sidebar nav a.active svg {
  color: #16887b;
}
.sidebar nav a:last-child {
  margin-top: 20px;
  padding-top: 22px;
  border-top: 1px solid #edf2ee;
  border-radius: 0;
}
.nav-count {
  min-width: 20px;
  margin-left: auto;
  border-radius: 3px;
  background: #d9ecdc;
  color: #326b4b;
  text-align: center;
  font-size: 10px;
  line-height: 20px;
}
.sidebar-support {
  margin: auto 29px 24px;
  padding-top: 30px;
  color: var(--teal);
  font-size: 12px;
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 76px;
  padding: 17px 16px;
  border-top: 1px solid var(--line);
}
.avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 35px;
  height: 35px;
  border: 1px solid #dce4d9;
  border-radius: 50%;
  background: #eef2ed;
  color: #52654f;
  font-size: 11px;
  font-weight: 700;
}
.sidebar-user > div {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.sidebar-user strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}
.sidebar-user > div > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 9px;
}
.sidebar-user > button {
  padding: 7px 1px;
  background: none;
  color: #6c7c71;
}
.workspace-body {
  display: flex;
  flex-direction: column;
  width: calc(100% - 235px);
  min-width: 0;
  margin-left: 235px;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 64px;
  padding: 0 37px;
  border-bottom: 1px solid var(--line);
  background: white;
}
.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
}
.topbar-left {
  gap: 9px;
}
.topbar-right {
  gap: 21px;
}
.breadcrumb {
  display: flex;
  gap: 14px;
  color: #7b887f;
  font-size: 11px;
}
.breadcrumb strong {
  color: #3c5146;
  font-weight: 500;
}
.breadcrumb > span {
  color: #c2cec5;
}
.topbar-right > a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #62746a;
  font-size: 11px;
}
.account-label {
  color: #64726a;
  white-space: nowrap;
  font-size: 11px;
}
.mobile-toggle {
  display: none;
}
.mobile-close {
  position: absolute;
  top: 8px;
  right: 8px;
}
.demo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  padding: 8px 37px;
  border-bottom: 1px solid #dce7ce;
  background: #eef5df;
  color: #546442;
  font-size: 11px;
}
.demo-banner > div {
  display: flex;
  gap: 18px;
}
.demo-banner button {
  padding: 3px 0;
  background: none;
  color: #415b2c;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 11px;
  font-weight: 600;
}
.main {
  flex: 1;
  width: 100%;
  min-width: 0;
  max-width: 1550px;
  margin: 0 auto;
  padding: 36px 37px;
  outline: none;
}
.workspace-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 0 37px;
  padding: 19px 0;
  border-top: 1px solid #e4ece5;
  color: #7b897e;
  font-size: 11px;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 300;
  padding: 12px;
  background: white;
}
.skip-link:focus {
  top: 10px;
}
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 32px);
  padding: 15px 20px;
  border-radius: 4px;
  background: var(--navy);
  color: white;
  font-size: 13px;
}
.toast svg {
  color: #b4df96;
}
.error-with-retry {
  margin-bottom: 20px;
}
.error-with-retry .notice {
  margin-bottom: 8px;
}

/* Overview and record tables */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
}
.stat {
  min-width: 0;
  padding: 23px 25px;
  border-right: 1px solid var(--line);
  background: white;
  text-align: left;
}
.stat:last-child {
  border-right: 0;
}
.stat:hover {
  background: #f9fbf9;
}
.stat-label {
  display: block;
  margin-bottom: 10px;
  color: #5e6b63;
  font-size: 12px;
}
.stat > strong {
  display: block;
  font:
    400 31px/1.4 Arial,
    Helvetica,
    sans-serif;
  letter-spacing: -0.025em;
}
.stat-bottom {
  display: block;
  margin-top: 9px;
  color: #718076;
  font-size: 11px;
}
.toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 21px;
}
.search {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 280px;
  max-width: 100%;
  padding: 0 12px;
  border: 1px solid #d3dfd6;
  border-radius: 4px;
  background: white;
  color: #8b9c91;
}
.search:focus-within {
  outline: 2px solid #137b7860;
}
.search input {
  width: 100%;
  min-height: 42px;
  border: 0;
  outline: 0;
  background: none;
  font-size: 12px;
}
.search button {
  padding: 5px;
  background: none;
  color: #788d7e;
}
.toolbar select {
  width: auto;
  padding-right: 29px;
  font-size: 12px;
}
.table-scroll {
  width: 100%;
  overflow: auto;
}
.table-scroll table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
.table-scroll th {
  padding: 11px 20px;
  border-block: 1px solid #e5ece6;
  background: #f6f8f6;
  color: #647269;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 500;
}
.table-scroll td {
  padding: 19px 20px;
  border-bottom: 1px solid #edf1ec;
  color: #52675c;
  vertical-align: middle;
  white-space: nowrap;
}
.table-scroll tr:last-child td {
  border-bottom: 0;
}
.table-scroll tbody tr:hover {
  background: #fbfdfb;
}
.table-scroll td strong {
  color: var(--ink);
}
.table-scroll td .button.text {
  font-size: 12px;
}
.table-empty {
  padding: 55px !important;
  color: #7b8c80 !important;
  text-align: center;
}
.cell-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cell-stack > span {
  color: #76877b;
  font-size: 11px;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 3px;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
}
.badge.teal {
  background: #edf7f3;
  color: #266d55;
}
.badge.green {
  background: #f0f7e9;
  color: #50712e;
}
.badge.amber {
  background: #fbf5e8;
  color: #806124;
}
.badge.red {
  background: #fff0ed;
  color: #994b3e;
}
.badge.grey {
  background: #f3f5f3;
  color: #657368;
}

/* Properties and clients */
.property-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.property-card {
  padding: 23px;
  border-top: 2px solid #d2ded5;
}
.property-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 22px;
}
.property-type {
  color: #6c7b70;
  font-size: 12px;
}
.property-card h2 {
  margin: 8px 0 4px;
  font-size: 18px;
}
.postcode {
  font-size: 12px;
}
.property-notes {
  margin-top: 15px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
}
.property-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}
.property-actions .button {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 12px;
}
.property-actions .text {
  padding-left: 0;
}
.request-card {
  padding: 24px;
}
.request-top {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
}
.request-top > div {
  flex: 1;
}
.request-top p {
  margin-top: 5px;
  font-size: 11px;
}
.request-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 15px;
}
.request-tags > span {
  padding: 4px 8px;
  border-radius: 3px;
  background: #f2f5f1;
  color: #56695c;
  font-size: 11px;
}
.request-card > p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
}
.request-form-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
}
.request-intro {
  padding: 34px;
  border-right: 1px solid var(--line);
  background: #f5f7f3;
}
.request-intro h2 {
  margin: 0 0 16px;
  font-size: 23px;
}
.request-intro > p {
  font-size: 13px;
}
.request-price-note {
  margin-top: 25px;
  color: #344a3d;
}
.request-intro .footnote {
  font-size: 11px;
}
.contact-link {
  display: block;
  margin-top: 16px;
  color: var(--teal);
  font-size: 12px;
}
.request-form-panel form {
  padding: 32px;
}
.service-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.service-options legend {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
}
.service-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid #dce5db;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
}
.service-options label.selected {
  border-color: #99b9a9;
  background: #edf4f0;
}
.service-options input {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  accent-color: var(--teal);
}
.request-form-panel form > .button {
  margin-top: 24px;
}

/* Reports{
  display: grid;
  gap: 15px;
}
.report-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 25px;
}
.report-copy {
  flex: 1;
  min-width: 0;
}
.report-copy h2 {
  font-size: 16px;
}
.report-copy p {
  margin-top: 5px;
  font-size: 12px;
}
.upload-button {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.upload-button input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.upload-button:focus-within {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}
.upload-button.disabled {
  opacity: 0.5;
  pointer-events: none;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  max-width: 960px;
}
.settings-panel {
  padding: 28px;
}
.settings-panel > p {
  margin-top: 9px;
  font-size: 13px;
}
.settings-panel form {
  display: grid;
  gap: 20px;
  margin-top: 26px;
}
.settings-panel form > .button {
  justify-self: start;
  margin-top: 5px;
}

/* Native dialogs */
.modal {
  width: min(580px, calc(100vw - 32px));
  max-height: 90dvh;
  padding: 0;
  border: 1px solid #d4e2d7;
  border-radius: 6px;
  background: white;
  color: var(--ink);
  box-shadow: 0 25px 100px #1b2b4b30;
}
.modal::backdrop {
  background: #122a3970;
}
.modal-wide {
  width: min(760px, calc(100vw - 32px));
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 27px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 {
  font-size: 21px;
}
.modal-body {
  padding: 26px 27px;
}
.modal-body > .field {
  margin-top: 22px;
}
.modal-body > .button {
  margin-top: 20px;
}
.modal-footer {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 27px;
  border-top: 1px solid var(--line);
  background: #f9fbf7;
}
.estimate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 17px;
  padding: 15px;
  border: 1px solid #d6e5cb;
  border-radius: 4px;
  background: #f7f9f3;
}
.estimate > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.estimate > div > strong {
  font-size: 12px;
}
.estimate > div > span {
  color: #7b8974;
  font-size: 10px;
}
.estimate > strong {
  font: 500 23px var(--font);
}
.detail-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.detail-title h3 {
  font-size: 20px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 30px;
}
.detail-grid dt {
  color: #7f8e80;
  font-size: 11px;
}
.detail-grid dd {
  margin: 5px 0 0;
  font-size: 13px;
}

/* Responsive layouts */
@media (max-width: 1200px) {
  .sidebar {
    width: 215px;
  }
  .workspace-body {
    width: calc(100% - 215px);
    margin-left: 215px;
  }
  .main {
    padding: 32px 26px;
  }
  .topbar,
  .demo-banner {
    padding-inline: 26px;
  }
  .property-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .table-scroll td,
  .table-scroll th {
    padding-inline: 17px;
  }
  .request-intro,
  .request-form-panel form {
    padding: 27px;
  }
  .service-options {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 1100px) {
  .stat {
    padding: 21px;
  }
  .stat > strong {
    font-size: 28px;
  }
}
@media (max-width: 1000px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat:nth-child(2) {
    border-right: 0;
  }
  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .report-card {
    flex-wrap: wrap;
  }
  .report-card .button-row {
    margin-left: 71px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 850px) {
  .sidebar {
    width: 245px;
    transform: translateX(-100%);
    visibility: hidden;
  }
  .sidebar.is-open {
    transform: translateX(0);
    visibility: visible;
  }
  .workspace-body {
    width: 100%;
    margin-left: 0;
  }
  .nav-scrim {
    position: fixed;
    inset: 0;
    z-index: 35;
    background: #15293870;
  }
  .mobile-toggle {
    display: inline-flex;
  }
  .topbar {
    padding-inline: 20px;
  }
  .main {
    padding: 26px 24px;
  }
  .demo-banner {
    padding: 9px 24px;
  }
  .workspace-footer {
    margin-inline: 24px;
  }
}
@media (max-width: 640px) {
  .main {
    padding: 25px 18px 28px;
  }
  .topbar {
    height: 60px;
    padding-inline: 12px;
  }
  .topbar-right {
    gap: 12px;
  }
  .topbar-right > a {
    gap: 0;
    font-size: 0;
  }
  .topbar-right > a svg {
    width: 18px;
    height: 18px;
  }
  .account-label {
    display: none;
  }
  .breadcrumb {
    gap: 9px;
    font-size: 10px;
  }
  .demo-banner {
    align-items: flex-start;
    gap: 5px;
    padding: 9px 18px;
    font-size: 9px;
  }
  .demo-banner > span {
    max-width: 100%;
    line-height: 1.6;
  }
  .demo-banner > div {
    gap: 16px;
  }
  .demo-banner button {
    font-size: 10px;
  }
  .section-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 24px;
  }
  .section-title h1 {
    font-size: 25px;
  }
  .section-title > .button {
    min-height: 43px;
  }
  .stats {
    margin-bottom: 25px;
  }
  .stat {
    padding: 20px 16px;
  }
  .stat-label {
    margin-bottom: 8px;
  }
  .stat > strong {
    font-size: 29px;
  }
  .stat-bottom {
    font-size: 10px;
    line-height: 1.7;
  }
  .panel-heading {
    padding: 20px;
  }
  .panel-heading .button {
    white-space: nowrap;
    font-size: 11px;
  }
  .table-scroll th,
  .table-scroll td {
    padding-inline: 15px;
  }
  .table-scroll table {
    min-width: 620px;
  }
  .toolbar {
    gap: 10px;
  }
  .search {
    width: 100%;
    min-width: 0;
  }
  .search input {
    font-size: 13px;
  }
  .toolbar select {
    flex: 1;
    min-width: 0;
  }
  .property-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .property-card h2 {
    font-size: 21px;
  }
  .property-actions .button {
    min-height: 41px;
  }
  .request-form-panel {
    display: block;
  }
  .request-intro {
    padding: 26px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .request-form-panel form {
    padding: 24px;
  }
  .service-options label {
    min-height: 44px;
    font-size: 12px;
  }
  .form-grid,
  .form-grid.thirds {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
  }
  .request-card {
    padding: 21px;
  }
  .request-top {
    flex-wrap: wrap;
    gap: 10px;
  }
  .request-top > div {
    flex-basis: calc(100% - 65px);
  }
  .request-top > .badge {
    margin-left: 52px;
  }
  .request-form-panel form > .button {
    width: 100%;
  }
  .report-card {
    gap: 15px;
    padding: 21px;
  }
  .report-card .button-row {
    width: 100%;
    margin-left: 0;
  }
  .report-card .button {
    min-height: 43px;
    font-size: 12px;
  }
  .report-copy h2 {
    line-height: 1.4;
  }
  .settings-panel {
    padding: 24px;
  }
  .modal {
    width: calc(100vw - 20px);
    max-height: 94dvh;
  }
  .modal-head {
    padding: 20px;
  }
  .modal-head h2 {
    font-size: 20px;
  }
  .modal-body {
    padding: 22px 20px;
  }
  .modal-footer {
    padding: 15px 20px;
  }
  .estimate {
    gap: 12px;
  }
  .estimate > strong {
    white-space: nowrap;
    font-size: 22px;
  }
  .detail-grid {
    gap: 18px;
  }
  .detail-title {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .detail-title h3 {
    font-size: 19px;
  }
  .toast {
    right: 15px;
    bottom: 15px;
    padding: 13px 17px;
    font-size: 12px;
  }
  .workspace-footer {
    flex-wrap: wrap;
    gap: 5px;
    margin: 0 18px;
    padding-block: 16px;
    font-size: 10px;
  }
  .login-header {
    width: calc(100% - 40px);
    height: 108px;
  }
  .login-header img {
    width: 97px;
    height: 97px;
  }
  .login-header > a:last-child {
    max-width: 140px;
    font-size: 11px;
  }
  .login-content {
    align-items: flex-start;
    padding: 42px 25px 50px;
  }
  .login-form-wrap h1 {
    font-size: 25px;
  }
  .login-footer {
    width: calc(100% - 40px);
    font-size: 10px;
  }
  .password-screen {
    padding: 20px;
  }
  .password-screen > .panel {
    padding: 26px;
  }
  .password-screen h1 {
    font-size: 23px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation: none;
  }
}
/* Workflow additions use the existing Aerolyse surfaces and spacing. */
.detail-section {
  padding: 24px;
  margin: 20px 0;
}
.detail-section > h2 {
  margin: 0 0 18px;
  font-size: 18px;
}
.detail-section > h3 {
  margin: 16px 0 8px;
}
.queue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  margin: 16px 0;
}
.queue-grid > button {
  border: 0;
  border-bottom: 1px solid var(--line, #dfe8e6);
  background: transparent;
  color: var(--navy, #1b2b4b);
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px;
  gap: 20px;
  font: inherit;
  cursor: pointer;
}
.queue-grid > button:hover {
  background: #f0f7f5;
}
.queue-grid strong {
  font-size: 22px;
}
.pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}
.pagination > span {
  margin-right: auto;
  color: #526365;
  font-size: 13px;
}
.toolbar {
  align-items: flex-end;
}
.filter-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
}
.trial-help {
  margin: 12px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  max-width: 64ch;
}
.toolbar .field {
  margin: 0;
  min-width: 130px;
  flex: 1;
}
.toolbar .record-picker {
  min-width: 170px;
  flex: 1;
}
.toolbar .record-picker .field:first-child {
  margin-bottom: 8px;
}
.publication-controls {
  border-top: 1px solid #e1e8e7;
  margin-top: 22px;
  padding-top: 20px;
}
.internal-note {
  border-bottom: 1px solid #e1e8e7;
  padding: 12px 0;
  white-space: pre-wrap;
}
.kit-card {
  padding: 22px;
  border-bottom: 1px solid #e1e8e7;
}
.kit-timeline {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  padding: 0;
  gap: 0;
  margin: 24px 0;
}
.kit-timeline li {
  border-top: 3px solid #dde5e3;
  padding: 12px 8px;
  font-size: 12px;
  color: #697875;
}
.kit-timeline li.reached {
  border-color: #137b78;
  color: #1b2b4b;
}
.kit-timeline li[aria-current] {
  font-weight: 700;
  background: #edf6f3;
}
.record-picker {
  margin-bottom: 16px;
}
.record-picker small {
  color: #526365;
}
.record-picker .field {
  margin-bottom: 8px;
}
.modal pre,
.main pre {
  max-width: 100%;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
}
@media (max-width: 700px) {
  .detail-section,
  .kit-card {
    padding: 16px;
  }
  .pagination {
    flex-wrap: wrap;
  }
  .pagination > span {
    flex-basis: 100%;
  }
  .table-scroll {
    overflow: visible;
  }
  .table-scroll table,
  .table-scroll tbody,
  .table-scroll tr,
  .table-scroll td {
    display: block;
    width: 100%;
    min-width: 0;
  }
  .table-scroll thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .table-scroll tr {
    padding: 14px 0;
    border-bottom: 1px solid #dce6e3;
  }
  .table-scroll td {
    display: grid;
    grid-template-columns: minmax(80px, 30%) minmax(0, 1fr);
    gap: 12px;
    padding: 8px 16px;
    border: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .table-scroll td::before {
    content: attr(data-label);
    font-size: 11px;
    font-weight: 600;
    color: #63716e;
  }
  .table-scroll td.table-empty {
    display: block;
  }
  .table-scroll td.table-empty::before {
    display: none;
  }
  .toolbar .record-picker,
  .toolbar .field {
    min-width: 0;
    flex-basis: 100%;
  }
  .kit-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Long keys and references remain readable on narrow screens. */
.mfa-secret {
  display: block;
  overflow-wrap: anywhere;
  padding: 12px;
  background: var(--paper, #f4f6f5);
}
.settings-panel form + form {
  margin-top: 20px;
}

/* Personal notifications */
.notification-bell {
  position: relative;
  flex: 0 0 auto;
}
.notification-count,
.notification-warning {
  position: absolute;
  top: -3px;
  right: -5px;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  border-radius: 10px;
  background: var(--teal, #3c7776);
  color: white;
  font-size: 10px;
  font-weight: 600;
  line-height: 19px;
  text-align: center;
}
.notification-warning {
  background: #a95044;
}
.notification-toolbar,
.notification-filters,
.notification-pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.notification-toolbar {
  justify-content: space-between;
  margin-bottom: 20px;
}
.notification-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.notification-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
  border-top: 1px solid #e3e8e8;
}
.notification-dot {
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: transparent;
}
.is-unread .notification-dot {
  background: #3c7776;
}
.notification-content {
  min-width: 0;
  flex: 1;
}
.notification-content a,
.notification-content strong {
  color: #1b2b4b;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
  overflow-wrap: anywhere;
  text-decoration: none;
}
.notification-content a {
  display: block;
}
.notification-content a:hover {
  text-decoration: underline;
}
.notification-content .notification-shortcut {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  margin-top: 5px;
  color: #326968;
  font-size: 12px;
  font-weight: 600;
}
.notification-shortcut svg {
  flex-shrink: 0;
}
.notification-content a[aria-disabled="true"] {
  opacity: 0.6;
}
.is-unread .notification-content a,
.is-unread .notification-content strong {
  font-weight: 600;
}
.notification-content time {
  display: block;
  font-size: 11px;
  color: #637377;
  margin-top: 5px;
}
.notification-list .button {
  flex: 0 0 auto;
  font-size: 11px;
}
.notification-pagination {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e3e8e8;
}
.notification-pagination > span {
  flex: 1;
  min-width: 110px;
  font-size: 12px;
  color: #637377;
}
@media (max-width: 480px) {
  .notification-list li {
    gap: 8px;
  }
  .notification-list .button span {
    display: none;
  }
  .notification-list .button {
    padding: 10px;
  }
  .notification-toolbar > .button {
    padding-left: 0;
  }
  .notification-pagination > span {
    flex-basis: 100%;
  }
}

.notification-reference {
  display: block;
  margin-top: 3px;
  color: #637377;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.property-summary {
  padding: 24px;
  margin-bottom: 24px;
}
.record-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  border-bottom: 1px solid #dbe3e4;
  margin-bottom: 24px;
}
.record-tabs a {
  padding: 12px 0;
  color: #57696d;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  font-size: 13px;
  font-weight: 600;
}
.record-tabs a[aria-current="page"] {
  color: #215958;
  border-color: #326968;
}
.record-tabs a:hover {
  color: #173e43;
}
.next-step {
  border-left: 3px solid #326968;
}
.section-eyebrow {
  color: #426d6c;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.next-step h2 {
  margin-top: 8px;
}
.next-step-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.next-step h3 {
  font-size: 13px;
  margin: 8px 0;
}
.next-step p {
  margin-top: 0;
  color: #53666b;
  line-height: 1.65;
}
.calendar-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}
.calendar-toolbar .field {
  margin: 0;
  max-width: 240px;
}
.calendar-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border: 1px solid #dbe3e4;
  border-radius: 6px;
  overflow: hidden;
}
.calendar-day {
  min-width: 0;
  border-right: 1px solid #dbe3e4;
  background: #fbfcfc;
}
.calendar-day:last-child {
  border-right: 0;
}
.calendar-day h3 {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 10px;
  min-height: 62px;
  margin: 0;
  font-size: 12px;
  border-bottom: 1px solid #dbe3e4;
}
.calendar-day h3 span {
  font-size: 10px;
  color: #326968;
}
.calendar-day.is-today h3 {
  background: #edf5f4;
}
.calendar-visit {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: calc(100% - 12px);
  margin: 6px;
  padding: 12px 8px;
  border: 1px solid #cfdddc;
  border-left: 3px solid #326968;
  border-radius: 4px;
  background: white;
  color: #233e47;
  text-align: left;
  font: inherit;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.calendar-visit:hover {
  background: #f1f7f6;
}
.calendar-visit > span {
  font-size: 11px;
  max-width: 100%;
}
.calendar-visit .badge {
  white-space: normal;
}
.calendar-empty {
  margin: 14px 10px;
  color: #758387;
  font-size: 11px;
}
@media (max-width: 1100px) {
  .calendar-week {
    grid-template-columns: 1fr;
  }
  .calendar-day {
    border-right: 0;
    border-bottom: 1px solid #dbe3e4;
    display: grid;
    grid-template-columns: 130px 1fr;
  }
  .calendar-day:last-child {
    border-bottom: 0;
  }
  .calendar-day h3 {
    grid-column: 1;
    grid-row: 1 / span 50;
    border-bottom: 0;
    border-right: 1px solid #dbe3e4;
  }
  .calendar-visit,
  .calendar-empty {
    grid-column: 2;
  }
}
@media (max-width: 600px) {
  .next-step-columns {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .property-summary {
    padding: 18px;
  }
  .calendar-day {
    grid-template-columns: 90px 1fr;
  }
  .calendar-toolbar .button-row {
    flex-wrap: wrap;
  }
  .calendar-toolbar .button {
    font-size: 11px;
    padding: 10px;
  }
}
.calendar-jump {
  display: flex;
  align-items: end;
  gap: 8px;
  flex-wrap: wrap;
}
.calendar-jump .field {
  min-width: 150px;
  flex: 1;
}
.calendar-jump input {
  width: 100%;
  min-width: 0;
}

/* Shared workspace tools */
.saved-views {
  margin: 0 0 20px;
  border-bottom: 1px solid var(--border, #dfe5e5);
  padding: 12px 0;
}
.saved-views summary,
.detail-section details summary {
  cursor: pointer;
  font-weight: 600;
  padding: 8px 0;
}
.search-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.search-group {
  padding: 24px;
}
.search-results {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}
.search-results li {
  border-bottom: 1px solid #e8eeee;
}
.search-results a {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 0;
  overflow-wrap: anywhere;
}
.search-results span {
  color: #60716f;
  font-size: 13px;
}
.request-change,
.attachment-row {
  padding: 18px 0;
  border-bottom: 1px solid #e1e8e7;
  overflow-wrap: anywhere;
}
.request-change h3,
.attachment-row h3 {
  font-size: 16px;
  margin: 0 0 8px;
}
.attachment-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.property-pack {
  margin-top: 18px;
}
.property-pack p {
  margin-bottom: 0;
}
@media (max-width: 760px) {
  .search-grid {
    grid-template-columns: 1fr;
  }
  .attachment-row {
    align-items: stretch;
    flex-direction: column;
  }
  .saved-views .toolbar {
    align-items: stretch;
  }
}

.detail-section fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
