@font-face {
  font-family: "Golos Text";
  src: url("fonts/GolosText.ttf") format("truetype");
  font-weight: 400 900;
  font-display: swap;
}
:root {
  --blue: #1928DC;
  --sky: #86BBFF;
  --ink: #2B2D34;
  --sand: #C5BAA6;
  --beige: #E9E6DF;
  --cream: #FCF9F0;
  --muted: #504F55;
  --line: #E1E0E2;
  --surface: #F6F7F9;
  --tint: #EAF3FF;
  --warning: #B42332;
}
* {
  box-sizing: border-box;
}
html {
  font-family: "Golos Text", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--surface);
  scrollbar-gutter: stable;
}
html:has(#dialog:modal) {
  overflow: hidden;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
select {
  cursor: pointer;
}
button,
a,
input,
select,
textarea {
  outline-offset: 3px;
}
button {
  color: inherit;
}
header {
  height: 72px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 3.1vw;
  gap: 4vw;
}
button {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.63rem 0.9rem;
  font-size: 14px;
  font-weight: 600;
}
button:hover {
  border-color: var(--sky);
  background: var(--tint);
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
.brand {
  flex: none;
}
.brand img {
  display: block;
  width: 174px;
  height: auto;
}
.session {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.session-role {
  max-width: 13em;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  text-align: right;
}
nav {
  display: flex;
  height: 100%;
  align-items: center;
  gap: 3px;
}
nav button {
  background: transparent;
  border: 0;
  color: var(--muted);
  padding: 10px 13px;
}
nav button.active {
  color: var(--blue);
  background: var(--tint);
}
svg.ico {
  width: 18px;
  height: 18px;
  vertical-align: -4px;
  display: inline-block;
  flex: none;
}
main {
  max-width: 1700px;
  margin: auto;
  padding: 23px 3.1vw 40px;
}
.crumb {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 10px;
  align-items: center;
}
.crumb b {
  color: var(--muted);
  font-weight: 550;
}
.crumb span {
  color: var(--sand);
}
.titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 11px 0 23px;
  gap: 16px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(30px, 3vw, 43px);
  font-weight: 680;
  letter-spacing: -1.8px;
  line-height: 1.18;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.7px;
}
h3 {
  font-size: 16px;
  letter-spacing: -0.2px;
}
.titlebar p,
.muted {
  color: var(--muted);
}
.titlebar p {
  margin-top: 6px;
  font-size: 15px;
}
.actions,
.row,
.controls {
  display: flex;
  align-items: center;
  gap: 9px;
}
.primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.primary:hover {
  background: var(--blue);
  color: white;
}
button.primary:disabled,
button.primary:disabled:hover {
  opacity: 0.45;
  cursor: default;
}
form input:disabled {
  background: var(--surface);
  color: var(--muted);
}
.picker-results {
  margin-top: 4px;
  max-height: 220px;
}
.picker-results button {
  padding: 8px 10px;
  border-radius: 0;
  background: white;
  font-weight: 550;
}
.picker-results button:hover {
  background: var(--tint);
}
.picker-results .empty {
  padding: 12px;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 19px;
}
.kpi,
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
}
.kpi {
  padding: 17px 20px 14px;
  position: relative;
  overflow: hidden;
}
.kpitop {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 560;
}
.tileicon {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--tone);
  background: var(--tint);
}
.big {
  display: block;
  font-size: 31px;
  font-weight: 670;
  letter-spacing: -1.4px;
  margin: 8px 0 1px;
  line-height: 1.1;
}
.kpi small,
.secondary,
.meta,
small {
  color: var(--muted);
  font-size: 13px;
}
.spark {
  position: absolute;
  right: 14px;
  bottom: 17px;
  width: 25%;
  height: 30px;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 2.27fr) minmax(260px, 1fr);
  gap: 15px;
}
.panel {
  overflow: hidden;
}
.panelhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 17px 19px;
  border-bottom: 1px solid var(--line);
}
.panelhead h2 {
  font-size: 19px;
}
.subhead {
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
}
.custom-field-panelhead {
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px 16px;
}
.custom-field-panelhead .subhead {
  max-width: 70ch;
  line-height: 1.45;
}
.pill {
  background: var(--tint);
  color: var(--blue);
  border-radius: 15px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
}
.mapbody {
  height: clamp(390px, 47vh, 600px);
  position: relative;
  overflow: hidden;
  background: var(--surface);
}
.mapbody > svg {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: pan-y;
  user-select: none;
}
#land path[data-call] { cursor: pointer; }
.mapsearch {
  position: absolute;
  top: 16px;
  left: 16px;
  width: min(305px, calc(100% - 85px));
  z-index: 2;
}
.searchbox {
  display: flex;
  align-items: center;
  gap: 9px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  height: 40px;
  color: var(--muted);
}
.mapsearch .searchbox {
  box-shadow: 0 2px 8px #2b2d3419;
}
.searchbox:focus-within {
  border-color: var(--blue);
  outline: 2px solid var(--blue);
  outline-offset: -1px;
}
.searchbox input,
.searchbox input:focus-visible {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: none;
  font-size: 14px;
  background: transparent;
  color: var(--ink);
}
.results {
  background: white;
  border-radius: 8px;
  box-shadow: 0 5px 18px #2b2d3427;
  max-height: 240px;
  overflow: auto;
}
.results button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
}
.map-assistant {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 16px 28px;
  padding: 18px 20px;
  background: linear-gradient(105deg, var(--tint), white 85%);
  border-color: #d6e4fa;
}
.map-assistant-intro {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.map-assistant-icon {
  flex: 0 0 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--blue);
  color: white;
}
.map-assistant-intro h2 {
  font-size: 19px;
}
.map-assistant-intro p {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.4;
}
.map-assistant-form {
  min-width: 0;
  gap: 8px;
}
.map-assistant-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}
.map-assistant-controls .searchbox {
  display: flex;
}
.map-assistant-controls input {
  width: 100%;
  padding: 0;
}
.map-assistant-matches {
  border: 1px solid var(--line);
  box-shadow: none;
}
.map-assistant-matches button + button {
  border-top: 1px solid var(--line);
}
@media (max-width: 780px) {
  .map-assistant { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 460px) {
  .map-assistant-controls { grid-template-columns: minmax(0, 1fr); }
}
.iconbtn {
  width: 35px;
  height: 35px;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 20px;
}
.maplegend {
  position: absolute;
  bottom: 15px;
  left: 14px;
  background: #fffffff4;
  border: 1px solid var(--line);
  display: flex;
  gap: 13px;
  align-items: center;
  flex-wrap: wrap;
  max-width: calc(100% - 28px);
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--muted);
}
.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 5px;
  background: var(--blue);
}
.dot.warning {
  background: var(--warning);
}
small.map-signal {
  display: block;
  color: var(--warning);
  font-weight: 600;
  margin-top: 3px;
}
.resource-comparison td {
  white-space: nowrap;
}
.comparison-source {
  display: block;
  color: var(--muted);
}
.resource-comparison .map-signal button {
  font-size: inherit;
}
.cluster-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0 12px;
}
.cluster-filter input {
  accent-color: var(--blue);
}

.training-pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: .6rem;
  padding: .35rem 0;
  text-align: center;
  font-size: 13px;
}
.dot.light {
  background: var(--line);
}
.mapfooter,
.panelfoot {
  padding: 11px 18px;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--line);
}
.mapfooter {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.directory {
  display: flex;
  flex-direction: column;
}
.directory .panelhead {
  min-height: 61px;
}
.directorylist {
  flex: 1;
  max-height: clamp(390px, 47vh, 600px);
  overflow: auto;
  scrollbar-width: thin;
}
.dirrow {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  display: flex;
  align-items: center;
  text-align: left;
  gap: 12px;
  padding: 12px 17px;
  width: 100%;
  min-height: 60px;
}
.dirrow strong,
.dirrow small {
  display: block;
}
.dirrow strong {
  font-size: 14px;
}
.dirrow small {
  font-weight: 450;
  margin-top: 2px;
}
.diricon {
  background: var(--tint);
  color: var(--blue);
  border-radius: 9px;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  flex: none;
}
.dirrow .tail {
  margin-left: auto;
  color: var(--muted);
}
.panelfoot {
  margin-top: auto;
}
.back {
  border: 0;
  background: var(--tint);
  color: var(--blue);
  padding: 4px 8px;
}
.below {
  margin-top: 18px;
}
.tablewrap {
  overflow: auto;
}
.period-comparison-fields,
.period-comparison-dates {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
}
.period-comparison-fields label,
.period-comparison-dates label {
  flex: 1 1 195px;
  min-width: 0;
}
.period-comparison-dates[hidden] {
  display: none;
}
#periodComparisonForm {
  margin-top: 10px;
}
.period-comparison-months summary {
  cursor: pointer;
  color: var(--blue);
  margin-bottom: 8px;
}
@media (max-width: 640px) {
  .period-comparison-summary,
  .period-comparison-summary tbody {
    display: block;
  }
  .period-comparison-summary thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .period-comparison-summary tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    padding: 10px 4px;
    border-top: 1px solid var(--line);
  }
  .period-comparison-summary tbody th,
  .period-comparison-summary tbody td {
    padding: 0;
    border: 0;
    overflow-wrap: anywhere;
  }
  .period-comparison-summary tbody th,
  .period-comparison-summary tbody td:last-child {
    grid-column: 1 / -1;
  }
  .period-comparison-summary tbody th {
    background: none;
    font-size: 14px;
    color: inherit;
  }
  .period-comparison-summary tbody td::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 2px;
  }
}
.basis {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 450;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 17px 8px;
}
.chips:empty {
  display: none;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--tint);
  color: var(--blue);
  border-radius: 12px;
  padding: 4px 8px;
  font-size: 13px;
}
.chip button {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  font: inherit;
}
.comparison-caption {
  margin: 0;
  padding: 0 17px 8px;
  color: var(--muted);
  font-size: 13px;
}
.comparison-caption:empty {
  display: none;
}
.comparison-tools {
  padding-top: 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}
th {
  font-size: 12px;
  color: var(--muted);
  background: var(--surface);
  font-weight: 600;
}
td,
th {
  padding: 12px 17px;
  border-bottom: 1px solid var(--line);
}
td button.link,
.link {
  border: 0;
  background: none;
  color: var(--blue);
  padding: 0;
  font-weight: 650;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  padding: 14px 17px;
}
.filters input:not(.searchbox input),
.filters select,
form input,
form select,
form textarea,
.actions select,
#dialogBody > select {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  padding: 9px 10px;
  border-radius: 7px;
  min-width: 0;
}
.empty {
  padding: 24px;
  color: var(--muted);
}
.badge {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 12px;
  background: var(--cream);
  color: var(--ink);
  white-space: nowrap;
}
.green {
  background: var(--tint);
  color: var(--blue);
}
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.settings-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}
.settings-column {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.dictionary-entries {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dictionary-entries li {
  padding: 12px 19px;
  overflow-wrap: anywhere;
}
.dictionary-entries li + li {
  border-top: 1px solid var(--line);
}
.dictionary-entry-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.dictionary-entry-title button {
  flex: none;
}
.dictionary-entries strong {
  font-size: 16px;
  font-weight: 650;
}
.dictionary-entries p {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
  white-space: pre-line;
}
.padded {
  padding: 20px;
}
.block {
  margin: 16px 0;
}
.chart {
  width: 100%;
  height: 180px;
}
.dialogbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  gap: 15px;
}
dialog {
  width: min(620px, 94vw);
  max-height: 87vh;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 22px;
  box-shadow: 0 15px 64px #2b2d3444;
  color: var(--ink);
}
dialog::backdrop {
  background: #2b2d3466;
}
form {
  display: grid;
  gap: 12px;
}
form label,
.field {
  display: grid;
  gap: 5px;
  font-size: 14px;
  color: var(--muted);
}
form .row {
  justify-content: flex-end;
}
form .row.reading-actions {
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
}
.reading-source {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
  gap: 5px;
  min-width: 0;
  max-width: 100%;
  flex: 1 1 16rem;
}
.reading-actions > .primary {
  margin-left: auto;
}
#readingSourceName {
  justify-self: stretch;
  min-width: 0;
  overflow-wrap: anywhere;
}
.reading-ocr:not([hidden]),
.reading-ocr-options {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.reading-ocr {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.reading-ocr h3,
.reading-ocr p {
  margin: 0;
  overflow-wrap: anywhere;
}
.reading-ocr-option {
  display: grid;
  justify-items: start;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.reading-ocr-notes {
  margin: 0;
  padding-inline-start: 18px;
  color: var(--warning);
  font-size: 13px;
  overflow-wrap: anywhere;
}
form .reading-ocr-confirm:not([hidden]) {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.reading-ocr-confirm input {
  flex: none;
  width: auto;
  margin: 3px 0 0;
}
form label .check-flag {
  color: var(--warning);
  font-size: 12px;
  font-weight: 600;
}
.reading-source input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.details div {
  background: var(--surface);
  padding: 10px;
  border-radius: 8px;
}
.details b {
  display: block;
  margin-top: 4px;
}
.exceedance-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 4vw, 54px);
  padding: clamp(20px, 3vw, 34px);
  background: linear-gradient(110deg, var(--tint), white 76%);
  border-color: #d6e4fa;
}
.exceedance-value h2 {
  margin: 0 0 6px;
}
.exceedance-value strong {
  display: block;
  margin-top: 12px;
  color: var(--blue);
  font-size: clamp(26px, 4vw, 54px);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
.exceedance-context {
  padding-inline-start: clamp(18px, 3vw, 32px);
  border-inline-start: 1px solid #d6e4fa;
}
.exceedance-source {
  font-weight: 600;
  margin-bottom: 8px;
}
.exceedance-source .ico {
  color: var(--blue);
  margin-right: 4px;
}
.exceedance-context .link {
  margin-top: 10px;
}
.retro-result strong {
  font-size: clamp(18px, 2vw, 28px);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.retro > p, .retro details p {
  max-width: 90ch;
  margin: 10px 0 16px;
  line-height: 1.45;
}
#retroResult > p {
  margin: 12px 0;
}
.retro-controls {
  display: flex;
  align-items: start;
  flex-wrap: wrap;
  gap: 12px 26px;
}
.retro-controls label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  max-width: 100%;
}
.retro-controls select, .retro-controls input {
  width: 100%;
  min-width: 0;
  accent-color: var(--blue);
}
.retro-controls select {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: var(--ink);
}
.retro-controls input[type="range"] {
  min-height: 32px;
}
#retroExample {
  margin-top: 12px;
}
.retro-result {
  background: var(--surface);
  border-left: 3px solid var(--blue);
  border-radius: 5px;
  padding: 12px 16px;
  margin-top: 10px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 14px;
}
.retro-result strong, .retro summary {
  color: var(--blue);
}
.retro summary {
  cursor: pointer;
  font-weight: 600;
}
@media (max-width: 720px) {
  .exceedance-summary { grid-template-columns: 1fr; }
  .exceedance-context {
    padding: 14px 0 0;
    border-inline-start: 0;
    border-top: 1px solid #d6e4fa;
  }
  .retro-controls label { width: 100%; }
}
.branch-custom-fields > .row {
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.branch-custom-fields h3 {
  margin: 0;
}
.branch-custom-fields .details > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.sectionTitle {
  margin: 20px 0 9px;
}
.dialog-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.assistant-comparison {
  margin: 16px 0;
  padding: 14px;
  border-radius: 12px;
  background: var(--surface);
}
.assistant-comparison h3 {
  margin: 0;
}
.assistant-comparison p {
  margin: 4px 0 12px;
  color: var(--muted);
  font-size: 13px;
}
.assistant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.assistant-options button {
  border-radius: 100px;
  min-height: 36px;
  padding: 6px 12px;
  font-size: 13px;
}
.assistant-options button[aria-pressed="true"] {
  border-color: var(--blue);
  background: var(--blue);
  color: white;
}
.assistant-progress,
.assistant-question {
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--tint);
}
.assistant-progress {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.assistant-spinner {
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  color: var(--blue);
}
@media (prefers-reduced-motion: no-preference) {
  .assistant-spinner { animation: assistant-spin .8s linear infinite; }
  @keyframes assistant-spin { to { transform: rotate(360deg); } }
}
.assistant-checks {
  display: grid;
  gap: 12px;
  margin: 16px 0;
}
.assistant-checks section {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
}
.assistant-checks h3 { margin: 0; }
.branch-photo {
  width: 100%;
  max-height: 150px;
  object-fit: cover;
  border-radius: 8px;
}
.filebtn {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.63rem 0.9rem;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
}
.filebtn:hover {
  border-color: var(--sky);
  background: var(--tint);
}
.filebtn input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 0;
}
button.floor-plan-open,
button.floor-plan-open:hover {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  line-height: 0;
}
.floor-plan,
.floor-plan-full {
  display: block;
  width: 100%;
  object-fit: contain;
  background: var(--surface);
}
.floor-plan {
  max-height: 320px;
}
.floor-plan-full {
  max-height: min(68vh, 720px);
  border-radius: 8px;
}
.floor-plan-caption {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.mini {
  font-size: 12px;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  display: none;
  z-index: 99;
}
.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-top: 14px;
}
.calendar > span,
.calendar-day {
  min-height: 34px;
  padding: 6px 3px;
  text-align: center;
  border-radius: 6px;
  font-size: 13px;
}
.calendar button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  column-gap: 4px;
  border: 1px solid transparent;
}
.calendar .due {
  background: var(--tint);
  color: var(--blue);
  font-weight: 700;
}
.calendar-day small {
  font-weight: 500;
  font-size: 11px;
  padding: 1px 4px;
  border-radius: 6px;
  background: #fff;
}
.work-month {
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 6px 8px;
  font-size: 14px;
}
.analytics-panel-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  margin-inline-start: auto;
}
.analytics-panel-tools .office-search {
  width: min(30vw, 315px);
  min-width: 0;
}
.analytics-panel-tools > button {
  flex: none;
  white-space: nowrap;
}
.analytics-tables {
  display: grid;
  gap: 16px;
  align-items: start;
}
.analytics-tables > .panel {
  min-width: 0;
}
.table-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.table-heading .pill {
  white-space: nowrap;
}
.analytics-panelhead {
  flex-wrap: wrap;
  gap: 10px 16px;
}
@media (max-width: 700px), (min-width: 1120px) and (max-width: 1499px) {
  .analytics-panelhead {
    flex-direction: column;
    align-items: stretch;
  }
  .analytics-panel-tools {
    margin-inline-start: 0;
  }
  .analytics-panel-tools .office-search {
    width: auto;
    flex: 1;
  }
}
.analytics-tables .link {
  text-align: left;
}
@media (min-width: 1120px) {
  .analytics-tables {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  }
  .analytics-panel-tools .office-search {
    max-width: 238px;
  }
  .analytics-tables td,
  .analytics-tables th {
    padding-inline: 9px;
  }
}
.work-journal-head {
  flex-wrap: wrap;
  gap: 10px 16px;
}
.work-journal-tools {
  flex: 1 1 550px;
  align-items: center;
  justify-content: flex-end;
}
.work-journal-tools .office-search {
  flex: 1 1 165px;
  max-width: 315px;
}
@media (max-width: 640px) {
  .work-journal-tools {
    justify-content: flex-start;
  }
  .work-journal-tools .office-search {
    flex-basis: 100%;
    max-width: none;
  }
}
.branch-scope:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 11px 16px;
  margin-bottom: 16px;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 9px;
}
.branch-scope span {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  color: var(--muted);
}
.work-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.work-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 15px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 650;
  text-decoration: none;
}
.work-tabs a[aria-current="page"] {
  background: var(--tint);
  border-color: var(--tint);
  color: var(--blue);
}
.verification-lookup {
  padding: 16px 20px;
}
.verification-lookup label {
  font-weight: 650;
}
.verification-lookup input {
  flex: 1;
  max-width: 300px;
  min-width: 0;
}
.verification-error {
  margin: 0;
  color: var(--warning);
}
.verification-error:not(:empty) {
  margin-top: 6px;
}
.office-context {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.office-context .subhead {
  margin-bottom: 0;
}
.work-kpis .tileicon {
  background: var(--tint);
  color: var(--blue);
}
.work-kpi-late .tileicon {
  background: #fff0f1;
  color: var(--warning);
}
.work-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.work-table .link {
  text-align: left;
}
.work-late,
.calendar .due.work-late {
  background: #fff0f1;
  color: var(--warning);
}
.work-review {
  background: var(--cream);
  color: #705229;
}
.repair-status-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.work-table .badge + .badge {
  display: inline-block;
  margin: 4px 0 0 4px;
}
.repair-return-note {
  padding: 12px;
  background: var(--cream);
  border-radius: 8px;
}
.repair-return-note p,
.repair-history p {
  margin: 5px 0 0;
}
.repair-history {
  list-style: none;
  padding: 0;
  margin: 0;
}
.repair-history li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.repair-history li > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 12px;
}
.repair-history small {
  color: var(--muted);
}
.work-caption {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}
td > .badge + button {
  margin-left: 5px;
}
.reminder-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  max-height: 280px;
  overflow: auto;
  padding: 1px 4px 1px 1px;
}
.work-reminder {
  display: grid;
  gap: 4px;
  justify-items: start;
  text-align: left;
}
.work-reminder.work-late {
  border-color: #f4c9cf;
}
.meter-section {
  margin-top: 20px;
}
.meter-section > .row {
  justify-content: space-between;
}
.meter-section h3 {
  margin: 0;
}
.meter-section .meter-table {
  margin-top: 8px;
}
.meter-example {
  display: inline-block;
  margin-left: 5px;
  color: var(--muted);
  font-size: 12px;
}
form label[hidden] {
  display: none;
}
form .reading-share-toggle:not([hidden]) {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
form .reading-share-toggle input {
  width: auto;
  margin: 0;
}
@media (min-width: 1600px) {
  main {
    padding-top: 32px;
  }
  .kpi {
    padding: 20px 22px;
  }
}
@media (max-width: 1080px) {
  header {
    gap: 14px;
  }
  nav button {
    padding: 9px;
  }
  .kpi {
    padding: 14px;
  }
  .spark {
    width: 20%;
  }
}
@media (max-width: 930px) {
  header {
    height: auto;
    min-height: 58px;
    flex-wrap: wrap;
    padding: 10px 16px 0;
    justify-content: space-between;
  }
  .brand img {
    width: 154px;
  }
  nav {
    order: 3;
    overflow: auto;
    width: 100%;
    height: 43px;
    gap: 0;
  }
  nav button {
    white-space: nowrap;
  }
}
@media (max-width: 780px) {
  main {
    padding: 16px;
  }
  .titlebar {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .kpis {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .workspace,
  .grid2 {
    grid-template-columns: 1fr;
  }
  .directorylist {
    max-height: 260px;
  }
  .mapbody {
    height: 375px;
  }
  .actions {
    flex-wrap: wrap;
  }
  .big {
    font-size: 26px;
  }
  .mapfooter {
    display: block;
  }
  .kpi small {
    font-size: 12px;
  }
}
@media (max-width: 440px) {
  main {
    padding: 11px;
  }
  .kpi {
    padding: 11px;
  }
  .spark {
    display: none;
  }
  .maplegend {
    font-size: 11px;
  }
  .titlebar {
    margin-bottom: 14px;
  }
  td,
  th {
    padding: 8px;
  }
  .details {
    grid-template-columns: 1fr;
  }
}

#points text {
  pointer-events: none;
}
#map.can-pan {
  cursor: grab;
}
#map.is-panning, #map.is-panning * {
  cursor: grabbing !important;
}
#city-labels, #city-links, #region-labels {
  pointer-events: none;
}
#region-labels text {
  fill: #2c3a62;
  stroke: #fff;
  stroke-width: 2.2px;
  stroke-linejoin: round;
  paint-order: stroke;
  font-size: 11px;
  font-weight: 500;
}
#city-labels text {
  fill: #263350;
  stroke: #fff;
  stroke-width: 3px;
  stroke-linejoin: round;
  paint-order: stroke;
  font-size: 12px;
  font-weight: 600;
}
#city-labels .city-capital {
  fill: #182a69;
  font-size: 13px;
  font-weight: 750;
}
.city-dot {
  fill: #384675;
  stroke: white;
  stroke-width: .9px;
}
.city-leader {
  stroke: #5b6691;
  stroke-width: 1px;
  opacity: .65;
}
.network-boundary {
  fill: #aacfff;
  stroke: white;
}
.count-boundary {
  stroke: #8095bd;
  stroke-width: .7;
}
#land .count-boundary {
  outline: none;
}
.region-outline-layer {
  pointer-events: none;
}
#map.is-panning .region-outline-layer {
  visibility: hidden;
}
.region-outline {
  fill: none;
  stroke: #142553;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.map-count-legend {
  gap: 8px;
}
.map-count-legend span:first-child {
  margin-right: 4px;
}
.map-count-gradient {
  width: clamp(52px, 16vw, 105px);
  height: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: linear-gradient(90deg, white, var(--blue));
}

.mapbody { background: radial-gradient(ellipse at center, #fff 12%, var(--tint) 100%); }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--blue); }

#gate[hidden],
#app[hidden] {
  display: none !important;
}
#gate {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
}
.gate-main {
  flex: 1;
  display: grid;
  place-items: center;
  max-width: none;
  width: auto;
  margin: 0;
}
.gate-card {
  width: min(440px, 100%);
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 28px 26px 24px;
  box-shadow: 0 15px 64px #2b2d3422;
}
.gate-card h1 {
  font-size: clamp(30px, 3vw, 40px);
  letter-spacing: -1.4px;
}
.gate-card > p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}
.gate-card > p.gate-error {
  margin: 0;
  color: var(--warning);
  font-size: 14px;
  font-weight: 650;
}
.gate-card .primary {
  width: 100%;
  margin-top: 4px;
  padding: 0.8rem 1rem;
}
.access-form {
  max-width: 560px;
}
.access-code {
  margin: 14px 0 8px;
  font-size: 32px;
  font-weight: 750;
  letter-spacing: 0.06em;
  color: var(--blue);
}
