:root {
  --bg: #071318;
  --bg-deep: #040d10;
  --header: #091a20;
  --ribbon: #0c232a;
  --panel: #0b1e24;
  --panel-raised: #102930;
  --surface: #14323a;
  --surface-hover: #193c45;
  --line: #24454e;
  --line-soft: #17343c;
  --text: #edf6f7;
  --muted: #91aeb5;
  --faint: #58747b;
  --accent: #49d4a0;
  --accent-strong: #24b985;
  --accent-wash: rgba(73, 212, 160, 0.13);
  --danger: #f06a6a;
  --header-h: 54px;
  --tabs-h: 34px;
  --ribbon-h: 112px;
  --status-h: 30px;
  --left-w: 272px;
  --right-w: 286px;
  --shadow: 0 18px 46px rgba(0, 0, 0, 0.38);
}
* {
  box-sizing: border-box;
}
html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg-deep);
  color: var(--text);
  font-family: 'Segoe UI Variable', 'Segoe UI', Arial, sans-serif;
  font-size: 14px;
}
button,
select {
  font: inherit;
}
.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
svg:not(.leaflet-zoom-animated) {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.app-shell {
  height: 100%;
  display: grid;
  grid-template-rows: var(--header-h) calc(var(--tabs-h) + var(--ribbon-h)) minmax(0, 1fr) var(
      --status-h
    );
  background: var(--bg);
}
.app-header {
  display: grid;
  grid-template-columns: minmax(270px, 1fr) auto minmax(270px, 1fr);
  align-items: center;
  padding: 0 12px;
  background: linear-gradient(180deg, #0d242b, #08191e);
  border-bottom: 1px solid var(--line);
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(73, 212, 160, 0.42);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(73, 212, 160, 0.18), rgba(73, 212, 160, 0.04));
  color: var(--accent);
  box-shadow: inset 0 0 18px rgba(73, 212, 160, 0.08);
}
.brand-mark svg {
  width: 24px;
  height: 24px;
}
.brand-copy {
  min-width: 0;
}
.brand-copy strong {
  display: block;
  font-size: 15px;
  letter-spacing: 0.2px;
}
.brand-copy span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.25px;
  white-space: nowrap;
}
.document-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cfdee1;
  font-size: 13px;
}
.document-title small {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 10px;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(73, 212, 160, 0.7);
}
.header-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}
.header-button,
.icon-button {
  border: 1px solid var(--line);
  background: var(--panel-raised);
  color: var(--text);
  cursor: pointer;
}
.header-button {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border-radius: 6px;
}
.header-button:hover,
.icon-button:hover {
  border-color: #3d6974;
  background: var(--surface-hover);
}
.header-button.primary {
  border-color: rgba(73, 212, 160, 0.48);
  background: var(--accent);
  color: #062219;
  font-weight: 700;
}
.icon-button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 6px;
}
.mobile-panel-button {
  display: none;
}
.ribbon {
  position: relative;
  background: var(--ribbon);
  border-bottom: 1px solid var(--line);
  z-index: 15;
}
.ribbon-tabs {
  height: var(--tabs-h);
  display: flex;
  align-items: end;
  padding: 0 10px;
  border-bottom: 1px solid var(--line-soft);
  background: #081a20;
}
.ribbon-tab {
  height: 33px;
  padding: 0 18px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}
.ribbon-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.025);
}
.ribbon-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: rgba(73, 212, 160, 0.045);
}
.ribbon-content {
  height: var(--ribbon-h);
  position: relative;
  overflow: hidden;
}
.ribbon-page {
  height: 100%;
  display: none;
  align-items: stretch;
  padding: 7px 38px 5px 8px;
}
.ribbon-page.active {
  display: flex;
}
.ribbon-group {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 4px;
  min-width: max-content;
  padding: 2px 12px 21px 6px;
  border-right: 1px solid var(--line-soft);
}
.ribbon-group:last-of-type {
  border-right: 0;
}
.ribbon-group-label {
  position: absolute;
  left: 5px;
  right: 10px;
  bottom: 2px;
  color: var(--faint);
  font-size: 10px;
  text-align: center;
  letter-spacing: 0.35px;
}
.ribbon-command {
  min-width: 60px;
  height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #d8e7e9;
  font-size: 11px;
  cursor: pointer;
}
.ribbon-command svg {
  width: 19px;
  height: 19px;
  color: #9ec4cc;
}
.ribbon-command.large {
  height: 74px;
  min-width: 76px;
}
.ribbon-command.large svg {
  width: 26px;
  height: 26px;
}
.ribbon-command:hover {
  border-color: var(--line);
  background: var(--surface);
}
.ribbon-command.active {
  border-color: rgba(73, 212, 160, 0.36);
  background: var(--accent-wash);
  color: var(--accent);
}
.ribbon-command.active svg {
  color: var(--accent);
}
.compact-actions {
  display: grid;
  grid-template-columns: repeat(2, 72px);
  grid-template-rows: repeat(2, 34px);
  gap: 3px;
  padding-bottom: 21px;
}
.compact-actions .ribbon-command {
  height: 34px;
  min-width: 72px;
  flex-direction: row;
  justify-content: flex-start;
}
.compact-actions .ribbon-command svg {
  width: 15px;
  height: 15px;
}
.field-group {
  min-width: 270px;
  flex-direction: column;
  padding: 8px 16px 21px 8px;
}
.field-group label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
}
.field-group select,
.modal select {
  width: 100%;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #0a1b20;
  color: var(--text);
  padding: 0 30px 0 9px;
}
.ribbon-collapse {
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #0a1c21;
  color: var(--muted);
  cursor: pointer;
}
.ribbon-collapse svg {
  width: 14px;
  height: 14px;
  transform: rotate(180deg);
}
.ribbon.collapsed {
  --ribbon-h: 0;
}
.ribbon.collapsed .ribbon-content {
  overflow: visible;
}
.ribbon.collapsed .ribbon-page {
  display: none;
}
.ribbon.collapsed .ribbon-collapse {
  bottom: -28px;
}
.ribbon.collapsed .ribbon-collapse svg {
  transform: none;
}
.workspace {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: var(--left-w) minmax(320px, 1fr) var(--right-w);
  overflow: hidden;
}
.dock-panel {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--panel), #08191e);
  z-index: 8;
}
.explorer-panel {
  border-right: 1px solid var(--line);
}
.properties-panel {
  border-left: 1px solid var(--line);
}
.dock-header {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-bottom: 1px solid var(--line-soft);
}
.dock-header h2 {
  margin: 1px 0 0;
  font-size: 15px;
  font-weight: 650;
}
.eyebrow {
  display: block;
  color: var(--accent);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.2px;
}
.panel-close {
  display: none;
}
.project-tree-root {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 12px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.018);
}
.project-tree-root > svg {
  color: var(--accent);
}
.project-tree-root strong,
.project-tree-root span {
  display: block;
}
.project-tree-root strong {
  font-size: 12px;
}
.project-tree-root span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}
.dock-section-title {
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.65px;
  text-transform: uppercase;
}
.badge {
  min-width: 20px;
  padding: 2px 6px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--accent);
  text-align: center;
}
.layer-list {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 2px 8px;
}
.layer-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 9px 8px;
  margin-bottom: 3px;
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
}
.layer-row:hover {
  background: rgba(255, 255, 255, 0.025);
}
.layer-row.selected {
  border-color: rgba(73, 212, 160, 0.34);
  background: var(--accent-wash);
}
.layer-row input {
  accent-color: var(--accent);
}
.layer-row > div {
  min-width: 0;
}
.layer-row .layer-name {
  overflow: hidden;
  color: #dcebed;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.layer-row .meta {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}
.empty-state {
  height: 100%;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}
.empty-state svg {
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  color: var(--faint);
}
.empty-state strong {
  color: #c9d9dc;
  font-size: 12px;
}
.empty-state span {
  max-width: 170px;
  margin-top: 5px;
  font-size: 10px;
  line-height: 1.5;
}
.dock-footer {
  padding: 9px;
  border-top: 1px solid var(--line-soft);
}
.secondary-action {
  width: 100%;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel-raised);
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
}
.secondary-action:hover {
  border-color: rgba(240, 106, 106, 0.5);
  color: #ffc0c0;
}
.secondary-action svg {
  width: 14px;
  height: 14px;
}
.property-section {
  padding: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.property-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(36, 69, 78, 0.36);
  font-size: 11px;
}
.property-row:last-child {
  border-bottom: 0;
}
.property-row span {
  color: var(--muted);
}
.property-row strong {
  max-width: 145px;
  overflow: hidden;
  color: #dcebed;
  font-weight: 550;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.feature-section {
  flex: 1;
  min-height: 130px;
  overflow: auto;
}
.feature-section pre {
  margin: 3px 0;
  padding: 9px;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  background: #07161a;
  color: #bcd0d4;
  font:
    10px/1.55 'Cascadia Mono',
    Consolas,
    monospace;
  white-space: pre-wrap;
  word-break: break-word;
}
.map-shell {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #10191d;
}
.map-shell #map {
  width: 100%;
  height: 100%;
  background: #10191d;
}
.map-overlay {
  position: absolute;
  top: 12px;
  left: 52px;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  border: 1px solid rgba(36, 69, 78, 0.72);
  border-radius: 5px;
  background: rgba(7, 19, 24, 0.84);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);
}
.map-overlay span {
  color: var(--accent);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1px;
}
.map-overlay strong {
  font-size: 11px;
}
.map-watermark {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid rgba(36, 69, 78, 0.7);
  border-radius: 5px;
  background: rgba(7, 19, 24, 0.8);
  color: #b7ced2;
  font-size: 9px;
  letter-spacing: 0.35px;
}
.map-watermark svg {
  width: 13px;
  height: 13px;
  color: var(--accent);
}
.mobile-properties-button {
  display: none;
}
.leaflet-container {
  font-family: inherit;
}
.leaflet-bar {
  border: 1px solid var(--line) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25) !important;
}
.leaflet-bar a {
  border-bottom-color: var(--line) !important;
  background: #0c2228 !important;
  color: var(--text) !important;
}
.leaflet-control-attribution {
  background: rgba(7, 19, 24, 0.82) !important;
  color: #9bb4ba !important;
  font-size: 9px !important;
}
.leaflet-control-attribution a {
  color: var(--accent) !important;
}
.statusbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(260px, 1fr);
  align-items: center;
  padding: 0 10px;
  border-top: 1px solid var(--line);
  background: #061419;
  color: var(--muted);
  font-size: 10px;
  z-index: 20;
}
.status-message {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.status-message strong {
  overflow: hidden;
  color: #bfd1d5;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.coordinate-readout {
  display: flex;
  gap: 16px;
  font-family: 'Cascadia Mono', Consolas, monospace;
}
.coordinate-readout b {
  color: #d6e5e7;
  font-weight: 500;
}
.status-meta {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
}
.status-meta span:first-child {
  color: var(--accent);
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(1, 8, 10, 0.72);
  backdrop-filter: blur(3px);
}
.hidden {
  display: none !important;
}
.modal {
  position: fixed;
  z-index: 901;
  left: 50%;
  top: 50%;
  width: min(780px, calc(100vw - 32px));
  max-height: 82vh;
  overflow: auto;
  transform: translate(-50%, -50%);
  border: 1px solid #31555e;
  border-radius: 8px;
  background: #0a2026;
  box-shadow: var(--shadow);
}
.modal-head {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}
.modal-head strong {
  display: block;
  margin-top: 2px;
  font-size: 16px;
}
.modal-body {
  padding: 16px;
}
.format-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}
.format-card {
  min-height: 88px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-raised);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.format-card:hover {
  border-color: var(--accent);
  background: var(--surface);
}
.format-card span {
  color: var(--accent);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}
.format-card b {
  font-size: 13px;
}
.format-card small,
.hint {
  color: var(--muted);
  font-size: 10px;
}
.format-card.disabled {
  opacity: 0.42;
  cursor: not-allowed;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
.form-row label {
  color: var(--muted);
  font-size: 10px;
}
.form-row select {
  display: block;
  margin-top: 6px;
}
.hint {
  margin: 14px 2px 0;
  line-height: 1.5;
}
.panel-scrim {
  display: none;
}
* {
  scrollbar-width: thin;
  scrollbar-color: #31555e #08191e;
}
button:focus-visible,
select:focus-visible,
.layer-row:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
@media (max-width: 1100px) {
  :root {
    --left-w: 232px;
    --right-w: 248px;
  }
  .brand-copy span {
    display: none;
  }
  .ribbon-command {
    min-width: 54px;
    padding-inline: 5px;
  }
  .ribbon-group {
    padding-right: 7px;
  }
}
@media (max-width: 840px) {
  :root {
    --ribbon-h: 92px;
  }
  .app-header {
    grid-template-columns: 1fr auto;
  }
  .document-title {
    display: none;
  }
  .mobile-panel-button {
    display: grid;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .dock-panel {
    position: absolute;
    top: 0;
    bottom: 0;
    width: min(310px, 88vw);
    z-index: 700;
    box-shadow: var(--shadow);
    transition: transform 0.22s ease;
  }
  .explorer-panel {
    left: 0;
    transform: translateX(-105%);
  }
  .properties-panel {
    right: 0;
    transform: translateX(105%);
  }
  .dock-panel.open {
    transform: translateX(0);
  }
  .panel-close {
    display: grid;
  }
  .panel-scrim.visible {
    position: absolute;
    inset: 0;
    display: block;
    z-index: 690;
    background: rgba(2, 9, 11, 0.58);
  }
  .mobile-properties-button {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 510;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #0b2229;
    color: var(--text);
  }
  .ribbon-page {
    overflow-x: auto;
  }
  .ribbon-group-label {
    display: none;
  }
  .ribbon-group {
    padding-bottom: 4px;
  }
  .ribbon-command,
  .ribbon-command.large {
    height: 76px;
  }
  .compact-actions {
    display: flex;
  }
  .format-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .statusbar {
    grid-template-columns: 1fr auto;
  }
  .coordinate-readout {
    display: none;
  }
  .status-meta span:last-child {
    display: none;
  }
}
@media (max-width: 560px) {
  :root {
    --header-h: 50px;
    --ribbon-h: 82px;
    --tabs-h: 32px;
  }
  .brand-mark {
    width: 32px;
    height: 32px;
  }
  .brand-copy strong {
    font-size: 13px;
  }
  .header-button span {
    display: none;
  }
  .header-button {
    width: 34px;
    justify-content: center;
    padding: 0;
  }
  .ribbon-tab {
    padding: 0 12px;
    font-size: 12px;
  }
  .ribbon-page {
    padding-left: 4px;
  }
  .ribbon-command,
  .ribbon-command.large {
    min-width: 56px;
    height: 66px;
    font-size: 9px;
  }
  .ribbon-command.large svg {
    width: 21px;
    height: 21px;
  }
  .compact-actions .ribbon-command {
    min-width: 56px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .format-grid {
    grid-template-columns: 1fr 1fr;
  }
  .format-card {
    min-height: 72px;
  }
  .status-meta {
    display: none;
  }
  .statusbar {
    grid-template-columns: 1fr;
  }
  .map-overlay {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
.workspace.leftPanel-hidden {
  grid-template-columns: 0 minmax(320px, 1fr) var(--right-w);
}
.workspace.rightPanel-hidden {
  grid-template-columns: var(--left-w) minmax(320px, 1fr) 0;
}
.workspace.leftPanel-hidden.rightPanel-hidden {
  grid-template-columns: 0 minmax(320px, 1fr) 0;
}
.dock-panel.desktop-hidden {
  visibility: hidden;
  overflow: hidden;
}
body.ribbon-is-collapsed .app-shell {
  grid-template-rows: var(--header-h) var(--tabs-h) minmax(0, 1fr) var(--status-h);
}
.crs-group {
  min-width: 430px;
  display: grid;
  grid-template-columns: 190px 230px;
  grid-template-rows: 24px 34px 18px;
  align-content: start;
  gap: 4px 8px;
  padding: 3px 16px 21px 8px;
}
.crs-group label {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
}
.crs-group input,
.crs-group select {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #07191e;
  color: var(--text);
  padding: 0 9px;
}
.crs-group input:focus,
.crs-group select:focus {
  border-color: var(--accent);
  outline: none;
}
.crs-count {
  grid-column: 1/-1;
  color: var(--faint);
  font-size: 9px;
}
.crs-summary {
  width: 245px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.018);
}
.crs-summary span,
.crs-summary small {
  color: var(--muted);
  font-size: 10px;
}
.crs-summary strong {
  max-width: 225px;
  overflow: hidden;
  color: var(--accent);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 840px) {
  .crs-group {
    min-width: 390px;
    grid-template-columns: 170px 205px;
  }
  .crs-summary {
    width: 210px;
  }
}
/* v1.2 compact professional workspace */
:root {
  --header-h: 46px;
  --tabs-h: 29px;
  --ribbon-h: 82px;
  --status-h: 27px;
  --left-w: clamp(185px, 15vw, 225px);
  --right-w: clamp(185px, 15vw, 225px);
}
.app-header {
  padding-inline: 9px;
}
.brand-mark {
  width: 31px;
  height: 31px;
}
.brand-mark svg {
  width: 20px;
  height: 20px;
}
.brand-copy strong {
  font-size: 13px;
}
.brand-copy span {
  font-size: 8px;
}
.header-button {
  height: 30px;
}
.ribbon-tabs {
  align-items: center;
  gap: 1px;
  padding: 0 7px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.ribbon-tabs::-webkit-scrollbar {
  display: none;
}
.ribbon-tab {
  flex: 0 0 auto;
  height: 28px;
  padding: 0 10px;
  font-size: 11px;
}
.ribbon-page {
  padding: 4px 34px 3px 6px;
  overflow: visible;
}
.ribbon-group {
  padding: 1px 8px 17px 4px;
}
.ribbon-command {
  min-width: 52px;
  height: 40px;
  gap: 2px;
  padding: 3px 5px;
  font-size: 9px;
}
.ribbon-command svg {
  width: 16px;
  height: 16px;
}
.ribbon-command.large {
  height: 57px;
  min-width: 62px;
}
.ribbon-command.large svg {
  width: 21px;
  height: 21px;
}
.compact-actions {
  grid-template-columns: repeat(2, 62px);
  grid-template-rows: repeat(2, 27px);
  padding-bottom: 17px;
}
.compact-actions .ribbon-command {
  height: 27px;
  min-width: 62px;
  font-size: 9px;
}
.field-group {
  min-width: 220px;
  padding: 4px 10px 17px 5px;
}
.field-group label {
  font-size: 9px;
}
.field-group select {
  height: 27px;
  font-size: 10px;
}
.ribbon-group-label {
  font-size: 8px;
}
.dock-header {
  height: 46px;
  padding-inline: 9px;
}
.dock-header h2 {
  font-size: 13px;
}
.project-tree-root {
  margin: 8px;
  padding: 7px;
}
.property-section {
  padding: 8px;
}
.dock-section-title {
  height: 25px;
  padding-inline: 8px;
}
.layer-list {
  padding-inline: 5px;
}
.layer-row {
  padding: 7px 5px;
}
.dock-footer {
  padding: 6px;
}
.panel-tabs {
  display: flex;
  flex: 0 0 auto;
  gap: 2px;
  padding: 5px;
  border-bottom: 1px solid var(--line-soft);
  overflow-x: auto;
  scrollbar-width: thin;
}
.panel-tab {
  flex: 0 0 auto;
  height: 25px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-size: 9px;
  cursor: pointer;
}
.panel-tab:hover {
  background: var(--surface);
}
.panel-tab.active {
  border-color: rgba(73, 212, 160, 0.36);
  background: var(--accent-wash);
  color: var(--accent);
}
.panel-tab-content {
  display: none;
  min-height: 0;
  flex: 1;
  overflow: auto;
}
.panel-tab-content.active {
  display: flex;
  flex-direction: column;
}
.panel-content-pad {
  padding: 9px;
}
.panel-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
}
.panel-field select {
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #07191e;
  color: var(--text);
  padding: 0 7px;
}
.panel-empty {
  margin: auto;
  padding: 18px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}
.feature-section {
  flex: 1;
}
.ribbon-menu-wrap {
  position: relative;
  align-self: flex-start;
  margin-left: 3px;
}
.command-menu-trigger {
  height: 57px;
  min-width: 62px;
}
.command-dropdown {
  position: absolute;
  z-index: 850;
  top: 60px;
  right: 0;
  width: 270px;
  max-height: min(430px, calc(100vh - 190px));
  overflow: auto;
  padding: 5px;
  border: 1px solid #31555e;
  border-radius: 6px;
  background: #081b20;
  box-shadow: var(--shadow);
}
.command-dropdown[hidden] {
  display: none;
}
.command-dropdown-item {
  width: 100%;
  min-height: 31px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #dce9eb;
  font-size: 10px;
  text-align: left;
  cursor: pointer;
}
.command-dropdown-item:hover:not(:disabled) {
  background: var(--surface);
  color: var(--accent);
}
.command-dropdown-item small {
  color: var(--faint);
  font-size: 8px;
}
.command-dropdown-item.future-command {
  opacity: 0.44;
  cursor: not-allowed;
}
.help-content {
  font-size: 12px;
  line-height: 1.65;
}
.help-content h3 {
  margin: 5px 0 8px;
  color: var(--accent);
  font-size: 14px;
}
.help-content ol {
  padding-left: 20px;
}
.about-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(73, 212, 160, 0.4);
  border-radius: 12px;
  background: var(--accent-wash);
  color: var(--accent);
}
.about-mark svg {
  width: 32px;
  height: 32px;
}
.ui-hidden {
  display: none !important;
}
.north-arrow {
  position: absolute;
  z-index: 700;
  right: 18px;
  top: 18px;
  width: 42px;
  height: 58px;
  display: grid;
  place-items: center;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  background: rgba(7, 23, 27, 0.82);
  color: #fff;
  pointer-events: none;
}
.north-arrow b {
  font-size: 11px;
  color: var(--accent);
}
.north-arrow span {
  font-size: 24px;
  line-height: 1;
}
.panel-action {
  margin: 14px;
  width: calc(100% - 28px);
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.panel-action:hover,
.panel-action:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
}
.attribute-preview {
  max-height: calc(100vh - 245px);
  overflow: auto;
  padding: 12px;
  color: #bdd0d4;
  font-size: 10px;
  white-space: pre-wrap;
}
.panel-range {
  display: grid;
  gap: 10px;
  padding: 16px;
  color: var(--muted);
  font-size: 11px;
}
.panel-range input {
  accent-color: var(--accent);
}
.metadata-grid {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px 10px;
  padding: 16px;
  font-size: 11px;
}
.metadata-grid dt {
  color: var(--faint);
}
.metadata-grid dd {
  margin: 0;
  color: var(--text);
  overflow-wrap: anywhere;
}
.feature-label {
  border: 1px solid var(--accent) !important;
  background: rgba(7, 23, 27, 0.88) !important;
  color: #fff !important;
  box-shadow: none !important;
}
.context-menu {
  position: fixed;
  z-index: 1100;
  width: 160px;
  padding: 5px;
  border: 1px solid #31555e;
  border-radius: 6px;
  background: #081b20;
  box-shadow: var(--shadow);
}
.context-menu button {
  width: 100%;
  height: 31px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.context-menu button:hover,
.context-menu button:focus-visible {
  background: var(--surface);
  color: var(--accent);
  outline: none;
}
.project-manager-screen {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 28px;
  background: radial-gradient(circle at 75% 20%, #123b42 0, #07171b 42%, #030b0e 100%);
  color: var(--text);
  transition: opacity 0.18s;
}
.project-manager-screen.closed {
  display: none;
}
.pm-shell {
  width: min(1040px, 100%);
  min-height: min(690px, calc(100vh - 56px));
  display: grid;
  grid-template-rows: auto 1fr auto;
  border: 1px solid #31555e;
  border-radius: 12px;
  background: rgba(7, 23, 27, 0.96);
  box-shadow: 0 28px 80px #000b;
  overflow: hidden;
}
.pm-shell > header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 25px 30px;
  border-bottom: 1px solid var(--line);
}
.pm-logo {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent);
  color: #061418;
  font-size: 25px;
  font-weight: 900;
}
.pm-shell h1,
.pm-shell h2,
.pm-shell h3 {
  margin: 0;
}
.pm-shell header p,
.pm-welcome p {
  margin: 4px 0 0;
  color: var(--muted);
}
.pm-shell main {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  min-height: 0;
}
.pm-welcome {
  padding: 52px;
}
.pm-welcome > span,
.project-dialog header span {
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
}
.pm-welcome h2 {
  margin-top: 7px;
  font-size: 30px;
}
.pm-primary-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 32px;
}
.pm-primary-actions button,
.pm-shell footer button,
.project-dialog button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.pm-primary-actions button:first-child {
  background: var(--accent);
  color: #061418;
  font-weight: 800;
}
.pm-primary-actions button:hover,
.pm-primary-actions button:focus-visible {
  border-color: var(--accent);
  outline: none;
}
.pm-shell aside {
  padding: 35px 28px;
  border-left: 1px solid var(--line);
  background: #071419;
}
.pm-shell aside h3 {
  margin: 0 0 10px;
  font-size: 12px;
}
.pm-shell aside h3:not(:first-child) {
  margin-top: 28px;
}
.pm-list {
  display: grid;
  gap: 7px;
}
.pm-list > span {
  color: var(--faint);
  font-size: 11px;
}
.pm-list button {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.pm-list button:hover {
  background: var(--surface);
}
.pm-list small {
  color: var(--faint);
}
.pm-shell > footer {
  display: flex;
  gap: 8px;
  padding: 12px 24px;
  border-top: 1px solid var(--line);
}
.pm-shell > footer button {
  min-height: 34px;
  padding: 0 16px;
  background: transparent;
}
.project-dialog {
  width: min(720px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid #31555e;
  border-radius: 10px;
  background: #0a2026;
  color: var(--text);
  box-shadow: var(--shadow);
}
.project-dialog::backdrop {
  background: #000a;
  backdrop-filter: blur(3px);
}
.project-dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.project-dialog header button {
  width: 36px;
  min-height: 36px;
  font-size: 22px;
}
.project-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  padding: 20px;
}
.project-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
}
.project-form .wide {
  grid-column: 1/-1;
}
.project-form input,
.project-form select,
.project-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #07171b;
  color: var(--text);
  padding: 9px;
  font: inherit;
}
.project-dialog menu {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 20px 20px;
}
.project-dialog menu button {
  padding: 0 18px;
}
.project-dialog #createProjectBtn {
  background: var(--accent);
  color: #061418;
  font-weight: 800;
}
.crs-manager-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: grid;
  place-items: center;
  padding: 22px;
  background: #000b;
}
.crs-window {
  width: min(1100px, 100%);
  height: min(760px, calc(100vh - 44px));
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  border: 1px solid #31555e;
  border-radius: 10px;
  background: #081b20;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.crs-window > header,
.crs-window > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.crs-window > footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}
.crs-window header span {
  color: var(--accent);
  font-size: 9px;
  letter-spacing: 1.3px;
}
.crs-window h2 {
  margin: 2px 0 0;
  font-size: 18px;
}
.crs-window button {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.crs-window header button {
  width: 34px;
  height: 34px;
  font-size: 20px;
}
.crs-toolbar {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 0.7fr auto;
  gap: 7px;
  padding: 12px 16px;
}
.crs-toolbar input {
  min-width: 0;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #061418;
  color: var(--text);
  padding: 0 10px;
}
.crs-toolbar button {
  padding: 0 18px;
  background: var(--accent);
  color: #061418;
  font-weight: 800;
}
.crs-window nav {
  display: flex;
  gap: 3px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}
.crs-window nav button {
  padding: 8px 13px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
}
.crs-window nav button.active {
  border-bottom-color: var(--accent);
  color: var(--accent);
}
.crs-window main {
  display: grid;
  grid-template-columns: 1fr 300px;
  min-height: 0;
}
.crs-window main > section {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
}
.crs-table-head,
.crs-result {
  display: grid;
  grid-template-columns: 110px 1.5fr 1fr;
  gap: 10px;
  align-items: center;
}
.crs-table-head {
  padding: 9px 13px;
  color: var(--faint);
  font-size: 9px;
  text-transform: uppercase;
}
.crs-results {
  overflow: auto;
  padding: 0 8px 10px;
}
.crs-result {
  width: 100%;
  min-height: 44px;
  margin-bottom: 3px;
  padding: 6px 8px;
  border-color: transparent !important;
  background: transparent !important;
  text-align: left;
}
.crs-result:hover,
.crs-result.selected {
  background: var(--surface) !important;
  border-color: var(--accent) !important;
}
.crs-result b {
  color: var(--accent);
}
.crs-result small {
  color: var(--muted);
}
.crs-empty {
  padding: 20px;
  color: var(--muted);
}
#crsPreview {
  padding: 18px;
  border-left: 1px solid var(--line);
  background: #071419;
  overflow: auto;
}
#crsPreview h3 {
  margin: 0 0 8px;
  color: var(--accent);
}
#crsPreview strong {
  font-size: 13px;
}
#crsPreview dl {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 8px;
  margin: 20px 0;
  font-size: 10px;
}
#crsPreview dt {
  color: var(--faint);
}
#crsPreview dd {
  margin: 0;
  overflow-wrap: anywhere;
}
#crsPreview button {
  width: 100%;
  height: 36px;
}
.crs-window > footer > div {
  display: flex;
  gap: 7px;
}
.crs-window > footer button {
  height: 34px;
  padding: 0 16px;
}
.crs-window > footer button.primary {
  background: var(--accent);
  color: #061418;
  font-weight: 800;
}
.crs-native-hidden {
  display: none !important;
}
.crs-launch-button {
  width: 260px;
  min-height: 47px;
  display: grid;
  gap: 2px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #07171b;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.crs-launch-button b {
  color: var(--accent);
}
.crs-launch-button span {
  color: var(--muted);
  font-size: 10px;
}
@media (max-width: 760px) {
  .pm-shell main {
    grid-template-columns: 1fr;
  }
  .pm-shell aside {
    display: none;
  }
  .pm-welcome {
    padding: 30px;
  }
  .project-form {
    grid-template-columns: 1fr;
  }
  .project-form .wide {
    grid-column: auto;
  }
  .crs-toolbar {
    grid-template-columns: 1fr 1fr;
  }
  .crs-toolbar input:first-child {
    grid-column: 1/-1;
  }
  .crs-window main {
    grid-template-columns: 1fr;
  }
  #crsPreview {
    display: none;
  }
  .crs-table-head,
  .crs-result {
    grid-template-columns: 90px 1fr;
  }
  .crs-table-head span:last-child,
  .crs-result small {
    display: none;
  }
}
.operation-progress {
  position: fixed;
  inset: 0;
  z-index: 2300;
  display: grid;
  place-items: center;
  background: #02090ca8;
  backdrop-filter: blur(2px);
}
.operation-progress > div {
  min-width: 260px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px;
  border: 1px solid #31555e;
  border-radius: 8px;
  background: #081b20;
  box-shadow: var(--shadow);
}
.progress-spinner {
  width: 22px;
  height: 22px;
  border: 3px solid #31555e;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: progress-spin 0.7s linear infinite;
}
@keyframes progress-spin {
  to {
    transform: rotate(360deg);
  }
}
.crs-group {
  min-width: 390px;
  grid-template-columns: 170px 205px;
  grid-template-rows: 19px 28px 14px;
  padding: 1px 10px 17px 5px;
}
.crs-group input,
.crs-group select {
  height: 28px;
  font-size: 10px;
}
.crs-summary {
  width: 215px;
  padding: 5px 8px;
}
.crs-summary strong {
  font-size: 10px;
}
@media (max-width: 840px) {
  :root {
    --ribbon-h: 78px;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .ribbon-tab {
    padding-inline: 9px;
  }
  .ribbon-command,
  .ribbon-command.large {
    height: 55px;
  }
  .command-dropdown {
    position: fixed;
    top: 110px;
    right: 10px;
    left: 10px;
    width: auto;
  }
  .crs-group {
    min-width: 370px;
  }
  .dock-panel {
    width: min(285px, 88vw);
  }
}
.layer-toolbar {
  display: grid;
  grid-template-columns: 28px 28px 1fr 1fr 1fr;
  gap: 3px;
  padding: 5px;
  border-bottom: 1px solid var(--line-soft);
}
.layer-toolbar button {
  height: 27px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel-raised);
  color: var(--muted);
  font-size: 9px;
  cursor: pointer;
}
.layer-toolbar button:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.opacity-control {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 9px;
}
.opacity-control input {
  min-width: 0;
  flex: 1;
  accent-color: var(--accent);
}
