/* Single-screen construction workbench. All selectors are scoped to the designer. */
.design-editor {
  --wb-accent: #16675e;
  --wb-border: #cfd9d8;
  --wb-muted: #647574;
  color: #243d3b;
}
.design-editor button {
  border-radius: 4px;
  font-size: 12px;
  font-weight: 550;
}
.design-editor button:disabled {
  cursor: not-allowed;
}
.design-editor button:focus-visible,
.design-editor summary:focus-visible {
  outline: 2px solid #16857b;
  outline-offset: 2px;
}
.design-editor .is-active {
  background: #e5f2ef;
  border-color: #31897c;
  color: #13594f;
  box-shadow: inset 0 0 0 1px #31897c;
}
.wb-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}
.wb-heading .actions {
  flex-wrap: wrap;
}
.wb-position {
  font-size: 10px;
  color: #58736e;
}
.design-editor .wb-position select {
  display: block;
  max-width: 240px;
  font-size: 12px;
  padding: 6px;
}
.wb-heading h1 {
  margin: 3px 0;
  font-size: 23px;
}
.wb-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #58736e;
}
.wb-save-state {
  font-size: 12px;
  color: #56726b;
}
.wb-save-state.is-dirty {
  color: #956321;
}
.wb-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border: 1px solid var(--wb-border);
  border-radius: 7px 7px 0 0;
  background: #fff;
  overflow: hidden;
}
.design-editor .wb-steps button {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-right: 1px solid #e0e8e5;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  padding: 12px 14px;
  text-align: left;
  box-shadow: none;
}
.design-editor .wb-steps button.is-active {
  background: #e9f4f0;
  border-bottom-color: #267f6b;
}
.wb-step-number {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  background: #edf1ef;
  color: #71817c;
  border-radius: 50%;
  font-size: 12px;
}
.is-active .wb-step-number {
  color: white;
  background: #216e5d;
}
.wb-steps small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  margin-top: 3px;
  color: #657b73;
}
.wb-dimension-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 10px 14px;
  border: 1px solid var(--wb-border);
  border-top: 0;
  background: #f8faf9;
}
.wb-measures {
  display: flex;
  align-items: center;
  gap: 10px;
}
.wb-measures .field {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.wb-measures label {
  margin: 0;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
}
.design-editor .wb-measures input {
  width: 100px;
  padding: 7px 9px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  border-radius: 4px;
}
.wb-history,
.wb-view-tools {
  display: flex;
  align-items: center;
  gap: 5px;
}
.wb-history {
  border-left: 1px solid var(--wb-border);
  padding-left: 14px;
}
.wb-view-tools {
  margin-left: auto;
}
.wb-preferences {
  position: relative;
  font-size: 11px;
}
.wb-preferences summary {
  cursor: pointer;
  padding: 8px 4px;
}
.wb-preferences > div {
  position: absolute;
  z-index: 8;
  right: 0;
  top: 100%;
  background: #fff;
  padding: 16px;
  width: 230px;
  border: 1px solid var(--wb-border);
  box-shadow: 0 8px 24px #16342b20;
}
.design-editor .wb-workspace {
  grid-template-columns: minmax(0, 1fr) 360px;
  min-height: 0;
  height: clamp(520px, calc(100vh - 370px), 780px);
  overflow: hidden;
  border-color: var(--wb-border);
}
.design-editor .design-drawing {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: #f7f9f6;
}
.design-editor .design-stage {
  flex: 1;
  height: auto;
  min-height: 0;
  background: radial-gradient(#bdc9c4 0.6px, transparent 0.6px) 0 0 / 20px 20px;
}
.design-editor .design-stage:focus-visible {
  outline: 2px solid #2f8d7b;
  outline-offset: -2px;
}
.design-editor .design-status {
  background: #fff;
  padding: 9px 14px;
  color: #6b7e78;
  gap: 15px;
}
.design-editor .design-status strong {
  color: #3c5d52;
  font-size: 11px;
  margin-right: auto;
}
.design-editor .design-inspector {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-color: var(--wb-border);
}
.wb-inspector-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid #e3e9e6;
}
.wb-inspector-heading > span {
  font-size: 11px;
  color: #64897e;
  font-weight: 700;
}
.wb-inspector-heading h2 {
  margin: 0;
  font-size: 15px;
}
.design-editor .design-inspector-body {
  flex: 1;
  max-height: none;
  padding: 15px;
  overflow: auto;
  scrollbar-width: thin;
}
.design-editor .design-inspector-body .field {
  margin-bottom: 10px;
}
.design-editor .design-inspector-body label {
  color: #52665f;
  font-size: 11px;
  margin-bottom: 4px;
  display: block;
}
.design-editor .design-inspector-body input,
.design-editor .design-inspector-body select,
.design-editor .design-inspector-body textarea {
  border-color: #cad6ce;
  font-size: 12px;
  padding: 7px 8px;
  border-radius: 4px;
}
.design-editor .design-inspector-body textarea {
  min-height: 70px;
}
.design-editor .wb-intro {
  font-size: 12px;
  margin: 0 0 14px;
  color: #5c7167;
}
.wb-shapes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 14px;
}
.design-editor .wb-shapes button {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 3px;
  gap: 5px;
  background: #fff;
  font-size: 10px;
}
.design-editor .wb-shapes button.is-active {
  background: #eef7f2;
}
.wb-shapes svg {
  width: 58px;
  height: 53px;
}
.wb-shapes path {
  fill: #e8f1ed;
  stroke: #395d4d;
  stroke-width: 1.6;
}
.wb-shapes .is-active path {
  fill: #cce4db;
  stroke: #23715b;
  stroke-width: 2;
}
.wb-subsection {
  margin-top: 16px;
  border-top: 1px solid #dce5de;
  padding-top: 12px;
}
.wb-subsection h3 {
  font-size: 12px;
  margin-bottom: 10px;
}
.wb-subsection summary,
.wb-layouts summary {
  cursor: pointer;
  font-weight: 650;
  margin-bottom: 10px;
  font-size: 12px;
}
.wb-property-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 10px;
}
.wb-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 8px;
}
.wb-layouts small {
  display: block;
  line-height: 1.5;
  font-size: 10px;
}
.wb-split-tools {
  display: flex;
  gap: 6px;
  margin: 14px 0;
}
.wb-selected {
  background: #edf5f1;
  border-left: 3px solid #438d76;
  padding: 9px 12px;
  margin: 0 0 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
}
.wb-selected span {
  font-size: 11px;
  color: #587366;
}
.design-editor .wb-note {
  background: #f3f5f3;
  border: 1px solid #e1e6e0;
  padding: 9px 10px;
  font-size: 11px;
  line-height: 1.6;
  color: #596f63;
  margin: 10px 0;
  border-radius: 4px;
}
.wb-selection {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  border-top: 1px solid #dce5de;
  padding: 7px 12px;
  background: #fff;
  font-size: 11px;
  max-height: 95px;
  overflow: auto;
}
.wb-selection > span:first-child {
  color: #526d5e;
  margin-right: 8px;
}
.design-editor .wb-selection button {
  padding: 4px 9px;
  font-size: 11px;
}
.wb-selection-note {
  margin-left: auto;
  color: #718276;
}
.design-editor .design-hint {
  font-size: 10px;
  padding: 7px 12px;
  border-top: 1px solid #e9eeea;
}
.wb-step-footer {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  padding: 10px 12px;
  background: #f9fbf9;
  border-top: 1px solid #dce4dc;
}
.wb-error {
  margin: 10px 12px 0;
  padding: 9px;
  background: #fff0ea;
  color: #922c18;
  border: 1px solid #edc5b6;
  border-radius: 4px;
  font-size: 12px;
}
.wb-error[hidden] {
  display: none;
}
.wb-metric {
  border: 1px solid #dbe5dd;
  background: #f6f9f6;
  border-radius: 4px;
  padding: 13px;
  margin: 12px 0 18px;
}
.wb-metric > span {
  display: block;
  font-size: 11px;
  color: #6a7f70;
  margin-bottom: 6px;
}
.wb-metric > strong {
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  font-weight: 550;
}
.wb-metric small {
  font-size: 11px;
}
.wb-field-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.wb-field-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wb-bar-presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 12px 0;
}
.wb-fill-options {
  display: flex;
  gap: 7px;
  margin: 12px 0;
}
.wb-output {
  border: 1px solid var(--wb-border);
  border-radius: 0 0 6px 6px;
  background: white;
  margin-bottom: 18px;
}
.wb-output > summary {
  padding: 12px 16px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}
.wb-output > summary > span {
  float: right;
  font-weight: 400;
  color: #6d7d73;
}
.wb-output > section,
.wb-output > .design-versions {
  margin: 12px;
}
.design-editor .design-measure-hit {
  cursor: text;
  pointer-events: all;
}
.design-editor .design-measure-hit:hover text {
  fill: #078077;
  text-decoration: underline;
}
.design-editor .design-frame-hit {
  cursor: pointer;
}
.design-editor .design-frame-hit:hover {
  stroke: #168477;
}
.wb-panel-left .design-drawing {
  order: 2;
}
.wb-panel-left .design-inspector {
  order: 1;
  border-left: 0;
  border-right: 1px solid var(--wb-border);
}
.design-editor.wb-panel-left .wb-workspace {
  grid-template-columns: 360px minmax(0, 1fr);
}
.design-editor.wb-comfortable .design-inspector-body input,
.design-editor.wb-comfortable .design-inspector-body select {
  padding: 11px;
  font-size: 14px;
}
.wb-comfortable .design-inspector-body .field {
  margin-bottom: 16px;
}
.design-editor .design-document-title {
  display: none;
}
.design-editor.wb-focus {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #f3f6f3;
  padding: 12px 16px;
  overflow: auto;
  display: flex;
  flex-direction: column;
}
.design-editor.wb-focus > .wb-heading,
.design-editor.wb-focus > .wb-steps,
.design-editor.wb-focus > .wb-dimension-strip {
  flex-shrink: 0;
}
.design-editor.wb-focus .wb-workspace {
  flex: 1;
  height: auto;
  min-height: 0;
}
.design-editor.wb-focus .wb-output {
  flex-shrink: 0;
  max-height: 45vh;
  overflow: auto;
  margin-bottom: 0;
}
.wb-focus .wb-heading {
  margin-bottom: 10px;
}
@media (min-width: 1650px) {
  .design-editor .wb-workspace {
    grid-template-columns: minmax(0, 1fr) 420px;
  }
  .design-editor.wb-panel-left .wb-workspace {
    grid-template-columns: 420px minmax(0, 1fr);
  }
}
@media (max-width: 1100px) {
  .design-editor .wb-steps button {
    padding: 10px 8px;
    gap: 6px;
  }
  .wb-steps small {
    display: none;
  }
  .design-editor .wb-workspace {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
  .design-editor.wb-panel-left .wb-workspace {
    grid-template-columns: 320px minmax(0, 1fr);
  }
  .wb-dimension-strip {
    gap: 8px;
  }
  .wb-view-tools {
    margin-left: 0;
  }
  .wb-preferences {
    margin-left: auto;
  }
}
@media (max-width: 760px) {
  .wb-heading {
    flex-wrap: wrap;
  }
  .wb-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .design-editor .wb-workspace,
  .design-editor.wb-panel-left .wb-workspace {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
  }
  .design-editor .design-drawing {
    order: 0;
  }
  .design-editor .design-stage {
    height: 360px;
    min-height: 360px;
  }
  .design-editor .design-inspector {
    max-height: 540px;
    border-right: 0;
    border-top: 1px solid var(--wb-border);
  }
  .wb-measures .field {
    flex-direction: column;
    align-items: start;
    gap: 3px;
  }
  .wb-dimension-strip {
    padding: 9px;
  }
  .wb-history {
    border: 0;
    padding-left: 0;
  }
  .wb-output > summary > span {
    float: none;
    display: block;
    margin-top: 5px;
  }
  .design-editor.wb-focus .wb-workspace {
    flex: none;
    height: auto;
  }
}
@media print {
  .design-editor.wb-focus {
    position: static;
    padding: 0;
    overflow: visible;
    display: block;
  }
  .design-editor .design-document-title {
    display: block;
  }
  .design-editor.wb-focus .wb-output {
    max-height: none;
    overflow: visible;
  }
  .design-editor .wb-workspace,
  .design-editor.wb-panel-left .wb-workspace {
    display: block;
    height: auto;
    border: 0;
    overflow: visible;
  }
  .design-editor .design-stage {
    height: 170mm;
    min-height: 0;
    background: #fff;
  }
  .wb-output {
    border: 0;
  }
  .wb-output > summary {
    display: none;
  }
}
