@font-face {
  font-family: WorkSans;
  src: url("./fonts/DejaVuSans.ttf") format("truetype");
  font-display: swap;
  font-weight: 400 700;
}
:root {
  --bg: #f4f6f7;
  --paper: #fff;
  --ink: #183c35;
  --muted: #65766f;
  --green: #216d54;
  --dark: #143c35;
  --lime: #d8ef8c;
  --line: #e1e7e5;
  --soft: #eef4f0;
  --red: #b4433f;
  --radius: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #79a98c;
  outline-offset: 3px;
}
a {
  color: inherit;
}
p {
  line-height: 1.65;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 2.5rem;
  letter-spacing: -1.4px;
  line-height: 1.16;
  margin-bottom: 12px;
  font-weight: 700;
}
h2 {
  font-size: 1.25rem;
  letter-spacing: -0.45px;
  margin-bottom: 12px;
}
h3 {
  font-size: 1.05rem;
}
p {
  margin-bottom: 14px;
}
img {
  max-width: 100%;
}
[hidden] {
  display: none !important;
}
.icon {
  width: 21px;
  height: 21px;
  flex: none;
  vertical-align: middle;
}
.skip-link {
  position: fixed;
  left: 20px;
  top: -70px;
  padding: 14px;
  background: var(--paper);
  z-index: 20;
}
.skip-link:focus {
  top: 10px;
}
.app-shell {
  display: grid;
  grid-template-columns: 246px minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  background: var(--dark);
  color: white;
  padding: 36px 22px 24px;
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.65px;
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 48px;
}
.brand img {
  width: 36px;
}
.brand-dot {
  color: var(--lime);
}
.workspace-label {
  color: #b0c4b8;
  letter-spacing: 1.4px;
  font-size: 0.65rem;
  margin: 0 12px 18px;
}
#navigation {
  display: grid;
  gap: 8px;
}
.nav-link {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 10px;
  text-decoration: none;
  color: #cfddd6;
  font-size: 0.88rem;
  min-height: 49px;
}
.nav-link:hover {
  background: #235045;
}
.nav-link.active {
  background: var(--lime);
  color: var(--dark);
  font-weight: 600;
}
.nav-count {
  margin-left: auto;
  font-size: 0.75rem;
  background: #ffffff38;
  padding: 2px 7px;
  border-radius: 5px;
}
.sidebar-bottom {
  margin-top: auto;
  display: grid;
  gap: 22px;
}
.local-note {
  border-top: 1px solid #45665b;
  padding-top: 22px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #e1eae4;
}
.local-note strong {
  font-size: 0.8rem;
  font-weight: 500;
}
.local-note p {
  font-size: 0.75rem;
  color: #b0c4b8;
  margin: 7px 0 0;
}
.local-note .icon {
  width: 19px;
}
.sidebar .install-button {
  background: transparent;
  color: white;
  border: 1px solid #658277;
  justify-content: center;
  min-height: 45px;
  font-size: 0.82rem;
}
.version {
  color: #a4bfb0;
  font-size: 0.6rem;
  letter-spacing: 1.2px;
  text-align: center;
}
.workspace {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 86px;
  border-bottom: 1px solid var(--line);
  background: #fff9;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar-crumb {
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  gap: 12px;
  align-items: center;
}
.topbar-crumb strong {
  font-weight: 500;
  color: var(--ink);
}
.topbar-crumb span {
  color: #a9b6b0;
}
.topbar-right {
  display: flex;
  gap: 21px;
  align-items: center;
}
.connection {
  font-size: 0.75rem;
  color: var(--muted);
}
.connection.offline {
  color: #955b12;
}
.profile-link {
  display: grid;
  place-items: center;
  height: 37px;
  width: 37px;
  border: 1px solid #d2ded7;
  border-radius: 50%;
  background: #e8eeea;
}
.profile-link .icon {
  width: 18px;
}
.workspace main {
  padding: 42px 48px 28px;
  width: 100%;
  max-width: 1390px;
  align-self: center;
  flex: 1;
}
.workspace-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.75rem;
  padding: 24px 48px;
  margin-top: auto;
}
.workspace-footer a {
  text-decoration: none;
}
.workspace-footer a:hover {
  text-decoration: underline;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.page-heading > div {
  min-width: 0;
}
.page-heading p:last-child {
  color: var(--muted);
  font-size: 0.94rem;
  margin-bottom: 0;
}
.eyebrow {
  font-size: 0.65rem !important;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: var(--green) !important;
  margin-bottom: 13px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 20px;
  min-height: 49px;
  border: 1px solid var(--green);
  background: var(--green);
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.4;
  white-space: normal;
  text-align: center;
  transition:
    background 0.16s,
    transform 0.16s;
  flex-shrink: 0;
}
.button:hover {
  background: #17583f;
}
.button:active {
  transform: translateY(1px);
}
.button.secondary {
  background: white;
  color: var(--ink);
  border-color: #d4dfd9;
}
.button.secondary:hover {
  background: var(--soft);
}
.button.full {
  width: 100%;
  margin-bottom: 11px;
}
.button.compact {
  padding: 8px 13px;
  min-height: 40px;
}
.button.text-button {
  background: transparent;
  border-color: transparent;
  color: var(--green);
  padding: 8px 0;
  min-height: 40px;
}
.button.danger {
  color: var(--red);
}
.button.icon-button {
  background: transparent;
  border: 0;
  color: var(--muted);
  width: 38px;
  min-height: 40px;
  padding: 8px;
}
.button.icon-button.danger {
  color: var(--red);
}
.button.icon-button:hover {
  background: var(--soft);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.stat {
  display: flex;
  align-items: center;
  gap: 15px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
}
.stat-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 46px;
  border-radius: 11px;
  background: #f0f3f1;
  color: var(--green);
  flex: none;
}
.stat-icon.amber {
  background: #fff4dd;
  color: #a07837;
}
.stat-icon.blue {
  background: #ecf1f6;
  color: #637991;
}
.stat-icon.green {
  background: #eaf4ed;
  color: #3e805c;
}
.stat > div {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
}
.stat strong {
  font-size: 1.8rem;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.7px;
}
.work-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.panel-heading {
  padding: 24px 26px 22px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.panel-heading h2 {
  font-size: 1rem;
  margin: 0;
  white-space: nowrap;
}
.search {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 11px;
  max-width: 300px;
  min-width: 0;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafbfb;
}
.search .icon {
  width: 17px;
  color: var(--muted);
}
.search input {
  width: 100%;
  min-width: 0;
  border: none;
  background: none;
  padding: 11px 0;
  font-size: 0.8rem;
  color: var(--ink);
  outline-offset: 0;
}
.search input:focus {
  outline: 0;
}
.search:focus-within {
  outline: 2px solid #79a98c;
}
.filter-bar {
  display: flex;
  gap: 9px;
  border-bottom: 1px solid var(--line);
  padding: 0 26px 17px;
  overflow: auto;
}
.filter {
  background: transparent;
  white-space: nowrap;
  border: 1px solid transparent;
  color: var(--muted);
  padding: 8px 13px;
  min-height: 37px;
  border-radius: 7px;
  font-size: 0.8rem;
}
.filter.selected {
  background: var(--soft);
  color: var(--green);
  border-color: #dce7df;
  font-weight: 600;
}
.empty-state {
  text-align: center;
  padding: 43px 22px 31px;
}
.empty-symbol {
  width: 66px;
  height: 74px;
  display: grid;
  place-items: center;
  background: var(--soft);
  border: 1px solid #dce7df;
  border-radius: 17px;
  margin: 0 auto 21px;
  transform: rotate(-5deg);
}
.empty-symbol .icon {
  width: 31px;
  height: 31px;
  color: var(--green);
}
.empty-state h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  letter-spacing: -0.45px;
}
.empty-state p {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 370px;
  margin: 0 auto 22px;
}
.empty-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 33px;
  color: #85938c;
  font-size: 0.69rem;
}
.empty-steps i {
  width: 28px;
  height: 1px;
  background: var(--line);
}
.local-reminder {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 23px 1px 0;
  color: #74877d;
}
.local-reminder .icon {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}
.local-reminder p {
  font-size: 0.75rem;
  margin: 0;
  line-height: 1.7;
}
.local-reminder strong {
  font-weight: 500;
}
.table-head,
.job-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 108px 142px 26px;
  gap: 12px;
  align-items: center;
  padding: 18px 24px;
}
.table-head {
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.9px;
  padding-top: 17px;
  padding-bottom: 12px;
  background: #fafcfa;
}
.job-row {
  text-decoration: none;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  padding-bottom: 20px;
  transition: background 0.15s;
}
.job-row:hover {
  background: #f5f9f6;
}
.job-primary {
  display: flex;
  gap: 14px;
  align-items: center;
  min-width: 0;
}
.job-primary > div {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.job-primary strong {
  font-size: 0.94rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.job-primary span {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.job-primary b {
  font-weight: 400;
  padding: 0 4px;
}
.job-primary small {
  font-size: 0.66rem;
  color: #82938a;
}
.job-thumb {
  width: 46px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
  flex: none;
}
.job-thumb.blank {
  background: var(--soft);
  display: grid;
  place-items: center;
  color: var(--green);
}
.job-date {
  font-size: 0.8rem;
  color: var(--muted);
}
.badge {
  font-size: 0.72rem;
  font-weight: 500;
  border-radius: 6px;
  padding: 6px 9px;
  display: inline-block;
  justify-self: start;
  white-space: nowrap;
}
.badge.draft {
  background: #fff2d9;
  color: #92631e;
}
.badge.ready {
  background: #e3f0e9;
  color: #206b4b;
}
.badge.delivered {
  background: #eff2f4;
  color: #5e727c;
}
.job-open {
  color: #789489;
}
.job-open .icon {
  width: 18px;
}
.editor-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
  gap: 20px;
}
.back-link {
  display: flex;
  gap: 4px;
  align-items: center;
  text-decoration: none;
  font-size: 0.85rem;
  color: var(--muted);
  min-height: 32px;
}
.back-link .icon {
  width: 17px;
}
#save-status {
  font-size: 0.76rem;
  color: var(--muted);
}
.compact-heading h1 {
  font-size: 2rem;
  overflow-wrap: anywhere;
}
.compact-heading {
  margin-bottom: 25px;
}
.steps {
  display: flex;
  gap: 8px;
  margin-bottom: 21px;
  border-bottom: 1px solid #d8e1dc;
}
.step {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 15px 18px;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  background: none;
  font-size: 0.87rem;
}
.step span {
  font-size: 0.7rem;
  background: #e8edeb;
  border-radius: 6px;
  padding: 6px;
}
.step.active {
  color: var(--green);
  border-bottom-color: var(--green);
  font-weight: 600;
}
.step.active span {
  background: #dcebe1;
}
.form-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 31px;
  margin-bottom: 24px;
}
.form-intro {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  margin-bottom: 30px;
}
.form-intro h2 {
  font-size: 1.35rem;
  margin-bottom: 7px;
}
.form-intro p {
  color: var(--muted);
  margin: 0;
  font-size: 0.9rem;
}
.section-marker {
  border: 1px solid #d2dfd7;
  background: var(--soft);
  border-radius: 9px;
  padding: 10px;
  font-size: 0.76rem;
  color: var(--green);
  font-weight: 600;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 23px;
  min-width: 0;
}
.field > span {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
}
.field b {
  color: var(--green);
  font-weight: 500;
}
.field small {
  font-size: 0.75rem;
  color: var(--muted);
}
input,
textarea,
select {
  font-size: 1rem;
  color: var(--ink);
}
.field input,
.field textarea,
.field select {
  border: 1px solid #dce4df;
  border-radius: 9px;
  padding: 13px 14px;
  min-height: 48px;
  width: 100%;
  background: #fcfdfc;
  line-height: 1.5;
}
.field textarea {
  resize: vertical;
  min-height: 95px;
}
::placeholder {
  color: #889990;
  opacity: 1;
}
.form-footnote {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
  padding: 4px 0 20px;
}
.form-footnote .icon {
  width: 17px;
}
.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 7px;
}
.reuse-clients {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: -7px 0 20px;
  font-size: 0.78rem;
  color: var(--muted);
}
.reuse-clients button,
.phrases button {
  border: 1px solid #e0e8e2;
  background: #f6f9f6;
  color: var(--muted);
  font-size: 0.75rem;
  padding: 9px;
  border-radius: 6px;
  line-height: 1.5;
}
.photo-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
}
.photo-drop {
  text-align: center;
  border: 1.5px dashed #cad9ce;
  background: #f8faf8;
  padding: 42px 25px;
  display: flex;
  align-items: center;
  flex-direction: column;
  border-radius: 12px;
  margin-bottom: 30px;
}
.photo-drop > span {
  color: #7c9887;
  background: #eaf1eb;
  padding: 17px;
  border-radius: 14px;
  margin-bottom: 20px;
}
.photo-drop .icon {
  height: 31px;
  width: 31px;
}
.photo-drop strong {
  font-size: 1rem;
  margin-bottom: 8px;
}
.photo-drop p {
  color: var(--muted);
  font-size: 0.87rem;
  max-width: 350px;
  margin-bottom: 10px;
}
.photo-drop small {
  font-size: 0.72rem;
  color: var(--muted);
}
.photos-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.photo-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 8px;
}
.photo-image {
  position: relative;
  height: 225px;
  background: #edf1ee;
}
.photo-image img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}
.photo-index {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #fff;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--green);
}
.photo-body {
  padding: 18px;
}
.photo-body .field:last-child {
  margin-bottom: 0;
}
.photo-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  gap: 6px;
}
.photo-toolbar strong {
  font-size: 0.85rem;
}
.photo-toolbar > div {
  display: flex;
}
.results {
  padding: 0;
  margin: 0 0 25px;
  border: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}
.results legend {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 13px;
}
.result-choice {
  display: flex;
  gap: 13px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 14px;
  background: #fff;
  cursor: pointer;
}
.result-choice input {
  accent-color: var(--green);
  width: 16px;
  height: 16px;
  margin: 0;
  flex: none;
}
.result-choice > span {
  display: flex;
  align-items: center;
  gap: 10px;
}
.result-choice .icon {
  width: 18px;
  color: #81958a;
}
.result-choice strong {
  font-size: 0.9rem;
  font-weight: 500;
}
.result-choice.checked {
  border-color: #7ca68b;
  background: #f3f8f3;
}
.result-choice.checked .icon {
  color: var(--green);
}
.phrases {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: -5px 0 22px;
}
.validation {
  background: #fff2e7;
  border: 1px solid #efd8bd;
  border-radius: 9px;
  padding: 18px;
  margin-bottom: 22px;
  color: #804e19;
  font-size: 0.85rem;
  line-height: 1.6;
}
.validation ul {
  padding-left: 21px;
  margin-bottom: 0;
}
.review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 262px;
  align-items: start;
  gap: 25px;
}
.report-paper {
  background: white;
  padding: 35px 30px;
  border: 1px solid #dce4df;
  border-radius: 5px;
  box-shadow: 0 5px 15px #1a443206;
}
.report-header {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  border-bottom: 3px solid var(--green);
  padding-bottom: 25px;
}
.report-header > div {
  min-width: 0;
  flex: 1;
}
.report-header h2 {
  font-size: 1.9rem;
  letter-spacing: -0.8px;
  line-height: 1.25;
  overflow-wrap: anywhere;
  margin-bottom: 18px;
}
.report-header strong {
  font-size: 0.85rem;
  font-weight: 500;
}
.report-header p:last-child {
  font-size: 0.72rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 7px 0 0;
  overflow-wrap: anywhere;
}
.report-logo {
  width: 70px;
  max-height: 70px;
  object-fit: contain;
}
.report-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 24px 0;
}
.report-meta > div {
  min-width: 0;
}
.report-meta span {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 1px;
  color: var(--green);
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}
.report-meta strong {
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.report-meta p {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 6px 0;
}
.report-meta .result-pill {
  background: var(--soft);
  color: var(--green);
  display: inline-block;
  padding: 6px 9px;
  border-radius: 5px;
  font-size: 0.7rem;
}
.report-paper h3 {
  font-size: 0.96rem;
  margin: 23px 0 10px;
  line-height: 1.5;
}
.report-paper p {
  font-size: 0.84rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.pre-wrap {
  white-space: pre-wrap;
}
.pending-box {
  background: #fff7e6;
  border-left: 3px solid #d8aa4f;
  padding: 15px 18px;
  margin: 22px 0;
}
.pending-box h3 {
  margin-top: 0;
  font-size: 0.88rem;
}
.pending-box p {
  margin-bottom: 0;
}
.report-photo {
  margin: 15px 0;
  border: 1px solid var(--line);
  padding: 10px;
  border-radius: 8px;
}
.report-photo > img {
  width: 100%;
  height: 240px;
  object-fit: contain;
  background: #f4f7f5;
}
.report-photo figcaption {
  padding: 11px 3px 0;
}
.report-photo figcaption > span {
  font-size: 0.68rem;
  letter-spacing: 1px;
  color: var(--green);
  font-weight: 600;
}
.report-photo figcaption p {
  margin: 8px 0 5px;
}
.report-paper footer {
  font-size: 0.65rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 17px;
  margin-top: 27px;
}
.delivery-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  padding: 22px;
  position: sticky;
  top: 20px;
}
.delivery-icon {
  display: grid;
  place-items: center;
  width: 45px;
  height: 49px;
  background: var(--soft);
  border-radius: 12px;
  margin-bottom: 18px;
  color: var(--green);
}
.delivery-panel h2 {
  font-size: 1.1rem;
}
.delivery-panel p {
  color: var(--muted);
  font-size: 0.82rem;
}
.delivery-panel .button {
  font-size: 0.8rem;
  padding: 13px 8px;
}
.delivery-panel small {
  display: block;
  font-size: 0.72rem;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 10px;
}
.delivery-panel hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 23px 0;
}
.delivery-panel .profile-prompt {
  display: block;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--green);
  margin-top: 24px;
}
.preview-note {
  border-top: 1px solid var(--line);
  padding-top: 17px;
  margin-top: 24px !important;
}
.pdf-ready {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-size: 0.8rem;
  margin-bottom: 15px;
}
.text-link {
  display: block;
  text-align: center;
  font-size: 0.8rem;
  color: var(--green);
  padding: 8px;
}
.delivered-message {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 0.83rem;
  color: var(--green);
  line-height: 1.5;
}
.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 25px;
  align-items: start;
}
.logo-row {
  display: flex;
  gap: 17px;
  align-items: center;
  margin: 25px 0 30px;
}
.logo-upload {
  width: 86px;
  height: 86px;
  flex: none;
  border: 1px dashed #b9cfc0;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: #f5f8f5;
  color: var(--green);
}
.logo-upload img {
  width: 65px;
  height: 65px;
  object-fit: contain;
}
.logo-row strong {
  font-size: 0.9rem;
}
.logo-row p {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 8px 0 2px;
}
.logo-row .text-button {
  font-size: 0.8rem;
  min-height: 30px;
}
.backup-card {
  background: #e7efea;
  border: 1px solid #d3e0d8;
  border-radius: var(--radius);
  padding: 27px;
}
.backup-icon {
  display: grid;
  place-items: center;
  width: 47px;
  height: 49px;
  border-radius: 12px;
  background: #fff8;
  color: var(--green);
  margin-bottom: 24px;
}
.backup-card h2 {
  font-size: 1.3rem;
  line-height: 1.3;
}
.backup-card p {
  font-size: 0.85rem;
  color: #536c5f;
  margin-bottom: 24px;
}
.backup-card small {
  font-size: 0.74rem;
  line-height: 1.7;
  color: #526e5e;
  display: block;
  margin-top: 12px;
}
.backup-warning {
  border-top: 1px solid #cbdcd0;
  margin-top: 22px;
  padding-top: 20px;
  font-size: 0.77rem;
  line-height: 1.7;
  color: #456454;
}
.help-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.help-grid .form-card {
  margin-bottom: 0;
}
.help-grid p,
.help-grid li {
  font-size: 0.91rem;
  color: var(--muted);
  line-height: 1.8;
}
.help-grid ol {
  padding-left: 20px;
}
.help-grid li {
  padding-left: 6px;
  margin-bottom: 12px;
}
.help-grid h3 {
  font-size: 0.95rem;
  margin-top: 20px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.78rem;
  line-height: 1.75;
}
.help-grid ~ .small {
  margin-top: 22px;
}
.mobile-nav {
  display: none;
}
.busy-overlay {
  position: fixed;
  inset: 0;
  background: #143c3559;
  display: grid;
  place-items: center;
  z-index: 90;
  padding: 25px;
}
.busy-overlay > div {
  background: white;
  border-radius: 17px;
  padding: 30px 40px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 10px 70px #0002;
}
.busy-overlay p {
  margin: 0;
  font-size: 0.95rem;
}
.spinner {
  display: block;
  border: 3px solid #dce8e0;
  border-top-color: var(--green);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.loading {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 40px 0;
}
.error-banner {
  display: flex;
  gap: 14px;
  align-items: center;
  background: #fff2ed;
  color: #8b3530;
  border-bottom: 1px solid #f0d9d1;
  padding: 14px 25px;
  font-size: 0.85rem;
  line-height: 1.6;
}
.error-banner > span {
  flex: 1;
}
#toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 110;
  background: #163e35;
  color: white;
  padding: 15px 23px;
  border-radius: 12px;
  box-shadow: 0 8px 30px #122f3326;
  max-width: min(550px, calc(100vw - 32px));
  width: max-content;
  font-size: 0.88rem;
  line-height: 1.6;
}
dialog {
  width: min(450px, calc(100vw - 36px));
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 29px;
  color: var(--ink);
  box-shadow: 0 20px 80px #132c3533;
}
dialog::backdrop {
  background: #143c3559;
}
dialog h2 {
  font-size: 1.3rem;
  line-height: 1.4;
}
dialog p {
  font-size: 0.93rem;
  color: var(--muted);
  line-height: 1.75;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 26px;
}
.missing-image {
  min-height: 100px;
  color: var(--red);
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (min-width: 1500px) {
  .workspace main {
    padding-top: 50px;
  }
  .empty-state {
    padding-top: 60px;
    padding-bottom: 40px;
  }
  .topbar {
    padding: 0 max(48px, calc((100vw - 246px - 1294px) / 2));
  }
}
@media (max-width: 1180px) {
  .sidebar {
    padding-left: 16px;
    padding-right: 16px;
  }
  .app-shell {
    grid-template-columns: 215px minmax(0, 1fr);
  }
  .brand {
    font-size: 1rem;
    gap: 6px;
  }
  .brand img {
    width: 32px;
  }
  .workspace main {
    padding: 32px 28px;
  }
  .topbar,
  .workspace-footer {
    padding-left: 28px;
    padding-right: 28px;
  }
  .stat {
    padding: 17px 12px;
    gap: 10px;
  }
  .stat-icon {
    width: 34px;
    height: 40px;
  }
  .stat-label {
    font-size: 0.69rem;
  }
  .stats {
    gap: 10px;
  }
  .review-layout {
    grid-template-columns: minmax(0, 1fr) 225px;
    gap: 18px;
  }
  .delivery-panel {
    padding: 18px;
  }
  .profile-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 18px;
  }
  .form-card {
    padding: 25px;
  }
  .table-head,
  .job-row {
    grid-template-columns: minmax(150px, 1fr) 92px 126px;
    gap: 8px;
    padding-left: 20px;
    padding-right: 20px;
  }
  .job-open,
  .table-head > span:last-child {
    display: none;
  }
  .photo-toolbar {
    flex-wrap: wrap;
  }
}
@media (max-width: 950px) {
  .app-shell {
    grid-template-columns: 185px minmax(0, 1fr);
  }
  .sidebar {
    padding-left: 12px;
    padding-right: 12px;
  }
  .brand {
    font-size: 0.89rem;
    letter-spacing: -0.6px;
  }
  .brand img {
    width: 29px;
    height: 29px;
  }
  .workspace-label {
    font-size: 0.58rem;
    letter-spacing: 1px;
  }
  .nav-link {
    padding: 13px 10px;
    font-size: 0.8rem;
    gap: 9px;
  }
  .workspace main {
    padding: 30px 22px;
  }
  .topbar,
  .workspace-footer {
    padding-left: 22px;
    padding-right: 22px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .stat {
    padding: 17px;
  }
  .stat-label {
    font-size: 0.76rem;
  }
  .stat-icon {
    width: 42px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 16px;
  }
  h1 {
    font-size: 2.1rem;
  }
  .page-heading > .button {
    padding: 13px 15px;
  }
  .review-layout,
  .profile-layout {
    grid-template-columns: 1fr;
  }
  .delivery-panel {
    position: static;
    display: block;
    max-width: none;
  }
  .delivery-panel .button.full {
    width: auto;
    margin-right: 8px;
    padding: 13px 17px;
  }
  .delivery-panel small {
    max-width: 600px;
  }
  .delivery-panel .text-link {
    display: inline;
  }
  .delivery-panel .delivery-icon {
    float: right;
  }
  .delivery-panel hr {
    margin: 17px 0;
  }
  .delivery-panel .profile-prompt {
    margin-top: 13px;
  }
  .delivery-panel .preview-note {
    margin-top: 16px !important;
  }
  .report-paper {
    padding: 30px;
  }
  .help-grid {
    grid-template-columns: 1fr;
  }
  .table-head {
    display: none;
  }
  .job-row {
    grid-template-columns: 1fr auto;
  }
  .job-primary {
    grid-row: span 2;
  }
  .job-date {
    justify-self: end;
    grid-column: 2;
    grid-row: 2;
  }
  .job-row .badge {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }
  .panel-heading {
    padding-left: 20px;
    padding-right: 20px;
    gap: 12px;
  }
  .panel-heading h2 {
    font-size: 0.9rem;
  }
  .search {
    max-width: 220px;
  }
  .filter-bar {
    padding-left: 20px;
    padding-right: 20px;
  }
  .step {
    font-size: 0.78rem;
    padding-left: 7px;
    padding-right: 7px;
  }
  .step span {
    font-size: 0.65rem;
  }
  .photos-grid {
    grid-template-columns: 1fr;
  }
  .photo-image {
    height: 280px;
  }
  .photo-toolbar {
    flex-wrap: nowrap;
  }
}
@media (max-width: 700px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    height: auto;
    position: relative;
    padding: 17px 20px;
    background: var(--dark);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .brand {
    font-size: 1.16rem;
    gap: 8px;
    margin: 0;
  }
  .brand img {
    width: 34px;
    height: 34px;
  }
  .workspace-label,
  #navigation,
  .sidebar-bottom {
    display: none;
  }
  .sidebar:after {
    content: "WEB";
    font-size: 0.62rem;
    color: var(--lime);
    letter-spacing: 1.5px;
    border: 1px solid #73947e;
    border-radius: 5px;
    padding: 5px 6px;
  }
  .topbar {
    height: 47px;
    padding: 0 20px;
  }
  .topbar-crumb {
    font-size: 0.71rem;
    gap: 9px;
  }
  .topbar-right {
    gap: 12px;
  }
  .profile-link {
    width: 29px;
    height: 29px;
  }
  .profile-link .icon {
    width: 16px;
  }
  .connection {
    font-size: 0.67rem;
  }
  .workspace main {
    padding: 27px 20px 15px;
    min-height: calc(100dvh - 224px);
  }
  .page-heading {
    gap: 16px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    align-items: center;
  }
  .page-heading > div {
    flex: 1;
    min-width: 180px;
  }
  .page-heading h1 {
    font-size: 2rem;
    letter-spacing: -1px;
    margin-bottom: 9px;
  }
  .page-heading p:last-child {
    font-size: 0.86rem;
  }
  .eyebrow {
    font-size: 0.59rem !important;
    letter-spacing: 1.25px;
    margin-bottom: 10px;
  }
  .page-heading > .button {
    min-height: 43px;
    font-size: 0.81rem;
    padding: 11px 13px;
    gap: 5px;
  }
  .page-heading > .button .icon {
    width: 17px;
  }
  .stats {
    gap: 11px;
    margin-bottom: 25px;
  }
  .stat {
    padding: 15px 12px;
    gap: 11px;
  }
  .stat-icon {
    width: 34px;
    height: 39px;
  }
  .stat-icon .icon {
    width: 19px;
  }
  .stat strong {
    font-size: 1.6rem;
  }
  .stat-label {
    font-size: 0.68rem;
  }
  .stat > div {
    gap: 8px;
  }
  .panel-heading {
    padding: 19px 17px;
    flex-wrap: wrap;
    gap: 17px;
  }
  .panel-heading h2 {
    font-size: 1rem;
  }
  .search {
    width: 100%;
    max-width: none;
  }
  .search input {
    font-size: 0.9rem;
    padding: 13px 0;
  }
  .filter-bar {
    padding: 0 12px 14px;
    gap: 1px;
  }
  .filter {
    font-size: 0.8rem;
    padding: 8px 12px;
    min-height: 40px;
  }
  .empty-state {
    padding: 30px 18px 26px;
  }
  .empty-state h3 {
    font-size: 1.15rem;
  }
  .empty-state p {
    font-size: 0.87rem;
  }
  .empty-steps {
    gap: 7px;
    font-size: 0.61rem;
    line-height: 1.5;
    margin-top: 28px;
  }
  .empty-steps i {
    width: 10px;
  }
  .local-reminder {
    padding-top: 20px;
  }
  .local-reminder p {
    font-size: 0.72rem;
  }
  .workspace-footer {
    padding: 22px 20px 100px;
    flex-direction: column;
    font-size: 0.71rem;
    gap: 8px;
  }
  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    border-top: 1px solid #dce5df;
    background: #fffffff7;
    backdrop-filter: blur(12px);
    z-index: 40;
    justify-content: space-around;
    padding: 9px 12px max(10px, env(safe-area-inset-bottom));
    min-height: 67px;
  }
  .mobile-nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.65rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 80px;
    padding: 3px 0;
  }
  .mobile-nav .icon {
    width: 21px;
    height: 21px;
  }
  .mobile-nav a[aria-current] {
    color: var(--green);
    font-weight: 600;
  }
  .job-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 19px 14px;
  }
  .job-primary {
    gap: 10px;
  }
  .job-primary strong {
    font-size: 0.85rem;
    max-width: 100%;
  }
  .job-primary span {
    font-size: 0.72rem;
  }
  .job-primary small {
    font-size: 0.59rem;
  }
  .job-thumb {
    width: 36px;
    height: 45px;
  }
  .badge {
    font-size: 0.61rem;
    padding: 5px 6px;
    white-space: normal;
    max-width: 100px;
    text-align: center;
  }
  .job-date {
    font-size: 0.67rem;
  }
  .editor-heading {
    margin-bottom: 17px;
  }
  .compact-heading {
    gap: 10px;
    flex-wrap: nowrap;
  }
  .compact-heading > div {
    min-width: 0;
  }
  .compact-heading h1 {
    font-size: 1.6rem;
  }
  .compact-heading .button {
    font-size: 0.73rem;
  }
  .compact-heading .button .icon {
    width: 16px;
  }
  .steps {
    gap: 0;
    margin-bottom: 20px;
    justify-content: space-between;
  }
  .step {
    font-size: 0.7rem;
    padding: 10px 5px 14px;
    gap: 5px;
    flex: 1;
    justify-content: center;
    line-height: 1.4;
  }
  .step span {
    font-size: 0.59rem;
    padding: 5px;
  }
  .form-card {
    padding: 23px 18px;
    border-radius: 12px;
    margin-bottom: 19px;
  }
  .form-intro {
    gap: 10px;
    margin-bottom: 23px;
  }
  .form-intro h2 {
    font-size: 1.14rem;
  }
  .form-intro p {
    font-size: 0.82rem;
  }
  .section-marker {
    padding: 8px;
    font-size: 0.7rem;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .field {
    margin-bottom: 22px;
  }
  .field > span {
    font-size: 0.86rem;
  }
  .field input,
  .field textarea,
  .field select {
    font-size: 1rem;
    padding: 12px;
  }
  .field input[type="date"] {
    min-width: 0;
    max-width: 100%;
    appearance: none;
  }
  .form-actions {
    gap: 8px;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-top: 19px;
  }
  .form-actions .button {
    font-size: 0.79rem;
    min-height: 47px;
    padding: 12px 13px;
    flex: 1;
  }
  .form-footnote {
    font-size: 0.75rem;
    align-items: flex-start;
    line-height: 1.6;
  }
  .photo-actions {
    gap: 8px;
  }
  .photo-actions .button {
    flex: 1;
    padding: 13px 10px;
    font-size: 0.8rem;
  }
  .photo-actions .icon {
    width: 18px;
  }
  .photo-drop {
    padding: 33px 18px;
  }
  .photo-drop strong {
    font-size: 0.94rem;
    line-height: 1.5;
  }
  .photo-drop p {
    font-size: 0.83rem;
  }
  .photo-drop small {
    font-size: 0.65rem;
    line-height: 1.6;
  }
  .photos-grid {
    gap: 18px;
  }
  .photo-image {
    height: 235px;
  }
  .photo-body {
    padding: 14px;
  }
  .photo-toolbar strong {
    font-size: 0.82rem;
  }
  .photo-toolbar .icon-button {
    width: 34px;
  }
  .result-choice {
    padding: 13px 11px;
    gap: 10px;
  }
  .result-choice strong {
    font-size: 0.84rem;
  }
  .result-choice > span {
    gap: 8px;
  }
  .phrases button {
    font-size: 0.73rem;
  }
  .review-layout {
    gap: 20px;
  }
  .report-paper {
    padding: 24px 18px;
  }
  .report-header h2 {
    font-size: 1.55rem;
    letter-spacing: -0.6px;
  }
  .report-logo {
    width: 49px;
    max-height: 49px;
  }
  .report-meta {
    gap: 14px;
  }
  .report-meta span {
    font-size: 0.57rem;
    letter-spacing: 0.7px;
  }
  .report-meta strong {
    font-size: 0.78rem;
  }
  .report-meta p {
    font-size: 0.73rem;
  }
  .report-meta .result-pill {
    font-size: 0.63rem;
  }
  .report-paper p {
    font-size: 0.82rem;
  }
  .report-photo > img {
    height: 195px;
  }
  .report-photo {
    padding: 8px;
  }
  .report-header .eyebrow {
    font-size: 0.57rem !important;
  }
  .report-photo figcaption > span {
    font-size: 0.62rem;
  }
  .delivery-panel {
    padding: 23px 20px;
  }
  .delivery-panel .button.full {
    width: 100%;
    margin-right: 0;
    font-size: 0.88rem;
  }
  .delivery-panel small {
    font-size: 0.76rem;
  }
  .delivery-panel h2 {
    font-size: 1.2rem;
  }
  .delivery-panel p {
    font-size: 0.88rem;
  }
  .delivery-panel .text-link {
    display: block;
    font-size: 0.9rem;
  }
  .profile-layout {
    gap: 0;
  }
  .backup-card {
    padding: 24px 20px;
  }
  .backup-card h2 {
    font-size: 1.3rem;
  }
  .backup-card p {
    font-size: 0.91rem;
  }
  .backup-card small {
    font-size: 0.76rem;
  }
  .logo-row {
    gap: 12px;
  }
  .logo-upload {
    width: 68px;
    height: 72px;
  }
  .logo-upload img {
    width: 55px;
    height: 55px;
  }
  .logo-row p {
    font-size: 0.75rem;
  }
  .logo-row .text-button {
    font-size: 0.78rem;
  }
  .help-grid {
    gap: 18px;
  }
  .help-grid .form-card {
    padding: 23px 21px;
  }
  .help-grid p,
  .help-grid li {
    font-size: 0.94rem;
  }
  .error-banner {
    padding: 13px 18px;
    gap: 8px;
    font-size: 0.79rem;
    flex-wrap: wrap;
  }
  #toast {
    bottom: 85px;
    font-size: 0.83rem;
    padding: 13px 17px;
  }
  .busy-overlay > div {
    padding: 24px 26px;
    font-size: 0.9rem;
  }
  .busy-overlay p {
    font-size: 0.9rem;
  }
  .dialog-actions .button {
    font-size: 0.81rem;
    padding: 12px 14px;
  }
  dialog {
    padding: 24px;
  }
}
@media (max-width: 380px) {
  .workspace main {
    padding-left: 14px;
    padding-right: 14px;
  }
  .page-heading {
    gap: 13px;
  }
  .page-heading > div {
    min-width: 155px;
  }
  .page-heading > .button {
    font-size: 0.75rem;
    padding: 11px;
  }
  .page-heading h1 {
    font-size: 1.8rem;
  }
  .page-heading p:last-child {
    font-size: 0.8rem;
  }
  .stat {
    padding: 14px 10px;
    gap: 9px;
  }
  .stat-label {
    font-size: 0.64rem;
  }
  .stat-icon {
    width: 28px;
  }
  .stat strong {
    font-size: 1.45rem;
  }
  .filter {
    padding: 8px 10px;
    font-size: 0.77rem;
  }
  .job-primary strong {
    font-size: 0.8rem;
  }
  .job-thumb {
    width: 31px;
  }
  .job-primary {
    gap: 7px;
  }
  .badge {
    max-width: 78px;
    font-size: 0.6rem;
  }
  .form-card {
    padding: 21px 15px;
  }
  .step {
    font-size: 0.64rem;
    padding-left: 3px;
    padding-right: 3px;
  }
  .step span {
    font-size: 0.56rem;
    padding: 4px;
  }
  .empty-steps {
    font-size: 0.57rem;
  }
  .empty-steps i {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  .sidebar,
  .topbar,
  .mobile-nav,
  .workspace-footer,
  .page-heading,
  .editor-heading,
  .delivery-panel,
  #toast {
    display: none !important;
  }
  .workspace main {
    padding: 0;
  }
  .app-shell,
  .review-layout {
    display: block;
  }
  .report-paper {
    border: 0;
    box-shadow: none;
  }
  .report-photo {
    break-inside: avoid;
  }
}

@media (max-width: 700px) {
  .page-heading:not(.compact-heading) > div {
    flex-basis: 100%;
  }
  .page-heading:not(.compact-heading) > .button {
    width: 100%;
    min-height: 48px;
  }
  .page-heading h1 {
    overflow-wrap: anywhere;
  }
}

.skip-link {
  opacity: 0;
  pointer-events: none;
}
.skip-link:focus {
  opacity: 1;
  pointer-events: auto;
}
