:root {
  --ink: #253c35;
  --muted: #7b8a83;
  --line: #e3e8e3;
  --green: #3e6b52;
  --pale: #edf3e7;
  --accent: #d6edb8;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font:
    13px -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: #fafbf8;
  overflow: hidden;
}
[hidden] {
  display: none !important;
}
button,
input,
a {
  font: inherit;
}
button,
a,
input {
  outline-offset: 4px;
}
button {
  cursor: pointer;
  color: inherit;
}
button {
  border: 0;
  background: transparent;
}
a {
  color: inherit;
  text-decoration: none;
}
svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.symbols {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.header {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 26px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand > b {
  font-size: 36px;
  letter-spacing: -5px;
  line-height: 1;
  color: #31543e;
}
.brand > b span {
  color: #aecf8b;
}
.brand strong {
  font-size: 22px;
  letter-spacing: -1px;
}
.brand strong span {
  font-weight: 400;
  margin-left: 4px;
}
.header-divider {
  height: 28px;
  width: 1px;
  background: var(--line);
  margin: 0 8px;
}
.file-heading {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.file-heading strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 480px;
  font-size: 13px;
  font-weight: 550;
}
.file-heading > span {
  font-size: 11px;
  color: var(--muted);
}
.local {
  margin-left: auto;
  white-space: nowrap;
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
}
.local i,
.dot {
  width: 6px;
  height: 6px;
  background: #6e9a6d;
  border-radius: 50%;
  display: inline-block;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  border: 1px solid #dce3db;
  border-radius: 6px;
  background: white;
  padding: 8px 14px;
  font-size: 12px;
  white-space: nowrap;
}
.button:hover {
  background: #f0f5ec;
}
.button.primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.button.primary:hover {
  background: #2d563e;
}
.topbar {
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 24px;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.topbar > button,
.topbar > a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  font-size: 12px;
  white-space: nowrap;
  border-radius: 4px;
  color: #718177;
}
.topbar > button:hover,
.topbar > button.active {
  background: var(--pale);
  color: var(--ink);
}
.separator {
  height: 18px;
  width: 1px;
  background: var(--line);
  margin: 0 9px;
}
.spacer {
  flex: 1;
}
.workspace {
  height: calc(100vh - 156px);
  display: flex;
  position: relative;
}
.panel-heading {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 650;
  padding: 0 22px;
}
.panel-heading > span {
  background: #edf1e9;
  border-radius: 4px;
  padding: 3px 6px;
  font-size: 10px;
  letter-spacing: 0;
  font-weight: 500;
  color: #758a76;
}
.tree-panel {
  width: 244px;
  flex-shrink: 0;
  background: #fcfdfb;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.search {
  margin: 0 16px 18px;
  background: #f0f3ed;
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px;
  color: #8c9c8f;
}
.search svg {
  width: 15px;
  height: 15px;
}
.search input {
  width: 100%;
  min-width: 0;
  background: transparent;
  border: 0;
  color: var(--ink);
  font-size: 11px;
}
.tree {
  overflow: auto;
  flex: 1;
  padding: 0 10px 10px;
}
.tree details {
  margin-bottom: 4px;
}
.tree summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 550;
  padding: 11px 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 5px;
  list-style: none;
}
.tree summary:before {
  content: "›";
  font-size: 16px;
  color: #8f9e92;
  transition: transform 0.15s;
}
.tree details[open] > summary:before {
  transform: rotate(90deg);
}
.tree summary:hover {
  background: #f0f3ec;
}
.tree summary small {
  margin-left: auto;
  color: #91a08e;
  font-size: 10px;
}
.type-eye {
  margin-left: 3px;
  font-size: 12px;
  padding: 4px;
  border-radius: 3px;
}
.tree-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 24px;
  border-radius: 4px;
}
.tree-row.selected {
  background: #e0ecd5;
}
.tree-row.dim {
  opacity: 0.4;
}
.tree-row > button.element-name {
  padding: 9px 4px;
  min-width: 0;
  flex: 1;
  text-align: left;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tree-row > button.element-name:hover {
  color: #426b50;
}
.element-icon {
  display: inline-block;
  width: 7px;
  height: 7px;
  border: 1px solid #92a38c;
  transform: rotate(30deg);
  margin-right: 8px;
}
.tree-footer {
  height: 49px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  font-size: 10px;
  color: var(--muted);
}
.empty-tree {
  font-size: 12px;
  line-height: 1.7;
  padding: 0 15px;
}
.stage {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  background: radial-gradient(
    ellipse at 48% 40%,
    #f5f5ee 0%,
    #ecede6 60%,
    #e1e7e0 100%
  );
}
#viewport {
  position: absolute;
  inset: 0;
}
#viewport canvas {
  display: block;
  width: 100%;
  height: 100%;
  outline: 0;
}
.stage-caption {
  pointer-events: none;
  position: absolute;
  top: 23px;
  left: 26px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stage-caption > span {
  font-size: 9px;
  letter-spacing: 1.9px;
  color: #8b9a8b;
}
.stage-caption > b {
  font-size: 12px;
  font-weight: 450;
  color: #81917e;
}
.orientation {
  position: absolute;
  right: 24px;
  top: 24px;
  z-index: 3;
  text-align: center;
}
.orientation button {
  font-size: 9px;
  color: #65816c;
  border: 1px solid #becaba;
  background: #f3f6eeaa;
  padding: 11px 8px;
  min-width: 43px;
}
.orientation .cube-top {
  display: block;
  width: 86px;
  transform: skewY(-9deg);
  margin-bottom: 5px;
}
.orientation > div {
  display: flex;
}
.orientation > div button:first-child {
  transform: skewY(10deg);
}
.orientation > div button:last-child {
  transform: skewY(-10deg);
}
.orientation #home {
  display: block;
  margin: 15px auto 0;
  border: 0;
  background: transparent;
  padding: 4px;
}
.orientation button:hover {
  background: #e1edcf;
  color: #355c3b;
}
.welcome {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding-bottom: 50px;
}
.welcome-icon {
  color: #78956c;
  margin-bottom: 24px;
}
.welcome-icon svg {
  width: 42px;
  height: 42px;
  stroke-width: 1.1;
}
.eyebrow {
  letter-spacing: 2px;
  font-size: 9px;
  color: #779075;
}
h1 {
  font-size: 42px;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -1.5px;
  margin: 17px 0;
}
p {
  line-height: 1.75;
  color: var(--muted);
}
.welcome p {
  font-size: 12px;
  margin: 0 0 22px;
}
.welcome small {
  font-size: 10px;
  color: #8d9c85;
  margin-top: 16px;
}
.busy {
  position: absolute;
  inset: 0;
  background: #f4f6eedd;
  backdrop-filter: blur(7px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 15px;
  z-index: 10;
}
.busy > span:not(.spinner) {
  font-size: 11px;
  color: var(--muted);
}
.spinner {
  width: 26px;
  height: 26px;
  border: 2px solid #cddac8;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.properties-panel {
  width: 284px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: #fcfdfb;
  border-left: 1px solid var(--line);
}
.inspector {
  flex: 1;
  overflow: auto;
  padding: 4px 22px 18px;
  min-height: 0;
}
.inspector-empty {
  padding: 52px 0 0;
}
.inspector-empty > svg {
  color: #96aa8a;
  width: 32px;
  height: 32px;
  stroke-width: 1.2;
}
.inspector h2 {
  font-size: 20px;
  font-weight: 450;
  line-height: 1.35;
  letter-spacing: -0.4px;
  overflow-wrap: anywhere;
}
.inspector-empty p {
  font-size: 12px;
  margin-top: 14px;
}
.element-type {
  font-size: 10px;
  color: #6c8a62;
  letter-spacing: 0.3px;
}
.property-group {
  margin-top: 23px;
}
.property-group > h3 {
  font-size: 11px;
  font-weight: 550;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin: 0;
}
.property-row {
  padding: 10px 0;
  border-bottom: 1px solid #edf0e9;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-wrap: anywhere;
  font-size: 12px;
}
.property-row > span:first-child {
  font-size: 10px;
  color: #8a9984;
}
.property-footer {
  border-top: 1px solid var(--line);
  padding: 16px 22px;
  font-size: 10px;
  line-height: 1.7;
  color: #91a18a;
}
.selection-actions {
  padding: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  border-top: 1px solid var(--line);
}
.selection-actions button {
  padding: 7px 9px;
  font-size: 11px;
  flex: 1;
}
.dock {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  padding: 8px;
  background: #fffffff5;
  border: 1px solid #dce4d8;
  border-radius: 12px;
  box-shadow: 0 8px 28px #2a412614;
  z-index: 3;
  gap: 2px;
  max-width: calc(100% - 24px);
}
.dock > button {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 7px;
  padding: 9px 10px;
  min-width: 57px;
  border-radius: 7px;
  font-size: 9px;
  color: #7a8d76;
}
.dock > button svg {
  width: 21px;
  height: 21px;
}
.dock > button:hover {
  background: #f1f5ea;
}
.dock > button.active {
  background: #e5efda;
  color: #3f6840;
}
.dock-divider {
  width: 1px;
  height: 26px;
  background: var(--line);
  margin: 0 5px;
}
.statusbar {
  height: 32px;
  border-top: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  font-size: 10px;
  color: #8b9788;
  padding: 0 20px;
  gap: 18px;
}
.statusbar #stats {
  margin-left: auto;
}
.unit {
  border-left: 1px solid var(--line);
  padding-left: 15px;
}
.floating-panel {
  position: absolute;
  bottom: 114px;
  left: 50%;
  transform: translateX(-50%);
  padding: 17px 20px;
  width: 295px;
  background: #fffffff7;
  border: 1px solid #dce4d8;
  border-radius: 8px;
  box-shadow: 0 8px 28px #2a41260c;
  z-index: 4;
}
.floating-panel label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  gap: 14px;
}
.floating-panel output {
  color: #567847;
  font-variant-numeric: tabular-nums;
}
.floating-panel input {
  width: 100%;
  margin: 17px 0 12px;
  accent-color: #597b49;
}
.floating-panel small {
  display: block;
  line-height: 1.5;
  font-size: 10px;
  color: #87967f;
}
.text-button {
  font-size: 11px;
  color: #50703f;
  padding: 12px 0 0;
}
.measure-panel strong {
  display: block;
  margin-bottom: 7px;
  font-size: 16px;
  letter-spacing: -0.2px;
}
.labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.measure-label {
  position: absolute;
  transform: translate(-50%, -50%);
  background: #244c3de8;
  color: white;
  padding: 7px 10px;
  border-radius: 5px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.toast {
  position: absolute;
  top: 84px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 7px;
  padding: 13px 17px;
  background: #284d40ed;
  color: #fff;
  max-width: 85%;
  box-shadow: 0 5px 20px #29453320;
  font-size: 12px;
  z-index: 15;
  line-height: 1.5;
}
.dragging .stage:after {
  content: "IFC faylini shu yerga tashlang";
  position: absolute;
  inset: 12px;
  border: 2px dashed #769966;
  background: #eff6e5e6;
  display: grid;
  place-items: center;
  z-index: 20;
  font-size: 22px;
  pointer-events: none;
}
.muted {
  color: var(--muted);
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
@media (max-width: 1150px) {
  .tree-panel {
    width: 211px;
  }
  .properties-panel {
    width: 242px;
  }
  .dock > button {
    padding: 9px 7px;
    min-width: 47px;
  }
  .dock > button span {
    font-size: 8px;
  }
  .local {
    display: none;
  }
  .file-heading {
    margin-right: auto;
  }
}
@media (max-width: 930px) {
  .header {
    padding: 0 14px;
    gap: 10px;
  }
  .brand strong {
    font-size: 19px;
  }
  .header-divider {
    display: none;
  }
  .file-heading strong {
    max-width: 250px;
  }
  .properties-panel,
  .tree-panel {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 6;
    width: 250px;
    box-shadow: 0 10px 20px #27412810;
  }
  .properties-panel {
    right: 0;
  }
  .tree-panel {
    left: 0;
  }
  .topbar {
    padding: 0 10px;
  }
  .topbar > a {
    display: none;
  }
  .topbar button {
    font-size: 11px;
  }
  .topbar .separator {
    margin: 0;
  }
  .dock > button {
    padding: 8px 11px;
  }
  .stage-caption {
    left: 20px;
  }
  .statusbar #hint {
    max-width: 55%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
}
@media (max-width: 600px) {
  .header {
    height: 65px;
  }
  .brand strong {
    display: none;
  }
  .file-heading > span {
    display: none;
  }
  .file-heading strong {
    max-width: 160px;
    font-size: 11px;
  }
  .header #sample {
    display: none;
  }
  .topbar {
    height: 44px;
    gap: 2px;
  }
  .topbar button {
    padding: 7px 6px;
    font-size: 10px;
  }
  .topbar button svg {
    width: 16px;
  }
  .topbar #restore {
    display: none;
  }
  .workspace {
    height: calc(100vh - 141px);
  }
  .dock > button {
    min-width: 37px;
    padding: 9px 7px;
  }
  .dock > button span {
    display: none;
  }
  .dock-divider {
    margin: 0 2px;
  }
  .dock {
    bottom: 20px;
  }
  .floating-panel {
    bottom: 94px;
  }
  .orientation {
    right: 18px;
    top: 20px;
  }
  .file-heading {
    flex: 1;
  }
  .welcome h1 {
    font-size: 36px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation-duration: 2s;
  }
  .tree summary:before {
    transition: none;
  }
}
