.foam-guide-story{--background:#101010;--timeline-background:#202020;--foreground:#f0f0f0;--rule:#303030;--muted:#aaa;--soft:#242424;color-scheme:dark;position:fixed;inset:0;margin:auto;width:min(440px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;overscroll-behavior:contain;color:var(--foreground);background:var(--background);border:1px solid var(--rule);border-radius:20px;font-family:var(--font-inter),system-ui,sans-serif;font-size:14px;text-transform:none;box-shadow:0 18px 56px #0005}.foam-guide-story::backdrop{background:#0008}.foam-guide-story-panel{padding:16px;outline:none}.foam-guide-story-row{display:flex;align-items:center;justify-content:space-between;gap:8px}.foam-guide-story button{cursor:pointer}.foam-guide-story button:focus-visible{outline:1px solid currentColor;outline-offset:2px}.foam-guide-story-next{display:grid;place-items:center;width:44px;height:44px;border-radius:8px}.foam-guide-story-next svg{width:22px;height:22px}.foam-guide-story-next:hover{background:var(--soft)}.foam-guide-story-controls{margin-top:12px}.foam-guide-story-dots{display:flex;align-items:center;gap:6px}.foam-guide-story-dot{display:block;width:6px;height:6px;border-radius:99px;overflow:hidden;background:#ffffff66}.foam-guide-story-dot[data-current=true]{width:28px}.foam-guide-story-dot-fill{display:block;width:100%;height:100%;border-radius:inherit;background:#fff;transform-origin:left}.foam-guide-story-dot-fill[data-paused=true],.foam-guide-story:has(.foam-guide-story-art :is(:focus-visible,:active)) .foam-guide-story-dot-fill{animation-play-state:paused}.foam-guide-story-slide{touch-action:pan-y}.foam-guide-story-art{display:grid;align-content:center;height:190px;padding:12px;border-radius:12px;background:#171717}.foam-guide-story-copy{display:grid;padding-top:14px}.foam-guide-story-copy p{grid-area:1/1;color:var(--muted);line-height:1.5}.foam-guide-story-copy [aria-hidden=true]{visibility:hidden}.foam-guide-story-copy strong{color:var(--foreground);font-weight:600}@keyframes foam-guide-countdown{0%{transform:scaleX(0)}to{transform:scaleX(1)}}@keyframes foam-guide-open{0%{transform:translateY(4px);opacity:0}to{transform:translateY(0);opacity:1}}@media (prefers-reduced-motion:no-preference){.foam-guide-story[open]{animation:foam-guide-open .22s cubic-bezier(.22,1,.36,1)}.foam-guide-story-dot-fill{animation:foam-guide-countdown 12s linear both}}.foam-location-trigger{display:inline-flex;align-items:center;justify-content:flex-end;gap:4px;min-height:44px;margin:-8px 0;padding:8px 0 8px 8px;color:var(--muted);text-align:right;cursor:pointer}.foam-location-trigger:hover{color:var(--foreground)}.foam-location-close:focus-visible,.foam-location-option:focus-visible,.foam-location-trigger:focus-visible{outline:2px solid var(--foreground);outline-offset:3px;border-radius:8px}.foam-location-dialog{width:min(420px,calc(100% - 32px));max-height:min(640px,calc(100dvh - 48px));margin:auto;padding:24px;border:1px solid var(--rule);border-radius:24px;color:var(--foreground);background:var(--background);box-shadow:0 20px 80px rgb(0 0 0/18%);overflow:hidden}.foam-location-dialog[open]{display:flex;flex-direction:column}.foam-location-dialog::backdrop{background:rgb(0 0 0/40%)}.foam-location-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px;flex-shrink:0}.foam-location-close{display:grid;place-items:center;width:44px;height:44px;order:1;margin:0 -8px 0 0;flex-shrink:0;color:var(--muted);cursor:pointer}.foam-location-search{display:block;flex-shrink:0;width:100%;min-width:0;flex:1;min-height:44px;padding:10px 12px;margin-bottom:0;border:1px solid transparent;border-radius:12px;background:var(--soft);color:var(--foreground)}.foam-location-search::placeholder{color:var(--muted)}.foam-location-search:focus{outline:none;background:color-mix(in srgb,var(--soft),var(--foreground) 5%)}.foam-location-list{list-style:none;margin:0 -8px;padding:0 8px;min-height:0;overflow-y:auto;overscroll-behavior:contain}.foam-location-option{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:48px;padding:12px;border-radius:10px;color:var(--foreground);text-decoration:none}.foam-location-option:hover,.foam-location-option[aria-current]{background:var(--soft)}.foam-location-option svg{flex-shrink:0}.foam-location-empty{padding:16px 12px;color:var(--muted)}@media (max-width:600px){.foam-location-dialog{width:100%;max-width:520px;max-height:78dvh;margin:auto auto 0;border-radius:24px 24px 0 0;padding:24px 20px max(24px,env(safe-area-inset-bottom))}.foam-location-dialog[data-keyboard-open]{position:fixed;inset:calc(var(--picker-visible-top) + 12px) 0 auto;height:calc(var(--picker-visible-height) - 24px);max-height:none;margin:0 auto;padding:16px 20px;border-radius:24px}.foam-location-dialog[data-keyboard-open] .foam-location-list{flex:1}.foam-location-search{font-size:16px}}