.sketcher-text-entry[hidden],
.sketcher-property-group[hidden],
.sketcher-delete-button[hidden],
.sketcher-typed-length[hidden] { display: none !important; }

.blueprint-sketcher-page {
  max-width: 1500px;
}

.blueprint-sketcher-intro {
  max-width: 860px;
  padding-bottom: 22px;
}

.sketcher-app {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #f7f9fb;
  box-shadow: 0 22px 60px rgba(23, 31, 38, .09);
}

.sketcher-topbar {
  min-height: 62px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  border-bottom: 1px solid #dbe1e6;
  background: #fff;
}

.sketcher-file-actions,
.sketcher-history-actions,
.sketcher-export-actions,
.sketcher-property-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sketcher-export-actions {
  justify-content: flex-end;
}

.sketcher-action,
.sketcher-icon-button {
  min-height: 38px;
  border: 1px solid #cfd6dc;
  border-radius: 10px;
  background: #fff;
  color: #252d34;
  font: inherit;
  font-size: .82rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}

.sketcher-action { padding: 0 13px; }
.sketcher-action-small { min-width: 44px; padding: 0 10px; }
.sketcher-icon-button { width: 38px; padding: 0; font-size: 1.18rem; }
.sketcher-action:hover,
.sketcher-icon-button:hover { border-color: #9eabb5; background: #f5f7f9; }
.sketcher-action:active,
.sketcher-icon-button:active { transform: translateY(1px); }
.sketcher-icon-button:disabled { opacity: .35; cursor: default; }

.sketcher-save-status {
  position: absolute;
  z-index: 12;
  top: 10px;
  right: 12px;
  max-width: calc(100% - 24px);
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid rgba(196, 205, 212, .9);
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 4px 14px rgba(28, 38, 46, .08);
  color: var(--muted);
  font-size: .7rem;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.sketcher-save-status.is-saving { color: #6b7280; }

.sketcher-grid-toggle {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid #cfd6dc;
  border-radius: 10px;
  background: #fff;
  color: #364049;
  font-size: .75rem;
  font-weight: 800;
  cursor: pointer;
}

.sketcher-grid-toggle input { margin: 0; }
.sketcher-export-primary { min-height: 38px; padding: 0 14px; border: 0; }

.sketcher-layout {
  min-height: 690px;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 260px;
}

.sketcher-toolbar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 10px;
  border-right: 1px solid #dbe1e6;
  background: #fff;
}

.sketcher-tool {
  min-height: 66px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #4c5660;
  font: inherit;
  font-size: .68rem;
  font-weight: 800;
  cursor: pointer;
  transition: background .12s ease, color .12s ease, border-color .12s ease;
}

.sketcher-tool:hover { background: #f2f5f7; color: #1f2933; }
.sketcher-tool.is-active {
  border-color: #aebac4;
  background: #e9eef2;
  color: #1f2933;
}

.sketcher-tool-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  line-height: 1;
}

.sketcher-wall-icon {
  position: relative;
  width: 26px;
  height: 18px;
}

.sketcher-wall-icon::before,
.sketcher-wall-icon::after {
  content: "";
  position: absolute;
  left: 1px;
  right: 1px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}
.sketcher-wall-icon::before { top: 5px; }
.sketcher-wall-icon::after { bottom: 5px; }

.sketcher-stage-shell {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #edf1f4;
}

.sketcher-svg {
  width: 100%;
  min-height: 650px;
  flex: 1;
  display: block;
  background: #fff;
  touch-action: none;
  cursor: crosshair;
  user-select: none;
  outline: none;
}

.sketcher-svg[data-tool="select"] { cursor: default; }
.sketcher-svg.is-panning { cursor: grabbing; }
.sketcher-svg[data-tool="erase"] { cursor: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2732%27 height=%2732%27 viewBox=%270 0 32 32%27%3E%3Cg transform=%27rotate(-38 16 16)%27%3E%3Crect x=%277%27 y=%2710%27 width=%2718%27 height=%2712%27 rx=%273%27 fill=%27%23ffffff%27 stroke=%27%23374751%27 stroke-width=%272%27/%3E%3Cpath d=%27M16 10v12%27 stroke=%27%23879aa6%27 stroke-width=%272%27/%3E%3Cpath d=%27M8.5 19.5h7.5v2H9.5a2 2 0 0 1-1-2z%27 fill=%27%23cbd7de%27/%3E%3C/g%3E%3C/svg%3E") 7 24, crosshair; }

.grid-line-minor {
  stroke: #dce4e9;
  stroke-width: .32;
}
.grid-line-major {
  stroke: #c3cdd4;
  stroke-width: .6;
}
.sketcher-grid-layer.is-hidden { display: none; }

.sketcher-wall-outline {
  fill: none;
  stroke: #25313b;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-miterlimit: 12;
  pointer-events: none;
}

.sketcher-wall-core {
  fill: none;
  stroke: #fff;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-miterlimit: 12;
  pointer-events: none;
}

.sketcher-hit-line {
  stroke: transparent;
  stroke-width: 13;
  pointer-events: stroke;
  cursor: pointer;
}

.sketcher-line {
  fill: none;
  stroke: #26323b;
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
}

.sketcher-line-hit,
.sketcher-dimension-hit {
  fill: none;
  stroke: transparent;
  stroke-width: 12;
  vector-effect: non-scaling-stroke;
  pointer-events: stroke;
  cursor: pointer;
}

.sketcher-door-opening {
  stroke: #fff;
  stroke-linecap: butt;
  pointer-events: none;
}

.sketcher-door-jamb,
.sketcher-door-leaf,
.sketcher-door-arc {
  fill: none;
  stroke: #26323b;
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}
.sketcher-door-arc { stroke-width: 1; }
.sketcher-door-hit {
  fill: none;
  stroke: transparent;
  stroke-width: 14;
  vector-effect: non-scaling-stroke;
  pointer-events: stroke;
  cursor: pointer;
}

.sketcher-dimension-line,
.sketcher-dimension-extension {
  fill: none;
  stroke: #51606b;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.sketcher-dimension-arrow { fill: #51606b; }
.sketcher-dimension-text,
.sketcher-plan-text,
.sketcher-preview-length {
  fill: #26323b;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 3px;
  stroke-linejoin: round;
}
.sketcher-dimension-text {
  font-size: 10px;
  font-weight: 800;
  text-anchor: middle;
}
.sketcher-plan-text {
  font-size: 12px;
  font-weight: 800;
  pointer-events: none;
}
.sketcher-text-hit {
  fill: transparent;
  stroke: transparent;
  pointer-events: all;
  cursor: pointer;
}

.sketcher-preview-wall-outline,
.sketcher-preview-wall-core,
.sketcher-preview-line,
.sketcher-preview-dimension {
  pointer-events: none;
}
.sketcher-preview-wall-outline {
  stroke: #667784;
  stroke-linecap: square;
  opacity: .72;
}
.sketcher-preview-wall-core {
  stroke: #eef3f6;
  stroke-linecap: square;
  opacity: .92;
}
.sketcher-preview-line,
.sketcher-preview-dimension {
  stroke: #657681;
  stroke-width: 1.15;
  stroke-dasharray: 5 4;
  vector-effect: non-scaling-stroke;
}
.sketcher-room-snap-target {
  stroke: #2b7896;
  stroke-width: 3.5;
  stroke-linecap: round;
  opacity: .92;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}
.sketcher-room-snap-dot {
  fill: #fff;
  stroke: #2b7896;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}
.sketcher-dimension-anchor-highlight {
  fill: none;
  stroke: #315f79;
  stroke-width: 3;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}
.sketcher-dimension-anchor-highlight.is-end { stroke: #1f7186; }
.sketcher-dimension-anchor-dot {
  fill: #fff;
  stroke: #315f79;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}
.sketcher-dimension-anchor-dot.is-end { stroke: #1f7186; }

.sketcher-preview-length {
  font-size: 10px;
  font-weight: 850;
  text-anchor: middle;
}

.sketcher-selection-box {
  fill: none;
  stroke: #5d7281;
  stroke-width: 1.2;
  stroke-dasharray: 4 3;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

.sketcher-handle {
  fill: #fff;
  stroke: #334653;
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
  cursor: grab;
  pointer-events: all;
}
.sketcher-handle:active { cursor: grabbing; }
.sketcher-handle-door { fill: #eaf0f4; }

.sketcher-hint {
  position: absolute;
  z-index: 5;
  top: 10px;
  left: 50%;
  max-width: min(620px, calc(100% - 36px));
  transform: translateX(-50%);
  padding: 7px 11px;
  border: 1px solid rgba(167, 178, 187, .72);
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: #52606a;
  font-size: .72rem;
  font-weight: 750;
  line-height: 1.3;
  text-align: center;
  pointer-events: none;
  box-shadow: 0 5px 16px rgba(30, 41, 50, .07);
  backdrop-filter: blur(5px);
}

.sketcher-typed-length {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 48px;
  transform: translateX(-50%);
  min-width: 190px;
  padding: 8px 12px;
  border: 1px solid #a8b4bd;
  border-radius: 12px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 10px 28px rgba(30, 40, 48, .14);
  text-align: center;
}
.sketcher-typed-length span,
.sketcher-typed-length small { display: block; }
.sketcher-typed-length span {
  color: #697681;
  font-size: .6rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.sketcher-typed-length strong { display: block; margin: 2px 0; font-size: 1.05rem; }
.sketcher-typed-length small { color: #77838c; font-size: .65rem; }

.sketcher-text-entry {
  position: absolute;
  z-index: 8;
  top: 52px;
  left: 50%;
  transform: translateX(-50%);
  width: min(430px, calc(100% - 28px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: end;
  padding: 12px;
  border: 1px solid #aab6be;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(31, 42, 50, .16);
}
.sketcher-text-entry label {
  grid-column: 1 / -1;
  color: #5c6871;
  font-size: .68rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.sketcher-text-entry input {
  min-width: 0;
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid #c7d0d7;
  border-radius: 9px;
  font: inherit;
}
.sketcher-text-entry .primary-button,
.sketcher-text-entry .subtle-button { min-height: 40px; }

.sketcher-stage-footer {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 6px 10px;
  border-top: 1px solid #d8dfe4;
  background: #f8fafb;
  color: #67737c;
  font-size: .67rem;
  line-height: 1.25;
}
.sketcher-stage-footer strong { color: #44515a; }
.sketcher-desktop-tip { margin-left: auto; }

.sketcher-properties {
  padding: 18px 16px;
  border-left: 1px solid #dbe1e6;
  background: #fff;
}

.sketcher-properties-resize-handle { display: none; }

.sketcher-properties-head {
  padding-bottom: 13px;
  border-bottom: 1px solid #e2e6e9;
}
.sketcher-properties-head .section-kicker { margin-bottom: 5px; }
.sketcher-properties-head h2 { margin: 0; font-size: 1.15rem; letter-spacing: -.025em; }

.sketcher-property-empty {
  padding: 14px 0;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.5;
}
.sketcher-property-empty p { margin: 0 0 8px; }

.sketcher-property-group {
  display: grid;
  gap: 12px;
  padding: 15px 0 12px;
}
.sketcher-property-group label {
  display: grid;
  gap: 6px;
  color: #535f68;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .02em;
}
.sketcher-property-group input {
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid #c8d0d6;
  border-radius: 9px;
  background: #fff;
  color: #27313a;
  font: inherit;
  font-size: .86rem;
  font-weight: 750;
}
.sketcher-property-group input:focus {
  outline: 2px solid rgba(76, 97, 112, .18);
  outline-offset: 1px;
  border-color: #7b8c98;
}
.sketcher-property-help {
  margin: -3px 0 0;
  color: #79858e;
  font-size: .68rem;
  line-height: 1.42;
}
.sketcher-property-buttons { flex-wrap: wrap; }
.sketcher-property-buttons .subtle-button { flex: 1 1 auto; min-height: 38px; padding: 7px 8px; font-size: .72rem; }
.sketcher-readout {
  padding: 10px 11px;
  border: 1px solid #d8dfe4;
  border-radius: 10px;
  background: #f7f9fa;
}
.sketcher-readout span { display: block; color: #707c85; font-size: .67rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.sketcher-readout strong { display: block; margin-top: 4px; font-size: 1rem; }

.sketcher-delete-button {
  width: 100%;
  min-height: 39px;
  margin-top: 2px;
  border: 1px solid #d2c7c7;
  border-radius: 9px;
  background: #fffafa;
  color: #7a3939;
  font: inherit;
  font-size: .75rem;
  font-weight: 850;
  cursor: pointer;
}
.sketcher-delete-button:hover { background: #fff3f3; }

.sketcher-properties-guide {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #e2e6e9;
}
.sketcher-properties-guide ol {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #68747d;
  font-size: .73rem;
  line-height: 1.48;
}
.sketcher-properties-guide li + li { margin-top: 7px; }
.sketcher-properties-guide strong { color: #39454e; }

.sketcher-explainer {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 50px;
  margin: 34px 0 8px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.sketcher-explainer h2 { margin: 6px 0 0; max-width: 520px; }
.sketcher-explainer-copy {
  color: #5c676f;
  font-size: .94rem;
  line-height: 1.68;
}
.sketcher-explainer-copy p { margin: 0; }
.sketcher-explainer-copy p + p { margin-top: 12px; }

@media (max-width: 1120px) {
  .sketcher-layout { grid-template-columns: 74px minmax(0, 1fr) 230px; }
  .sketcher-topbar { grid-template-columns: auto 1fr auto; }
  .sketcher-save-status { display: none; }
  .sketcher-layout { min-height: 640px; }
  .sketcher-svg { min-height: 600px; }
}

@media (max-width: 900px) {
  .sketcher-topbar {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "file export"
      "history history";
    gap: 8px;
  }
  .sketcher-file-actions { grid-area: file; }
  .sketcher-history-actions { grid-area: history; justify-content: center; }
  .sketcher-export-actions { grid-area: export; }
  .sketcher-layout {
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-areas:
      "tools stage"
      "props props";
  }
  .sketcher-toolbar { grid-area: tools; }
  .sketcher-stage-shell { grid-area: stage; }
  .sketcher-properties {
    grid-area: props;
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
    border-left: 0;
    border-top: 1px solid #dbe1e6;
  }
  .sketcher-properties-head { padding-bottom: 0; border-bottom: 0; }
  .sketcher-property-empty,
  .sketcher-property-group { padding: 0; }
  .sketcher-delete-button { width: auto; min-width: 130px; margin-top: 0; }
  .sketcher-properties-guide { display: none; }
  .sketcher-svg { min-height: 560px; }
}

@media (max-width: 650px) {
  .blueprint-sketcher-page { padding-left: 0; padding-right: 0; }
  .blueprint-sketcher-intro,
  .sketcher-explainer,
  .blueprint-sketcher-page > .page-disclaimer,
  .blueprint-sketcher-page > .feedback-callout { margin-left: 16px; margin-right: 16px; }
  .blueprint-sketcher-intro { padding-left: 0; padding-right: 0; }
  .sketcher-app { border-left: 0; border-right: 0; border-radius: 0; box-shadow: none; }
  .sketcher-topbar { padding: 8px; }
  .sketcher-action { min-height: 36px; padding: 0 10px; font-size: .75rem; }
  .sketcher-icon-button { width: 36px; min-height: 36px; }
  .sketcher-export-primary { min-height: 36px; padding: 0 10px; font-size: .72rem; }
  .sketcher-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "tools"
      "stage"
      "props";
  }
  .sketcher-toolbar {
    flex-direction: row;
    overflow-x: auto;
    gap: 4px;
    padding: 7px 8px;
    border-right: 0;
    border-bottom: 1px solid #dbe1e6;
    scrollbar-width: thin;
  }
  .sketcher-tool {
    flex: 0 0 64px;
    min-height: 56px;
    padding: 5px 3px;
    font-size: .62rem;
  }
  .sketcher-tool-icon { width: 22px; height: 22px; font-size: 1.15rem; }
  .sketcher-wall-icon { width: 22px; height: 16px; }
  .sketcher-svg { min-height: 500px; }
  .sketcher-hint {
    top: 8px;
    max-width: calc(100% - 20px);
    padding: 6px 9px;
    border-radius: 10px;
    font-size: .66rem;
  }
  .sketcher-stage-footer {
    overflow-x: auto;
    gap: 12px;
    white-space: nowrap;
  }
  .sketcher-desktop-tip { display: none; }
  .sketcher-properties {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px 12px;
  }
  .sketcher-properties-head {
    display: flex;
    align-items: baseline;
    gap: 8px;
  }
  .sketcher-properties-head .section-kicker { margin: 0; }
  .sketcher-property-buttons { display: grid; grid-template-columns: 1fr 1fr; }
  .sketcher-delete-button { width: 100%; }
  .sketcher-explainer { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 420px) {
  .sketcher-topbar {
    grid-template-columns: 1fr;
    grid-template-areas:
      "file"
      "history"
      "export";
  }
  .sketcher-file-actions,
  .sketcher-history-actions,
  .sketcher-export-actions { justify-content: center; }
  .sketcher-grid-toggle { min-height: 36px; }
  .sketcher-svg { min-height: 470px; }
}

@media print {
  .site-header,
  .blueprint-sketcher-intro,
  .sketcher-topbar,
  .sketcher-toolbar,
  .sketcher-properties,
  .sketcher-hint,
  .sketcher-stage-footer,
  .sketcher-explainer,
  .page-disclaimer,
  .feedback-callout,
  .site-footer { display: none !important; }
  .blueprint-sketcher-page,
  .sketcher-app,
  .sketcher-layout,
  .sketcher-stage-shell { display: block; max-width: none; border: 0; box-shadow: none; background: #fff; }
  .sketcher-svg { width: 100%; min-height: 0; height: 7.5in; }
  .sketcher-grid-layer { display: none; }
}

/* Blueprint Sketcher V2 interaction + account polish */
.sketcher-topbar { grid-template-columns: minmax(480px, 1fr) auto auto; }
.sketcher-file-actions { min-width: 0; flex-wrap: wrap; }
.sketcher-name-field { min-width: 150px; flex: 1 1 180px; }
.sketcher-name-field input {
  width: 100%; min-height: 38px; padding: 0 10px; border: 1px solid #cfd6dc; border-radius: 10px;
  background: #fff; color: #27313a; font: inherit; font-size: .78rem; font-weight: 800;
}
.sketcher-name-field input:focus { outline: 2px solid rgba(76,97,112,.16); outline-offset: 1px; border-color: #8d9ba6; }
.sketcher-cloud-save { white-space: nowrap; }

.sketcher-callout-arrow { fill: none; stroke: #26323b; stroke-width: 1.25; vector-effect: non-scaling-stroke; pointer-events: none; }
.sketcher-callout-arrow-head { fill: #26323b; pointer-events: none; }
.sketcher-preview-arrow-head { opacity: .72; }
.sketcher-arrow-hit { fill: none; stroke: transparent; stroke-width: 14; vector-effect: non-scaling-stroke; pointer-events: stroke; cursor: grab; }
.sketcher-hit-line, .sketcher-line-hit, .sketcher-door-hit, .sketcher-text-hit { cursor: grab; }
.sketcher-hit-line:active, .sketcher-line-hit:active, .sketcher-door-hit:active, .sketcher-text-hit:active, .sketcher-arrow-hit:active { cursor: grabbing; }

.sketcher-resize-fieldset { margin: 0; padding: 0; border: 0; }
.sketcher-resize-fieldset legend { margin-bottom: 6px; color: #535f68; font-size: .72rem; font-weight: 850; letter-spacing: .02em; }
.sketcher-segmented { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid #c8d0d6; border-radius: 9px; overflow: hidden; }
.sketcher-segmented label { display: block; position: relative; }
.sketcher-segmented label + label { border-left: 1px solid #c8d0d6; }
.sketcher-segmented input { position: absolute; opacity: 0; pointer-events: none; }
.sketcher-segmented span { min-height: 36px; display: grid; place-items: center; padding: 5px 4px; background: #fff; color: #5e6a73; font-size: .64rem; font-weight: 850; text-align: center; cursor: pointer; }
.sketcher-segmented input:checked + span { background: #e9eef2; color: #26323b; box-shadow: inset 0 0 0 1px #9eabb5; }

.sketcher-wall-legend { border: 1px solid #d8dfe4; border-radius: 10px; background: #f8fafb; overflow: hidden; }
.sketcher-wall-legend summary { padding: 9px 10px; color: #43515b; font-size: .7rem; font-weight: 850; cursor: pointer; }
.sketcher-wall-legend-list { display: grid; gap: 6px; padding: 0 8px 8px; }
.sketcher-wall-legend-list button { display: grid; gap: 2px; width: 100%; padding: 8px 9px; border: 1px solid #d4dce1; border-radius: 8px; background: #fff; color: #34414a; text-align: left; cursor: pointer; }
.sketcher-wall-legend-list button:hover { border-color: #9eabb5; background: #f4f7f9; }
.sketcher-wall-legend-list strong { font-size: .72rem; }
.sketcher-wall-legend-list span { color: #77838c; font-size: .64rem; line-height: 1.35; }
.sketcher-wall-legend > p { margin: 0; padding: 0 10px 10px; color: #7a858d; font-size: .62rem; line-height: 1.4; }

.sketcher-cloud-panel[hidden] { display: none !important; }
.sketcher-cloud-panel { position: fixed; z-index: 80; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(27,34,40,.36); backdrop-filter: blur(3px); }
.sketcher-cloud-panel-card { width: min(640px, 100%); max-height: min(720px, calc(100vh - 40px)); overflow: auto; padding: 18px; border: 1px solid #cfd7dd; border-radius: 18px; background: #fff; box-shadow: 0 24px 70px rgba(20,28,34,.24); }
.sketcher-cloud-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid #e0e5e8; }
.sketcher-cloud-panel-head h2 { margin: 4px 0 0; font-size: 1.3rem; }
.sketcher-cloud-message { margin: 16px 0 0; color: #69757e; font-size: .82rem; }
.sketcher-cloud-list { display: grid; gap: 8px; margin-top: 14px; }
.sketcher-cloud-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 12px; border: 1px solid #dce2e6; border-radius: 11px; background: #fafbfc; }
.sketcher-cloud-row > div:first-child { min-width: 0; }
.sketcher-cloud-row strong, .sketcher-cloud-row small { display: block; }
.sketcher-cloud-row strong { overflow: hidden; color: #303a42; font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.sketcher-cloud-row small { margin-top: 3px; color: #7b8790; font-size: .65rem; }
.sketcher-cloud-row > div:last-child { display: flex; gap: 6px; flex: 0 0 auto; }
.sketcher-cloud-delete { min-height: 34px; padding: 0 9px; border: 1px solid #dbcaca; border-radius: 8px; background: #fffafa; color: #7a3f3f; font: inherit; font-size: .68rem; font-weight: 850; cursor: pointer; }

@media (max-width: 1120px) {
  .sketcher-topbar { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "file export" "history history"; }
  .sketcher-file-actions { grid-area: file; }
  .sketcher-history-actions { grid-area: history; justify-content: center; }
  .sketcher-export-actions { grid-area: export; }
}
@media (max-width: 650px) {
  .sketcher-name-field { order: 3; flex-basis: 100%; }
  .sketcher-cloud-save, #cloudOpenBtn { flex: 1 1 auto; }
  .sketcher-cloud-row { align-items: flex-start; flex-direction: column; }
  .sketcher-cloud-row > div:last-child { width: 100%; }
  .sketcher-cloud-row > div:last-child button { flex: 1; }
}
.sketcher-endpoint-label { fill: #52636f; font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 8px; font-weight: 900; paint-order: stroke; stroke: #fff; stroke-width: 3px; pointer-events: none; }
.sketcher-action:disabled { opacity: .45; cursor: default; }

/* Blueprint Sketcher V3 interaction refinements */
.blueprint-sketcher-intro .eyebrow {
  max-width: max-content;
  margin-bottom: 8px;
  font-size: .66rem;
  letter-spacing: .08em;
  white-space: nowrap;
}

.sketcher-stage-shell,
.sketcher-svg {
  overscroll-behavior: contain;
}

.sketcher-door-tool-icon svg,
.sketcher-opening-tool-icon svg {
  width: 28px;
  height: 28px;
  overflow: visible;
}
.sketcher-door-tool-icon .door-icon-wall,
.sketcher-door-tool-icon .door-icon-leaf,
.sketcher-door-tool-icon .door-icon-arc {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  vector-effect: non-scaling-stroke;
}
.sketcher-door-tool-icon .door-icon-wall { stroke-width: 2.4; }
.sketcher-door-tool-icon .door-icon-arc { stroke-width: 1.25; }
.sketcher-opening-tool-icon path { fill: none; stroke: currentColor; stroke-width: 2.2; vector-effect: non-scaling-stroke; stroke-linecap: square; }

/* Drawing tools should never inherit the grab cursor from selectable geometry. */
.sketcher-svg[data-tool="wall"] *,
.sketcher-svg[data-tool="door"] *,
.sketcher-svg[data-tool="opening"] *,
.sketcher-svg[data-tool="line"] *,
.sketcher-svg[data-tool="dimension"] *,
.sketcher-svg[data-tool="text"] *,
.sketcher-svg[data-tool="arrow"] * {
  cursor: crosshair;
}
.sketcher-svg[data-tool="erase"] * { cursor: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2732%27 height=%2732%27 viewBox=%270 0 32 32%27%3E%3Cg transform=%27rotate(-38 16 16)%27%3E%3Crect x=%277%27 y=%2710%27 width=%2718%27 height=%2712%27 rx=%273%27 fill=%27%23ffffff%27 stroke=%27%23374751%27 stroke-width=%272%27/%3E%3Cpath d=%27M16 10v12%27 stroke=%27%23879aa6%27 stroke-width=%272%27/%3E%3Cpath d=%27M8.5 19.5h7.5v2H9.5a2 2 0 0 1-1-2z%27 fill=%27%23cbd7de%27/%3E%3C/g%3E%3C/svg%3E") 7 24, crosshair; }
.sketcher-svg[data-tool="select"] .sketcher-hit-line,
.sketcher-svg[data-tool="select"] .sketcher-line-hit,
.sketcher-svg[data-tool="select"] .sketcher-door-hit,
.sketcher-svg[data-tool="select"] .sketcher-text-hit,
.sketcher-svg[data-tool="select"] .sketcher-arrow-hit { cursor: grab; }

.sketcher-alignment-guide {
  fill: none;
  stroke: #7d8d98;
  stroke-width: 1;
  stroke-dasharray: 6 5;
  vector-effect: non-scaling-stroke;
  opacity: .72;
  pointer-events: none;
}
.sketcher-alignment-dot {
  fill: #fff;
  stroke: #687a87;
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

.sketcher-wall-color-control { display: grid; gap: 7px; }
.sketcher-field-label { color: #535f68; font-size: .72rem; font-weight: 850; }
.sketcher-color-row { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.sketcher-color-swatch {
  width: 30px;
  height: 30px;
  border: 1px solid #bfc9d0;
  border-radius: 8px;
  background: var(--swatch, #fff);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.62);
  cursor: pointer;
}
.sketcher-color-swatch:hover { border-color: #7e8d98; }
.sketcher-color-swatch.is-active { outline: 2px solid #526572; outline-offset: 2px; }
.sketcher-color-swatch.is-clear {
  display: grid;
  place-items: center;
  color: #64717a;
  font: 900 1rem/1 Inter, ui-sans-serif, system-ui, sans-serif;
  background: linear-gradient(135deg, #fff 0 45%, #d9e0e5 46% 54%, #fff 55% 100%);
}
.sketcher-custom-color {
  min-height: 30px;
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 6px !important;
  padding: 0 7px;
  border: 1px solid #c8d0d6;
  border-radius: 8px;
  background: #fff;
  color: #68747d !important;
  font-size: .62rem !important;
  font-weight: 850 !important;
  cursor: pointer;
}
.sketcher-custom-color input[type="color"] {
  width: 22px !important;
  min-height: 22px !important;
  height: 22px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 5px !important;
  background: transparent;
  cursor: pointer;
}
.sketcher-active-endpoint {
  fill: #fff;
  stroke: #435965;
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}


/* Blueprint Sketcher V4 polish */
@media (min-width: 761px) {
  .blueprint-sketcher-intro {
    max-width: none;
  }
  .blueprint-sketcher-intro h1 {
    max-width: none;
    font-size: clamp(2.2rem, 3.5vw, 2.75rem);
    white-space: nowrap;
  }
}

.sketcher-door-tool-icon .door-icon-wall,
.sketcher-door-tool-icon .door-icon-leaf,
.sketcher-door-tool-icon .door-icon-arc {
  stroke-linecap: butt;
  stroke-linejoin: round;
}
.sketcher-door-tool-icon .door-icon-leaf,
.sketcher-door-tool-icon .door-icon-arc { stroke-linecap: round; }

/* Blueprint Sketcher V5 stable desktop workspace */
.sketcher-name-field {
  display: flex;
  align-items: center;
  align-self: center;
  height: 38px;
  margin: 0;
}
.sketcher-name-field input {
  box-sizing: border-box;
  height: 38px;
  min-height: 38px;
  margin: 0;
  line-height: 1.2;
}

@media (min-width: 901px) {
  .sketcher-file-actions {
    flex-wrap: nowrap;
  }

  .sketcher-layout {
    height: 690px;
    min-height: 0;
  }

  .sketcher-toolbar {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .sketcher-stage-shell {
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .sketcher-svg {
    height: 0;
    min-height: 0;
    flex: 1 1 0;
  }

  .sketcher-stage-footer {
    flex: 0 0 auto;
  }

  .sketcher-properties {
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }
}

@media (min-width: 901px) and (max-width: 1120px) {
  .sketcher-layout {
    height: 640px;
    min-height: 0;
  }
}

@media (max-width: 900px) {
  .sketcher-layout {
    height: auto;
  }

  .sketcher-stage-shell {
    height: auto;
    overflow: visible;
  }

  .sketcher-svg {
    height: auto;
    min-height: 560px;
    flex: 1 1 auto;
  }

  .sketcher-properties {
    height: auto;
    overflow: visible;
    scrollbar-gutter: auto;
  }
}

@media (max-width: 650px) {
  .sketcher-name-field {
    height: 38px;
  }
}

/* Blueprint Sketcher mobile app shell */
.sketcher-mobile-home,
.sketcher-mobile-menu-button,
.sketcher-mobile-menu,
.sketcher-mobile-properties-close { display: none; }

@media (max-width: 650px) {
  html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
  }

  body[data-page="blueprint-sketcher"] {
    width: 100%;
    height: 100%;
    min-height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
    background: #edf1f4;
  }

  body[data-page="blueprint-sketcher"] .site-header,
  body[data-page="blueprint-sketcher"] .site-footer,
  body[data-page="blueprint-sketcher"] .blueprint-sketcher-intro,
  body[data-page="blueprint-sketcher"] .sketcher-explainer,
  body[data-page="blueprint-sketcher"] .page-disclaimer,
  body[data-page="blueprint-sketcher"] .feedback-callout {
    display: none !important;
  }

  .blueprint-sketcher-page {
    width: 100%;
    max-width: none;
    height: 100vh;
    height: 100svh;
    height: 100dvh;
    min-height: 0;
    margin: 0;
    padding: 0;
  }

  .sketcher-app {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #edf1f4;
    box-shadow: none;
  }

  .sketcher-topbar {
    position: relative;
    z-index: 50;
    flex: 0 0 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    grid-template-areas:
      "home file menu"
      "history history history";
    align-items: center;
    gap: 7px 8px;
    padding: calc(7px + env(safe-area-inset-top)) 8px 7px;
    border-bottom: 1px solid #d9e0e5;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 3px 14px rgba(30, 39, 47, .06);
  }

  .sketcher-mobile-home {
    grid-area: home;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: transparent;
    text-decoration: none;
  }
  .sketcher-mobile-home img {
    width: 42px;
    height: 42px;
    display: block;
    object-fit: contain;
  }

  .sketcher-file-actions {
    grid-area: file;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
  }

  #newDrawingBtn,
  #cloudOpenBtn { display: none; }

  .sketcher-name-field {
    order: 0;
    min-width: 0;
    width: 100%;
    height: 38px;
    flex: none;
  }

  .sketcher-name-field input {
    width: 100%;
    min-width: 0;
    height: 38px;
    min-height: 38px;
    padding: 0 10px;
    border-color: transparent;
    border-radius: 10px;
    background: #f1f4f6;
    font-size: .76rem;
    font-weight: 850;
    text-overflow: ellipsis;
  }

  .sketcher-name-field input:focus {
    border-color: #b9c4cc;
    background: #fff;
  }

  .sketcher-cloud-save {
    width: auto;
    min-width: 62px;
    min-height: 38px;
    padding: 0 10px;
    border-color: #bcc7cf;
    background: #fff;
    font-size: 0;
    white-space: nowrap;
  }
  .sketcher-cloud-save::after {
    content: attr(data-mobile-label);
    font-size: .7rem;
    font-weight: 900;
  }

  .sketcher-mobile-menu-button {
    grid-area: menu;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    padding: 0 0 6px;
    border: 1px solid #cfd6dc;
    border-radius: 11px;
    background: #fff;
    color: #35414a;
    font: 900 1.05rem/1 Inter, ui-sans-serif, system-ui, sans-serif;
    letter-spacing: 1px;
    cursor: pointer;
  }

  .sketcher-mobile-menu-button[aria-expanded="true"] {
    border-color: #9eabb5;
    background: #edf1f4;
  }

  .sketcher-mobile-menu[hidden] { display: none !important; }
  .sketcher-mobile-menu {
    position: absolute;
    z-index: 80;
    top: calc(50px + env(safe-area-inset-top));
    right: 8px;
    width: min(260px, calc(100vw - 16px));
    display: grid;
    gap: 4px;
    padding: 7px;
    border: 1px solid #d1d9df;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 18px 52px rgba(24, 33, 40, .2);
  }

  .sketcher-mobile-menu button {
    width: 100%;
    display: grid;
    gap: 2px;
    padding: 10px 11px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #303b44;
    font: inherit;
    text-align: left;
    cursor: pointer;
  }
  .sketcher-mobile-menu button:hover,
  .sketcher-mobile-menu button:active { background: #f0f3f5; }
  .sketcher-mobile-menu button:disabled { opacity: .42; cursor: default; }
  .sketcher-mobile-menu button span { font-size: .76rem; font-weight: 900; }
  .sketcher-mobile-menu button small { color: #7a858d; font-size: .62rem; font-weight: 650; }

  .sketcher-history-actions {
    grid-area: history;
    min-width: 0;
    justify-content: center;
    gap: 5px;
  }

  .sketcher-history-actions .sketcher-icon-button,
  .sketcher-history-actions .sketcher-action {
    min-height: 38px;
    height: 38px;
  }
  .sketcher-history-actions .sketcher-icon-button { width: 38px; }
  .sketcher-history-actions .sketcher-action { padding: 0 9px; font-size: .68rem; }
  .sketcher-history-actions .sketcher-grid-toggle { display: none; }
  .sketcher-export-actions { display: none; }

  .sketcher-layout {
    position: relative;
    flex: 1 1 0;
    width: 100%;
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .sketcher-stage-shell {
    order: 1;
    flex: 1 1 0;
    width: 100%;
    height: auto;
    min-height: 0;
    overflow: hidden;
    border: 0;
    background: #edf1f4;
  }

  .sketcher-svg {
    width: 100%;
    height: 100% !important;
    min-height: 0 !important;
    flex: 1 1 0;
    background: #fff;
  }

  .sketcher-toolbar {
    order: 2;
    z-index: 42;
    flex: 0 0 auto;
    width: 100%;
    min-height: 64px;
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 2px;
    padding: 5px 6px calc(5px + env(safe-area-inset-bottom));
    border: 0;
    border-top: 1px solid #d8e0e5;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 -4px 18px rgba(29, 38, 45, .07);
    scrollbar-width: none;
  }
  .sketcher-toolbar::-webkit-scrollbar { display: none; }

  .sketcher-tool {
    flex: 0 0 58px;
    min-height: 52px;
    padding: 4px 2px;
    border-radius: 10px;
    font-size: .58rem;
  }
  .sketcher-tool-icon { width: 21px; height: 21px; font-size: 1.1rem; }
  .sketcher-wall-icon { width: 22px; height: 15px; }

  .sketcher-stage-footer { display: none; }

  .sketcher-hint {
    top: 8px;
    left: 50%;
    max-width: calc(100% - 86px);
    transform: translateX(-50%);
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 3px 12px rgba(25, 35, 43, .08);
    font-size: .61rem;
    text-align: center;
  }

  .sketcher-save-status {
    top: 42px;
    right: 8px;
    bottom: auto;
    display: inline-flex;
    max-width: 145px;
    min-height: 22px;
    padding: 3px 7px;
    border-radius: 999px;
    font-size: .58rem;
    opacity: .9;
  }

  .sketcher-properties {
    position: absolute;
    z-index: 46;
    left: 8px;
    right: 8px;
    bottom: calc(66px + env(safe-area-inset-bottom));
    width: auto;
    height: var(--mobile-properties-height, min(42dvh, 360px));
    min-height: 112px;
    max-height: min(72dvh, 560px);
    display: none;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 10px;
    overflow-y: auto;
    overscroll-behavior: contain;
    touch-action: pan-y;
    padding: 5px 13px 13px;
    border: 1px solid #d1d9df;
    border-radius: 18px;
    background: rgba(255, 255, 255, .985);
    box-shadow: 0 20px 55px rgba(23, 32, 39, .23);
    scrollbar-gutter: auto;
  }

  .sketcher-properties.has-selection { display: grid; }
  .sketcher-properties.is-resizing { user-select: none; }
  .sketcher-properties::before { display: none; }

  .sketcher-properties-resize-handle {
    position: sticky;
    z-index: 3;
    top: -5px;
    min-height: 19px;
    display: grid;
    place-items: center;
    margin: -5px -13px -3px;
    padding: 6px 0 5px;
    background: rgba(255, 255, 255, .985);
    touch-action: none;
    cursor: ns-resize;
  }
  .sketcher-properties-resize-handle span {
    width: 38px;
    height: 5px;
    border-radius: 999px;
    background: #cbd4da;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65);
  }

  .sketcher-properties-head {
    min-height: 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 0 8px;
    border-bottom: 1px solid #e1e6e9;
  }
  .sketcher-properties-head > div { min-width: 0; }
  .sketcher-properties-head h2 { font-size: 1rem; }
  .sketcher-properties-head .section-kicker { margin: 0 0 2px; }
  .sketcher-property-empty { display: none !important; }

  .sketcher-mobile-properties-close {
    width: auto;
    height: 34px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    padding: 0 11px;
    border: 1px solid #d3dbe0;
    border-radius: 10px;
    background: #f6f8f9;
    color: #52616b;
    font: 850 .68rem/1 Inter, ui-sans-serif, system-ui, sans-serif;
    cursor: pointer;
  }

  .sketcher-property-group { padding: 0; }
  .sketcher-property-buttons { display: grid; grid-template-columns: 1fr 1fr; }
  .sketcher-delete-button { width: 100%; margin-top: 0; }
  .sketcher-properties-guide { display: none; }

  .sketcher-typed-length {
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
  }

  .sketcher-text-entry {
    left: 8px;
    right: 8px;
    width: auto;
    max-width: none;
  }

  .sketcher-cloud-panel {
    padding: calc(10px + env(safe-area-inset-top)) 10px calc(10px + env(safe-area-inset-bottom));
  }
  .sketcher-cloud-panel-card {
    width: 100%;
    max-height: 100%;
    border-radius: 18px;
  }
}

@media (max-width: 360px) {
  .sketcher-topbar { grid-template-columns: 36px minmax(0, 1fr) 36px; gap: 6px; padding-left: 6px; padding-right: 6px; }
  .sketcher-mobile-home,
  .sketcher-mobile-menu-button { width: 36px; height: 36px; }
  .sketcher-cloud-save { min-width: 56px; padding: 0 8px; }
  .sketcher-history-actions { gap: 3px; }
  .sketcher-history-actions .sketcher-icon-button { width: 32px; }
  .sketcher-history-actions .sketcher-icon-button,
  .sketcher-history-actions .sketcher-action { height: 32px; min-height: 32px; }
}

/* Hide rotating Sketcher guidance bubble on all viewports. Functional save/error status is separate. */
.sketcher-hint {
  display: none !important;
}

/* Room builder, plan labels, and focused viewing */
.sketcher-tool { min-height: 58px; }
.sketcher-room-tool-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  vector-effect: non-scaling-stroke;
}

.sketcher-check-row {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 8px !important;
  min-height: 34px;
  cursor: pointer;
}
.sketcher-check-row input {
  width: 16px !important;
  min-height: 16px !important;
  height: 16px;
  margin: 0;
  padding: 0;
}

.sketcher-room-hit {
  fill: transparent;
  stroke: none;
  pointer-events: all;
  cursor: grab;
}
.sketcher-room-dimension-line,
.sketcher-room-dimension-extension {
  fill: none;
  stroke: #71808a;
  stroke-width: .9;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}
.sketcher-room-dimension-arrow { fill: #71808a; pointer-events: none; }
.sketcher-room-dimension-text {
  fill: #40505b;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 9px;
  font-weight: 800;
  text-anchor: middle;
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 3px;
  stroke-linejoin: round;
  pointer-events: none;
}
.sketcher-door-label {
  fill: #26323b;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 8.5px;
  font-weight: 800;
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 3px;
  stroke-linejoin: round;
  pointer-events: none;
}
.sketcher-door-label .sketcher-door-tag { font-weight: 950; }

.sketcher-room-selection {
  fill: none;
  stroke: #55717f;
  stroke-width: 1.3;
  stroke-dasharray: 6 4;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}
.sketcher-room-add { cursor: pointer; }
.sketcher-room-add-circle {
  fill: #fff;
  stroke: #617684;
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 2px 3px rgba(25, 36, 44, .12));
}
.sketcher-room-add-text {
  fill: #435863;
  stroke: none;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 950;
  pointer-events: all;
}

.sketcher-svg[data-tool="room"] * { cursor: crosshair; }
.sketcher-svg[data-tool="view"] *,
.sketcher-svg[data-tool="view"] { cursor: grab !important; }
.sketcher-svg[data-tool="view"].is-panning *,
.sketcher-svg[data-tool="view"].is-panning { cursor: grabbing !important; }
.sketcher-svg[data-tool="select"] .sketcher-room-hit { cursor: grab; }
.sketcher-svg[data-tool="select"] .sketcher-room-add,
.sketcher-svg[data-tool="select"] .sketcher-room-add * { cursor: pointer; }

.sketcher-dimension-magnifier[hidden] { display: none !important; }
.sketcher-dimension-magnifier {
  position: absolute;
  z-index: 44;
  width: 88px;
  height: 88px;
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 7px 24px rgba(20, 32, 40, .28), 0 0 0 1px rgba(80, 101, 114, .32);
  pointer-events: none;
}
.sketcher-dimension-magnifier svg { width: 100%; height: 100%; display: block; background: #fff; }
.sketcher-dimension-magnifier-crosshair::before,
.sketcher-dimension-magnifier-crosshair::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: #1f7186;
  transform: translate(-50%, -50%);
  border-radius: 999px;
}
.sketcher-dimension-magnifier-crosshair::before { width: 20px; height: 1.5px; }
.sketcher-dimension-magnifier-crosshair::after { width: 1.5px; height: 20px; }

@media (max-width: 650px) {
  .sketcher-tool { min-height: 52px; }
  .sketcher-room-add-circle { filter: none; }
  .sketcher-room-dimension-text { font-size: 9.5px; }
  .sketcher-door-label { font-size: 9px; }
}

/* Sketcher polish: compact room mode, tool defaults, and wall scope highlights */
.sketcher-segmented-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sketcher-segmented-two span {
  min-height: 34px;
  padding: 6px 7px;
  font-size: .68rem;
  white-space: nowrap;
}
.sketcher-properties.is-tool-defaults [data-selected-only] { display: none !important; }
.sketcher-properties.is-tool-defaults .sketcher-delete-button { display: none !important; }

.sketcher-highlight-tool-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.sketcher-wall-highlight {
  fill: none;
  stroke-linecap: square;
  pointer-events: none;
  opacity: .96;
}
.sketcher-highlight-preview {
  fill: none;
  stroke-linecap: square;
  opacity: .8;
  pointer-events: none;
}
.sketcher-highlight-preview-end {
  fill: #fff;
  stroke: #536a78;
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}
.sketcher-svg[data-tool="highlight"] *,
.sketcher-svg[data-tool="highlight"] { cursor: crosshair !important; }

.sketcher-dimension-anchor-highlight.is-locked {
  stroke: #0e7490;
  stroke-width: 3.6;
}
.sketcher-dimension-anchor-dot.is-locked {
  fill: #0e7490;
  stroke: #fff;
  stroke-width: 2.2;
}

@media (max-width: 650px) {
  .sketcher-segmented-two span { font-size: .66rem; padding-left: 4px; padding-right: 4px; }
}


/* Sketcher follow-up: keep tool tiles compact without clipping active labels. */
@media (min-width: 651px) {
  .sketcher-toolbar {
    gap: 4px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .sketcher-tool {
    flex: 0 0 48px;
    min-height: 48px;
    padding: 3px 2px;
    gap: 3px;
    line-height: 1.05;
    overflow: visible;
  }
  .sketcher-tool-icon {
    width: 22px;
    height: 22px;
    font-size: 1.12rem;
  }
  .sketcher-room-tool-icon svg,
  .sketcher-highlight-tool-icon svg {
    width: 23px;
    height: 23px;
  }
}

/* Mobile properties peek bar: keep repetitive room/door placement out of the way. */
@media (max-width: 650px) {
  .sketcher-properties.is-collapsed {
    height: 46px;
    min-height: 46px;
    max-height: 46px;
    gap: 0;
    overflow: hidden;
    padding: 5px 8px;
    border-radius: 13px;
    touch-action: manipulation;
  }

  .sketcher-properties.is-collapsed .sketcher-properties-resize-handle,
  .sketcher-properties.is-collapsed .sketcher-property-group,
  .sketcher-properties.is-collapsed .sketcher-property-empty,
  .sketcher-properties.is-collapsed .sketcher-delete-button {
    display: none !important;
  }

  .sketcher-properties.is-collapsed .sketcher-properties-head {
    min-height: 34px;
    padding: 0;
    border-bottom: 0;
    cursor: pointer;
  }

  .sketcher-properties.is-collapsed .sketcher-properties-head > div {
    display: flex;
    align-items: baseline;
    gap: 6px;
    overflow: hidden;
  }

  .sketcher-properties.is-collapsed .sketcher-properties-head .section-kicker {
    flex: 0 0 auto;
    margin: 0;
    font-size: .56rem;
    letter-spacing: .08em;
  }

  .sketcher-properties.is-collapsed .sketcher-properties-head h2 {
    overflow: hidden;
    margin: 0;
    font-size: .82rem;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .sketcher-properties.is-collapsed .sketcher-mobile-properties-close {
    height: 30px;
    padding: 0 10px;
    border-radius: 9px;
    font-size: .64rem;
  }
}
