[hidden] { display: none !important; }
.project-card { display: grid; gap: 8px; }
.project-card small { color: var(--muted); }
.empty-state { text-align: center; padding: 34px 20px; }

.canvas-wrap {
  min-height: 55vh;
  max-height: 68vh;
  overflow: hidden;
  position: relative;
  background: #02060c;
  touch-action: none;
}

.editor-layer {
  position: relative;
  width: 100%;
  transform-origin: 0 0;
  will-change: transform;
}

.editor-layer img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  user-select: none;
  -webkit-user-drag: none;
}

.editor-layer > canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.point-magnifier {
  position: absolute !important;
  z-index: 8;
  width: 132px !important;
  height: 132px !important;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 10px 30px #000b;
  background: #07101f;
  pointer-events: none;
  display: none;
}

.editor-tools {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 10px 0;
}

.editor-tools button { padding: 10px 8px; font-size: 13px; }
.zoom-readout { text-align: center; color: var(--muted); font-size: 12px; margin: 6px 0; }

.sensor-enable {
  position: absolute;
  z-index: 3;
  top: 78px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  white-space: nowrap;
  background: #0b172bd9;
  border: 1px solid #ffffff44;
}

.camera-level-line {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 15%;
  width: 70%;
  height: 2px;
  background: #ffb648;
  box-shadow: 0 0 8px #000;
  transform-origin: center;
  pointer-events: none;
  transition: background-color .15s;
}

.camera-level-line.aligned { background: #28d17c; height: 3px; }

.choice input[type="checkbox"] { width: 24px; height: 24px; margin: 0; flex: none; accent-color: #3a9bff; }
/* Vollbild-Editor: kein Seiten-Scrollen, keine Textauswahl, kein Doppeltipp-Zoom */
body.editing { overflow: hidden; overscroll-behavior: none; padding: 0; }
body.editing main { padding: 0; max-width: none; }
.editor-screen {
  position: fixed; inset: 0; margin: 0 auto; max-width: 760px;
  height: 100vh; height: 100dvh;
  display: flex; flex-direction: column; gap: 8px;
  padding: calc(8px + env(safe-area-inset-top)) 10px calc(8px + env(safe-area-inset-bottom));
  overflow: hidden; overscroll-behavior: none; touch-action: none;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent;
}
.editor-screen * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.editor-screen img { -webkit-user-drag: none; pointer-events: none; }
.ed-top { display: flex; align-items: center; gap: 10px; flex: none; }
.ed-top button { width: 44px; min-height: 44px; padding: 0; flex: none; font-size: 20px; }
.ed-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ed-title b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-title small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.editor-screen .steps { margin: 0; flex: none; }
.ed-stage { flex: 1; min-height: 0 !important; max-height: none !important; border-radius: 14px; }
.ed-stage .editor-layer { position: absolute; left: 0; top: 0; width: auto; height: auto; }
.ed-stage .editor-layer img { width: 100%; height: 100%; }
.ed-tools { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; flex: none; }
.ed-tools button { padding: 4px 2px; min-height: 46px; font-size: 20px; line-height: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.ed-tools small { font-size: 9px; font-weight: 600; color: var(--muted); }
.ed-actions { display: flex; gap: 10px; flex: none; }
.ed-actions button { flex: 1; min-height: 52px; }
.ed-actions button:disabled { opacity: .45; }
.ed-info { flex: none; display: flex; flex-direction: column; gap: 6px; }
.ed-info small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 9px 12px; min-height: 40px; border-radius: 99px; background: #1d304d; font-size: 13px; font-weight: 700; }
.chip.ok { color: var(--good); }
.chip.bad { background: #552639; color: #ffd6df; }
.marker-view { position: relative; border-radius: 18px; overflow: hidden; background: #02060c; }
.marker-view img { display: block; width: 100%; height: auto; }
.marker-view canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
details.card summary { cursor: pointer; }

body.results-view { overflow: hidden; padding: 0; }
body.results-view main { max-width: none; padding: 0; }
.result-screen {
  position: fixed; inset: 0; max-width: 760px; margin: auto;
  height: 100vh; height: 100dvh; overflow: hidden;
  padding: calc(8px + env(safe-area-inset-top)) 12px calc(8px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 8px;
}
.result-head { flex: none; }
.result-head .brand { min-height: 42px; }
.result-head .steps { margin: 4px 0 0; }
.result-screen .card { margin: 0; padding: 12px 14px; border-radius: 16px; }
.compact-result { flex: none; }
.compact-result strong { font-size: clamp(30px, 8vw, 42px); margin: 3px 0 6px; }
.result-measures { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.result-measures div { display: flex; flex-direction: column; gap: 2px; }
.result-measures b { font-size: 18px; }
.result-measures small { color: var(--muted); }
.ai-card { flex: none; }
.ai-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ai-title button { min-height: 36px; padding: 7px 12px; }
.ai-card p { margin: 6px 0 0; font-size: 12px; line-height: 1.3; }
.ai-summary { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; margin-top: 7px; }
.ai-summary small { text-align: right; }
.result-details { flex: none; padding: 9px 12px; border: 1px solid #263855; border-radius: 14px; background: #0d1728; color: var(--muted); font-size: 12px; }
.result-details summary { color: #e9f2ff; font-weight: 700; cursor: pointer; }
.result-details[open] { max-height: 110px; overflow: auto; }
.result-details ul { margin: 5px 0; padding-left: 18px; }
.plane-check { flex: none; display: flex; align-items: center; gap: 9px; color: #d8e7fb; font-size: 13px; }
.plane-check input { width: 22px; height: 22px; margin: 0; flex: none; }
.result-actions { margin-top: auto; display: flex; gap: 10px; flex: none; }
.result-actions button { flex: 1; min-height: 48px; }
@media (max-height: 620px) {
  .result-screen { gap: 5px; padding-top: calc(5px + env(safe-area-inset-top)); }
  .result-head .brand { min-height: 36px; }
  .result-head .logo { width: 36px; height: 36px; }
  .compact-result strong { font-size: 28px; }
  .result-screen .card { padding: 8px 11px; }
  .result-details { padding: 7px 10px; }
}
