@font-face {
  font-family: Manrope;
  src: url("manrope-400.woff2") format("woff2");
  font-weight: 200 549;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("manrope-600.woff2") format("woff2");
  font-weight: 550 749;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("manrope-800.woff2") format("woff2");
  font-weight: 750 900;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  font: 16px/1.55 Manrope, system-ui, sans-serif;
  color: #102e39;
  background: #f3f3ed;
  --ink: #102e39;
  --muted: #48616a;
  --border: #dbe6e2;
  --line: #b8cac5;
  --accent: #0b6560;
  --accent-hover: #084d49;
  --accent-soft: #e5f2ec;
  --brand-gold: #ffc365;
  --assistant-ink: #523a9b;
  --assistant-dark: #402a80;
  --assistant-surface: #f5f0fb;
  --assistant-line: #dfd3ef;
  --surface: #fffef9;
  --paper: #fff9ed;
  --rail: #102e39;
  --danger: #9b253b;
  --danger-soft: #fff2f4;
  --panel-radius: 9px;
  --gutter: clamp(16px, 3vw, 40px);
  --rail-width: 232px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
main, section, article, aside, form, fieldset, .workspace-content { min-width: 0; }
main { padding-block: clamp(24px, 4vw, 48px) 64px; }
.layout, .workbar-inner { width: min(1240px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.workspace { display: grid; grid-template-columns: var(--rail-width) minmax(0, 1fr); min-height: 100svh; }
.masthead { background: var(--rail); color: white; }
.workspace .masthead { position: sticky; top: 0; height: 100svh; overflow-y: auto; }
.masthead-inner { padding: 30px 16px; }
.public-shell .masthead-inner { width: min(860px, calc(100% - 2 * var(--gutter))); margin-inline: auto; padding: 13px 0; }
.brand { display: flex; align-items: center; gap: 12px; line-height: 1.15; padding-inline: 8px; }
.public-shell .brand { padding: 0; }
.brand strong { display: block; font-size: 1.14rem; font-weight: 800; letter-spacing: -.032em; }
.brand small { display: block; color: #c3d7d7; font-size: .72rem; font-weight: 650; margin-top: 4px; }
.brand .mobile-role { display: none; }
.mark { display: block; flex: 0 0 42px; width: 42px; height: 42px; }
.workspace-nav { display: grid; gap: 5px; margin-top: 36px; }
.workspace-link {
  position: relative;
  display: flex;
  gap: 11px;
  align-items: center;
  min-height: 47px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #e0edeb;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
}
.workspace-link:hover { background: #ffffff10; color: white; }
.workspace-link[aria-current] { border-color: #3d716f; background: #234e53; color: white; }
.nav-icon {
  display: inline-block;
  position: relative;
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  opacity: .9;
  color: #aad8cc;
}
.nav-icon::before, .nav-icon::after { content: ""; position: absolute; }
.icon-campaigns::before { inset: 1px; border: 1.5px solid currentColor; border-radius: 4px; }
.icon-campaigns::after { inset: 5px 5px auto; height: 1.5px; background: currentColor; box-shadow: 0 4px 0 currentColor; }
.icon-cases::before { inset: 3px 0 1px; border: 1.5px solid currentColor; border-radius: 4px; }
.icon-cases::after { width: 7px; height: 3px; top: 1px; left: 5px; border: 1.5px solid currentColor; border-radius: 2px; background: var(--rail); }
.icon-reports::before { width: 3px; height: 7px; left: 2px; bottom: 2px; border-radius: 1px; background: currentColor; }
.icon-reports::after { width: 3px; height: 13px; left: 7px; bottom: 2px; border-radius: 1px; background: currentColor; box-shadow: 5px 3px 0 -0.25px currentColor; }
.icon-history::before { inset: 1px 2px; border: 1.5px solid currentColor; border-radius: 4px; }
.icon-history::after { inset: 5px 6px auto; height: 1.5px; background: currentColor; box-shadow: 0 4px 0 currentColor; }
.icon-visits::before { inset: 1px 3px 4px; border: 1.5px solid currentColor; border-radius: 8px 8px 8px 2px; transform: rotate(-45deg); }
.icon-visits::after { inset: 5px 7px auto; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.workbar { min-height: 64px; border-bottom: 1px solid var(--border); background: var(--surface); }
.workbar-inner { min-height: inherit; display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.role-tag { font-size: .83rem; font-weight: 750; color: var(--muted); }
.signout { font-size: .83rem; }
.skip-link { position: fixed; z-index: 3; top: 8px; left: 8px; transform: translateY(-150%); padding: 10px 14px; background: white; border-radius: 8px; }
.skip-link:focus { transform: none; }
:is(section, form, label, main)[id] { scroll-margin-top: 16px; }
.intro { margin: 0 0 24px; overflow-wrap: anywhere; }
.intro > a:first-child, .intro > p.no-print:first-child { display: block; margin-bottom: 12px; }
.intro p { margin: 0 0 8px; color: var(--muted); }
.intro > :last-child { margin-bottom: 0; }
.intro .status { margin-bottom: 10px; }
.dashboard-intro {
  padding: clamp(16px, 2.5vw, 28px);
  border: 1px solid var(--border);
  border-radius: var(--panel-radius);
  background: var(--paper);
}
.dashboard-intro > p { max-width: 62ch; }
h1, h2, h3 { margin: 0 0 12px; line-height: 1.22; overflow-wrap: anywhere; }
h1 { font-size: clamp(1.75rem, 3.35vw, 2.85rem); font-weight: 800; letter-spacing: -.049em; }
h2 { font-size: clamp(1.12rem, 2vw, 1.36rem); font-weight: 800; letter-spacing: -.025em; }
h3 { font-size: 1rem; font-weight: 800; }
p { margin: 0 0 12px; overflow-wrap: anywhere; }
a { color: var(--accent); text-decoration-thickness: .08em; text-underline-offset: .18em; overflow-wrap: anywhere; }
a:hover { color: var(--accent-hover); }
.card {
  padding: clamp(16px, 2.1vw, 25px);
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: var(--panel-radius);
  background: var(--surface);
  box-shadow: 0 2px 8px #233e3508;
}
.card > :last-child { margin-bottom: 0; }
.card pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-panel { max-width: 850px; }
.compact { max-width: 490px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin-bottom: 14px; }
.section-heading h2, .section-heading p { margin: 0; }
.section-heading h2 { min-width: 0; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 16px;
}
.overview > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 3px;
  padding: clamp(12px, 1.6vw, 20px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--panel-radius);
}
.overview dt { font-size: .85rem; font-weight: 700; color: var(--muted); overflow-wrap: anywhere; }
.overview dd { margin: 0; font-size: clamp(1.55rem, 3vw, 2.1rem); font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }
.record, .records li { overflow-wrap: anywhere; }
.record { display: flex; justify-content: space-between; align-items: center; gap: 8px 14px; flex-wrap: wrap; }
.record > div { flex: 1 1 225px; min-width: 0; }
.record-title { color: var(--ink); font-weight: 800; text-decoration-color: #73a89c; }
.record-title:hover { color: var(--accent); }
.record-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; margin: 4px 0 0; }
.empty-state { padding: 16px; color: var(--muted); background: #f2f7f4; border: 1px dashed var(--line); border-radius: 12px; }
.work-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.work-cards > .card { margin: 0; }
.work-cards > .empty-state { grid-column: 1 / -1; }
.visit-card { display: flex; flex-direction: column; align-items: flex-start; }
.visit-card .status { margin-bottom: 12px; }
.visit-card h3 { font-size: 1.13rem; }
.visit-date { margin-top: auto; font-weight: 750; color: var(--muted); }
.visits-section { margin-bottom: 22px; }
.auth-shell main { display: grid; justify-items: center; padding-top: clamp(32px, 9vh, 100px); }
.auth-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); width: min(100%, 900px); gap: 18px; align-items: stretch; }
.auth-card { grid-column: 2; grid-row: 1; padding: clamp(22px, 5vw, 35px); margin: 0; border-top: 4px solid var(--accent); box-shadow: 0 16px 45px #203f3512; }
.auth-card button { width: 100%; }
.auth-card h1 { font-size: clamp(1.75rem, 3.35vw, 2.35rem); }
.auth-story { grid-column: 1; grid-row: 1; padding: clamp(22px, 4vw, 38px); border-radius: var(--panel-radius); background: var(--rail); color: white; }
.auth-story h2 { font-size: clamp(1.45rem, 2.6vw, 2.05rem); }
.brand-steps { list-style: none; padding: 0; margin: 20px 0 0; }
.brand-steps li { position: relative; display: grid; gap: 3px; padding: 0 0 0 18px; }
.brand-steps li + li { margin-top: 15px; }
.brand-steps li::before { position: absolute; content: ""; inset: .52em auto auto 0; width: 7px; height: 7px; border-radius: 2px; background: var(--brand-gold); }
.brand-steps span { color: #d8e6e7; }
.survey { max-width: 860px; margin-inline: auto; }
.survey form { max-width: 780px; margin-inline: auto; }
.survey .card h2 { margin-bottom: 19px; }
.survey .dashboard-intro { background: var(--paper); border: 0; border-top: 3px solid var(--rail); border-radius: 0; }
.intro .survey-kind { color: #764917; font-weight: 800; font-size: .84rem; }
.survey-jumps { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.survey-jumps a { display: flex; align-items: center; min-height: 44px; padding: 6px 11px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); font-size: .84rem; font-weight: 750; text-decoration: none; }
.survey-jumps a:hover { background: var(--accent-soft); border-color: #93b9ad; }
.survey .privacy-note { border-inline-start: 3px solid #b97723; padding-inline-start: 12px; color: var(--ink); font-weight: 700; }
label { display: block; min-width: 0; font-weight: 725; }
input, select, textarea, button { font: inherit; color: inherit; }
input:not([type=checkbox], [type=hidden]), select, textarea {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 46px;
  margin: 6px 0 14px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background-color: white;
  color: var(--ink);
  font-weight: 600;
}
input:not([type=checkbox], [type=hidden]):hover, select:hover, textarea:hover { border-color: #7a9e95; }
input[type=date], input[type=datetime-local] { padding-inline: 10px; }
input:read-only:not([type=file]), textarea:read-only { background: #f2f7f4; }
select {
  appearance: none;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-inline-end: 34px;
  background-image: linear-gradient(45deg, transparent 50%, #3e605e 50%), linear-gradient(135deg, #3e605e 50%, transparent 50%);
  background-position: right 16px center, right 11px center;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
textarea { resize: vertical; }
.location-select { display: grid; margin: 6px 0 14px; }
.location-select > * { grid-area: 1 / 1; }
.location-select select { margin: 0; color: transparent; }
.location-select option { color: var(--ink); }
.location-select > span {
  z-index: 1; align-self: center; padding: 10px 35px 10px 13px;
  font-weight: 600; overflow-wrap: anywhere; pointer-events: none;
}
@media (forced-colors: active) {
  .location-select select { color: ButtonText; }
  .location-select > span { visibility: hidden; }
}
input[type=file] { padding: 4px; font-size: .84rem; }
::file-selector-button {
  padding: 7px 9px;
  margin-inline-end: 8px;
  border: 1px solid #cde5db;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
button, .button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 44px;
  max-width: 100%;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: var(--accent);
  color: white;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  cursor: pointer;
}
button:hover, .button:hover { background: var(--accent-hover); color: white; }
.secondary { border-color: #a7c8bd; background: white; color: var(--accent); }
.secondary:hover { border-color: #7bad9e; background: var(--accent-soft); color: var(--accent-hover); }
.danger { border-color: #ebc4cd; background: white; color: var(--danger); }
.danger:hover { border-color: #d89eab; background: var(--danger-soft); color: var(--danger); }
.link { border-color: transparent; background: transparent; color: var(--accent); text-decoration: underline; }
.link:hover { background: var(--accent-soft); color: var(--accent-hover); }
.compact-button { font-size: .84rem; }
button:disabled { opacity: .63; cursor: wait; }
:focus-visible { outline: 3px solid #187b73; outline-offset: 3px; }
.workspace-link:focus-visible, .signout:focus-visible { outline-color: #ffc365; }
.hint { color: var(--muted); font-size: .875rem; }
.error, .field-error { color: var(--danger); }
.error { padding: 10px 12px; border: 1px solid #ebc4cd; border-radius: 9px; background: var(--danger-soft); }
[aria-invalid=true] { border-color: var(--danger) !important; }
.actions, .field-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; }
.actions form { max-width: 100%; }
.share-field { display: flex; align-items: center; gap: 8px; margin: 6px 0 4px; }
.share-field input { flex: 1 1 0; margin: 0; }
.share-field button { flex: 0 0 auto; }
#share-feedback:empty { margin: 0 0 14px; }
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  border-radius: 5px;
  padding: 4px 10px;
  color: #215552;
  background: #e8f1ee;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.status::before { content: ""; flex: 0 0 6px; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status:is([data-tone=open], [data-tone=checked]) { color: #126047; background: #e6f5ee; }
.status:is([data-tone=new], [data-tone=review], [data-tone=scheduled]) { color: #794710; background: #fff0d7; }
.status:is([data-tone=draft], [data-tone=closed], [data-tone=merged]) { color: #465e66; background: #edf2f1; }
.status:is([data-tone=rejected], [data-tone=overdue]) { color: var(--danger); background: var(--danger-soft); }
.field { margin-bottom: 18px; }
.field:last-child, .field:last-child select, .field:last-child textarea { margin-bottom: 0; }
.field-error { margin: 6px 0 0; font-size: .88rem; font-weight: 700; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 6px; font-weight: 800; }
.choice { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; }
.choice input { flex: 0 0 20px; width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.survey .choice { margin-top: 7px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 9px; cursor: pointer; }
.survey .choice:hover, .survey .choice:has(input:checked) { border-color: #83b5a7; background: var(--accent-soft); }
.confirmation { border-color: #9aceb5; background: #eaf8f1; }
.survey .submit-row button { width: min(100%, 310px); }
.filter { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)); align-items: end; gap: 12px; }
.filter input, .filter select { margin-bottom: 0; }
.filter-actions { display: flex; flex-wrap: wrap; gap: 8px; grid-column: 1 / -1; }
.filter-error { grid-column: 1 / -1; margin: 0; }
.field-filter { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.field-filter .filter-actions { grid-column: 1 / -1; align-items: center; }
.snapshot-action { margin-bottom: 16px; }
.assistant-panel { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; border-color: var(--assistant-line); background: var(--assistant-surface); }
.assistant-copy { display: flex; flex: 1 1 280px; align-items: flex-start; gap: 11px; min-width: 0; }
.assistant-copy h2 { margin: 0 0 4px; }
.assistant-copy p { margin: 0; color: var(--muted); }
.assistant-mark { display: inline-grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 10px; color: var(--assistant-ink); background: #eadff7; font-weight: 800; }
.assistant-action { background: var(--assistant-ink); }
.assistant-action:hover { background: var(--assistant-dark); }
.intro .assistant-label { display: flex; align-items: center; gap: 8px; color: var(--assistant-ink); font-size: .87rem; font-weight: 800; }
.assistant-label .assistant-mark { flex-basis: 26px; width: 26px; height: 26px; border-radius: 8px; }
.print-brand { display: none; }
.records { list-style: none; padding: 0; margin: 0; }
.records li { padding-block: 12px; }
.records li + li { border-top: 1px solid var(--border); }
.records .hint { display: block; }
.check-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.check-grid div, .measure { border-radius: 12px; background: #eff5f2; }
.check-grid div { padding: 11px; overflow-wrap: anywhere; }
.check-grid dd { margin: 2px 0 0; font-size: 1.45rem; font-weight: 800; color: var(--accent); }
.checksum { overflow-wrap: anywhere; }
.report-date { display: inline-block; }
details { margin: 12px 0; }
summary { cursor: pointer; font-weight: 750; padding-block: 8px; }
.total strong { font-size: 1.55rem; font-weight: 800; }
.district-heading .total { display: flex; align-items: baseline; gap: 8px; color: var(--accent); }
.measures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.measure { min-width: 0; padding: 13px; overflow-wrap: anywhere; }
.measure > strong { display: block; margin-bottom: 3px; color: var(--accent); font-size: 1.38rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.measure p { margin-bottom: 0; }
.field-card, .field-grid, .field-note, .brief-section, .brief-quote { overflow-wrap: anywhere; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; align-items: start; margin-bottom: 16px; }
.field-grid > .card { margin: 0; }
.field-grid .compact { max-width: none; }
.field-note { white-space: pre-wrap; }
.field-check { margin: 14px 0; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: #f4f8f6; }
.field-check legend { padding-inline: 7px; }
.field-check input { margin-bottom: 0; }
.inspection-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.inspection-grid.inspection-single { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.inspection-checklist { grid-column: 1; grid-row: 1; }
.inspection-media { grid-column: 2; grid-row: 1; }
.inspection-media li form { margin-top: 8px; }
.inspection-checklist dd { margin: 0 0 12px; color: var(--muted); }
.inspection-checklist dt { font-weight: 800; border-top: 1px solid var(--border); padding-top: 8px; }
.timeline { list-style: none; padding: 0 0 0 13px; margin: 0; border-inline-start: 2px solid #c9e4db; }
.timeline li { position: relative; padding: 0 0 15px 10px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { position: absolute; inset: 8px auto auto -19px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); content: ""; }
.timeline strong { display: block; }
.timeline p { margin: 4px 0 0; }
.brief-district { padding-top: 8px; border-top: 1px solid var(--border); }
.brief-district > summary { margin-bottom: 8px; }
.brief-topics { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; }
.brief-topics dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 750; }
.brief-quote { border-top: 1px solid var(--border); padding-block: 12px; }
.brief-section blockquote { margin: 8px 0 14px; border-inline-start: 3px solid #8dbfb0; padding-inline-start: 12px; white-space: pre-wrap; }

/* The folded M belongs to the cover and the service entrance. */
.auth-story { overflow: hidden; position: relative; isolation: isolate; }
.auth-story::after { content: ""; display: block; width: 120px; height: 55px; margin: 18px 0 -16px auto; background: url("mestoglas-fold.svg") center / cover; }
.brand strong { font-size: 1.3rem; letter-spacing: -.045em; }
.product-credit { width: min(1240px, calc(100% - 2 * var(--gutter))); margin: 0 auto; border-top: 1px solid var(--line); padding: 12px 0 max(18px, env(safe-area-inset-bottom)); color: var(--muted); font-size: .82rem; }
.public-shell .product-credit { max-width: 860px; }
.workspace-content { display: flex; flex-direction: column; }
.workspace-content > main { flex: 1 0 auto; }
.survey, .survey form { max-width: 780px; }
.survey .privacy-note { font-size: .9rem; }
.measure strong, .total, .visit-date { font-variant-numeric: tabular-nums; }
@media screen and (min-width: 961px) {
  .dashboard-intro:not(#survey-intro) {
    color: var(--paper); border-color: var(--rail); background: var(--rail) url("mestoglas-fold.svg") right center / auto 100% no-repeat;
    padding-right: max(190px, 28%); border-radius: 4px;
  }
  .dashboard-intro:not(#survey-intro) p { color: #e0e9e7; }
  .dashboard-intro:not(#survey-intro) a { color: var(--paper); }
}
@media screen and (max-width: 720px) {
  main { padding-block: 18px 32px; }
  .survey .intro { margin-bottom: 12px; }
  .survey .dashboard-intro { padding: 14px 16px; }
  .survey .intro p { font-size: .93rem; }
  .survey .intro .survey-kind { font-size: .8rem; }
  .survey .card h2 { margin-bottom: 9px; }
  .survey-jumps a { line-height: 1.35; }
}
@media screen {
  body { padding-inline: env(safe-area-inset-left) env(safe-area-inset-right); }
  .masthead { padding-top: env(safe-area-inset-top); }
}
@media (max-width: 960px) {
  .workspace .workbar { top: calc(12px + env(safe-area-inset-top)); }
}
@page { size: A4; margin: 16mm; }
@media (min-width: 1340px) {
  .filter { grid-template-columns: minmax(0, 1.45fr) repeat(2, minmax(0, 1fr)) auto; }
  .field-filter { grid-template-columns: repeat(2, minmax(0, 1.3fr)) repeat(2, minmax(0, 1fr)); }
  .filter-actions { grid-column: auto; }
}
@media (max-width: 960px) {
  .workspace { display: block; position: relative; }
  .workspace .masthead { position: static; height: auto; overflow: visible; }
  .workspace .masthead-inner { padding: 12px var(--gutter) 10px; }
  .workspace .brand { padding: 0; max-width: calc(100% - 86px); }
  .workspace .brand-caption { display: none; }
  .workspace .mobile-role { display: block; }
  .workspace-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
  .workspace-link { flex: 1 1 0; justify-content: center; min-width: 0; min-height: 44px; text-align: center; }
  .workspace-link:only-child { flex: 0 1 auto; }
  .workbar { position: absolute; top: 12px; right: var(--gutter); min-height: 0; border: 0; background: transparent; }
  .workbar-inner { width: auto; }
  .role-tag { display: none; }
  .signout { border-color: #577776; background: #ffffff0d; color: white; }
  .signout:hover { border-color: #8babaa; background: #ffffff20; color: white; }
}
@media (max-width: 720px) {
  .auth-layout { grid-template-columns: minmax(0, 1fr); max-width: 480px; }
  .auth-card, .auth-story { grid-area: auto; }
  .dashboard-grid, .work-cards, .field-grid, .inspection-grid, .measures { grid-template-columns: minmax(0, 1fr); }
  .inspection-checklist, .inspection-media { grid-area: auto; }
  .check-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter .filter-field, .field-filter > label:has(select) { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .workspace-link { padding: 6px 4px; font-size: .75rem; line-height: 1.25; }
  .workspace-link:only-child { padding-inline: 12px; }
  .nav-icon { display: none; }
  .overview { gap: 7px; }
  .overview dt { font-size: .73rem; }
  .survey-jumps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .survey-jumps a { padding-inline: 8px; font-size: .77rem; }
  .survey .submit-row button { width: 100%; }
  .share-field { align-items: stretch; flex-direction: column; }
  .share-field button { align-self: flex-start; }
}
@media (max-width: 365px) {
  .filter { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  body, .card { background: white; color: black; }
  .workspace, .workspace-content { display: block; }
  .product-credit { display: none; }
  .print-brand span { margin-inline-start: auto; font-size: 9pt; }
  .print-brand { padding-bottom: 8px; border-bottom: 2px solid #102e39; }
  h1, h2, h3 { break-after: avoid; }
  .masthead, .workbar, .skip-link, .no-print { display: none; }
  .intro .assistant-label { display: none; }
  .no-print { display: none !important; }
  .print-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
  main.layout { width: auto; padding: 0; }
  .card { box-shadow: none; }
  .brief-section { padding: 12px; }
  .brief-quote, .measure { break-inside: avoid; }
}


.visit-overview { border-top: 4px solid var(--accent); }
.visit-title { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 16px; }
.visit-title h2 { font-size: clamp(1.35rem, 3vw, 2rem); }
.visit-title p, .visit-title h2 { margin-bottom: 3px; }
.visit-title p, .visit-kpi small, .visit-table small { color: var(--muted); }
.visit-numbers { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(155px,100%),1fr)); gap: 10px; }
.visit-numbers > div { display: flex; flex-direction: column; padding: 14px; border-radius: 9px; background: var(--tone-bg,#12343d); color: var(--tone,#fff); }
.visit-numbers span { font-weight: 700; }
.visit-numbers strong { margin-block: 5px; font-size: clamp(1.8rem,3.4vw,2.7rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.visit-positive { --tone-bg:#e2f2e9; --tone:#205e4b; }
.visit-negative { --tone-bg:#fae9e3; --tone:#943c2b; }
.visit-partial { --tone-bg:#fbefd3; --tone:#775219; }
.visit-unsure { --tone-bg:#e9edf3; --tone:#43536a; }
.visit-note { display:block; }
.visit-compare { margin: 14px 0 0; }
.visit-table-wrap { max-width:100%; overflow-x:auto; }
.visit-table { width:100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.visit-table :is(td,th) { text-align:left; padding:10px; border-bottom:1px solid var(--border); }
.visit-table thead th { font-size:.85rem; color:var(--muted); }
.visit-table meter { appearance:none; display:block; margin-top:5px; width:100%; height:5px; background:var(--tone-bg); border:0; border-radius:4px; }
.visit-table meter::-webkit-meter-bar { height:5px; background:var(--tone-bg); border:none; }
.visit-table meter::-webkit-meter-optimum-value { background:var(--tone); }
.visit-table meter::-moz-meter-bar { background:var(--tone); }
.visit-filter-actions { display:flex; flex-wrap:wrap; align-items:center; gap:12px; }
#visit-filters .visit-filter-actions { grid-column:1 / -1; }
.visit-index summary { min-height:44px; padding-block:8px; }
.visit-index a { display:inline-block; padding-block:7px; }
.visit-progress { margin-top:12px; }
.visit-progress progress { width:min(100%,360px); height:10px; accent-color:var(--accent); display:block; margin-block:8px; }
.visit-part h2 { border-bottom:1px solid var(--border); padding-bottom:10px; }
.visit-part label { margin-top:10px; }
@media (max-width:600px) {
 .visit-numbers { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .visit-numbers > div { padding:10px; }
 .visit-table, .visit-table tbody { display:block; }
 .visit-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
 .visit-table tr { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px 12px; padding:12px 0; border-top:1px solid var(--border); }
 .visit-table :is(td,th) { border:0; padding:0; }
 .visit-table th[scope=row] { grid-column:1 / -1; }
 .visit-table td::before { content:attr(data-label); display:block; color:var(--muted); font-size:.78rem; }
}
