:root {
  --bg-primary: #1e1e1e;
  --bg-secondary: #252526;
  --bg-tertiary: #2d2d30;
  --border: #3c3c3c;
  --text: #cccccc;
  --text-muted: #858585;
  --accent: #0e639c;
  /* Прогресс в меню авторов — зелёная заливка/рамка, текст нейтральный */
  --osminog-author-accent: 34, 197, 94;
  --osminog-author-accent-text: #cccccc;
  --osminog-author-accent-border: rgba(34, 197, 94, 0.45);
  --radius: 6px;
  --font-ui: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
/* Не мелькать стартовым экраном при F5, если сессия уже есть */
html.osminog-resume-pending .osminog-empty {
  display: none !important;
}
html.osminog-resume-pending #osminog-panel.osminog-stage-upload .osminog-workspace {
  opacity: 0;
}
html.osminog-ready #osminog-panel .osminog-workspace {
  opacity: 1;
  transition: opacity 0.12s ease;
}
html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text);
  background: var(--bg-primary);
}
.hidden { display: none !important; }
.app-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-primary);
}
.app-header-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.app-header h1 { font-size: 20px; margin: 0; }
.osminog-lang-switch {
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
  font-size: 11px;
}
.osminog-lang-switch select {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-tertiary);
  color: var(--text);
  padding: 3px 6px;
  font-size: 11px;
}
.app-status {
  display: none !important;
}
.osminog-panel.osminog-stage-upload .osminog-ios-dock,
.osminog-panel.osminog-stage-upload .osminog-toolbar-block,
.osminog-panel.osminog-cal-pick-size:not(.osminog-show-advanced) .osminog-toolbar-block {
  display: none !important;
}
.osminog-panel:not(.osminog-stage-ai-busy) .osminog-ai-progress {
  display: none !important;
}
.osminog-panel.osminog-stage-upload .osminog-toolbar,
.osminog-panel.osminog-cal-pick-size .osminog-toolbar {
  display: none !important;
}
.app-main {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}
.app-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  background: var(--bg-primary);
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
  padding: 18px 24px 14px;
  padding-bottom: max(14px, env(safe-area-inset-bottom));
}
.app-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.app-footer-top,
.app-footer-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 56px;
  align-items: start;
}
.app-footer-col p {
  margin: 0;
}
.app-footer-col p + p {
  margin-top: 6px;
}
.app-footer-brand-name,
.app-footer-col-title {
  margin: 0 0 10px;
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}
.app-footer-col-title {
  font-size: 1.15rem;
}
.app-footer-tagline {
  max-width: 28rem;
  color: var(--text-muted);
  font-size: 12px;
}
.app-footer-tagline-muted {
  margin-top: 8px;
  font-size: 11px;
  opacity: 0.9;
}
.app-footer-contacts a {
  color: #93c5fd;
  text-decoration: none;
}
.app-footer-contacts a:hover {
  text-decoration: underline;
}
.app-footer-divider {
  height: 1px;
  margin: 16px 0 12px;
  background: var(--border);
}
.app-footer-bottom {
  font-size: 10px;
  line-height: 1.55;
  color: var(--text-muted);
}
.app-footer-bottom-end {
  text-align: right;
}
.osminog-build-stamp {
  display: inline-block;
  margin-top: 6px;
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 400;
  opacity: 0.7;
}
.app-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 10px;
}
.app-footer a,
.osminog-cookie-consent a,
.osminog-usage-notice a {
  color: #93c5fd;
  text-decoration: none;
}
.app-footer a:hover,
.osminog-cookie-consent a:hover,
.osminog-usage-notice a:hover {
  text-decoration: underline;
}
.osminog-help-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
}
.osminog-help-card {
  position: fixed;
  width: min(320px, calc(100vw - 24px));
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.42);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
  color: #e5e7eb;
  pointer-events: auto;
  cursor: pointer;
  backdrop-filter: blur(2px);
}
.osminog-help-card h2 {
  margin: 0 24px 8px 0;
  color: #f8fafc;
  font-size: 15px;
}
.osminog-help-card p {
  margin: 0;
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.45;
}
.osminog-help-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: #cbd5e1;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}
.osminog-help-step {
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 10px;
}
.osminog-help-tap {
  margin-top: 12px;
  color: #93c5fd;
  font-size: 11px;
}
.osminog-help-target {
  position: relative;
  z-index: 1199;
  box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.85), 0 0 18px rgba(250, 204, 21, 0.32) !important;
  pointer-events: none;
}
.osminog-dialog-modal {
  position: fixed;
  inset: 0;
  z-index: 1250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  animation: osminog-dialog-backdrop-in 0.28s ease;
}
@keyframes osminog-dialog-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.osminog-dialog-card {
  position: relative;
  width: min(400px, 100%);
  max-height: min(88dvh, 640px);
  overflow-y: auto;
  padding: 22px 20px 18px;
  border-radius: 16px;
  background: rgba(28, 28, 30, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 0 0 0.5px rgba(255, 255, 255, 0.06) inset,
    0 24px 64px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  color: #f5f5f7;
  animation: osminog-dialog-card-in 0.36s cubic-bezier(0.32, 0.72, 0, 1);
}
@keyframes osminog-dialog-card-in {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.osminog-dialog-card h2 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  text-align: center;
}
.osminog-dialog-card p {
  margin: 0 0 18px;
  font-size: 0.94rem;
  line-height: 1.5;
  text-align: center;
  color: rgba(235, 235, 245, 0.78);
}
.osminog-dialog-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.osminog-dialog-actions .btn {
  width: 100%;
  justify-content: center;
  min-height: 46px;
  padding: 12px 16px;
  border-radius: 12px;
  border: none;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: background 0.18s ease, transform 0.12s ease, opacity 0.18s ease;
}
.osminog-dialog-actions .btn:active:not(:disabled) {
  transform: scale(0.98);
}
.osminog-dialog-actions .btn-accent {
  background: rgba(10, 132, 255, 0.94);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset;
}
.osminog-dialog-actions .btn-accent:hover:not(:disabled) {
  background: rgba(10, 132, 255, 1);
}
.osminog-dialog-actions .btn:not(.btn-accent) {
  background: rgba(120, 120, 128, 0.28);
  color: rgba(255, 255, 255, 0.94);
}
.osminog-dialog-actions .btn:not(.btn-accent):hover:not(:disabled) {
  background: rgba(120, 120, 128, 0.38);
}
.osminog-dialog-actions .btn-small {
  min-height: 44px;
  font-size: 15px;
}
.osminog-dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(120, 120, 128, 0.32);
  color: rgba(235, 235, 245, 0.88);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, transform 0.12s ease;
}
.osminog-dialog-close:hover {
  background: rgba(120, 120, 128, 0.46);
}
.osminog-dialog-close:active {
  transform: scale(0.94);
}
.osminog-dialog-card:has(.osminog-dialog-close) h2 {
  text-align: left;
  padding-right: 40px;
}
.osminog-cal-guide-card {
  width: min(480px, 100%);
}
.osminog-cal-guide-card h2 {
  margin-bottom: 12px;
}
.osminog-cal-guide-card .osminog-cal-demo {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.22);
}
.osminog-cal-demo {
  margin: 0 0 12px;
}
.osminog-cal-demo-layout {
  display: flex;
  align-items: stretch;
  gap: 10px;
}
.osminog-cal-demo-sizes {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 0 0 auto;
  width: min(72px, 18vw);
}
.osminog-cal-demo-size {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.55);
  color: rgba(226, 232, 240, 0.72);
  font-size: 11px;
  letter-spacing: 0.04em;
  opacity: 0.55;
  transform: scale(0.96);
  transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.osminog-cal-demo-stage {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: #0a0f18;
  aspect-ratio: 900 / 556;
}
.osminog-cal-demo-trg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}
.osminog-cal-demo-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.osminog-cal-demo-line,
.osminog-cal-demo-p1,
.osminog-cal-demo-p2 {
  opacity: 0;
  vector-effect: non-scaling-stroke;
}
.osminog-cal-demo-line {
  stroke: #22c55e;
  stroke-width: 0.55;
  stroke-linecap: round;
}
.osminog-cal-demo-p1,
.osminog-cal-demo-p2 {
  fill: #ef4444;
  stroke: #fff;
  stroke-width: 0.25;
}
.osminog-cal-demo-p2 {
  fill: #ef4444;
}
.osminog-cal-demo-captions {
  position: relative;
  min-height: 2.8em;
  margin-top: 10px;
}
.osminog-cal-demo-caption {
  position: absolute;
  inset: 0;
  margin: 0;
  text-align: center;
  font-size: 0.88rem;
  line-height: 1.4;
  color: rgba(238, 243, 251, 0.9);
  opacity: 0;
}
.osminog-cal-demo.is-playing .osminog-cal-demo-size[data-mm="10"] {
  animation: osminogCalDemoSize 14s ease-in-out infinite;
}
.osminog-cal-demo.is-playing .osminog-cal-demo-p1 {
  animation: osminogCalDemoP1 14s ease-in-out infinite;
}
.osminog-cal-demo.is-playing .osminog-cal-demo-p2 {
  animation: osminogCalDemoP2 14s ease-in-out infinite;
}
.osminog-cal-demo.is-playing .osminog-cal-demo-line {
  animation: osminogCalDemoLine 14s ease-in-out infinite;
}
.osminog-cal-demo.is-playing .cap-size { animation: osminogCalDemoCapSize 14s ease-in-out infinite; }
.osminog-cal-demo.is-playing .cap-p1 { animation: osminogCalDemoCapP1 14s ease-in-out infinite; }
.osminog-cal-demo.is-playing .cap-p2 { animation: osminogCalDemoCapP2 14s ease-in-out infinite; }
.osminog-cal-demo.is-playing .cap-done { animation: osminogCalDemoCapDone 14s ease-in-out infinite; }
@keyframes osminogCalDemoSize {
  0%, 4% { opacity: 0.55; transform: scale(0.96); border-color: rgba(148, 163, 184, 0.35); background: rgba(15, 23, 42, 0.55); color: rgba(226, 232, 240, 0.72); }
  8%, 24% { opacity: 1; transform: scale(1.04); border-color: rgba(56, 189, 248, 0.85); background: rgba(14, 99, 156, 0.42); color: #f8fafc; box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35); }
  28%, 100% { opacity: 0.45; transform: scale(0.96); }
}
@keyframes osminogCalDemoP1 {
  0%, 26% { opacity: 0; transform: scale(0.4); }
  30%, 34% { opacity: 1; transform: scale(1.15); }
  38%, 100% { opacity: 1; transform: scale(1); }
}
@keyframes osminogCalDemoP2 {
  0%, 48% { opacity: 0; transform: scale(0.4); }
  52%, 56% { opacity: 1; transform: scale(1.15); }
  60%, 100% { opacity: 1; transform: scale(1); }
}
@keyframes osminogCalDemoLine {
  0%, 62% { opacity: 0; stroke-width: 0.2; }
  68%, 100% { opacity: 1; stroke-width: 0.55; }
}
@keyframes osminogCalDemoCapSize {
  0%, 6% { opacity: 0; }
  10%, 24% { opacity: 1; }
  28%, 100% { opacity: 0; }
}
@keyframes osminogCalDemoCapP1 {
  0%, 28% { opacity: 0; }
  32%, 46% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@keyframes osminogCalDemoCapP2 {
  0%, 50% { opacity: 0; }
  54%, 66% { opacity: 1; }
  70%, 100% { opacity: 0; }
}
@keyframes osminogCalDemoCapDone {
  0%, 68% { opacity: 0; }
  72%, 96% { opacity: 1; }
  100% { opacity: 0; }
}
.osminog-pdf-preview-card {
  width: min(920px, 100%);
  max-height: min(94dvh, 920px);
  display: flex;
  flex-direction: column;
  padding-bottom: 14px;
}
.osminog-pdf-preview-viewport {
  flex: 1 1 auto;
  min-height: min(52dvh, 480px);
  max-height: min(68dvh, 620px);
  margin: 0 0 12px;
  border-radius: 10px;
  overflow: hidden;
  background: #0a1018;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.osminog-pdf-preview-frame,
.osminog-pdf-preview-object {
  width: 100%;
  height: 100%;
  min-height: min(52dvh, 480px);
  border: 0;
  display: block;
}
.osminog-pdf-preview-actions {
  flex-shrink: 0;
}
#osminog-pdf-preview-modal {
  display: none !important;
}
.osminog-pdf-inline-view {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  flex-direction: column;
  background: #0a0f18;
}
.osminog-pdf-inline-view.hidden {
  display: none !important;
}
.osminog-pdf-inline-close {
  position: absolute;
  top: max(8px, env(safe-area-inset-top));
  right: max(10px, env(safe-area-inset-right));
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.88);
  color: #f8fafc;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.osminog-pdf-inline-frame {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  border: 0;
  background: #111;
}
body.osminog-pdf-view-open {
  overflow: hidden;
}
.osminog-pdf-inline-view--native {
  background: #fff;
}
.osminog-pdf-inline-view--native .osminog-pdf-inline-frame {
  background: #fff;
}
.osminog-pdf-inline-view--native .osminog-pdf-inline-close {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}
.osminog-cal-carousel {
  position: relative;
  margin: 0 0 14px;
  user-select: none;
}
.osminog-cal-carousel-viewport {
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: #0d111a;
}
.osminog-cal-carousel-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.osminog-cal-carousel-slide {
  flex: 0 0 100%;
  min-width: 100%;
  margin: 0;
  padding: 0;
}
.osminog-cal-carousel-slide img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(52vh, 320px);
  object-fit: contain;
  background: #0a0f18;
}
.osminog-cal-carousel-arrow {
  position: absolute;
  top: 38%;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  color: #e2e8f0;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.osminog-cal-carousel-prev { left: -6px; }
.osminog-cal-carousel-next { right: -6px; }
.osminog-cal-carousel-arrow:hover {
  border-color: #38bdf8;
  color: #7dd3fc;
}
.osminog-cal-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}
.osminog-cal-carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.35);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}
.osminog-cal-carousel-dot.is-active {
  background: #38bdf8;
  transform: scale(1.2);
}
.osminog-cal-carousel-caption {
  margin: 10px 0 4px;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.4;
  color: rgba(238, 243, 251, 0.92);
  min-height: 2.6em;
  transition: opacity 0.25s ease;
}
.osminog-cal-carousel-caption.is-fading {
  opacity: 0.35;
}
.osminog-cal-carousel-step {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(148, 163, 184, 0.9);
}
@media (max-width: 480px) {
  .osminog-cal-carousel-prev { left: 2px; }
  .osminog-cal-carousel-next { right: 2px; }
}
.osminog-help-btn {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #93c5fd;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 2px;
}
.btn {
  border: 1px solid var(--border);
  background: var(--bg-tertiary);
  color: var(--text);
  border-radius: var(--radius);
  padding: 6px 12px;
  cursor: pointer;
  font-size: 12px;
}
.btn:disabled {
  cursor: default;
  opacity: 0.45;
  filter: none;
}
.btn-small { padding: 5px 10px; }
.osminog-toolbar .btn,
.osminog-toolbar .osminog-tab {
  min-height: 30px;
  height: 30px;
}
.osminog-toolbar .btn-small {
  padding: 0 10px;
}
#osminog-ai-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  min-width: 30px;
  padding: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.osminog-file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0.001;
  cursor: pointer;
  font-size: 16px;
  z-index: 3;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-appearance: none;
  appearance: none;
}
.btn-accent {
  background: rgba(14, 99, 156, 0.35);
  border-color: rgba(56, 189, 248, 0.55);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
  color: #e8eef8;
}
.btn.osminog-ai-ok {
  background: rgba(34, 197, 94, 0.22);
  border-color: rgba(34, 197, 94, 0.65);
  color: #bbf7d0;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.22);
}
.btn:hover, .meduza-btn-icon:hover { border-color: rgba(255, 208, 0, 0.7); filter: brightness(1.08); }
.meduza-btn-icon { display: inline-flex; align-items: center; justify-content: center; padding: 6px; }
.osminog-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  min-width: 30px;
  height: 30px;
  padding: 0;
}
.osminog-icon-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.osminog-report-pdf-icon-btn {
  width: 34px;
  min-width: 34px;
  height: 34px;
}
.osminog-report-pdf-icon-btn svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.7;
}
.osminog-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.osminog-panel { height: 100%; }

.app-main .osminog-panel { max-width: 100%; }
.osminog-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}
.osminog-panel.osminog-stage-upload,
.osminog-panel.osminog-cal-pick-size:not(.osminog-show-advanced),
.osminog-panel.osminog-stage-calibrate:not(.osminog-show-advanced),
.osminog-panel.osminog-stage-ai:not(.osminog-show-advanced),
.osminog-panel.osminog-stage-review:not(.osminog-show-advanced),
.osminog-panel.osminog-stage-export:not(.osminog-show-advanced) {
  gap: 0;
}
.osminog-panel.osminog-stage-upload .osminog-workspace,
.osminog-panel.osminog-stage-calibrate:not(.osminog-show-advanced) .osminog-workspace,
.osminog-panel.osminog-stage-ai:not(.osminog-show-advanced) .osminog-workspace,
.osminog-panel.osminog-stage-review:not(.osminog-show-advanced) .osminog-workspace {
  flex: 1;
  min-height: 0;
}
.osminog-head h2 {
  font-size: 18px;
  margin: 0;
  color: var(--text);
}
.osminog-toolbar-block {
  position: relative;
  z-index: 4;
}
.osminog-ios-dock {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 14;
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  pointer-events: none;
}
.osminog-ios-dock.hidden {
  display: none !important;
}
.osminog-ios-dock > * {
  pointer-events: auto;
}
.osminog-ios-center {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  gap: 6px;
}
.osminog-ios-trailing {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 auto;
  min-width: 0;
  justify-content: flex-end;
}
.osminog-ios-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(58, 58, 60, 0.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: transform 0.12s ease, background 0.12s ease, opacity 0.12s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}
.osminog-ios-btn:active:not(:disabled) {
  transform: scale(0.94);
}
.osminog-ios-btn:disabled {
  opacity: 0.34;
  cursor: default;
  pointer-events: none;
}
.osminog-ios-icon {
  width: 22px;
  height: 22px;
  display: block;
}
.osminog-ios-icon-dots {
  width: 24px;
  height: 24px;
}
.osminog-ios-pill {
  height: 44px;
  min-width: 44px;
  padding: 0 14px;
  border: none;
  border-radius: 22px;
  background: rgba(58, 58, 60, 0.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
  transition: transform 0.12s ease, background 0.12s ease;
}
.osminog-ios-pill:active {
  transform: scale(0.96);
}
.osminog-ios-i {
  font-style: italic;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 17px;
  font-weight: 600;
  width: 22px;
  height: 22px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding-top: 1px;
}
.osminog-ios-info.osminog-ios-active {
  background: rgba(10, 132, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(10, 132, 255, 0.35), 0 2px 12px rgba(0, 0, 0, 0.28);
  animation: none;
}
.osminog-ios-info.osminog-ios-info-hint:not(:disabled):not(.osminog-ios-active) {
  background: rgba(10, 132, 255, 0.38);
  box-shadow: 0 0 0 1px rgba(10, 132, 255, 0.28), 0 2px 12px rgba(0, 0, 0, 0.28);
  animation: osminog-ios-info-pulse 1.65s ease-in-out infinite;
}
@keyframes osminog-ios-info-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow:
      0 0 0 0 rgba(10, 132, 255, 0.42),
      0 0 0 1px rgba(10, 132, 255, 0.28),
      0 2px 12px rgba(0, 0, 0, 0.28);
  }
  50% {
    transform: scale(1.05);
    box-shadow:
      0 0 0 7px rgba(10, 132, 255, 0.14),
      0 0 0 1px rgba(10, 132, 255, 0.45),
      0 2px 16px rgba(10, 132, 255, 0.22);
  }
}
@media (prefers-reduced-motion: reduce) {
  .osminog-ios-info.osminog-ios-info-hint:not(:disabled):not(.osminog-ios-active) {
    animation: none;
    box-shadow:
      0 0 0 1px rgba(10, 132, 255, 0.45),
      0 2px 12px rgba(10, 132, 255, 0.2);
  }
  .osminog-dialog-modal,
  .osminog-dialog-card,
  .osminog-point-info-float {
    animation: none;
  }
}
.osminog-flow-next.osminog-flow-ready {
  background: rgba(48, 120, 72, 0.78);
  box-shadow: 0 0 0 1px rgba(52, 211, 96, 0.45), 0 2px 14px rgba(34, 197, 94, 0.22);
}
.osminog-flow-next.osminog-flow-ready:active:not(:disabled) {
  background: rgba(52, 140, 82, 0.88);
}
.osminog-flow-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.osminog-flow-next .osminog-flow-next-label {
  display: none;
}
.osminog-flow-next.osminog-flow-next--export {
  width: auto;
  min-width: 44px;
  max-width: min(148px, 42vw);
  border-radius: 22px;
  padding: 0 12px;
  gap: 5px;
}
.osminog-flow-next.osminog-flow-next--export .osminog-flow-next-label {
  display: inline;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.osminog-flow-next.osminog-flow-next--export .osminog-ios-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.osminog-cal-side-stack {
  position: absolute;
  left: max(8px, env(safe-area-inset-left));
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: auto;
  max-width: min(100px, 24vw);
  pointer-events: auto;
}
.osminog-cal-side-stack.hidden {
  display: none !important;
}
.osminog-cal-size-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  width: 100%;
}
.osminog-cal-size-row.hidden {
  display: none !important;
}
.osminog-cal-size-row .osminog-ios-pill,
.osminog-cal-help-btn {
  width: 100%;
  min-width: 0;
  justify-content: center;
  padding: 0 10px;
  font-size: 11px;
}
.osminog-cal-help-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 34px;
  min-width: 34px;
  padding: 0;
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(14, 99, 156, 0.28);
  color: #e0f2fe;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}
.osminog-cal-help-btn:hover {
  border-color: rgba(56, 189, 248, 0.75);
  background: rgba(14, 99, 156, 0.42);
}
.osminog-cal-help-btn--active {
  background: rgba(10, 132, 255, 0.55);
  border-color: rgba(125, 211, 252, 0.85);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35), 0 2px 12px rgba(14, 116, 178, 0.35);
}
.osminog-cal-help-i {
  flex: 0 0 auto;
  font-style: italic;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 12px;
  font-weight: 600;
  width: 18px;
  height: 18px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding-top: 1px;
}
.osminog-cal-size-opt:not(.selected) {
  opacity: 0.82;
}
.osminog-cal-size-opt.selected {
  opacity: 1;
  background: rgba(var(--osminog-author-accent), 0.52);
  box-shadow:
    inset 0 0 0 2px rgba(var(--osminog-author-accent), 0.75),
    0 0 0 1px rgba(34, 197, 94, 0.35),
    0 2px 12px rgba(34, 197, 94, 0.22);
  color: #ecfdf5;
  font-weight: 600;
}
.osminog-flow-export-ios {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.osminog-flow-export-ios.hidden {
  display: none !important;
}
.osminog-flow-export-ios-label {
  line-height: 1;
  white-space: nowrap;
}
.osminog-flow-export-ios.osminog-flow-export-ready {
  background: rgba(48, 120, 72, 0.78);
}
.osminog-flow-export-ios.osminog-flow-export-ready:active {
  background: rgba(52, 140, 82, 0.88);
}
.osminog-ios-actions-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}
.osminog-ios-actions-pill.hidden {
  display: none !important;
}
.osminog-ios-pill-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(58, 58, 60, 0.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
  transition: transform 0.12s ease, background 0.12s ease, opacity 0.12s ease;
}
.osminog-ios-pill-btn:active:not(:disabled) {
  transform: scale(0.94);
  background: rgba(68, 68, 70, 0.82);
}
.osminog-ios-pill-btn:disabled,
.osminog-ios-pill-btn.osminog-ios-btn-disabled {
  opacity: 0.34;
  cursor: default;
}
.osminog-ios-pill-btn.osminog-ios-active {
  background: rgba(10, 132, 255, 0.45);
}
.osminog-ios-pill-btn .osminog-ios-icon {
  width: 20px;
  height: 20px;
}
.osminog-author-menu,
.osminog-author-points {
  position: absolute;
  inset: 0;
  z-index: 12;
  pointer-events: none;
}
.osminog-author-menu.hidden,
.osminog-author-points.hidden {
  display: none !important;
  pointer-events: none !important;
}
.osminog-author-menu-backdrop,
.osminog-author-points-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(20px) saturate(165%);
  -webkit-backdrop-filter: blur(20px) saturate(165%);
  pointer-events: auto;
  cursor: default;
}
.osminog-author-menu-backdrop {
  pointer-events: none;
}
.osminog-author-rail-panel {
  position: absolute;
  top: max(56px, calc(12px + env(safe-area-inset-top)));
  right: 12px;
  bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  width: min(320px, 86vw);
  display: flex;
  flex-direction: column;
  padding: 14px 14px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(28, 28, 30, 0.88);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  box-shadow:
    0 0 0 0.5px rgba(255, 255, 255, 0.06) inset,
    0 24px 64px rgba(0, 0, 0, 0.48);
  pointer-events: auto;
  transform: translateX(0);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.28s ease;
  overflow: hidden;
  min-height: 0;
  animation: osminog-author-sheet-in 0.36s cubic-bezier(0.32, 0.72, 0, 1);
}
@keyframes osminog-author-sheet-in {
  from {
    opacity: 0;
    transform: translateX(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}
.osminog-author-menu.hidden .osminog-author-menu-sheet,
.osminog-author-points.hidden .osminog-author-points-card {
  transform: translateX(104%);
}
.osminog-author-menu-sheet {
  overflow: auto;
  flex: 1;
}
.osminog-author-points-card {
  flex: 1;
}
.osminog-author-sheet-header {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  gap: 4px;
  margin: 0 0 12px;
  min-height: 36px;
}
.osminog-author-sheet-back {
  grid-column: 1;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(120, 120, 128, 0.32);
  color: rgba(235, 235, 245, 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.18s ease, transform 0.12s ease;
}
.osminog-author-sheet-back:hover {
  background: rgba(120, 120, 128, 0.46);
}
.osminog-author-sheet-back:active {
  transform: scale(0.94);
}
.osminog-author-sheet-back .osminog-ios-icon {
  width: 18px;
  height: 18px;
}
.osminog-author-sheet-header--title-only {
  grid-template-columns: 1fr;
}
.osminog-author-sheet-header--title-only .osminog-author-menu-heading {
  grid-column: 1;
}
.osminog-author-menu-heading {
  grid-column: 2;
  margin: 0;
  padding: 0;
  color: #f5f5f7;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: center;
  line-height: 1.25;
}
.osminog-author-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.osminog-author-menu-item {
  position: relative;
  width: 100%;
  display: flex;
  align-items: stretch;
  padding: 0;
  border: none;
  border-radius: 12px;
  background: rgba(120, 120, 128, 0.24);
  color: #fff;
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  transition: background 0.18s ease, transform 0.12s ease;
}
.osminog-author-menu-item:hover {
  background: rgba(120, 120, 128, 0.34);
}
.osminog-author-menu-item:active {
  transform: scale(0.98);
}
.osminog-author-menu-progress {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  z-index: 1;
  background: rgba(34, 197, 94, 0.1);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.22s ease;
  pointer-events: none;
}
.osminog-author-menu-item-body {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  font-size: 15px;
}
.osminog-author-menu-item--complete {
  border-color: rgba(34, 197, 94, 0.45);
}
.osminog-author-menu-item--complete .osminog-author-menu-progress {
  background: rgba(34, 197, 94, 0.1);
}
.osminog-author-menu-item--complete .osminog-author-menu-name {
  color: var(--text);
}
.osminog-author-menu-item:active .osminog-author-menu-item-body {
  opacity: 0.82;
}
.osminog-author-menu-name {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #f5f5f7;
}
.osminog-author-menu-count {
  color: rgba(235, 235, 245, 0.55);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.osminog-author-points-card {
  flex: 1;
}
.osminog-author-points-title {
  grid-column: 2;
  margin: 0;
  padding: 0;
  color: #f5f5f7;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: center;
  line-height: 1.25;
}
.osminog-author-points-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: auto;
  flex: 1;
  min-height: 0;
}
.osminog-author-points-list.osminog-author-points-grid {
  --osminog-author-tile-size: 44px;
  width: 100%;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(auto-fill, var(--osminog-author-tile-size));
  grid-auto-flow: row;
  gap: 4px 6px;
  justify-content: start;
  align-content: start;
  padding: 4px 8px 8px;
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 1025px) {
  .osminog-canvas-wrap.osminog-author-ui-open {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    overflow: hidden;
  }
  .osminog-canvas-wrap.osminog-author-ui-open .osminog-canvas-stage {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    height: 100%;
  }
  .osminog-canvas-wrap.osminog-author-ui-open .osminog-author-menu:not(.hidden),
  .osminog-canvas-wrap.osminog-author-ui-open .osminog-author-points:not(.hidden) {
    position: relative;
    inset: auto;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    flex: 0 0 min(288px, 30vw);
    width: min(288px, 30vw);
    max-width: min(288px, 30vw);
    height: auto;
    align-self: stretch;
    z-index: 5;
    pointer-events: auto;
    order: 2;
  }
  .osminog-canvas-wrap.osminog-author-ui-open .osminog-author-menu-backdrop,
  .osminog-canvas-wrap.osminog-author-ui-open .osminog-author-points-backdrop {
    display: none;
  }
  .osminog-canvas-wrap.osminog-author-ui-open .osminog-author-rail-panel {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    height: 100%;
    max-height: none;
    margin: 0;
    border-radius: 14px 0 0 14px;
    border-right: none;
    animation: none;
    transform: none !important;
    box-shadow:
      0 0 0 0.5px rgba(255, 255, 255, 0.06) inset,
      -8px 0 28px rgba(0, 0, 0, 0.28);
  }
}
.osminog-author-point-tile {
  width: var(--osminog-author-tile-size, 44px);
  height: var(--osminog-author-tile-size, 44px);
  min-width: var(--osminog-author-tile-size, 44px);
  min-height: var(--osminog-author-tile-size, 44px);
  max-width: var(--osminog-author-tile-size, 44px);
  max-height: var(--osminog-author-tile-size, 44px);
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}
.osminog-author-point-btn {
  width: var(--osminog-author-tile-size, 44px);
  height: var(--osminog-author-tile-size, 44px);
  margin: 0;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 10px;
  background: rgba(148, 163, 184, 0.1);
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
}
.osminog-author-point-tile:not(.placed):not(.selected) .osminog-author-point-btn:hover {
  background: rgba(148, 163, 184, 0.18);
  border-color: rgba(148, 163, 184, 0.38);
  color: #cbd5e1;
}
.osminog-author-point-btn:active {
  transform: scale(0.94);
}
.osminog-author-point-tile.placed:not(.selected) .osminog-author-point-btn {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.45);
  color: #4ade80;
}
.osminog-author-point-tile.selected:not(.osminog-author-point-tile--soft) .osminog-author-point-btn {
  background: rgba(250, 204, 21, 0.2);
  border-color: rgba(250, 204, 21, 0.55);
  color: #facc15;
  box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.35), 0 2px 12px rgba(250, 204, 21, 0.18);
}
.osminog-author-point-tile--soft.placed:not(.selected) .osminog-author-point-btn {
  background: rgba(168, 85, 247, 0.42);
  border-color: rgba(192, 132, 252, 0.48);
  color: #faf5ff;
}
.osminog-author-point-tile--soft.selected .osminog-author-point-btn {
  background: rgba(168, 85, 247, 0.58);
  border-color: rgba(216, 180, 254, 0.72);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(192, 132, 252, 0.45), 0 2px 12px rgba(168, 85, 247, 0.35);
}
.osminog-panel.osminog-stage-upload .osminog-toolbar,
.osminog-panel.osminog-stage-ai .osminog-toolbar,
.osminog-panel.osminog-stage-ai-busy .osminog-toolbar,
.osminog-panel.osminog-stage-calibrate:not(.osminog-show-advanced) .osminog-toolbar,
.osminog-panel.osminog-cal-pick-size:not(.osminog-show-advanced) .osminog-toolbar {
  display: none;
}
.osminog-panel.osminog-cal-pick-size:not(.osminog-show-advanced) .osminog-toolbar,
.osminog-panel.osminog-stage-calibrate.osminog-is-calibrating:not(.osminog-show-advanced) .osminog-toolbar {
  display: none;
}
.osminog-panel:not(.osminog-show-advanced) .osminog-toolbar [data-osminog-flow-tier="advanced"] {
  display: none !important;
}
.osminog-panel.osminog-stage-upload .osminog-measures-dock,
.osminog-panel.osminog-stage-ai .osminog-measures-dock,
.osminog-panel.osminog-stage-ai-busy .osminog-measures-dock,
.osminog-panel.osminog-stage-calibrate .osminog-measures-dock,
.osminog-panel.osminog-stage-review .osminog-measures-dock {
  display: none !important;
}
.osminog-measures-dock {
  display: none !important;
}
.osminog-panel.osminog-show-advanced .osminog-measures-dock {
  display: none !important;
}
.osminog-panel.osminog-stage-calibrate.osminog-is-calibrating #osminog-calibrate-btn {
  display: none !important;
}
.osminog-panel.osminog-stage-ai #osminog-ai-btn {
  box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.35), 0 0 16px rgba(250, 204, 21, 0.18);
}
.osminog-panel.osminog-stage-review:not(.osminog-show-advanced) #osminog-report-pdf-btn,
.osminog-panel.osminog-stage-export:not(.osminog-show-advanced) #osminog-report-pdf-btn {
  display: none !important;
}
.osminog-panel.osminog-stage-export:not(.osminog-show-advanced) .osminog-toolbar {
  display: none;
}
.osminog-panel.osminog-stage-review:not(.osminog-show-advanced) .osminog-toolbar {
  display: none;
}
.osminog-toolbar-block .osminog-ai-progress:not(.hidden) {
  position: absolute;
  left: 8px;
  right: 8px;
  top: calc(100% + 4px);
  z-index: 12;
  margin-top: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.osminog-toolbar {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.osminog-ai-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: -4px;
  padding: 6px 8px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 10px;
  background: rgba(14, 99, 156, 0.14);
  color: #bae6fd;
  font-size: 11px;
}
.osminog-ai-progress-track {
  position: relative;
  flex: 1;
  min-width: 120px;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.22);
}
.osminog-ai-progress-track i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 38%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.2), #38bdf8, rgba(34, 197, 94, 0.8));
  animation: osminog-ai-progress 1.05s ease-in-out infinite;
}
.btn.osminog-ai-loading {
  border-color: rgba(56, 189, 248, 0.7);
  color: #bae6fd;
}
@keyframes osminog-ai-progress {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(280%); }
}
.osminog-public-counters {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
}
.osminog-public-counters strong {
  color: #e0f2fe;
  font-weight: 600;
}
.osminog-counter-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.osminog-counter-item + .osminog-counter-item {
  padding-left: 0;
  border-left: 0;
}
.osminog-counter-icon {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.82;
}
.osminog-cookie-consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 920px;
  margin: 0 auto;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.42);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  color: #e5e7eb;
  font-size: 12px;
  line-height: 1.45;
}
.osminog-cookie-consent p {
  margin: 0;
}
.osminog-cookie-consent .btn {
  flex-shrink: 0;
}
.osminog-usage-notice {
  flex: 1 1 420px;
  margin: 0;
  color: rgba(253, 230, 138, 0.78);
  font-size: 10px;
  line-height: 1.25;
}
.legal-page {
  min-height: 100%;
  background: var(--bg-primary);
  color: var(--text);
}
.legal-main {
  max-width: 880px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  line-height: 1.55;
}
.legal-main h1 {
  margin-bottom: 14px;
  font-size: 24px;
}
.legal-main h2 {
  margin: 22px 0 8px;
  font-size: 16px;
  color: #f8fafc;
}
.legal-main p,
.legal-main li {
  margin: 8px 0;
  color: var(--text);
}
.legal-main ul {
  padding-left: 20px;
}
.legal-main a {
  color: #93c5fd;
}
.legal-muted {
  color: var(--text-muted) !important;
  font-size: 12px;
}
.legal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.legal-lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 11px;
}
.legal-lang-switch select {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-tertiary);
  color: var(--text);
  padding: 3px 6px;
  font-size: 11px;
}
.osminog-toolbar .meduza-btn-icon {
  flex-shrink: 0;
}
.osminog-toolbar .btn:hover,
.osminog-toolbar .meduza-btn-icon:hover {
  border-color: rgba(255, 208, 0, 0.7);
  box-shadow: 0 0 0 1px rgba(255, 208, 0, 0.32), 0 0 10px rgba(255, 208, 0, 0.22);
  filter: brightness(1.08);
  cursor: pointer;
}
.osminog-projection-split {
  display: inline-flex;
  align-items: stretch;
  flex-shrink: 0;
  height: 30px;
  margin-right: 8px;
  border: 1px solid rgba(250, 204, 21, 0.55);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(250, 204, 21, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 1px rgba(250, 204, 21, 0.15),
    0 2px 8px rgba(0, 0, 0, 0.3);
}
.osminog-projection-split .osminog-tab {
  min-width: 72px;
  border: none;
  border-right: 1px solid rgba(250, 204, 21, 0.35);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #f8fafc;
  font-weight: 500;
}
.osminog-projection-select {
  appearance: none;
  -webkit-appearance: none;
  width: 30px;
  border: none;
  border-radius: 0;
  color: transparent;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%23fde68a' stroke-width='2.3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 11px 11px;
  background-position: center;
  cursor: pointer;
}
.osminog-projection-select option {
  color: #111827;
}
.osminog-tab {
  border: 1px solid var(--border);
  background: var(--bg-tertiary);
  color: var(--text-muted);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  font-weight: 400;
}
.osminog-tab.active {
  background: rgba(250, 204, 21, 0.2);
  color: #f8fafc;
  border-color: rgba(250, 204, 21, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 1px rgba(250, 204, 21, 0.15),
    0 2px 8px rgba(0, 0, 0, 0.3);
  font-weight: 500;
}
.osminog-tab:active,
.osminog-toolbar .btn:active {
  font-weight: 400;
}
/* Калибровка: слева — старт точек; справа в том же блоке — эталонная длина */
.osminog-calibrate-split {
  display: inline-flex;
  align-items: stretch;
  flex-shrink: 0;
  height: 30px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-tertiary);
}
.osminog-toolbar .osminog-calibrate-split,
.osminog-toolbar .osminog-projection-split {
  min-height: 30px;
  height: 30px;
}
.osminog-calibrate-split-main {
  margin: 0 !important;
  height: 100%;
  border-radius: 0 !important;
  border: none !important;
  border-right: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: none !important;
}
.osminog-calibrate-split-main svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.osminog-calibrate-mm-inline {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 0 15px 0 6px;
  min-width: 0;
  width: auto;
  max-width: 6rem;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text);
  background-color: var(--bg-tertiary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 9px 9px;
  background-position: right 6px center;
  border: none;
  cursor: pointer;
}
.osminog-calibrate-mm-inline:hover {
  background-color: rgba(255, 255, 255, 0.06);
}
.osminog-calibrate-mm-inline:focus {
  outline: none;
}
.osminog-point-picker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}
.osminog-point-picker select {
  min-width: 170px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-tertiary);
  color: var(--text);
}
.osminog-toolbar .btn.active {
  background: rgba(250, 204, 21, 0.2);
  border-color: rgba(250, 204, 21, 0.55);
  color: #f8fafc;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 1px rgba(250, 204, 21, 0.15),
    0 2px 8px rgba(0, 0, 0, 0.3);
  font-weight: 500;
}
.osminog-toolbar .btn.active:active {
  font-weight: 400;
}
/* Калибровка: красный — нет; жёлтый — ставите точки; зелёный — готово */
#osminog-calibrate-split.osminog-calibrate-wip {
  border-color: rgba(250, 204, 21, 0.55);
  background: rgba(250, 204, 21, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 0 1px rgba(250, 204, 21, 0.22),
    0 2px 12px rgba(250, 204, 21, 0.2);
}
#osminog-calibrate-split.osminog-calibrate-wip .osminog-calibrate-split-main {
  background: transparent !important;
  color: #f8fafc;
  border-right-color: rgba(250, 204, 21, 0.4) !important;
  font-weight: 500;
}
#osminog-calibrate-split.osminog-calibrate-wip .osminog-calibrate-mm-inline {
  background-color: transparent;
  color: #fef3c7;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9' viewBox='0 0 24 24' fill='none' stroke='%23fde68a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-size: 9px 9px;
  background-position: right 6px center;
}
#osminog-calibrate-split.osminog-calibrate-ok {
  border-color: rgba(34, 197, 94, 0.48);
  background: rgba(34, 197, 94, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(34, 197, 94, 0.2),
    0 2px 12px rgba(34, 197, 94, 0.16);
}
#osminog-calibrate-split.osminog-calibrate-ok .osminog-calibrate-split-main {
  background: transparent !important;
  color: #ecfdf5;
  border-right-color: rgba(34, 197, 94, 0.35) !important;
  font-weight: 500;
}
#osminog-calibrate-split.osminog-calibrate-ok .osminog-calibrate-mm-inline {
  background-color: transparent;
  color: #ecfdf5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9' viewBox='0 0 24 24' fill='none' stroke='%23a7f3d0' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-size: 9px 9px;
  background-position: right 6px center;
}
#osminog-calibrate-split.osminog-calibrate-bad {
  border-color: rgba(239, 68, 68, 0.42);
  background: rgba(239, 68, 68, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(239, 68, 68, 0.14),
    0 2px 12px rgba(239, 68, 68, 0.12);
}
#osminog-calibrate-split.osminog-calibrate-bad .osminog-calibrate-split-main {
  background: transparent !important;
  color: #fef2f2;
  border-right-color: rgba(239, 68, 68, 0.35) !important;
  font-weight: 500;
}
#osminog-calibrate-split.osminog-calibrate-bad .osminog-calibrate-mm-inline {
  background-color: transparent;
  color: #fef2f2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9' viewBox='0 0 24 24' fill='none' stroke='%23fecaca' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-size: 9px 9px;
  background-position: right 6px center;
}
#osminog-zoom-reset-btn.osminog-reset-lit {
  border-color: rgba(250, 204, 21, 0.65);
  box-shadow:
    0 0 0 1px rgba(250, 204, 21, 0.4),
    0 0 14px rgba(250, 204, 21, 0.28);
  color: #fde68a;
}
#osminog-zoom-reset-btn.osminog-reset-lit svg {
  stroke: #fde68a;
}
.osminog-workspace {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.osminog-canvas-wrap {
  position: relative;
  border: none;
  border-radius: 0;
  overflow: hidden;
  background: #0d111a;
  min-height: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
.osminog-canvas-stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
}
.osminog-canvas-wrap.osminog-no-image {
  touch-action: manipulation;
}
.osminog-canvas-wrap.osminog-no-image #osminog-canvas {
  pointer-events: none;
}
.osminog-canvas-wrap.osminog-upload-ready {
  cursor: pointer;
}
.osminog-canvas-wrap.osminog-upload-ready:hover {
  background: #101622;
}
#osminog-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
  touch-action: none;
}
.osminog-canvas-wrap.osminog-upload-ready #osminog-canvas {
  cursor: pointer;
}
.osminog-canvas-wrap:not(.osminog-no-image) .osminog-empty {
  display: none !important;
  pointer-events: none !important;
}
.osminog-empty {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px;
  padding-bottom: max(18px, calc(12px + env(safe-area-inset-bottom)));
  pointer-events: none;
}
.osminog-panel.osminog-stage-upload .osminog-empty {
  pointer-events: auto;
}
.osminog-upload-picks {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 20px;
  pointer-events: auto;
  position: relative;
  z-index: 1;
}
.osminog-upload-pick {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  gap: 0;
  width: min(168px, 38vw);
  min-height: min(220px, 42vw);
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  background: #0a1018;
  color: #dbeafe;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  user-select: none;
  -webkit-user-select: none;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
.osminog-upload-pick-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.osminog-upload-pick-label {
  position: relative;
  z-index: 1;
  pointer-events: none;
}
.osminog-upload-pick:hover {
  border-color: rgba(56, 189, 248, 0.75);
  box-shadow: 0 12px 32px rgba(14, 116, 178, 0.28);
  transform: translateY(-1px);
}
.osminog-upload-pick:active {
  transform: translateY(0);
}
.osminog-upload-pick-label {
  display: block;
  margin-top: auto;
  padding: 10px 8px 9px;
  color: #f8fafc;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.72) 35%, rgba(15, 23, 42, 0.92) 100%);
}
@media (min-width: 769px) {
  .osminog-upload-picks {
    gap: 32px;
  }
  .osminog-upload-pick {
    width: min(280px, 22vw);
    min-height: min(350px, 28vw);
    border-radius: 14px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.38);
  }
  .osminog-upload-pick-label {
    font-size: 12px;
    padding: 12px 10px 11px;
    letter-spacing: 0.16em;
  }
}
.osminog-upload-error {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 30;
  max-width: min(420px, calc(100% - 32px));
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(248, 113, 113, 0.45);
  background: rgba(69, 10, 10, 0.92);
  color: #fecaca;
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.osminog-upload-error.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.osminog-cal-guide-dock {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 5;
  width: min(200px, 30vw);
  padding: 4px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.88);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
}
.osminog-cal-guide-dock.hidden {
  display: none !important;
}
.osminog-cal-guide-dock-close {
  position: absolute;
  top: 2px;
  right: 4px;
  z-index: 2;
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
}
.osminog-cal-guide-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}
.osminog-panel.osminog-cal-pick-size .osminog-calibrate-mm-inline {
  min-width: 132px;
}
.osminog-panel.osminog-stage-calibrate #osminog-calibrate-btn {
  display: none !important;
}
.osminog-panel.osminog-stage-calibrate.osminog-is-calibrating:not(.osminog-show-advanced) .osminog-toolbar {
  display: none;
}
.osminog-measures-dock {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  width: min(300px, 38vw);
  max-width: 300px;
  border-left: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 0;
  background: rgba(15, 23, 42, 0.72);
  padding: 10px;
  overflow: hidden;
  display: none;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  box-shadow: -10px 0 28px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.osminog-measures-dock.hidden {
  display: none !important;
}
.osminog-measures-dock .osminog-measures {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.osminog-point-info-float {
  position: absolute;
  z-index: 30;
  width: min(260px, calc(100% - 16px));
  max-height: min(300px, calc(100% - 16px));
  overflow: auto;
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-muted);
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(28, 28, 30, 0.88);
  box-shadow:
    0 0 0 0.5px rgba(255, 255, 255, 0.06) inset,
    0 12px 36px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(28px) saturate(170%);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  pointer-events: auto;
  animation: osminog-point-info-in 0.32s cubic-bezier(0.32, 0.72, 0, 1);
}
@keyframes osminog-point-info-in {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(4px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.osminog-point-info-float.hidden {
  display: none;
}
.osminog-point-info-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.osminog-point-info-strip strong {
  color: var(--text);
  font-weight: 600;
  flex: 1;
  min-width: 0;
}
.osminog-point-info-text {
  margin: 0;
}
.osminog-point-info-figure {
  margin: 0 0 8px;
  padding: 0;
}
.osminog-point-info-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #0a0f1a;
}
.osminog-point-info-float--with-img .osminog-point-info-img {
  max-height: 220px;
  object-fit: contain;
}
.osminog-point-info-img-fallback {
  margin: 0;
  font-size: 10px;
  color: #fbbf24;
}
.osminog-point-info-close {
  border: 0;
  background: rgba(120, 120, 128, 0.32);
  color: rgba(235, 235, 245, 0.88);
  cursor: pointer;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  padding: 0;
  font-size: 15px;
  line-height: 1;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, transform 0.12s ease;
}
.osminog-point-info-close:hover {
  background: rgba(120, 120, 128, 0.46);
  color: #fff;
}
.osminog-point-info-close:active {
  transform: scale(0.94);
}
.osminog-point-info-delete {
  flex-shrink: 0;
  border: 1px solid rgba(248, 113, 113, 0.45);
  border-radius: 6px;
  background: rgba(127, 29, 29, 0.35);
  color: #fecaca;
  padding: 2px 8px;
  font-size: 10px;
  cursor: pointer;
  line-height: 1.4;
}
.osminog-point-info-delete:hover {
  border-color: rgba(248, 113, 113, 0.75);
  color: #fff;
}
.osminog-point-info-btn {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-size: 11px;
  font-style: italic;
  font-family: Georgia, 'Times New Roman', serif;
  cursor: pointer;
  line-height: 1;
}
.osminog-point-info-btn:hover {
  border-color: rgba(250, 204, 21, 0.55);
  color: #fde68a;
}
.osminog-measures {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.osminog-measures-list {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
}
.osminog-measures-empty {
  margin: 0;
  padding: 10px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
  border: 1px dashed rgba(148, 163, 184, 0.22);
  border-radius: 8px;
}
.osminog-measure-method {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-tertiary);
}
.osminog-measure-method > summary {
  list-style: none;
  cursor: pointer;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  user-select: none;
}
.osminog-measure-method > summary::-webkit-details-marker {
  display: none;
}
.osminog-measure-method > summary::before {
  content: '▸';
  color: var(--text-muted);
  margin-right: 6px;
}
.osminog-measure-method[open] > summary::before {
  content: '▾';
}
.osminog-measure-method > dl {
  margin: 0;
  padding: 0 10px 10px;
}
.osminog-measure-method dt {
  color: var(--text-muted);
  margin-top: 6px;
}
.osminog-measure-method dt:first-child {
  margin-top: 0;
}
.osminog-measure-method dd {
  margin: 2px 0 0;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.osminog-point-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 8px;
  background: var(--bg-tertiary);
  font-size: 12px;
}
.osminog-point-row.selected {
  border-color: rgba(250, 204, 21, 0.65);
  background: rgba(250, 204, 21, 0.14);
  box-shadow: inset 0 0 0 1px rgba(250, 204, 21, 0.35);
}
.osminog-point-group-title {
  position: sticky;
  top: 0;
  z-index: 3;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 6px;
  padding: 4px 0 2px;
  background: var(--bg-secondary);
  box-shadow: 0 1px 0 var(--border);
}
.osminog-point-group-title:first-child {
  margin-top: 0;
}
.osminog-measures-pay-locked .osminog-measure-method > summary {
  cursor: pointer;
  list-style-position: inside;
}
.osminog-point-group-toggle {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.osminog-point-abbr {
  font-weight: 600;
  color: var(--text);
}
.osminog-point-long {
  color: var(--text-muted);
  font-weight: 400;
}
.osminog-point-name:active,
.osminog-point-group-toggle:active {
  font-weight: 400;
}
.osminog-point-row.selected .osminog-point-name {
  color: #facc15;
  font-weight: 500;
}
.osminog-point-name {
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  padding: 0;
  text-align: left;
  flex: 1;
}
.osminog-point-row.placed:not(.selected) {
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.1);
}
.osminog-point-row.placed:not(.selected) .osminog-point-name {
  color: #4ade80;
}
.osminog-point-row.placed.selected {
  border-color: rgba(250, 204, 21, 0.65);
  background: rgba(250, 204, 21, 0.14);
}
.osminog-point-row--soft.placed:not(.selected) {
  border-color: rgba(192, 132, 252, 0.45);
  background: rgba(168, 85, 247, 0.12);
}
.osminog-point-row--soft.placed:not(.selected) .osminog-point-name,
.osminog-point-row--soft.placed:not(.selected) .osminog-point-abbr {
  color: #c084fc;
}
.osminog-point-row--soft.selected {
  border-color: rgba(216, 180, 254, 0.65);
  background: rgba(168, 85, 247, 0.16);
  box-shadow: inset 0 0 0 1px rgba(192, 132, 252, 0.35);
}
.osminog-point-row--soft.selected .osminog-point-name,
.osminog-point-row--soft.selected .osminog-point-abbr {
  color: #e9d5ff;
}
.osminog-point-row button { padding: 2px 5px; font-size: 11px; }

@media (min-width: 1025px) {
  html, body { height: 100%; overflow: hidden; }
  .app-main {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .osminog-panel {
    flex: 1;
    min-height: 0;
  }
  .osminog-workspace {
    align-items: stretch;
  }
  .osminog-canvas-wrap {
    min-height: 280px;
  }
  .osminog-measures-dock {
    height: 100%;
    max-height: 100%;
  }

  /* Крупнее иконки внутри кнопок панели (десктоп) */
  .osminog-toolbar .btn,
  .osminog-toolbar .osminog-tab {
    min-height: 44px;
    height: 44px;
  }
  .osminog-toolbar .osminog-calibrate-split,
  .osminog-toolbar .osminog-projection-split {
    min-height: 44px;
    height: 44px;
  }
  .osminog-projection-split {
    margin-right: 10px;
  }
  .osminog-icon-btn,
  #osminog-ai-btn {
    width: 44px;
    min-width: 44px;
    height: 44px;
  }
  #osminog-ai-btn {
    font-size: 14px;
    font-weight: 600;
  }
  .osminog-icon-btn svg,
  .osminog-calibrate-split-main svg,
  #osminog-zoom-reset-btn svg,
  #osminog-angles-btn svg,
  #osminog-clear-btn svg,
  #osminog-calibrate-btn svg {
    width: 28px;
    height: 28px;
    stroke-width: 1.65;
  }
  .osminog-report-pdf-icon-btn {
    width: 46px;
    min-width: 46px;
    height: 46px;
  }
  .osminog-report-pdf-icon-btn svg {
    width: 30px;
    height: 30px;
    stroke-width: 1.55;
  }
  .osminog-projection-split .osminog-tab {
    min-width: 80px;
    font-size: 13px;
  }
  .osminog-calibrate-mm-inline {
    font-size: 13px;
    padding: 0 18px 0 8px;
  }
}

/* ——— Планшеты и телефоны (включая iPad до 1024px) ——— */
@media (max-width: 1024px) {
  html, body {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .app-footer {
    padding: 14px 12px 12px;
    font-size: 11px;
  }
  .app-footer-top,
  .app-footer-bottom {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .app-footer-bottom-end {
    text-align: left;
  }
  .app-footer-brand-name,
  .app-footer-col-title {
    font-size: 1.1rem;
  }
  html, body { overflow-x: hidden; }
  .app-header {
    padding: 10px 12px;
    padding-top: max(10px, env(safe-area-inset-top));
  }
  .app-header-top {
    flex-wrap: wrap;
  }
  .app-header h1 { font-size: 18px; margin-bottom: 0; }
  .app-main {
    flex: 1 1 auto;
    height: auto;
    min-height: calc(100dvh - 52px);
    overflow: visible;
    padding: 8px;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
  }
  .osminog-panel {
    height: auto;
    min-height: 0;
  }
  .osminog-panel.osminog-stage-upload {
    min-height: 0;
  }
  .osminog-panel.osminog-stage-upload .osminog-workspace {
    flex: 0 0 auto;
  }
  .osminog-canvas-wrap.osminog-no-image {
    background: #0d111a;
    height: auto;
  }
  .osminog-canvas-wrap.osminog-no-image .osminog-canvas-stage {
    overflow: hidden;
  }
  .osminog-canvas-wrap.osminog-no-image #osminog-canvas {
    display: none;
  }
  .osminog-canvas-wrap.osminog-no-image .osminog-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 12px;
    padding-bottom: max(18px, calc(12px + env(safe-area-inset-bottom)));
  }
  .app-main {
    min-height: 0;
    flex: 0 0 auto;
  }
  .osminog-toolbar {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    padding: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .osminog-toolbar::-webkit-scrollbar { display: none; }
  .osminog-toolbar > * { min-width: auto; flex: 0 0 auto; }
  .osminog-toolbar .osminog-projection-split {
    display: flex;
    justify-content: stretch;
    margin-right: 0;
  }
  .osminog-toolbar .osminog-tab { flex: 0 0 auto; }
  .osminog-toolbar .osminog-calibrate-split { flex: 0 0 auto; }
  .osminog-public-counters {
    padding: 3px 6px;
    font-size: 10px;
  }
  .osminog-toolbar .osminog-calibrate-mm-inline {
    width: 50px;
    max-width: 50px;
    padding: 0 14px 0 5px;
    font-size: 11px;
  }
  .osminog-toolbar .osminog-tab:not(#osminog-projection-main) {
    color: var(--text);
  }
  .osminog-ai-progress {
    align-items: stretch;
    flex-direction: column;
    gap: 5px;
    font-size: 10px;
  }
  .osminog-ai-progress-track {
    width: 100%;
    min-width: 0;
  }
  .osminog-cookie-consent {
    flex-direction: column;
    align-items: stretch;
    left: 8px;
    right: 8px;
    padding: 10px;
  }
  /* Снимок на всю ширину; точки — оверлей или ниже на узком экране */
  .osminog-workspace {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
    overflow: visible;
    flex: 0 0 auto;
  }
  .osminog-canvas-wrap {
    order: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    min-height: 0;
    flex: 0 0 auto;
    overflow: visible;
    touch-action: pan-y pinch-zoom;
  }
  .osminog-canvas-stage {
    position: relative;
    flex: 0 0 auto;
    flex-shrink: 0;
    width: 100%;
    height: min(58dvh, calc(100dvh - 176px));
    min-height: min(46dvh, 380px);
    max-height: min(58dvh, calc(100dvh - 176px));
    overflow: hidden;
    touch-action: pan-y pinch-zoom;
  }
}

@media (max-width: 1024px) and (orientation: portrait) {
  .osminog-canvas-wrap.osminog-author-ui-open .osminog-canvas-stage {
    flex-shrink: 0;
    height: min(58dvh, calc(100dvh - 176px));
    min-height: min(46dvh, 380px);
    max-height: min(58dvh, calc(100dvh - 176px));
  }
  .osminog-canvas-wrap.osminog-author-ui-open {
    flex-direction: column;
    max-height: none;
  }
  .osminog-canvas-wrap.osminog-author-ui-open .osminog-author-menu:not(.hidden),
  .osminog-canvas-wrap.osminog-author-ui-open .osminog-author-points:not(.hidden) {
    flex: 0 1 auto;
    order: 2;
    width: 100%;
    max-width: none;
    height: auto;
  }
  .osminog-canvas-wrap.osminog-author-ui-open .osminog-author-rail-panel {
    width: 100%;
    height: auto;
    padding: 14px 10px max(12px, env(safe-area-inset-bottom));
    border-radius: 18px 18px 0 0;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
      0 0 0 0.5px rgba(255, 255, 255, 0.06) inset,
      0 -12px 40px rgba(0, 0, 0, 0.42);
    animation: osminog-dialog-sheet-in 0.38s cubic-bezier(0.32, 0.72, 0, 1);
  }
  .osminog-canvas-wrap.osminog-author-ui-open .osminog-author-menu-heading {
    padding-top: 2px;
  }
}

@media (max-width: 1024px) {
  /* iPad/phone: author and point lists must live below the canvas, never over it. */
  .osminog-canvas-wrap.osminog-author-ui-open {
    flex-direction: column;
    align-items: stretch;
    overflow: visible;
    max-height: none;
  }
  .osminog-canvas-wrap.osminog-author-ui-open .osminog-canvas-stage {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
  }
  .osminog-canvas-wrap.osminog-author-ui-open .osminog-author-menu:not(.hidden),
  .osminog-canvas-wrap.osminog-author-ui-open .osminog-author-points:not(.hidden) {
    position: relative;
    inset: auto;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    order: 2;
    flex: 0 1 auto;
    align-self: stretch;
    width: 100%;
    max-width: none;
    height: auto;
    max-height: none;
    pointer-events: auto;
    z-index: 4;
  }
  .osminog-canvas-wrap.osminog-author-ui-open .osminog-author-menu-backdrop,
  .osminog-canvas-wrap.osminog-author-ui-open .osminog-author-points-backdrop {
    display: none;
  }
  .osminog-canvas-wrap.osminog-author-ui-open .osminog-author-rail-panel {
    position: relative;
    inset: auto;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    max-width: none;
    height: auto;
    max-height: min(42dvh, 360px);
    margin: 0;
    padding: 14px 10px max(12px, env(safe-area-inset-bottom));
    border-radius: 18px 18px 0 0;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(28, 28, 30, 0.92);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    box-shadow:
      0 0 0 0.5px rgba(255, 255, 255, 0.06) inset,
      0 -12px 40px rgba(0, 0, 0, 0.42);
    transform: none !important;
    animation: osminog-dialog-sheet-in 0.38s cubic-bezier(0.32, 0.72, 0, 1);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 480px) and (orientation: portrait) {
  .osminog-canvas-wrap.osminog-author-ui-open .osminog-canvas-stage {
    height: min(52dvh, calc(100dvh - 168px));
    min-height: min(44dvh, 360px);
    max-height: min(52dvh, calc(100dvh - 168px));
  }
}

@media (max-width: 1024px) {
  .osminog-ios-dock {
    padding: 10px 12px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    gap: 8px;
    background: transparent;
  }
  .osminog-ios-actions-pill {
    gap: 6px;
  }
  .osminog-ios-pill-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }
  .osminog-ios-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }
  .osminog-ios-icon {
    width: 20px;
    height: 20px;
  }
  .osminog-ios-pill {
    height: 40px;
    min-width: 40px;
    padding: 0 10px;
    font-size: 12px;
    border-radius: 20px;
  }
  .osminog-cal-side-stack {
    gap: 6px;
    max-width: min(88px, 22vw);
  }
  .osminog-cal-size-row {
    gap: 5px;
  }
  .osminog-upload-picks {
    gap: 12px;
  }
  .osminog-upload-pick {
    width: min(148px, 42vw);
    min-height: min(196px, 48vw);
  }
  #osminog-canvas {
    width: 100%;
    height: 100%;
    touch-action: pan-y pinch-zoom;
  }
  .osminog-measures-dock {
    position: static;
    order: 2;
    width: 100%;
    max-width: none;
    max-height: none;
    min-height: 0;
    box-shadow: none;
    border-left: none;
    border-radius: var(--radius);
  }
  .osminog-panel.osminog-show-advanced .osminog-measures-dock:not(.hidden) {
    min-height: min(36dvh, 300px);
    max-height: min(44dvh, 360px);
  }
  .osminog-cal-guide-dock {
    position: static;
    order: 1;
    width: auto;
    max-width: 200px;
    align-self: flex-start;
    margin: 0 0 0 8px;
  }
  .osminog-author-rail-panel {
    width: min(300px, 92vw);
  }

  .osminog-dialog-modal {
    align-items: flex-end;
    padding: 0;
    background: rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
  }
  .osminog-dialog-card {
    width: 100%;
    max-width: none;
    max-height: min(92dvh, 100%);
    border-radius: 18px 18px 0 0;
    padding: 22px 18px max(20px, env(safe-area-inset-bottom));
    animation: osminog-dialog-sheet-in 0.38s cubic-bezier(0.32, 0.72, 0, 1);
  }
  @keyframes osminog-dialog-sheet-in {
    from { transform: translateY(100%); opacity: 0.92; }
    to { transform: translateY(0); opacity: 1; }
  }
  .osminog-dialog-close {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .osminog-cal-guide-card {
    max-height: min(94dvh, 100%);
  }
  .osminog-cal-demo-layout {
    flex-direction: column;
    gap: 8px;
  }
  .osminog-cal-demo-sizes {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    gap: 6px;
  }
  .osminog-cal-demo-size {
    flex: 1 1 calc(25% - 6px);
    min-width: 52px;
    min-height: 36px;
  }
  .osminog-paywall {
    align-items: flex-end;
    padding: 0;
  }
  .osminog-paywall-card {
    width: 100%;
    max-width: none;
    border-radius: 16px 16px 0 0;
    padding-bottom: max(18px, env(safe-area-inset-bottom));
  }
  .osminog-paywall-card .btn-accent,
  .osminog-paywall-card .osminog-paywall-refresh,
  .osminog-paywall-card .osminog-paywall-free-btn {
    min-height: 48px;
    font-size: 1rem;
  }
  .osminog-paywall-close {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .osminog-pdf-preview-card {
    width: 100%;
    max-height: min(96dvh, 100%);
    border-radius: 16px 16px 0 0;
  }
  .osminog-pdf-preview-viewport {
    min-height: min(44dvh, 360px);
    max-height: min(58dvh, 520px);
  }

  /* Планшет: крупные иконки в панели (iPad и т.п., не телефон ≤480px) */
  @media (min-width: 481px) {
    .osminog-toolbar .btn,
    .osminog-toolbar .osminog-tab {
      min-height: 44px;
      height: 44px;
    }
    .osminog-toolbar .osminog-calibrate-split,
    .osminog-toolbar .osminog-projection-split {
      min-height: 44px;
      height: 44px;
    }
    .osminog-projection-split {
      margin-right: 8px;
    }
    .osminog-toolbar .osminog-icon-btn,
    .osminog-toolbar #osminog-ai-btn {
      width: 44px;
      min-width: 44px;
      height: 44px;
    }
    .osminog-toolbar #osminog-ai-btn {
      font-size: 14px;
      font-weight: 600;
    }
    .osminog-toolbar .osminog-icon-btn svg,
    .osminog-toolbar .osminog-calibrate-split-main svg,
    .osminog-toolbar #osminog-zoom-reset-btn svg,
    .osminog-toolbar #osminog-angles-btn svg,
    .osminog-toolbar #osminog-clear-btn svg,
    .osminog-toolbar #osminog-calibrate-btn svg {
      width: 28px;
      height: 28px;
      stroke-width: 1.65;
    }
    .osminog-toolbar .osminog-report-pdf-icon-btn {
      width: 46px;
      min-width: 46px;
      height: 46px;
    }
    .osminog-toolbar .osminog-report-pdf-icon-btn svg {
      width: 30px;
      height: 30px;
      stroke-width: 1.55;
    }
    .osminog-toolbar .osminog-projection-split .osminog-tab {
      min-width: 80px;
      font-size: 13px;
    }
    .osminog-toolbar .osminog-calibrate-mm-inline {
      font-size: 13px;
      width: 58px;
      max-width: 58px;
    }
    .osminog-toolbar .osminog-projection-select {
      width: 36px;
      background-size: 14px 14px;
    }
  }
}

@media (max-width: 480px) {
  .osminog-cal-side-stack {
    top: auto;
    bottom: calc(64px + env(safe-area-inset-bottom));
    transform: none;
    max-width: min(72px, 19vw);
    gap: 5px;
  }
  .osminog-cal-help-btn {
    min-height: 40px;
    min-width: 40px;
  }
  .osminog-cal-help-i {
    width: 20px;
    height: 20px;
    font-size: 13px;
  }
  .osminog-toolbar .btn-small:not(.meduza-btn-icon) {
    padding: 5px 8px;
    font-size: 11px;
  }
  .osminog-toolbar .osminog-icon-btn,
  .osminog-toolbar #osminog-ai-btn {
    width: 30px;
    min-width: 30px;
    height: 30px;
    padding: 0;
  }
  .osminog-toolbar .osminog-report-pdf-icon-btn {
    width: 34px;
    min-width: 34px;
    height: 34px;
  }
  .osminog-toolbar .osminog-report-pdf-icon-btn svg {
    width: 22px;
    height: 22px;
  }
  .osminog-canvas-stage {
    height: min(52dvh, calc(100dvh - 168px));
    min-height: min(44dvh, 360px);
    max-height: min(52dvh, calc(100dvh - 168px));
  }
  .osminog-point-info-float {
    z-index: 30;
    width: min(300px, calc(100% - 20px));
    max-height: min(46dvh, calc(100% - 88px));
    font-size: 12px;
    line-height: 1.5;
    padding: 10px 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  }
  .osminog-point-info-float--with-img .osminog-point-info-img {
    max-height: min(180px, 32dvh);
  }
  .osminog-point-row {
    padding: 8px 10px;
    min-height: 44px;
  }
}

.osminog-paywall {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: rgba(8, 14, 24, 0.92);
}
@supports (backdrop-filter: blur(4px)) {
  .osminog-paywall {
    background: rgba(8, 14, 24, 0.72);
    backdrop-filter: blur(4px);
  }
}

.osminog-paywall-card {
  position: relative;
  width: min(420px, 100%);
  max-height: min(92dvh, 720px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 22px 20px 18px;
  border-radius: 14px;
  background: rgba(18, 24, 36, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  color: #eef3fb;
}

.osminog-paywall-card h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.osminog-paywall-lead,
.osminog-paywall-note,
.osminog-paywall-ios-hint {
  margin: 0 0 12px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(238, 243, 251, 0.82);
}

.osminog-paywall-ios-hint {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(250, 204, 21, 0.1);
  border: 1px solid rgba(250, 204, 21, 0.28);
  color: rgba(254, 243, 199, 0.95);
}

.osminog-paywall-price {
  margin: 0 0 14px;
  font-size: 1rem;
}

.osminog-paywall-price strong {
  font-size: 1.15rem;
}

.osminog-paywall-card .btn-accent,
.osminog-paywall-card .osminog-paywall-refresh {
  width: 100%;
  margin-bottom: 10px;
}

.osminog-paywall-card .osminog-paywall-refresh {
  margin-bottom: 14px;
}

.osminog-paywall-pending {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
}

.osminog-paywall-code-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 6px 0 0;
}

.osminog-paywall-code-row .osminog-paywall-code {
  margin: 0;
}

.osminog-paywall-copy-btn {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #eef3fb;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.osminog-paywall-copy-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.osminog-paywall-copy-btn:active {
  transform: scale(0.96);
}

.osminog-paywall-code {
  margin: 6px 0 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  text-align: center;
}

.osminog-paywall-email {
  margin: 12px 0 14px;
}

.osminog-paywall-email label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.osminog-paywall-email input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.25);
  color: inherit;
  font-size: 0.95rem;
}

.osminog-paywall-email input::placeholder {
  color: rgba(238, 243, 251, 0.45);
}

.osminog-paywall-activate label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.osminog-paywall-activate-row {
  display: flex;
  gap: 8px;
}

.osminog-paywall-activate-row input {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.25);
  color: inherit;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
}

.osminog-paywall-message {
  min-height: 1.2em;
  margin: 10px 0 0;
  font-size: 0.88rem;
  color: rgba(170, 220, 255, 0.95);
}

.osminog-paywall-message.is-error {
  color: #ffb4b4;
}

body.osminog-dialog-open {
  overflow: hidden;
}
body.osminog-paywall-open {
  overflow: hidden;
}

.osminog-paywall-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: rgba(238, 243, 251, 0.75);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.osminog-measures-locked {
  padding: 12px;
  border-radius: 10px;
  border: 1px dashed rgba(255, 196, 96, 0.45);
  background: rgba(255, 196, 96, 0.08);
  color: rgba(238, 243, 251, 0.92);
  font-size: 0.9rem;
  line-height: 1.45;
}

.osminog-measures-locked p {
  margin: 0 0 10px;
}
