.topbar .nav-actions { display:flex; align-items:center; gap:10px; margin-left:10px; }
.desktop-user-nav { display:flex; align-items:center; gap:5px; margin-left:auto; color:var(--ink-soft,#4a5b57); font-size:12px; font-weight:750; }
.desktop-user-nav > a,
.desktop-user-nav > button,
.desktop-user-nav summary { display:inline-flex; align-items:center; gap:8px; min-height:42px; padding:9px 12px; border:1px solid transparent; border-radius:999px; color:inherit; background:transparent; font:inherit; white-space:nowrap; cursor:pointer; }
.desktop-user-nav > a:hover,
.desktop-user-nav > button:hover,
.desktop-user-nav summary:hover,
.desktop-user-nav details[open] summary { border-color:rgba(111,146,133,.22); color:var(--ink,#152a27); background:rgba(255,255,255,.72); box-shadow:inset 2px 2px 4px rgba(255,255,255,.88),0 5px 13px rgba(21,42,39,.07); }
.desktop-user-nav .nav-link .fa-icon,
.desktop-user-nav summary > .fa-icon:first-child,
.desktop-user-nav .nav-saved > .fa-icon { width:15px; height:15px; flex:0 0 auto; color:#65877d; }
.desktop-user-nav .nav-link,
.desktop-user-nav summary,
.desktop-user-nav .nav-saved { gap:7px; }
.topbar .brand { flex:0 0 auto; }
.topbar .brand .brand-wordmark { white-space:nowrap; }
.topbar .nav-actions { flex:0 0 auto; }
.desktop-user-nav .nav-saved { font-size:inherit; }
.desktop-user-nav .nav-saved.active .fa-icon,
.desktop-user-nav .nav-saved[aria-pressed="true"] .fa-icon { color:#3e530e; }
.topbar { position:sticky; top:0; z-index:80; isolation:isolate; margin-bottom:8px; padding:10px 14px; border:1px solid rgba(187,204,195,.55); border-top:0; border-radius:0 0 22px 22px; background:rgba(247,250,247,.91); box-shadow:0 8px 24px rgba(28,54,52,.07),inset 0 1px 0 rgba(255,255,255,.95); backdrop-filter:blur(18px) saturate(1.22); }
@media (min-width:761px) {
  #top,#timeline,#explore { scroll-margin-top:88px; }
  #searchInput { scroll-margin-top:100px; }
}
@media (max-width:760px) {
  #top,#timeline,#explore { scroll-margin-top:14px; }
}
.desktop-user-nav a:focus-visible,
.desktop-user-nav button:focus-visible,
.desktop-user-nav summary:focus-visible,
.mobile-user-nav button:focus-visible,
.magic-widget button:focus-visible,
.mobile-field-sheet a:focus-visible { outline:3px solid rgba(53,136,167,.55); outline-offset:3px; }
.desktop-user-nav details { position:relative; }
.desktop-user-nav summary { list-style:none; }
.desktop-user-nav summary::-webkit-details-marker { display:none; }
.desktop-user-nav .field-chevron { width:10px; height:10px; transform:rotate(90deg); transition:transform .2s ease; }
.desktop-user-nav details[open] .field-chevron { transform:rotate(-90deg); }
.desktop-field-menu { position:absolute; z-index:92; top:calc(100% + 9px); left:0; display:grid; grid-template-columns:repeat(2,minmax(210px,1fr)); gap:5px; width:min(510px,calc(100vw - 40px)); padding:12px; border:1px solid rgba(177,198,188,.58); border-radius:22px 22px 22px 9px; background:rgba(250,252,249,.97); box-shadow:0 20px 50px rgba(18,43,37,.18),inset 2px 2px 7px rgba(255,255,255,.95); backdrop-filter:blur(18px); }
.desktop-field-menu a,
.mobile-field-sheet a { display:flex; align-items:center; gap:10px; min-width:0; padding:10px; border-radius:14px; color:var(--ink,#152a27); font-size:11px; font-weight:750; line-height:1.3; }
.desktop-field-menu a:hover,
.mobile-field-sheet a:hover { background:linear-gradient(145deg,#fff,#e8f2ec); box-shadow:inset 2px 2px 4px rgba(255,255,255,.95),0 5px 12px rgba(18,43,37,.08); }
.field-menu-icon { display:grid; width:31px; height:31px; flex:0 0 auto; place-items:center; border-radius:11px; color:#f8ffff; background:linear-gradient(145deg,#246f7c,#67c2b0); box-shadow:inset 2px 2px 4px rgba(255,255,255,.55),inset -2px -2px 4px rgba(0,0,0,.13),0 5px 10px rgba(28,88,82,.15); }
.field-menu-icon .fa-icon { width:15px; height:15px; }
.desktop-user-nav .nav-saved { border-color:rgba(111,146,133,.27); background:linear-gradient(145deg,rgba(255,255,255,.9),rgba(233,241,236,.65)); }
.desktop-user-nav .nav-saved.active,.desktop-user-nav .nav-saved[aria-pressed="true"] { border-color:rgba(155,170,45,.42); color:#33400d; background:linear-gradient(145deg,#f4ff9a,#e6f45a); }
.nav-saved-count { display:inline-grid; min-width:20px; height:20px; place-items:center; padding:0 5px; border-radius:999px; color:var(--ink,#152a27); background:var(--acid,#e6f45a); font-size:10px; font-weight:900; }
.mobile-user-nav,
.mobile-field-sheet,
.magic-widget,
.contact-sheet { display:none; }

.magic-widget { position:fixed; z-index:95; right:max(22px,env(safe-area-inset-right)); bottom:max(22px,env(safe-area-inset-bottom)); display:block; }
.magic-widget.field-sheet-open { visibility:hidden; }
.magic-orb { position:relative; display:grid; width:68px; height:68px; place-items:center; padding:0; overflow:hidden; border:1px solid rgba(255,255,255,.78); border-radius:50%; color:#fff; background:radial-gradient(circle at 27% 21%,rgba(255,255,255,.96) 0 4%,transparent 21%),radial-gradient(ellipse at 37% 77%,rgba(43,229,214,.78),transparent 52%),linear-gradient(145deg,#45d5de 0%,#307ad7 43%,#a148da 73%,#ff8d9b 100%); box-shadow:inset 3px 4px 9px rgba(255,255,255,.68),inset -5px -7px 12px rgba(28,30,108,.36),0 9px 21px rgba(38,74,127,.27); cursor:pointer; isolation:isolate; transition:transform .22s ease; }
.magic-orb:hover { transform:translateY(-2px) scale(1.025); }
.magic-orb::before { position:absolute; z-index:-1; inset:-12%; border:1px solid rgba(255,255,255,.42); border-radius:50%; background:conic-gradient(from 15deg,rgba(255,255,255,.06),rgba(255,255,255,.5),rgba(75,232,225,.12),rgba(255,205,127,.52),rgba(255,255,255,.08)); content:""; animation:magic-orbit 16s linear infinite; }
.magic-orb::after { position:absolute; top:10px; left:16px; width:21px; height:8px; border-radius:50%; background:linear-gradient(90deg,rgba(255,255,255,.9),rgba(255,255,255,.04)); content:""; transform:rotate(-29deg); }
.magic-orb-art { position:absolute; inset:13px; overflow:hidden; border:1px solid rgba(255,255,255,.38); border-radius:50%; background:radial-gradient(ellipse at 60% 31%,rgba(255,255,255,.42),transparent 36%),radial-gradient(ellipse at 36% 78%,rgba(34,246,223,.46),transparent 48%); box-shadow:inset 2px 3px 6px rgba(255,255,255,.33),inset -3px -4px 7px rgba(42,34,120,.24); animation:magic-sway 7s ease-in-out infinite; }
.magic-orb-art::before { position:absolute; right:-18%; bottom:8%; left:-18%; height:42%; border:1px solid rgba(255,255,255,.56); border-radius:50%; background:linear-gradient(180deg,rgba(255,255,255,.38),rgba(255,255,255,0) 65%); content:""; transform:rotate(-17deg); }
.magic-orb-art::after { position:absolute; top:31%; left:28%; width:6px; height:6px; border-radius:50%; background:#fff; content:""; box-shadow:0 0 6px 2px rgba(255,255,255,.68),17px 16px 0 -2px rgba(255,255,255,.8),-8px 22px 0 -2px rgba(255,238,175,.84); }
.magic-orb-glyph { position:relative; z-index:1; display:grid; width:21px; height:21px; place-items:center; border-radius:50%; color:#fff; background:rgba(27,48,105,.38); box-shadow:0 0 12px rgba(255,255,255,.6); }
.magic-orb-glyph .fa-icon { width:12px; height:12px; }
.magic-actions { position:absolute; right:1px; bottom:79px; display:grid; gap:8px; width:max-content; min-width:176px; padding:9px; border:1px solid rgba(255,255,255,.92); border-radius:24px 24px 24px 10px; background:rgba(246,250,248,.91); box-shadow:inset 2px 2px 5px rgba(255,255,255,.9),0 14px 32px rgba(19,46,49,.17); backdrop-filter:blur(16px); }
.magic-actions[hidden] { display:none !important; }
.magic-action { display:flex; align-items:center; gap:11px; width:100%; min-height:49px; padding:7px 13px 7px 8px; border:1px solid rgba(255,255,255,.9); border-radius:999px 999px 999px 15px; color:#18342f; background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(224,239,236,.88)); box-shadow:inset 2px 2px 5px rgba(255,255,255,.95),inset -3px -4px 7px rgba(27,61,59,.09),0 9px 20px rgba(23,50,55,.18); font:750 11px/1.2 "Lexend",sans-serif; text-align:left; cursor:pointer; animation:magic-action-in .24s both; }
.magic-action:nth-child(2) { animation-delay:.035s; }
.magic-action:nth-child(3) { animation-delay:.07s; }
.magic-action:hover { transform:translateX(-3px); background:linear-gradient(145deg,#fff,#edf4cf); }
.magic-action-icon { display:grid; width:34px; height:34px; flex:0 0 auto; place-items:center; border:1px solid rgba(255,255,255,.87); border-radius:50%; color:#fff; background:linear-gradient(145deg,#347da0,#6ac7c0 55%,#9f73df); box-shadow:inset 2px 2px 4px rgba(255,255,255,.62),inset -2px -2px 4px rgba(20,43,87,.2),0 4px 9px rgba(31,72,98,.17); }
.magic-action-icon .fa-icon { width:15px; height:15px; }
.magic-action-icon img { display:block; width:23px; height:23px; object-fit:contain; filter:drop-shadow(0 2px 3px rgba(22,44,69,.17)); }
.magic-action-top .fa-icon { transform:rotate(-90deg); }

.contact-sheet { position:fixed; z-index:110; inset:0; place-items:center; padding:20px; background:rgba(16,36,41,.34); backdrop-filter:blur(8px); }
.contact-sheet.open { display:grid; }
.contact-card { position:relative; width:min(360px,100%); padding:27px 25px 24px; border:1px solid rgba(255,255,255,.9); border-radius:29px 29px 29px 12px; background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(227,241,237,.92)); box-shadow:inset 3px 3px 8px #fff,0 24px 70px rgba(14,35,41,.27); text-align:center; }
.contact-card h2 { margin:0 0 8px; color:#17362f; font:800 22px/1.2 "Lexend",sans-serif; letter-spacing:-.04em; }
.contact-card p { margin:0; color:#61756e; font-size:12px; line-height:1.55; }
.contact-brand-placeholder { display:grid; width:112px; height:112px; place-items:center; margin:14px auto 18px; border:1px solid rgba(255,255,255,.9); border-radius:28px; background:linear-gradient(145deg,#fff,#eaf1ef); box-shadow:inset 3px 3px 8px #fff,0 12px 23px rgba(27,61,56,.12); }
.contact-brand-placeholder img { width:76px; height:76px; object-fit:contain; }
.contact-close { position:absolute; top:12px; right:12px; display:grid; width:34px; height:34px; place-items:center; border:1px solid rgba(139,164,153,.3); border-radius:50%; color:#405950; background:rgba(255,255,255,.83); cursor:pointer; }
.contact-close-icon { width:13px; height:13px; transform:rotate(45deg); }

@keyframes magic-orbit { to { transform:rotate(360deg); } }
@keyframes magic-sway { 0%,100% { transform:translateY(1px) rotate(-4deg) scale(.97); } 50% { transform:translateY(-1px) rotate(4deg) scale(1.02); } }
@keyframes magic-action-in { from { opacity:0; transform:translateY(8px) scale(.96); } to { opacity:1; transform:translateY(0) scale(1); } }

@media (max-width: 900px) {
  .topbar { gap:12px; }
  .desktop-user-nav { gap:1px; }
  .desktop-user-nav > a,.desktop-user-nav > button,.desktop-user-nav summary { padding-right:9px; padding-left:9px; font-size:11px; }
  .desktop-user-nav .nav-link,.desktop-user-nav summary,.desktop-user-nav .nav-saved { gap:5px; }
  .topbar .brand { font-size:15px; }
  .topbar .brand .site-logo { width:36px; height:36px; }
}
@media (max-width: 760px) {
  body { padding-bottom:calc(74px + env(safe-area-inset-bottom)); }
  .topbar .desktop-user-nav { display:none; }
  .topbar { position:relative; top:auto; z-index:auto; gap:10px; padding:14px 0 13px; border:0; border-radius:0; background:transparent; box-shadow:none; backdrop-filter:none; }
  .topbar .nav-actions { margin-left:auto; }
  .mobile-user-nav { position:fixed; z-index:75; right:0; bottom:0; left:0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:2px; padding:8px 9px calc(8px + env(safe-area-inset-bottom)); border-top:1px solid rgba(178,198,189,.46); background:rgba(249,251,248,.9); box-shadow:0 -8px 26px rgba(28,54,52,.1),inset 0 1px 0 rgba(255,255,255,.9); backdrop-filter:blur(20px) saturate(1.3); }
.mobile-user-nav button,.mobile-user-nav a { display:grid; align-content:center; justify-items:center; gap:4px; min-width:0; min-height:49px; padding:5px 2px; border:0; border-radius:15px; color:#61746e; background:transparent; font:700 10px/1.1 "Lexend",sans-serif; text-decoration:none; cursor:pointer; }
.mobile-user-nav button[aria-current="page"],.mobile-user-nav a[aria-current="page"],.mobile-user-nav button[aria-pressed="true"],.mobile-user-nav button:active,.mobile-user-nav a:active { color:#173a34; background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(223,241,234,.7)); box-shadow:inset 2px 2px 4px rgba(255,255,255,.95),0 4px 10px rgba(29,67,56,.08); }
  .mobile-user-nav .fa-icon { width:18px; height:18px; }
  .mobile-field-sheet { position:fixed; z-index:78; right:12px; bottom:calc(75px + env(safe-area-inset-bottom)); left:12px; display:none; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px; max-height:min(64vh,510px); overflow:auto; padding:15px; border:1px solid rgba(255,255,255,.93); border-radius:25px 25px 25px 10px; background:rgba(250,252,249,.97); box-shadow:0 22px 55px rgba(18,43,37,.2),inset 2px 2px 7px white; backdrop-filter:blur(20px); }
  .mobile-field-sheet.open { display:grid; }
  .mobile-field-sheet h2 { grid-column:1/-1; margin:0 0 5px; padding:2px 4px 7px; color:#17362f; font:800 17px/1.2 "Lexend",sans-serif; letter-spacing:-.03em; }
  .mobile-field-sheet a { align-items:flex-start; padding:9px 6px; font-size:10px; }
  .mobile-field-sheet .field-menu-icon { width:28px; height:28px; border-radius:10px; }
  .mobile-field-sheet .field-menu-icon .fa-icon { width:14px; height:14px; }
  .magic-widget { right:15px; bottom:calc(86px + env(safe-area-inset-bottom)); }
  .magic-orb { width:61px; height:61px; }
  .magic-orb-art { inset:12px; }
  .magic-actions { bottom:71px; min-width:166px; }
  .magic-action { min-height:45px; font-size:10px; }
  .magic-action-icon { width:31px; height:31px; }
}
@media (max-width: 370px) {
  .mobile-field-sheet { grid-template-columns:1fr; }
  .mobile-field-sheet h2 { grid-column:1; }
  .mobile-user-nav button { font-size:9px; }
  .mobile-user-nav a { font-size:9px; }
}
@media (prefers-reduced-motion: reduce) {
  .magic-orb::before,.magic-orb-art,.magic-action { animation:none !important; }
  .magic-orb,.magic-action { transition:none !important; }
}
