.project-tab-card.room-sketch-tab-card {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  min-height: 0;
}

.room-sketch {
  --room-sketch-bg: var(--panel, #fff);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  height: calc(100dvh - 36px);
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--room-sketch-bg);
  color: var(--ink);
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.room-sketch-top,
.room-sketch-tools,
.room-sketch-dim {
  touch-action: manipulation;
  user-select: none;
}

.room-sketch-top {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
  padding: 6px 8px;
  background: var(--panel, #fff);
  border-bottom: 1px solid var(--line);
}

.room-sketch-top select,
.room-sketch-top input {
  flex: 1 1 120px;
  width: auto;
  min-width: 0;
  min-height: 36px;
  padding-top: 4px;
  padding-bottom: 4px;
  font-size: 16px;
}

.room-sketch-back {
  display: none;
}

.room-sketch-delete-icon {
  display: none;
  width: 18px;
  height: 18px;
}

.room-sketch-tools {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  padding: 5px 8px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  background: var(--tile, #eef7fc);
  border-bottom: 1px solid var(--line);
}

.room-sketch-tools::-webkit-scrollbar {
  display: none;
}

.room-sketch-tools button,
.room-sketch-top button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 6px 10px;
  font-size: 14px;
  line-height: 1.1;
  white-space: nowrap;
}

.room-sketch-tools button.is-on {
  background: var(--accent);
  color: #fff;
}

.room-sketch-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 240px;
  touch-action: none;
  overflow: hidden;
  cursor: crosshair;
}

.room-sketch.is-panning .room-sketch-stage {
  cursor: grab;
}

.room-sketch.is-orbiting .room-sketch-stage {
  cursor: move;
}

.room-sketch-stage canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.room-sketch-laser-measure {
  position: absolute;
  left: 14px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 15;
  width: 54px;
  height: 54px;
  min-width: 54px;
  padding: 0;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #dc2626;
  box-shadow: 0 2px 10px #0006;
  touch-action: manipulation;
}
.room-sketch-laser-measure:disabled { opacity: .4; }
.room-sketch-laser-measure[hidden] { display: none; }
.room-sketch-laser-measure:not(:disabled):active { transform: scale(.92); background: #b91c1c; }
.room-sketch-floating-undo {
  position: absolute;
  top: 8px;
  right: 12px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  min-height: 54px;
  padding: 0;
  border: 2px solid #91d6fa;
  border-radius: 50%;
  background: #17628d;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
  touch-action: manipulation;
}
.room-sketch-floating-undo svg { width: 30px; height: 30px; }
.room-sketch-floating-undo { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.room-sketch-floating-undo:disabled { opacity: .45; }
.room-sketch-floating-undo:not(:disabled):active { transform: scale(.95); }
.room-sketch-floating-fit,
.room-sketch-floating-view {
  position: absolute;
  top: 72px;
  right: 12px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  min-height: 54px;
  padding: 0;
  border: 2px solid #91d6fa;
  border-radius: 50%;
  background: #17628d;
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  touch-action: manipulation;
}
.room-sketch-floating-view { top: 136px; }
.room-sketch-floating-view svg { width: 30px; height: 30px; }

.room-sketch-overlay {
  z-index: 1;
  pointer-events: none;
}

.room-sketch-legend {
  position: absolute;
  top: 8px;
  left: calc(8px + env(safe-area-inset-left, 0px));
  z-index: 2;
  display: flex;
  gap: 6px;
  pointer-events: auto;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(247, 251, 254, 0.9);
  font-size: 11px;
  font-weight: 700;
}

.room-sketch-legend .is-x { color: #d6453d; }
.room-sketch-legend .is-y { color: #2f9e44; }
.room-sketch-legend .is-z { color: #2f6fdb; }
.room-sketch-legend button {
  min-height: 42px;
  padding: 6px 9px;
  border: 1px solid currentColor;
  border-radius: 9px;
  background: var(--panel, #fff);
  font-size: 12px;
  font-weight: 800;
  box-shadow: inset 0 -3px currentColor;
  touch-action: manipulation;
}
.room-sketch-legend button.is-off {
  color: #7d858b;
  background: #e0e3e5;
  border-color: #a7afb5;
  box-shadow: none;
}
.room-sketch-legend button.is-off span { color: #7d858b; }
.room-sketch-legend button span { padding: 0 7px; }
.room-sketch-move-mm {
  position: absolute;
  z-index: 6;
  bottom: 8px;
  right: 8px;
  width: min(360px, calc(100% - 16px));
  box-sizing: border-box;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel, #fff);
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
}
.room-sketch-move-mm[hidden] { display: none; }
.room-sketch-move-row { display:flex; gap:5px; align-items:center; margin:6px 0; }
.room-sketch-move-row label { display:flex; align-items:center; gap:6px; flex:1; min-width:0; }
.room-sketch-move-row input { width:100%; min-width:0; font-size:18px; }
.room-sketch-move-row button { white-space:nowrap; min-height:44px; padding:6px 8px; }

.room-sketch-area {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  pointer-events: none;
  padding: 4px 9px 5px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel, #fff);
  box-shadow: 0 4px 12px rgba(28, 51, 72, 0.07);
}

.room-sketch-area span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.room-sketch-area strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.2;
}

.room-sketch-hint {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 42%;
  z-index: 1;
  margin: 0;
  pointer-events: none;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.35;
}

.room-sketch-hint[hidden] {
  display: none;
}

.room-sketch-chips {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  pointer-events: none;
}
.room-sketch-laser-measure:not([hidden]) ~ .room-sketch-chips {
  left: 80px;
}

.room-sketch-mode,
.room-sketch-status {
  max-width: 100%;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel, #fff);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.room-sketch-mode {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 700;
}

.room-sketch-mode[hidden],
.room-sketch-status:empty {
  display: none;
}

.room-sketch-status.is-error {
  color: var(--warn, #b84b2a);
}

.room-sketch-dim {
  position: fixed;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 100;
  display: flex;
  gap: 6px;
  align-items: center;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
  padding: 6px;
  padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel, #fff);
  box-shadow: 0 6px 20px rgba(28, 51, 72, 0.16);
  touch-action: manipulation;
}

.room-sketch-dim[hidden] {
  display: none !important;
}

.room-sketch-number-pad { display: none; }
.room-sketch-dim.has-number-pad { flex-wrap: wrap; }
.room-sketch-dim.has-number-pad > label { flex-basis: calc(100% - 185px); }
.has-number-pad .room-sketch-number-pad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  flex: 0 0 100%;
}
.room-sketch-number-pad button {
  min-height: 44px;
  font-size: 22px;
  padding: 4px;
  touch-action: manipulation;
}

.room-sketch-export-btn::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 6px;
  vertical-align: 2px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}

.room-sketch-menu {
  position: absolute;
  z-index: 12;
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: max-content;
  min-width: 190px;
  max-width: min(300px, calc(100% - 16px));
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel, #fff);
  box-shadow: 0 10px 28px rgba(28, 51, 72, 0.22);
  touch-action: manipulation;
}

.room-sketch-menu[hidden] {
  display: none !important;
}

.room-sketch-object-menu {
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  max-height: calc(100% - 120px);
  overflow-y: auto;
}

.room-sketch-menu button {
  display: block;
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink, inherit);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  box-shadow: none;
}

.room-sketch-menu button[hidden] {
  display: none;
}

.room-sketch-menu button:hover,
.room-sketch-menu button:focus-visible {
  background: var(--tile, #eef7fc);
}

.room-sketch-menu .room-sketch-menu-retry {
  background: var(--accent);
  color: #fff;
  white-space: normal;
}

.room-sketch-menu-note {
  margin: 4px 8px 3px;
  max-width: 230px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.room-sketch-dim label {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.room-sketch-dim label span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.room-sketch-dim input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding-top: 4px;
  padding-bottom: 4px;
  font-size: 20px;
  font-weight: 700;
}

.room-sketch-dim button {
  flex: 0 0 auto;
  min-height: 40px;
  min-width: 44px;
  padding: 6px 10px;
  font-size: 15px;
}

.room-sketch-dim .room-sketch-dim-close {
  min-width: 40px;
  padding: 6px;
}

@media (max-width: 920px), (pointer: coarse) and (max-height: 560px) {
  .project-tab-card.room-sketch-tab-card {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    flex-direction: column;
    height: 100dvh;
    width: 100%;
    margin: 0;
  }

  .room-sketch {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    border: 0;
    border-radius: 0;
  }

  .room-sketch-stage {
    flex: 1 1 auto;
    min-height: 0;
  }

  .room-sketch-top {
    padding-top: calc(6px + env(safe-area-inset-top, 0px));
    padding-left: calc(8px + env(safe-area-inset-left, 0px));
    padding-right: calc(8px + env(safe-area-inset-right, 0px));
  }

  .room-sketch-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-weight: 700;
  }

  .room-sketch-delete {
    padding-left: 8px;
    padding-right: 8px;
  }

  .room-sketch-delete-text {
    display: none;
  }

  .room-sketch-delete-icon {
    display: block;
  }

  body.room-sketch-open {
    overflow: hidden;
    overscroll-behavior: none;
    height: 100%;
  }

  /*
   * iOS Safari: on phones the CRM's .workspace is a scroll container with
   * -webkit-overflow-scrolling: touch, and WebKit turns such a scroller into its own
   * stacking context. The full-screen sketch (z-index 80) is then trapped inside it,
   * and the CRM's sticky project header ("← Tilbake", title, buttons) and the bottom
   * "Tilbake" bar are painted on top of the drawing. While the sketch is open those
   * CRM bars are hidden (the sketch has its own Tilbake in its top bar) and the
   * scroller is switched off, so nothing can stack above the sketch.
   */
  body.room-sketch-open .shell > .content > .topbar,
  body.room-sketch-open .shell .mobile-bottom-bar {
    display: none !important;
  }

  body.room-sketch-open .shell > .content,
  body.room-sketch-open .shell > .content > .workspace {
    overflow: visible !important;
    -webkit-overflow-scrolling: auto !important;
  }

  html:has(body.room-sketch-open) {
    overflow: hidden;
    overscroll-behavior: none;
  }
}

body.room-sketch-open #crmPetAssistant {
  visibility: hidden;
  pointer-events: none;
}

/* Phone in landscape: tools become a slim column on the left so the drawing keeps the full height. */
@media (orientation: landscape) and (max-height: 560px) {
  .room-sketch {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
  }

  .room-sketch-top {
    grid-column: 1 / -1;
  }

  .room-sketch-tools {
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    touch-action: pan-y;
    padding-left: calc(6px + env(safe-area-inset-left, 0px));
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }

  .room-sketch-tools button {
    min-height: 34px;
    padding: 5px 8px;
    font-size: 13px;
  }

  .room-sketch-stage {
    min-height: 0;
  }

  .room-sketch-top select,
  .room-sketch-top input {
    flex-basis: 160px;
    max-width: 260px;
  }
}
.room-laser-info { position: absolute; z-index: 8; bottom: 16px; left: 12px; right: 12px; padding: 12px; border: 1px solid #5289a4; border-radius: 8px; font-size: 14px; overflow-wrap: anywhere; background: #173344; color: #fff; box-shadow: 0 2px 8px #0003; }
.room-laser-info, .room-laser-info[hidden] { display: none; }
.room-laser-dot { color: #94a3b8; margin-right: 5px; }
.room-sketch-laser-reading { position: absolute; z-index: 25; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); padding: 6px 10px; border: 1px solid #47627e; border-radius: 8px; background: #142b46; color: #fff; box-shadow: 0 2px 8px #0003; font-size: 16px; line-height: 1.25; font-weight: 600; font-variant-numeric: tabular-nums; pointer-events: none; }
.room-sketch-laser-reading[hidden] { display: none; }
.room-laser-dot[hidden], .room-bosch-connecting[hidden] { display: none; }
.room-bosch-connecting { display: inline-flex; position: relative; width: 25px; height: 25px; vertical-align: middle; align-items: center; justify-content: center; margin-right: 4px; color: #aab4bc; }
.room-bosch-connecting::before { content: ''; position: absolute; inset: 0; border: 2px solid #94a3b830; border-top-color: #aab4bc; border-radius: 50%; box-shadow: 0 0 8px #94a3b844; animation: room-bosch-spin 1s linear infinite; }
.room-bosch-connecting svg { width: 15px; height: 15px; }
@keyframes room-bosch-spin { to { transform: rotate(360deg); } }

/* ---- Profil vegg ------------------------------------------------------------------------ */
.room-sketch-tools .room-sketch-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
}
.room-sketch-icon-btn svg { width: 24px; height: 24px; }
.room-profile {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  max-height: 56%;
  min-height: 0;
  border-top: 2px solid #f08c4a;
  background: var(--panel, #fff);
  color: var(--ink, #1c3348);
  box-shadow: 0 -6px 18px rgba(28, 51, 72, 0.12);
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  z-index: 5;
}
.room-profile[hidden], .room-profile [hidden] { display: none !important; }
.room-profile.room-profile-compact {
  position: absolute;
  bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  left: 80px;
  right: 8px;
  max-width: 420px;
  margin: 0 auto;
  max-height: 40%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding-top: 14px;
  z-index: 12;
}
.room-profile-compact .room-profile-tabs,
.room-profile-compact .room-profile-head > :not(.room-profile-close):not(.room-profile-info) { display: none; }
.room-profile-compact .room-profile-head { position: absolute; top: 0; right: 0; padding: 2px; }
.room-profile-compact .room-profile-body { padding: 0 12px 12px; }
.room-profile-compact .room-profile-entry-title { padding: 0 24px; }
.room-profile-compact p { margin: 8px 0; font-size: 14px; }
.room-profile-live {
  position: absolute;
  top: 10px;
  left: 70px;
  right: 78px;
  z-index: 6;
  text-align: center;
  padding: 8px;
  border-radius: 12px;
  background: #17628d;
  color: white;
  font-size: 18px;
  font-weight: 700;
  pointer-events: none;
}
.room-profile-live[hidden] { display: none; }
.room-profile-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px 4px;
}
.room-profile-title { flex: 1 1 auto; font-size: 15px; color: #c2410c; white-space: nowrap; }
.room-profile-head select { flex: 1 1 120px; min-width: 0; min-height: 34px; font-size: 15px; }
.room-profile-head button { min-height: 34px; padding: 4px 10px; font-size: 14px; }
.room-profile-close { min-width: 36px; }
.room-profile-info {
  min-width: 34px;
  border-radius: 999px;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 700;
}
.room-profile.room-profile-compact.is-intro { left: 8px; max-width: 520px; max-height: calc(100% - 16px); overflow-y: auto; }
.room-profile.is-intro .room-profile-tabs,
.room-profile.is-intro .room-profile-body,
.room-profile.is-intro .room-profile-info { display: none; }
.room-profile-intro { padding: 0 12px 12px; }
.room-profile-intro[hidden] { display: none; }
.room-profile-intro-title { display: block; padding: 0 44px 8px 0; font-size: 16px; color: #c2410c; }
.room-profile-intro-svg {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line, #d5e0ea);
  border-radius: 10px;
  background: #fff;
}
.room-profile-intro p { margin: 8px 0; font-size: 14px; line-height: 1.35; }
.room-profile-intro-tips { margin: 0 0 6px; padding-left: 18px; font-size: 14px; line-height: 1.35; }
.room-profile-intro-tips li { margin: 2px 0; }
.room-profile-intro-hide { justify-content: flex-start; margin: 6px 0 10px; font-size: 15px; font-weight: 600; }
.room-profile-intro-hide input { flex: 0 0 auto; width: 22px; height: 22px; min-height: 0; margin: 0; }
.room-profile-intro .room-profile-primary { width: 100%; }
.room-profile-tabs { display: flex; gap: 4px; padding: 0 8px 6px; }
.room-profile-tabs button {
  flex: 1 1 0;
  min-height: 34px;
  padding: 4px 6px;
  border: 1px solid var(--line, #d5e0ea);
  border-radius: 8px;
  background: var(--tile, #eef7fc);
  color: var(--ink, #1c3348);
  font-size: 14px;
  font-weight: 700;
  box-shadow: none;
}
.room-profile-tabs button.is-on { background: #d9480f; border-color: #d9480f; color: #fff; }
.room-profile-tabs button:disabled { opacity: .45; }
.room-profile-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding: 0 10px calc(10px + env(safe-area-inset-bottom, 0px));
}
.room-profile-chips {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
  touch-action: pan-x;
}
.room-profile-chips::-webkit-scrollbar { display: none; }
.room-profile-chip {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 38px;
  padding: 3px 10px;
  border: 1px solid #b197fc;
  border-radius: 9px;
  background: #f3f0ff;
  color: #5f3dc4;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.1;
  box-shadow: none;
}
.room-profile-chip small { font-size: 10px; font-weight: 600; color: #7950f2; }
.room-profile-chip.is-on { background: #7048e8; border-color: #7048e8; color: #fff; }
.room-profile-chip.is-on small { color: #e5dbff; }
.room-profile-chip.room-profile-add { justify-content: center; border-style: dashed; background: transparent; }
.room-profile-entry-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.room-profile-entry-head button { min-width: 44px; min-height: 40px; padding: 4px; font-size: 22px; line-height: 1; }
.room-profile-entry-title { flex: 1 1 auto; min-width: 0; text-align: center; }
.room-profile-entry-title strong { display: block; font-size: 18px; }
.room-profile-entry-title span { display: block; color: var(--muted, #5b6b7a); font-size: 12px; }
.room-profile-fields { display: flex; gap: 8px; }
.room-profile-field {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 5px 8px 6px;
  border: 2px solid var(--line, #d5e0ea);
  border-radius: 10px;
  background: #fff;
  position: relative;
}
.room-profile-field.is-active { border-color: #d9480f; box-shadow: 0 0 0 3px rgba(217, 72, 15, .15); }
.room-profile-field span { color: var(--muted, #5b6b7a); font-size: 12px; font-weight: 700; }
.room-profile-field input {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 0 28px 0 0;
  border: 0;
  background: transparent;
  color: var(--ink, #1c3348);
  font-size: 24px;
  font-weight: 800;
  box-shadow: none;
  outline: none;
}
.room-profile-field em { position: absolute; right: 8px; bottom: 10px; color: var(--muted, #5b6b7a); font-size: 13px; font-style: normal; }
.room-profile-check { margin: 6px 0 0; padding: 6px 8px; border-radius: 8px; font-size: 13px; line-height: 1.3; }
.room-profile-check.is-ok { background: #ebfbee; color: #2b8a3e; }
.room-profile-check.is-warn { background: #fff4e6; color: #b35900; }
.room-profile-check.is-error { background: #fff5f5; color: #c92a2a; }
.room-profile-check.is-info { background: #e7f5ff; color: #1864ab; }
.room-profile-hint { margin: 5px 0; font-size: 12px; }
.room-profile-laser { color: var(--muted, #5b6b7a); }
.room-profile-laser.is-on { color: #2b8a3e; font-weight: 700; }
.room-profile-note { margin: 6px 0; color: var(--muted, #5b6b7a); font-size: 12px; line-height: 1.35; }
.room-profile-entry-actions { display: flex; gap: 6px; margin-top: 6px; }
.room-profile-entry-actions button { min-height: 46px; font-size: 16px; }
.room-profile-entry-actions .room-profile-primary { flex: 1 1 auto; }
.room-profile-primary { background: #d9480f; border-color: #d9480f; color: #fff; font-weight: 800; }
.room-profile-empty { padding: 8px 2px; text-align: center; }
.room-profile-empty p { margin: 0 0 10px; color: var(--muted, #5b6b7a); font-size: 14px; line-height: 1.4; }
.room-profile-empty button { min-height: 46px; padding: 8px 18px; font-size: 16px; }
.room-profile-table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.room-profile-table th { position: sticky; top: 0; background: var(--panel, #fff); color: var(--muted, #5b6b7a); font-size: 11px; text-align: right; padding: 4px; }
.room-profile-table td { padding: 3px 4px; border-top: 1px solid var(--line, #e3ebf1); text-align: right; white-space: nowrap; }
.room-profile-table th:first-child, .room-profile-table td:first-child { text-align: left; }
.room-profile-table tr.is-error td { color: #c92a2a; }
.room-profile-table tr.is-warn td { color: #b35900; }
.room-profile-table tr.is-empty td { color: #98a4ae; }
.room-profile-status { text-align: center !important; font-weight: 800; }
.room-profile-row-actions button { min-height: 30px; padding: 2px 7px; margin-left: 3px; font-size: 12px; }
.room-profile-row-delete { color: #c92a2a; }
.room-profile-verdict { margin: 0 0 8px; padding: 8px 10px; border-radius: 9px; font-size: 15px; font-weight: 800; }
.room-profile-verdict.is-regular { background: #ebfbee; color: #2b8a3e; }
.room-profile-verdict.is-almost { background: #fff9db; color: #946c00; }
.room-profile-verdict.is-wavy { background: #fff4e6; color: #c2410c; }
.room-profile-verdict.is-straight, .room-profile-verdict.is-few { background: #e7f5ff; color: #1864ab; }
.room-profile-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.room-profile-stat { padding: 6px 8px; border: 1px solid var(--line, #e3ebf1); border-radius: 9px; background: #fbfdff; }
.room-profile-stat span { display: block; color: var(--muted, #5b6b7a); font-size: 11px; font-weight: 700; }
.room-profile-stat strong { display: block; font-size: 18px; font-variant-numeric: tabular-nums; }
.room-profile-stat small { display: block; color: var(--muted, #5b6b7a); font-size: 11px; }
.room-profile-chart { margin: 8px 0 0; }
.room-profile-chart svg { display: block; width: 100%; height: 64px; background: #fbfdff; border: 1px solid var(--line, #e3ebf1); border-radius: 8px; }
.room-profile-chart figcaption { color: var(--muted, #5b6b7a); font-size: 11px; margin-top: 2px; }
.room-profile-joints, .room-profile-warnings { margin: 6px 0; padding-left: 18px; font-size: 12px; line-height: 1.35; }
.room-profile-warnings { color: #b35900; }
.room-profile-exports, .room-profile-row-buttons { display: flex; gap: 6px; margin: 8px 0 4px; }
.room-profile-exports button, .room-profile-row-buttons button { flex: 1 1 0; min-height: 42px; font-size: 14px; }
.room-profile-setting { display: flex; flex-direction: column; gap: 2px; font-size: 12px; font-weight: 700; color: var(--muted, #5b6b7a); }
.room-profile-setting input { min-height: 38px; font-size: 16px; color: var(--ink, #1c3348); font-weight: 600; }
.room-profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 6px 0; }
.room-profile-mode { margin: 8px 0 4px; padding: 4px 8px 6px; border: 1px solid var(--line, #e3ebf1); border-radius: 9px; font-size: 14px; }
.room-profile-mode legend { color: var(--muted, #5b6b7a); font-size: 12px; font-weight: 700; }
.room-profile-mode label, .room-profile-check-row { display: flex; align-items: center; gap: 8px; min-height: 34px; font-size: 14px; }
.room-profile .danger { margin-top: 8px; width: 100%; min-height: 42px; }
.room-sketch.has-profile-panel .room-sketch-hint { display: none; }

@media (min-width: 921px) and (min-height: 561px) {
  .room-sketch.has-profile-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
    grid-template-rows: auto auto minmax(0, 1fr);
  }
  .room-sketch.has-profile-panel .room-sketch-top,
  .room-sketch.has-profile-panel .room-sketch-tools { grid-column: 1 / -1; }
  .room-sketch.has-profile-panel .room-sketch-stage { grid-column: 1; grid-row: 3; min-height: 0; }
  .room-sketch.has-profile-panel .room-profile { grid-column: 2; grid-row: 3; max-height: none; border-top: 0; border-left: 2px solid #f08c4a; box-shadow: none; }
}
@media (orientation: landscape) and (max-height: 560px) {
  .room-sketch.has-profile-panel { grid-template-columns: auto minmax(0, 1fr) minmax(300px, 44%); }
  .room-sketch.has-profile-panel .room-profile { grid-column: 3; grid-row: 2; max-height: none; border-top: 0; border-left: 2px solid #f08c4a; }
}

/* ---- Vinkel ----------------------------------------------------------------------------- */
.room-profile.room-angle {
  position: absolute;
  bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  left: 8px;
  right: 8px;
  max-width: 460px;
  margin: 0 auto;
  max-height: min(78%, 720px);
  border: 1px solid var(--line, #d5e0ea);
  border-top: 3px solid #5f3dc4;
  border-radius: 14px;
  z-index: 12;
}
.room-angle-head { display: flex; align-items: center; gap: 6px; padding: 6px 8px 4px; }
.room-angle-badge { flex: 0 0 auto; display: inline-flex; width: 26px; height: 26px; color: #5f3dc4; }
.room-angle-badge svg { width: 26px; height: 26px; }
.room-angle-title { flex: 1 1 auto; font-size: 16px; color: #3b2a8c; }
.room-angle-head button { min-height: 36px; padding: 4px 10px; font-size: 14px; white-space: nowrap; }
.room-angle-close { min-width: 38px; }
.room-angle button.primary { background: #5f3dc4; border-color: #5f3dc4; color: #fff; font-weight: 800; }
.room-angle button.primary:disabled { opacity: .45; }
.room-angle-seg { display: flex; gap: 4px; margin: 2px 0 6px; }
.room-angle-seg button {
  flex: 1 1 0; min-height: 40px; padding: 4px 6px; border: 1px solid var(--line, #d5e0ea); border-radius: 9px;
  background: var(--tile, #f3f0ff); color: var(--ink, #1c3348); font-size: 15px; font-weight: 700; box-shadow: none;
}
.room-angle-seg.is-small button { min-height: 34px; font-size: 13px; }
.room-angle-seg button.is-on { background: #5f3dc4; border-color: #5f3dc4; color: #fff; }
.room-angle-intro { margin: 0; }
.room-angle-intro svg { display: block; width: 100%; max-height: 300px; border: 1px solid var(--line, #e3ebf1); border-radius: 10px; background: #fff; }
.room-angle-howto { margin: 6px 0; padding-left: 20px; font-size: 13px; line-height: 1.4; color: var(--ink, #1c3348); }
.room-angle-howto li { margin: 2px 0; }
.room-angle-start { width: 100%; min-height: 48px; font-size: 17px; }
.room-angle-list { list-style: none; margin: 0 0 8px; padding: 0; }
.room-angle-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line, #e3ebf1); }
.room-angle-list .room-angle-name { min-height: 34px; font-size: 15px; font-weight: 700; }
.room-angle-list strong { font-size: 20px; color: #3b2a8c; font-variant-numeric: tabular-nums; }
.room-angle-list small { color: var(--muted, #5b6b7a); font-size: 12px; }
.room-angle-list-actions { display: flex; gap: 4px; justify-content: flex-end; }
.room-angle-list-actions button { min-height: 32px; margin: 0 !important; width: auto !important; padding: 2px 10px; font-size: 13px; }
@media (orientation: landscape) and (max-height: 560px) {
  .room-profile.room-angle { left: auto; right: 8px; top: 8px; bottom: 8px; width: min(46%, 440px); max-height: none; margin: 0; }
  .room-angle-intro svg { max-height: 180px; }
}

/* ---- Intro panels fit the screen (Vinkel, Profil vegg) -------------------------------------
   --rs-visible-h / --rs-hidden-below are set by room-sketch.js from the visible part of the sketch
   box (a short desktop window can push its bottom below the fold). The panel never grows past the
   visible area or 100dvh, the content scrolls inside, the figure scales down with the screen height
   and the OK button stays visible (sticky) at the bottom. */
.room-profile.room-angle,
.room-profile.room-profile-compact {
  bottom: calc(8px + env(safe-area-inset-bottom, 0px) + var(--rs-hidden-below, 0px));
}
.room-profile.room-angle {
  max-height: min(78%, 720px);
  max-height: min(720px, calc(var(--rs-visible-h, 100%) * .78), calc(100vh - 16px));
  max-height: min(720px, calc(var(--rs-visible-h, 100%) * .78), calc(100dvh - 16px));
}
.room-profile.room-angle[data-angle-view="intro"],
.room-profile.room-profile-compact.is-intro {
  max-height: calc(100% - 16px);
  max-height: max(220px, min(calc(var(--rs-visible-h, 100%) - 16px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)), calc(100vh - 16px)));
  max-height: max(220px, min(calc(var(--rs-visible-h, 100%) - 16px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)), calc(100dvh - 16px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px))));
  overflow: hidden;
}
/* Profil vegg: header (✕) stays put, only the intro card scrolls. */
.room-profile.room-profile-compact.is-intro .room-profile-intro {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0;
}
.room-profile-intro-svg {
  width: min(100%, calc(42vh * 800 / 780), 520px);
  width: min(100%, calc(42dvh * 800 / 780), 520px);
  margin: 0 auto;
}
.room-profile-intro .room-profile-primary,
.room-angle[data-angle-view="intro"] .room-angle-start {
  position: sticky;
  bottom: 0;
  z-index: 2;
  box-shadow: 0 -12px 12px -6px var(--panel, #fff), 0 12px 0 0 var(--panel, #fff);
}
.room-profile-intro .room-profile-primary { min-height: 46px; margin-bottom: 12px; font-size: 16px; }
.room-angle[data-angle-view="intro"] .room-angle-body { padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
.room-angle-intro svg {
  width: min(100%, calc(34vh * 600 / 540));
  width: min(100%, calc(34dvh * 600 / 540));
  height: auto;
  max-height: none;
  margin: 0 auto;
}
@media (orientation: landscape) and (max-height: 560px) {
  .room-profile.room-angle { bottom: 8px; max-height: none; }
  .room-angle-intro svg { width: min(100%, calc(180px * 600 / 540)); }
}

/* ---- Nisje ------------------------------------------------------------------------------ */
.room-profile.room-niche {
  position: absolute;
  bottom: calc(8px + env(safe-area-inset-bottom, 0px) + var(--rs-hidden-below, 0px));
  left: 8px;
  right: 8px;
  max-width: 460px;
  margin: 0 auto;
  max-height: min(64%, 600px);
  max-height: min(600px, calc(var(--rs-visible-h, 100%) * .64), calc(100dvh - 16px));
  border: 1px solid var(--line, #d5e0ea);
  border-top: 3px solid #0b7285;
  border-radius: 14px;
  z-index: 12;
}
.room-niche-head { display: flex; align-items: center; gap: 6px; padding: 6px 8px 4px; }
.room-niche-badge { flex: 0 0 auto; display: inline-flex; width: 26px; height: 26px; color: #0b7285; }
.room-niche-badge svg { width: 26px; height: 26px; }
.room-niche-head select { flex: 1 1 auto; min-width: 0; min-height: 36px; font-size: 15px; font-weight: 700; color: #0b4f5c; }
.room-niche-head select:disabled { opacity: 1; background: transparent; border-color: transparent; -webkit-appearance: none; appearance: none; color: #0b4f5c; }
.room-niche-head button { min-height: 36px; padding: 4px 10px; font-size: 14px; }
.room-niche-close { min-width: 38px; }
.room-niche-tabs { display: flex; gap: 4px; padding: 0 8px 6px; }
.room-niche-tabs button {
  flex: 1 1 0;
  min-height: 34px;
  padding: 4px 4px;
  border: 1px solid var(--line, #d5e0ea);
  border-radius: 8px;
  background: var(--tile, #eef7fc);
  color: var(--ink, #1c3348);
  font-size: 14px;
  font-weight: 700;
  box-shadow: none;
}
.room-niche-tabs button.is-on { background: #0b7285; border-color: #0b7285; color: #fff; }
.room-niche-tabs button:disabled { opacity: .45; }
.room-niche .room-profile-primary { background: #0b7285; border-color: #0b7285; color: #fff; }
.room-niche .room-profile-field.is-active { border-color: #0b7285; box-shadow: 0 0 0 3px rgba(11, 114, 133, .16); }
.room-niche-steps { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; touch-action: pan-x; }
.room-niche-steps::-webkit-scrollbar { display: none; }
.room-niche-step {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 50px;
  min-height: 36px;
  padding: 2px 7px;
  border: 1px solid #99e9f2;
  border-radius: 8px;
  background: #fff;
  color: #0b4f5c;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
  box-shadow: none;
}
.room-niche-step small { font-size: 10px; font-weight: 600; color: #5b6b7a; }
.room-niche-step.is-optional { border-style: dashed; }
.room-niche-step.is-done { background: #e3fafc; }
.room-niche-step.is-done small { color: #0b7285; font-weight: 800; }
.room-niche-step.is-on { background: #0b7285; border-color: #0b7285; color: #fff; }
.room-niche-step.is-on small { color: #c5f6fa; }
.room-niche-entry-row { display: flex; gap: 8px; align-items: stretch; }
.room-niche-mini { flex: 0 0 64px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line, #e3ebf1); border-radius: 10px; background: #fbfdff; }
.room-niche-mini svg { display: block; width: 62px; height: 78px; }
.room-niche-field input { font-size: 30px; min-height: 44px; }
.room-niche-summary { margin: 0 0 8px; padding: 9px 10px; border-radius: 10px; background: #e6fcf5; color: #087f5b; font-size: 16px; font-weight: 800; line-height: 1.3; }
.room-niche-summary.has-warning { background: #fff4e6; color: #b35900; }
.room-niche-figure { margin: 0 0 8px; border: 1px solid var(--line, #e3ebf1); border-radius: 10px; background: #fff; }
.room-niche-figure svg { display: block; width: 100%; height: auto; max-height: 300px; }
.room-niche .room-profile-stat.is-governing strong { color: #c92a2a; }
.room-niche .room-profile-stat.is-warn { border-color: #ffc078; background: #fff4e6; }
.room-niche .room-profile-stat.is-warn strong { color: #b35900; }
.room-niche-fills { list-style: none; margin: 8px 0; padding: 0; border: 1px solid var(--line, #e3ebf1); border-radius: 10px; }
.room-niche-fills li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; font-size: 14px; border-top: 1px solid var(--line, #e3ebf1); }
.room-niche-fills li:first-child { border-top: 0; }
.room-niche-fills span { color: var(--muted, #5b6b7a); font-weight: 700; }
.room-niche-warnings li.is-error { color: #c92a2a; font-weight: 700; }
.room-niche-copy { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--muted, #5b6b7a); }
.room-niche-cut { margin: 0; width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid #ced4da; border-radius: 10px; background: #fff; font: 13px/1.4 ui-monospace, Menlo, Consolas, monospace; font-weight: 400; color: var(--ink, #1c3348); white-space: pre-wrap; word-break: break-word; user-select: text; -webkit-user-select: text; }
.room-niche-clear { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 8px 0 0; }
.room-niche-quick { display: flex; gap: 4px; margin-top: 4px; }
.room-niche-chip { flex: 1 1 0; min-height: 36px; padding: 2px 4px; border: 1px solid #99e9f2; border-radius: 8px; background: #fff; color: #0b4f5c; font-size: 14px; font-weight: 800; box-shadow: none; }
.room-niche-chip.is-on { background: #0b7285; border-color: #0b7285; color: #fff; }
.room-niche-wide { margin-top: 4px; }
.room-niche .room-profile-setting select { min-height: 38px; font-size: 16px; }
.room-niche-list { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.room-niche-list-item { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 52px; padding: 7px 10px; border: 1px solid var(--line, #d5e0ea); border-radius: 10px; background: #fff; color: var(--ink, #1c3348); text-align: left; box-shadow: none; }
.room-niche-list-item strong { font-size: 15px; }
.room-niche-list-item small { color: var(--muted, #5b6b7a); font-size: 12px; font-weight: 600; }
.room-niche-list li.is-on .room-niche-list-item { border-color: #0b7285; box-shadow: 0 0 0 2px rgba(11, 114, 133, .18); }
.room-niche-warn-dot { color: #e8590c; }
@media (orientation: landscape) and (max-height: 560px) {
  .room-profile.room-niche { left: auto; right: 8px; top: 8px; bottom: 8px; width: min(46%, 440px); max-height: none; margin: 0; }
}
.room-niche .room-profile-check-row { justify-content: flex-start; text-align: left; }
.room-niche .room-profile-check-row input[type="checkbox"] { width: 20px; height: 20px; min-height: 0; flex: 0 0 auto; margin: 0; padding: 0; }
.room-niche [data-niche-action="new"] { white-space: nowrap; }

/* ---- Vinkel pop-ups ----------------------------------------------------------------------------
   After OK on the intro there is no panel: each step is a small modal dialog at the top of the screen.
   The layer follows the visual viewport (--rs-vv-top / --rs-vv-h from window.visualViewport), so the
   card stays above the iOS keyboard; it never grows past the visible part and scrolls inside. */
.room-angle-pop {
  position: fixed;
  top: var(--rs-vv-top, 0px);
  left: 0;
  right: 0;
  bottom: auto;
  height: var(--rs-vv-h, 100%);
  box-sizing: border-box;
  z-index: 1200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 10px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(16, 28, 44, .36);
  touch-action: manipulation;
  overscroll-behavior: contain;
}
.room-angle-pop[hidden] { display: none; }
.room-angle-pop-card {
  box-sizing: border-box;
  width: min(100%, 360px);
  max-height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 12px 12px;
  border-top: 4px solid #5f3dc4;
  border-radius: 16px;
  background: var(--panel, #fff);
  color: var(--ink, #1c3348);
  box-shadow: 0 18px 48px rgba(10, 20, 35, .3);
}
.room-angle-pop-top { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
.room-angle-pop-count { flex: 1 1 auto; font-size: 12px; font-weight: 800; letter-spacing: .02em; color: #5f3dc4; }
.room-angle-pop-x { flex: 0 0 auto; min-width: 36px; min-height: 36px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--muted, #5b6b7a); font-size: 18px; box-shadow: none; }
.room-angle-pop-title { margin: 0 0 4px; font-size: 21px; line-height: 1.2; font-weight: 900; color: #3b2a8c; }
.room-angle-pop-hint { margin: 0 0 8px; font-size: 13px; line-height: 1.35; color: var(--muted, #5b6b7a); }
.room-angle-pop-field { display: flex; align-items: center; gap: 6px; padding: 0 10px; border: 2px solid #5f3dc4; border-radius: 12px; background: #fff; box-shadow: 0 0 0 3px rgba(95, 61, 196, .14); }
.room-angle-pop-field input { flex: 1 1 auto; min-width: 0; min-height: 52px; padding: 0; border: 0; outline: 0; background: transparent; box-shadow: none; font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink, #1c3348); }
.room-angle-pop-field input::placeholder { font-size: 20px; font-weight: 600; color: #a5b1bc; }
.room-angle-pop-field em { font-style: normal; font-size: 16px; font-weight: 700; color: var(--muted, #5b6b7a); }
.room-angle-pop-shot { display: flex; gap: 8px; align-items: stretch; }
.room-angle-pop-fig { flex: 0 0 74px; margin: 0; }
.room-angle-pop-fig svg { display: block; width: 74px; height: auto; border: 1px solid var(--line, #e3ebf1); border-radius: 8px; background: #fff; }
.room-angle-pop-shot-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.room-angle-pop-laser { margin: 0; font-size: 12px; line-height: 1.3; color: var(--muted, #5b6b7a); }
.room-angle-pop-laser.is-on { color: #2b8a3e; font-weight: 700; }
.room-angle-pop-msg { margin: 6px 0 0; padding: 5px 8px; border-radius: 8px; font-size: 13px; font-weight: 700; background: #f1f3f5; }
.room-angle-pop-msg.is-ok { background: #ebfbee; color: #2b8a3e; }
.room-angle-pop-msg.is-warn { background: #fff9db; color: #946c00; }
.room-angle-pop-msg.is-error { background: #fff5f5; color: #c92a2a; }
.room-angle-pop-actions { display: flex; gap: 6px; margin-top: 10px; }
.room-angle-pop-actions button { flex: 1 1 0; min-height: 46px; padding: 4px 8px; font-size: 16px; white-space: nowrap; }
.room-angle-pop-actions button.primary { flex: 1.5 1 0; background: #5f3dc4; border-color: #5f3dc4; color: #fff; font-weight: 800; }
.room-angle-pop-actions button.is-small { flex: 0 1 auto; min-height: 40px; font-size: 14px; }
.room-angle-pop-result { margin: 4px 0 2px; text-align: center; font-size: 22px; font-weight: 700; color: #3b2a8c; }
.room-angle-pop-result strong { display: block; font-size: 46px; line-height: 1.05; font-weight: 900; font-variant-numeric: tabular-nums; }
.room-angle-pop-sub { margin: 0 0 6px; text-align: center; font-size: 13px; font-weight: 700; color: #5f3dc4; }
.room-angle-pop-notes { margin: 6px 0; padding: 6px 8px 6px 24px; border-radius: 8px; background: #fff4e6; color: #b35900; font-size: 12px; line-height: 1.35; }
.room-angle-pop-error { margin: 4px 0 6px; padding: 8px 10px; border-radius: 10px; background: #fff5f5; color: #c92a2a; font-size: 14px; line-height: 1.4; font-weight: 600; }
.room-angle-pop-values { margin: 4px 0 0; text-align: center; font-size: 11px; color: var(--muted, #5b6b7a); font-variant-numeric: tabular-nums; }
@media (max-height: 560px) {
  .room-angle-pop { padding-top: 6px; padding-bottom: 6px; }
  .room-angle-pop-card { width: min(100%, 520px); padding: 6px 10px 8px; }
  .room-angle-pop-title { font-size: 18px; }
  .room-angle-pop-hint { margin-bottom: 4px; }
  .room-angle-pop-field input { min-height: 42px; font-size: 26px; }
  .room-angle-pop-actions { margin-top: 6px; }
  .room-angle-pop-actions button { min-height: 40px; }
  .room-angle-pop-result strong { font-size: 38px; }
}
