.field-status {
  display: flex;
  align-items: center;
  gap: 7px 18px;
  flex-wrap: wrap;
  padding: 10px 36px;
  background: #e9eee4;
  border-bottom: 1px solid #cdd8c8;
  font-size: 11px;
  color: #294a3a;
}
.field-status > span {
  overflow-wrap: anywhere;
}
.field-status .text-button {
  font-size: 11px;
  min-height: 36px;
}
.field-status [hidden] {
  display: none !important;
}
.field-status .save-warning {
  color: #8e260b;
  font-weight: 700;
  flex-basis: 100%;
}
.briefing-jump {
  position: sticky;
  top: 0;
  z-index: 8;
  background: #f5f6ef;
  padding: 10px 0;
  margin: 0 0 16px;
  border-block: 1px solid #cdd8c8;
}
.briefing-jump .field {
  margin: 0;
  max-width: 460px;
}
.briefing-jump select {
  min-height: 44px;
}
.briefing-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.briefing-photo-grid article {
  min-width: 0;
  padding: 14px;
  border: 1px solid #cdd8c8;
  border-radius: 8px;
}
.briefing-photo-grid img {
  width: 100%;
  height: 210px;
  object-fit: contain;
  background: #edf0e8;
}
.briefing-photo-grid .field {
  margin-top: 14px;
}
#brief-job,
#brief-emergency,
#brief-changes,
#brief-topics,
#brief-photos,
#brief-export {
  scroll-margin-top: 100px;
}
@media (min-width: 851px) and (max-width: 1250px) {
  .sidebar {
    width: 176px;
    padding: 22px 12px;
  }
  .shell {
    margin-left: 176px;
  }
  .sidebar .brand {
    font-size: 23px;
  }
  .sidebar nav button {
    padding: 10px 8px;
    min-height: 48px;
  }
  .sidebar nav button span {
    font-size: 12px;
  }
  .sidebar .workspace {
    font-size: 8px;
  }
  main {
    padding: 28px 24px;
  }
  .panel {
    padding: 24px;
  }
  .field-status {
    padding-inline: 24px;
  }
  .fields.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .demo-notice {
    flex-wrap: wrap;
  }
  .demo-notice > div {
    flex-basis: 100%;
  }
}
@media (min-width: 700px) and (max-width: 850px) {
  .fields.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
  }
  .panel {
    padding: 24px;
  }
  .export-actions .button {
    min-height: 48px;
  }
  .field-status {
    padding-inline: 24px;
  }
}
@media (max-width: 699px) {
  .field-status {
    padding: 10px 20px;
    gap: 5px 12px;
  }
  .field-status > span {
    flex-basis: 100%;
  }
  .field-status .text-button {
    min-height: 44px;
  }
  .briefing-photo-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .briefing-jump {
    padding: 8px 0;
  }
  .briefing-jump .field {
    max-width: none;
  }
}
body.field-contrast {
  --ink: #111;
  --muted: #222;
  --line: #555;
  background: #fff;
  color: #111;
}
body.field-contrast .panel,
body.field-contrast .notice,
body.field-contrast .field-status,
body.field-contrast .briefing-jump,
body.field-contrast dialog,
body.field-contrast .worksheet-browser,
body.field-contrast .browser-topic {
  background: #fff;
  color: #111;
  border-color: #444;
}
body.field-contrast main p,
body.field-contrast main label,
body.field-contrast .helper,
body.field-contrast .section-number,
body.field-contrast .eyebrow,
body.field-contrast main h1,
body.field-contrast main h2,
body.field-contrast main h3 {
  color: #111 !important;
}
body.field-contrast input,
body.field-contrast select,
body.field-contrast textarea {
  background: #fff;
  color: #000;
  border: 2px solid #333;
}
body.field-contrast .button.primary {
  background: #001f16;
  color: white;
  border-color: #001f16;
}
body.field-contrast .button.quiet,
body.field-contrast .text-button {
  color: #001f16;
  border-color: #222;
}
body.field-contrast .sidebar {
  background: #001f16;
}
body.field-contrast .sidebar,
body.field-contrast .sidebar span,
body.field-contrast .sidebar button,
body.field-contrast .sidebar p {
  color: #fff;
}
body.field-contrast a {
  color: #003c91;
  text-decoration: underline;
}
body.field-contrast .brand {
  color: white;
}
body.field-contrast :focus-visible {
  outline: 3px solid #005fcc;
  outline-offset: 3px;
}
@media print {
  .field-status,
  .briefing-jump {
    display: none !important;
  }
}

.lsd-location {
  min-width: 0;
  border: 1px solid #bacbb9;
  border-radius: 7px;
  padding: 16px;
  margin: 16px 0 22px;
}
.lsd-location legend {
  font-weight: 600;
  padding: 0 6px;
}
.lsd-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.lsd-grid .field {
  min-width: 0;
}
.lsd-location output {
  display: block;
  font-size: 20px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.parcel-location {
  border-top: 1px solid #bacbb9;
  margin-top: 18px;
  padding-top: 14px;
}
.parcel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.parcel-grid .field {
  min-width: 0;
}
.parcel-location [data-parcel-validation] {
  font-size: 16px;
  line-height: 1.5;
}
.parcel-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.parcel-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
@media (max-width: 420px) {
  .parcel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .parcel-grid .field:last-child {
    grid-column: 1/-1;
  }
}
.lsd-location [hidden] {
  display: none !important;
}
.lsd-location [data-lsd-validation] {
  font-size: 13px;
  line-height: 1.6;
}
.lsd-location details {
  margin-block: 14px;
}
.lsd-location summary {
  cursor: pointer;
  min-height: 44px;
}
@media (max-width: 699px) {
  .lsd-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lsd-grid .field:last-child {
    grid-column: 1/-1;
  }
  .lsd-location {
    padding: 12px;
  }
}

.brief-mode-picker,
.brief-overlays {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.brief-mode-picker > legend {
  font-size: 20px;
  font-weight: 650;
  margin-bottom: 18px;
}
.brief-mode-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.brief-mode-tile {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 18px 14px;
  border: 1px solid #b7c9b7;
  border-radius: 8px;
  cursor: pointer;
  min-width: 0;
  min-height: 110px;
  background: #fff;
}
.brief-mode-tile.selected {
  border: 2px solid #234e3b;
  background: #eff4e8;
  padding: 17px 13px;
}
.brief-mode-tile input {
  margin-top: 5px;
  flex: 0 0 auto;
}
.brief-mode-tile strong {
  display: block;
  font-size: 16px;
}
.brief-mode-tile small {
  display: block;
  font-size: 12px;
  line-height: 1.65;
  margin-top: 8px;
  color: #445c49;
}
.brief-mode-tile:focus-within {
  outline: 3px solid #176a98;
  outline-offset: 3px;
}
.brief-mode-impact {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.7;
  overflow-wrap: anywhere;
  padding: 12px;
  background: #eef2e8;
  border-radius: 5px;
}
.brief-start-options > summary,
.brief-extra > summary,
.brief-topic-body > summary,
.brief-followup > summary,
.brief-guidance > summary {
  cursor: pointer;
  min-height: 44px;
  padding: 12px 0;
  line-height: 1.5;
  font-weight: 600;
}
.brief-overlays {
  margin-top: 22px;
}
.brief-overlays legend {
  font-weight: 600;
  margin-bottom: 10px;
}
.brief-overlays .ack {
  min-height: 44px;
}
.preset-preview {
  padding: 16px;
  border: 1px solid #bdcdbb;
  border-radius: 7px;
  margin: 12px 0;
}
.brief-extra {
  margin-top: 16px;
  border-top: 1px solid #d4dfcf;
  padding-top: 6px;
}
.brief-extra[open] > summary {
  margin-bottom: 10px;
}
.brief-topic-card {
  padding: 16px 0;
}
.brief-topic-card h3 {
  margin-top: 8px;
  margin-bottom: 10px;
}
.brief-topic-body {
  padding-top: 4px;
}
.brief-guidance {
  padding: 0 12px;
  background: #f0f3e9;
  border-radius: 5px;
  margin-top: 12px;
}
.brief-followup {
  min-width: 0;
}
.brief-scope {
  margin-bottom: 18px;
}
.brief-scope summary {
  cursor: pointer;
  min-height: 44px;
  font-weight: 600;
}
.field-contrast .brief-mode-tile,
.field-contrast .brief-mode-impact,
.field-contrast .brief-guidance,
.field-contrast .preset-preview {
  background: white;
  color: #111;
  border-color: #333;
}
.field-contrast .brief-mode-tile small {
  color: #111;
}
.field-contrast .brief-mode-tile.selected {
  outline: 2px solid #111;
}
.brief-hold {
  color: #8a250c;
}
@media (max-width: 699px) {
  .brief-mode-tiles {
    grid-template-columns: minmax(0, 1fr);
  }
  .brief-mode-tile {
    min-height: 76px;
    padding: 14px;
  }
  .brief-mode-tile.selected {
    padding: 13px;
  }
  .brief-mode-tile small {
    font-size: 13px;
    margin-top: 4px;
  }
  .brief-mode-picker > legend {
    font-size: 18px;
  }
  .brief-mode-impact {
    font-size: 13px;
  }
  .brief-topic-card .fields.two {
    grid-template-columns: minmax(0, 1fr);
  }
}

.brief-topic-card[hidden],
[data-no-included][hidden] {
  display: none !important;
}
.brief-ask {
  margin: 14px 0;
  font-size: 14px;
  line-height: 1.75;
}
.brief-topic-filter {
  margin: 16px 0;
}
.brief-guidance > summary {
  font-size: 13px;
  font-weight: 500;
}
.brief-topic-body > summary {
  font-size: 14px;
}
.brief-topic-body {
  border-top: 1px solid #d5dfd0;
}
.brief-topic-card > h3 {
  font-size: 18px;
}
.brief-topic-card > .ack {
  margin: 8px 0;
}

.resource-filters {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.official-resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0 32px;
}
.official-resource-card {
  margin: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.official-resource-card h3 {
  font-size: 19px;
  margin: 12px 0 0;
}
.official-resource-card p {
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}
.official-resource-card .pill {
  align-self: flex-start;
  white-space: normal;
}
.official-resource-card .button {
  margin-top: auto;
  min-height: 44px;
  align-self: flex-start;
}
.official-resource-card .source-link {
  display: block;
  margin-top: 8px;
  overflow-wrap: anywhere;
}
.resource-start {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 20px;
}
.resource-start h2 {
  font-size: 20px;
}
@media (max-width: 699px) {
  .resource-filters,
  .official-resource-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .resource-start {
    display: block;
  }
  .resource-start .button {
    margin-top: 12px;
  }
  .official-resource-card .button {
    align-self: stretch;
  }
}

.prejob-snapshot {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 30rem;
  overflow: auto;
  font-size: 0.85rem;
}
.preserve {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
[data-post-actions] summary {
  overflow-wrap: anywhere;
}
[data-job-review-content] details > summary {
  min-height: 44px;
}
[data-job-review-content] input,
[data-job-review-content] textarea {
  min-width: 0;
  max-width: 100%;
}

#post-actual,
#post-stages,
#post-actions,
#post-handover,
#post-export {
  scroll-margin-top: 110px;
}

.sop-step-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
}
.sop-step-nav {
  min-width: 0;
}
.sop-step-nav ol {
  list-style: none;
  padding: 0;
}
.sop-step-nav button {
  text-align: left;
  overflow-wrap: anywhere;
  min-height: 44px;
}
.sop-step-nav [aria-current] {
  font-weight: bold;
  background: #e9eee4;
}
.sop-suggestion {
  padding: 16px 0;
  border-top: 1px solid #cdd8c8;
}
[data-sop-step-editor] {
  min-width: 0;
}
[data-sop-editor] summary {
  min-height: 44px;
}
[data-sop-editor] textarea,
[data-sop-editor] input,
[data-sop-editor] select {
  min-width: 0;
  max-width: 100%;
}
@media (max-width: 1100px) {
  .sop-step-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .sop-step-nav ol {
    display: none;
  }
}

.location-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.location-card {
  min-width: 0;
  overflow-wrap: anywhere;
  border-top: 1px solid #cdd8c8;
  padding: 18px 0;
}
.location-card .export-actions {
  flex-wrap: wrap;
}
@media (max-width: 850px) {
  .location-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

#sop-overview,
#sop-requirements,
#sop-steps,
#sop-export {
  scroll-margin-top: 110px;
}
.sop-step-nav ol li {
  margin-bottom: 6px;
}
.sop-step-nav [aria-current='step'] {
  border-left: 3px solid #245c48;
}

.lsd-map-dialog {
  width: min(1100px, calc(100vw - 32px));
  max-width: 1100px;
  max-height: 92vh;
  overflow: auto;
  padding: 24px;
  border: 1px solid #cdd8c8;
  border-radius: 12px;
  background: #f5f6ef;
  color: #24362f;
}
.lsd-map-dialog::backdrop {
  background: #112a24aa;
}
.lsd-map-heading {
  display: flex;
  gap: 20px;
  align-items: start;
  justify-content: space-between;
}
.lsd-map-heading h2 {
  font-size: 26px;
  margin: 8px 0;
}
.lsd-map-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.lsd-map-tools section {
  min-width: 0;
}
.lsd-map-tools input {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
.lsd-map-canvas {
  height: 340px;
  width: 100%;
  background: #e6ebe4;
  border: 1px solid #9caf9f;
  margin: 14px 0;
  z-index: 0;
}
.map-candidate {
  display: block;
  width: 100%;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  margin-bottom: 8px;
  min-height: 44px;
}
.map-candidate[aria-pressed='true'] {
  background: #e0ecdc;
  border: 2px solid #245c48;
}
.lsd-map-dialog .leaflet-control-zoom a {
  width: 44px;
  height: 44px;
  line-height: 44px;
}
.lsd-map-dialog .leaflet-control-attribution {
  max-width: 90%;
  white-space: normal;
  font-size: 11px;
}
.lsd-map-dialog [data-map-status] {
  min-height: 28px;
}
.lsd-map-dialog p {
  overflow-wrap: anywhere;
}
.lsd-map-dialog .field {
  margin-bottom: 12px;
}
@media (max-width: 699px) {
  .lsd-map-dialog {
    width: calc(100vw - 16px);
    padding: 16px;
    max-height: 94vh;
  }
  .lsd-map-tools {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .lsd-map-heading {
    flex-wrap: wrap;
    gap: 8px;
  }
  .lsd-map-canvas {
    height: 280px;
  }
  .lsd-map-dialog .fields.two {
    grid-template-columns: minmax(0, 1fr);
  }
}
body.field-contrast .lsd-map-dialog {
  background: #fff;
  color: #000;
  border-color: #333;
}
body.field-contrast .lsd-map-dialog input {
  border-color: #333;
}

.lsd-map-dialog .leaflet-control-zoom.leaflet-bar a {
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
  line-height: 44px;
}
.lsd-map-heading {
  position: sticky;
  top: -24px;
  z-index: 2;
  background: #f5f6ef;
  padding-block: 12px;
  border-bottom: 1px solid #cdd8c8;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}
.map-source {
  font-size: 11px;
  line-height: 1.5;
}
@media (max-width: 699px) {
  .lsd-map-heading {
    top: -16px;
    gap: 10px;
  }
  .lsd-map-heading h2 {
    font-size: 22px;
  }
  .lsd-map-heading .eyebrow {
    font-size: 10px;
  }
}
body.field-contrast .lsd-map-heading {
  background: #fff;
}

.lsd-map-canvas {
  scroll-margin-top: 130px;
}
@media (max-width: 699px) {
  .lsd-map-canvas {
    scroll-margin-top: 150px;
  }
}
.lsd-map-dialog .button {
  white-space: normal;
  max-width: 100%;
  min-height: 44px;
}
.lsd-location [data-open-lsd-map] {
  white-space: normal;
  max-width: 100%;
  min-height: 44px;
  text-align: left;
}
.lsd-map-dialog input {
  font-size: 16px;
}

.mobile-menu-toggle {
  display: none;
}
.sidebar small:empty {
  display: none;
}
.field-status {
  padding: 2px 36px;
  gap: 4px 18px;
}
.field-status > button {
  min-height: 40px;
}
.field-status [data-device-details] {
  flex-basis: 100%;
  padding: 8px 0 16px;
  max-width: 850px;
}
.field-status [data-device-details] p {
  margin: 7px 0;
  line-height: 1.5;
}
.field-status [data-device-details] small {
  display: block;
  margin-top: 12px;
  overflow-wrap: anywhere;
}
.field-status [data-save-warning] {
  flex-basis: 100%;
  color: #8e260b;
  margin: 6px 0;
  font-weight: 600;
}
footer {
  flex-wrap: wrap;
}
.footer-usage {
  flex-basis: 100%;
  margin: 12px 0 0;
  line-height: 1.6;
  font-size: 12px;
  max-width: 850px;
}
body.field-contrast .footer-usage {
  color: #111;
}
.field-status button:focus-visible {
  outline: 3px solid #245c48;
}
.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
@media (max-width: 850px) {
  .sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 10px 18px;
    gap: 6px 12px;
  }
  .sidebar .brand {
    margin: 0;
    font-size: 25px;
  }
  .sidebar .workspace,
  .sidebar .sidebar-bottom {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
    min-height: 44px;
    color: #fff !important;
    border-color: #607e70 !important;
    font-size: 12px;
    padding: 8px 12px;
  }
  .sidebar #main-navigation {
    display: none;
    grid-column: 1/-1;
    max-height: 65dvh;
    overflow: auto;
    margin: 8px 0 0;
  }
  .sidebar.nav-open #main-navigation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sidebar nav button {
    min-height: 44px;
  }
  .topbar {
    padding: 10px 18px;
    min-height: 40px;
  }
  .topbar .local-badge {
    display: none;
  }
  .field-status {
    padding: 2px 18px;
    gap: 4px 12px;
  }
  .field-status [data-device-summary] {
    font-size: 12px;
    min-height: 40px;
  }
  main {
    padding-top: 22px;
  }
  .page-heading {
    margin-top: 0;
  }
  .footer-usage {
    font-size: 12px;
  }
}
@media print {
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* Compact topic controls: one notes disclosure, guidance beside the heading. */
.brief-topic-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  justify-content: space-between;
}
.brief-topic-heading h3 {
  min-width: 0;
  flex: 1;
}
.brief-help-button {
  flex: 0 0 44px;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid #a8bda8;
  border-radius: 50%;
  background: transparent;
  color: #24533f;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
}
.brief-help-button:focus-visible {
  outline: 3px solid #176a98;
  outline-offset: 3px;
}
.brief-followup-prompts {
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.6;
  margin: 8px 0 18px;
}
.brief-followup-prompts li + li {
  margin-top: 8px;
}
.brief-help-dialog {
  width: min(600px, calc(100vw - 32px));
  max-height: 85dvh;
  overflow: auto;
  padding: 24px;
  box-sizing: border-box;
  border: 1px solid #b7c9b7;
  border-radius: 10px;
}
.brief-help-dialog p {
  line-height: 1.7;
}
.brief-help-dialog::backdrop {
  background: #102a22a6;
}
.field-contrast .brief-help-button {
  border-color: #111;
  color: #111;
  background: white;
}

.brief-topic-heading h3 {
  font-size: 18px;
  margin: 8px 0 10px;
}
/* Worked examples present the record; editing is one separate, reversible action. */
.glazing-example-notice {
  margin-bottom: 20px;
  padding: 18px 22px;
  background: #edf1e6;
  border: 1px solid #c3d1bb;
  border-radius: 8px;
}
.glazing-example-notice p {
  margin: 6px 0 0;
}
.glazing-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}
.glazing-metrics strong {
  display: block;
  font-size: 32px;
  line-height: 1.3;
  color: #204b3b;
}
.glazing-metrics span {
  display: block;
  font-size: 13px;
  margin-top: 4px;
}
.glazing-facts {
  margin: 16px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 28px;
}
.glazing-facts > div {
  min-width: 0;
}
.glazing-facts dt {
  font-size: 12px;
  color: #526b60;
  font-weight: 650;
  margin-bottom: 5px;
}
.glazing-facts dd {
  margin: 0;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.glazing-support,
.glazing-control {
  margin-top: 14px;
  padding-top: 8px;
  border-top: 1px solid #d5dfd0;
}
.glazing-support > summary,
.glazing-control > summary,
.glazing-notes > summary {
  cursor: pointer;
  min-height: 44px;
  padding: 10px 0;
  line-height: 1.5;
  font-weight: 600;
}
.glazing-sequence > summary {
  cursor: pointer;
  min-height: 44px;
}
.glazing-sequence > summary h2 {
  display: inline;
  font-size: 21px;
}
.glazing-stages {
  padding: 0;
  list-style: none;
  margin: 20px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.glazing-stages li {
  display: flex;
  gap: 12px;
  min-width: 0;
}
.glazing-stages li > span {
  flex: 0 0 28px;
  height: 28px;
  background: #e7eddf;
  border-radius: 50%;
  text-align: center;
  font-weight: 650;
  line-height: 28px;
}
.glazing-stages h3 {
  font-size: 16px;
  margin: 0 0 6px;
}
.glazing-stages p {
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}
.glazing-topic {
  padding: 22px 0;
  border-top: 1px solid #d5dfd0;
}
.glazing-topic h3 {
  font-size: 19px;
  margin: 0 0 10px;
}
.glazing-topic-summary {
  line-height: 1.75;
  margin: 0 0 10px;
}
.glazing-owner {
  font-size: 13px;
  color: #45614c;
  margin: 0;
}
.glazing-notes {
  margin-top: 8px;
}
.glazing-notes[open] {
  padding: 0 16px 14px;
  background: #f5f7f0;
  border-radius: 6px;
}
.glazing-notes .preserve {
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.glazing-topic .glazing-facts {
  grid-template-columns: 1fr;
}
.field-contrast .glazing-example-notice,
.field-contrast .glazing-notes[open] {
  background: #fff;
  color: #111;
  border-color: #111;
}
.field-contrast .glazing-owner,
.field-contrast .glazing-facts dt {
  color: #111;
}
@media (max-width: 600px) {
  .glazing-metrics {
    gap: 10px;
  }
  .glazing-metrics strong {
    font-size: 28px;
  }
  .glazing-metrics span {
    font-size: 12px;
  }
  .glazing-facts,
  .glazing-stages {
    grid-template-columns: 1fr;
  }
  .glazing-example-notice {
    padding: 16px;
  }
  .glazing-example-lead .export-actions {
    align-items: stretch;
  }
  .glazing-example-lead .button {
    white-space: normal;
  }
}
.glazing-execution-alert {
  padding: 14px 16px;
  background: #fff5df;
  border-left: 4px solid #9c6918;
  line-height: 1.7;
}
.glazing-execution-alert strong {
  display: block;
}
.glazing-execution-group {
  border-top: 1px solid #d5dfd0;
  margin-top: 16px;
  padding-top: 8px;
}
.glazing-execution-group > summary {
  min-height: 44px;
  padding: 10px 0;
  cursor: pointer;
  font-weight: 650;
  line-height: 1.6;
}
.glazing-execution-group h3 {
  font-size: 16px;
  margin: 18px 0 8px;
}
.glazing-execution-group ol {
  padding-left: 22px;
  line-height: 1.8;
}
.glazing-execution-group li + li {
  margin-top: 12px;
}
.glazing-required-record {
  background: #edf2e6;
  border: 1px solid #c5d3be;
  padding: 14px 18px;
  margin-top: 18px;
  border-radius: 6px;
}
.glazing-required-record h3 {
  margin-top: 0;
}
.glazing-required-record p {
  margin-bottom: 0;
  line-height: 1.75;
}
.glazing-execution-sources {
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.field-contrast .glazing-execution-alert,
.field-contrast .glazing-required-record {
  background: #fff;
  color: #111;
  border-color: #111;
}
#glazing-field-checks {
  scroll-margin-top: 18px;
}
/* Worked examples and isolated reusable document sets */
.example-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.example-card {
  display: flex;
  flex-direction: column;
  margin: 0;
}
.example-card > .button {
  align-self: flex-start;
  margin-top: auto;
}
.example-hold {
  padding: 14px 16px;
  border-left: 4px solid #a76216;
  background: #fff4df;
  color: #59401d;
  overflow-wrap: anywhere;
}
.example-document-nav {
  display: block;
}
.example-document-nav .export-actions {
  gap: 12px;
  flex-wrap: wrap;
}
.example-document-nav select {
  width: 100%;
  max-width: 100%;
}
.example-stage-list {
  padding-left: 24px;
}
.example-stage-list > li {
  padding: 12px 0 22px;
  border-bottom: 1px solid var(--line, #dce2db);
}
.example-stage-list h3 {
  margin-top: 0;
}
.example-stage-list summary {
  padding: 12px 0;
  cursor: pointer;
  min-height: 44px;
}
.example-observation {
  border-left: 3px solid #b7c8bb;
  padding-left: 14px;
}
.field-contrast .example-hold {
  background: #fff;
  color: #000;
  border-color: #000;
}
@media (max-width: 650px) {
  .example-gallery {
    grid-template-columns: 1fr;
  }
  .example-document-nav .export-actions > * {
    flex: 1 1 42%;
    text-align: left;
  }
  .example-document-nav .text-button {
    min-height: 44px;
  }
  .example-stage-list {
    padding-left: 20px;
  }
}

.example-doc-switch > summary {
  cursor: pointer;
  min-height: 44px;
  padding: 12px 0;
  font-weight: 700;
}
.example-document-nav > p {
  margin: 6px 0;
}
.example-document-nav > button {
  margin-top: 10px;
}
.example-doc-switch .field {
  margin-top: 14px;
}

.location-utility-lead ol {
  padding-left: 24px;
}
.location-utility-lead li {
  margin: 10px 0;
}
.location-utility-result {
  border-top: 1px solid var(--line, #dce2db);
  margin-top: 20px;
  padding-top: 16px;
}
.location-utility-result .preserve {
  overflow-wrap: anywhere;
}
.location-utility-lead > .field {
  max-width: 480px;
}
@media (max-width: 650px) {
  .location-utility-lead > .button {
    width: 100%;
    white-space: normal;
  }
}

/* Standalone location utility: one input surface, reusable saved reference. */
.location-utility-workspace {
  max-width: 1100px;
}
.location-lookup-controls {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(250px, 1.3fr);
  gap: 16px;
  align-items: end;
}
.location-lookup-controls > .field {
  margin: 0;
}
.location-lookup-controls > .button {
  min-height: 48px;
  white-space: normal;
}
.location-how-to {
  margin: 16px 0 6px;
}
.location-how-to > summary,
.location-privacy > summary,
.location-utility-result > details > summary {
  min-height: 44px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  padding: 10px 0;
}
.location-how-to ol {
  padding-left: 22px;
  font-size: 13px;
  line-height: 1.8;
}
.location-utility-workspace .lsd-location {
  border: 0;
  border-top: 1px solid var(--line);
  padding: 14px 0 0;
  margin: 10px 0;
}
.location-utility-workspace .lsd-location > legend {
  padding-left: 0;
}
.location-utility-workspace .lsd-location > p.helper {
  display: none;
}
.location-utility-workspace .lsd-location [data-lsd-fields] > p:first-child {
  font-size: 13px;
  line-height: 1.6;
}
.lsd-paste-inline {
  display: flex;
  align-items: end;
  gap: 12px;
  margin: 16px 0 20px;
}
.lsd-paste-inline .field {
  flex: 1;
  min-width: 0;
  margin: 0;
}
.lsd-paste-inline .button {
  min-height: 48px;
}
.location-utility-workspace .lsd-grid input,
.location-utility-workspace .lsd-grid select {
  min-height: 48px;
  width: 100%;
  font-size: 16px;
}
.location-utility-workspace [data-lsd-preview],
.location-utility-workspace [data-copy-lsd] {
  display: none;
}
.location-utility-workspace .lsd-grid .field {
  margin-bottom: 0;
}
.location-utility-result {
  margin-top: 12px;
  padding-top: 14px;
}
.location-utility-result h2 {
  font-size: 16px;
  margin-bottom: 10px;
}
.location-utility-result [data-utility-result] {
  font-size: 18px;
  font-weight: 650;
  line-height: 1.6;
  margin: 0;
}
.location-utility-result [data-utility-source] {
  font-size: 12px;
  line-height: 1.7;
}
.location-utility-result [data-utility-clear] {
  min-height: 44px;
}
.location-utility-actions {
  position: sticky;
  bottom: 0;
  z-index: 8;
  background: #fff;
  border: 1px solid #a7c0aa;
  border-radius: 6px;
  box-shadow: 0 -4px 16px #173d3514;
  padding: 14px 18px;
  margin: 16px 0;
  max-width: 1100px;
}
.location-utility-actions[hidden] {
  display: none;
}
.location-utility-actions > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 8px 20px;
  flex-wrap: wrap;
  font-size: 12px;
  line-height: 1.6;
  color: #48614e;
}
.location-utility-actions > div:first-child strong {
  font-size: 15px;
  color: #173d35;
}
.location-primary-actions,
.location-form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.location-utility-actions .button,
.location-utility-actions .text-button {
  min-height: 44px;
  white-space: normal;
}
.location-form-actions {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.location-privacy {
  font-size: 12px;
  line-height: 1.8;
  max-width: 1100px;
}
.location-save-dialog .field {
  margin: 16px 0;
}
.location-save-dialog input,
.location-save-dialog select {
  font-size: 16px;
  min-height: 48px;
}
@media (max-width: 850px) {
  .location-utility-workspace .lsd-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
  }
  .location-utility-workspace .lsd-grid .field {
    grid-column: span 2;
  }
  .location-utility-workspace .lsd-grid .field:nth-last-child(-n + 2) {
    grid-column: span 3;
  }
  .location-utility-actions {
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  }
}
@media (max-width: 600px) {
  .location-lookup-controls {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .location-utility-workspace {
    padding: 18px;
  }
  .lsd-paste-inline {
    gap: 8px;
  }
  .lsd-paste-inline .button {
    padding: 8px 10px;
  }
  .location-utility-actions {
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  }
  .location-utility-actions > div:first-child > span {
    display: none;
  }
  .location-primary-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .location-primary-actions > .text-button {
    grid-column: 1/-1;
    min-height: 36px;
  }
  .location-form-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 6px;
    padding-top: 6px;
  }
  .location-utility-actions .button {
    font-size: 12px;
    padding: 8px 6px;
  }
  .location-utility-result [data-utility-result] {
    font-size: 16px;
  }
}
body.field-contrast .location-utility-actions {
  background: #fff;
  border-color: #000;
}

.location-utility-workspace [data-lsd-fields] > .helper:not([data-paste-message]),
.location-utility-workspace [data-lsd-fields] > a {
  display: none;
}
.location-utility-workspace [data-paste-message]:empty {
  display: none;
}

.location-saved-link {
  text-align: right;
  margin-top: -44px;
  margin-bottom: 8px;
  pointer-events: none;
}
.location-saved-link button {
  min-height: 44px;
  pointer-events: auto;
}
.location-how-to > summary {
  max-width: 50%;
}

.location-help-links {
  position: relative;
}
.location-help-links > [data-utility-saved] {
  position: absolute;
  top: 0;
  right: 0;
  min-height: 44px;
}

/* Focus one lookup method at a time, with a persistent result action. */
.lsd-map-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 18px 0 12px;
}
.lsd-map-methods button {
  min-height: 48px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid #a6b9a7;
  border-radius: 5px;
  background: #fff;
  color: #245c48;
}
.lsd-map-methods button[aria-selected='true'] {
  background: #173d35;
  color: #fff;
  border-color: #173d35;
}
.lsd-map-methods button:disabled {
  opacity: 0.6;
}
.lsd-map-tools {
  display: block;
}
.lsd-map-tools > [hidden] {
  display: none !important;
}
.lsd-map-tools h3 {
  font-size: 15px;
  margin: 12px 0;
}
.lsd-map-tools [data-map-input='point'] > .fields {
  max-width: 720px;
}
.lsd-map-tools [data-map-input='legal'] > .field {
  max-width: 720px;
}
.lsd-map-tools section > p.helper {
  font-size: 12px;
}
.lsd-map-dialog > [data-map-results] {
  scroll-margin-top: 130px;
}
.lsd-map-actionbar {
  position: sticky;
  bottom: -24px;
  z-index: 3;
  background: #fff;
  border-top: 1px solid #9fb69f;
  box-shadow: 0 -4px 12px #173d3515;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 16px -24px -24px;
  padding: 14px 24px;
}
.lsd-map-actionbar[hidden] {
  display: none !important;
}
.lsd-map-actionbar > div {
  min-width: 0;
}
.lsd-map-actionbar strong {
  display: block;
  font-size: 15px;
  overflow-wrap: anywhere;
  color: #173d35;
}
.lsd-map-actionbar span {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  margin-top: 5px;
  max-width: 620px;
}
.lsd-map-actionbar .button {
  flex-shrink: 0;
  min-height: 48px;
  max-width: 280px;
}
.lsd-map-dialog [data-map-selection] {
  font-size: 13px;
  line-height: 1.7;
}
.lsd-map-heading {
  z-index: 4;
}
@media (max-width: 699px) {
  .lsd-map-methods button {
    font-size: 13px;
    padding: 8px;
  }
  .lsd-map-actionbar {
    bottom: -16px;
    margin-inline: -16px;
    margin-bottom: -16px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    display: block;
  }
  .lsd-map-actionbar .button {
    width: 100%;
    max-width: none;
    margin-top: 10px;
  }
  .lsd-map-actionbar span {
    font-size: 11px;
  }
  .lsd-map-dialog > [data-map-results] {
    scroll-margin-top: 150px;
  }
  .lsd-map-tools .fields.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
body.field-contrast .lsd-map-actionbar {
  background: #fff;
  border-color: #000;
}
body.field-contrast .lsd-map-methods button {
  border-color: #000;
}

/* Keep the active reference above the editor, and make captured points reusable. */
.location-utility-actions {
  top: 0;
  bottom: auto;
  margin: 0 0 16px;
  box-shadow: 0 4px 14px #173d3514;
}
.location-utility-actions .location-primary-actions,
.location-utility-actions .location-form-actions {
  display: inline-flex;
  vertical-align: top;
  flex-wrap: wrap;
}
.location-utility-actions .location-form-actions {
  border: 0;
  padding-top: 0;
  margin-left: 10px;
}
.location-history-access {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  font-size: 12px;
  color: #4c6556;
}
.location-history-access button {
  min-height: 44px;
}
.lsd-point-card {
  border: 1px solid #b3c8b6;
  border-radius: 6px;
  background: #edf4ed;
  padding: 14px;
  margin: 12px 0;
}
.lsd-point-card[hidden] {
  display: none;
}
.lsd-point-card p {
  margin: 8px 0;
  font-size: 13px;
  line-height: 1.6;
}
.lsd-point-card [data-point-value] {
  font-size: 16px;
  font-weight: 600;
  user-select: text;
}
.lsd-point-card .export-actions {
  flex-wrap: wrap;
  gap: 8px;
}
.lsd-point-card .button {
  min-height: 44px;
}
.location-history-list article {
  border-block-start: 1px solid #d4dfd3;
  padding: 16px 0;
}
.location-history-list p {
  font-size: 15px;
  font-weight: 550;
  margin: 10px 0;
}
.location-history-list time {
  font-size: 12px;
  color: #4d6252;
}
.location-history-list .export-actions {
  flex-wrap: wrap;
  gap: 8px;
}
.location-history-list button {
  min-height: 44px;
}
.location-history-dialog {
  max-height: 90dvh;
  overflow: auto;
}
.location-history-dialog > .row-heading {
  position: sticky;
  top: -24px;
  background: #fff;
  z-index: 2;
  padding-block: 8px;
}
.location-history-dialog .row-heading h2 {
  font-size: 22px;
}
.location-utility-result > details:not([open]) {
  margin-block: 0;
}
@media (max-width: 850px) {
  .location-utility-actions {
    top: 0;
  }
  .location-utility-actions .location-primary-actions,
  .location-utility-actions .location-form-actions {
    display: flex;
    margin-left: 0;
  }
  .location-utility-actions .location-form-actions {
    border-top: 1px solid var(--line);
    padding-top: 6px;
  }
}
@media (max-width: 600px) {
  .location-utility-actions .location-primary-actions,
  .location-utility-actions .location-form-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .location-history-access > span {
    font-size: 11px;
  }
  .lsd-point-card .export-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .lsd-point-card [data-point-lookup] {
    grid-column: 1/-1;
  }
}

.lsd-map-interactions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.lsd-map-interactions .button {
  flex-shrink: 0;
}
.lsd-map-interactions .helper {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
}
.lsd-map-interactions [aria-pressed='true'] {
  background: #173d35;
  color: #fff;
}
.lsd-map-canvas.is-placing-pin,
.lsd-map-canvas.is-placing-pin .leaflet-interactive {
  cursor: crosshair;
}
.lsd-map-canvas [data-map-boundary] {
  cursor: pointer;
}
@media (max-width: 699px) {
  .lsd-map-interactions {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }
}
.lsd-map-dialog .lsd-map-interactions .button[aria-pressed='true'],
.lsd-map-dialog .lsd-map-interactions .button[aria-pressed='true']:hover {
  background: #173d35;
  color: #fff;
  border-color: #173d35;
}

/* One persistent location workflow header and a focused paste/split editor. */
.location-tool-header {
  position: sticky;
  top: 0;
  z-index: 9;
  max-width: 1100px;
  border: 1px solid #a7c0aa;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 4px 14px #173d3514;
  padding: 12px 16px;
  margin-bottom: 18px;
}
.location-tool-primary > .button {
  min-height: 48px;
  white-space: normal;
}
.location-tool-empty {
  font-size: 12px;
  color: #496252;
  margin: 8px 0 0;
  line-height: 1.6;
}
.location-tool-empty[hidden] {
  display: none;
}
.location-tool-header .location-utility-actions {
  position: static;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin: 10px 0 0;
  padding: 10px 0 0;
  border-top: 1px solid #d4dfd3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  max-width: none;
}
.location-tool-header .location-utility-actions[hidden] {
  display: none;
}
.location-tool-header .location-utility-actions > div:first-child {
  display: block;
}
.location-tool-header .location-utility-actions > div:first-child > span {
  display: none;
}
.location-tool-header .location-primary-actions,
.location-tool-header .location-form-actions {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  border: 0;
  padding: 0;
  margin: 0;
}
.location-tool-header .location-utility-actions .button {
  font-size: 12px;
  padding: 8px 10px;
}
.location-lookup-controls {
  display: block;
}
.location-lookup-controls > .field {
  max-width: 480px;
}
.lsd-entry-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 24px;
  margin: 18px 0;
}
.lsd-entry-layout .lsd-paste-inline {
  margin: 0;
}
.lsd-entry-layout .lsd-paste-column {
  min-width: 0;
}
.lsd-entry-layout .lsd-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.lsd-entry-layout .lsd-grid .field {
  grid-column: auto;
}
.lsd-entry-layout .lsd-grid .field:last-child {
  grid-column: 1/-1;
}
.lsd-entry-layout .lsd-grid input,
.lsd-entry-layout .lsd-grid select {
  min-height: 48px;
}
.lsd-entry-layout [data-paste-message] {
  font-size: 12px;
  line-height: 1.6;
}
.location-utility-workspace .lsd-location [data-lsd-fields] > .lsd-entry-layout + p {
  margin-top: 8px;
}
.location-utility-workspace .lsd-location [data-lsd-fields] > p:first-child {
  margin-bottom: 0;
}
@media (max-width: 1050px) {
  .location-tool-header .location-utility-actions {
    flex-wrap: wrap;
  }
  .location-tool-header .location-utility-actions > div:first-child {
    flex-basis: 100%;
  }
  .lsd-entry-layout {
    grid-template-columns: minmax(180px, 0.8fr) minmax(0, 1.2fr);
    gap: 18px;
  }
}
@media (max-width: 600px) {
  .location-tool-header {
    padding: 10px 12px;
  }
  .location-tool-primary > .button {
    width: 100%;
    font-size: 12px;
    padding: 10px;
  }
  .location-tool-header .location-utility-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .location-tool-header .location-primary-actions,
  .location-tool-header .location-form-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .location-tool-header .location-utility-actions .button {
    min-width: 0;
    font-size: 12px;
    padding: 8px 6px;
  }
  .lsd-entry-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .lsd-entry-layout .lsd-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .lsd-entry-layout .lsd-grid .field:nth-last-child(-n + 2) {
    grid-column: auto;
  }
  .lsd-entry-layout .lsd-grid .field:last-child {
    grid-column: 1/-1;
  }
}
body.field-contrast .location-tool-header {
  background: #fff;
  border-color: #000;
}
.location-utility-workspace .lsd-entry-layout .lsd-grid .field {
  grid-column: auto;
}
.location-utility-workspace .lsd-entry-layout .lsd-grid .field:last-child {
  grid-column: 1/-1;
}

/* Briefing workflow: compact progress, visible setup choices, remembered topic cards. */
.brief-progress-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #a8bda6;
  background: #fff;
  box-shadow: 0 3px 12px #173d3514;
  border-radius: 6px;
  padding: 12px 16px;
  margin: 0 0 18px;
}
.brief-progress-header > div {
  min-width: 0;
}
.brief-progress-header strong {
  display: block;
  font-size: 15px;
  color: #173d35;
}
.brief-progress-header span {
  display: block;
  font-size: 12px;
  line-height: 1.6;
  color: #48614d;
  margin-top: 4px;
}
.brief-progress-header .button {
  min-height: 44px;
  white-space: normal;
  flex-shrink: 0;
}
.brief-intro-toggle {
  min-height: 44px;
  align-self: center;
  white-space: nowrap;
}
.page-heading.brief-intro-small {
  padding: 0;
  margin-block: 16px;
}
.brief-intro-small .eyebrow,
.brief-intro-small > div > p {
  display: none;
}
.brief-intro-small h1 {
  font-size: 24px;
  margin: 0;
}
.brief-start-options {
  border-top: 1px solid #d2ddcd;
  padding-top: 18px;
  margin-top: 14px;
}
.brief-start-options > h2 {
  font-size: 18px;
  margin-bottom: 10px;
}
.brief-start-options > p {
  font-size: 12px;
  line-height: 1.7;
}
.brief-start-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}
.brief-start-grid .brief-overlays {
  margin: 0;
}
.brief-overlays {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
}
.brief-overlays legend {
  grid-column: 1/-1;
}
.brief-topic-accordion {
  border: 1px solid #bdcdbb;
  border-radius: 7px;
  background: #fff;
  margin: 12px 0;
}
.brief-topic-accordion[hidden] {
  display: none !important;
}
.brief-topic-accordion > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 16px;
  gap: 10px;
  align-items: center;
  min-height: 62px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.brief-topic-accordion > summary::-webkit-details-marker {
  display: none;
}
.brief-topic-accordion > summary::after {
  content: '+';
  grid-column: 3;
}
.brief-topic-accordion[open] > summary::after {
  content: '−';
}
.brief-topic-accordion > summary small {
  font-size: 11px;
  font-weight: 500;
  color: #42604a;
  background: #edf3e8;
  padding: 5px 8px;
  border-radius: 4px;
}
.brief-topic-accordion > summary small.brief-hold {
  color: #812e1c;
  background: #fae7de;
}
.brief-topic-accordion > .brief-topic-card {
  border-top: 1px solid #d2ddcd;
  padding: 14px 16px;
  margin: 0;
}
.brief-topic-accordion .brief-topic-heading h3 {
  display: none;
}
.brief-topic-accordion .brief-topic-heading {
  justify-content: flex-end;
}
.brief-topic-accordion .brief-topic-body {
  border: 0;
}
.brief-topic-accordion .brief-topic-body > summary {
  display: none;
}
.brief-site-context {
  border: 1px solid #bfcfba;
  border-radius: 6px;
  background: #f4f7ee;
  padding: 16px;
  margin: 16px 0;
}
.brief-site-context h3 {
  font-size: 16px;
  margin: 12px 0;
}
.brief-site-context .helper {
  font-size: 12px;
  line-height: 1.7;
}
.brief-baseline-register {
  background: #f2f6ee;
  border: 1px solid #c2d1bc;
  border-radius: 6px;
  margin: 16px 0;
  padding: 16px;
}
.brief-baseline-register h3 {
  font-size: 17px;
}
.brief-baseline-register > div {
  border-top: 1px solid #d1ddca;
  padding-top: 10px;
}
.brief-baseline-register p {
  font-size: 12px;
  line-height: 1.7;
}
.site-profile-editor {
  border: 1px solid #c1d0ba;
  padding: 16px;
  border-radius: 7px;
  margin: 18px 0;
}
.site-profile-editor > summary {
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.7;
}
.site-profile-editor p {
  font-size: 12px;
  line-height: 1.7;
}
.site-baseline-edit {
  border-top: 1px solid #d0ddc9;
  padding-top: 16px;
  margin: 18px 0;
}
.site-baseline-edit .text-button {
  min-height: 44px;
}
.site-profile-editor .ack {
  min-height: 44px;
}
.brief-topic-accordion,
#brief-job,
#brief-changes,
#brief-emergency,
#brief-topics,
#brief-export,
#brief-photos {
  scroll-margin-top: 130px;
}
@media (max-width: 850px) {
  body:has(.brief-progress-header) > .sidebar {
    position: sticky;
    top: 0;
    z-index: 12;
  }
  .brief-progress-header {
    top: 64px;
    padding: 10px 12px;
  }
  .brief-progress-header .button {
    font-size: 12px;
    padding: 10px;
  }
  .brief-start-grid {
    gap: 18px;
  }
  .brief-overlays {
    grid-template-columns: 1fr;
  }
  .brief-topic-accordion > summary {
    grid-template-columns: minmax(0, 1fr) 16px;
    gap: 6px;
  }
  .brief-topic-accordion > summary small {
    grid-column: 1;
    justify-self: start;
  }
  .brief-topic-accordion > summary::after {
    grid-column: 2;
    grid-row: 1/3;
  }
  .brief-topic-accordion,
  #brief-job,
  #brief-changes,
  #brief-emergency,
  #brief-topics,
  #brief-export,
  #brief-photos {
    scroll-margin-top: 190px;
  }
}
@media (max-width: 600px) {
  .brief-progress-header {
    align-items: start;
    gap: 8px;
  }
  .brief-progress-header strong {
    font-size: 13px;
  }
  .brief-progress-header span {
    font-size: 11px;
  }
  .brief-progress-header .button {
    max-width: 140px;
    font-size: 12px;
  }
  .brief-start-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .brief-overlays {
    grid-template-columns: 1fr 1fr;
  }
  .page-heading:has(.brief-intro-toggle) {
    flex-wrap: wrap;
  }
  .brief-intro-toggle {
    font-size: 12px;
  }
  .brief-topic-accordion > summary {
    padding: 12px;
    font-size: 14px;
  }
  .brief-site-context,
  .brief-baseline-register {
    padding: 12px;
  }
}
body.field-contrast .brief-progress-header,
body.field-contrast .brief-topic-accordion,
body.field-contrast .brief-site-context,
body.field-contrast .brief-baseline-register {
  background: #fff;
  border-color: #000;
}

.point-resources-dialog {
  width: min(900px, calc(100vw - 24px));
  max-width: 900px;
  max-height: 92dvh;
  overflow: auto;
}
.point-resources-dialog > .row-heading {
  position: sticky;
  top: -24px;
  z-index: 2;
  background: #fff;
  padding-block: 10px;
}
.point-resources-dialog h2 {
  font-size: 24px;
  margin: 0;
}
.point-resources-dialog h3 {
  font-size: 17px;
  margin: 18px 0 12px;
}
.point-resources-dialog p {
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.point-resources-dialog .point-tools-reference {
  font-size: 20px;
  font-weight: 650;
  color: #173d35;
  margin-bottom: 8px;
}
.point-resources-dialog > section {
  border-top: 1px solid #d1dfcf;
  margin-top: 18px;
  padding-top: 6px;
}
.point-resources-dialog .helper {
  font-size: 12px;
}
.point-resource-links,
.point-transfer-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.point-resource-links a,
.point-transfer-actions button {
  min-height: 48px;
  white-space: normal;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}
.point-transfer-actions[hidden] {
  display: none;
}
.point-resources-dialog details {
  margin-top: 16px;
}
.point-resources-dialog details > summary {
  cursor: pointer;
  min-height: 44px;
  font-size: 13px;
  padding-block: 12px;
}
.point-resources-dialog textarea {
  width: 100%;
  font-size: 15px;
  min-height: 180px;
}
.lsd-point-card [data-point-tools] {
  white-space: normal;
}
.lsd-point-card .button {
  white-space: normal;
}
@media (max-width: 600px) {
  .point-resources-dialog {
    padding: 16px;
  }
  .point-resources-dialog > .row-heading {
    top: -16px;
  }
  .point-resources-dialog h2 {
    font-size: 20px;
  }
  .point-resource-links,
  .point-transfer-actions {
    gap: 8px;
  }
  .point-resource-links a,
  .point-transfer-actions button {
    font-size: 12px;
    padding: 10px 8px;
  }
  .lsd-point-card [data-point-tools] {
    grid-column: 1/-1;
  }
  .point-resources-dialog .row-heading {
    flex-direction: row;
    align-items: center;
  }
}

/* Saved-location dashboard and dedicated editor sheet. */
.location-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 18px;
  margin-top: 18px;
}
.location-dashboard-card {
  border: 1px solid #bdccbc;
  border-radius: 8px;
  background: #fff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.location-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.location-card-tags > span {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  background: #e9f1e7;
  color: #294e37;
  padding: 5px 8px;
  border-radius: 4px;
  max-width: 100%;
}
.location-dashboard-card h2 {
  font-size: 21px;
  margin: 15px 0 10px;
  overflow-wrap: anywhere;
}
.location-card-reference {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  color: #234f3a;
  overflow-wrap: anywhere;
}
.location-dashboard-card > p {
  font-size: 12px;
  line-height: 1.7;
  color: #4f6656;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 10px 0 18px;
}
.location-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}
.location-card-actions .button,
.location-card-actions .text-button {
  min-height: 44px;
  font-size: 12px;
  white-space: normal;
}
.location-draft-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #d8ca9f;
  background: #fff9e9;
  padding: 12px;
  margin-top: 16px;
  font-size: 13px;
  border-radius: 5px;
}
.location-draft-banner .button {
  min-height: 44px;
  white-space: normal;
}
.location-editor-sheet {
  width: min(1180px, calc(100vw - 40px));
  max-width: 1180px;
  height: min(940px, 94dvh);
  max-height: 94dvh;
  padding: 0;
  overflow: hidden;
  border: 1px solid #b9cbb7;
  border-radius: 10px;
  background: #f8f9f4;
  color: #243b2c;
}
.location-editor-sheet[open] {
  display: flex;
  flex-direction: column;
}
.location-editor-sheet::backdrop {
  background: #112a24b8;
}
.location-editor-sheet [hidden] {
  display: none !important;
}
.location-editor-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 16px 24px;
  border-bottom: 1px solid #c6d4c0;
  background: #fff;
  flex-shrink: 0;
}
.location-editor-heading h2 {
  font-size: 23px;
  line-height: 1.3;
  margin: 5px 0 0;
  overflow-wrap: anywhere;
}
.location-editor-heading .eyebrow {
  font-size: 10px;
}
.location-editor-heading .button {
  min-height: 44px;
  white-space: normal;
}
.location-editor-heading .location-editor-save-top {
  display: none;
}
.location-editor-draft {
  font-size: 12px;
  line-height: 1.6;
  color: #51684f;
  margin: 10px 24px;
}
.location-editor-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0 24px 12px;
  flex-shrink: 0;
}
.location-editor-tabs button {
  min-height: 48px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid #b4c7af;
  border-radius: 5px;
  background: #fff;
  color: #24543d;
  padding: 10px;
}
.location-editor-tabs button[aria-selected='true'] {
  background: #173d35;
  color: #fff;
  border-color: #173d35;
}
.location-editor-content {
  overflow: auto;
  overscroll-behavior: contain;
  min-height: 0;
  flex: 1;
  padding: 20px 24px 30px;
  background: #fff;
}
.location-editor-content > section {
  max-width: 1000px;
  margin: 0 auto;
}
.location-editor-content h3 {
  font-size: 21px;
  margin: 0 0 18px;
}
.location-editor-content p {
  font-size: 13px;
  line-height: 1.8;
}
.location-editor-content .field {
  font-size: 13px;
}
.location-editor-content input,
.location-editor-content textarea,
.location-editor-content select {
  font-size: 16px;
  min-height: 48px;
  max-width: 100%;
}
.location-editor-content .fields.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.location-editor-content .site-profile-editor {
  border: 0;
  padding: 0;
  margin: 12px 0;
}
.location-editor-content .site-profile-editor > summary {
  display: none;
}
.location-editor-content .site-profile-editor > p:first-of-type {
  margin-top: 0;
}
.location-editor-content .site-baseline-edit {
  padding: 18px;
  border: 1px solid #c4d3bc;
  border-radius: 6px;
  background: #f6f8f1;
}
.location-editor-content .lsd-location {
  margin-bottom: 0;
}
.location-editor-content .pill {
  display: inline-block;
  margin-bottom: 12px;
}
.location-editor-footer {
  flex-shrink: 0;
  background: #f1f5ec;
  border-top: 1px solid #baccb3;
  padding: 12px 24px calc(12px + env(safe-area-inset-bottom));
}
.location-editor-footer > div {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.location-editor-footer .button,
.location-editor-footer .text-button {
  min-height: 44px;
  white-space: normal;
}
.location-editor-footer .danger {
  margin-right: auto;
  color: #8b3526;
}
.location-editor-footer [data-editor-status] {
  font-size: 13px;
  font-weight: 600;
  color: #8b3526;
  line-height: 1.6;
  margin: 0 0 10px;
}
.location-editor-footer [data-editor-status]:empty {
  display: none;
}
.location-import-review {
  max-height: 90dvh;
  overflow: auto;
}
.location-import-summary {
  border: 1px solid #c5d4bd;
  background: #f1f6ed;
  border-radius: 6px;
  padding: 16px;
  margin: 18px 0;
}
.location-import-summary h3 {
  font-size: 17px;
  margin: 0 0 12px;
}
.location-import-summary p {
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
@media (max-width: 850px) {
  .location-editor-sheet {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
  }
  .location-editor-heading {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px 16px;
  }
  .location-editor-heading > div {
    grid-column: 1/-1;
    grid-row: 2;
  }
  .location-editor-heading h2 {
    font-size: 20px;
    margin: 0;
  }
  .location-editor-heading .eyebrow {
    display: none;
  }
  .location-editor-heading > [data-editor-back] {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    font-size: 12px;
    padding: 8px 10px;
  }
  .location-editor-heading .location-editor-save-top {
    display: inline-flex;
    grid-column: 2;
    grid-row: 1;
    font-size: 12px;
    padding: 8px 10px;
  }
  .location-editor-draft {
    margin: 8px 16px;
    font-size: 11px;
  }
  .location-editor-tabs {
    padding: 0 16px 10px;
    gap: 6px;
  }
  .location-editor-tabs button {
    font-size: 12px;
    padding: 8px 6px;
    min-height: 52px;
  }
  .location-editor-content {
    padding: 18px 16px 24px;
  }
  .location-editor-footer {
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  }
  .location-editor-footer .location-editor-save-bottom {
    display: none;
  }
}
@media (max-width: 600px) {
  .location-editor-content .fields.two {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .location-editor-content .site-baseline-edit {
    padding: 12px;
  }
  .location-editor-content h3 {
    font-size: 19px;
  }
  .location-dashboard-card {
    padding: 16px;
  }
  .location-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .location-card-actions > [data-location-use] {
    grid-column: 1/-1;
  }
  .location-card-actions > .text-button {
    text-align: center;
  }
  .location-draft-banner {
    align-items: start;
    flex-direction: column;
  }
  .location-editor-heading h2 {
    font-size: 18px;
  }
  .location-editor-footer > div {
    gap: 8px;
  }
  .location-editor-footer .button,
  .location-editor-footer .text-button {
    font-size: 12px;
  }
  .location-editor-tabs button {
    font-size: 11px;
  }
}
body.field-contrast .location-editor-sheet,
body.field-contrast .location-editor-content,
body.field-contrast .location-dashboard-card {
  background: #fff;
  border-color: #000;
}
html:has(.location-editor-sheet[open]),
body:has(.location-editor-sheet[open]) {
  overflow: hidden;
}
.location-filter-toolbar {
  position: sticky;
  top: 0;
  z-index: 9;
  background: #fff;
  padding: 14px 0 10px;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 5px 8px #173d350a;
}
.location-filter-toolbar .field {
  margin: 0 0 10px;
  font-size: 13px;
}
.location-filter-toolbar input {
  font-size: 16px;
  min-height: 44px;
}
.location-type-filters {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 3px 3px 6px;
}
.location-type-filters .button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 24px;
  font-size: 12px;
}
.location-type-filters [aria-pressed='true'] {
  background: #173d35;
  color: #fff;
  border-color: #173d35;
}
.location-filter-toolbar [role='status'] {
  font-size: 12px;
  margin: 5px 0 0;
  color: #4f6656;
}
.location-dashboard-card[hidden] {
  display: none;
}
.location-card-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: start;
}
.location-card-actions > [data-location-use] {
  flex: 1;
  min-width: 0;
}
.location-action-menu {
  position: relative;
  flex: 0 0 44px;
}
.location-action-menu > summary {
  display: grid;
  place-items: center;
  list-style: none;
  width: 44px;
  min-height: 44px;
  border: 1px solid #bdccbc;
  border-radius: 5px;
  font-size: 24px;
  cursor: pointer;
  background: #fff;
}
.location-action-menu > summary::-webkit-details-marker {
  display: none;
}
.location-action-menu[open] {
  z-index: 10;
}
.location-action-options {
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  width: 210px;
  max-width: 70vw;
  padding: 6px;
  border: 1px solid #bdccbc;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 8px 24px #173d3526;
  display: grid;
  gap: 3px;
}
.location-action-options .button,
.location-action-options .text-button {
  justify-content: flex-start;
  text-align: left;
  width: 100%;
  padding: 10px 12px;
}
.location-weather details > summary {
  min-height: 44px;
  padding-block: 10px;
  cursor: pointer;
}
.location-weather [data-weather-value] > details {
  border: 1px solid #d7e1d4;
  border-radius: 5px;
  padding: 0 10px;
  margin-block: 8px;
}
.location-weather [data-weather-value] > details[open] {
  background: #f6f8f3;
}
.location-weather details .preserve {
  overflow-wrap: anywhere;
  font-size: 12px;
}
.location-editor-tabs {
  position: relative;
  z-index: 2;
  background: #f8f9f4;
  border-bottom: 1px solid #c6d4c0;
  box-shadow: 0 4px 10px #173d350a;
}
.location-editor-footer {
  position: relative;
  z-index: 2;
  background: #f1f5ec;
  box-shadow: 0 -5px 16px #173d351a;
}
.location-editor-content .lsd-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.location-editor-content .lsd-grid .field {
  margin: 0;
  padding: 12px;
  border: 1px solid #c6d4c0;
  border-radius: 5px;
  background: #f6f8f3;
}
.location-editor-content .lsd-grid .field:last-child {
  grid-column: 1/-1;
}
.location-editor-footer .location-editor-save-bottom {
  display: inline-flex;
}
@media (max-width: 600px) {
  .location-editor-footer > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .location-editor-footer .danger {
    grid-column: 1/-1;
    justify-self: start;
    margin: 0;
  }
  .location-editor-footer .button {
    width: 100%;
  }
  .location-editor-content .lsd-grid .field {
    padding: 8px;
  }
  .location-filter-toolbar {
    padding-top: 10px;
  }
  .location-card-actions > [data-location-use] {
    grid-column: auto;
  }
}
.location-editor-footer {
  display: block;
}
.location-editor-footer .button,
.location-editor-footer .text-button {
  font-size: 12px;
}
.location-editor-content .site-profile-editor > p:first-of-type {
  display: none;
}
/* Archived saved locations. */
.location-archive > details > summary {
  font-weight: 700;
}
.location-archive-list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.location-archive-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #e2e5dc;
}
.location-archive-list li[hidden] {
  display: none;
}
.location-archive-list li > div:first-child {
  display: grid;
  min-width: 0;
  overflow-wrap: anywhere;
}
.location-archive-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
}
.location-archive-actions .button {
  min-height: 44px;
}
