/* Desktop-first engineering workspace; compact surfaces, restrained contrast. */
:root {
  --engineering-accent: #63cbb8;
}
body,
.project-manager-screen {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}
.project-thumbnail {
  width: 100%;
  height: 70px;
  object-fit: contain;
  border-radius: 3px;
}
button {
  font-family: inherit;
  color: #d8e6eb;
  background: #203943;
  border: 1px solid #3a5662;
  border-radius: 4px;
  cursor: pointer;
}
button:hover {
  background: #2b4b55;
}
.engineering-inspector button {
  width: auto;
}
.context-menu button {
  height: auto;
  min-height: 33px;
}
.modal {
  border-radius: 7px;
  border-color: #52676f;
}
.modal-header {
  padding: 16px 22px;
}
.modal-body {
  padding: 22px;
}
.modal label {
  font-size: 12px;
}
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--engineering-accent);
  outline-offset: 2px;
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  filter: grayscale(1);
}
.ribbon-tabs {
  overflow-x: auto;
  flex-wrap: nowrap;
}
.ribbon-tabs button {
  flex-shrink: 0;
  border-radius: 0;
}
.ribbon-tabs button.active {
  border-bottom: 3px solid var(--engineering-accent);
  background: #263e43;
}
.ribbon-page {
  overflow-x: auto;
  max-width: 100%;
}
.professional-group {
  flex-shrink: 0;
  gap: 6px;
  padding: 8px 12px 23px;
  min-height: 92px;
}
.ribbon-command {
  min-width: 70px;
  max-width: 118px;
  border: 1px solid transparent;
  border-radius: 4px !important;
  box-shadow: none !important;
  background: transparent;
}
.ribbon-command svg {
  width: 22px !important;
  height: 22px !important;
}
.ribbon-command:hover {
  background: #29434a;
  border-color: #4d6870;
}
.tool.active {
  background: #234e49 !important;
  border-color: #63cbb8 !important;
}
.ribbon-group-label {
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #9cafb4;
}
.dock-header {
  border-bottom: 1px solid #33454c;
}
.panel-tabs {
  gap: 0;
  flex-wrap: wrap;
}
.panel-tab {
  border-radius: 0 !important;
  font-size: 11px;
  padding: 8px 9px;
}
.panel-tab.active {
  color: #b3f0e4;
  border-bottom: 2px solid #63cbb8;
}
.engineering-inspector {
  padding: 12px;
  overflow: auto;
  min-height: 0;
  flex: 1;
}
.engineering-inspector h3 {
  font-size: 13px;
  margin: 0 0 8px;
}
.engineering-inspector button {
  margin: 4px 3px 4px 0;
  padding: 7px 10px;
}
.engineering-inspector pre {
  font-size: 11px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 320px;
  overflow: auto;
}
.property-list {
  display: grid;
  grid-template-columns: minmax(90px, 0.8fr) minmax(0, 1.2fr);
  font-size: 11px;
  margin: 12px 0;
}
.property-list dt,
.property-list dd {
  margin: 0;
  padding: 8px 4px;
  border-bottom: 1px solid #2c3f45;
  overflow-wrap: anywhere;
  unicode-bidi: plaintext;
}
.property-list dt {
  color: #9aafb6;
}
.property-list dd {
  font-variant-numeric: tabular-nums;
}
.layer-row {
  display: flex !important;
  align-items: center;
  gap: 5px;
  padding: 9px 6px;
  border-left: 3px solid transparent;
  cursor: pointer;
}
.layer-row.selected {
  border-left-color: #63cbb8;
  background: #223d40;
}
.layer-row:hover {
  background: #253b42;
}
.layer-row input {
  flex: 0 0 14px;
  width: 14px;
}
.layer-row button {
  flex: 0 0 23px;
  padding: 3px;
  min-width: 0;
  background: transparent;
}
.layer-description {
  min-width: 0;
  flex: 1;
}
.layer-description strong {
  display: block;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.layer-description small {
  display: block;
  font-size: 10px;
  color: #9aafb6;
  overflow-wrap: anywhere;
}
.layer-detail {
  padding: 8px 15px 10px 35px;
  font-size: 10px;
  color: #9cafb4;
  border-bottom: 1px solid #30454a;
}
.layer-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}
.layer-toolbar button {
  font-size: 10px;
  padding: 5px;
}
.status-engineering {
  font-variant-numeric: tabular-nums;
  font-size: 10px;
}
.status-bar {
  flex-wrap: wrap;
  min-height: 30px;
  height: auto;
}
.status-meta {
  flex-wrap: wrap;
  gap: 10px;
}
.coordinate-label {
  white-space: pre;
  display: block;
  line-height: 1.4;
  transform-origin: center;
  unicode-bidi: plaintext;
}
.leaflet-tooltip {
  border-radius: 3px;
  box-shadow: none;
}
.context-menu {
  z-index: 15000;
  min-width: 205px;
  max-height: 85vh;
  overflow: auto;
  border: 1px solid #52646a;
  border-radius: 5px;
  background: #172b33;
  padding: 4px;
  box-shadow: 0 4px 16px #0005;
}
.context-menu button {
  padding: 9px 12px;
  font-size: 12px;
  text-align: left;
}
.context-menu button:hover,
.context-menu button:focus-visible {
  background: #2c4b52;
}
#notifications {
  position: fixed;
  right: 18px;
  bottom: 42px;
  z-index: 25000;
  width: min(380px, calc(100vw - 36px));
  pointer-events: none;
}
.notice {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #18303a;
  color: #e4eff1;
  border: 1px solid #47616b;
  border-left: 4px solid #64b8d3;
  margin-top: 7px;
  padding: 12px 14px;
  border-radius: 5px;
  font-size: 12px;
  pointer-events: auto;
}
.notice.success {
  border-left-color: #63cbb8;
}
.notice.warning {
  border-left-color: #e6bb63;
}
.notice.error {
  border-left-color: #ef8383;
}
.notice button {
  background: transparent;
  border: 0;
  font-size: 20px;
  padding: 0 4px;
}
#operationProgress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #315c62;
  color: white;
  padding: 7px 18px;
  text-align: center;
  z-index: 40000;
  font-size: 12px;
  border-bottom: 3px solid #73d7c3;
}
#operationProgress[hidden] {
  display: none;
}
.service-dialog {
  border: 1px solid #52676f;
  border-radius: 7px !important;
  padding: 22px !important;
  box-shadow: 0 12px 35px #0006;
  max-height: 88vh;
}
.service-dialog h2 {
  font-size: 18px;
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #354c55;
}
.service-dialog label {
  font-size: 12px;
  margin: 10px 0;
  display: block;
}
.service-dialog input,
.service-dialog textarea,
.service-dialog select {
  width: 100%;
  margin-top: 5px;
  border-radius: 4px;
  padding: 9px;
  border: 1px solid #435b66;
}
.service-dialog footer {
  border-top: 1px solid #354c55;
  padding-top: 14px;
  margin-top: 18px;
}
.service-dialog button {
  padding: 8px 13px;
  border-radius: 4px;
}
.service-dialog footer button.primary {
  background: #2c766b;
  color: white;
}
.service-dialog::backdrop {
  background: #071116b3;
}
.table-actions,
.table-pager {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0;
}
.table-scroll {
  max-height: 50vh;
}
.table-scroll th {
  position: sticky;
  top: 0;
  background: #213b45;
}
.table-scroll input[type="checkbox"] {
  width: 15px;
}
.table-scroll tr:hover {
  background: #29454f;
}
.table-scroll td {
  max-width: 260px;
  overflow-wrap: anywhere;
  unicode-bidi: plaintext;
}
.project-manager-screen {
  background: #0d1b23 !important;
}
.pm-shell {
  max-width: 1250px !important;
}
.pm-shell header {
  border-bottom: 1px solid #30454e;
  padding-bottom: 25px;
}
.pm-logo {
  background: #275d59 !important;
  box-shadow: none !important;
  border-radius: 8px !important;
}
.pm-shell main {
  gap: 44px !important;
}
.pm-welcome h2 {
  font-size: 32px;
  line-height: 1.2;
  max-width: 440px;
}
.pm-welcome > p {
  line-height: 1.7;
  max-width: 450px;
}
.pm-primary-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.pm-primary-actions button {
  padding: 15px 12px;
  text-align: left;
  border: 1px solid #3b525d;
  background: #1a303b;
  border-radius: 5px;
  box-shadow: none;
}
.pm-primary-actions button:hover {
  background: #254650;
  border-color: #6bafa6;
}
.pm-primary-actions button:first-child {
  background: #286a60;
  color: white;
}
.pm-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-height: 65vh;
  overflow: auto;
}
.pm-list > button {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  min-height: 110px;
  text-align: left;
  border: 1px solid #344d58 !important;
  border-radius: 6px !important;
  background: #172c37 !important;
  padding: 16px !important;
}
.pm-list strong {
  font-size: 14px;
  unicode-bidi: plaintext;
}
.pm-list small {
  line-height: 1.8;
  color: #acbdc5;
  font-size: 11px;
}
.pm-list > button:hover {
  border-color: #73bbad !important;
}
@media (min-width: 1100px) {
  #rightPanel {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
  .workspace {
    grid-template-columns: 270px minmax(0, 1fr) 300px;
  }
  .workspace.leftPanel-hidden {
    grid-template-columns: 0 minmax(0, 1fr) 300px;
  }
  .workspace.rightPanel-hidden {
    grid-template-columns: 270px minmax(0, 1fr) 0;
  }
  .workspace.leftPanel-hidden.rightPanel-hidden {
    grid-template-columns: 0 minmax(0, 1fr) 0;
  }
}
@media (max-width: 1000px) {
  .pm-shell main {
    gap: 20px !important;
  }
  .pm-list {
    grid-template-columns: 1fr;
  }
  .pm-welcome h2 {
    font-size: 26px;
  }
  .status-engineering {
    max-width: 70vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .ribbon-command {
    min-width: 60px;
  }
  .professional-group {
    padding-left: 8px;
    padding-right: 8px;
  }
}
@media (max-width: 600px) {
  .pm-shell {
    padding: 18px !important;
  }
  .pm-shell main {
    display: block !important;
  }
  .pm-primary-actions {
    margin-bottom: 25px;
  }
  .pm-list {
    max-height: 35vh;
  }
  .service-dialog {
    padding: 14px !important;
  }
  .engineering-inspector {
    max-height: 70vh;
  }
}
