/* Wohnraumplan · Smart Home */
.sh-floor-page-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: .5rem 1rem;
  margin-block: 1.35rem 1.1rem;
  scroll-margin-block-start: 5rem;
}
.sh-floor-page-head h1 {
  scroll-margin-block-start: 5rem;
  margin: .35rem 0 .1rem;
}
.sh-floor-page-head p,
.sh-floor-entry p {
  margin: 0;
  color: var(--q-text);
  overflow-wrap: anywhere;
}
.sh-floor-page-head .sh-save {
  grid-column: 1 / -1;
  padding-block: 0;
}
.sh-floor-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
}
.sh-floor-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .85rem 1.5rem;
  flex-wrap: wrap;
  background: var(--q-theme-accent-soft);
}
.sh-floor-entry h2 {
  margin-bottom: .2rem;
}
.sh-floor-plan {
  --floor-ink: #16354a;
  --floor-device: #365f76;
  color: var(--floor-ink);
}
.sh-floor-toolbar,
.sh-floor-toolbar-tools,
.sh-floor-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem;
}
.sh-floor-toolbar {
  align-items: end;
  gap: .6rem 1rem;
  border: 1px solid var(--q-line);
  border-radius: var(--q-radius-sm);
  margin-block-end: .85rem;
  padding: .65rem;
  background: var(--q-surface, #fff);
}
.sh-floor-toolbar > label {
  min-width: min(11rem, 100%);
}
.sh-floor-plan .q-btn,
.sh-floor-grid-control {
  min-height: 44px;
  padding: .45rem .72rem;
  font-size: .9rem;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: start;
}
.sh-floor-plan .q-btn {
  min-inline-size: 44px;
}
.sh-floor-plan .q-btn:disabled {
  cursor: default;
}
.sh-floor-plan [aria-pressed="true"] {
  border-color: var(--q-theme-accent-dark);
  color: var(--q-theme-accent-dark);
  background: var(--q-theme-accent-soft);
}
.sh-floor-grid-control {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
}
.sh-floor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(18rem, 1fr);
  gap: .85rem;
  align-items: start;
}
.sh-floor-board,
.sh-floor-panel,
.sh-floor-guidance {
  min-width: 0;
  padding: .8rem;
  border: 1px solid var(--q-line);
  border-radius: var(--q-radius);
  background: var(--q-surface, #fff);
  box-shadow: 0 8px 25px rgb(25 50 68 / 6%);
}
.sh-floor-board {
  position: sticky;
  top: calc(var(--q-header-h, 60px) + .75rem);
}
.sh-floor-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .45rem .8rem;
  margin-block-end: .6rem;
}
.sh-floor-board-head p {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}
.sh-floor-board-head span {
  display: block;
  color: var(--q-text);
  font-size: .88rem;
}
.sh-floor-board-start { margin-block-end: .55rem; }
.sh-floor-map {
  position: relative;
  border: 1px solid #a6becb;
  border-radius: var(--q-radius-sm);
  background: #eaf2f6;
  overflow: hidden;
}
.sh-floor-board-empty {
  position: absolute;
  inset: 50% .75rem auto;
  width: fit-content;
  margin: 0 auto;
  padding: .35rem .65rem;
  transform: translateY(-50%);
  border-radius: .4rem;
  background: #fff;
  color: var(--q-text);
  text-align: center;
  pointer-events: none;
}
.sh-floor-map:focus-within {
  border-color: #0f7aa8;
}
.sh-floor-map[data-mode="pan"] {
  cursor: grab;
}
.sh-floor-map[data-mode="pan"]:active,
.sh-floor-device:active {
  cursor: grabbing;
}
.sh-floor-map[data-mode="place"] {
  cursor: crosshair;
}
.sh-floor-canvas {
  display: block;
  width: 100%;
  height: clamp(25rem, 55vh, 38rem);
  user-select: none;
}
.sh-floor-map[data-empty="true"] .sh-floor-canvas {
  height: 6rem;
}
.sh-floor-map[data-mode="move-room"] .sh-floor-room-area {
  cursor: move;
}
.sh-floor-map[data-mode="pan"] .sh-floor-canvas,
.sh-floor-map[data-mode="place"] .sh-floor-canvas,
.sh-floor-map[data-mode="move-room"] .sh-floor-canvas,
.sh-floor-device {
  touch-action: none;
}
.sh-floor-grid-line,
.sh-floor-grid-minor {
  fill: none;
  stroke: #a8bfcc;
  stroke-width: .9px;
  vector-effect: non-scaling-stroke;
}
.sh-floor-grid-minor {
  stroke: #d2e1e9;
  stroke-width: .7px;
}
.sh-floor-room-area {
  fill: #f8fbfd;
  stroke: #21475d;
  stroke-width: 2px;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
}
.sh-floor-room[data-selected="true"] > .sh-floor-room-area {
  fill: #edfaff;
  stroke: #0875a3;
  stroke-width: 3px;
}
.sh-floor-room-label,
.sh-floor-room-measure {
  pointer-events: none;
  font-weight: 740;
  fill: #16354a;
}
.sh-floor-room-measure {
  font-weight: 550;
  fill: #38586e;
}
.sh-floor-fixture {
  color: #345b70;
}
.sh-floor-shared-wall {
  stroke: #19796e;
  stroke-width: 3px;
  stroke-dasharray: 2 5;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}
.sh-floor-shared-wall[data-connected="true"] { stroke: #278879; stroke-width: 2px; }
.sh-floor-fixture-gap,
.sh-floor-fixture-opening {
  fill: none;
  stroke-width: 4px;
  vector-effect: non-scaling-stroke;
}
.sh-floor-fixture-gap {
  stroke: #f8fbfd;
  stroke-width: 7px;
}
.sh-floor-fixture-window .sh-floor-fixture-opening {
  stroke: #00749c;
}
.sh-floor-fixture-door .sh-floor-fixture-opening {
  stroke: #9b5f29;
  stroke-dasharray: 4 2;
}
.sh-floor-fixture circle {
  fill: #fff;
  stroke: currentColor;
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
}
.sh-floor-fixture[data-floor-fixture] { cursor: pointer; }
.sh-floor-fixture .sh-floor-fixture-hit {
  fill: transparent;
  stroke: transparent;
  stroke-width: 24px;
  vector-effect: non-scaling-stroke;
}
.sh-floor-fixture path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
}
.sh-floor-device {
  cursor: grab;
}
.sh-floor-device[data-domain="lighting"] { --floor-device: #925219; }
.sh-floor-device[data-domain="climate"] { --floor-device: #ac4737; }
.sh-floor-device[data-domain="security"] { --floor-device: #4e5490; }
.sh-floor-device[data-domain="energy"] { --floor-device: #116751; }
.sh-floor-device[data-domain="shading"] { --floor-device: #575e35; }
.sh-floor-device[data-domain="network"] { --floor-device: #166389; }
.sh-floor-device[data-domain="sensors"] { --floor-device: #763570; }
.sh-floor-device[data-domain="household"] { --floor-device: #725c40; }
.sh-floor-device-hit {
  fill: transparent;
}
.sh-floor-device-disc {
  fill: var(--floor-device, #365f76);
  stroke: #fff;
  stroke-width: 1.5px;
  vector-effect: non-scaling-stroke;
}
.sh-floor-device[data-selected="true"] .sh-floor-device-disc {
  stroke: #172a38;
  stroke-width: 3px;
}
.sh-floor-device-icon {
  fill: none;
  stroke: #fff;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.sh-floor-device-number {
  fill: #fff;
  font-weight: 750;
  text-anchor: middle;
  pointer-events: none;
}
.sh-floor-device-label {
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 3px;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  fill: #102c40;
  font-weight: 750;
  pointer-events: none;
}
.sh-floor-map-help,
.sh-floor-muted {
  color: var(--q-text);
  font-size: .91rem;
  margin: .55rem 0;
}
.sh-floor-field {
  display: grid;
  gap: .2rem;
  min-width: 0;
}
.sh-floor-field > span {
  display: block;
}
.sh-floor-panel > .sh-floor-field + .sh-floor-field {
  margin-block-start: .5rem;
}
.sh-floor-fields {
  display: grid;
  gap: .65rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-block-end: .6rem;
}
.sh-floor-fields .sh-floor-notch {
  gap: .65rem;
  margin: 0;
  grid-column: 1 / -1;
}
.sh-floor-notch[hidden] {
  display: none;
}
.sh-floor-board [data-floor-details="legend"] {
  border-top: 1px solid var(--q-line);
  margin-top: .55rem;
}
.sh-floor-board [data-floor-details="legend"] summary {
  cursor: pointer;
  min-height: 44px;
  padding: .55rem .1rem;
  font-weight: 740;
}
.sh-floor-board .sh-floor-device-list {
  grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr));
  max-height: 12rem;
  overflow: auto;
  padding: .2rem;
}
.sh-floor-board .sh-floor-device-list li {
  align-content: start;
}
.sh-floor-board .sh-floor-device-list .q-btn {
  max-width: 100%;
}
.sh-floor-panel details,
.sh-floor-guidance details {
  border-top: 1px solid var(--q-line);
  margin-top: .55rem;
}
.sh-floor-panel summary,
.sh-floor-guidance summary,
.sh-floor-transfer summary {
  display: list-item;
  cursor: pointer;
  min-height: 44px;
  padding: .55rem .1rem;
  font-weight: 740;
}
.sh-floor-details-content {
  padding-bottom: .35rem;
}
.sh-floor-details-content form + form,
.sh-floor-selection {
  border-top: 1px solid var(--q-line);
  margin-top: .75rem;
  padding-top: .75rem;
}
.sh-floor-item-list {
  list-style: none;
  padding: 0;
  margin-block: .65rem;
  display: grid;
  gap: .35rem;
}
.sh-floor-item-list li {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .35rem;
  overflow-wrap: anywhere;
}
.sh-floor-plan h2,
.sh-floor-plan h3 {
  margin-block: 0 .4rem;
}
.sh-floor-status {
  min-height: 1.5rem;
  margin: .35rem 0;
  font-size: .9rem;
}
.sh-floor-status:not(:empty) {
  color: var(--q-theme-accent-dark);
  font-weight: 700;
}
.sh-floor-status[data-error="true"] {
  color: #9a3029;
}
.sh-floor-guidance {
  margin-block: .85rem 0;
  overflow-wrap: anywhere;
}
.sh-floor-guidance ul {
  padding-inline-start: 1.3rem;
}
.sh-floor-guidance a {
  text-underline-offset: .15em;
}
.sh-floor-guidance-device h4 {
  margin-block: .65rem .35rem;
}
.sh-floor-guidance-budget {
  border-block-start: 1px solid var(--q-line);
  margin-block-start: .7rem;
  padding-block-start: .65rem;
}
.sh-floor-transfer {
  margin-block: .65rem 1rem;
}
#sh-floor-plan-print {
  display: none;
}

@media (pointer: coarse) {
  .sh-floor-device-hit { r: .58; }
}
@media screen and (max-width: 780px) {
  .sh-floor-page-head {
    margin-block: .75rem .55rem;
  }
  .sh-floor-page-head h1 {
    font-size: clamp(1.55rem, 7vw, 2.25rem);
  }
  .sh-floor-mobile-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    align-items: end;
    margin-block-end: .4rem;
  }
  .sh-floor-mobile-toolbar > label {
    flex: 1;
    min-inline-size: 5rem;
  }
  .sh-floor-plan :is(select, input:not([type="checkbox"], [type="radio"], [type="file"])) {
    min-inline-size: 0;
    max-inline-size: 100%;
    min-block-size: 44px;
    font-size: 1rem;
  }
  .sh-floor-plan :is(button, input, select, summary, [tabindex]):focus-visible {
    outline: 2px solid var(--q-theme-accent-dark, #0b6086);
    outline-offset: 2px;
  }
  .sh-floor-mobile-toolbar > details > summary,
  .sh-floor-mobile-context-body > details[data-floor-details^="mobile-"] > summary {
    display: flex;
    align-items: center;
    width: fit-content;
    min-inline-size: 44px;
    min-block-size: 44px;
    padding-inline: .55rem;
    font-size: .85rem;
    border: 1px solid var(--q-line);
    border-radius: var(--q-radius-sm);
    background: var(--q-surface, #fff);
    cursor: pointer;
  }
  .sh-floor-mobile-toolbar > details > summary::after,
  .sh-floor-mobile-context-body > details[data-floor-details^="mobile-"] > summary::after {
    content: "";
    inline-size: .4em;
    block-size: .4em;
    margin: -.15em 0 0 .55em;
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
  }
  .sh-floor-mobile-toolbar > details[open] > summary::after,
  .sh-floor-mobile-context-body > details[data-floor-details^="mobile-"][open] > summary::after {
    margin-block-start: .2em;
    transform: rotate(225deg);
  }
  .sh-floor-mobile-toolbar > details[open] {
    flex-basis: 100%;
  }
  .sh-floor-mobile-toolbar .sh-floor-toolbar {
    margin: .35rem 0 0;
  }
  [data-floor-details="mobile-room-tools"] {
    min-inline-size: 0;
  }
  [data-floor-details="mobile-room-tools"] .sh-floor-controls {
    margin-block-start: .35rem;
  }
  .sh-floor-mobile-tools {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .3rem;
    width: 100%;
  }
  .sh-floor-mobile-tools .q-btn {
    justify-content: center;
    padding-inline: .35rem;
    font-size: .83rem;
    text-align: center;
  }
  .sh-floor-mobile-tools .q-btn[aria-expanded="true"] {
    border-color: var(--q-theme-accent-dark);
    color: var(--q-theme-accent-dark);
    background: var(--q-theme-accent-soft);
  }
  .sh-floor-fixture[data-selected="true"] .sh-floor-fixture-gap {
    stroke: #9ee0ff;
    stroke-width: 13px;
  }
  .sh-floor-fixture[data-selected="true"] > circle:not(.sh-floor-fixture-hit) {
    fill: #9ee0ff;
    stroke-width: 2.5px;
  }
  .sh-floor-board[data-mobile-editor] {
    scroll-margin-block-start: calc(var(--q-header-h, 60px) + .4rem);
  }
  .sh-floor-board[data-mobile-editor] .sh-floor-map:not([data-empty="true"]) .sh-floor-canvas {
    height: clamp(9rem, 28dvh, 15rem);
  }
  .sh-floor-mobile-context {
    margin-block-start: .4rem;
    border: 1px solid var(--q-line);
    border-radius: var(--q-radius-sm);
    background: var(--q-surface, #fff);
  }
  .sh-floor-mobile-context > header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .4rem;
    padding: .35rem;
    border-block-end: 1px solid var(--q-line);
  }
  .sh-floor-mobile-context > header .q-btn {
    padding-inline: .4rem;
    font-size: .8rem;
  }
  .sh-floor-mobile-context h3 {
    margin: 0;
    min-inline-size: 0;
    font-size: 1rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }
  .sh-floor-mobile-context-body {
    max-block-size: min(34dvh, 17rem);
    padding: .45rem;
    overflow: auto;
    scroll-padding-block: .45rem;
  }
  .sh-floor-mobile-context-body > details:not([data-floor-details^="mobile-"]) > summary,
  .sh-floor-mobile-context-body > .sh-floor-selection > h3 {
    display: none;
  }
  .sh-floor-mobile-context-body .sh-floor-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .45rem;
  }
  .sh-floor-mobile-context-body .sh-floor-field > span {
    font-size: .85rem;
    overflow-wrap: anywhere;
  }
  .sh-floor-mobile-context-body :is(.sh-floor-muted, .sh-floor-item-list) {
    margin-block: .35rem;
  }
  .sh-floor-mobile-context-body .sh-floor-selection {
    margin: 0;
    padding: 0;
    border: 0;
  }
  .sh-floor-mobile-context-body .sh-floor-selection > .sh-floor-controls {
    margin-block-start: .35rem;
  }
  .sh-floor-mobile-context-actions:not(:empty) {
    display: flex;
    justify-content: end;
    padding: .35rem;
    border-block-start: 1px solid var(--q-line);
  }
  .sh-floor-keyboard-open .sh-floor-board[data-mobile-editor] .sh-floor-board-head {
    display: none;
  }
  .sh-floor-keyboard-open .sh-floor-board[data-mobile-editor] .sh-floor-map:not([data-empty="true"]) .sh-floor-canvas {
    height: clamp(5rem, calc(var(--sh-floor-viewport-height, 100dvh) * .25), 9rem);
  }
  .sh-floor-keyboard-open .sh-floor-mobile-context-body {
    max-block-size: clamp(5rem, calc(var(--sh-floor-viewport-height, 100dvh) * .27), 9rem);
  }
  .sh-floor-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .sh-floor-board {
    position: static;
  }
  .sh-floor-map[data-mode="edit"] .sh-floor-canvas {
    touch-action: none;
  }
  .sh-floor-canvas {
    height: clamp(12rem, 34dvh, 20rem);
  }
}
@media screen and (max-width: 540px) {
  .sh-floor-page-head {
    grid-template-columns: minmax(0, 1fr);
  }
  .sh-floor-board,
  .sh-floor-panel,
  .sh-floor-guidance {
    padding: .6rem;
    border-radius: var(--q-radius-sm);
  }
  .sh-floor-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: .35rem;
    padding: .45rem;
  }
  .sh-floor-toolbar > label { min-width: 0; }
  .sh-floor-mobile-toolbar > label > span { font-size: .78rem; }
  .sh-floor-mobile-toolbar > .q-btn { padding-inline: .45rem; font-size: .8rem; }
  .sh-floor-toolbar-tools[aria-label="Planansicht"] {
    display: grid;
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: 44px 44px minmax(0, 1fr) minmax(0, 1fr);
    gap: .3rem;
  }
  .sh-floor-toolbar-tools[aria-label="Planansicht"] > :nth-child(n+5) { grid-column: span 2; }
  .sh-floor-toolbar-tools[aria-label="Planansicht"] > .q-btn { justify-content: center; text-align: center; }
  .sh-floor-toolbar-tools[aria-label="Verlauf"] { gap: .25rem; justify-content: end; }
  .sh-floor-toolbar .q-btn,
  .sh-floor-grid-control,
  .sh-floor-board-head .q-btn { padding-inline: .45rem; font-size: .8rem; }
  .sh-floor-board-head .sh-floor-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
}
@media screen and (max-width: 420px) {
  .sh-floor-canvas {
    height: clamp(11rem, 29dvh, 18rem);
  }
}
@media screen and (max-width: 365px) {
  .sh-floor-fields,
  .sh-floor-fields .sh-floor-notch {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media print {
  #sh-floor-plan-print {
    display: block;
  }
  .sh-floor-back,
  .sh-floor-entry,
  .sh-floor-transfer,
  #sh-floor-plan-editor {
    display: none !important;
  }
  .sh-floor-print {
    margin-block: 1em;
  }
  .sh-floor-page-head + #sh-floor-plan-editor + .sh-floor-transfer + #sh-floor-plan-print h2 {
    display: none;
  }
  .sh-floor-print-floor h3 {
    margin-block: 1em .35em;
  }
  .sh-floor-canvas-print {
    width: 100%;
    height: auto;
    max-height: 112mm;
    border: 1px solid #9eb3bf;
    print-color-adjust: exact;
    break-inside: avoid;
  }
  .sh-floor-print-rooms {
    display: grid;
    gap: .7em;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-block-start: .65em;
  }
  .sh-floor-print-room {
    border: 1px solid #b7c5ce;
    break-inside: avoid;
    overflow-wrap: anywhere;
    padding: .5em .7em;
  }
  .sh-floor-print-room h4,
  .sh-floor-print-room h5,
  .sh-floor-print-room p,
  .sh-floor-print-room ul {
    margin: 0 0 .25em;
  }
}

.sh-floor-warning {
  color: #8a301d;
}
.sh-floor-fixture[data-opening-conflict="true"] .sh-floor-fixture-opening {
  stroke: #a03122;
  stroke-dasharray: .08 .05;
}
.sh-floor-room-preview {
  margin-block: .75rem;
  padding: .75rem;
  border: 1px solid #ae7049;
  border-radius: .5rem;
  overflow-wrap: anywhere;
}

/* A background is never a drag target; keep canonical room outlines and devices above it. */
.sh-floor-canvas[data-template="true"] .sh-floor-room-area { fill-opacity: .18; }
.sh-floor-template-picker { grid-column: 1 / -1; min-width: 0; }
.sh-floor-template-picker svg { display:block; width:100%; height:auto; max-height:16rem; background:#fff; border:1px solid var(--q-line); cursor:crosshair; }
.sh-floor-template-picker circle { fill:#fff; stroke:#0875a3; stroke-width:2px; vector-effect:non-scaling-stroke; pointer-events:none; }
.sh-floor-template-picker circle[data-floor-template-marker="second"] { stroke:#b15c12; }
[data-floor-template-upload] { display:grid; gap:.5rem; min-width:0; }
[data-floor-template-upload] input[type="file"] { max-width:100%; min-width:0; }

.sh-floor-template-raster { display:block; width:100%; height:100%; pointer-events:none; }

.sh-floor-map[data-mode="contour"] .sh-floor-canvas { touch-action: none; cursor: crosshair; }
.sh-floor-map[data-mode="contour"] .sh-floor-room * { pointer-events: none; }
.sh-floor-room[data-contour-source="true"] { opacity: .55; }
.sh-floor-room[data-contour-source="true"] > .sh-floor-room-area { fill: none; stroke-dasharray: 5px 4px; }
.sh-contour-preview > polygon { fill: #2082a426; pointer-events: none; }
.sh-contour-preview [data-floor-contour-wall] { stroke: #176787; stroke-width: 4px; vector-effect: non-scaling-stroke; cursor: move; }
.sh-contour-preview [data-floor-contour-wall][data-active="true"] { stroke: #064764; stroke-width: 7px; }
.sh-contour-preview [data-floor-contour-vertex] { cursor: grab; }
.sh-contour-preview circle { fill: #fff; stroke: #176787; stroke-width: 2px; vector-effect: non-scaling-stroke; }
.sh-contour-preview .sh-contour-hit { fill: transparent; stroke: none; }
.sh-contour-preview [data-floor-contour-vertex][data-active="true"] circle:not(.sh-contour-hit) { fill: #a9e1f7; }
.sh-contour-preview text { text-anchor: middle; font-weight: 700; fill: #153747; pointer-events: none; }
.sh-contour-preview[data-invalid="true"] [data-floor-contour-wall],
.sh-contour-preview[data-invalid="true"] circle:not(.sh-contour-hit) { stroke: #a72e2e; }
.sh-contour-panel {
  min-width: 0;
  padding: .8rem;
  border: 1px solid var(--q-line);
  border-radius: var(--q-radius);
  background: var(--q-surface, #fff);
}
.sh-contour-heading, .sh-contour-tools, .sh-contour-group {
  display: grid;
  gap: .5rem;
  align-items: start;
}
.sh-contour-panel > .sh-floor-controls { margin-block-start: .75rem; }
.sh-contour-meters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
}
.sh-contour-meters > button { grid-column: 1 / -1; justify-self: start; }
.sh-contour-meters[data-contour-form="length"] { grid-template-columns: minmax(0, 1fr); }
.sh-contour-panel ul { margin: .5rem 0; padding-inline-start: 1.4rem; }
.sh-floor-fields[data-floor-quick-dimensions] { grid-column: 1 / -1; }
.sh-floor-fields[data-floor-quick-dimensions][hidden] { display: none; }
@media (pointer: coarse) {
  .sh-contour-preview [data-floor-contour-wall] { stroke-width: 8px; }
}
.sh-floor-printed-wall { fill: #153747; font-weight: 700; paint-order: stroke; stroke: #fff; stroke-width: .04px; }
.sh-contour-fittings * { pointer-events: none; }
