:root {
  --navy: #0f2a43;
  --amber: #f59e0b;
  --ink: #111827;
  --muted: #5d6978;
  --line: #dfe4e8;
  --bg: #f4f5f7;
  --green: #15803d;
  --red: #b91c1c;
  --side: 252px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font:
    16px/1.5 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--bg);
}
button,
input,
textarea,
select {
  font: inherit;
}
a {
  color: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}
a {
  text-decoration: none;
}
p {
  margin: 0 0 1rem;
}
h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
}
h1 {
  font-size: 38px;
}
h2 {
  font-size: 23px;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 20px;
}
.muted {
  color: var(--muted);
}
.small,
small {
  font-size: 14px;
}
.eyebrow {
  display: block;
  letter-spacing: 0.13em;
  font-size: 12px;
  font-weight: 700;
  color: #5a6a7a;
  margin-bottom: 13px;
}
.button {
  border: 0;
  background: var(--amber);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  border-radius: 8px;
  padding: 14px 22px;
  min-height: 50px;
  font-weight: 650;
  white-space: nowrap;
  transition:
    background 0.15s,
    transform 0.15s;
}
.button:hover {
  background: #ffb51c;
  transform: translateY(-1px);
}
.button.secondary {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--navy);
}
.button.navy {
  background: var(--navy);
  color: #fff;
}
.button.danger {
  background: #fee2e2;
  color: var(--red);
}
.wide {
  width: 100%;
}
.text-link {
  font-weight: 600;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.text-button {
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  text-align: left;
  min-height: 32px;
}
.app-shell {
  min-height: 100vh;
  display: flex;
}
.sidebar {
  width: var(--side);
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--navy);
  color: #fff;
  padding: 33px 24px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.7px;
}
.brand-mark {
  position: relative;
  width: 34px;
  height: 38px;
  border: 2px solid currentColor;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
}
.brand-mark span {
  font-size: 23px;
  color: var(--amber);
}
.brand-by {
  font-size: 9px;
  font-weight: 600;
  display: block;
  letter-spacing: 0.2em;
  margin-top: 1px;
  opacity: 0.8;
}
.nav-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.17em;
  color: #9bacbb;
  margin: 58px 12px 13px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px;
  border-radius: 6px;
  min-height: 49px;
  color: #b6c4d1;
  margin-bottom: 5px;
  font-size: 15px;
}
.nav-link > span {
  font-size: 23px;
  width: 22px;
}
.nav-link.active {
  background: #244058;
  color: white;
}
.nav-link:hover {
  background: #1a374f;
  color: white;
}
.sidebar-bottom {
  margin-top: auto;
}
.sidebar-note {
  font-size: 13px;
  color: #dce5ed;
  border-bottom: 1px solid #ffffff1c;
  padding-bottom: 22px;
}
.sidebar-note p {
  font-size: 11px;
  color: #8fa4b6;
  margin: 7px 0 0;
}
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 100%;
  background: #39a471;
  margin-right: 7px;
}
.account {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 23px;
  font-size: 13px;
}
.account strong {
  display: block;
  font-size: 13px;
}
.account button {
  font-size: 12px;
  color: #9bafbf;
}
.avatar {
  width: 38px;
  height: 38px;
  background: #2a475e;
  border: 1px solid #ffffff16;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 13px;
}
.workspace {
  margin-left: var(--side);
  width: calc(100% - var(--side));
  min-width: 0;
}
.topbar {
  height: 80px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
}
.breadcrumb {
  font-size: 13px;
  color: #5d6978;
}
.breadcrumb span {
  padding: 0 14px;
  color: #b5bec7;
}
.connection {
  font-size: 12px;
  color: #536371;
  display: flex;
  align-items: center;
  gap: 2px;
}
.connection.offline {
  color: #946210;
}
.connection.offline .status-dot {
  background: var(--amber);
}
main {
  max-width: 1500px;
  margin: auto;
}
.workspace main {
  padding: 43px 42px 54px;
  min-height: calc(100vh - 145px);
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 34px;
}
.page-heading p {
  font-size: 15px;
  margin: 10px 0 0;
}
.summary-strip {
  display: flex;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 43px;
  padding: 25px 0;
  gap: 42px;
}
.summary-strip > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  color: var(--muted);
}
.summary-number {
  font-size: 30px;
  letter-spacing: -0.05em;
  font-weight: 650;
  color: var(--navy);
  line-height: 1.1;
}
.summary-strip .plan-summary {
  margin-left: auto;
  border-left: 1px solid var(--line);
  padding-left: 32px;
  justify-content: center;
}
.plan-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #81570d;
  font-weight: 700;
}
.section-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 24px;
}
.count {
  font-size: 13px;
  color: #697686;
  background: #e9edf0;
  padding: 4px 8px;
  border-radius: 5px;
  vertical-align: middle;
  margin-left: 8px;
  letter-spacing: 0;
}
.search-form {
  display: flex;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  max-width: 340px;
  width: 100%;
  align-items: center;
}
.search-form input {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent;
  min-height: 43px !important;
  font-size: 13px !important;
  margin: 0 !important;
}
.icon-button {
  border: 0;
  background: none;
  font-size: 24px;
  min-width: 44px;
  min-height: 44px;
}
.list-header,
.dossier-row {
  display: grid;
  grid-template-columns:
    minmax(230px, 2.2fr) minmax(110px, 1.1fr) minmax(100px, 1fr)
    100px 20px;
  align-items: center;
  gap: 20px;
}
.list-header {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #7a8795;
  padding: 0 19px 12px;
}
.dossier-list {
  border-top: 1px solid var(--line);
  background: white;
  border-radius: 6px;
  overflow: hidden;
}
.dossier-row {
  padding: 23px 19px;
  border-bottom: 1px solid var(--line);
  transition: background 0.18s;
  min-height: 97px;
}
.dossier-row:hover {
  background: #f8fafb;
}
.dossier-main {
  display: flex;
  gap: 15px;
  align-items: center;
  min-width: 0;
}
.installation-icon {
  width: 44px;
  height: 48px;
  background: #eef3f6;
  color: #567187;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 27px;
  flex-shrink: 0;
}
.installation-icon.battery-v1 {
  background: #eaf3e9;
  color: #4d7855;
}
.installation-icon.pv-v1 {
  background: #fff4df;
  color: #ad7d28;
}
.installation-icon.heatpump-v1 {
  background: #e9f1f7;
  color: #5687a5;
}
.dossier-main strong {
  font-size: 15px;
  display: block;
  font-weight: 650;
}
.dossier-main > div > span {
  font-size: 12px;
  color: #7c8793;
  display: block;
  margin-top: 4px;
}
.separator {
  padding: 0 5px;
}
.customer-cell,
.date-cell {
  font-size: 13px;
  color: #66717d;
}
.badge {
  font-size: 11px;
  padding: 5px 10px;
  background: #fff5dd;
  color: #946817;
  border-radius: 4px;
  justify-self: start;
  font-weight: 600;
  white-space: nowrap;
}
.badge.completed {
  background: #e6f2eb;
  color: #2d7247;
}
.badge.shared {
  background: #eaf1f6;
  color: #426780;
}
.row-arrow {
  color: #97a6b3;
  font-size: 22px;
}
.work-note {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-top: 27px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.note-icon {
  border: 1px solid #cad4dd;
  width: 34px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c8093;
  border-radius: 6px;
}
.work-note strong {
  font-size: 13px;
  font-weight: 600;
}
.work-note p {
  font-size: 12px;
  color: #7a8792;
  margin: 3px 0 0;
}
.work-note a {
  margin-left: auto;
  font-size: 12px;
  color: #506879;
  font-weight: 600;
}
.app-footer {
  padding: 21px 42px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #5d6978;
}
.mobile-nav {
  display: none;
}
.empty {
  text-align: center;
  padding: 70px 24px;
  background: #fff;
  border: 1px dashed #cbd4dc;
  border-radius: 8px;
}
.empty-icon {
  font-size: 48px;
  color: #8ba0b1;
  display: block;
  margin-bottom: 18px;
}
.empty p {
  color: var(--muted);
  margin: 15px 0 25px;
}
.public-header {
  max-width: 1300px;
  margin: auto;
  padding: 32px 45px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--navy);
}
.welcome {
  padding: 70px 45px;
}
.welcome h1 {
  font-size: clamp(60px, 7.5vw, 104px);
  letter-spacing: -0.065em;
  line-height: 1.05;
  color: var(--navy);
}
.welcome h1 span {
  color: #9aa9b4;
}
.welcome > p {
  max-width: 560px;
  font-size: 21px;
  color: #637383;
  margin: 28px 0;
}
.button-row {
  display: flex;
  gap: 30px;
}
.welcome-rule {
  border-top: 1px solid var(--line);
  margin-top: 80px;
}
.welcome-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 45px;
  padding: 35px 0;
}
.welcome-features span {
  color: #9aa9b4;
  font-size: 12px;
  display: block;
  margin-bottom: 22px;
}
.welcome-features h2 {
  font-size: 22px;
  margin-bottom: 10px;
}
.welcome-features p {
  color: #70808f;
  font-size: 15px;
}
.auth-page {
  max-width: 460px;
  margin: 65px auto;
  padding: 0 20px 60px;
}
.auth-page h1 {
  font-size: 35px;
  margin-bottom: 15px;
}
.auth-page form {
  margin-top: 30px;
}
.auth-switch {
  font-size: 14px;
  text-align: center;
  margin: 28px 0;
  color: var(--muted);
}
.auth-switch a {
  font-weight: 600;
  color: var(--navy);
}
label {
  display: block;
  font-size: 15px;
  font-weight: 550;
  margin-bottom: 19px;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
textarea,
select {
  display: block;
  width: 100%;
  min-height: 50px;
  margin-top: 8px;
  padding: 11px 13px;
  border: 1px solid #aebbc6;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
}
textarea {
  min-height: 100px;
  resize: vertical;
}
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--navy);
  width: 21px;
  height: 21px;
  flex-shrink: 0;
}
.check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}
.error {
  color: var(--red);
  font-size: 14px;
  min-height: 5px;
}
.form-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px;
}
.form-panel h2 {
  margin-bottom: 28px;
}
.form-panel.narrow {
  max-width: 740px;
}
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 25px;
  margin-top: 25px;
}
.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.optional {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
.new-form {
  display: grid;
  grid-template-columns: minmax(230px, 0.9fr) 1.5fr;
  gap: 30px;
}
.template-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 17px;
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
  margin: 0 0 12px;
  cursor: pointer;
}
.template-option:has(input:checked) {
  border: 2px solid var(--navy);
  padding: 17px;
  background: #f1f5f8;
}
.template-option input {
  position: absolute;
  opacity: 0;
}
.template-option:focus-within {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}
.template-option strong {
  font-size: 15px;
  display: block;
}
.template-option small {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 3px;
}
.template-symbol {
  font-size: 29px;
  color: #607e94;
  width: 30px;
}
.radio-mark {
  width: 18px;
  height: 18px;
  border: 1px solid #b6c3cd;
  border-radius: 50%;
  margin-left: auto;
}
.template-option:has(input:checked) .radio-mark {
  border: 5px solid var(--navy);
}
.back-link {
  font-size: 13px;
  color: #526574;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-bottom: 12px;
}
.editor-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.editor-title h1 {
  font-size: 30px;
  margin-bottom: 10px;
}
.editor-heading {
  margin-bottom: 26px;
}
.editor-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 30px;
}
.step-nav {
  padding-top: 6px;
}
.step-link {
  width: 100%;
  border: 0;
  background: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 10px;
  color: #526574;
  text-align: left;
  min-height: 50px;
  font-size: 14px;
  border-radius: 6px;
  margin-bottom: 5px;
}
.step-link.current {
  background: #e4eaf0;
  color: var(--navy);
  font-weight: 650;
}
.step-number {
  border: 1px solid #b8c5cf;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}
.step-link.current .step-number {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}
.editor-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  min-width: 0;
}
.editor-panel-header {
  gap: 16px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.editor-panel-header h2 { min-width: 0; flex: 1; }
.editor-panel-header small {
  flex-shrink: 0;
  color: var(--muted);
}
.fields {
  padding: 10px 28px;
}
.field {
  padding: 24px 0;
  border-bottom: 1px solid #e9edf0;
}
.field:last-child {
  border-bottom: 0;
}
.field-title {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.5;
  margin-bottom: 13px;
}
.field-title small {
  font-weight: 400;
  color: #526574;
  font-size: 11px;
}
.field-instruction {
  font-size: 13px;
  color: var(--muted);
  margin-top: -6px;
}
.choices {
  display: flex;
  gap: 8px;
}
.choice {
  flex: 1;
  border: 1px solid #bdc8d1;
  background: #fff;
  border-radius: 6px;
  min-height: 52px;
  font-size: 15px;
  color: #536879;
}
.choice[data-value="pass"].selected,
.choice[data-value="yes"].selected {
  background: #e4f3e8;
  border: 2px solid #15803d;
  color: #136b33;
}
.choice[data-value="fail"].selected,
.choice[data-value="no"].selected {
  background: #fee2e2;
  border: 2px solid #b91c1c;
  color: #b91c1c;
}
.choice[data-value="na"].selected {
  background: #edf0f3;
  border: 2px solid #77828e;
}
.measurement {
  position: relative;
}
.measurement input {
  padding-right: 65px !important;
  font-variant-numeric: tabular-nums;
}
.measurement .unit {
  position: absolute;
  right: 15px;
  top: 12px;
  color: #728290;
}
.field-warning {
  background: #fffbeb;
  color: #936008;
  padding: 10px 13px;
  border-left: 3px solid var(--amber);
  margin-top: 10px;
  font-size: 14px;
}
.skip-toggle {
  font-size: 12px;
  color: #526574;
  text-decoration: underline;
  border: 0;
  background: none;
  padding: 10px 0;
  min-height: 40px;
}
.skip-reason {
  background: #faf5ea;
  padding: 12px;
}
.subfields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.subfields label {
  font-size: 13px;
  margin-bottom: 12px;
}
.photo-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.photo-preview {
  width: 126px;
  position: relative;
}
.photo-preview img {
  width: 126px;
  height: 100px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.photo-preview small {
  display: block;
  font-size: 10px;
  color: var(--muted);
}
.upload-zone {
  border: 1px dashed #9fb0bf;
  border-radius: 7px;
  padding: 20px;
  color: #536d81;
  background: #f9fbfc;
  text-align: center;
  position: relative;
  min-height: 70px;
  cursor: pointer;
}
.upload-zone input {
  max-width: 100%;
  display: block;
  margin: 10px auto 0;
  font-size: 13px;
}
.field .upload-zone {
  margin-bottom: 0;
}
.editor-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px;
  background: #fafbfc;
  border-top: 1px solid var(--line);
}
.editor-loading {
  padding: 50px;
  color: var(--muted);
}
.saved-text {
  font-size: 12px;
  color: #526e5b;
}
.validation-list {
  margin: 20px 0;
  padding: 16px 20px;
  background: #fff7e4;
  border-radius: 6px;
  font-size: 14px;
}
.validation-list a {
  display: block;
  text-decoration: underline;
  margin: 8px 0;
}
.signature-canvas {
  display: block;
  width: 100%;
  height: 150px;
  border: 1px solid #aebbc6;
  border-radius: 6px;
  background: #fbfcfd;
  touch-action: none;
  margin: 12px 0;
}
.repeat-row {
  padding: 15px;
  background: #f5f7f9;
  border-radius: 6px;
  margin-bottom: 12px;
}
.repeat-row h4 {
  margin: 0 0 15px;
}
.repeat-row .subfields {
  margin-bottom: -12px;
}
.completion {
  padding: 38px;
  text-align: center;
}
.completion .complete-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #e3f2e7;
  color: #218345;
  font-size: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.completion h2 {
  margin-bottom: 15px;
}
.completion .button-row {
  justify-content: center;
  flex-wrap: wrap;
  margin: 25px 0;
}
.completion code {
  font-size: 12px;
  display: block;
  overflow-wrap: anywhere;
  color: #657789;
}
.share-result {
  margin: 20px 0;
  text-align: left;
}
.share-result input {
  font-size: 14px !important;
}
.customer-page {
  max-width: 660px;
  margin: 65px auto;
  padding: 0 25px;
}
.customer-brand {
  font-size: 22px;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
  margin-bottom: 40px;
  color: var(--navy);
  overflow-wrap: anywhere;
}
.customer-logo {
  display: block;
  width: 240px;
  max-width: 100%;
  height: 80px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 16px;
}
.customer-page h1 {
  font-size: 46px;
}
.lead {
  font-size: 21px;
  color: var(--muted);
  margin: 15px 0 35px;
}
.customer-details {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  margin-bottom: 30px;
  font-size: 13px;
  color: var(--muted);
}
.customer-details > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.customer-details strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
}
.download-panel {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
}
.download-icon {
  font-size: 30px;
  color: var(--navy);
}
.download-panel strong {
  display: block;
}
.download-panel small {
  color: var(--muted);
}
.download-panel > span:last-child {
  margin-left: auto;
}
.hash-details {
  margin: 30px 0;
  color: var(--muted);
  font-size: 14px;
}
.hash-details code {
  display: block;
  overflow-wrap: anywhere;
  font-size: 12px;
  margin: 16px 0;
}
.customer-page footer {
  text-align: center;
  border-top: 1px solid var(--line);
  padding: 30px;
  font-size: 12px;
  color: var(--muted);
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 20px;
  background: var(--navy);
  color: #fff;
  z-index: 100;
  border-radius: 8px;
  box-shadow: 0 4px 20px #0002;
  max-width: 90vw;
  font-size: 14px;
}
.success {
  color: var(--green);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: -70px;
  left: 20px;
  z-index: 100;
  background: var(--amber);
  padding: 10px;
}
.skip-link:focus {
  top: 10px;
}
.progress-line {
  height: 3px;
  background: #edf1f4;
}
.progress-line span {
  display: block;
  height: 3px;
  background: var(--amber);
  transition: width 0.2s;
}
.mobile-step-title {
  display: none;
}
.saved-status {
  font-size: 13px;
  color: #5e7768;
  margin-bottom: 14px;
}
.offline-message {
  background: #fff4d8;
  color: #875d13;
  padding: 13px 16px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 14px;
}
.hidden {
  display: none !important;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1400px) {
  .workspace main {
    padding: 50px 64px;
  }
  .topbar {
    padding: 0 64px;
  }
  .page-heading h1 {
    font-size: 42px;
  }
}
@media (max-width: 1100px) {
  :root {
    --side: 220px;
  }
  .sidebar {
    padding: 28px 18px;
  }
  .workspace main {
    padding: 32px 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .customer-cell {
    display: none;
  }
  .list-header,
  .dossier-row {
    grid-template-columns: minmax(220px, 2fr) 100px 100px 15px;
  }
  .list-header span:nth-child(2) {
    display: none;
  }
  .summary-strip {
    gap: 27px;
  }
  .editor-layout {
    grid-template-columns: 150px 1fr;
    gap: 18px;
  }
  .step-link {
    font-size: 13px;
    padding-left: 0;
  }
  .fields {
    padding: 5px 20px;
  }
  .new-form {
    grid-template-columns: 1fr;
  }
  .template-picker {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .template-option {
    margin: 0;
  }
  .brand {
    font-size: 18px;
  }
}
@media (max-width: 760px) {
  .sidebar {
    display: none;
  }
  .workspace {
    margin: 0;
    width: 100%;
  }
  .workspace main {
    padding: 25px 16px 105px;
  }
  .topbar {
    height: 54px;
    padding: 0 16px;
    position: sticky;
    top: 0;
    z-index: 20;
  }
  .breadcrumb {
    font-size: 12px;
  }
  .connection {
    font-size: 12px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 17px;
    margin-bottom: 26px;
    flex-direction: column;
  }
  .page-heading h1 {
    font-size: 30px;
  }
  .page-heading p {
    font-size: 16px;
  }
  .page-heading > .button {
    width: 100%;
  }
  .eyebrow {
    font-size: 11px;
  }
  .summary-strip {
    gap: 25px;
    padding: 20px 0;
    margin-bottom: 28px;
    flex-wrap: wrap;
  }
  .summary-strip > div {
    font-size: 13px;
  }
  .summary-number {
    font-size: 29px;
  }
  .summary-strip .plan-summary {
    width: 100%;
    margin: 0;
    border: 0;
    padding: 12px 0 0;
    border-top: 1px solid var(--line);
    flex-direction: row;
    justify-content: space-between;
  }
  .section-toolbar {
    flex-wrap: wrap;
    gap: 15px;
  }
  .search-form {
    max-width: none;
  }
  .search-form input {
    font-size: 16px !important;
    min-height: 48px !important;
  }
  .list-header {
    display: none;
  }
  .dossier-row {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 19px 13px;
  }
  .dossier-main {
    gap: 12px;
  }
  .dossier-main strong {
    font-size: 16px;
  }
  .dossier-main > div > span {
    font-size: 13px;
  }
  .date-cell,
  .row-arrow {
    display: none;
  }
  .badge {
    font-size: 12px;
    padding: 5px 8px;
  }
  .installation-icon {
    width: 38px;
    height: 43px;
    font-size: 24px;
  }
  .work-note {
    align-items: flex-start;
    gap: 10px;
  }
  .work-note strong {
    font-size: 15px;
  }
  .work-note p {
    font-size: 14px;
  }
  .work-note a {
    display: none;
  }
  .note-icon {
    flex-shrink: 0;
  }
  .app-footer {
    display: none;
  }
  .mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    height: 75px;
    padding-bottom: env(safe-area-inset-bottom);
    background: white;
    border-top: 1px solid var(--line);
    z-index: 30;
  }
  .mobile-nav a {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #5d6c7b;
    gap: 2px;
  }
  .mobile-nav a span {
    font-size: 25px;
    line-height: 1.1;
  }
  .mobile-nav a.selected {
    color: var(--navy);
    font-weight: 650;
  }
  .topbar .breadcrumb span {
    padding: 0 7px;
  }
  .new-form {
    gap: 22px;
  }
  .template-picker {
    display: block;
  }
  .template-option {
    margin-bottom: 10px;
    min-height: 80px;
  }
  .template-option strong {
    font-size: 17px;
  }
  .template-option small {
    font-size: 13px;
  }
  .form-panel {
    padding: 23px 18px;
  }
  .two-columns,
  .subfields {
    grid-template-columns: 1fr;
    gap: 0;
  }
  label,
  .subfields label {
    font-size: 16px;
  }
  .check-label {
    font-size: 16px;
  }
  .optional {
    font-size: 14px;
  }
  .editor-heading {
    margin-bottom: 23px;
  }
  .editor-title {
    align-items: flex-start;
  }
  .editor-title h1 {
    font-size: 25px;
  }
  .editor-title .badge {
    margin-left: 15px;
  }
  .back-link {
    font-size: 16px;
  }
  .editor-layout {
    display: block;
  }
  .step-nav {
    display: flex;
    overflow-x: auto;
    gap: 5px;
    padding-bottom: 10px;
    margin-bottom: 15px;
  }
  .step-link {
    width: auto;
    flex-shrink: 0;
    padding: 8px 10px;
    font-size: 14px;
    min-height: 48px;
  }
  .step-link:not(.current) .step-label {
    display: none;
  }
  .step-number {
    width: 28px;
    height: 28px;
  }
  .editor-panel-header {
    padding: 20px;
  }
  .editor-panel-header small {
    font-size: 14px;
  }
  .fields {
    padding: 0 18px;
  }
  .field-title {
    font-size: 17px;
  }
  .field-title small {
    font-size: 13px;
  }
  .choice {
    font-size: 16px;
    min-height: 59px;
    padding: 6px;
  }
  .skip-toggle {
    font-size: 14px;
    min-height: 48px;
  }
  .field-instruction {
    font-size: 16px;
  }
  .editor-actions {
    padding: 18px 15px;
    gap: 10px;
  }
  .editor-actions .button {
    padding: 12px 18px;
  }
  .editor-actions .saved-text {
    display: none;
  }
  .completion {
    padding: 27px 18px;
  }
  .completion .button-row {
    gap: 12px;
    flex-direction: column;
  }
  .completion .button {
    width: 100%;
  }
  .toast {
    bottom: 90px;
  }
  .public-header {
    padding: 22px 20px;
  }
  .public-header .text-link {
    font-size: 13px;
  }
  .auth-page {
    margin-top: 38px;
  }
  .auth-page h1 {
    font-size: 32px;
  }
  .welcome {
    padding: 45px 22px;
  }
  .welcome h1 {
    font-size: 62px;
  }
  .welcome .eyebrow {
    font-size: 10px;
    max-width: 240px;
    line-height: 1.8;
  }
  .welcome > p {
    font-size: 19px;
  }
  .button-row {
    gap: 20px;
    flex-direction: column;
    align-items: flex-start;
  }
  .welcome-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .welcome-features span {
    margin-bottom: 10px;
  }
  .welcome-rule {
    margin-top: 48px;
  }
  .customer-page {
    margin: 30px auto;
  }
  .customer-page h1 {
    font-size: 37px;
  }
  .customer-details {
    gap: 15px;
  }
  .customer-details strong {
    font-size: 15px;
  }
  .progress-line {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
/* Team and subscription management share the existing application typography. */
.management-links {
  display: flex;
  gap: 16px;
  align-items: end;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.management-links label {
  min-width: 240px;
  margin: 0;
}
.manage-section {
  margin: 36px 0;
}
.manage-section h2 {
  font-size: 24px;
  margin-bottom: 20px;
}
.manage-section summary {
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  min-height: 48px;
  padding: 12px 0;
}
.management-grid,
.plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.management-grid .form-panel {
  margin: 0;
}
.team-list,
.invoice-list {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.team-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}
.team-row:last-child,
.invoice-row:last-child {
  border: 0;
}
.team-row > div {
  flex: 1;
  min-width: 180px;
}
.team-row > div span {
  display: block;
  margin-top: 5px;
}
.team-row select {
  width: 140px;
  margin: 0;
}
.team-row .button {
  white-space: nowrap;
}
.dark {
  color: var(--navy);
}
.invitation-row {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.plan-option {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy);
  border-radius: 8px;
}
.plan-option h3 {
  font-size: 24px;
}
.plan-option p > strong {
  font-size: 30px;
}
.three-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.quote-panel {
  margin-top: 24px;
  background: #fff;
  border: 2px solid var(--amber);
  border-radius: 12px;
  padding: 32px;
}
.money-row {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.money-row strong {
  white-space: nowrap;
}
.money-row.total {
  font-size: 20px;
}
.invoice-row {
  display: flex;
  gap: 22px;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}
.invoice-row > span {
  flex: 1;
  color: var(--muted);
}
.invoice-row a {
  font-weight: 600;
  min-height: 48px;
  display: flex;
  align-items: center;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  max-width: 480px;
  width: calc(100% - 32px);
  padding: 32px;
}
dialog::backdrop {
  background: #0f2a4380;
}
.summary-strip small {
  display: block;
  color: var(--muted);
  margin-top: 8px;
  max-width: 280px;
}
.form-panel > h2 {
  margin-top: 0;
}
#management .form-panel {
  margin-top: 24px;
}
#management .error:empty {
  display: none;
}
@media (max-width: 1100px) {
  .team-row {
    flex-wrap: wrap;
  }
  .team-row > div {
    flex-basis: 50%;
  }
}
@media (max-width: 700px) {
  .management-grid,
  .plan-grid,
  .three-columns {
    grid-template-columns: 1fr;
  }
  .team-row {
    gap: 12px;
  }
  .team-row > div {
    flex-basis: 70%;
    overflow-wrap: anywhere;
  }
  .team-row select {
    flex: 1;
  }
  .invoice-row {
    flex-wrap: wrap;
    gap: 12px;
  }
  .invoice-row > span {
    flex-basis: 60%;
  }
  .quote-panel {
    padding: 20px;
  }
  .management-links {
    align-items: stretch;
  }
  .management-links > a {
    flex: 1;
  }
  .management-links label {
    width: 100%;
  }
  .summary-strip .summary-number {
    font-size: 24px;
  }
  .sidebar-note {
    display: none;
  }
}
.export-form {
  max-width: 900px;
}
.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.export-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 10px 24px;
  border-top: 1px solid var(--line, #e3e7eb);
  padding: 24px 0;
}
.export-row h3 {
  margin: 0 0 8px;
}
.export-row p {
  margin: 0;
}
.export-downloads {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  grid-column: 1 / -1;
  padding-top: 10px;
}
.export-downloads small {
  font-weight: 400;
}
.retention-timeline {
  border-left: 3px solid #dda337;
  margin: 24px 0;
  padding: 4px 0 4px 20px;
}
.retention-timeline p {
  margin: 12px 0;
}
.retention-timeline strong {
  display: block;
  color: #142b41;
}
#closure-form details {
  margin: 22px 0;
}
@media (max-width: 650px) {
  .export-row {
    grid-template-columns: 1fr;
  }
  .export-row .badge {
    justify-self: start;
  }
  .export-downloads {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Account controls use the same restrained row layout as exports and teams. */
.secret-value {
  display: block;
  overflow-wrap: anywhere;
  padding: 16px;
  background: #fff;
  color: #111827;
}
.recovery-codes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 12px;
  padding: 0;
  list-style: none;
}
.recovery-codes code {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.security-session {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid #dfe3e8;
}
.security-session > div {
  min-width: 0;
}
.device-label {
  overflow-wrap: anywhere;
}
.security-events {
  list-style: none;
  padding: 0;
}
.security-events li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid #dfe3e8;
}
#totp-qr {
  display: block;
  max-width: 100%;
  height: auto;
}
#recovery-result:focus {
  outline: 2px solid #0f2a43;
  outline-offset: 8px;
}
@media (max-width: 650px) {
  .security-session {
    align-items: flex-start;
    flex-direction: column;
  }
  .security-events li {
    flex-direction: column;
    gap: 4px;
  }
}

.catalog-toolbar{display:flex;align-items:end;justify-content:space-between;gap:20px;margin:28px 0}.catalog-toolbar label{min-width:min(100%,280px)}.catalog-row{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px 0;border-bottom:1px solid var(--line,#dce2e8)}.catalog-row h3{margin:0 0 8px;font-size:17px}.catalog-row p{margin:5px 0;overflow-wrap:anywhere}.catalog-text{white-space:pre-wrap;max-width:72ch}.catalog-empty{padding:32px 0}.catalog-file-field{margin:24px 0}.catalog-choices{margin-top:20px}.catalog-choices .check-label{padding:12px 0;align-items:start;border-bottom:1px solid var(--line,#dce2e8)}.catalog-choices small{display:block}.catalog-choices input{flex-shrink:0}.catalog-evidence{white-space:pre-wrap;font-size:14px;margin:12px 0}.catalog-file-field[hidden]{display:none}
@media(max-width:640px){.catalog-row{align-items:start;flex-direction:column;gap:12px}.catalog-toolbar{align-items:stretch;flex-direction:column}.catalog-row .button-row{flex-wrap:wrap}}

.template-group{margin-bottom:2.5rem}.template-group .catalog-row>div:first-child{flex:1;min-width:12rem}.template-group .button-row{max-width:30rem;justify-content:flex-end}.template-section{border-top:1px solid var(--line,#dce2e6);margin:1.5rem 0;padding-top:1.5rem}.template-field{border-bottom:1px solid #dce2e6;padding:.8rem 0}.template-field>summary{display:flex;gap:1rem;align-items:baseline;justify-content:space-between;cursor:pointer}.template-field>summary span{font-weight:600}.template-field>summary small{color:#526575;white-space:nowrap}.template-field-body{padding:1rem .5rem}.template-field-body .button-row{margin:.8rem 0}.template-children{padding-left:1rem;border-left:2px solid #dce2e6}.template-add{margin:1.5rem 0;align-items:end}.template-add label{margin:0}.template-difference{padding:1.2rem 0;margin:1.5rem 0;border:0;border-bottom:1px solid #dce2e6}.template-difference legend{font-weight:600;padding:0}.template-compare-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.5rem}.template-compare-values p{overflow-wrap:anywhere;white-space:pre-wrap}.template-compare-values small{color:#526575;font-size:.7rem;letter-spacing:.05em}.template-condition{margin:1rem 0}.three-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}@media(max-width:700px){.template-group .button-row{justify-content:flex-start;max-width:none;flex-direction:row;gap:.75rem;align-items:center}.template-compare-values,.three-columns{grid-template-columns:1fr}.template-field>summary{flex-direction:column;gap:.3rem}.template-field-body{padding:.8rem 0}.template-children{padding-left:.6rem}}

.address-lookup{margin:1.5rem 0;padding:1rem 0;border-block:1px solid var(--line,#dce2e8)}.address-lookup summary{cursor:pointer;font-weight:600}.address-lookup [data-address-results]{margin-top:1rem}.rest-point{border:0;border-top:1px solid var(--line,#dce2e8);padding:1.5rem 0;margin:1.5rem 0}.rest-point legend{font-weight:600;padding:0 .5rem 0 0}.finding-list{padding:0;list-style:none}.finding-list li{border-left:3px solid #b87510;padding:.5rem 1rem;margin:1rem 0}.finding-list li p{margin:.5rem 0;white-space:pre-wrap;overflow-wrap:anywhere}.finding-list a{color:var(--ink,#132f46);font-weight:600}.dossier-findings h3{margin-top:2rem}.dossier-findings h3:first-child{margin-top:0}#rest-point-undo{margin:1rem 0}.rest-point label[hidden]{display:none}#dossier-details label{margin-bottom:1rem}

.offline-message[hidden]{display:none}

.dossier-tools{justify-content:space-between;gap:1rem;margin-bottom:1rem}.dossier-tools button.text-link,#cancel-duplicate-form{font:inherit;font-weight:600;cursor:pointer;border:0;background:none;padding:0;min-height:48px}#duplicate-fields #dossier-details{margin:1.5rem 0}

.dossier-documents{margin-top:2rem;border-top:1px solid var(--line,#ddd);padding-top:1.5rem}.attachment-row{padding:1rem 0;border-bottom:1px solid var(--line,#ddd);display:flex;gap:1rem;justify-content:space-between;flex-wrap:wrap}.attachment-row strong{overflow-wrap:anywhere}.attachment-row small{display:block;margin-top:.35rem}.attachment-row>div{min-width:0}.attachment-list{margin-bottom:1rem}
button.text-link{font:inherit;font-weight:600;cursor:pointer;border:0;background:transparent;padding:0;color:inherit}

.connection-action{border:0;background:none;color:inherit;text-decoration:underline;cursor:pointer;font:inherit;margin-left:.5rem;min-height:44px}.sync-dialog{width:min(900px,calc(100vw - 32px));max-width:none;max-height:85vh;padding:0;border:0;border-radius:12px;color:var(--ink);overflow:auto}.sync-dialog::backdrop{background:#10213199}.sync-dialog [data-dialog-content]{padding:0 24px 24px}.dialog-heading{position:sticky;top:0;z-index:1;padding:20px 24px;background:#fff;display:flex;align-items:center;justify-content:space-between;gap:1rem}.dialog-heading h2{margin:0}.sync-record,.history-event{border-top:1px solid #dce2e6;padding:20px 0;margin-top:16px}.sync-operation{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;padding:12px 0}.sync-operation p{margin:.4rem 0}.history-values{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-top:1rem}.history-values pre{font:inherit;white-space:pre-wrap;overflow-wrap:anywhere;max-height:240px;overflow:auto;background:#f6f8fa;padding:12px}.history-values>div{min-width:0}@media(max-width:650px){.history-values{grid-template-columns:1fr}.dialog-heading{align-items:flex-start;padding:16px}.dialog-heading h2{font-size:1.25rem}.sync-dialog [data-dialog-content]{padding:0 16px 16px}.connection-action{font-size:11px}.sync-operation{display:block}.sync-operation .text-link{margin-right:16px}}

.sync-confirm{flex-basis:100%;padding:16px;background:#f6f8fa;border-radius:8px}

.vision-crop{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:20px 0}.vision-crop img,.vision-crop canvas{width:100%;max-height:300px;object-fit:contain;display:block;background:#f4f6f7}.vision-crop canvas{margin-top:8px}.vision-crop-inputs{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:20px 0}.vision-crop-inputs input{width:100%}.vision-proposal{padding:16px 0;border-bottom:1px solid #dce2e6}.vision-proposal small{display:block;margin-top:8px}.vision-actions{display:flex;gap:20px;align-items:center;flex-wrap:wrap;margin:24px 0}.vision-actions .text-link{min-height:44px}@media(max-width:650px){.vision-crop{grid-template-columns:1fr}.vision-crop-inputs{grid-template-columns:1fr 1fr}}

.review-notice,.review-proof{margin-top:1.5rem;padding-top:1.5rem;border-top:1px solid var(--line,#dde1de);text-align:left}
.review-proof h2{font-size:1.3rem}.review-proof dl{display:grid;grid-template-columns:auto 1fr;gap:.5rem 1.2rem}.review-proof dt{font-weight:600}.review-proof dd{margin:0}.review-proof code{overflow-wrap:anywhere;white-space:normal;font-size:.75rem}.review-proof details{margin-top:1.5rem}.review-note{white-space:pre-wrap}

.review-filters{margin:0 0 1.5rem}.review-filters .button{min-height:44px}
@media(max-width:600px){.review-proof dl{grid-template-columns:1fr;gap:.25rem}.review-proof dd+dt{margin-top:.6rem}}

.addendum-list{margin:1.5rem 0}.addendum-row{display:flex;align-items:center;gap:1rem;padding:1.2rem 0;border-bottom:1px solid #dde1de;text-decoration:none;color:inherit}.addendum-row>span:first-child{flex:1}.addendum-row small{display:block;color:#607180;margin-top:.3rem}.addendum-row:hover strong{text-decoration:underline}
.customer-page .button { max-width: 100%; white-space: normal; text-align: center; }
.customer-page code { display: block; overflow-wrap: anywhere; }
.customer-page .customer-summary { margin-bottom: 24px; }

#mail-overview { max-width: 880px; }
#mail-overview .catalog-evidence { padding: 24px 0; border-bottom: 1px solid var(--line, #dce2e8); white-space: normal; }
#mail-overview h2 { font-size: 1.15rem; overflow-wrap: anywhere; }
.mail-recipient { overflow-wrap: anywhere; }
.mail-retry { margin-top: 20px; }

.sticker-settings { max-width: 720px; border-block: 1px solid var(--line, #dce2e8); margin: 28px 0; padding: 20px 0; }
.sticker-settings summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.sticker-settings form { margin-top: 20px; }
.share-mail-history { margin-top: 40px; max-width: 720px; }
#customer-share .button, .sticker-settings .button { white-space: normal; text-align: center; max-width: 100%; }

/* Service history remains legible alongside the immutable handover report. */
.service-form{margin:28px 0;max-width:900px}.service-form fieldset{border:0;padding:0;min-width:0}.service-description{white-space:pre-wrap;overflow-wrap:anywhere}.service-history{margin-top:40px}.service-previous{border-top:1px solid var(--line,#ddd);margin-top:20px;padding-top:16px}.service-photos,.service-photo-choices{display:flex;flex-wrap:wrap;gap:16px;margin:16px 0}.service-photos a{display:block;width:160px;overflow-wrap:anywhere}.service-photos img,.service-photo-choice img{display:block;width:160px;height:120px;object-fit:cover;border-radius:6px}.service-photos small{display:block}.service-photo-choice{display:flex;gap:8px;align-items:flex-start;max-width:220px}.service-photo-choice input{width:auto;margin:4px 0}.service-photo-choice span{font-size:.85rem}.service-upload-status{overflow-wrap:anywhere}.service-result{color:#315f43}.service-history article{overflow-wrap:anywhere}

#service-manager .button{white-space:normal;max-width:100%;overflow-wrap:anywhere;text-align:left}.service-form input[type=file]{max-width:100%;width:100%;min-width:0}.service-conflict{overflow-wrap:anywhere}.service-conflict .button{margin:4px 0}

/* Maintenance stays separate from the signed delivery report. */
.maintenance-list{display:grid;margin:1rem 0}.maintenance-row{display:flex;align-items:center;gap:1.5rem;padding:1.1rem 0;border-bottom:1px solid var(--line);color:inherit;text-decoration:none}.maintenance-row>span:first-child{flex:1;min-width:0}.maintenance-row strong,.maintenance-row small{display:block;overflow-wrap:anywhere}.maintenance-row small{margin-top:.3rem;color:var(--muted)}.maintenance-row:hover strong{color:var(--navy)}.maintenance-settings{margin-bottom:2rem}.maintenance-settings form{margin-top:1.5rem;max-width:760px}.maintenance-history{margin-top:1.5rem}.maintenance-conflict button{white-space:normal;text-align:left;margin-bottom:.5rem}.maintenance-row>span:last-child{font-size:1.4rem}
@media(max-width:640px){.maintenance-row{flex-wrap:wrap;gap:.5rem}.maintenance-row>span:first-child{flex-basis:100%}.maintenance-row>span:nth-child(2){flex:1}.maintenance-row>span:nth-child(2) strong{display:inline}.maintenance-settings .two-columns{grid-template-columns:1fr}}

.photo-preview .photo-location,.service-photo-choice small{display:block;overflow-wrap:anywhere}.photo-location-status{overflow-wrap:anywhere}
.photo-preview .photo-location{font-size:12px;line-height:1.45;margin-top:4px}
.dossier-search{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:0 0 24px}.dossier-search label{margin:0;min-width:150px}.dossier-search-query{flex:1;min-width:250px!important}.dossier-search input,.dossier-search select{margin-top:6px}.dossier-pagination{display:flex;gap:16px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-top:24px}.dossier-pagination span{font-size:14px;color:var(--muted)}
@media(max-width:600px){.dossier-search label,.dossier-search-query{min-width:0!important;width:100%;flex:auto}.dossier-search button{width:100%}.dossier-pagination{gap:12px}.dossier-pagination span{width:100%;order:-1;text-align:center}}

/* Actionable work remains separate from the filtered dossier search. */
.dashboard-attention{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 2rem}
.attention-list{list-style:none;margin:0 0 1rem;padding:0}
.attention-list li{border-bottom:1px solid var(--line,#deded8)}
.attention-list a{display:flex;justify-content:space-between;gap:1rem;padding:1rem 0;color:inherit;text-decoration:none}
.attention-list a:hover strong{text-decoration:underline}
.attention-list a>span:first-child{min-width:0;overflow-wrap:anywhere}
.attention-detail{display:block;color:var(--muted,#686b61);font-size:.875rem;margin-top:.25rem}
.attention-due{display:flex;flex-direction:column;gap:.25rem;flex:0 0 10rem;font-size:.8rem;text-align:right}
.rest-followup{margin-bottom:1.5rem;overflow-wrap:anywhere}
.rest-followup h2{font-size:1.25rem}.rest-followup form{margin-top:1.25rem}.followup-history{margin-top:1rem}.followup-history article{border-bottom:1px solid var(--line,#deded8);padding:.75rem 0}.followup-history article p{white-space:pre-wrap}
.followup-conflict button{margin-top:.5rem;white-space:normal}
@media(max-width:700px){.dashboard-attention{grid-template-columns:1fr}.attention-list a{flex-direction:column;gap:.5rem}.attention-due{flex:auto;flex-direction:row;flex-wrap:wrap;text-align:left;gap:.5rem}.rest-followup .section-toolbar{align-items:flex-start;gap:.75rem;flex-wrap:wrap}}

/* Customer text must remain readable on the light page background. */
.customer-page{--muted:#536170}
.customer-page .eyebrow{color:#536170}

.conflict-notice p{margin:.5rem 0}.history-comparison{grid-template-columns:repeat(3,minmax(0,1fr))}.history-event small{display:block;overflow-wrap:anywhere}.history-event>p{margin:.5rem 0}#restore-dialog .button-row{flex-wrap:wrap}@media(max-width:650px){.history-comparison{grid-template-columns:1fr}}
.sync-dialog [data-reviewed],.sync-dialog .button-row>.button{max-width:100%;white-space:normal}

/* Keep search reached from the mobile shortcut below the connection bar. */
#zoeken { scroll-margin-top: 90px; }

.more-links a { white-space: normal; max-width: 100%; text-align: center; }
