:root {
  color-scheme: light;
  --ink: #181715;
  --muted: #66625e;
  --line: #d4d0ca;
  --paper: #fffefa;
  --surface: #f8f7f4;
  --brand: #191917;
  --brand-soft: #eeece7;
  --accent: #b8893f;
  --danger: #981820;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--surface); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 72px;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: white;
  background: var(--brand);
  box-shadow: 0 4px 18px rgb(16 16 16 / 18%);
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand img {
  width: 98px;
  height: 47px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.brand div { display: grid; gap: 2px; }
.brand strong { font-size: 17px; }
.brand span { color: #cbc8c4; font-size: 12px; }
.mobile-archive-toggle, .archive-close, .archive-backdrop { display: none; }
.header-actions, .header-buttons, .toolbar-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sync-status {
  padding: 6px 9px;
  border: 1px solid #ffffff35;
  border-radius: 99px;
  color: #dedbd6;
  font-size: 11px;
  font-weight: 750;
}
.sync-status.online { color: white; border-color: #ffffff65; background: #ffffff12; }

.button {
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
}
.button:disabled { cursor: wait; opacity: .65; }
.pdf-export-host {
  position: fixed;
  z-index: -1;
  top: 0;
  left: -10000px;
  width: 194mm;
  background: white;
}
.pdf-export-source .pdf-static-field {
  width: 100%;
  min-height: 22px;
  padding: 4px;
  overflow: hidden;
  border: .5px solid #d4d0ca;
  border-radius: 2px;
  color: #181715;
  background: #f8f7f4;
  font-size: 10.25px;
  font-weight: 500;
  line-height: 13px;
  text-transform: none;
  letter-spacing: normal;
}
.pdf-export-source .pdf-static-textarea {
  background: white;
  white-space: pre-wrap;
}
.pdf-export-source .pdf-static-textarea[data-name="description"] { height: 78px; }
.pdf-export-source .pdf-static-textarea[data-name="materials"] { height: 60px; }
.pdf-export-source .pdf-static-textarea[data-name="equipment"] { height: 106px; }
.pdf-export-source .worker-row .pdf-static-field {
  min-height: 17px;
  padding: 2px 3px;
  font-size: 9.25px;
  line-height: 12px;
}
.button.primary { color: white; background: var(--accent); }
.button.primary:hover { background: #9f7534; }
#new-button { color: white; background: #b8893f; }
#new-button:hover { background: #9f7534; }
#save-button { color: #24372c; background: #b8d3bd; }
#save-button:hover { background: #a4c5ab; }
.button.secondary { color: var(--ink); background: white; border-color: var(--line); }
.app-header .button.secondary { color: white; background: transparent; border-color: #ffffff45; }
.button.danger-text { color: var(--danger); background: transparent; }
.embedded-mode .app-header {
  display: none;
}
.embedded-mode .app-header .brand {
  display: none;
}
.embedded-mode .header-actions {
  display: grid;
  justify-items: end;
  justify-content: flex-end;
  gap: 6px;
}
.embedded-mode .header-buttons {
  justify-content: flex-end;
}
.embedded-mode .sync-status[hidden] {
  display: none;
}
.embedded-mode .sync-status {
  justify-self: end;
  padding: 0;
  border: 0;
  background: transparent;
  color: #cbc8c4;
  font-size: 11px;
  line-height: 1;
}
.embedded-mode .app-shell {
  min-height: 100vh;
}
.embedded-mode .archive {
  top: 0;
  height: 100vh;
}
.app-shell { display: grid; grid-template-columns: 310px minmax(0, 1fr); min-height: calc(100vh - 72px); }
.public-banner {
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px max(18px, calc((100% - 1120px) / 2));
  color: white;
  background: var(--brand);
  border-top: 1px solid #ffffff25;
}
.public-banner div { display: grid; gap: 3px; }
.public-banner .eyebrow { color: #cbc8c4; }
.public-banner > span { color: #cbc8c4; font-size: 12px; }
.public-mode .app-header, .public-mode .archive, .public-mode .workspace-toolbar > div:first-child { display: none; }
.public-mode .public-banner { display: flex; }
.public-mode .app-shell { display: block; min-height: 100vh; }
.public-mode .workspace { padding-top: 18px; }
.public-mode .workspace-toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  justify-content: flex-end;
}
.public-mode #delete-button, .public-mode #duplicate-button, .public-mode #download-pdf-button, .public-mode #print-button { display: none; }
.archive {
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 18px;
  border-right: 1px solid var(--line);
  background: var(--paper);
}
.archive[hidden] { display: none !important; }
.archive-heading, .archive-heading-actions, .workspace-toolbar, .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.eyebrow { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; }
h1 { margin-top: 2px; font-size: 24px; }
h2 { margin-top: 2px; font-size: 20px; }
h3 { font-size: 14px; }
.counter { min-width: 32px; padding: 5px 9px; border-radius: 99px; text-align: center; color: var(--brand); background: var(--brand-soft); font-weight: 800; }
.search { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.archive-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.archive-filters label { font-size: 10px; }
.archive-filters input, .archive-filters select { padding: 8px; font-size: 12px; }
.report-list { display: grid; gap: 8px; overflow-y: auto; padding-right: 3px; }
.report-month-heading {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: 2px 0 1px;
  padding: 8px 10px;
  border: 1px solid #e4ded2;
  border-radius: 9px;
  color: #6b4b1d;
  background: #fff8ec;
  box-shadow: 0 5px 14px rgb(30 27 24 / 8%);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.report-day { margin: 7px 2px 0; color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.report-card {
  position: relative;
  width: 100%;
  padding: 34px 12px 12px;
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: left;
  color: var(--ink);
  background: white;
}
.report-card.active { border-color: var(--accent); box-shadow: 0 0 0 2px #b8893f30; }
.report-card strong { font-size: 15px; line-height: 1.25; }
.report-card span { color: var(--muted); font-size: 12px; }
.report-card-date {
  position: absolute;
  top: 11px;
  left: 12px;
  font-size: 10px !important;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.report-card-address { line-height: 1.35; }
.report-card-intervention {
  padding-top: 6px;
  border-top: 1px solid var(--line);
  color: var(--brand) !important;
  font-weight: 700;
  line-height: 1.35;
}
.empty-state { padding: 22px 10px; text-align: center; color: var(--muted); font-size: 13px; }
.archive-login-card {
  width: 100%;
  padding: 18px 14px;
  display: grid;
  gap: 8px;
  border: 1px solid #d4b47e;
  border-radius: 11px;
  color: var(--ink);
  background: #fff8ec;
  text-align: left;
}
.archive-login-card strong {
  font-size: 15px;
  line-height: 1.25;
}
.archive-login-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.workspace { min-width: 0; padding: 22px; }
.workspace-toolbar {
  max-width: 1120px;
  margin: 0 auto 16px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  box-shadow: 0 8px 28px rgb(30 27 24 / 7%);
}
.report-page {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 34px;
  display: grid;
  gap: 17px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 12px 36px rgb(30 27 24 / 8%);
}
.print-heading {
  display: grid;
  grid-template-columns: 1.2fr 1fr .8fr;
  align-items: end;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--ink);
}
.print-only, .print-section-title, .print-date-only { display: none; }
.print-heading strong { font: 700 20px Georgia, serif; }
label { display: grid; gap: 6px; color: var(--ink); font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .025em; }
input, textarea, select {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--paper);
  text-transform: none;
  letter-spacing: normal;
}
input:focus, textarea:focus, select:focus { outline: 2px solid #b8893f45; border-color: var(--accent); }
textarea { resize: vertical; line-height: 1.45; }
.form-grid { display: grid; gap: 14px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.address { grid-template-columns: 1fr 1.5fr .35fr .7fr; }
.estimate-field {
  max-width: 260px;
  padding: 12px;
  border: 1px solid #e4d3b6;
  border-radius: 8px;
  background: #fff8ec;
}
.estimate-field input {
  background: white;
  font-weight: 800;
}
fieldset { margin: 0; padding: 15px; border: 1px solid var(--line); border-radius: 8px; }
legend { padding: 0 6px; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.required-mark { color: var(--accent); }
.check-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px 18px; }
.check-grid label, .inline-options label, .completion-row label { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 500; text-transform: none; letter-spacing: 0; }
.check-grid input, .inline-options input, .completion-row input { width: auto; accent-color: var(--accent); }
.check-grid .wide { grid-column: 1 / -1; }
.other-work-field { margin-top: 12px; }
.inline-options { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 14px; color: var(--muted); font-size: 12px; }
.textarea-label { position: relative; }
.textarea-label small { color: var(--accent); font-weight: 650; text-transform: none; letter-spacing: 0; }
.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.section-heading { margin-bottom: 8px; }
.text-button { border: 0; color: var(--brand); background: transparent; font-size: 12px; font-weight: 800; }
.worker-list { display: grid; gap: 7px; }
.worker-row { display: grid; grid-template-columns: 1.4fr .55fr 28px; gap: 7px; }
.worker-row input, .worker-row select { min-width: 0; }
.remove-worker { border: 0; border-radius: 6px; color: var(--danger); background: #fff0f1; font-size: 20px; }
.completion-row { display: flex; align-items: center; gap: 22px; padding-top: 5px; font-size: 20px; text-transform: uppercase; }
.completion-row label { font-size: 15px; font-weight: 800; text-transform: uppercase; }
.final-fields { padding-top: 4px; }
.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  padding: 11px 15px;
  border-radius: 8px;
  color: white;
  background: var(--brand);
  box-shadow: 0 8px 28px rgb(0 0 0 / 18%);
  opacity: 0;
  transform: translateY(8px);
  transition: .2s ease;
  pointer-events: none;
}
.toast.visible { opacity: 1; transform: translateY(0); }
.auth-dialog {
  width: min(440px, calc(100% - 28px));
  padding: 0;
  border: 0;
  border-radius: 12px;
  color: var(--ink);
  background: white;
  box-shadow: 0 24px 80px rgb(0 0 0 / 28%);
}
.auth-dialog::backdrop { background: rgb(16 16 16 / 58%); backdrop-filter: blur(3px); }
.auth-dialog form { display: grid; gap: 16px; padding: 24px; }
.auth-dialog p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.auth-heading, .auth-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-actions span { color: var(--muted); font-size: 11px; }
.dialog-close { border: 0; color: var(--muted); background: transparent; font-size: 28px; }
.auth-feedback { min-height: 20px; color: var(--danger) !important; }

@media (max-width: 900px) {
  .app-header { align-items: flex-start; }
  .app-shell { display: block; }
  .archive { position: static; height: auto; max-height: 330px; border-right: 0; border-bottom: 1px solid var(--line); }
  .report-list { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
  .workspace { padding: 12px; }
  .workspace-toolbar { align-items: flex-start; }
  .report-page { padding: 20px; }
  .print-heading, .form-grid.address, .check-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  body { padding-bottom: 128px; }
  .app-header {
    position: relative;
    display: grid;
    gap: 12px;
    padding: 12px 14px;
  }
  .brand {
    min-width: 0;
    padding-right: 118px;
  }
  .brand div { min-width: 0; }
  .brand strong, .brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .mobile-archive-toggle {
    position: absolute;
    top: 13px;
    right: 14px;
    min-height: 38px;
    padding: 7px 8px 7px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #ffffff45;
    border-radius: 8px;
    color: white;
    background: transparent;
    font-size: 12px;
    font-weight: 800;
  }
  .mobile-archive-toggle[hidden] { display: none !important; }
  .mobile-archive-toggle span {
    min-width: 24px;
    padding: 3px 6px;
    border-radius: 99px;
    color: var(--brand);
    background: white;
    text-align: center;
  }
  .public-banner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px;
  }
  .public-mode { padding-bottom: 76px; }
  .public-mode .workspace { padding-top: 10px; }
  .public-mode .workspace-toolbar {
    position: fixed;
    display: block;
  }
  .public-mode .toolbar-actions { justify-content: stretch; }
  .public-mode #save-button { width: 100%; }
  .brand img { width: 76px; height: 36px; }
  .brand strong { font-size: 15px; }
  .header-actions {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }
  .header-actions::-webkit-scrollbar { display: none; }
  .header-actions .button {
    min-height: 42px;
    white-space: nowrap;
  }
  .header-actions #new-button { grid-column: 1 / -1; width: 100%; }
  .header-actions #login-button { min-width: 86px; }
  .sync-status {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .archive {
    position: fixed;
    z-index: 60;
    top: 0;
    right: 0;
    left: auto;
    width: min(390px, 92vw);
    height: 100dvh;
    max-height: none;
    padding: 20px 14px;
    gap: 14px;
    border: 0;
    border-left: 1px solid var(--line);
    box-shadow: -18px 0 50px rgb(16 16 16 / 22%);
    transform: translateX(105%);
    transition: transform .22s ease;
  }
  body.archive-open { overflow: hidden; }
  body.archive-open .archive { transform: translateX(0); }
  .archive-close {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: white;
    font-size: 25px;
  }
  .archive-backdrop {
    position: fixed;
    z-index: 55;
    inset: 0;
    border: 0;
    background: rgb(16 16 16 / 52%);
  }
  body.archive-open .archive-backdrop { display: block; }
  .archive-heading h1 { font-size: 20px; }
  .archive-filters { grid-template-columns: 1fr; }
  .search {
    min-height: 44px;
    font-size: 16px;
  }
  .report-list {
    display: grid;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0 3px 20px 0;
  }
  .report-card { min-width: 0; }
  .workspace { padding: 10px; }
  .workspace-toolbar {
    position: fixed;
    z-index: 30;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    max-width: none;
    margin: 0;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    box-shadow: 0 -8px 28px rgb(30 27 24 / 12%);
  }
  .workspace-toolbar > div:first-child { display: none; }
  .toolbar-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    overflow: visible;
  }
  .toolbar-actions:has(#delete-button[hidden]) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .toolbar-actions .button {
    min-height: 44px;
    width: 100%;
    min-width: 0;
    padding-inline: 8px;
    white-space: nowrap;
  }
  .toolbar-actions .button.primary {
    grid-column: 1 / -1;
    order: -1;
  }
  .toolbar-actions .danger-text { order: 4; }
  .public-mode .toolbar-actions { grid-template-columns: 1fr; }
  .form-grid.two, .form-grid.address, .print-heading, .check-grid, .split-section { grid-template-columns: 1fr; }
  .report-page {
    padding: 15px;
    gap: 15px;
    border-radius: 8px;
  }
  .print-heading {
    gap: 11px;
    padding: 15px;
    border-radius: 7px;
    background: var(--surface);
  }
  .print-heading strong { font-size: 18px; }
  label { font-size: 11px; }
  input, textarea, select {
    min-height: 46px;
    padding: 11px 12px;
    font-size: 16px;
  }
  textarea { min-height: 120px; }
  fieldset { min-width: 0; padding: 13px; }
  .check-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }
  .check-grid label, .inline-options label, .completion-row label {
    min-width: 0;
    min-height: 40px;
    padding: 6px 4px;
    font-size: 14px;
    line-height: 1.25;
  }
  .check-grid input, .inline-options input, .completion-row input {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
  }
  .inline-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }
  .inline-options span { grid-column: 1 / -1; width: 100%; }
  .split-section { gap: 18px; }
  .section-heading {
    align-items: center;
    gap: 8px;
  }
  .text-button { padding: 8px 0 8px 8px; }
  .worker-row {
    grid-template-columns: minmax(0, 1fr) 74px 44px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
  }
  .worker-row [data-field="name"] { grid-column: 1 / -1; }
  .remove-worker { min-height: 44px; }
  .completion-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 5px 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
  }
  .completion-row strong { grid-column: 1 / -1; font-size: 17px; }
  .completion-row label {
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: white;
  }
  .auth-heading, .auth-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .auth-dialog form { padding: 20px; }
  .auth-actions .button { width: 100%; }
  .toast {
    right: 10px;
    bottom: 122px;
    left: 10px;
    text-align: center;
  }
}

@media (max-width: 360px) {
  .brand { padding-right: 105px; }
  .mobile-archive-toggle {
    right: 10px;
    padding-inline: 9px 6px;
    font-size: 11px;
  }
  .report-page { padding: 12px; }
  .check-grid, .inline-options { grid-template-columns: 1fr; }
  .inline-options span { grid-column: auto; }
}

@page { size: A4 portrait; margin: 8mm; }
@media print {
  :root {
    --print-brand: #181715;
    --print-accent: #c8232c;
    --print-soft: #eeece7;
    --print-line: #d4d0ca;
  }
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  body { background: white; }
  .no-print { display: none !important; }
  .print-only, .print-section-title { display: flex; }
  .print-date-only { display: inline; }
  .app-shell, .workspace { display: block; min-height: 0; padding: 0; }
  .report-page {
    width: 100%;
    min-height: 0;
    padding: 6.5mm;
    gap: 7px;
    border: .6px solid var(--print-line);
    box-shadow: none;
    font-family: Arial, Helvetica, sans-serif;
    color: #181715;
  }
  .document-masthead {
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 9px 11px;
    border: 0;
    border-radius: 2px;
    background: var(--print-brand);
  }
  .document-copy, .document-company {
    display: grid;
    gap: 1px;
  }
  .document-copy strong, .document-company strong {
    color: white;
    font-size: 13px;
    letter-spacing: .08em;
  }
  .document-copy span, .document-company span {
    color: #cbc8c4;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: .08em;
  }
  .document-company {
    align-items: center;
    justify-items: end;
    text-align: right;
  }
  .document-company img {
    width: 104px;
    height: 33px;
    object-fit: contain;
  }
  .print-heading {
    grid-template-columns: 1.15fr 1fr .8fr;
    padding: 8px 10px;
    gap: 10px;
    border: .6px solid var(--print-line);
    border-radius: 2px;
    background: white;
  }
  .print-heading strong {
    color: var(--print-brand);
    font: 700 13px Arial, sans-serif;
    letter-spacing: .08em;
  }
  .print-heading label { color: var(--print-brand); }
  .print-heading input {
    color: #181715;
    border-color: var(--print-line);
    background: #f8f7f4;
  }
  .form-grid.address { grid-template-columns: 1fr 1.5fr .35fr .7fr; }
  .check-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .split-section { grid-template-columns: 1fr 1fr; }
  label {
    gap: 2px;
    color: #66625e;
    font-size: 8.75px;
    letter-spacing: .07em;
  }
  input, textarea, select {
    min-height: 18px;
    padding: 2.5px 4px;
    border: .5px solid var(--print-line);
    border-radius: 2px;
    background: #f8f7f4;
    font-size: 10.25px;
  }
  textarea {
    border: .5px solid var(--print-line);
    background: white;
    resize: none;
    line-height: 1.25;
  }
  textarea[name="description"] { height: 78px; }
  textarea[name="materials"] { height: 60px; }
  textarea[name="equipment"] { height: 106px; }
  fieldset {
    padding: 7px 9px 8px;
    border: .5px solid var(--print-line);
    border-radius: 2px;
    background: #f8f7f4;
  }
  legend {
    padding: 0 3px;
    color: var(--print-brand);
    font-size: 8.75px;
    letter-spacing: .07em;
  }
  .check-grid { gap: 3px 9px; }
  .check-grid label.print-unselected,
  .inline-options label.print-unselected {
    display: none;
  }
  fieldset.print-empty,
  .inline-options.print-empty {
    display: none;
  }
  .check-grid {
    grid-template-columns: repeat(3, minmax(0, max-content));
    justify-content: start;
    gap: 4px 20px;
  }
  .check-grid .wide { grid-column: auto; }
  .check-grid label, .inline-options label {
    color: #181715;
    font-size: 9.25px;
  }
  .check-grid input, .inline-options input {
    display: none;
  }
  .completion-row input {
    width: 8px;
    height: 8px;
    margin: 0;
  }
  .inline-options {
    gap: 5px 12px;
    margin-top: 5px;
    color: #66625e;
    font-size: 8.25px;
  }
  .inline-options span { display: none; }
  .inline-options:not(.print-empty)::before {
    content: "Materiale tubo:";
    color: #66625e;
    font-size: 8.25px;
  }
  .print-section-title {
    align-items: center;
    min-height: 18px;
    margin-top: 2px;
    padding: 3px 6px;
    color: var(--print-brand);
    border-left: 2px solid var(--print-accent);
    background: var(--print-soft);
    font-size: 9.25px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
  }
  .split-section { gap: 11px; }
  .section-heading { margin: 0; }
  h3 {
    color: var(--print-brand);
    font-size: 8.75px;
    letter-spacing: .06em;
    text-transform: uppercase;
  }
  .worker-list { gap: 2px; }
  .worker-row {
    grid-template-columns: 1.4fr .55fr;
    gap: 4px;
  }
  .worker-row input, .worker-row select {
    min-height: 17px;
    font-size: 9.25px;
    background: white;
  }
  select {
    appearance: none;
    -webkit-appearance: none;
    background-image: none !important;
  }
  .other-work-field[hidden] { display: none; }
  .other-work-field {
    margin-top: 4px;
    color: #181715;
    font-size: 8.75px;
  }
  .other-work-field input {
    min-height: 17px;
    background: white;
  }
  .completion-row {
    gap: 14px;
    padding: 5px 7px;
    color: var(--print-brand);
    border: .5px solid var(--print-line);
    border-radius: 2px;
    background: var(--print-soft);
    font-size: 10.25px;
  }
  .completion-row label {
    color: #181715;
    font-size: 9.25px;
  }
  .final-fields { padding-top: 0; }
  .print-footer {
    align-items: center;
    justify-content: space-between;
    margin-top: 2px;
    padding-top: 4px;
    color: var(--print-brand);
    border-top: .5px solid var(--print-line);
    font-size: 7.75px;
    letter-spacing: .04em;
    text-transform: uppercase;
  }
}
