.rf-rednote-overlay{
  position:fixed;inset:0;z-index:2147483100;display:none;align-items:flex-end;justify-content:center;
  padding:0;background:rgba(0,0,0,.55);backdrop-filter:blur(8px);
}
.rf-rednote-overlay.is-open{display:flex}
.rf-rednote-overlay-panel{
  width:100%;max-width:720px;max-height:min(92dvh,920px);overflow:auto;
  background:#0b0b12;border-radius:20px 20px 0 0;border:1px solid rgba(255,255,255,.1);
  box-shadow:0 -20px 60px rgba(0,0,0,.45);
  padding-bottom:calc(12px + env(safe-area-inset-bottom));
  pointer-events:auto;position:relative;z-index:1;
  -webkit-overflow-scrolling:touch;
}
.rf-rednote-overlay.is-expanded .rf-rednote-overlay-panel{
  max-height:100dvh;height:100dvh;border-radius:0;
}
.rf-rednote-overlay.is-expanded{align-items:stretch}
html[data-rf-theme="light"] .rf-rednote-overlay-panel{background:#fff;border-color:rgba(0,0,0,.08)}
.rf-rednote-overlay-loading{padding:48px 24px;text-align:center;color:#a8a8b8;font-weight:700}
.rf-rednote-overlay .rf-note-detail-top{position:relative;border-radius:20px 20px 0 0}
.rf-rednote-overlay .rf-note-article{padding-bottom:24px}
.rf-rednote-overlay-close-hint{font-size:.72rem;color:#888;text-align:center;padding:8px 8px 12px}
.rf-rednote-overlay-actions{text-align:center;padding:0 16px 8px}
.rf-rednote-overlay-actions .rf-btn{justify-content:center}
.rf-rednote-overlay .rf-note-dots{display:flex;justify-content:center;gap:6px;padding:10px 0 4px}
.rf-rednote-overlay .rf-note-dot{
  width:7px;height:7px;border-radius:50%;border:0;padding:0;background:rgba(255,255,255,.35);cursor:pointer;
}
.rf-rednote-overlay .rf-note-dot.is-active{background:#ff174d;width:18px;border-radius:999px}

.rf-rednote-overlay .rf-note-detail-top{
  position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:10px;
  padding:max(10px,env(safe-area-inset-top)) 12px 10px;
  background:rgba(11,11,18,.92);backdrop-filter:blur(16px);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.rf-rednote-overlay .rf-note-back{
  width:40px;height:40px;border-radius:999px;border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);color:#fff;display:grid;place-items:center;cursor:pointer;
  pointer-events:auto;position:relative;z-index:22;
}
.rf-rednote-overlay .rf-note-reel-link{
  pointer-events:auto;position:relative;z-index:22;flex-shrink:0;
}
.rf-rednote-overlay-dock{
  position:sticky;bottom:0;z-index:21;
  padding:8px 16px calc(10px + env(safe-area-inset-bottom));
  background:linear-gradient(180deg,transparent,rgba(11,11,18,.94) 28%,rgba(11,11,18,.98));
  pointer-events:auto;
}
.rf-rednote-overlay-engage{
  position:sticky;bottom:0;z-index:21;display:flex;gap:10px;justify-content:center;
  padding:12px 16px calc(10px + env(safe-area-inset-bottom));
  background:linear-gradient(180deg,transparent,rgba(11,11,18,.92) 35%,rgba(11,11,18,.98));
  pointer-events:auto;
}
.rf-rednote-overlay-dock .rf-rednote-overlay-engage{
  position:static;padding:0;background:none;
}
.rf-rednote-overlay-engage-btn{
  flex:1;max-width:160px;border:1px solid rgba(255,255,255,.14);border-radius:999px;
  background:rgba(255,255,255,.08);color:#fff;font-weight:800;font-size:.82rem;
  padding:10px 14px;display:inline-flex;align-items:center;justify-content:center;gap:8px;
  cursor:pointer;pointer-events:auto;
}
.rf-rednote-overlay-engage-btn.is-liked{border-color:rgba(255,23,77,.45);color:#ff8ab3}
.rf-rednote-overlay-engage-btn.is-saved{border-color:rgba(255,214,10,.45);color:#ffd60a}
.rf-rednote-overlay-engage-btn:active{transform:scale(.98)}
body.rf-rednote-overlay-open #rfFeedReelsViewer.on > .rf-feed-reels-actions,
body.rf-rednote-overlay-open #rfFeedReelsViewer.on > .rf-feed-reels-header-bar,
body.rf-rednote-overlay-open #rfFeedReelsViewer.on > .rf-feed-reels-lower,
body.rf-rednote-overlay-open #rfFeedReelsViewer.on > .rf-feed-reels-bottom,
body.rf-rednote-overlay-open #rfProfileReelsViewer.on > .rf-feed-reels-actions,
body.rf-rednote-overlay-open #rfProfileReelsViewer.on > .rf-feed-reels-header-bar,
body.rf-rednote-overlay-open #rfProfileReelsViewer.on > .rf-feed-reels-lower,
body.rf-rednote-overlay-open #rfProfileReelsViewer.on > .rf-feed-reels-bottom{
  visibility:hidden!important;pointer-events:none!important;opacity:0!important;
}
.rf-rednote-overlay .rf-note-top-meta{flex:1;display:flex;align-items:center;gap:8px;min-width:0}
.rf-rednote-overlay .rf-note-top-avatar{width:32px;height:32px;border-radius:50%;object-fit:cover}
.rf-rednote-overlay .rf-note-top-name{font-weight:900;font-size:.9rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rf-note-carousel-nav{
  position:absolute;top:50%;transform:translateY(-50%);z-index:12;
  width:42px;height:42px;border-radius:999px;border:1px solid rgba(255,255,255,.25);
  background:rgba(0,0,0,.5);color:#fff;display:none;place-items:center;cursor:pointer;
  backdrop-filter:blur(8px);padding:0;
}
.rf-note-carousel-nav:disabled{opacity:.35;pointer-events:none}
.rf-note-carousel-nav--prev{left:10px}
.rf-note-carousel-nav--next{right:10px}
@media(min-width:769px){
  .rf-note-carousel-nav{display:grid}
  .rf-rednote-overlay .rf-note-dots,
  .rf-note-detail .rf-note-dots{display:none}
}
@media(max-width:768px){
  .rf-note-carousel-nav{display:none!important}
}
.rf-rednote-overlay .rf-note-carousel{position:relative;background:#000}
.rf-rednote-overlay .rf-note-carousel-track{
  display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
}
.rf-rednote-overlay .rf-note-carousel-track::-webkit-scrollbar{display:none}
.rf-rednote-overlay .rf-note-slide{flex:0 0 100%;scroll-snap-align:start;aspect-ratio:3/4;max-height:min(52vh,520px);background:#111}
.rf-rednote-overlay .rf-note-slide-media{width:100%;height:100%;object-fit:cover;display:block;background:#000}
.rf-rednote-overlay .rf-note-headline{
  font-family:var(--rf-title,system-ui);font-size:1.25rem;line-height:1.15;letter-spacing:-.04em;
  margin:0 0 10px;font-weight:900;color:#fff;
}
.rf-rednote-overlay .rf-note-body{color:#d0d0dc;font-size:.92rem;line-height:1.5}
html[data-rf-theme="light"] .rf-rednote-overlay .rf-note-headline{color:#12121a}
.rf-rednote-overlay .rf-note-topics{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}
.rf-rednote-overlay .rf-note-topic-chip{
  display:inline-flex;align-items:center;padding:6px 11px;border-radius:999px;
  background:rgba(255,23,77,.16);border:1px solid rgba(255,23,77,.4);
  color:#ffb6c7;font-size:.78rem;font-weight:800;text-decoration:none;
}
html[data-rf-theme="light"] .rf-rednote-overlay .rf-note-topic-chip{color:#c01048;background:rgba(255,23,77,.08);border-color:rgba(255,23,77,.28)}
html[data-rf-theme="light"] .rf-rednote-overlay .rf-note-body{color:#3a3a48}

.rf-rednote-overlay .rf-note-place,
.rf-note-place{
  display:flex;flex-direction:column;align-items:flex-start;gap:6px;
  margin:16px 0 6px;
}
.rf-note-go-btn{
  display:inline-flex;align-items:center;gap:8px;border:0;cursor:pointer;
  padding:10px 16px;border-radius:999px;font-weight:900;font-size:.88rem;letter-spacing:.02em;
  color:#fff;background:linear-gradient(135deg,#ff174d,#ff4d6d);
  box-shadow:0 8px 22px rgba(255,23,77,.28);
}
.rf-note-go-btn i{font-size:.95rem}
.rf-note-go-place-name{margin:0;font-size:.72rem;font-weight:700;color:#9aa0b0}
html[data-rf-theme="light"] .rf-note-go-place-name{color:#5a5a68}

.rf-note-go-sheet{
  display:none;position:fixed;inset:0;z-index:2147483646;align-items:flex-end;justify-content:center;
}
.rf-note-go-sheet.is-open{display:flex}
.rf-note-go-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.55);backdrop-filter:blur(8px)}
.rf-note-go-card{
  position:relative;width:100%;max-width:420px;padding:10px 16px calc(16px + env(safe-area-inset-bottom));
  background:#12121a;border-radius:22px 22px 0 0;border:1px solid rgba(255,255,255,.1);
  box-shadow:0 -16px 48px rgba(0,0,0,.45);
}
html[data-rf-theme="light"] .rf-note-go-card{background:#fff;border-color:rgba(0,0,0,.08)}
.rf-note-go-handle{
  display:block;width:42px;height:4px;border-radius:999px;margin:4px auto 12px;
  background:rgba(255,255,255,.22);
}
.rf-note-go-kicker{
  margin:0 0 4px;font-size:.72rem;font-weight:800;color:#ff8ab3;letter-spacing:.04em;text-transform:uppercase;
}
.rf-note-go-card h3{margin:0 0 4px;font-size:1.15rem;font-weight:900}
.rf-note-go-name{margin:0 0 14px;font-size:.82rem;color:#a8a8b8}
.rf-note-go-opts{display:flex;flex-direction:column;gap:8px}
.rf-note-go-opt{
  display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:14px;
  background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);
  color:#fff;font-weight:800;text-decoration:none;
}
.rf-note-go-opt:active{transform:scale(.98)}
html[data-rf-theme="light"] .rf-note-go-opt{background:rgba(0,0,0,.04);border-color:rgba(0,0,0,.06);color:#12121a}
.rf-note-go-ico{
  width:36px;height:36px;border-radius:12px;display:grid;place-items:center;font-size:1.05rem;
}
.rf-note-go-ico.is-google{background:#fff;color:#4285f4}
.rf-note-go-ico.is-waze{background:#33ccff;color:#083344}
.rf-note-go-ico.is-apple{background:#111;color:#fff}
.rf-note-go-cancel{
  width:100%;margin-top:12px;border:0;background:transparent;color:#9aa0b0;
  font-weight:800;padding:10px;cursor:pointer;
}
.rf-rednote-overlay .rf-note-nearby{margin:4px 0 12px}
.rf-rednote-overlay .rf-note-nearby-head{padding:4px 16px 10px}
