:root {
  --bg: #101211;
  --rail: #080b09;
  --surface: #191d1a;
  --raised: #232824;
  --ink: #f3f5f0;
  --muted: #b3bcb4;
  --subtle: #8e9a91;
  --line: #354038;
  --lime: #d2de26;
  --danger: #ffa89c;
  --rail-w: 232px;
  --head-h: 96px;
  --tool-h: 70px;
  --font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color-scheme: dark;
}
.publishing {
  max-width: 1320px;
}
.project-switch {
  display: block;
  margin-top: 14px;
  color: var(--ink);
  text-underline-offset: 4px;
}
.project-setup {
  max-width: 940px;
}
.project-setup > .muted {
  margin-top: 10px;
}
.project-setup form {
  margin-top: 28px;
}
.project-details-grid {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(200px, 2fr);
  gap: 20px;
}
.project-setup .field {
  margin-bottom: 24px;
  min-width: 0;
}
.project-setup .field label {
  display: block;
  margin-bottom: 7px;
}
.project-setup .field input {
  width: 100%;
  min-width: 0;
}
.project-setup .field .meta {
  margin-top: 8px;
}
.project-source {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  margin-top: 8px;
}
.project-source > p {
  margin-top: 10px;
  margin-bottom: 20px;
}
.project-create-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin-top: 28px;
}
.project-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}
.project-row > div {
  min-width: 0;
}
.project-row h3 {
  margin: 6px 0;
  overflow-wrap: anywhere;
}
.project-row > a {
  flex-shrink: 0;
}
@media (max-width: 760px) {
  .project-details-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .project-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
.publishing .publish-tabs a {
  margin: 0;
  border-radius: 0;
  padding: 14px 0;
  background: transparent;
  color: var(--muted);
}
.publishing .publish-tabs a[aria-current='page'] {
  background: transparent;
  color: var(--ink);
  border-bottom-color: var(--lime);
}
.publishing .publish-tabs a:hover {
  color: var(--ink);
}
.publishing .check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.publishing .check-label input {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--lime);
}
.publishing .review-confirm {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.publish-converter {
  margin-bottom: 24px;
}
.publish-converter p {
  margin-top: 8px;
}
.publish-tabs {
  display: flex;
  flex-direction: row;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
  overflow-x: auto;
}
.publish-tabs a {
  flex: 0 0 auto;
  padding: 14px 0;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
}
.publish-tabs a[aria-current] {
  color: var(--ink);
  border-color: var(--lime);
}
.publish-intro {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.publish-intro p {
  margin-top: 8px;
}
.publish-intro h2 {
  margin-top: 8px;
}
.publish-filters {
  display: grid;
  grid-template-columns: minmax(200px, 2fr) minmax(180px, 2fr) minmax(140px, 1fr);
  gap: 16px;
}
.publish-filters .field,
.review-fields .field {
  min-width: 0;
}
.publish-filters select,
.publish-filters input,
.review-fields input,
.review-fields select {
  width: 100%;
  min-width: 0;
}
.publish-selection {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.publish-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.source-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.source-row:hover {
  background: var(--surface);
}
.source-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--lime);
}
.source-row h3,
.review-heading h3,
.published-row h3 {
  overflow-wrap: anywhere;
}
.source-title .meta {
  margin-top: 6px;
}
.source-path {
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
  margin-top: 6px;
}
.publish-batch,
.published-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.publish-batch > div:first-child,
.published-row > div:first-child {
  min-width: 0;
}
.publish-batch p,
.published-row p {
  margin-top: 8px;
  overflow-wrap: anywhere;
}
.publish-batch progress {
  display: block;
  width: 100%;
  height: 8px;
  margin-top: 16px;
  accent-color: var(--lime);
}
.review-file {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}
.review-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
  margin-bottom: 20px;
}
.review-heading > div {
  min-width: 0;
}
.review-heading > a {
  flex-shrink: 0;
}
.review-fields {
  display: grid;
  grid-template-columns: minmax(160px, 2fr) minmax(140px, 1fr) minmax(140px, 1fr);
  gap: 16px;
}
.review-file .check-label {
  margin: 12px 0;
}
.review-confirm {
  color: var(--ink);
}
.publish-summary {
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.publish-summary p {
  margin-top: 12px;
}
.publish-summary .publish-actions {
  margin-top: 24px;
}
.publish-history {
  margin-top: 36px;
}
.publish-history summary {
  cursor: pointer;
  padding: 16px 0;
}
.review-photo {
  display: block;
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
  margin-bottom: 24px;
}
.publishing ::selection {
  background: var(--lime);
  color: var(--bg);
}
.publishing input {
  caret-color: var(--lime);
}
.publishing .meta {
  font-variant-numeric: tabular-nums;
}
@media (max-width: 900px) {
  .publish-filters,
  .review-fields {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .source-row {
    grid-template-columns: 22px minmax(0, 1fr);
  }
  .source-row > .status {
    grid-column: 2;
    justify-self: start;
  }
  .publish-batch,
  .published-row,
  .review-heading {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .review-heading > a {
    align-self: start;
  }
  .publish-tabs {
    gap: 20px;
    margin-bottom: 24px;
  }
  .publish-summary {
    padding: 20px;
  }
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
  font: 15px/1.5 var(--font);
  background: var(--bg);
  color: var(--ink);
}
body {
  overflow: hidden;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  text-wrap: balance;
  font-weight: 500;
  line-height: 1.25;
}
h1 {
  font-size: 24px;
  letter-spacing: -0.025em;
}
h2 {
  font-size: 22px;
  letter-spacing: -0.02em;
}
h3 {
  font-size: 17px;
}
p {
  max-width: 70ch;
}
small,
.meta {
  font-size: 13px;
  color: var(--muted);
}
.muted {
  color: var(--muted);
}
.quiet {
  color: var(--subtle);
}
.skip {
  position: fixed;
  left: 20px;
  top: -80px;
  z-index: 70;
  background: var(--lime);
  color: #101211;
  padding: 12px;
}
.skip:focus {
  top: 12px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail-w);
  background: var(--rail);
  padding: 32px 24px 24px;
  display: flex;
  flex-direction: column;
  z-index: 30;
  border-right: 1px solid #202821;
}
.brand img {
  width: 94px;
  height: auto;
  display: block;
}
.project-label {
  margin: 34px 0 27px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
.project-label strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 400;
  margin-bottom: 4px;
}
.project-label .job-number {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--lime);
}
nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 12px;
  margin: 0 -12px;
  text-decoration: none;
  color: var(--muted);
  border-radius: 3px;
}
nav a:hover {
  background: #191f19;
  color: white;
}
nav a[aria-current='page'] {
  background: #e9eee7;
  color: #111810;
}
nav .count {
  font-size: 12px;
}
.nav-secondary {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.sidebar-foot {
  margin-top: auto;
  padding-top: 30px;
}
.contact-link {
  padding: 0;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.account {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 18px;
  color: var(--muted);
  font-size: 12px;
}
.account strong {
  font-weight: 400;
  color: var(--ink);
  display: block;
  margin-bottom: 4px;
}
.account button {
  font-size: 12px;
  text-decoration: underline;
  padding: 8px 0 0;
}
.workspace {
  margin-left: var(--rail-w);
  height: 100%;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.page-head {
  min-height: var(--head-h);
  background: var(--bg);
  padding: 22px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.head-leading {
  min-width: 0;
  display: flex;
  gap: 15px;
  align-items: center;
}
#page-heading {
  min-width: 0;
}
#page-heading h1 {
  overflow-wrap: anywhere;
}
#page-heading .meta {
  margin-top: 6px;
  display: block;
}
#head-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
#stage {
  flex: 1;
  min-height: 0;
  overflow: auto;
  position: relative;
  outline: none;
}
.mobile-menu {
  display: none;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 3px;
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
  background: var(--surface);
}
.button:hover {
  background: var(--raised);
}
.button.primary {
  background: var(--lime);
  color: #17200b;
  border-color: var(--lime);
  font-weight: 500;
}
.button.primary:hover {
  background: #e0eb4c;
}
.button.danger {
  color: var(--danger);
}
.button.small {
  min-height: 34px;
  padding: 5px 11px;
  font-size: 12px;
}
.text-button {
  padding: 4px 0;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: var(--muted);
}
.text-button:hover {
  color: var(--ink);
}
.back-link {
  font-size: 12px;
  display: inline-block;
  text-decoration: none;
  color: var(--muted);
  margin-bottom: 6px;
}
.back-link:hover {
  color: var(--lime);
}
.toolbar {
  flex-shrink: 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 14px 25px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-height: var(--tool-h);
  z-index: 10;
}
.toolbar-group {
  display: flex;
  gap: 6px;
  align-items: center;
}
.toolbar .spacer {
  flex: 1;
}
.toolbar .button {
  background: transparent;
}
.toolbar .primary {
  background: var(--lime);
}
.toolbar select,
.toolbar input {
  height: 36px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  padding: 5px 8px;
  border-radius: 3px;
  font-size: 13px;
}
.toolbar input[type='number'] {
  width: 56px;
  text-align: center;
}
.toolbar .page-total {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}
.toolbar label {
  font-size: 12px;
  color: var(--muted);
}
.toolbar .search-box {
  width: 150px;
}
.content {
  padding: 32px 36px 48px;
  max-width: 1400px;
  margin: auto;
}
.overview {
  padding: 48px 36px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.95fr);
  column-gap: 60px;
  row-gap: 44px;
  max-width: 1400px;
  margin: auto;
}
.intro .site-name {
  font-size: 36px;
  line-height: 1.17;
  letter-spacing: -0.025em;
  max-width: 17ch;
  margin: 12px 0 20px;
}
.intro .project-kind {
  color: var(--muted);
  font-size: 15px;
  max-width: 42ch;
}
.intro .overview-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.overview-aerial {
  margin: 0;
  align-self: start;
}
.overview-aerial img {
  display: block;
  width: 100%;
  aspect-ratio: 1.15;
  object-fit: cover;
}
.overview-aerial figcaption {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
  padding-top: 10px;
}
.overview-detail {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
}
.section-title h2 {
  font-size: 18px;
}
.overview-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}
.overview-row span {
  display: block;
}
.overview-row:hover .row-title {
  color: var(--lime);
}
.row-title {
  font-size: 15px;
}
.overview-row .meta {
  margin-top: 4px;
}
.overview-note {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}
.overview-note p {
  margin-top: 12px;
  color: var(--muted);
}
.status-line {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}
.status-dot {
  height: 7px;
  width: 7px;
  flex: 0 0 7px;
  border-radius: 100%;
  background: var(--lime);
}
.notice {
  background: #22291d;
  border: 1px solid #4a5734;
  padding: 14px 17px;
  border-radius: 3px;
  font-size: 13px;
  color: #e3e8ce;
  margin-bottom: 24px;
}
.notice p + p {
  margin-top: 8px;
}
.notice .text-button {
  color: inherit;
}
.notice.danger {
  background: #2c201e;
  border-color: #66433d;
  color: #ffd4cc;
}
.filters {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.search {
  flex: 1;
  min-width: 220px;
  max-width: 440px;
}
.search input {
  width: 100%;
}
input,
select,
textarea {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 10px 12px;
  min-width: 0;
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
}
input[type='checkbox'] {
  accent-color: var(--lime);
  width: 17px;
  height: 17px;
  cursor: pointer;
}
.filter-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  margin: 0 0 18px;
  overflow: auto;
  white-space: nowrap;
}
.filter-tabs a {
  font-size: 14px;
  text-decoration: none;
  padding: 8px 0 14px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}
.filter-tabs a.active {
  border-color: var(--lime);
  color: var(--ink);
}
.register-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.register-tools label {
  display: flex;
  align-items: center;
  gap: 12px;
}
.document-row {
  border-top: 1px solid var(--line);
  padding: 20px 0;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  column-gap: 14px;
  align-items: start;
}
.document-row .check {
  padding-top: 3px;
}
.document-title {
  font-size: 17px;
  line-height: 1.35;
  text-decoration: none;
  display: block;
  overflow-wrap: anywhere;
}
.document-title:hover {
  color: var(--lime);
}
.document-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 7px;
  font-size: 13px;
  color: var(--muted);
}
.document-actions {
  display: flex;
  gap: 9px;
  align-items: center;
}
.status {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.status.issued {
  color: var(--lime);
}
.status.pending {
  color: #ead58f;
}
.document-history {
  grid-column: 2/-1;
  margin-top: 11px;
  color: var(--muted);
  font-size: 13px;
}
.document-history summary {
  cursor: pointer;
  display: list-item;
  list-style-position: inside;
}
.revision {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 0 0;
}
.revision a {
  text-decoration: none;
}
.empty {
  padding: 60px 12px;
  max-width: 620px;
}
.empty h2 {
  margin-bottom: 13px;
}
.empty p {
  color: var(--muted);
  margin-bottom: 22px;
}
.loading {
  padding: 50px 36px;
  color: var(--muted);
}
.loading-line {
  display: block;
  height: 3px;
  width: 120px;
  background: var(--lime);
  margin-bottom: 22px;
  animation: breathe 1s ease-in-out infinite alternate;
}
@keyframes breathe {
  to {
    opacity: 0.3;
  }
}
.pdf-scroll {
  height: 100%;
  overflow: auto;
  background: #303631;
  padding: 24px;
  position: relative;
  overscroll-behavior: contain;
}
.pdf-sheet {
  position: relative;
  background: white;
  box-shadow: 0 2px 8px #0004;
  margin: 0 auto;
}
.pdf-sheet canvas {
  display: block;
}
.pdf-sheet .textLayer {
  z-index: 2;
  inset: 0;
  opacity: 1;
}
.pdf-sheet .textLayer span {
  color: transparent;
}
.pdf-sheet .textLayer ::selection {
  background: #a8ca6680;
}
.viewer-message {
  padding: 40px;
  max-width: 750px;
}
.viewer-message h2 {
  margin-bottom: 16px;
}
.viewer-message p {
  color: var(--muted);
  margin-bottom: 22px;
}
.viewer-note {
  position: absolute;
  bottom: 16px;
  left: 20px;
  right: 20px;
  pointer-events: none;
}
.viewer-note span {
  display: inline-block;
  max-width: 650px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  padding: 9px 12px;
  border: 1px solid var(--line);
}
.cad-host {
  position: relative;
  height: 100%;
  width: 100%;
}
.cad-host canvas {
  display: block;
}
.cad-gis-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.cad-gis-overlay[hidden] {
  display: none;
}
.gis-feature path {
  vector-effect: non-scaling-stroke;
  stroke-width: 2.5px;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.gis-feature .gis-point {
  stroke-width: 8px;
}
.gis-feature.selected {
  stroke: white;
}
.gis-feature.selected path {
  stroke-width: 4px;
}
.gis-feature.selected .gis-point {
  stroke-width: 11px;
}
.cad-gis-legend {
  position: absolute;
  top: 12px;
  left: 12px;
  max-width: min(320px, calc(100% - 24px));
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 12px;
  pointer-events: none;
}
.cad-gis-legend span {
  display: inline-block;
  margin: 4px 12px 0 0;
}
.cad-gis-legend strong,
.cad-gis-legend small {
  display: block;
}
.cad-gis-legend .swatch,
#gis-layer-list .swatch {
  display: inline-block;
  margin-right: 7px;
}
#cad-gis[data-active='true'] {
  border-color: var(--lime);
  color: var(--lime);
}
#gis-opacity {
  accent-color: var(--lime);
  padding: 0;
}
.gis-item {
  display: block;
  width: 100%;
  padding: 12px 0;
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
}
.gis-item:hover {
  color: var(--lime);
}
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(440px, 100%);
  max-width: 100%;
  max-height: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  border-left: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 28px;
  z-index: 50;
}
.drawer::backdrop,
.confirm::backdrop {
  background: #0008;
}
.drawer-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.drawer-heading button {
  color: var(--muted);
  font-size: 13px;
  padding: 8px;
}
.drawer-body {
  overflow: auto;
}
.drawer h3 {
  margin: 28px 0 14px;
}
.drawer p {
  color: var(--muted);
  margin: 0 0 16px;
}
.drawer .field {
  margin-bottom: 20px;
}
.drawer .field label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 7px;
}
.drawer .field input,
.drawer .field select,
.drawer .field textarea {
  width: 100%;
  background: var(--bg);
}
.drawer .field .check-label {
  display: flex;
  gap: 10px;
  align-items: start;
}
.drawer .field input[type='checkbox'] {
  width: 17px;
  flex-shrink: 0;
}
.drawer .button {
  margin-right: 6px;
}
.drawer .layer-label {
  padding: 10px 0;
  display: flex;
  gap: 12px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.layer-label input {
  flex-shrink: 0;
}
.layer-label span {
  min-width: 0;
}
.layer-label .meta {
  display: block;
  font-size: 12px;
  margin-top: 4px;
}
.form-error {
  color: var(--danger);
  font-size: 13px;
  margin: 14px 0;
}
.confirm {
  background: var(--surface);
  color: var(--ink);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 5px;
  max-width: 480px;
  width: calc(100% - 32px);
}
.confirm h2 {
  margin-bottom: 18px;
}
.confirm p {
  color: var(--muted);
  margin-bottom: 16px;
}
.confirm textarea {
  width: 100%;
  min-height: 110px;
}
.dialog-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 24px;
}
.key-values {
  display: grid;
  grid-template-columns: 1fr;
  gap: 17px;
}
.key-values dt {
  font-size: 12px;
  color: var(--muted);
}
.key-values dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}
.photo-sets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}
.photo-set {
  text-decoration: none;
}
.photo-set img {
  width: 100%;
  aspect-ratio: 1.4;
  object-fit: cover;
  display: block;
  margin-bottom: 14px;
}
.photo-set:hover h2 {
  color: var(--lime);
}
.photo-set h2 {
  font-size: 18px;
  margin-bottom: 6px;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 5px;
}
.photo-grid a {
  display: block;
  position: relative;
  aspect-ratio: 4/3;
}
.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-view {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.photo-view img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.photo-select {
  position: absolute;
  left: 10px;
  top: 10px;
  background: var(--surface);
  padding: 4px;
}
.timeline-item {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.timeline-item time {
  font-size: 13px;
  color: var(--muted);
}
.timeline-item h3 {
  margin: 9px 0;
}
.timeline-item p {
  color: var(--muted);
}
.activity-row {
  border-top: 1px solid var(--line);
  padding: 18px 0;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
}
.activity-row time {
  font-size: 12px;
  color: var(--muted);
}
.activity-row p {
  font-size: 14px;
}
.share-row {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}
.share-row .meta {
  display: block;
  margin: 7px 0 13px;
}
.map-layout {
  height: 100%;
  position: relative;
  overflow: hidden;
  background: #111612;
}
.site-map {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: grab;
}
.site-map:active {
  cursor: grabbing;
}
.site-map .feature {
  cursor: pointer;
  vector-effect: non-scaling-stroke;
  stroke-width: 2.5;
  stroke-linejoin: round;
}
.site-map .feature:hover,
.site-map .feature.selected {
  stroke: #fff !important;
  stroke-width: 5;
}
.site-map .boundary {
  fill: none;
  stroke: white;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}
.site-map .boundary.approx {
  stroke-dasharray: 7 6;
}
.site-map .hit-target {
  stroke: transparent;
  stroke-width: 15;
  fill: none;
  pointer-events: stroke;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
}
.map-summary {
  position: absolute;
  left: 20px;
  top: 20px;
  max-width: 330px;
  background: var(--surface);
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 3px;
}
.map-summary strong {
  font-size: 13px;
  font-weight: 500;
  display: block;
}
.map-summary p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.map-legend {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 12px 16px;
  font-size: 12px;
}
.legend-row {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 4px 0;
}
.swatch {
  width: 16px;
  height: 3px;
  background: var(--swatch);
  display: inline-block;
  flex-shrink: 0;
}
.map-scale {
  position: absolute;
  bottom: 20px;
  right: 20px;
  font-size: 12px;
  color: white;
  background: var(--surface);
  padding: 9px 13px;
  border: 1px solid var(--line);
}
.scale-bar {
  border: 1px solid white;
  border-top: 0;
  height: 6px;
  max-width: 160px;
}
.map-presets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.map-presets button.active {
  border-color: var(--lime);
  color: var(--lime);
}
.feature-list button {
  width: 100%;
  border-top: 1px solid var(--line);
  padding: 12px 0;
  font-size: 13px;
}
.feature-list button:hover {
  color: var(--lime);
}
#toast {
  position: fixed;
  bottom: 90px;
  left: calc(50% + var(--rail-w) / 2);
  transform: translateX(-50%);
  z-index: 70;
  background: var(--ink);
  color: var(--bg);
  padding: 13px 20px;
  border-radius: 3px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  font-size: 13px;
  max-width: calc(100vw - 40px);
}
#toast.show {
  opacity: 1;
}
.approval-row {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}
.approval-row h3 {
  margin-bottom: 8px;
}
.approval-row p {
  margin: 8px 0 14px;
  color: var(--muted);
}
.search-result {
  color: var(--muted);
  font-size: 12px;
}
.auth-screen {
  max-width: 500px;
  padding: 80px 36px;
  margin: auto;
}
.auth-screen h1 {
  margin-bottom: 20px;
}
.auth-screen p {
  margin: 0 0 24px;
  color: var(--muted);
}
@media (min-width: 1500px) {
  .overview {
    padding-top: 64px;
  }
  .intro .site-name {
    font-size: 42px;
  }
}
@media (max-width: 1100px) {
  :root {
    --rail-w: 208px;
  }
  .sidebar {
    padding: 28px 22px;
  }
  .page-head {
    padding: 20px 26px;
  }
  .content {
    padding: 26px;
  }
  .overview {
    padding: 34px 26px;
    gap: 34px;
  }
  .overview-detail {
    gap: 34px;
  }
  .intro .site-name {
    font-size: 30px;
  }
  .document-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .toolbar {
    padding: 12px 18px;
    gap: 8px;
  }
  .toolbar .search-box {
    width: 110px;
  }
}
@media (max-width: 760px) {
  :root {
    --rail-w: 0px;
    --head-h: 84px;
  }
  .sidebar {
    transform: translateX(-100%);
    width: 260px;
    transition: transform 0.2s;
    z-index: 40;
  }
  .sidebar.open {
    transform: none;
  }
  #nav-shade:not([hidden]) {
    position: fixed;
    inset: 0;
    background: #0009;
    z-index: 35;
  }
  .workspace {
    margin: 0;
  }
  .page-head {
    padding: 16px 18px;
    gap: 12px;
  }
  .mobile-menu {
    display: inline-flex;
    font-size: 13px;
    border: 1px solid var(--line);
    border-radius: 3px;
    padding: 8px;
    flex-shrink: 0;
  }
  h1 {
    font-size: 20px;
  }
  .page-head .meta {
    font-size: 12px;
  }
  .head-leading {
    gap: 12px;
    flex: 1;
  }
  #head-actions {
    gap: 6px;
  }
  #head-actions .button {
    padding: 8px 10px;
  }
  .content {
    padding: 22px 18px 36px;
  }
  .overview {
    padding: 28px 20px;
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .intro .site-name {
    font-size: 32px;
    max-width: 20ch;
  }
  .overview-aerial img {
    aspect-ratio: 1.6;
  }
  .overview-detail {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .overview-actions .button {
    flex: 1;
  }
  .filter-tabs {
    gap: 22px;
  }
  .filters {
    gap: 10px;
  }
  .search {
    min-width: 100%;
    max-width: none;
  }
  .filters select {
    flex: 1;
    width: 100%;
  }
  .document-row {
    padding: 19px 0;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 12px;
  }
  .document-title {
    font-size: 16px;
  }
  .document-actions {
    grid-column: 2;
    flex-direction: row;
    margin-top: 3px;
    flex-wrap: wrap;
  }
  .document-meta {
    gap: 3px 10px;
    font-size: 12px;
  }
  .document-history {
    grid-column: 2;
  }
  .toolbar {
    padding: 10px 12px;
    gap: 8px;
  }
  .toolbar .spacer {
    display: none;
  }
  .toolbar .button {
    min-height: 36px;
    padding: 7px 10px;
  }
  .toolbar .toolbar-group {
    flex-wrap: wrap;
  }
  .toolbar .search-box {
    width: 125px;
  }
  .toolbar label {
    font-size: 11px;
  }
  .pdf-scroll {
    padding: 12px;
  }
  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }
  .photo-sets {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .photo-view {
    padding: 10px;
  }
  .map-summary {
    top: 12px;
    left: 12px;
    right: 12px;
    max-width: none;
  }
  .map-legend {
    left: 12px;
    bottom: 12px;
    max-width: 200px;
  }
  .map-scale {
    right: 12px;
    bottom: 12px;
  }
  .activity-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }
  .drawer {
    padding: 23px;
  }
  .viewer-note {
    bottom: 12px;
    left: 12px;
    right: 12px;
  }
  .viewer-note span {
    font-size: 11px;
  }
  #toast {
    left: 50%;
    bottom: 125px;
  }
  .account {
    font-size: 13px;
  }
  .sidebar-foot {
    padding-top: 20px;
  }
  .project-label {
    margin: 25px 0 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.sidebar {
  overflow-y: auto;
}
.brand,
.project-label,
.sidebar-foot {
  flex-shrink: 0;
}
.workspace:fullscreen {
  margin: 0;
  width: 100%;
  background: var(--bg);
}
.drawer {
  overflow-y: auto;
}
@media (max-height: 760px) and (min-width: 761px) {
  .sidebar {
    padding-top: 22px;
    padding-bottom: 16px;
  }
  .project-label {
    margin: 22px 0 18px;
  }
  .nav-secondary {
    margin-top: 18px;
    padding-top: 12px;
  }
  nav a {
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .sidebar-foot {
    padding-top: 18px;
  }
  .account {
    margin-top: 16px;
    padding-top: 12px;
  }
}
.cloud-host {
  height: 100%;
  width: 100%;
}
.cloud-host canvas {
  display: block;
}
.cloud-info {
  position: absolute;
  top: 16px;
  left: 16px;
  max-width: min(430px, calc(100% - 32px));
  background: var(--surface);
  padding: 12px 16px;
  border: 1px solid var(--line);
  font-size: 13px;
}
.cloud-info p {
  margin-top: 12px;
  color: var(--muted);
}
.photo-tile {
  position: relative;
}
.photo-tile .photo-select {
  z-index: 2;
}
.sidebar {
  border-radius: 0;
}
.cloud-host {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.cloud-host canvas {
  max-width: 100%;
  max-height: 100%;
}
@media (max-height: 760px) {
  .brand img {
    width: 76px;
  }
  .project-label {
    font-size: 12px;
    line-height: 1.45;
    margin: 18px 0 16px;
  }
  .project-label strong {
    font-size: 14px;
  }
  .sidebar nav {
    gap: 3px;
  }
  .sidebar nav a {
    font-size: 14px;
    padding-top: 7px;
    padding-bottom: 7px;
  }
  .sidebar-foot {
    padding-top: 16px;
  }
  .account {
    margin-top: 12px;
    padding-top: 10px;
  }
}
.site-map .feature > * {
  vector-effect: non-scaling-stroke;
  stroke-width: 2.5;
}
.site-map .feature:hover > *,
.site-map .feature.selected > * {
  stroke: white;
  stroke-width: 4;
}
.site-map .hit-target > * {
  vector-effect: non-scaling-stroke;
  stroke-width: 15;
}
.key-values dt::first-letter {
  text-transform: uppercase;
}
