html.plan-viewer-open { overflow: hidden; }
.sarica-plan-viewer { position: fixed; inset: 0; width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: #181a1d; color: white; }
.sarica-plan-viewer[open] { display: flex; flex-direction: column; }
.sarica-plan-viewer::backdrop { background: #181a1d; }
.plan-toolbar { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 12px; padding-top: max(12px, env(safe-area-inset-top)); z-index: 1; }
.plan-toolbar button { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; margin: 0; padding: 0 12px; background: #fff; color: #181a1d; border: 0; border-radius: 5px; font-size: 20px; cursor: pointer; }
.plan-toolbar button:disabled { opacity: .4; cursor: default; }
.plan-toolbar button:focus-visible { outline: 3px solid #e72732; outline-offset: 3px; }
.plan-toolbar output { min-width: 50px; text-align: center; }
.plan-canvas { flex: 1; min-height: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; touch-action: none; cursor: grab; }
.plan-canvas:active { cursor: grabbing; }
.plan-canvas img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; flex-shrink: 0; user-select: none; transform-origin: center; }
.plan-hint { margin: 0; padding: 12px 16px; padding-bottom: max(12px, env(safe-area-inset-bottom)); font-size: 12px; line-height: 1.5; text-align: center; color: #ddd; }
