html.oft-guide-open { overflow: hidden; }
/* The guide floats above the working camera; its frosted surface keeps that context visible. */
.oft-dialog { --oft-fg: #f5f6f8; --oft-muted: #b6bdc8; --oft-accent: #d6e5f8; color-scheme: dark; box-sizing: border-box; width: min(440px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 30px; background: #202329; color: var(--oft-fg); box-shadow: 0 24px 80px #0006; font: 400 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; overscroll-behavior: contain; }
.oft-dialog *, .oft-dialog *::before, .oft-dialog *::after { box-sizing: border-box; }
.oft-dialog::backdrop { background: #030504b8; }
.oft-dialog::selection, .oft-dialog ::selection { color: #17191d; background: #d6e5f8; }
.oft-dialog[open] { animation: oft-arrive 260ms cubic-bezier(.16, 1, .3, 1); }
.oft-shell { display: grid; grid-template-rows: auto clamp(130px, 25dvh, 208px) auto auto; padding: 12px 24px 24px; }
.oft-header { display: flex; align-items: center; gap: 14px; min-height: 44px; color: var(--oft-muted); font-size: 13px; }
.oft-guide-name { flex: 1; }
.oft-count { font-variant-numeric: tabular-nums; }
.oft-dialog button { font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.oft-dialog button:focus-visible, .oft-dialog a:focus-visible { outline: 2px solid var(--oft-accent); outline-offset: 3px; }
.oft-close { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -12px; padding: 12px; border: 0; border-radius: 50%; background: transparent; color: var(--oft-fg); }
.oft-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.oft-close:hover { background: #ffffff0c; }
.oft-visual { position: relative; display: grid; place-items: center; min-width: 0; min-height: 0; margin: 4px 0 12px; }
.oft-visual svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-height: 240px; overflow: visible; stroke: none; }
.oft-visual text { stroke: none; }
.oft-visual path { stroke-linejoin: round; stroke-linecap: round; }
.oft-lens { fill: #d6e5f808; stroke: #e1e9f4; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.oft-lens.oft-on-paper { fill: #4b596b12; stroke: #334963; stroke-width: 2; }
.oft-lens.oft-rim { fill: none; stroke: var(--oft-accent); stroke-width: 2; }
.oft-paper { fill: #e8ebf0; }
.oft-grid { fill: none; stroke: #b2b8c2; stroke-width: .6; }
.oft-diagram-label { font-family: inherit; font-size: 10px; fill: var(--oft-muted); font-weight: 500; letter-spacing: .02em; }
.oft-ink { fill: #343b48; }
.oft-scale-label { font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.oft-ink-stroke { fill: none; stroke: #343b48; stroke-width: 1.5; }
.oft-accent { fill: none; stroke: var(--oft-accent); stroke-width: 1.6; }
.oft-white-stroke { fill: none; stroke: var(--oft-fg); stroke-width: 1.6; }
.oft-muted-stroke { fill: none; stroke: #626d7c; stroke-width: 1; }
.oft-reflection { fill: none; stroke: #fff; stroke-width: 7; opacity: .7; animation: oft-light 3s ease-in-out 2; }
.oft-brackets { animation: oft-settle 900ms cubic-bezier(.16, 1, .3, 1); transform-origin: 180px 118px; }
.oft-slice-lines { animation: oft-build 1.8s cubic-bezier(.16, 1, .3, 1); }
.oft-copy { min-height: 0; }
.oft-title { margin: 0 0 8px; color: var(--oft-fg); font-size: 24px; line-height: 1.16; font-weight: 600; letter-spacing: -.025em; text-wrap: balance; outline: none; }
.oft-description { max-width: 42ch; margin: 0; color: var(--oft-muted); font-size: 14px; line-height: 1.5; }
.oft-sheet-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; padding: 0 16px; border-radius: 999px; background: #ffffff0e; box-shadow: inset 0 1px 0 #ffffff26; color: var(--oft-fg); text-decoration: none; font-size: 14px; font-weight: 500; }
.oft-sheet-link:hover { background: #ffffff19; }
.oft-sheet-link[hidden] { display: none; }
.oft-sheet-link svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.oft-footer { display: block; margin-top: 24px; padding: 0; border: 0; color: var(--oft-fg); font-size: 15px; line-height: 1.5; }
.oft-actions { display: flex; gap: 12px; }
.oft-back, .oft-next { min-height: 48px; border-radius: 999px; padding: 0 20px; border: 0; transition: background 140ms ease, transform 140ms ease; }
.oft-back { min-width: 82px; background: #ffffff09; color: var(--oft-fg); }
.oft-back[hidden] { display: none; }
.oft-next { flex: 1; background: var(--oft-fg); color: #17191d; font-weight: 600 !important; }
.oft-next:hover { background: #e3eaf5; }
.oft-back:hover:not(:disabled) { background: #ffffff12; }
.oft-next:active, .oft-back:active:not(:disabled) { transform: scale(.98); }
@keyframes oft-arrive { from { transform: translateY(12px); } to { transform: translateY(0); } }
@keyframes oft-light { 0%, 100% { transform: translateX(0); opacity: .7; } 55%, 80% { transform: translateX(78px); opacity: 0; } }
@keyframes oft-settle { from { transform: scale(1.05); } to { transform: scale(1); } }
@keyframes oft-build { from { clip-path: inset(100% 0 0); } to { clip-path: inset(0); } }
@media (max-width: 520px) { .oft-dialog { margin: auto auto max(12px, env(safe-area-inset-bottom)); width: calc(100vw - 24px); max-height: calc(100dvh - 24px); } .oft-shell { padding: 10px 22px 20px; } }
@media (max-height: 570px) { .oft-shell { grid-template-rows: auto 126px auto auto; } .oft-footer { margin-top: 16px; } .oft-visual { margin: 0 0 8px; } }
@media (min-width: 521px) and (max-height: 570px) { .oft-dialog { width: min(660px, calc(100vw - 24px)); margin: auto; } .oft-shell { grid-template-columns: minmax(100px, 1fr) minmax(160px, 1.2fr); grid-template-rows: 44px minmax(128px, auto) auto; gap: 0 20px; padding: 8px 20px 14px; } .oft-header, .oft-footer { grid-column: 1 / -1; } .oft-visual { margin: 4px 0; } .oft-copy { align-self: center; padding: 12px 0; } .oft-title { font-size: 22px; } .oft-description { line-height: 1.4; } }
@media (max-width: 520px) and (max-height: 440px) { .oft-shell { grid-template-rows: 44px auto auto; padding: 8px 18px 14px; } .oft-visual { display: none; } .oft-copy { padding-top: 8px; } .oft-title { font-size: 21px; } .oft-description { font-size: 13px; line-height: 1.4; } .oft-footer { margin-top: 12px; } }
@media (prefers-reduced-motion: reduce) { .oft-dialog, .oft-dialog *, .oft-dialog *::before, .oft-dialog *::after { animation: none !important; transition: none !important; } }

.oft-dialog.oft-dialog {
  --oft-muted: #c4c8d0;
  width: min(460px, calc(100vw - 32px));
  border-radius: 32px;
  background: linear-gradient(145deg, #ffffff1c, #ffffff03 46%, #ffffff0a), #202329c9;
  -webkit-backdrop-filter: blur(34px) saturate(120%);
  backdrop-filter: blur(34px) saturate(120%);
  box-shadow: inset 0 1px 0 #ffffff6b, inset 1px 0 0 #ffffff24, inset -1px -1px 0 #ffffff13, 0 28px 80px #0008;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #ffffff40 transparent;
}
.oft-dialog.oft-dialog::backdrop { background: #05060880; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.oft-dialog .oft-shell { padding: 14px 24px 24px; grid-template-rows: auto clamp(148px, 25dvh, 220px) auto auto; }
.oft-dialog .oft-header { gap: 12px; color: #d5d7dc; font-weight: 500; }
.oft-dialog .oft-count { font-size: 12px; color: #bdc2cb; }
.oft-dialog .oft-close { margin-right: -8px; background: #ffffff0b; box-shadow: inset 0 1px 0 #ffffff32, 0 3px 8px #0001; }
.oft-dialog .oft-visual { margin: 6px -8px 16px; isolation: isolate; }
.oft-dialog .oft-visual::before { content: ''; position: absolute; inset: 9% 8%; border-radius: 50%; background: radial-gradient(ellipse, #f1f4fa0b, transparent 70%); z-index: -1; }
.oft-dialog .oft-title { font-size: clamp(24px, 5.8vw, 28px); letter-spacing: -.035em; line-height: 1.15; margin-bottom: 10px; }
.oft-dialog .oft-description { color: #c4c8d0; font-size: 14px; line-height: 1.55; }
.oft-dialog .oft-footer { margin-top: 24px; }
.oft-dialog .oft-actions { gap: 10px; }
.oft-dialog .oft-next, .oft-dialog .oft-back, .oft-dialog .oft-sheet-link {
  background: linear-gradient(160deg, #ffffff26, #ffffff08 65%);
  box-shadow: inset 0 1px 0 #ffffff6b, inset 0 -1px 0 #ffffff12, 0 5px 14px #0002;
  color: #f5f6f8;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  min-height: 48px;
}
.oft-dialog .oft-next { background: linear-gradient(150deg, #ffffff42, #ffffff15); font-weight: 600; }
.oft-dialog .oft-next:hover, .oft-dialog .oft-back:hover:not(:disabled), .oft-dialog .oft-sheet-link:hover { background-color: #ffffff18; }
.oft-dialog .oft-next:focus-visible, .oft-dialog .oft-back:focus-visible, .oft-dialog .oft-close:focus-visible, .oft-dialog .oft-sheet-link:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.oft-dialog .oft-photo { position: absolute; inset: 0; width: 100%; height: 100%; max-height: 100%; object-fit: contain; border-radius: 20px; display: block; }
.oft-dialog .oft-photo[hidden] { display: none; }
@media (max-width: 520px) {
  .oft-dialog.oft-dialog { width: calc(100vw - 24px); margin: auto auto max(12px, env(safe-area-inset-bottom)); }
  .oft-dialog .oft-shell { padding: 12px 22px 22px; }
}
@media (max-height: 570px) {
  .oft-dialog .oft-shell { grid-template-rows: auto 126px auto auto; padding: 8px 20px 16px; }
  .oft-dialog .oft-visual { margin-bottom: 8px; }
  .oft-dialog .oft-footer { margin-top: 16px; }
  .oft-dialog .oft-title { font-size: 23px; }
}
@media (min-width: 521px) and (max-height: 570px) {
  .oft-dialog.oft-dialog { width: min(660px, calc(100vw - 24px)); margin: auto; }
  .oft-dialog .oft-shell { grid-template-rows: 44px minmax(128px, auto) auto; }
}
@media (max-width: 520px) and (max-height: 440px) {
  .oft-dialog .oft-shell { grid-template-rows: 44px auto auto; }
}
@media (prefers-reduced-transparency: reduce) { .oft-dialog.oft-dialog { background: #262a31; -webkit-backdrop-filter: none; backdrop-filter: none; } }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .oft-dialog.oft-dialog { background: #262a31; } }
