@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap');
:root {
  --ink: #28372e;
  --green: #385741;
  --muted: #879087;
  --line: #e4e7df;
  --paper: #f7f8f3;
  --accent: #dce7ca;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    14px 'DM Sans',
    sans-serif;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  transition:
    background 0.18s,
    transform 0.18s;
  color: inherit;
}
button:hover {
  filter: brightness(0.96);
}
button:active {
  transform: translateY(1px);
}
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #b1c591;
  outline-offset: 3px;
}
header {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3.2%;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font:
    800 24px Manrope,
    sans-serif;
  letter-spacing: -1.1px;
  text-decoration: none;
  color: var(--ink);
}
.brand-icon {
  font-size: 25px;
  background: var(--green);
  color: #fff;
  width: 35px;
  height: 36px;
  border-radius: 8px;
  text-align: center;
  position: relative;
  font-weight: 500;
  line-height: 36px;
}
.brand-icon span {
  position: absolute;
  font-size: 16px;
  right: 2px;
  top: -5px;
  color: #cdddaf;
}
.studio {
  margin-left: 4px;
  font:
    600 9px 'DM Sans',
    sans-serif;
  letter-spacing: 1.8px;
  color: #8c958a;
  border: 1px solid var(--line);
  padding: 5px 7px;
  border-radius: 4px;
}
nav {
  display: flex;
  gap: 27px;
  height: 100%;
}
nav button {
  background: none;
  border: 0;
  color: #838a80;
  font-size: 13px;
  position: relative;
}
.nav-active {
  color: var(--ink);
  font-weight: 600;
}
.nav-active:after {
  content: '';
  height: 3px;
  background: var(--green);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 21px;
}
.local-note {
  font-size: 11px;
  color: #8b9288;
}
.local-note i,
.canvas-footer i {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #91a978;
  border-radius: 100%;
  margin-right: 7px;
}
.avatar {
  border: 1px solid #d8dfd1;
  background: #f0f3e9;
  border-radius: 50%;
  width: 31px;
  height: 31px;
}
.intro {
  max-width: 1700px;
  margin: 0 auto;
  padding: 35px 3.2% 29px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.9px;
  font-weight: 650;
  color: #8a9584;
}
h1 {
  font:
    650 31px Manrope,
    sans-serif;
  letter-spacing: -1.3px;
  margin: 10px 0;
}
h1 span {
  color: #97ac72;
}
.intro p {
  font-size: 12px;
  color: #85907e;
  margin: 0;
}
.outline,
.primary {
  border: 1px solid #dce1d5;
  padding: 10px 15px;
  border-radius: 6px;
  background: #fff;
  font-size: 12px;
  font-weight: 550;
}
.primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  padding: 11px 16px;
}
main {
  margin: 0 3.2%;
  background: white;
  border: 1px solid #dfe4d9;
  border-radius: 11px;
  overflow: hidden;
  box-shadow: 0 6px 22px #34452705;
}
.project-bar {
  padding: 19px 22px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.project-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}
.project-icon {
  width: 39px;
  height: 39px;
  background: #f1f4eb;
  display: grid;
  place-items: center;
  border: 1px solid #e4e9dc;
  border-radius: 8px;
  font-size: 24px;
}
.project-heading input {
  font-weight: 650;
  border: 0;
  background: none;
  max-width: 220px;
  padding: 0;
  font-size: 15px;
  color: var(--ink);
}
.project-sub {
  display: flex;
  gap: 7px;
  color: #97a08f;
  font-size: 10px;
  margin-top: 5px;
}
.badge {
  font-size: 8px;
  letter-spacing: 1px;
  border: 1px solid #e4e6df;
  color: #8e9787;
  background: #fafbf6;
  border-radius: 4px;
  padding: 4px 6px;
  margin-left: 4px;
}
.project-actions {
  display: flex;
  gap: 9px;
  align-items: center;
}
.workspace {
  display: grid;
  grid-template-columns: 210px minmax(300px, 1fr) 226px;
  min-height: 590px;
}
.library,
.properties {
  padding: 23px 18px;
  display: flex;
  flex-direction: column;
}
.library {
  border-right: 1px solid var(--line);
}
.properties {
  border-left: 1px solid var(--line);
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  font-weight: 650;
  font-size: 12px;
}
.panel-heading > span {
  font-size: 10px;
  color: #b0b6a8;
  font-weight: 400;
}
.tabs {
  display: flex;
  background: #f3f5ef;
  border: 1px solid #ebeee4;
  border-radius: 6px;
  margin-top: 24px;
  padding: 3px;
}
.tabs button {
  background: none;
  border: 0;
  border-radius: 4px;
  flex: 1;
  font-size: 10px;
  padding: 8px 2px;
  color: #8e9588;
}
.tabs button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 4px #0000000d;
}
.panel-help {
  font-size: 10px;
  line-height: 1.7;
  color: #929a8d;
  margin: 17px 0;
}
.palette {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.palette button {
  border: 1px solid #e2e7dc;
  background: #fff;
  border-radius: 7px;
  height: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 10px;
}
.palette button:hover {
  background: #f1f5e9;
  border-color: #9bb384;
}
.palette svg {
  width: 35px;
  height: 29px;
  stroke: #63795d;
  fill: none;
  stroke-width: 1.4;
}
.library-bottom {
  margin-top: auto;
  padding-top: 45px;
}
.tip-icon {
  font-size: 25px;
  color: #90a474;
  margin-bottom: 8px;
}
.library-bottom strong {
  font-size: 11px;
  font-weight: 550;
}
.library-bottom p {
  font-size: 10px;
  line-height: 1.8;
  color: #929b88;
  margin: 8px 0 12px;
}
.library-bottom button {
  padding: 0;
  background: none;
  border: 0;
  font-size: 10px;
  color: #647e51;
}
.drawing-area {
  display: flex;
  flex-direction: column;
  background: #f9faf6;
  min-width: 0;
}
.canvas-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 9px 14px;
  height: 50px;
  background: #fff;
}
.tool-group {
  display: flex;
  align-items: center;
  gap: 3px;
}
.tool {
  background: none;
  border: 0;
  border-radius: 4px;
  padding: 7px 9px;
  font-size: 17px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tool span {
  font-size: 10px;
}
.tool.selected {
  background: #edf1e7;
  color: #456037;
}
.divider {
  width: 1px;
  height: 16px;
  background: var(--line);
  margin: 0 7px;
}
.tool:disabled {
  opacity: 0.3;
  cursor: default;
}
.canvas-wrap {
  position: relative;
  flex: 1;
  min-height: 500px;
  overflow: hidden;
}
#canvas {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  touch-action: none;
  user-select: none;
}
.canvas-label {
  position: absolute;
  left: 19px;
  top: 18px;
  font-size: 8px;
  letter-spacing: 1.3px;
  color: #859079;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.green-dot {
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background: #6c8353;
}
.floor-badge {
  border: 1px solid #dfe5d4;
  border-radius: 3px;
  padding: 3px 5px;
  color: #a2aa98;
  font-size: 8px;
  margin-left: 3px;
}
.compass {
  position: absolute;
  right: 23px;
  top: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #86927b;
  font-size: 8px;
  pointer-events: none;
}
.compass span {
  font-size: 24px;
  line-height: 25px;
}
.canvas-hint {
  position: absolute;
  bottom: 22px;
  left: 20px;
  font-size: 9px;
  color: #a0a795;
  pointer-events: none;
}
.canvas-hint span {
  padding: 0 8px;
}
.zoom-controls {
  position: absolute;
  bottom: 15px;
  right: 17px;
  display: flex;
  align-items: center;
  background: white;
  border: 1px solid #e2e6da;
  border-radius: 6px;
  padding: 3px;
  box-shadow: 0 3px 8px #00000003;
}
.zoom-controls button {
  border: 0;
  background: none;
  font-size: 16px;
  width: 27px;
  height: 27px;
}
.zoom-controls > span:not(.divider) {
  font-size: 9px;
  width: 38px;
  text-align: center;
}
.zoom-controls .divider {
  margin: 0 3px;
}
.canvas-footer {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  font-size: 9px;
  color: #909b84;
  border-top: 1px solid var(--line);
  background: #fff;
}
.footer-separator {
  padding: 0 9px;
  color: #d3d9ca;
}
.inspector-title {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 19px;
}
.inspector-title .symbol {
  font-size: 22px;
  background: #edf2e7;
  border-radius: 6px;
  padding: 9px;
  color: #728965;
}
.inspector-title strong {
  font-size: 12px;
}
.inspector-title p {
  font-size: 9px;
  color: #98a08f;
  margin: 5px 0 0;
}
label {
  font-size: 10px;
  color: #87927e;
  display: block;
  margin: 15px 0 7px;
}
input.field,
select.field {
  width: 100%;
  border: 1px solid #e1e5da;
  border-radius: 5px;
  padding: 9px;
  color: #48563e;
  background: #fff;
  font-size: 11px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.unit-field {
  position: relative;
}
.unit-field input {
  padding-right: 22px;
}
.unit-field span {
  position: absolute;
  right: 9px;
  top: 10px;
  font-size: 10px;
  color: #abb1a3;
}
.color-row {
  display: flex;
  gap: 7px;
  padding: 3px 0 12px;
}
.swatch {
  height: 22px;
  width: 22px;
  border-radius: 50%;
  border: 2px solid white;
  outline: 1px solid transparent;
}
.swatch.active {
  outline-color: #8ca075;
}
.selection-actions {
  display: flex;
  gap: 7px;
  margin-top: 13px;
}
.selection-actions button {
  font-size: 10px;
  border: 1px solid #e1e6d8;
  background: white;
  border-radius: 5px;
  padding: 9px 6px;
  flex: 1;
}
.selection-actions .delete {
  color: #b07866;
}
.project-summary {
  border-top: 1px solid var(--line);
  margin-top: 25px;
  padding-top: 22px;
}
.project-summary .eyebrow {
  font-size: 8px;
  letter-spacing: 1.4px;
  margin-bottom: 16px;
}
.project-summary > div:not(.eyebrow) {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  margin: 13px 0;
  color: #929b88;
}
.project-summary strong {
  font-weight: 500;
  color: #526347;
}
.concept-note {
  margin-top: auto;
  padding-top: 25px;
  font-size: 9px;
  line-height: 1.8;
  color: #a6ae9c;
}
.empty-selection {
  padding: 33px 0 12px;
  color: #97a08e;
  font-size: 11px;
  line-height: 1.8;
}
.empty-selection strong {
  color: #58684c;
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  margin: 21px 3.2% 25px;
  font-size: 10px;
  color: #93a087;
}
.muted {
  padding: 0 10px;
  color: #c3cabb;
}
.leaf {
  font-size: 17px;
  color: #819967;
  vertical-align: middle;
  margin-left: 10px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: #2e4937;
  color: white;
  padding: 13px 23px;
  border-radius: 8px;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  z-index: 20;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
dialog {
  border: 1px solid #dbe3d2;
  border-radius: 14px;
  padding: 25px;
  width: min(520px, 90vw);
  color: var(--ink);
  box-shadow: 0 20px 80px #1c382333;
}
dialog::backdrop {
  background: #25342566;
  backdrop-filter: blur(3px);
}
.modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-top h2 {
  font:
    650 21px Manrope,
    sans-serif;
  margin: 0 0 20px;
}
.modal-top button {
  border: 0;
  background: none;
  font-size: 25px;
  margin-top: -20px;
}
#modalBody {
  font-size: 13px;
  color: #7e8a74;
  line-height: 1.8;
}
#modalBody li {
  margin: 10px 0;
}
.saved-project {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}
.saved-project div {
  flex: 1;
}
.saved-project strong {
  display: block;
  color: var(--ink);
}
.saved-project small {
  font-size: 10px;
}
.saved-project button {
  border: 1px solid var(--line);
  background: #f4f6ee;
  padding: 6px 10px;
  border-radius: 5px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
@media (min-width: 1600px) {
  main {
    max-width: 1590px;
    margin: auto;
  }
  .canvas-wrap {
    min-height: 640px;
  }
}
@media (max-width: 1100px) {
  .workspace {
    grid-template-columns: 175px minmax(300px, 1fr) 195px;
  }
  .library,
  .properties {
    padding: 20px 13px;
  }
  .studio,
  .local-note {
    display: none;
  }
  .canvas-hint {
    display: none;
  }
}
@media (max-width: 850px) {
  header {
    height: 65px;
  }
  .brand {
    font-size: 20px;
  }
  nav {
    gap: 15px;
  }
  .intro {
    padding-top: 27px;
  }
  .intro h1 {
    font-size: 25px;
  }
  .workspace {
    grid-template-columns: 150px minmax(280px, 1fr);
  }
  .properties {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .properties > .panel-heading {
    grid-column: 1/-1;
  }
  .concept-note {
    display: none;
  }
  .project-summary {
    margin: 0;
  }
  .inspector-title {
    padding-top: 0;
  }
  .canvas-wrap {
    min-height: 480px;
  }
  .project-heading input {
    max-width: 170px;
  }
  .badge {
    display: none;
  }
}
@media (max-width: 570px) {
  .header-right {
    display: none;
  }
  header {
    padding: 0 17px;
  }
  nav button {
    font-size: 11px;
  }
  .intro {
    padding: 25px 17px;
  }
  .intro h1 {
    font-size: 23px;
  }
  .eyebrow {
    font-size: 8px;
  }
  .intro p {
    font-size: 11px;
  }
  .intro > .outline {
    padding: 8px;
    font-size: 10px;
    margin-left: 12px;
  }
  main {
    margin: 0 10px;
  }
  .project-bar {
    padding: 14px 10px;
    flex-wrap: wrap;
  }
  .project-actions {
    margin-left: auto;
  }
  .project-actions button {
    padding: 8px 11px;
    font-size: 10px;
  }
  .project-icon {
    display: none;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .library {
    border-right: 0;
    padding: 14px;
  }
  .library > .panel-heading,
  .library-bottom,
  .panel-help {
    display: none;
  }
  .tabs {
    margin: 0;
    width: 190px;
  }
  .palette {
    grid-template-columns: repeat(4, 1fr);
    margin-top: 10px;
  }
  .palette button {
    height: 65px;
    gap: 5px;
  }
  .palette svg {
    height: 24px;
  }
  .canvas-wrap {
    min-height: 440px;
  }
  .canvas-toolbar {
    padding: 9px;
  }
  .properties {
    padding: 18px;
    gap: 15px;
  }
  .project-heading input {
    font-size: 14px;
    max-width: 180px;
  }
  .page-footer {
    font-size: 9px;
    margin: 16px;
  }
  .page-footer > span:last-child {
    display: none;
  }
  .canvas-footer {
    font-size: 8px;
    padding: 12px 9px;
  }
  .footer-separator {
    padding: 0 5px;
  }
}
/* Expanded object library and independent project floors. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.floor-bar {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
  background: #fbfcf8;
}
.floor-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  min-width: 0;
  scrollbar-width: thin;
}
.floor-tab {
  display: flex;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  padding: 9px 12px;
  font-size: 11px;
  color: #8b957f;
}
.floor-tab > span {
  font-size: 8px;
  color: #a4ae96;
}
.floor-tab.active {
  background: #edf2e5;
  border-color: #dce5cf;
  color: #3d5832;
  font-weight: 600;
}
.floor-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.floor-actions button {
  font-size: 10px;
  padding: 8px 10px;
  border-radius: 5px;
  border: 1px solid #dde5d3;
  background: white;
}
.floor-actions .floor-add {
  color: #47663b;
  background: #f0f5e8;
}
.library .tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin-top: 18px;
}
.library .tabs button {
  font-size: 9px;
  padding: 8px 3px;
}
.catalog-search {
  margin-top: 15px;
  width: 100%;
  border: 1px solid #e1e7d9;
  background: #fcfdf9;
  border-radius: 5px;
  padding: 9px 10px;
  font-size: 10px;
  color: var(--ink);
}
.panel-help {
  margin: 10px 0 14px;
  font-size: 9px;
}
.palette {
  max-height: 430px;
  overflow-y: auto;
  padding: 2px 4px 4px 1px;
  scrollbar-width: thin;
  scrollbar-color: #d6dfca transparent;
  align-content: start;
}
.palette button {
  height: 76px;
  min-width: 0;
  font-size: 9px;
  gap: 8px;
  padding: 6px 3px;
}
.palette svg {
  height: 31px;
  width: 39px;
}
.palette-empty {
  grid-column: 1/-1;
  font-size: 11px;
  line-height: 1.8;
  color: #89957e;
}
.library-bottom {
  padding-top: 22px;
}
.library-bottom p {
  margin-bottom: 8px;
}
.workspace {
  min-height: 700px;
}
.canvas-wrap {
  min-height: 580px;
}
.delete-floor-area {
  border-top: 1px solid var(--line);
  margin-top: 25px;
  padding-top: 10px;
  font-size: 11px;
}
.danger {
  color: #ac6e5b;
}
.danger:disabled {
  opacity: 0.4;
  cursor: default;
}
.floor-tab:focus-visible {
  outline-offset: -3px;
}
.canvas-label {
  max-width: 75%;
  letter-spacing: 0.8px;
}
.canvas-label #activeFloorLabel {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 850px) {
  .floor-bar {
    padding: 10px;
    gap: 8px;
  }
  .floor-tab {
    padding: 8px;
  }
  .floor-manage {
    max-width: 65px;
  }
  .workspace {
    min-height: 590px;
  }
  .canvas-wrap {
    min-height: 540px;
  }
  .palette {
    max-height: 460px;
  }
}
@media (max-width: 570px) {
  .floor-bar {
    flex-wrap: wrap;
  }
  .floor-tabs {
    width: 100%;
  }
  .floor-actions {
    margin-left: auto;
  }
  .floor-manage {
    max-width: none;
  }
  .library {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .library .tabs {
    margin: 0;
    width: 100%;
  }
  .catalog-search {
    margin: 0;
    align-self: center;
    height: 35px;
  }
  .palette {
    grid-column: 1/-1;
    grid-template-columns: repeat(4, 1fr);
    max-height: 170px;
    margin: 0;
  }
  .palette button {
    height: 70px;
  }
  .canvas-wrap {
    min-height: 440px;
  }
  .floor-tab {
    font-size: 10px;
  }
  .workspace {
    min-height: 0;
  }
  .properties {
    grid-template-columns: 1fr 1fr;
  }
  .project-summary > div:not(.eyebrow) {
    gap: 10px;
    font-size: 9px;
  }
}
.export-note {
  margin-top: 18px;
  padding: 13px;
  background: #f0f5e9;
  border: 1px solid #dfe8d4;
  border-radius: 7px;
  font-size: 11px;
  line-height: 1.8;
  color: #637855;
}
.dwg-note {
  margin-top: 13px;
  font-size: 11px;
  color: #929783;
  line-height: 1.8;
}
.dwg-note strong {
  color: #57694b;
}
#downloadExport:disabled {
  opacity: 0.65;
  cursor: wait;
}
.dimension-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 10px 15px;
  background: #f4f7ee;
  border-bottom: 1px solid #e0e7d7;
  font-size: 10px;
}
.dimension-bar > span {
  font-weight: 600;
}
.dimension-bar label {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  font-size: 10px;
  color: #657c52;
}
.dimension-bar input,
.inline-check input {
  accent-color: #54723e;
}
.dimension-bar small {
  margin-left: auto;
  font-size: 9px;
  color: #97a18a;
}
.dimension-label {
  cursor: pointer;
}
.dimension-label:hover rect,
.dimension-label:focus rect {
  fill: #e5efd6;
  stroke: #6c8c50;
  stroke-width: 2;
}
.guide-card {
  border: 1px solid #dfe7d6;
  background: #f7faf1;
  border-radius: 7px;
  padding: 12px;
  margin-top: 20px;
}
.guide-card.over-target {
  background: #faf7ee;
  border-color: #e6dcc1;
}
.guide-card strong,
.foundation-card strong {
  font-size: 11px;
  display: block;
  margin-top: 8px;
}
.guide-card p {
  font-size: 10px;
  line-height: 1.7;
  margin: 8px 0;
}
.guide-caption {
  font-size: 9px !important;
  line-height: 1.7;
  color: #8c967f;
  margin: 8px 0;
}
.guide-buttons {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.guide-buttons button,
.foundation-card button {
  font-size: 9px;
  border: 1px solid #d9e0cf;
  padding: 7px 9px;
  background: white;
  border-radius: 4px;
}
.inline-check {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  line-height: 1.5;
}
.foundation-card {
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.foundation-card p {
  font-size: 9px;
  line-height: 1.8;
  color: #929681;
}
.manual-badge {
  display: block;
  font-size: 8px;
  letter-spacing: 0.3px;
  color: #9c8459;
  background: #f7f2e8;
  padding: 7px;
  margin: 9px 0;
  border-radius: 4px;
}
.dimension-error {
  color: #b16e52;
  font-size: 11px;
}
textarea.field {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 10px;
  font:
    12px 'DM Sans',
    sans-serif;
  resize: vertical;
}
.properties {
  max-height: 920px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.dimension-label:focus {
  outline: none;
}
@media (max-width: 850px) {
  .properties {
    max-height: none;
  }
  .properties > #planningGuides {
    grid-column: 2;
    grid-row: 2/4;
  }
  .properties > .project-summary {
    grid-column: 1;
  }
  .dimension-bar {
    gap: 8px;
  }
  .dimension-bar small {
    display: none;
  }
}
@media (max-width: 570px) {
  .dimension-bar {
    padding: 10px;
    font-size: 9px;
  }
  .dimension-bar label {
    font-size: 9px;
  }
  .guide-card {
    margin-top: 0;
  }
}
.custom-color-row {
  display: flex;
  align-items: center;
  gap: 7px;
}
.custom-color-row input[type='color'] {
  width: 35px;
  height: 35px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
  cursor: pointer;
}
.custom-color-row .field {
  min-width: 0;
  flex: 1;
}
.custom-color-row button {
  height: 34px;
  width: 30px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
}
.design-controls input[type='file'] {
  max-width: 100%;
  font-size: 9px;
}
.account-button {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 17px;
}
.auth-tabs button {
  border: 1px solid var(--line);
  background: #f4f7ee;
  padding: 8px 14px;
  border-radius: 5px;
  font-size: 11px;
}
.auth-error {
  color: #aa644b;
  font-size: 12px;
}
.account-email {
  overflow-wrap: anywhere;
}
.header-right .local-note {
  white-space: nowrap;
}
@media (max-width: 570px) {
  .header-right {
    display: flex;
    gap: 6px;
  }
  .header-right .local-note,
  .header-right .avatar {
    display: none;
  }
  .account-button {
    padding: 7px;
    max-width: 85px;
    font-size: 10px;
  }
  header nav {
    gap: 8px;
  }
  .brand {
    font-size: 17px;
  }
  .brand-icon {
    width: 28px;
    height: 30px;
    font-size: 21px;
    line-height: 30px;
  }
  .brand {
    gap: 6px;
  }
  .library .tabs {
    grid-template-columns: repeat(4, 1fr);
  }
}
.intro-actions {
  display: flex;
  gap: 8px;
}
.template-modal {
  width: min(960px, 94vw);
  max-height: 90vh;
}
.template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-top: 20px;
}
.template-card {
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
}
.template-preview {
  height: 150px;
  background: #f7faf1;
  padding: 10px;
}
.template-preview svg {
  width: 100%;
  height: 100%;
}
.template-content {
  padding: 13px;
}
.template-content small {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #8d9d7f;
}
.template-content h3 {
  font-size: 14px;
  color: var(--ink);
  margin: 5px 0;
}
.template-content p {
  font-size: 11px;
  line-height: 1.7;
  min-height: 42px;
  margin: 5px 0 13px;
}
.template-content button {
  width: 100%;
  font-size: 10px;
}
@media (max-width: 700px) {
  .template-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .intro-actions {
    flex-direction: column;
  }
  .intro-actions button {
    font-size: 10px;
    padding: 8px;
  }
  .canvas-toolbar .tool {
    padding: 6px;
  }
  .canvas-toolbar .tool span {
    font-size: 9px;
  }
}
@media (max-width: 420px) {
  .template-grid {
    grid-template-columns: 1fr;
  }
}

/* Precision drawing controls and the concept modelling workspace. */
.cad-bar,
.model-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid #e1e5db;
  font-size: 11px;
}
.cad-bar label,
.model-toolbar label {
  display: flex;
  align-items: center;
  gap: 4px;
}
.cad-bar output {
  flex-basis: 100%;
  color: #52684c;
  min-height: 14px;
}
.cad-bar select {
  padding: 4px;
  border: 1px solid #d5dccd;
  border-radius: 5px;
}
.model-dialog {
  width: min(1280px, 96vw);
  max-width: 96vw;
  max-height: 94vh;
  padding: 22px;
}
.model-dialog .modal-top p {
  color: #6b7765;
  font-size: 12px;
  margin: 6px 0;
}
.model-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 20px;
}
.model-layout svg {
  display: block;
  width: 100%;
  max-height: 68vh;
  touch-action: none;
  cursor: grab;
}
.model-layout aside {
  padding: 18px 0;
  font-size: 13px;
}
.model-layout label {
  display: block;
  margin: 14px 0;
}
.model-layout .field {
  width: 100%;
  margin-top: 6px;
}
#cadError {
  color: #9a432d;
}
@media (max-width: 760px) {
  .model-layout {
    grid-template-columns: 1fr;
  }
  .model-layout svg {
    min-height: 260px;
  }
  .project-actions {
    flex-wrap: wrap;
  }
}
