:root {
  --bg: #f3f6ee;
  --surface: #ffffff;
  --surface-2: #eef4e8;
  --ink: #20251f;
  --muted: #5f6c5d;
  --line: #ccd9c4;
  --green: #5f8f28;
  --green-dark: #2d511d;
  --lime: #b7e300;
  --lime-soft: #e8f7bd;
  --brand-black: #090d09;
  --brand-panel: #172013;
  --cad-left-panel-width: 270px;
  --profile-left-panel-width: 400px;
  --capacity-left-panel-width: 400px;
  --right-panel-width: 292px;
  --panel-resizer-width: 8px;
  --blue: #2c6698;
  --amber: #bd7d20;
  --red: #a33b34;
  --shadow: 0 8px 22px rgba(17, 28, 12, 0.14);
  --radius: 8px;
  --toolbar-scale: 0.82;
  color-scheme: light;
  font-family: Inter, Segoe UI, Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
}

.dimension-text-editor {
  position: fixed;
  z-index: 80;
  width: 118px;
  min-height: 28px;
  padding: 4px 8px;
  border: 2px solid var(--amber);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.96);
  color: #6d4b17;
  font: 700 13px Segoe UI, Arial, sans-serif;
  text-align: center;
  box-shadow: 0 8px 20px rgba(17, 28, 12, 0.18);
}

.dimension-text-editor.hidden {
  display: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
.file-action {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 6px;
  padding: 8px 10px;
  min-height: 36px;
  cursor: pointer;
  white-space: nowrap;
}

button[data-key],
.file-action[data-key] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

button[data-key]::after,
.file-action[data-key]::after {
  content: attr(data-key);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  min-height: 16px;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  color: #1f2933;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.38);
}

button.wide[data-key] {
  justify-content: space-between;
}

button.danger-soft[data-key]::after,
button.danger[data-key]::after {
  color: var(--red);
  background: #fff;
  border-color: #ead0cd;
}

button:hover,
.file-action:hover {
  border-color: var(--green);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

button.primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green-dark);
}

button.quiet {
  background: var(--surface-2);
}

button.danger {
  border-color: #d6b2af;
  color: var(--red);
  background: #fff7f6;
}

button.danger-soft {
  border-color: #dfc0bd;
  color: var(--red);
  background: #fffafa;
}

.wide {
  width: 100%;
}

.app {
  height: 100%;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
}

.topbar {
  display: grid;
  gap: 0;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(9, 13, 9, 0.96), rgba(18, 27, 15, 0.96) 52%, rgba(34, 49, 22, 0.96)),
    url("./assets/sondamais-bg.jpg") right center / auto 180% no-repeat;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  z-index: 5;
}

.topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(14px * var(--toolbar-scale));
  min-width: 0;
  padding: calc(8px * var(--toolbar-scale)) calc(12px * var(--toolbar-scale));
  color: #f4faed;
  border-bottom: 1px solid rgba(183, 227, 0, 0.18);
  position: relative;
  z-index: 1;
}

.topbar-secondary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(12px * var(--toolbar-scale));
  flex-wrap: wrap;
  min-width: 0;
  padding: calc(6px * var(--toolbar-scale)) calc(12px * var(--toolbar-scale));
  color: #f4faed;
  border-bottom: 1px solid rgba(183, 227, 0, 0.14);
  background: rgba(0, 0, 0, 0.18);
}

.topbar-secondary-tools {
  display: inline-flex;
  align-items: center;
  gap: calc(8px * var(--toolbar-scale));
  flex-wrap: wrap;
  margin-left: auto;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 0 1 auto;
  max-width: min(360px, 42vw);
  gap: calc(10px * var(--toolbar-scale));
}

.brand-copy {
  min-width: 0;
}

.brand-copy h1,
.brand-copy p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.view-switcher {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
  margin-left: 0;
  padding: 3px;
  border: 1px solid rgba(183, 227, 0, 0.32);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.view-switcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: calc(32px * var(--toolbar-scale));
  padding: calc(5px * var(--toolbar-scale)) calc(10px * var(--toolbar-scale));
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #d8e8c8;
  font-size: calc(12px * var(--toolbar-scale));
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.view-switcher-btn:hover {
  color: #f4fae8;
  background: rgba(183, 227, 0, 0.12);
  border-color: rgba(183, 227, 0, 0.28);
}

.view-switcher-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: calc(24px * var(--toolbar-scale));
  min-height: calc(20px * var(--toolbar-scale));
  padding: 0 4px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #eef8dc;
  font-size: calc(10px * var(--toolbar-scale));
  font-weight: 800;
  letter-spacing: 0.03em;
}

.view-switcher-btn.is-active {
  color: #142010;
  border-color: rgba(183, 227, 0, 0.85);
  background: linear-gradient(180deg, #d8f24f, #b7e300);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.24);
}

.view-switcher-btn.is-active .view-switcher-icon {
  background: rgba(20, 32, 16, 0.14);
  color: #1a2a12;
}

.mark {
  width: calc(52px * var(--toolbar-scale));
  height: calc(34px * var(--toolbar-scale));
  flex-shrink: 0;
  align-self: center;
  margin-top: calc(-3px * var(--toolbar-scale));
  overflow: hidden;
  border-radius: 7px;
  padding: calc(2px * var(--toolbar-scale)) calc(4px * var(--toolbar-scale)) 0;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(183, 227, 0, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.mark img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  object-fit: cover;
  object-position: top center;
  clip-path: inset(0 0 54% 0);
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.38));
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: calc(18px * var(--toolbar-scale));
  line-height: 1.15;
  letter-spacing: 0;
  color: #f7ffe8;
}

.brand-copy p {
  color: #c6d8bd;
  font-size: calc(12px * var(--toolbar-scale));
  margin-top: calc(3px * var(--toolbar-scale));
}

.quick-actions,
.ribbon-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: calc(6px * var(--toolbar-scale));
  flex: 1 1 auto;
  flex-wrap: wrap;
  min-width: 0;
}

.quick-actions > .top-action-draggable {
  cursor: grab;
  transition: opacity 0.16s ease, outline-color 0.16s ease, background 0.16s ease;
}

.quick-actions > .top-action-draggable.is-command-dragging,
.quick-actions > .top-action-draggable.is-drop-target {
  outline: 1px dashed rgba(183, 227, 0, 0.72);
}

.quick-actions > .top-action-draggable.is-command-dragging {
  opacity: 0.52;
  cursor: grabbing;
}

.quick-actions > .top-action-draggable.is-drop-target {
  background: rgba(183, 227, 0, 0.12);
}

.quick-actions button,
.quick-actions .file-action {
  min-height: calc(32px * var(--toolbar-scale));
  padding: calc(6px * var(--toolbar-scale)) calc(9px * var(--toolbar-scale));
  color: #f4f7f8;
  border-color: rgba(183, 227, 0, 0.18);
  background: rgba(255, 255, 255, 0.075);
  font-size: calc(15px * var(--toolbar-scale));
}

.quick-actions a.file-action {
  text-decoration: none;
}

.quick-actions .primary-soft {
  color: #fafff0;
  border-color: rgba(183, 227, 0, 0.55);
  background: linear-gradient(180deg, rgba(106, 155, 43, 0.95), rgba(63, 104, 31, 0.95));
}

.quick-actions .focus-btn.is-active {
  color: #fafff0;
  border-color: rgba(183, 227, 0, 0.72);
  background: rgba(95, 143, 40, 0.45);
}

.export-dropdown {
  position: relative;
  display: inline-flex;
}

.export-main-btn::before {
  content: "";
  width: 0;
  height: 0;
  margin-right: calc(5px * var(--toolbar-scale));
  border-left: calc(4px * var(--toolbar-scale)) solid transparent;
  border-right: calc(4px * var(--toolbar-scale)) solid transparent;
  border-top: calc(5px * var(--toolbar-scale)) solid #d8f08b;
}

.export-menu {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  z-index: 60;
  min-width: calc(220px * var(--toolbar-scale));
  max-height: min(70vh, 440px);
  overflow: auto;
  padding: 8px;
  border: 1px solid rgba(183, 227, 0, 0.26);
  border-radius: 10px;
  background: #14240d;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32);
}

.export-menu-label {
  margin: 6px 8px 4px;
  color: #a8bc98;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.export-menu-label:first-child {
  margin-top: 0;
}

.quick-actions .export-menu button {
  width: 100%;
  justify-content: flex-start;
  min-height: calc(32px * var(--toolbar-scale));
  border-color: transparent;
  background: transparent;
  font-size: calc(13px * var(--toolbar-scale));
  font-weight: 500;
}

.quick-actions .export-menu button:hover {
  background: rgba(183, 227, 0, 0.13);
}

.toolbar-scale-controls {
  display: inline-flex;
  align-items: center;
  gap: calc(4px * var(--toolbar-scale));
  padding: calc(3px * var(--toolbar-scale));
  border: 1px solid rgba(183, 227, 0, 0.18);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.055);
}

.quick-actions .toolbar-scale-btn {
  min-width: calc(31px * var(--toolbar-scale));
  padding-inline: calc(8px * var(--toolbar-scale));
  font-weight: 800;
}

.toolbar-scale-value {
  min-width: calc(42px * var(--toolbar-scale));
  color: #dfeec9;
  font-size: calc(12px * var(--toolbar-scale));
  font-weight: 800;
  text-align: center;
}

.layout-controls {
  display: inline-flex;
  align-items: center;
  gap: calc(4px * var(--toolbar-scale));
  padding: calc(3px * var(--toolbar-scale));
  border: 1px solid rgba(183, 227, 0, 0.18);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.055);
  flex-wrap: wrap;
}

.topbar-secondary .layout-controls button[data-key]::after,
.topbar-secondary .toolbar-scale-controls button[data-key]::after {
  display: none;
}

.save-location-controls {
  display: inline-flex;
  align-items: center;
  gap: calc(6px * var(--toolbar-scale));
  max-width: calc(250px * var(--toolbar-scale));
  padding: calc(3px * var(--toolbar-scale));
  border: 1px solid rgba(183, 227, 0, 0.18);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.055);
}

.quick-actions .save-location-controls button.is-active {
  border-color: rgba(183, 227, 0, 0.48);
  background: rgba(92, 145, 35, 0.58);
}

.save-directory-label {
  min-width: calc(78px * var(--toolbar-scale));
  overflow: hidden;
  color: #dfeec9;
  font-size: calc(12px * var(--toolbar-scale));
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-actions .layout-toggle {
  min-width: calc(36px * var(--toolbar-scale));
}

.quick-actions .layout-toggle.is-active {
  color: #fafff0;
  border-color: rgba(183, 227, 0, 0.72);
  background: rgba(95, 143, 40, 0.45);
}

.quick-actions .layout-toggle:not(.is-active) {
  color: #bac5b3;
  background: rgba(255, 255, 255, 0.045);
}

.ribbon {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-width: 0;
  overflow-x: auto;
  padding: calc(7px * var(--toolbar-scale)) calc(10px * var(--toolbar-scale)) calc(8px * var(--toolbar-scale));
  background: rgba(23, 32, 19, 0.96);
  color: #dfeec9;
  position: relative;
  z-index: 1;
}

.ribbon-group {
  display: grid;
  align-content: space-between;
  gap: calc(6px * var(--toolbar-scale));
  padding: 0 calc(10px * var(--toolbar-scale));
  border-right: 1px solid rgba(183, 227, 0, 0.14);
  border-radius: 7px;
  cursor: grab;
  transition: background 0.16s ease, opacity 0.16s ease, outline-color 0.16s ease;
  position: relative;
}

.ribbon-group::before {
  content: "";
  position: absolute;
  left: calc(2px * var(--toolbar-scale));
  top: calc(5px * var(--toolbar-scale));
  width: calc(5px * var(--toolbar-scale));
  height: calc(18px * var(--toolbar-scale));
  opacity: 0.38;
  background-image: radial-gradient(circle, rgba(226, 244, 197, 0.95) 1px, transparent 1.5px);
  background-size: calc(4px * var(--toolbar-scale)) calc(4px * var(--toolbar-scale));
  pointer-events: none;
}

.ribbon-group:hover {
  background: rgba(183, 227, 0, 0.055);
}

.ribbon-group.is-dragging {
  opacity: 0.48;
  outline: 1px dashed rgba(183, 227, 0, 0.65);
  cursor: grabbing;
}

.ribbon-group.is-drop-target {
  background: rgba(183, 227, 0, 0.12);
}

.ribbon-group:first-child {
  padding-left: 0;
}

.ribbon-group:last-child {
  border-right: 0;
}

.ribbon-group > span {
  font-size: calc(12px * var(--toolbar-scale));
  line-height: 1;
  color: #c6d8bd;
  text-align: center;
  user-select: none;
}

.ribbon button,
.ribbon .file-action {
  min-height: calc(34px * var(--toolbar-scale));
  padding: calc(7px * var(--toolbar-scale)) calc(9px * var(--toolbar-scale));
  color: #f4f7f8;
  border-color: rgba(183, 227, 0, 0.18);
  background: rgba(255, 255, 255, 0.075);
  font-size: calc(15px * var(--toolbar-scale));
}

.ribbon button.toolbar-button-draggable {
  cursor: grab;
}

.ribbon button.is-button-dragging {
  opacity: 0.55;
  cursor: grabbing;
  outline: 1px dashed rgba(183, 227, 0, 0.72);
}

.topbar button[data-key]::after,
.topbar .file-action[data-key]::after {
  min-width: calc(18px * var(--toolbar-scale));
  min-height: calc(16px * var(--toolbar-scale));
  padding: calc(1px * var(--toolbar-scale)) calc(5px * var(--toolbar-scale));
  font-size: calc(10px * var(--toolbar-scale));
}

.ribbon button:hover,
.quick-actions button:hover,
.ribbon .file-action:hover,
.quick-actions .file-action:hover {
  border-color: rgba(183, 227, 0, 0.7);
  background: rgba(183, 227, 0, 0.12);
}

.tool.is-active {
  color: #fafff0;
  border-color: rgba(183, 227, 0, 0.82);
  background: linear-gradient(180deg, #6a9b2b, #3f681f);
}

.app.layout-ribbon-hidden .ribbon {
  display: none;
}

.tool.is-active[data-key]::after {
  color: #233610;
  background: #ffffff;
}

.primary-tool {
  border-color: rgba(140, 215, 162, 0.5) !important;
}

.road-tool,
.asphalt-action,
.sidewalk-tool,
.sidewalk-action {
  border-color: rgba(217, 197, 94, 0.48) !important;
}

.asphalt-action {
  color: #f4f7f8;
  background: linear-gradient(180deg, #51565a, #363a3e);
}

.sidewalk-tool,
.sidewalk-action {
  color: #293021;
  background: linear-gradient(180deg, #eee8d8, #d6cfbc);
}

.file-action {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
}

.file-action input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.view-tabs {
  display: flex;
  gap: 6px;
  padding: 7px 10px;
  background: #edf4e7;
  border-bottom: 1px solid var(--line);
}

.view-tab {
  min-height: 30px;
  padding: 5px 12px;
}

.view-tab.is-active {
  color: #fafff0;
  border-color: var(--green-dark);
  background: linear-gradient(180deg, #6c9e2d, #3d681e);
}

.model-tabs {
  min-height: 38px;
  display: flex;
  align-items: end;
  gap: 4px;
  padding: 4px 10px 0;
  border-top: 1px solid rgba(34, 49, 22, 0.34);
  background: #e6eee0;
  overflow-x: auto;
}

.model-tabs-menu,
.model-tab,
.model-tab-add {
  min-height: 30px;
  border-radius: 8px 8px 0 0;
  border-color: rgba(96, 112, 92, 0.38);
  background: #f8fbf5;
}

.model-tabs-menu {
  width: 34px;
  padding: 5px 7px;
  font-size: 16px;
  line-height: 1;
}

.model-tabs-list {
  display: flex;
  align-items: end;
  gap: 4px;
}

.model-tab-wrap {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(96, 112, 92, 0.38);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #f8fbf5;
  overflow: hidden;
}

.model-tab-wrap.is-active {
  border-color: var(--green-dark);
  background: linear-gradient(180deg, #6c9e2d, #355f1d);
}

.model-tab {
  min-width: 98px;
  justify-content: center;
  min-height: 29px;
  padding: 6px 8px 6px 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
}

.model-tab-wrap.is-active .model-tab {
  color: #fff;
}

.model-tab-close {
  width: 24px;
  min-height: 29px;
  padding: 0;
  border: 0;
  border-left: 1px solid rgba(96, 112, 92, 0.22);
  border-radius: 0;
  color: rgba(36, 48, 30, 0.68);
  background: transparent;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.model-tab-wrap.is-active .model-tab-close {
  color: rgba(255, 255, 255, 0.86);
  border-left-color: rgba(255, 255, 255, 0.22);
}

.model-tab-close:hover:not(:disabled) {
  color: #a12620;
  background: #fff3ef;
}

.model-tab-close:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.model-tab-add {
  width: 38px;
  padding: 4px 0;
  font-size: 24px;
  line-height: 1;
}

.view-pane {
  min-height: 0;
}

.workspace {
  min-height: 0;
  display: grid;
  grid-template-columns: var(--cad-left-panel-width) var(--panel-resizer-width) minmax(380px, 1fr) var(--right-panel-width);
  gap: 10px;
  padding: 10px;
}

.app.layout-left-hidden #cadView {
  grid-template-columns: minmax(380px, 1fr) var(--right-panel-width);
}

.app.layout-right-hidden #cadView {
  grid-template-columns: var(--cad-left-panel-width) var(--panel-resizer-width) minmax(380px, 1fr);
}

.app.layout-left-hidden.layout-right-hidden #cadView {
  grid-template-columns: minmax(380px, 1fr);
}

.app.layout-left-hidden .left-panel,
.app.layout-right-hidden .right-panel,
.app.layout-left-hidden .left-panel-resizer {
  display: none;
}

.panel-resizer {
  min-width: var(--panel-resizer-width);
  min-height: 0;
  align-self: stretch;
  position: relative;
  cursor: col-resize;
  touch-action: none;
  user-select: none;
  border: 1px solid rgba(135, 160, 105, 0.42);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(242, 248, 236, 0.96), rgba(215, 230, 202, 0.92));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.46);
}

.panel-resizer::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 46px;
  transform: translate(-50%, -50%);
  border-radius: 4px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(69, 91, 44, 0.58) 0 4px,
    transparent 4px 8px
  );
}

.panel-resizer:hover,
.panel-resizer.is-dragging {
  border-color: rgba(124, 181, 18, 0.9);
  background: linear-gradient(180deg, #eef8dd, #cfe5ab);
}

body.is-resizing-panel {
  cursor: col-resize;
  user-select: none;
}

.panel {
  min-height: 0;
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel-section {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 10px;
}

.panel-section:last-child {
  border-bottom: 0;
}

.panel-section h2 {
  font-size: 13px;
  line-height: 1.2;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: 0;
}

.panel-section label {
  color: var(--ink);
}

.compact {
  gap: 8px;
}

.stats {
  display: grid;
  gap: 7px;
  margin: 0;
}

.stats div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.stats dd {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.edge-list {
  display: grid;
  gap: 6px;
}

.edge-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 32px;
  padding: 6px 8px;
  font-size: 13px;
}

.edge-list button.is-selected {
  color: #fff;
  border-color: #8b5d18;
  background: var(--amber);
}

.canvas-zone {
  min-width: 0;
  min-height: 0;
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  background: #fbfcfa;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.canvas-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  justify-content: space-between;
  gap: 7px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  min-width: 0;
  min-height: 44px;
  position: relative;
  z-index: 3;
}

.scale-row {
  display: flex;
  align-items: center;
  gap: 7px 10px;
  min-width: 0;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
  width: 100%;
}

.command-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
  width: 100%;
  padding-top: 2px;
}

.scale-row input[type="number"] {
  width: 68px;
  padding: 4px 6px;
}

.ortho-field {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ortho-field select {
  min-height: 28px;
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.toggle-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.toggle-button {
  min-height: 28px;
  padding: 5px 10px;
  color: var(--muted);
  border-color: var(--line);
  background: #fff;
}

.toggle-button.is-active {
  color: #fff;
  border-color: #4f8f23;
  background: #4f8f23;
}

.osnap-menu {
  position: relative;
}

.osnap-menu summary {
  list-style: none;
  cursor: pointer;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
}

.osnap-menu summary::-webkit-details-marker {
  display: none;
}

.osnap-panel {
  position: absolute;
  top: 34px;
  left: 0;
  z-index: 9;
  width: 285px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.osnap-panel label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
}

.osnap-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
}

.osnap-actions button {
  flex: 1;
  min-height: 30px;
  padding: 5px 8px;
}

.precision-dialog {
  position: fixed;
  top: 132px;
  left: 50%;
  z-index: 80;
  width: min(560px, calc(100vw - 28px));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  padding: 12px;
  border: 1px solid rgba(78, 118, 39, 0.38);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
  transform: translateX(-50%);
}

.precision-header,
.precision-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.precision-header {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--green-dark);
}

.precision-header button {
  width: 28px;
  min-height: 26px;
  padding: 0;
  font-weight: 800;
}

.precision-dialog label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 26px;
  color: var(--ink);
}

.precision-actions {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.precision-actions button {
  flex: 1;
}

.command-field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 420px;
  min-width: min(100%, 280px);
  color: var(--green-dark);
  font-weight: 700;
}

.command-field input {
  width: 100%;
  min-width: 210px;
  padding: 5px 7px;
  border: 1px solid #a9c993;
  border-radius: 6px;
  background: #fbfff4;
  box-shadow: inset 0 0 0 1px rgba(183, 227, 0, 0.12);
}

.status {
  flex: 0 1 330px;
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
  min-width: 150px;
  max-width: 330px;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#cadCanvas {
  width: 100%;
  height: 100%;
  display: block;
  background: #fbfcfa;
  cursor: crosshair;
}

.profile-view {
  min-height: 0;
  display: grid;
  grid-template-columns: var(--profile-left-panel-width) var(--panel-resizer-width) minmax(980px, 1fr);
  gap: 10px;
  padding: 10px;
  overflow-x: auto;
  overflow-y: hidden;
}

.app.layout-left-hidden #profileView {
  grid-template-columns: minmax(980px, 1fr);
}

.app.layout-left-hidden .profile-panel {
  display: none;
}

.app.layout-left-hidden .capacity-panel {
  display: none;
}

.app.layout-left-hidden #capacityView {
  grid-template-columns: minmax(1020px, 1fr);
}

.profile-canvas-zone {
  min-width: 980px;
  min-height: 0;
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  background: #fbfcfa;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

#profileCanvas {
  width: 100%;
  height: 100%;
  display: block;
  background: #f8faf6;
  cursor: grab;
  touch-action: none;
}

#profileCanvas.is-panning {
  cursor: grabbing;
}

#profileCanvas.is-orbiting {
  cursor: move;
}

.view-cube {
  position: absolute;
  top: 58px;
  right: 28px;
  width: 116px;
  height: 128px;
  display: grid;
  grid-template-columns: 30px 48px 30px;
  grid-template-rows: 24px 48px 24px 24px;
  align-items: center;
  justify-items: center;
  color: #33404a;
  user-select: none;
  z-index: 3;
}

.view-cube::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 12px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: rgba(59, 72, 82, 0.11);
  border: 1px solid rgba(55, 70, 80, 0.16);
}

.view-cube button {
  position: relative;
  min-height: 0;
  padding: 0;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 800;
  color: #33404a;
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(78, 92, 104, 0.28);
  box-shadow: 0 4px 10px rgba(32, 37, 31, 0.12);
}

.view-cube button:hover,
.view-cube button.is-active {
  color: #ffffff;
  border-color: #2b67b1;
  background: #2b67b1;
}

.view-cube-face {
  grid-column: 2;
  grid-row: 2;
  width: 48px;
  height: 48px;
}

.view-cube-dir {
  width: 28px;
  height: 22px;
}

.cube-north {
  grid-column: 2;
  grid-row: 1;
}

.cube-west {
  grid-column: 1;
  grid-row: 2;
}

.cube-east {
  grid-column: 3;
  grid-row: 2;
}

.cube-south {
  grid-column: 2;
  grid-row: 3;
}

.view-cube-iso {
  grid-column: 1 / span 3;
  grid-row: 4;
  width: 42px;
  height: 22px;
}

.view-cube-wcs {
  position: absolute;
  left: 34px;
  bottom: 0;
  padding: 2px 8px;
  border-radius: 7px;
  color: #4f5b63;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(78, 92, 104, 0.18);
  font-size: 10px;
  font-weight: 700;
}

.profile-nav-bar {
  position: absolute;
  top: 190px;
  right: 32px;
  display: grid;
  gap: 5px;
  padding: 6px;
  border-radius: 8px;
  background: rgba(52, 62, 70, 0.18);
  border: 1px solid rgba(52, 62, 70, 0.16);
  box-shadow: 0 6px 16px rgba(32, 37, 31, 0.12);
  z-index: 3;
}

.profile-nav-bar button {
  width: 38px;
  min-height: 30px;
  padding: 4px;
  font-size: 11px;
  font-weight: 800;
  color: #33404a;
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(78, 92, 104, 0.24);
}

.profile-nav-bar button:hover {
  color: #ffffff;
  border-color: #2b67b1;
  background: #2b67b1;
}

.view-cube button[data-key]::after,
.profile-nav-bar button[data-key]::after {
  content: none;
}

.profile-command-field input {
  width: 100%;
}

.strat-preview {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfa;
}

.spt-report-action {
  margin-bottom: 8px;
}

.spt-summary {
  margin: 0 0 9px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: #fbfcfa;
  font-size: 12px;
  line-height: 1.35;
}

.spt-summary strong {
  color: var(--ink);
}

.rock-note {
  border-color: #b8c3c6;
  background: #f2f5f4;
  color: #3f4b4e;
}

.topo-action {
  border-color: #b9d58a;
  background: #f5faeb;
}

.profile-point-editor {
  display: grid;
  gap: 9px;
  overflow-x: auto;
  padding-bottom: 3px;
}

.layer-editor-head,
.profile-layer-row {
  display: grid;
  grid-template-columns: 22px 52px 52px minmax(170px, 1fr) 64px 28px;
  align-items: center;
  gap: 5px;
  min-width: 420px;
}

.layer-editor-head {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.profile-layer-editor {
  display: grid;
  gap: 6px;
  max-height: 220px;
  overflow: auto;
  padding-right: 2px;
  padding-bottom: 4px;
}

.profile-layer-swatch {
  width: 16px;
  height: 16px;
  border: 1px solid rgba(32, 37, 31, 0.22);
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}

.profile-layer-row input,
.profile-layer-row select {
  min-width: 0;
  padding: 6px;
  font-size: 12px;
}

.profile-layer-row .layer-remove {
  width: 28px;
  min-height: 28px;
  padding: 0;
  color: #9c2f28;
  border-color: #e7b8b2;
  background: #fff7f6;
  font-weight: 800;
}

.profile-editor-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.profile-editor-actions .primary {
  grid-column: 1 / -1;
}

.spt-blows-editor {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.spt-blows-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--green-dark);
}

.spt-blows-head span {
  font-size: 11px;
  color: var(--muted);
  text-align: right;
}

.spt-blows-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.saved-spt-profile-panel {
  display: grid;
  gap: 7px;
  padding: 8px;
  border: 1px solid #d7e4cf;
  border-radius: 6px;
  background: #fbfdf8;
}

.saved-spt-profile-panel .compact-field {
  margin: 0;
}

.saved-spt-profile-count {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.spt-blows-table-wrap {
  max-width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.spt-blows-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 11px;
}

.spt-blows-table th,
.spt-blows-table td {
  padding: 4px;
  border: 1px solid #d8e4d2;
  text-align: center;
  white-space: nowrap;
}

.spt-blows-table th {
  color: var(--green-dark);
  background: #eef7e8;
  font-weight: 800;
}

.spt-blows-table input {
  width: 54px;
  min-width: 0;
  padding: 4px 5px;
  border: 1px solid #b9cbb1;
  border-radius: 4px;
  text-align: center;
}

.spt-blows-table .spt-result {
  min-width: 44px;
  color: #0f4e7a;
  font-weight: 800;
}

.spt-blows-table .layer-remove {
  width: 24px;
  min-height: 24px;
  padding: 0;
  color: #9c2f28;
  border-color: #e7b8b2;
  background: #fff7f6;
  font-weight: 800;
}

.strat-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
}

.strat-row strong {
  color: var(--ink);
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-legend {
  display: grid;
  gap: 7px;
}

.legend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.legend-swatch {
  width: 18px;
  height: 12px;
  flex: 0 0 auto;
  border: 1px solid rgba(32, 37, 31, 0.18);
  border-radius: 3px;
}

.mini-help {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 7px 9px;
  border-radius: 6px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(207, 216, 204, 0.9);
  font-size: 12px;
  pointer-events: none;
}

.profile-help {
  max-width: calc(100% - 250px);
}

.capacity-view {
  min-height: 0;
  display: grid;
  grid-template-columns: var(--capacity-left-panel-width) var(--panel-resizer-width) minmax(1020px, 1fr);
  gap: 10px;
  padding: 10px;
  overflow: auto;
}

.capacity-panel {
  min-width: 0;
}

.capacity-main {
  min-width: 1020px;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  background: #fbfcfa;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.capacity-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(520px, 1fr) 430px;
  gap: 10px;
  padding: 10px;
}

#capacityCanvas {
  width: 100%;
  height: 100%;
  min-height: 520px;
  display: block;
  background: #f8faf6;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.capacity-results {
  min-height: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.capacity-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.capacity-card {
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfa;
}

.capacity-card strong {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.capacity-card span {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 800;
}

.capacity-card.good span {
  color: #2f6f45;
}

.capacity-card.warn span {
  color: #9c2f28;
}

.table-scroll {
  max-width: 100%;
  overflow: auto;
}

.capacity-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 12px;
}

.capacity-table th,
.capacity-table td {
  padding: 7px 6px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.capacity-table th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.capacity-table tr.is-active {
  background: #f1f8e8;
}

.capacity-status {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.capacity-status.good {
  color: #1c5d32;
  background: #e5f3df;
  border: 1px solid #b9d58a;
}

.capacity-status.warn {
  color: #8a241e;
  background: #fff1ef;
  border: 1px solid #e7b8b2;
}

.capacity-detail {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.capacity-detail-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(207, 216, 204, 0.65);
}

.capacity-detail-row strong {
  color: var(--ink);
}

.foundation-calc-fields {
  display: grid;
  gap: 8px;
}

.capacity-note {
  margin-top: 4px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfa;
  color: var(--muted);
}

.capacity-actions {
  grid-template-columns: 1fr 1fr;
}

.modeler-view {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(760px, 1fr);
  gap: 10px;
  padding: 10px;
  overflow: auto;
}

.modeler-panel {
  min-width: 320px;
}

.modeler-main {
  min-width: 760px;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  background: #fbfcfa;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.modeler-dashboard {
  min-height: 0;
  overflow: auto;
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(420px, 1.05fr);
  gap: 10px;
  padding: 10px;
}

.modeler-stats {
  display: grid;
  gap: 6px;
  font-size: 13px;
}

.modeler-stats span,
.modeler-tree-item,
.modeler-reference-list div,
.modeler-floor-card {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfa;
}

.modeler-stats strong,
.modeler-tree-item strong,
.modeler-floor-card strong {
  color: var(--green-dark);
}

.modeler-tree {
  display: grid;
  gap: 6px;
}

.modeler-tree-item {
  align-items: center;
}

.modeler-tree-item.is-active {
  border-color: #8bb85e;
  background: #eef8e5;
}

.modeler-board {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.modeler-board h2 {
  margin: 0 0 10px;
  color: var(--green-dark);
  font-size: 14px;
  text-transform: uppercase;
}

.modeler-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 8px;
}

.modeler-flow div {
  min-height: 86px;
  padding: 10px;
  border: 1px solid rgba(120, 157, 82, 0.35);
  border-radius: 6px;
  background: linear-gradient(180deg, #fbfdf8, #eef7e9);
}

.modeler-flow strong,
.modeler-flow span {
  display: block;
}

.modeler-flow span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.modeler-reference-list,
.modeler-floor-cards {
  display: grid;
  gap: 8px;
}

.modeler-reference-list span,
.modeler-floor-card span {
  color: var(--muted);
}

@media (max-width: 1180px) {
  .modeler-view {
    grid-template-columns: minmax(300px, 360px) minmax(720px, 1fr);
  }

  .modeler-dashboard {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .capacity-view {
    grid-template-columns: 280px minmax(900px, 1fr);
  }

  .capacity-main {
    min-width: 900px;
  }

  .capacity-layout {
    grid-template-columns: 1fr;
  }

  .capacity-results {
    max-height: 420px;
  }
}

.context-menu {
  position: fixed;
  z-index: 30;
  min-width: 178px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.context-menu button {
  width: 100%;
  display: block;
  min-height: 30px;
  padding: 6px 8px;
  text-align: left;
  border-color: transparent;
  background: transparent;
}

.context-menu button:hover {
  border-color: var(--line);
  background: var(--surface-2);
}

.field {
  display: grid;
  gap: 5px;
  font-size: 12px;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
  background: #fff;
  color: var(--ink);
}

.field textarea {
  resize: vertical;
  min-height: 66px;
}

.checkbox-field {
  align-content: end;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}

.checkbox-field input {
  width: auto;
  margin: 0;
}

.groundwater-editor {
  align-items: end;
}

.groundwater-toggle {
  min-height: 58px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.selection-form {
  display: grid;
  gap: 9px;
}

.hidden {
  display: none !important;
}

.empty,
.distance-list {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.distance-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.distance-item:last-child {
  border-bottom: 0;
}

.distance-item strong {
  color: var(--ink);
}

.distance-summary {
  margin-bottom: 3px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfa;
}

.distance-summary strong {
  color: var(--green-dark);
}

@media (max-width: 1180px) {
  .topbar {
    height: auto;
  }

  .topline,
  .topbar-secondary,
  .quick-actions,
  .ribbon {
    flex-wrap: wrap;
  }

  .topbar-secondary-tools {
    width: 100%;
    margin-left: 0;
    justify-content: flex-end;
  }

  .brand {
    max-width: none;
    flex: 1 1 220px;
  }

  .workspace {
    grid-template-columns: 220px minmax(320px, 1fr);
    grid-template-rows: minmax(460px, 1fr) auto;
    align-content: start;
    overflow: auto;
  }

  .panel-resizer {
    display: none;
  }

  .right-panel {
    grid-column: 1 / -1;
    min-height: 260px;
    max-height: 320px;
  }

  .profile-view {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(520px, 1fr);
    overflow: auto;
  }

  .profile-panel {
    max-height: 300px;
  }
}

@media (max-width: 1180px) {
  .view-switcher-btn span:not(.view-switcher-icon) {
    display: none;
  }

  .view-switcher-btn {
    padding-inline: calc(8px * var(--toolbar-scale));
  }
}

@media (max-width: 760px) {
  .workspace {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .left-panel {
    order: 2;
    max-height: 280px;
  }

  .right-panel {
    order: 3;
    min-height: 260px;
    max-height: none;
  }

  .canvas-zone {
    min-height: 520px;
  }

  .profile-canvas-zone {
    min-height: 520px;
  }
}

.app.layout-left-hidden #cadView {
  grid-template-columns: minmax(380px, 1fr) var(--right-panel-width);
}

.app.layout-right-hidden #cadView {
  grid-template-columns: var(--cad-left-panel-width) var(--panel-resizer-width) minmax(380px, 1fr);
}

.app.layout-left-hidden.layout-right-hidden #cadView {
  grid-template-columns: minmax(380px, 1fr);
}

.app.layout-left-hidden #profileView {
  grid-template-columns: minmax(420px, 1fr);
}

@media (max-width: 1180px) {
  .app.layout-left-hidden #cadView,
  .app.layout-left-hidden.layout-right-hidden #cadView {
    grid-template-columns: minmax(320px, 1fr);
  }

  .app.layout-right-hidden #cadView {
    grid-template-columns: 220px minmax(320px, 1fr);
  }

  .app.layout-left-hidden #profileView,
  .app.layout-left-hidden #capacityView {
    grid-template-columns: 1fr;
  }
}
