/* ============================================================================
   Bondi — design system
   Editorial, map-first, dark/light. Brand: the Portuguese flag's green runs
   the interface and its red is the second colour (the mark's other half, the
   "i" of the wordmark, weekends, Bondi points). Colours are solid: no
   gradients, except the dark shade that keeps white titles readable on photos.
   Amber survives only as the semantic warning/pending colour.
   ========================================================================== */

/* ---- reset ---------------------------------------------------------------- */
*,*::before,*::after{box-sizing:border-box}
html,body{margin:0;padding:0}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{min-height:100dvh;overflow:hidden}
img,svg{display:block;max-width:100%}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer;background:none;border:none;padding:0}
a{color:inherit;text-decoration:none}
ul,ol{margin:0;padding:0;list-style:none}
:focus{outline:none}
:focus-visible{outline:2.5px solid var(--ring);outline-offset:2px;border-radius:6px}
::selection{background:var(--sel)}

/* ---- tokens: light (default) --------------------------------------------- */
:root{
  --bg:#f3f1ea; --bg-2:#e9e5db;
  --surface:#fffdf8; --surface-2:#f6f2e9; --surface-3:#eee8db;
  --glass:rgba(255,253,248,.82); --glass-2:rgba(255,253,248,.94);
  --text:#191b21; --text-2:#4e5462; --text-3:#858c9c;
  --border:rgba(26,28,34,.10); --border-2:rgba(26,28,34,.17);
  /* brand: the flag's green runs the interface (white on it is 5.6:1); its red
     is the second colour; amber is semantic only (pending/warn) */
  --accent:#0f7a45; --accent-ink:#0b5e35; --accent-soft:#dff1e6; --accent-line:rgba(15,122,69,.45);
  --on-accent:#ffffff;
  --like:#d32f24; --like-soft:#fbe3e0;
  --warn:#8f6210; --warn-soft:#fbeecb; --warn-line:rgba(183,121,31,.5);
  --blue:#1b4dff; --blue-ink:#183fd0; --blue-soft:#e6ebff;
  --ring:rgba(27,77,255,.5);
  --sel:rgba(15,122,69,.24);
  --danger:#d1372f; --danger-soft:#fbe5e3; --good:#188a4c; --good-soft:#e0f3e7;
  --shadow-1:0 1px 2px rgba(40,33,15,.06), 0 3px 10px rgba(40,33,15,.06);
  --shadow-2:0 6px 22px rgba(40,33,15,.13), 0 2px 6px rgba(40,33,15,.08);
  --shadow-3:0 18px 50px rgba(30,25,12,.20), 0 4px 14px rgba(30,25,12,.10);
  --map-scrim:rgba(243,241,234,0);
  /* brand mark — one solid marker split green | red. On paper the green half
     is the deep one and the red the brighter, so the split reads in greyscale;
     the crease is a hairline fold on the axis. */
  --mkG:#0b6238; --mkR:#dd4436;
  --mkSeam:rgba(0,0,0,.4); --mkSeamHi:rgba(255,255,255,.4);
  /* wordmark: "Bond" in the flag's green, the "i" in its red, both solid */
  --wm-g-flat:#0b6238; --wm-r-flat:#cf3225;
  color-scheme:light;
}
[data-theme="dark"]{
  --bg:#080a0f; --bg-2:#0d1017;
  --surface:#14171f; --surface-2:#1b1f2a; --surface-3:#242a3a;
  --glass:rgba(17,20,28,.78); --glass-2:rgba(20,23,32,.94);
  --text:#f1f3f9; --text-2:#adb5c5; --text-3:#717a8d;
  --border:rgba(255,255,255,.085); --border-2:rgba(255,255,255,.16);
  --accent:#3ec27a; --accent-ink:#5fd692; --accent-soft:rgba(62,194,122,.14); --accent-line:rgba(62,194,122,.45);
  --on-accent:#06281a;
  --like:#ff5c47; --like-soft:rgba(255,92,71,.16);
  --warn:#e5a53a; --warn-soft:rgba(229,165,58,.14); --warn-line:rgba(229,165,58,.45);
  --blue:#5175ff; --blue-ink:#8aa1ff; --blue-soft:rgba(45,91,255,.18);
  --ring:rgba(129,158,255,.65);
  --sel:rgba(62,194,122,.32);
  --danger:#ff6259; --danger-soft:rgba(214,55,47,.16); --good:#37c079; --good-soft:rgba(24,138,76,.18);
  --shadow-1:0 1px 2px rgba(0,0,0,.4);
  --shadow-2:0 8px 26px rgba(0,0,0,.5);
  --shadow-3:0 22px 60px rgba(0,0,0,.62), 0 6px 18px rgba(0,0,0,.5);
  --map-scrim:rgba(8,10,15,0);
  /* on a dark ground the value step flips: the green half lifts to mint, the
     red stays the deeper piece — the division holds in greyscale either way */
  --mkG:#4fcf86; --mkR:#d93a26;
  --mkSeam:rgba(0,0,0,.5); --mkSeamHi:rgba(255,255,255,.4);
  --wm-g-flat:#3ec27a; --wm-r-flat:#f0513c;
  color-scheme:dark;
}

/* ---- type ----------------------------------------------------------------- */
:root{
  --font-ui:"Inter","Helvetica Neue","PingFang SC","Microsoft YaHei",system-ui,sans-serif;
  --font-display:"Inter","Helvetica Neue","PingFang SC","Microsoft YaHei",system-ui,sans-serif;
}
body{
  font-family:var(--font-ui);
  background:var(--bg); color:var(--text);
  font-weight:450; line-height:1.45;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
  font-feature-settings:"cv11","ss01";
}
h1,h2,h3,h4{font-family:var(--font-display);font-weight:700;line-height:1.12;letter-spacing:-.022em;margin:0;font-optical-sizing:auto}
.display{font-family:var(--font-display);letter-spacing:-.025em;font-weight:800}
.eyebrow{font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--text-3)}
.muted{color:var(--text-2)} .dim{color:var(--text-3)}

/* ---- app shell ------------------------------------------------------------ */
#app{height:100dvh;width:100%;position:relative}
.boot{position:fixed;inset:0;display:grid;place-content:center;justify-items:center;gap:13px;background:var(--bg);z-index:2000;transition:opacity .5s}
.boot.hide{opacity:0;pointer-events:none}
/* two-tone wordmark — "Bond" in the flag's green, the i in its red */
.wm,.boot-word{color:var(--wm-g-flat)}
.wm span,.boot-word span{color:var(--wm-r-flat)}
/* the waypoint settles like a compass needle: swing about its tip */
.boot-mark{transform-origin:50% 91%;animation:bootswing 1.5s ease-in-out infinite alternate}
@keyframes bootswing{from{transform:rotate(-10deg)}to{transform:rotate(10deg)}}
.boot-word{font-family:var(--font-display);font-weight:800;font-size:26px;letter-spacing:-.02em}

.shell{display:flex;height:100dvh;width:100%;position:relative}

/* ---- document-scroll mode (landing + signed-in home) ----------------------
   These routes are normal scrolling pages: the document scrolls, nothing is
   frozen to the viewport except the nav rail (desktop) / tab bar (mobile). */
body.page-scroll{overflow-y:auto;overflow-x:hidden}
body.page-scroll #app,body.page-scroll .shell{height:auto;min-height:100dvh}
body.page-scroll .stage{overflow:visible}
body.page-scroll #map{display:none}
body.page-scroll #overlay{position:static}
body.page-scroll #overlay.on{display:block}
body.page-scroll .landing,body.page-scroll .home{min-height:100dvh}
@media (min-width:901px){
  body.page-scroll #rail{position:sticky;top:0;height:100dvh;align-self:flex-start}
}

/* nav rail (desktop) */
#rail{width:74px;flex:0 0 74px;background:var(--bg-2);border-right:1px solid var(--border);
  display:flex;flex-direction:column;align-items:center;padding:14px 0 12px;gap:4px;z-index:60;position:relative}
.rail-brand{width:44px;height:44px;display:grid;place-content:center;margin-bottom:10px;border-radius:14px}
.rail-brand svg{width:34px;height:34px}
.rail-nav{display:flex;flex-direction:column;gap:3px;width:100%;align-items:center;flex:1}
.rail-btn{width:52px;height:48px;border-radius:15px;display:grid;place-content:center;color:var(--text-2);
  position:relative;transition:background .18s,color .18s,transform .18s}
.rail-btn svg{width:23px;height:23px}
.rail-btn:hover{background:var(--surface-2);color:var(--text)}
.rail-btn.on{color:var(--text);background:var(--surface)}
.rail-btn.on::before{content:"";position:absolute;left:-13px;top:50%;transform:translateY(-50%);width:4px;height:22px;border-radius:0 4px 4px 0;background:var(--accent)}
.rail-btn .badge{position:absolute;top:6px;right:8px;min-width:16px;height:16px;padding:0 4px;border-radius:9px;background:var(--accent);color:var(--on-accent);font-size:10px;font-weight:700;display:grid;place-content:center;line-height:1}
.rail-spacer{flex:1}
.rail-foot{display:flex;flex-direction:column;gap:3px;align-items:center;width:100%}
.rail-avatar{width:40px;height:40px;border-radius:50%;overflow:hidden;border:2px solid var(--border-2);background:var(--surface-2);display:grid;place-content:center;font-weight:700;color:var(--text-2);font-size:15px}
.rail-avatar img{width:100%;height:100%;object-fit:cover}

/* stage + map */
.stage{flex:1;position:relative;overflow:hidden}
#map{position:absolute;inset:0;z-index:0;background:var(--bg-2)}
.leaflet-container{background:var(--bg-2);font-family:var(--font-ui)}
.leaflet-control-zoom{border:none!important;box-shadow:var(--shadow-2)!important;margin:16px!important}
.leaflet-bar a{background:var(--glass-2)!important;color:var(--text)!important;border-color:var(--border)!important;
  backdrop-filter:blur(10px);width:34px!important;height:34px!important;line-height:34px!important;font-size:19px!important}
.leaflet-bar a:first-child{border-radius:11px 11px 0 0!important}
.leaflet-bar a:last-child{border-radius:0 0 11px 11px!important}
.leaflet-bar a:hover{background:var(--surface)!important;color:var(--accent)!important}
.leaflet-control-attribution{background:var(--glass)!important;color:var(--text-3)!important;font-size:10px!important;
  backdrop-filter:blur(8px);border-radius:8px 0 0 0;padding:2px 7px!important}
.leaflet-control-attribution a{color:var(--text-2)!important}
.leaflet-tile-pane{filter:saturate(.82) brightness(1.02) contrast(.96)}
[data-theme="dark"] .leaflet-tile-pane{filter:invert(1) hue-rotate(180deg) brightness(.9) contrast(.88) saturate(.8)}
/* While the map is in motion the stage carries .map-live: tile polish drops to
   its cheapest form and the glass blurs over the map pause, because a filter or
   backdrop-filter across a transforming full-screen layer is repaid on every
   frame of a pan or pinch. Restored on settle; --glass-2 is ~94% opaque, so the
   pause is visually a non-event. Measured on a 4x-throttled phone profile:
   pan p95 33ms -> 17ms, dropped zoom frames roughly halved. */
#stage.map-live .leaflet-tile-pane{filter:none}
[data-theme="dark"] #stage.map-live .leaflet-tile-pane{filter:invert(1) hue-rotate(180deg)}
#stage.map-live .searchbar,#stage.map-live .icon-btn,#stage.map-live .sheet,
#stage.map-live .leaflet-bar a,#stage.map-live .leaflet-control-attribution{backdrop-filter:none}

/* ---- markers -------------------------------------------------------------- */
.mk{--mc:#888;position:relative;transition:transform .18s cubic-bezier(.34,1.4,.5,1)}
.mk-pin{width:32px;height:32px;border-radius:50% 50% 50% 4px;background:var(--mc);transform:rotate(45deg);
  box-shadow:0 3px 8px rgba(0,0,0,.35),0 0 0 3px var(--surface);display:grid;place-content:center}
.mk-pin svg{width:17px;height:17px;transform:rotate(-45deg);color:#fff}
.mk-dot{position:absolute;inset:0;display:grid;place-content:center}
.mk:hover{transform:translateY(-3px) scale(1.08);z-index:1000}
.mk.sel{transform:translateY(-4px) scale(1.18);z-index:1200}
.mk.sel .mk-pin{box-shadow:0 6px 16px rgba(0,0,0,.45),0 0 0 3px var(--surface),0 0 0 6px var(--accent)}
.mk-fav{position:absolute;top:-4px;right:-5px;width:15px;height:15px;border-radius:50%;background:var(--like);
  display:grid;place-content:center;box-shadow:0 0 0 2px var(--surface);transform:rotate(0)}
.mk-fav svg{width:9px;height:9px;color:#fff}
.cluster{--mc:#1b4dff;width:44px;height:44px;border-radius:50%;
  background:var(--mc);
  color:#fff;display:grid;place-content:center;font-weight:700;font-size:14px;font-family:var(--font-ui);
  box-shadow:0 4px 14px rgba(0,0,0,.4),0 0 0 3px var(--surface),0 0 0 7px color-mix(in srgb,var(--mc) 30%,transparent);
  transition:transform .18s}
.cluster:hover{transform:scale(1.08)}
.cluster small{font-size:9px;opacity:.85;font-weight:600;margin-top:-2px}
.leaflet-marker-icon.mkwrap{background:none;border:none}

/* ---- search dock ---------------------------------------------------------- */
.search-dock{position:absolute;top:16px;left:50%;transform:translateX(-50%);z-index:40;
  width:min(560px,calc(100% - 32px));display:flex;gap:10px;align-items:center}
.searchbar{flex:1;display:flex;align-items:center;gap:10px;height:52px;padding:0 8px 0 16px;
  background:var(--glass-2);backdrop-filter:blur(18px) saturate(1.4);border:1px solid var(--border);
  border-radius:16px;box-shadow:var(--shadow-2)}
.searchbar>svg{width:20px;height:20px;color:var(--text-3);flex:0 0 auto}
.searchbar input{flex:1;border:none;background:none;font-size:15px;font-weight:500;min-width:0}
.searchbar input::placeholder{color:var(--text-3);font-weight:450}
.pill-btn{height:38px;padding:0 14px;border-radius:12px;background:var(--surface-2);color:var(--text);
  display:inline-flex;align-items:center;gap:7px;font-weight:600;font-size:13.5px;white-space:nowrap;
  transition:background .16s,transform .12s;border:1px solid transparent}
.pill-btn svg{width:17px;height:17px}
.pill-btn:hover{background:var(--surface-3)}
.pill-btn:active{transform:scale(.97)}
.pill-btn.accent{background:var(--accent);color:var(--on-accent);border-color:transparent}
.pill-btn.accent:hover{background:color-mix(in srgb,var(--accent) 88%,#000)}
.pill-btn.has{background:var(--blue);color:#fff}
.pill-btn.ghost{background:transparent;border-color:var(--border-2)}
.pill-btn .cnt{background:rgba(0,0,0,.18);border-radius:8px;padding:0 6px;font-size:11px;min-width:18px;text-align:center}
[data-theme="dark"] .pill-btn.has .cnt{background:rgba(0,0,0,.3)}
.icon-btn{width:52px;height:52px;flex:0 0 auto;border-radius:15px;display:grid;place-content:center;
  background:var(--glass-2);backdrop-filter:blur(18px);border:1px solid var(--border);box-shadow:var(--shadow-2);
  color:var(--text);transition:background .16s,transform .12s;position:relative}
.icon-btn svg{width:21px;height:21px}
.icon-btn:hover{background:var(--surface)}
.icon-btn:active{transform:scale(.95)}
.icon-btn.sm{width:40px;height:40px;border-radius:12px;box-shadow:none}
.icon-btn.sm svg{width:19px;height:19px}
.dock-actions{display:flex;gap:8px}

/* ---- results panel (desktop right) --------------------------------------- */
#results{position:absolute;top:0;right:0;bottom:0;width:404px;z-index:30;display:flex;flex-direction:column;
  padding:16px 16px 16px 0;pointer-events:none;transition:transform .34s cubic-bezier(.4,0,.15,1)}
#results.collapsed{transform:translateX(calc(100% - 0px))}
.panel{pointer-events:auto;flex:1;display:flex;flex-direction:column;min-height:0;
  background:var(--glass-2);backdrop-filter:blur(22px) saturate(1.3);border:1px solid var(--border);
  border-radius:22px;box-shadow:var(--shadow-3);overflow:hidden;margin-top:76px}
.panel-head{padding:16px 18px 10px;border-bottom:1px solid var(--border);flex:0 0 auto}
.seg{display:flex;gap:4px;background:var(--surface-2);border-radius:12px;padding:4px}
.seg button{flex:1;height:34px;border-radius:9px;font-weight:600;font-size:13.5px;color:var(--text-2);transition:.15s}
.seg button.on{background:var(--surface);color:var(--text);box-shadow:var(--shadow-1)}
.panel-sub{display:flex;align-items:center;justify-content:space-between;margin-top:12px;gap:10px}
.result-count{font-size:13px;font-weight:600;color:var(--text-2)}
.result-count b{color:var(--text);font-weight:700}
.sortsel{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:600;color:var(--text-2);
  background:var(--surface-2);border-radius:9px;padding:6px 8px 6px 10px}
.sortsel select{border:none;background:none;font-weight:600;font-size:12.5px;color:var(--text);cursor:pointer;padding-right:2px}
.panel-body{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:12px}
.panel-foot{flex:0 0 auto;padding:10px 14px;border-top:1px solid var(--border);display:flex;gap:8px;align-items:center;justify-content:space-between}
.panel-foot .exp{display:flex;gap:6px}

/* scrollbars */
.panel-body::-webkit-scrollbar,.sheet-body::-webkit-scrollbar,.ov-body::-webkit-scrollbar,.modal::-webkit-scrollbar{width:10px}
.panel-body::-webkit-scrollbar-thumb,.sheet-body::-webkit-scrollbar-thumb,.ov-body::-webkit-scrollbar-thumb,.modal::-webkit-scrollbar-thumb{background:var(--border-2);border-radius:6px;border:3px solid transparent;background-clip:padding-box}
.panel-body::-webkit-scrollbar-thumb:hover{background:var(--text-3);background-clip:padding-box;border:3px solid transparent}

/* ---- event cards ---------------------------------------------------------- */
.ev-card{--c:#888;display:grid;grid-template-columns:96px 1fr;grid-template-rows:1fr auto;gap:0;border-radius:18px;overflow:hidden;
  background:var(--surface);border:1px solid var(--border);margin-bottom:10px;cursor:pointer;
  transition:transform .18s cubic-bezier(.22,.6,.2,1),box-shadow .18s,border-color .18s;position:relative}
.ev-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-2);border-color:var(--border-2)}
.ev-card:active{transform:translateY(0) scale(.985)}
.ev-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 38%;z-index:1}
.ev-card .pcredit{grid-column:2;font-size:9.5px;line-height:1.3;color:var(--text-3);padding:0 12px 6px 13px;margin-top:-3px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.ev-card.img-err .pcredit{display:none}
.ev-card.sel{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent),var(--shadow-2)}
.ev-thumb{position:relative;grid-row:1/-1;background:var(--c);
  display:grid;place-content:center;overflow:hidden}
.ev-thumb::after{content:none}
.ev-thumb .glyph{width:40px;height:40px;color:rgba(255,255,255,.95);position:relative;z-index:1;filter:drop-shadow(0 1px 3px rgba(0,0,0,.3))}
.ev-thumb .glyph svg{width:100%;height:100%}
.ev-thumb .daychip{position:absolute;top:7px;left:7px;z-index:2;background:rgba(0,0,0,.36);backdrop-filter:blur(4px);
  color:#fff;border-radius:9px;padding:3px 6px;text-align:center;line-height:1;min-width:34px}
.ev-thumb .daychip .d{font-weight:800;font-size:15px;font-family:var(--font-display)}
.ev-thumb .daychip .m{font-size:9px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;opacity:.92;margin-top:2px}
.ev-main{padding:11px 36px 11px 13px;min-width:0;display:flex;flex-direction:column;gap:5px;justify-content:center}
.ev-cat{font-size:10.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--c-ink,var(--text-3))}
.ev-name{font-family:var(--font-display);font-weight:700;font-size:15.5px;line-height:1.15;letter-spacing:-.01em;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ev-meta{display:flex;align-items:center;gap:5px;color:var(--text-2);font-size:12.5px;font-weight:500;min-width:0}
.ev-meta svg{width:13px;height:13px;flex:0 0 auto;color:var(--text-3)}
.ev-meta .txt{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ev-tags{display:flex;gap:5px;flex-wrap:wrap;margin-top:1px}
.tag{font-size:11px;font-weight:600;padding:2px 7px;border-radius:7px;background:var(--surface-2);color:var(--text-2);white-space:nowrap}
.tag.free{background:var(--good-soft);color:var(--good)}
.tag.accent{background:var(--accent-soft);color:var(--accent-ink)}
.tag.warn{background:var(--warn-soft);color:var(--warn)}
.tag.soon{background:var(--blue-soft);color:var(--blue-ink);white-space:normal;line-height:1.35}
.ev-fav{position:absolute;top:8px;right:8px;width:30px;height:30px;border-radius:50%;display:grid;place-content:center;
  background:var(--glass-2);color:var(--text-2);opacity:0;transition:.15s;z-index:3}
.ev-card:hover .ev-fav,.ev-card:focus-within .ev-fav,.ev-fav.on{opacity:1}
@media (hover:none){.ev-fav{opacity:1}}
.ev-fav.on{color:var(--like)}
.ev-fav svg{width:16px;height:16px}
.ev-fav.pulse svg{animation:favpop .45s cubic-bezier(.34,1.56,.64,1)}
@keyframes favpop{0%{transform:scale(.5)}55%{transform:scale(1.3)}100%{transform:scale(1)}}

/* big editorial card (discover) */
.ev-wide{grid-template-columns:1fr;position:relative}
.ev-wide .ev-thumb{aspect-ratio:16/9;min-height:120px}
.ev-wide .ev-thumb .glyph{width:52px;height:52px}
.ev-wide .ev-main{padding:12px 14px 13px}
.ev-wide .ev-name{font-size:17px;-webkit-line-clamp:2}
.ev-wide .ev-over{position:absolute;left:0;right:0;bottom:0;padding:14px;background:rgba(0,0,0,.55);z-index:2}

/* discover section */
.disco-sec{margin-bottom:20px}
.disco-head{display:flex;align-items:baseline;justify-content:space-between;margin:2px 4px 10px}
.disco-head h3{font-size:17px}
.disco-head .lede{font-size:12px;color:var(--text-3);font-weight:500}
.hscroll{display:flex;gap:11px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;
  padding:2px 4px 8px;margin:0 -4px;scrollbar-width:none}
.hscroll::-webkit-scrollbar{display:none}
.hcard{flex:0 0 208px;scroll-snap-align:start}
.hcard .ev-thumb{aspect-ratio:4/3}

/* ---- empty / skeleton ----------------------------------------------------- */
.empty{display:grid;place-items:center;text-align:center;gap:10px;padding:44px 24px;color:var(--text-3)}
.empty svg{width:38px;height:38px;color:var(--text-3);opacity:.7}
.empty h4{font-size:16px;color:var(--text-2)}
.empty p{font-size:13px;max-width:240px}
.skel{position:relative;overflow:hidden;background:var(--surface-2);border-radius:12px;animation:skpulse 1.2s ease-in-out infinite}
@keyframes skpulse{50%{background:var(--surface-3)}}

/* ---- mobile bottom sheet -------------------------------------------------- */
.sheet{position:absolute;left:0;right:0;bottom:0;z-index:35;background:var(--glass-2);backdrop-filter:blur(22px);
  border-radius:22px 22px 0 0;box-shadow:var(--shadow-3);border-top:1px solid var(--border);
  display:none;flex-direction:column;will-change:transform;
  transition:transform .3s cubic-bezier(.32,.72,.28,1.06)}
/* touch-action stays off only where the sheet owns the gesture outright; the
   body must keep native scrolling (and its inner rails horizontal panning) */
.sheet-grip,.sheet-head{touch-action:none}
.sheet-grip{padding:8px 0 4px;display:grid;place-items:center;flex:0 0 auto;cursor:grab}
.sheet-grip::before{content:"";width:38px;height:5px;border-radius:3px;background:var(--border-2)}
.sheet-head{padding:2px 16px 10px;flex:0 0 auto}
.sheet-body{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:4px 12px 90px;-webkit-overflow-scrolling:touch}
.sheet.dragging{transition:none!important}

/* ---- overlay views (calendar / social / account / org / admin) ----------- */
#overlay{position:absolute;inset:0;z-index:70;display:none;flex-direction:column;
  background:var(--bg);overflow-y:auto}
#overlay.on{display:flex}
.ov-top{flex:0 0 auto;height:60px;display:flex;align-items:center;gap:12px;padding:0 20px;border-bottom:1px solid var(--border);
  background:var(--glass-2);backdrop-filter:blur(12px);position:relative;z-index:2}
.ov-top h1{font-size:20px;letter-spacing:-.02em}
.ov-top .sub{font-size:12.5px;color:var(--text-3);font-weight:500}
.ov-body{flex:1;overflow-y:auto;overscroll-behavior:contain}
.ov-wrap{max-width:1080px;margin:0 auto;padding:26px 26px 60px;width:100%}
.ov-back{width:40px;height:40px;border-radius:12px;display:grid;place-content:center;color:var(--text);background:var(--surface-2)}
.ov-back:hover{background:var(--surface-3)}
.ov-back svg{width:20px;height:20px}

/* ---- generic UI ----------------------------------------------------------- */
.btn{height:44px;padding:0 18px;border-radius:13px;display:inline-flex;align-items:center;justify-content:center;gap:8px;
  font-weight:600;font-size:14.5px;background:var(--surface-2);color:var(--text);transition:.15s;border:1px solid transparent}
.btn svg{width:18px;height:18px}
.btn:hover{background:var(--surface-3)}
.btn:active{transform:scale(.98)}
.btn.primary{background:var(--accent);color:var(--on-accent)}
.btn.primary:hover{background:color-mix(in srgb,var(--accent) 88%,#000)}
.btn.blue{background:var(--blue);color:#fff}
.btn.blue:hover{background:color-mix(in srgb,var(--blue) 88%,#000)}
.btn.ghost{background:transparent;border-color:var(--border-2)}
.btn.ghost:hover{background:var(--surface-2)}
.btn.danger{background:var(--danger-soft);color:var(--danger)}
.btn.sm{height:36px;padding:0 13px;font-size:13px;border-radius:10px}
.btn.block{width:100%}
.btn.lg{height:52px;font-size:15.5px;padding:0 24px}
.btn[disabled]{opacity:.5;pointer-events:none}

.field{display:flex;flex-direction:column;gap:6px;margin-bottom:14px}
.field label{font-size:12.5px;font-weight:600;color:var(--text-2)}
.input,textarea.input,select.input{height:46px;border-radius:12px;border:1px solid var(--border-2);background:var(--surface);
  padding:0 14px;font-size:15px;width:100%;transition:border-color .15s,box-shadow .15s}
textarea.input{height:auto;padding:12px 14px;resize:vertical;min-height:88px;line-height:1.5}
.input:focus,textarea.input:focus,select.input:focus{border-color:var(--blue);box-shadow:0 0 0 3px var(--blue-soft)}
.input::placeholder{color:var(--text-3)}
select.input{cursor:pointer;appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 12px center;padding-right:38px}
.row{display:flex;gap:12px}.row>*{flex:1;min-width:0}
.hint{font-size:12px;color:var(--text-3)}
.formcard{background:var(--surface);border:1px solid var(--border);border-radius:20px;padding:22px;box-shadow:var(--shadow-1)}

/* chips */
.chip{display:inline-flex;align-items:center;gap:7px;height:38px;padding:0 14px;border-radius:11px;
  background:var(--surface-2);border:1.5px solid transparent;font-weight:600;font-size:13.5px;color:var(--text-2);transition:.15s;cursor:pointer;white-space:nowrap}
.chip svg{width:16px;height:16px}
.chip .dotc{width:9px;height:9px;border-radius:50%;flex:0 0 auto}
.chip:hover{background:var(--surface-3);color:var(--text)}
.chip:active{transform:scale(.96)}
.chip-n{font-size:10.5px;font-weight:800;background:color-mix(in srgb,currentColor 14%,transparent);border-radius:7px;padding:2px 6px;min-width:20px;text-align:center}
.chip.on{background:var(--surface);color:var(--text);border-color:currentColor;box-shadow:var(--shadow-1)}
.chip.on .dotc{box-shadow:0 0 0 2px color-mix(in srgb,currentColor 24%,transparent)}
.chip-row{display:flex;gap:8px;flex-wrap:wrap}
.chip-scroll{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px;scrollbar-width:none}
.chip-scroll::-webkit-scrollbar{display:none}

/* ---- modal / filter sheet ------------------------------------------------- */
.scrim{position:fixed;inset:0;z-index:90;background:rgba(8,8,12,.5);backdrop-filter:blur(3px);
  display:none;opacity:0;transition:opacity .25s}
.scrim.on{display:block;opacity:1}
.modal-wrap{position:fixed;inset:0;z-index:95;display:none;align-items:center;justify-content:center;padding:20px;pointer-events:none}
.modal-wrap.on{display:flex}
.modal{pointer-events:auto;width:min(460px,100%);max-height:88dvh;overflow-y:auto;background:var(--surface);
  border:1px solid var(--border);border-radius:22px;box-shadow:var(--shadow-3);
  transform:translateY(14px) scale(.98);opacity:0;transition:.28s cubic-bezier(.3,0,.1,1)}
.modal-wrap.on .modal{transform:none;opacity:1}
.modal.wide{width:min(560px,100%)}
.modal-head{display:flex;align-items:center;justify-content:space-between;padding:20px 22px 6px}
.modal-head h2{font-size:22px}
.modal-body{padding:14px 22px 22px}
.modal-foot{padding:14px 22px 20px;display:flex;gap:10px;position:sticky;bottom:0;background:var(--surface);border-top:1px solid var(--border)}

/* filter sheet slides from side (desktop) / bottom (mobile) */
.filters{position:fixed;top:0;right:0;bottom:0;width:min(400px,100%);z-index:96;background:var(--surface);
  border-left:1px solid var(--border);box-shadow:var(--shadow-3);display:flex;flex-direction:column;
  transform:translateX(100%);transition:transform .32s cubic-bezier(.35,0,.1,1)}
.filters.on{transform:none}
.filters-head{flex:0 0 auto;padding:18px 20px 12px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between}
.filters-body{flex:1;overflow-y:auto;padding:18px 20px 24px}
.filters-foot{flex:0 0 auto;padding:14px 20px;border-top:1px solid var(--border);display:flex;gap:10px}
.fgroup{margin-bottom:22px}
.fgroup>.lab{font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--text-3);margin-bottom:11px;display:block}
.seg2{display:flex;background:var(--surface-2);border-radius:12px;padding:4px;gap:4px}
.seg2 button{flex:1;height:38px;border-radius:9px;font-weight:600;font-size:13.5px;color:var(--text-2)}
.seg2 button.on{background:var(--surface);color:var(--text);box-shadow:var(--shadow-1)}
.rangeval{display:flex;justify-content:space-between;font-size:13px;font-weight:600;color:var(--text-2);margin-bottom:6px}
input[type=range]{width:100%;-webkit-appearance:none;appearance:none;height:6px;border-radius:4px;background:var(--surface-3);outline:none}
input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:22px;height:22px;border-radius:50%;background:var(--accent);border:3px solid var(--surface);box-shadow:var(--shadow-1);cursor:pointer}
input[type=range]::-moz-range-thumb{width:22px;height:22px;border-radius:50%;background:var(--accent);border:3px solid var(--surface);cursor:pointer}

/* ---- event detail --------------------------------------------------------- */
.detail{position:absolute;top:0;left:0;bottom:0;width:min(460px,calc(100% - 440px));z-index:45;
  padding:16px 0 16px 16px;pointer-events:none;
  transition:transform .34s cubic-bezier(.35,0,.12,1),opacity .3s,width .38s cubic-bezier(.3,0,.15,1)}
.detail.expanded{z-index:60}
@media (min-width:901px){ .detail.expanded{width:min(940px,calc(100% - 440px))} }
.detail.hidden{transform:translateX(-30px);opacity:0;pointer-events:none}
.detail-card{pointer-events:auto;height:100%;display:flex;flex-direction:column;background:var(--surface);
  border:1px solid var(--border);border-radius:22px;box-shadow:var(--shadow-3);overflow:hidden}
.detail-hero{--c:#888;position:relative;flex:0 0 auto;padding:20px;min-height:172px;display:flex;flex-direction:column;justify-content:flex-end;
  background:color-mix(in srgb,var(--c) 82%,#000);color:#fff;overflow:hidden}
.detail-hero::after{content:"";position:absolute;inset:0;background:none}
.detail-hero .bigglyph{position:absolute;right:-14px;top:-14px;width:150px;height:150px;color:rgba(255,255,255,.16);z-index:0}
.detail-hero .htop{position:relative;z-index:2;display:flex;justify-content:space-between;align-items:flex-start}
.detail-hero .hbody{position:relative;z-index:2}
.detail-hero h1{font-size:25px;color:#fff;margin-top:10px;text-shadow:0 2px 8px rgba(0,0,0,.28);line-height:1.06}
.detail-hero .hmeta{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;margin-top:9px;opacity:.96}
.hero-close{width:44px;height:44px;border-radius:50%;background:rgba(10,12,17,.52);backdrop-filter:blur(9px);color:#fff;
  display:grid;place-content:center;border:1px solid rgba(255,255,255,.32);box-shadow:0 2px 10px rgba(0,0,0,.3);
  transition:background .15s,transform .15s,border-color .15s}
.hero-close:hover{background:rgba(8,9,13,.74);border-color:rgba(255,255,255,.55)}
.hero-close:active{transform:scale(.94)}
.hero-close:focus-visible{outline:3px solid #fff;outline-offset:2px;border-radius:50%}
.hero-close svg{width:21px;height:21px;stroke-width:2.1}
/* expand carries a label on desktop: it is the doorway to the full page */
.hero-pill{width:auto;padding:0 15px 0 12px;border-radius:23px;gap:8px;display:inline-flex;align-items:center;
  font-size:13px;font-weight:700;letter-spacing:.01em}
.hero-pill:focus-visible{border-radius:23px}
.hero-pill .hp-lab{white-space:nowrap}
.hero-badge{background:rgba(0,0,0,.28);backdrop-filter:blur(6px);color:#fff;border-radius:9px;padding:5px 9px;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;display:inline-flex;gap:6px;align-items:center}
.hero-badge svg{width:14px;height:14px}
.detail-body{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:18px}
.detail-actions{display:flex;gap:8px;padding:14px 18px;border-top:1px solid var(--border);flex:0 0 auto;background:var(--surface)}
.detail-actions .btn{flex:1;min-width:0}
.detail-actions .btn span{white-space:nowrap}
.detail-actions .btn.ic{flex:0 0 auto;width:50px;padding:0}
.dsec{margin-bottom:20px}
.dsec-h{font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--text-3);margin-bottom:9px}
/* Google embed: fixed aspect box so a lazy iframe never shifts the layout */
.map-embed{position:relative;aspect-ratio:16/10;border-radius:14px;overflow:hidden;border:1px solid var(--border);background:var(--surface-2)}
.map-embed iframe{position:absolute;inset:0;width:100%;height:100%;border:0;display:block}
.kv{display:flex;gap:11px;align-items:flex-start;padding:9px 0;border-bottom:1px solid var(--border)}
.kv:last-child{border-bottom:none}
.kv-ic{width:34px;height:34px;flex:0 0 auto;border-radius:10px;background:var(--surface-2);display:grid;place-content:center;color:var(--text-2)}
.kv-ic svg{width:17px;height:17px}
.kv-t{flex:1;min-width:0}
.kv-t .k{font-size:11.5px;color:var(--text-3);font-weight:600}
.kv-t .v{font-size:14.5px;font-weight:600;margin-top:1px;overflow-wrap:anywhere}
.kv>.kv-go{flex:0 0 auto;align-self:center;color:var(--text-3)}
.kv>.kv-go svg{width:18px;height:18px}
.prog-list li,.artist-list li{padding:8px 12px;background:var(--surface-2);border-radius:10px;margin-bottom:6px;font-size:14px;font-weight:500;display:flex;gap:9px;align-items:center}
.prog-list li .n{width:22px;height:22px;border-radius:6px;background:var(--accent-soft);color:var(--accent-ink);font-size:12px;font-weight:700;display:grid;place-content:center;flex:0 0 auto}
.artist-list li svg{width:15px;height:15px;color:var(--text-3)}

/* network report */
.net{background:var(--surface-2);border-radius:16px;padding:14px;border:1px solid var(--border)}
.net-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.net-best{display:flex;align-items:center;gap:9px}
.net-best .ic{width:36px;height:36px;border-radius:10px;background:var(--good-soft);color:var(--good);display:grid;place-content:center}
.net-best .ic svg{width:19px;height:19px}
.net-best .t .k{font-size:11px;color:var(--text-3);font-weight:600}
.net-best .t .v{font-size:15px;font-weight:700}
.conf{font-size:11px;font-weight:600;padding:3px 8px;border-radius:7px;background:var(--surface-3);color:var(--text-2)}
.op-row{display:flex;align-items:center;gap:10px;padding:7px 0}
.op-row .nm{width:78px;font-size:13px;font-weight:600;flex:0 0 auto}
.op-bar{flex:1;height:8px;border-radius:5px;background:var(--surface-3);overflow:hidden;position:relative}
.op-bar>span{display:block;height:100%;border-radius:5px;background:var(--accent)}
.op-row .sc{width:32px;text-align:right;font-size:12.5px;font-weight:700;flex:0 0 auto}
.op-row .g5{font-size:9px;font-weight:700;color:var(--blue-ink);background:var(--blue-soft);border-radius:5px;padding:1px 4px;flex:0 0 auto}

/* ---- calendar ------------------------------------------------------------- */
.cal-top{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:18px}
.cal-nav{display:flex;align-items:center;gap:4px}
.cal-title{font-family:var(--font-display);font-weight:700;font-size:22px;min-width:190px;text-transform:capitalize}
.cal-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}
.cal-dow{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--text-3);text-align:center;padding:4px 0}
.cal-cell{min-height:104px;border-radius:14px;border:1px solid var(--border);background:var(--surface);padding:8px;display:flex;flex-direction:column;gap:4px;transition:.15s}
.cal-cell.out{background:transparent;border-color:transparent;opacity:.4}
.cal-cell.today{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
.cal-cell .dn{font-size:13px;font-weight:700;color:var(--text-2)}
.cal-cell.today .dn{color:var(--accent-ink)}
.cal-ev{--c:#888;font-size:11.5px;font-weight:600;padding:3px 7px;border-radius:7px;color:#fff;
  background:var(--c);cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  border-left:3px solid rgba(255,255,255,.5)}
.cal-ev:hover{filter:brightness(1.08)}
.cal-more{font-size:11px;font-weight:600;color:var(--text-3);padding:1px 7px;cursor:pointer}
.cal-week .cal-cell{min-height:150px}
.cal-day-list{display:flex;flex-direction:column;gap:10px;max-width:640px}
.cal-daycol .cal-cell{min-height:200px}

/* ---- profile / social ----------------------------------------------------- */
.prof-hero{display:flex;gap:22px;align-items:center;margin-bottom:8px;flex-wrap:wrap}
.prof-av{width:104px;height:104px;border-radius:50%;overflow:hidden;flex:0 0 auto;border:3px solid var(--border-2);
  background:var(--surface-2);display:grid;place-content:center;font-family:var(--font-display);font-weight:800;font-size:38px;color:var(--text-2)}
.prof-av img{width:100%;height:100%;object-fit:cover}
.prof-info{flex:1;min-width:220px}
.prof-info h1{font-size:26px}
.prof-info .uname{color:var(--text-3);font-size:14px;font-weight:500;margin-top:2px}
.prof-info .bio{font-size:14.5px;color:var(--text-2);margin-top:10px;max-width:52ch;line-height:1.5}
.prof-stats{display:flex;gap:22px;margin-top:14px}
.prof-stats b{font-family:var(--font-display);font-size:19px}
.prof-stats span{color:var(--text-3);font-size:13px;font-weight:500;margin-left:5px}
.prof-actions{display:flex;gap:9px;margin-top:16px;flex-wrap:wrap}
.tabs{display:flex;gap:2px;border-bottom:1px solid var(--border);margin:24px 0 18px;overflow-x:auto;scrollbar-width:none}
.tabs::-webkit-scrollbar{display:none}
.tabs button{padding:11px 15px;font-weight:600;font-size:14px;color:var(--text-2);position:relative;white-space:nowrap}
.tabs button.on{color:var(--text)}
.tabs button.on::after{content:"";position:absolute;left:12px;right:12px;bottom:-1px;height:2.5px;border-radius:2px;background:var(--accent)}
.grid-ev{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:14px}

.people-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px}
.person{display:flex;gap:13px;align-items:center;padding:14px;background:var(--surface);border:1px solid var(--border);border-radius:16px;transition:.15s}
.person:hover{border-color:var(--border-2);box-shadow:var(--shadow-1)}
.person-av{width:52px;height:52px;border-radius:50%;overflow:hidden;flex:0 0 auto;background:var(--surface-2);display:grid;place-content:center;font-weight:700;color:var(--text-2);font-size:18px}
.person-av img{width:100%;height:100%;object-fit:cover}
.person .t{flex:1;min-width:0}
.person .t .dn{font-weight:700;font-size:14.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.person .t .un{font-size:12.5px;color:var(--text-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.feed-item{display:flex;gap:13px;padding:14px 0;border-bottom:1px solid var(--border)}
.feed-item .fav-av{width:44px;height:44px;border-radius:50%;overflow:hidden;flex:0 0 auto;background:var(--surface-2);display:grid;place-content:center;font-weight:700;color:var(--text-2)}
.feed-item .fav-av img{width:100%;height:100%;object-fit:cover}
.feed-body{flex:1;min-width:0}
.feed-body .ftxt{font-size:14px}.feed-body .ftxt b{font-weight:700}
.feed-body .fwhen{font-size:12px;color:var(--text-3);margin-top:2px}
.feed-ev{margin-top:9px}

/* stat tiles (admin) */
.stat-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;margin-bottom:24px}
.stat{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:16px 18px}
.stat .n{font-family:var(--font-display);font-size:30px;font-weight:800;line-height:1}
.stat .l{font-size:12.5px;color:var(--text-2);font-weight:600;margin-top:6px}
.stat.warn .n{color:var(--warn)}.stat.blue .n{color:var(--blue-ink)}

/* data table */
.dtable{width:100%;border-collapse:collapse;font-size:14px}
.dtable th{text-align:left;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--text-3);padding:8px 12px;border-bottom:1px solid var(--border)}
.dtable td{padding:11px 12px;border-bottom:1px solid var(--border)}
.dtable tr:hover td{background:var(--surface-2)}
.badge-s{font-size:11px;font-weight:700;padding:3px 9px;border-radius:8px}
.badge-s.aprovado,.badge-s.approved{background:var(--good-soft);color:var(--good)}
.badge-s.pendente,.badge-s.pending{background:var(--warn-soft);color:var(--warn)}
.badge-s.rejeitado,.badge-s.rejected{background:var(--danger-soft);color:var(--danger)}
.tablewrap{overflow-x:auto;border:1px solid var(--border);border-radius:16px;background:var(--surface)}

/* toast */
.toasts{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:200;display:flex;flex-direction:column;gap:8px;align-items:center;pointer-events:none}
.toast{background:var(--text);color:var(--bg);padding:11px 18px;border-radius:13px;font-weight:600;font-size:14px;box-shadow:var(--shadow-3);
  display:flex;align-items:center;gap:9px;animation:toastin .3s cubic-bezier(.3,0,.1,1);max-width:88vw}
.toast svg{width:18px;height:18px}
.toast.err{background:var(--danger);color:#fff}
.toast.ok{background:var(--good);color:#fff}
@keyframes toastin{from{transform:translateY(16px);opacity:0}to{transform:none;opacity:1}}

/* language menu */
.menu{position:fixed;background:var(--surface);border:1px solid var(--border);border-radius:16px;box-shadow:var(--shadow-3);
  padding:7px;z-index:120;min-width:190px;max-width:280px;max-height:82vh;overflow:auto;transform-origin:top right}
.menu-item{display:flex;align-items:center;gap:11px;padding:10px 12px;border-radius:10px;font-weight:500;font-size:14px;width:100%;text-align:left;color:var(--text)}
.menu-item:hover{background:var(--surface-2)}
.menu-item.on{background:var(--accent-soft);color:var(--accent-ink);font-weight:600}
.menu-item .flag{font-size:11px;font-weight:700;letter-spacing:.02em;width:26px;color:var(--text-3)}
.menu-item .chk{margin-left:auto;color:var(--accent-ink)}
.menu-item .chk svg{width:16px;height:16px}
.menu-sep{height:1px;background:var(--border);margin:6px 4px}
.menu-note{font-size:11px;color:var(--text-3);padding:6px 12px 4px;line-height:1.4}
.beta-badge{font-size:9px;font-weight:700;background:var(--blue-soft);color:var(--blue-ink);border-radius:5px;padding:1px 5px;text-transform:uppercase;letter-spacing:.04em}

/* interest picker */
.pick{display:flex;flex-wrap:wrap;gap:8px}
.pick .chip{cursor:pointer}
.avatar-edit{display:flex;gap:16px;align-items:center;margin-bottom:18px}
.avatar-edit .prof-av{width:80px;height:80px;font-size:28px}

/* segmented small toggle for theme in menu */
.theme-seg{display:flex;gap:4px;background:var(--surface-2);border-radius:11px;padding:4px;margin:4px}
.theme-seg button{flex:1;height:34px;border-radius:8px;display:grid;place-content:center;color:var(--text-2);font-size:12px;font-weight:600;gap:5px;grid-auto-flow:column}
.theme-seg button svg{width:15px;height:15px}
.theme-seg button.on{background:var(--surface);color:var(--text);box-shadow:var(--shadow-1)}

/* misc */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.divider{height:1px;background:var(--border);margin:18px 0}
.notice{background:var(--blue-soft);border:1px solid color-mix(in srgb,var(--blue) 30%,transparent);color:var(--blue-ink);
  border-radius:14px;padding:13px 15px;font-size:13.5px;font-weight:500;display:flex;gap:10px;align-items:flex-start;line-height:1.5}
.notice svg{width:18px;height:18px;flex:0 0 auto;margin-top:1px}
.notice.warn{background:var(--warn-soft);border-color:var(--warn-line);color:var(--warn)}
.pagehead{margin-bottom:22px}
.pagehead h1{font-size:30px;letter-spacing:-.03em}
.pagehead p{color:var(--text-2);font-size:15px;margin-top:6px;max-width:60ch}
.mobile-only{display:none}

/* notifications list */
.notif{display:flex;gap:12px;padding:13px;border-radius:14px;background:var(--surface);border:1px solid var(--border);margin-bottom:9px}
.notif.unread{border-color:var(--accent-line);background:var(--accent-soft)}
.notif .nd{width:9px;height:9px;border-radius:50%;background:var(--accent);margin-top:6px;flex:0 0 auto}
.notif.read .nd{background:var(--border-2)}
.notif .nt{flex:1}.notif .nt .txt{font-size:14px;font-weight:500}.notif .nt .when{font-size:12px;color:var(--text-3);margin-top:2px}

/* =========================================================================
   MOBILE  (≤900px)
   ========================================================================= */
@media (max-width:900px){
  .shell{flex-direction:column}
  #rail{position:fixed;left:0;right:0;bottom:0;top:auto;width:100%;height:64px;flex-direction:row;
    border-right:none;border-top:1px solid var(--border);padding:0 6px;padding-bottom:env(safe-area-inset-bottom);
    background:var(--glass-2);backdrop-filter:blur(18px);z-index:80;justify-content:space-around}
  .rail-brand{display:none}
  .rail-nav{flex-direction:row;justify-content:space-around;gap:0}
  .rail-btn{width:auto;flex:1;max-width:64px;height:52px;border-radius:14px}
  .rail-btn.on::before{left:50%;top:auto;bottom:-1px;transform:translateX(-50%);width:22px;height:4px;border-radius:4px 4px 0 0}
  .rail-spacer{display:none}
  .rail-foot{flex-direction:row;width:auto;flex:1;max-width:64px}
  .rail-avatar{width:30px;height:30px;font-size:12px}
  .rail-foot [data-act=menu-lang],.rail-foot [data-act=menu-theme]{display:none}

  .stage{height:100dvh}
  #map{bottom:0}
  .search-dock{top:calc(10px + env(safe-area-inset-top));width:calc(100% - 24px);gap:8px}
  .searchbar{height:48px}
  .dock-actions .icon-btn{width:48px;height:48px}
  .icon-btn.lang-btn{display:none}

  #results{display:none}
  .sheet{display:flex}
  .detail{width:100%;padding:0;inset:0;top:auto}
  .detail-card{border-radius:22px 22px 0 0;height:auto;max-height:calc(100dvh - 74px)}
  .detail.hidden{transform:translateY(100%);opacity:1}
  .detail{top:auto;bottom:0;height:auto}

  #overlay{bottom:64px}
  body.page-scroll .home{padding-bottom:calc(76px + env(safe-area-inset-bottom))}
  .ov-top{height:56px;padding:0 14px}
  .ov-top h1{font-size:18px}
  .ov-wrap{padding:18px 16px 40px}
  .filters{width:100%;top:auto;height:86dvh;border-left:none;border-top:1px solid var(--border);border-radius:22px 22px 0 0;transform:translateY(100%)}
  .filters.on{transform:none}
  .detail-actions{padding-bottom:calc(14px + env(safe-area-inset-bottom))}
  .cal-grid{gap:3px}
  .cal-cell{min-height:64px;padding:4px;border-radius:9px}
  .cal-cell .dn{font-size:11px}
  .cal-ev{font-size:0;padding:0;height:6px;border-radius:3px;border-left:none}
  .cal-more{display:none}
  .cal-title{font-size:18px;min-width:0}
  .mobile-only{display:revert}
  .desktop-only{display:none}
  .pagehead h1{font-size:24px}
  .prof-av{width:80px;height:80px;font-size:30px}
  .prof-info h1{font-size:22px}
  .grid-ev{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
  .stat-grid{grid-template-columns:repeat(2,1fr)}
  .toasts{bottom:80px}
}
@media (min-width:901px){ .sheet{display:none!important} }

/* reduced motion */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001ms!important;transition-duration:.05ms!important;
    animation-delay:0s!important;transition-delay:0s!important}
  .boot-mark,.skel::after{animation:none}
  html{scroll-behavior:auto}
}

/* =========================================================================
   HOME LANDING  (curated, editorial, inviting)
   ========================================================================= */
.home{min-height:100%}
/* Solid, quiet ground — the content in front (cards, map, CTAs) carries the
   colour; the backdrop stays out of the way. */
.hero{position:relative;padding:0;background:var(--bg)}
.hero-inner{max-width:1080px;margin:0 auto;padding:44px 26px 30px;position:relative}
.hero-brand{display:flex;align-items:center;gap:1px;margin-bottom:30px}
.hero-brand svg{width:42px;height:42px;margin-left:-10px}
.hero-brand .wm{font-family:var(--font-display);font-weight:800;font-size:23px;letter-spacing:-.02em}
.hero h1{font-size:clamp(30px,4.8vw,48px);line-height:1.04;letter-spacing:-.032em;max-width:18ch;font-weight:800}
.hero h1 .accent{color:var(--accent-ink)}
.hero .slogan{font-size:clamp(16px,2.4vw,21px);color:var(--text-2);margin-top:20px;max-width:40ch;font-weight:500;line-height:1.35}
.hero-search{margin-top:24px;display:flex;gap:10px;max-width:620px;flex-wrap:wrap}
.hero-search .searchbar{flex:1;min-width:240px;box-shadow:var(--shadow-2);height:56px;border-radius:17px}
.hero-search .btn{height:56px;border-radius:17px;box-shadow:var(--shadow-2);flex:0 0 auto}
.hero-chips{display:flex;gap:9px;flex-wrap:wrap;margin-top:18px;align-items:center}
.hero-stat{display:flex;align-items:center;gap:14px;margin-top:20px;color:var(--text-2);font-size:14.5px;font-weight:500;flex-wrap:wrap}
.hero-stat .sdot{width:5px;height:5px;border-radius:50%;background:var(--text-3)}
.hero-stat b{color:var(--text);font-weight:700}

.rails{max-width:1080px;margin:0 auto;padding:18px 0 70px}
.rail{margin-bottom:34px}
.rail-h{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;padding:0 26px;margin-bottom:14px}
.rail-h .tt{display:flex;flex-direction:column;gap:3px}
.rail-h h2{font-size:22px;letter-spacing:-.025em}
.rail-h .lede{font-size:13px;color:var(--text-3);font-weight:500}
.rail-h .see{font-size:13.5px;font-weight:600;color:var(--accent-ink);display:inline-flex;align-items:center;gap:4px;flex:0 0 auto}
.rail-h .see svg{width:15px;height:15px}
.rail-track{display:flex;gap:15px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;
  padding:4px 26px 10px;scrollbar-width:none}
.rail-track::-webkit-scrollbar{display:none}
.rail-track .ev-card{flex:0 0 264px;scroll-snap-align:start;margin-bottom:0}

/* prompt / cta rail cards */
.prompt-card{flex:0 0 264px;scroll-snap-align:start;border-radius:18px;border:1.5px dashed var(--border-2);
  background:var(--surface);padding:20px;display:flex;flex-direction:column;gap:10px;justify-content:center;align-items:flex-start;min-height:150px}
.prompt-card .pic{width:42px;height:42px;border-radius:12px;background:var(--accent-soft);color:var(--accent-ink);display:grid;place-content:center}
.prompt-card .pic svg{width:22px;height:22px}
.prompt-card h4{font-size:16px}
.prompt-card p{font-size:13px;color:var(--text-2);line-height:1.45}
/* near-you call-to-action: a full-width band on the home, the sole contextual
   prompt once the redundant rails came off. Quiet solid surface (no accent
   wash, by the same rule the rest of the app follows); the accent lives only
   on the icon chip and the button. */
.near-rail{padding:0 26px}
.near-cta{display:flex;align-items:center;gap:20px;padding:22px 24px;border-radius:20px;border:1px solid var(--border);background:var(--surface)}
.near-cta .nc-media{flex:0 0 auto;width:54px;height:54px;border-radius:16px;background:var(--accent-soft);color:var(--accent-ink);display:grid;place-content:center}
.near-cta .nc-media svg{width:27px;height:27px}
.near-cta .nc-text{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:3px}
.near-cta .nc-text h3{font-size:19px;letter-spacing:-.02em}
.near-cta .nc-text p{font-size:13.5px;color:var(--text-2);line-height:1.45;max-width:52ch}
.near-cta .btn{flex:0 0 auto}
@media (max-width:640px){
  .near-rail{padding:0 18px}
  .near-cta{flex-direction:column;align-items:flex-start;gap:14px;padding:20px}
  .near-cta .nc-media{width:48px;height:48px;border-radius:14px}
  .near-cta .btn{width:100%;justify-content:center}
}

/* category browse tiles */
.cat-rail{display:flex;gap:12px;overflow-x:auto;padding:4px 26px 10px;scrollbar-width:none}
.cat-rail::-webkit-scrollbar{display:none}
.cat-tile{--c:#888;flex:0 0 138px;scroll-snap-align:start;border-radius:16px;padding:15px;min-height:110px;
  display:flex;flex-direction:column;justify-content:space-between;cursor:pointer;position:relative;overflow:hidden;
  background:color-mix(in srgb,var(--c) 14%,var(--surface));
  border:1px solid var(--border);transition:transform .16s,box-shadow .16s,border-color .16s}
.cat-tile:hover{transform:translateY(-2px);box-shadow:var(--shadow-1);border-color:var(--c)}
.cat-tile:active{transform:scale(.97)}
@media (min-width:901px){ .cat-rail{flex-wrap:wrap;overflow:visible} .cat-tile{flex:1 1 128px;min-width:128px} }
.cat-tile .ci{width:38px;height:38px;border-radius:11px;display:grid;place-content:center;color:#fff;background:var(--c)}
.cat-tile .ci svg{width:21px;height:21px}
.cat-tile .cn{font-family:var(--font-display);font-weight:700;font-size:14.5px;line-height:1.1;letter-spacing:-.01em}
.cat-tile .cc{font-size:12px;color:var(--text-3);font-weight:600}

/* home top-right controls */
.home-controls{position:absolute;top:20px;right:22px;display:flex;gap:8px;z-index:5}

.footer-note{max-width:1080px;margin:0 auto;padding:0 26px 40px;color:var(--text-3);font-size:12.5px;line-height:1.6}
.footer-note a{color:var(--text-2);text-decoration:underline;text-underline-offset:2px}

@media (max-width:900px){
  .hero-inner{padding:26px 18px 24px}
  .hero-brand{margin-bottom:20px}
  .home-controls{top:14px;right:14px}
  .rail-h{padding:0 18px}
  .rail-track{padding:4px 18px 10px}
  .rail-track .ev-card{flex-basis:230px}
  .cat-rail{padding:4px 18px 10px}
  .hero-search .btn span{display:none}
  .hero-search .btn{width:56px;padding:0}
  .footer-note{padding:0 18px 30px}
}

/* =========================================================================
   LANDING (signed out) + shell landing mode
   ========================================================================= */
.shell.landing-mode #rail{display:none}
.shell.landing-mode #overlay{background:var(--bg)}
.icon-btn .cnt-badge{position:absolute;top:-5px;right:-5px;min-width:19px;height:19px;padding:0 5px;border-radius:10px;background:var(--accent);color:var(--on-accent);font-size:11px;font-weight:700;display:grid;place-content:center;box-shadow:0 0 0 2px var(--bg)}
.icon-btn.has{background:var(--blue);color:#fff}

.landing{min-height:100%;display:flex;flex-direction:column}
.land-top{display:flex;align-items:center;justify-content:space-between;padding:20px 26px;max-width:1140px;margin:0 auto;width:100%}
.land-top .lb{display:flex;align-items:center;gap:1px}
.land-top .lb svg{width:38px;height:38px;margin-left:-9px}
.land-top .wm{font-family:var(--font-display);font-weight:800;font-size:20px;letter-spacing:-.02em}
.land-top .lt-actions{display:flex;align-items:center;gap:8px}
.land-explore{font-size:13.5px;font-weight:600;color:var(--text-2);display:inline-flex;gap:6px;align-items:center;padding:9px 12px;border-radius:11px}
.land-explore:hover{background:var(--surface-2);color:var(--text)}
.land-explore svg{width:16px;height:16px}

.land-split{flex:1;display:grid;grid-template-columns:1.05fr .95fr;gap:52px;align-items:center;max-width:1140px;margin:0 auto;width:100%;padding:20px 26px 40px}
.land-visual{position:relative;border-radius:26px;overflow:hidden;min-height:440px;box-shadow:var(--shadow-3);border:1px solid var(--border);background:var(--bg-2)}
#heroMap{position:absolute;inset:0}
#heroMap .leaflet-control-container{display:none}
.land-vcap{position:absolute;left:16px;top:16px;right:262px;z-index:800;display:flex;gap:8px;flex-wrap:wrap;pointer-events:none}
.vchip{background:var(--glass-2);backdrop-filter:blur(10px);border:1px solid var(--border);border-radius:12px;padding:8px 12px;font-size:12.5px;font-weight:600;display:flex;align-items:center;gap:7px;box-shadow:var(--shadow-1)}
.vchip svg{width:15px;height:15px;color:var(--accent-ink)}
.land-float{position:absolute;z-index:800;width:230px;right:16px;top:16px;pointer-events:auto;filter:drop-shadow(var(--shadow-2))}
.land-float .ev-card{margin:0}
.land-float.two{top:auto;bottom:16px;right:auto;left:16px;width:210px}

.land-auth{max-width:400px;justify-self:start;width:100%}
.land-auth .kicker{display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--accent-ink);margin-bottom:14px}
.land-auth .kicker svg{width:15px;height:15px}
.land-auth h1{font-size:clamp(30px,4.4vw,46px);line-height:1.05;letter-spacing:-.032em;font-weight:800}
.land-auth h1 .accent{color:var(--accent-ink)}
.land-auth .lead{font-size:16px;color:var(--text-2);margin-top:14px;line-height:1.4;max-width:34ch}
.auth-card{margin-top:24px;background:var(--surface);border:1px solid var(--border);border-radius:20px;padding:20px;box-shadow:var(--shadow-1)}
.auth-card .row-sep{display:flex;align-items:center;gap:12px;margin:16px 0;color:var(--text-3);font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.08em}
.auth-card .row-sep::before,.auth-card .row-sep::after{content:"";flex:1;height:1px;background:var(--border)}
.land-perks{margin-top:16px;font-size:13px;color:var(--text-3);line-height:1.5;display:flex;gap:9px;align-items:flex-start}
.land-perks svg{width:16px;height:16px;flex:0 0 auto;margin-top:1px;color:var(--accent-ink)}
.land-browse{margin-top:14px}

@media (max-width:900px){
  .land-top{padding:14px 16px}
  .land-top .land-explore span{display:none}
  .land-split{grid-template-columns:1fr;gap:22px;padding:6px 16px 30px}
  .land-visual{min-height:230px;order:2}
  .land-auth{order:1;max-width:none}
  .land-auth h1{font-size:30px}
  .land-float{width:180px}.land-float.two{display:none}
}

/* --- defensive icon sizing: bare svg() inside flex/text containers -------- */
.tag svg{width:13px;height:13px;flex:0 0 auto}
.menu-item svg{width:18px;height:18px;flex:0 0 auto}
.detail-hero .hmeta svg{width:15px;height:15px;flex:0 0 auto}
.sortsel svg{width:15px;height:15px;flex:0 0 auto}
.prof-info .uname svg{width:13px;height:13px;display:inline;vertical-align:-2px}
.person>svg{width:20px;height:20px;flex:0 0 auto;color:var(--text-3)}
.bigglyph svg{width:100%;height:100%}
.theme-seg button svg{width:15px;height:15px}

/* =========================================================================
   HIGHLIGHTS SHOWCASE  (featured events lead the signed-in home)
   ========================================================================= */
.hero-car-wrap{padding:0 26px;margin-bottom:4px}
.hero-car{position:relative;height:clamp(320px,44vh,420px);touch-action:pan-y}
.hc-slides{position:absolute;inset:0}
.hc-slide{position:absolute;inset:0;opacity:0;transform:scale(1.015);visibility:hidden;pointer-events:none;
  transition:opacity .6s cubic-bezier(.25,0,.15,1),transform .6s cubic-bezier(.25,0,.15,1),visibility 0s .6s}
.hc-slide.is-on{opacity:1;transform:none;visibility:visible;pointer-events:auto;transition-delay:0s}
.hc-slide .sc-card{height:100%;min-height:0}
.hc-dots{display:flex;justify-content:center;gap:7px;padding:14px 0 2px}
.hc-dot{width:8px;height:8px;border-radius:5px;background:var(--border-2);padding:0;transition:background .25s,width .25s}
.hc-dot:hover{background:var(--text-3)}
.hc-dot.on{background:var(--accent);width:24px}
.sc-card{--c:#888;position:relative;display:flex;flex-direction:column;justify-content:flex-end;overflow:hidden;
  border-radius:24px;cursor:pointer;color:#fff;border:1px solid var(--border);min-height:248px;
  flex:0 0 min(360px,82vw);scroll-snap-align:start;transform:translateZ(0);
  transition:transform .28s cubic-bezier(.22,.6,.2,1),box-shadow .28s}
.sc-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-3)}
.sc-card:active{transform:translateY(-1px) scale(.99)}
.sc-card.lead{width:100%;flex:none;min-height:clamp(300px,42vh,400px)}
.sc-bg{position:absolute;inset:0;background:color-mix(in srgb,var(--c) 78%,#000)}
.sc-bg .bigglyph{position:absolute;right:-18px;top:-18px;width:190px;height:190px;color:rgba(255,255,255,.15)}
.sc-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 40%;
  transition:transform .7s cubic-bezier(.22,.6,.2,1)}
.sc-card:hover .sc-photo{transform:scale(1.045)}
.sc-card:focus-visible .sc-photo{transform:scale(1.045)}
/* the one shade left: dark behind white titles, and only over a photo */
.sc-scrim{position:absolute;inset:0;background:linear-gradient(0deg,rgba(0,0,0,.66),rgba(0,0,0,.18) 48%,rgba(0,0,0,0) 72%)}
.sc-card:not(:has(.sc-photo)) .sc-scrim{background:none}
.sc-card .daychip{position:absolute;top:14px;left:14px;z-index:3;background:rgba(0,0,0,.38);backdrop-filter:blur(6px);
  color:#fff;border-radius:11px;padding:5px 8px;text-align:center;line-height:1;min-width:40px}
.sc-card .daychip .d{font-weight:800;font-size:17px;font-family:var(--font-display)}
.sc-card .daychip .m{font-size:9.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;opacity:.92;margin-top:2px}
.sc-fav{position:absolute;top:13px;right:13px;z-index:3;width:38px;height:38px;border-radius:50%;display:grid;place-content:center;
  background:rgba(0,0,0,.34);backdrop-filter:blur(6px);color:#fff;opacity:1;transition:transform .15s,background .15s}
.sc-fav:hover{background:rgba(0,0,0,.5)}
.sc-fav:active{transform:scale(.9)}
.sc-fav.on{color:var(--like)}
.sc-fav svg{width:18px;height:18px}
.sc-body{position:relative;z-index:2;padding:20px 22px 18px;min-width:0}
.sc-kick{display:flex;align-items:center;gap:10px;font-size:11.5px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;flex-wrap:wrap}
.sc-cat{display:inline-flex;gap:6px;align-items:center;background:rgba(0,0,0,.32);backdrop-filter:blur(6px);border-radius:9px;padding:5px 9px}
.sc-cat svg{width:13px;height:13px;flex:0 0 auto}
.sc-when{opacity:.96;text-shadow:0 1px 6px rgba(0,0,0,.45)}
.sc-card h3{color:#fff;font-size:23px;line-height:1.06;letter-spacing:-.02em;margin:10px 0 8px;max-width:24ch;
  text-shadow:0 2px 12px rgba(0,0,0,.4);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.sc-card.lead h3{font-size:clamp(26px,3.3vw,40px);max-width:22ch}
.sc-meta{display:flex;align-items:center;gap:8px;font-size:13.5px;font-weight:600;opacity:.97;flex-wrap:wrap;min-width:0}
.sc-meta svg{width:15px;height:15px;flex:0 0 auto}
.sc-meta .pl{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:16ch}
.sc-meta .sdot{width:4px;height:4px;border-radius:50%;background:currentColor;opacity:.65;flex:0 0 auto}
.sc-pill{display:inline-flex;gap:6px;align-items:center;background:rgba(0,0,0,.32);border-radius:8px;padding:3px 8px;font-size:12px}
.sc-pill svg{width:13px;height:13px}
.img-credit{position:absolute;right:13px;bottom:7px;z-index:3;font-size:9.5px;font-weight:500;color:rgba(255,255,255,.72);
  text-shadow:0 1px 3px rgba(0,0,0,.6);max-width:58%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}
.sc-card.img-err .img-credit,.sc-card.img-err .sc-photo{display:none}

/* carousel arrows */
.tnav{display:flex;gap:8px}
.tnav-btn{width:40px;height:40px;border-radius:12px;background:var(--surface-2);border:1px solid var(--border);color:var(--text);
  display:grid;place-content:center;transition:background .16s,transform .12s,opacity .2s}
.tnav-btn svg{width:18px;height:18px}
.tnav-btn:hover{background:var(--surface-3)}
.tnav-btn:active{transform:scale(.94)}
.tnav-btn[disabled]{opacity:.3;pointer-events:none}

/* =========================================================================
   AGENDA  (what is next, grouped by month — compact rows)
   ========================================================================= */
.agenda{padding:0 26px;display:flex;flex-direction:column;gap:20px}
.ag-month{font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--accent-ink);
  margin-bottom:10px;display:flex;align-items:center;gap:14px}
.ag-month::after{content:"";flex:1;height:1px;background:var(--border)}
.ag-rows{display:grid;grid-template-columns:repeat(auto-fill,minmax(390px,1fr));gap:10px}
.ag-row{--c:#888;display:flex;align-items:center;gap:13px;padding:10px 12px;border-radius:15px;background:var(--surface);
  border:1px solid var(--border);cursor:pointer;min-width:0;
  transition:transform .16s cubic-bezier(.22,.6,.2,1),box-shadow .16s,border-color .16s}
.ag-row:hover{transform:translateY(-1px);border-color:var(--border-2);box-shadow:var(--shadow-1)}
.ag-row:active{transform:scale(.99)}
.ag-day{flex:0 0 46px;height:46px;border-radius:12px;background:color-mix(in srgb,var(--c) 15%,var(--surface-2));
  display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1}
.ag-day .d{font-family:var(--font-display);font-weight:800;font-size:17px}
.ag-day .w{font-size:9.5px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--text-3);margin-top:3px}
.ag-main{flex:1;min-width:0}
.ag-name{font-family:var(--font-display);font-weight:700;font-size:14.5px;letter-spacing:-.01em;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ag-sub{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--text-3);font-weight:500;margin-top:3px;min-width:0;overflow:hidden}
.ag-sub .dotc{width:7px;height:7px;border-radius:50%;background:var(--c);flex:0 0 auto}
.ag-place{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ag-sep,.ag-cat{white-space:nowrap;flex:0 0 auto}
.ag-right{display:flex;align-items:center;gap:7px;flex:0 0 auto}
.ag-go{width:16px;height:16px;color:var(--text-3)}

/* =========================================================================
   SKELETONS  (loading that keeps the page's rhythm)
   ========================================================================= */
.sk-card{flex:0 0 264px;scroll-snap-align:start;border-radius:18px;border:1px solid var(--border);background:var(--surface);
  display:grid;grid-template-columns:96px 1fr;overflow:hidden;min-height:118px}
.sk-th{border-radius:0;height:100%}
.sk-lines{padding:14px 13px;display:flex;flex-direction:column;gap:9px;justify-content:center}
.sk-l{height:12px}
.sk-l.tall{height:22px}
.w40{width:40%}.w60{width:60%}.w80{width:80%}.w90{width:90%}
.sk-block{height:64px;border-radius:14px}
.detail-body>.skel{margin-bottom:10px}
.detail-body>.skel.gap{margin-bottom:26px}
.detail-hero.sk-hero{background:var(--surface-3);min-height:172px}
.detail-hero.sk-hero::after{content:none}

/* =========================================================================
   DETAIL — photograph hero + attribution
   ========================================================================= */
.hero-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 42%}
.detail-hero.has-img:not(.img-err){min-height:214px}
.detail-hero.has-img:not(.img-err)::after{background:linear-gradient(0deg,rgba(0,0,0,.68),rgba(0,0,0,.18) 52%,rgba(0,0,0,.3))}
.photo-caption{display:flex;justify-content:flex-end;align-items:center;gap:6px;font-size:10.5px;color:var(--text-3);margin:-4px 0 14px}
.photo-caption svg{width:12px;height:12px;flex:0 0 auto}
.photo-caption a{color:var(--text-3);text-decoration:underline;text-underline-offset:2px}
.photo-caption a:hover{color:var(--text-2)}
.detail-hero.img-err+.detail-body .photo-caption{display:none}

/* =========================================================================
   MOTION  (explanatory, transform/opacity only, honours reduced-motion)
   ========================================================================= */
@keyframes rise{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
@keyframes fadein{from{opacity:0}to{opacity:1}}
@keyframes routein{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes panelin{from{opacity:0;transform:translateX(26px)}to{opacity:1;transform:none}}
@keyframes menupop{from{opacity:0;transform:scale(.94) translateY(-4px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:no-preference){
  /* sections settle in as they enter the viewport; cards follow their section */
  .rv{opacity:0}
  .rv.in{opacity:1;animation:fadein .45s cubic-bezier(.25,0,.15,1) both}
  .rv.in .rail-h{animation:rise .5s cubic-bezier(.22,.6,.2,1) both}
  .rv.in .stg>*{animation:rise .55s cubic-bezier(.22,.6,.2,1) both}
  .rv.in .stg>*:nth-child(2){animation-delay:.06s}
  .rv.in .stg>*:nth-child(3){animation-delay:.12s}
  .rv.in .stg>*:nth-child(4){animation-delay:.18s}
  .rv.in .stg>*:nth-child(5){animation-delay:.24s}
  .rv.in .stg>*:nth-child(6){animation-delay:.29s}
  .rv.in .stg>*:nth-child(n+7){animation-delay:.33s}
  /* the greeting arrives as a cascade */
  .hero-inner>*{animation:rise .6s cubic-bezier(.22,.6,.2,1) both}
  .hero-inner>*:nth-child(3){animation-delay:.06s}
  .hero-inner>*:nth-child(4){animation-delay:.12s}
  .hero-inner>*:nth-child(5){animation-delay:.18s}
  .hero-inner>*:nth-child(6){animation-delay:.24s}
  /* route changes move rather than cut */
  #overlay.on>*{animation:routein .32s cubic-bezier(.25,0,.15,1) both}
  .map-enter .search-dock{animation:rise .5s .08s cubic-bezier(.22,.6,.2,1) both}
  .map-enter #results .panel{animation:panelin .5s .04s cubic-bezier(.22,.6,.2,1) both}
  .menu{animation:menupop .22s cubic-bezier(.22,.9,.3,1.2) both}
  .detail-card{animation:fadein .3s both}
}

/* showcase + agenda on small screens */
@media (max-width:900px){
  .showcase .tnav{display:none} /* swipe + dots on touch */
  .hero-chips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-left:-18px;margin-right:-18px;padding:2px 18px 6px}
  .hero-chips::-webkit-scrollbar{display:none}
  .hero-chips .chip{flex:0 0 auto}
  .hero-car-wrap{padding:0 18px}
  .hero-car{height:min(56vh,440px)}
  .sc-card h3{font-size:21px}
  .sc-card.lead h3{font-size:25px}
  .agenda{padding:0 18px;gap:16px}
  .ag-rows{grid-template-columns:1fr}
  .img-credit{max-width:58%}
}

/* =========================================================================
   EXPANDED DETAIL + COMMENTS  (one panel, two sizes)
   ========================================================================= */
.htop-btns{display:flex;gap:8px}
.detail.expanded .detail-hero{min-height:240px}
.detail.expanded .detail-hero.has-img:not(.img-err){min-height:320px}
.detail-cols{display:grid;grid-template-columns:1.15fr .85fr;gap:0 30px;align-items:start}
.detail-cols>div{min-width:0}
@media (max-width:900px){
  .detail.expanded .detail-card{height:calc(100dvh - 74px);max-height:calc(100dvh - 74px)}
  .detail-cols{grid-template-columns:1fr;gap:0}
  .detail.expanded .detail-hero.has-img:not(.img-err){min-height:250px}
}
.com{display:flex;gap:10px;padding:11px 0;border-bottom:1px solid var(--border)}
.com:last-child{border-bottom:none}
.com-av{width:36px;height:36px;border-radius:50%;overflow:hidden;flex:0 0 auto;background:var(--surface-2);
  display:grid;place-content:center;font-weight:700;color:var(--text-2);font-size:14px}
.com-av img{width:100%;height:100%;object-fit:cover}
.com-b{flex:1;min-width:0}
.com-h{display:flex;align-items:center;gap:8px}
.com-h .nm{font-weight:700;font-size:13.5px}
.com-h .when{font-size:11.5px;color:var(--text-3)}
.com-del{margin-left:auto;width:26px;height:26px;border-radius:8px;display:grid;place-content:center;color:var(--text-3);
  opacity:0;transition:opacity .15s,background .15s,color .15s}
.com:hover .com-del,.com-del:focus-visible{opacity:1}
@media (hover:none){.com-del{opacity:1}}
.com-del:hover{background:var(--danger-soft);color:var(--danger)}
.com-del svg{width:14px;height:14px}
.com-t{font-size:14px;line-height:1.5;margin-top:2px;overflow-wrap:anywhere;white-space:pre-wrap}
.com-write{display:flex;gap:10px;margin-bottom:6px;padding-bottom:12px;border-bottom:1px solid var(--border)}
.com-wb{flex:1;display:flex;flex-direction:column;gap:8px;align-items:flex-end}
.com-wb textarea.input{min-height:64px;width:100%}
.com-signin{display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:14px;background:var(--surface-2);
  font-size:13.5px;font-weight:500;color:var(--text-2);margin-bottom:8px;flex-wrap:wrap}
.com-signin svg{width:17px;height:17px;color:var(--accent-ink);flex:0 0 auto}
.com-signin .btn{margin-left:auto}
.com-none{display:flex;align-items:center;gap:10px;padding:16px 4px;color:var(--text-3);font-size:13.5px}
.com-none svg{width:18px;height:18px;opacity:.7}
.sk-com{padding:12px 0;display:flex;flex-direction:column;gap:8px}

/* spiderfied cluster legs */
.spider-leg{stroke:var(--text-2);stroke-width:2;stroke-dasharray:1 5;stroke-linecap:round}
.point-note{margin-top:10px}
.point-note .chip svg:last-child{width:14px;height:14px;margin-left:2px;opacity:.7}

/* =========================================================================
   HORIZONTAL RAILS — reachable with mouse + keyboard, not only touch
   ========================================================================= */
.hrail{position:relative;min-width:0}
.hnav{position:absolute;top:50%;transform:translateY(-52%);z-index:6;width:38px;height:38px;border-radius:50%;
  display:grid;place-content:center;background:var(--glass-2);backdrop-filter:blur(10px);
  border:1px solid var(--border-2);box-shadow:var(--shadow-2);color:var(--text);
  opacity:1;transition:opacity .18s,background .15s,transform .15s}
.hnav.prev{left:-4px}.hnav.next{right:-4px}
.hnav svg{width:19px;height:19px;stroke-width:2}
.hnav:hover{background:var(--surface)}
.hnav:active{transform:translateY(-52%) scale(.92)}
.hnav.off{opacity:0;pointer-events:none}
@media (hover:none) and (pointer:coarse){.hnav{display:none}}
/* the built-in affordance returns on pointer devices: a slim scrollbar */
@media (hover:hover) and (pointer:fine){
  .hscroll,.rail-track{scrollbar-width:thin;scrollbar-color:var(--border-2) transparent}
  .hscroll::-webkit-scrollbar,.rail-track::-webkit-scrollbar{display:block;height:9px}
  .hscroll::-webkit-scrollbar-thumb,.rail-track::-webkit-scrollbar-thumb{background:var(--border-2);border-radius:5px;border:2px solid transparent;background-clip:padding-box}
  .hscroll::-webkit-scrollbar-thumb:hover,.rail-track::-webkit-scrollbar-thumb:hover{background:var(--text-3);background-clip:padding-box;border:2px solid transparent}
  .hscroll::-webkit-scrollbar-track,.rail-track::-webkit-scrollbar-track{background:transparent}
}
.hscroll:focus-visible,.rail-track:focus-visible{outline:2.5px solid var(--ring);outline-offset:-2px;border-radius:14px}

/* =========================================================================
   SOCIAL STRIP  (compact detail: pointers into the expanded page)
   ========================================================================= */
.soc-strip{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}
.soc-strip .chip{height:36px;padding:0 12px;font-size:13px}
.soc-strip .chip b{font-weight:800}
.soc-strip .chip .accent-ic{color:var(--accent-ink)}

/* =========================================================================
   RATINGS  (0–10: expectation vs experience)
   ========================================================================= */
.rate-box{background:var(--surface-2);border:1px solid var(--border);border-radius:16px;padding:16px 16px 12px;margin-bottom:14px}
.rate-hero{display:flex;align-items:flex-start;gap:16px;flex-wrap:wrap}
.rate-n{font-family:var(--font-display);font-weight:800;font-size:46px;line-height:.92;letter-spacing:-.03em}
.rate-n small{font-size:17px;font-weight:700;color:var(--text-3);letter-spacing:0}
.rate-d{flex:1;min-width:150px;padding-top:3px}
.rate-kind{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;
  border-radius:7px;padding:3px 8px;background:var(--blue-soft);color:var(--blue-ink)}
.rate-kind.lived{background:var(--good-soft);color:var(--good)}
.rate-kind svg{width:13px;height:13px}
.rate-count{font-size:13px;font-weight:600;color:var(--text-2);margin-top:6px}
.rate-alt{font-size:12.5px;color:var(--text-3);font-weight:500;margin-top:3px}
.rate-meter{height:7px;border-radius:5px;background:var(--surface-3);overflow:hidden;margin-top:10px}
.rate-meter>span{display:block;height:100%;border-radius:5px;background:var(--accent)}
.rate-subs{margin-top:14px;border-top:1px solid var(--border);padding-top:10px}
.srow{display:flex;align-items:center;gap:10px;padding:4.5px 0}
.srow .sl{width:132px;flex:0 0 auto;font-size:12.5px;font-weight:600;color:var(--text-2);display:flex;align-items:center;gap:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.srow .sl svg{width:14px;height:14px;flex:0 0 auto;color:var(--text-3)}
.srow.net .sl{color:var(--blue-ink)} .srow.net .sl svg{color:var(--blue-ink)}
.sbar{flex:1;height:7px;border-radius:5px;background:var(--surface-3);overflow:hidden}
.sbar>span{display:block;height:100%;border-radius:5px;background:var(--accent)}
.srow.net .sbar>span{background:var(--blue)}
.srow .sv{width:32px;flex:0 0 auto;text-align:right;font-size:12.5px;font-weight:700}
/* reviews */
.rev{display:flex;gap:10px;padding:12px 0;border-bottom:1px solid var(--border)}
.rev:last-child{border-bottom:none}
.rev-b{flex:1;min-width:0}
.rev-h{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.rev-h .nm{font-weight:700;font-size:13.5px}
.rev-h .when{font-size:11.5px;color:var(--text-3)}
.rev-score{font-weight:800;font-size:12.5px;border-radius:8px;padding:2px 8px;background:var(--accent-soft);color:var(--accent-ink)}
.rev-kind{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;border-radius:6px;padding:2px 6px;background:var(--blue-soft);color:var(--blue-ink)}
.rev-kind.lived{background:var(--good-soft);color:var(--good)}
.rev-t{font-size:14px;line-height:1.5;margin-top:3px;overflow-wrap:anywhere}
.rev-del{margin-left:auto;width:28px;height:28px;border-radius:8px;display:grid;place-content:center;color:var(--text-3);opacity:0;transition:.15s}
.rev:hover .rev-del,.rev-del:focus-visible{opacity:1}
@media (hover:none){.rev-del{opacity:1}}
.rev-del:hover{background:var(--danger-soft);color:var(--danger)}
.rev-del svg{width:14px;height:14px}
/* form */
.rate-form{border:1.5px dashed var(--border-2);border-radius:16px;padding:14px;margin:4px 0 14px;background:var(--surface)}
.rsl{display:grid;grid-template-columns:128px 1fr 34px;align-items:center;gap:10px;margin-bottom:7px}
.rsl label{font-size:12.5px;font-weight:600;color:var(--text-2);display:flex;align-items:center;gap:6px;white-space:nowrap;overflow:hidden}
.rsl label svg{width:14px;height:14px;flex:0 0 auto;color:var(--text-3)}
.rsl output{font-size:13px;font-weight:800;text-align:right}
.rsl.big{padding-bottom:9px;margin-bottom:11px;border-bottom:1px solid var(--border)}
.rsl.big label{font-size:13.5px;font-weight:700;color:var(--text)}
.rsl.big output{font-size:16px;color:var(--accent-ink)}
.rate-hint{font-size:12px;color:var(--text-3);line-height:1.5;margin:9px 0 0;display:flex;gap:7px}
.rate-hint svg{width:14px;height:14px;flex:0 0 auto;margin-top:1px}
.rate-form .actions{display:flex;gap:8px;justify-content:flex-end;margin-top:12px;flex-wrap:wrap}
@media (max-width:560px){ .rsl{grid-template-columns:104px 1fr 30px} .srow .sl{width:112px} }

/* =========================================================================
   COMPANIONS  ("who's going / find company")
   ========================================================================= */
.cmp{display:flex;gap:11px;padding:12px;border:1px solid var(--border);border-radius:15px;background:var(--surface);margin-bottom:9px}
.cmp.mine{border-color:var(--accent-line);box-shadow:0 0 0 1px var(--accent-line)}
.cmp-b{flex:1;min-width:0}
.cmp-h{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.cmp-h .nm{font-weight:700;font-size:13.5px}
.cmp-h .city{display:inline-flex;align-items:center;gap:3px;font-size:12px;color:var(--text-3);font-weight:500}
.cmp-h .city svg{width:12px;height:12px}
.cmp-h .when{font-size:11.5px;color:var(--text-3);margin-left:auto}
.cmp-note{font-size:13.5px;line-height:1.5;margin-top:3px;color:var(--text-2);overflow-wrap:anywhere}
.cmp-ints{display:flex;gap:5px;flex-wrap:wrap;margin-top:7px}
.cmp-ints .tag{display:inline-flex;align-items:center;gap:5px}
.cmp-ints .dotc{width:7px;height:7px;border-radius:50%}
.cmp-cta{border:1.5px dashed var(--border-2);border-radius:16px;padding:14px;margin-bottom:12px;background:var(--surface)}
.cmp-cta h5{font-size:14.5px;margin:0 0 4px}
.cmp-cta p{font-size:12.5px;color:var(--text-3);margin:0 0 10px;line-height:1.5}
.cmp-cta textarea.input{min-height:60px;margin-bottom:10px}
.cmp-cta .actions{display:flex;gap:8px;flex-wrap:wrap}
.cmp-privacy{font-size:11.5px;color:var(--text-3);line-height:1.5;display:flex;gap:7px;margin-top:10px}
.cmp-privacy svg{width:13px;height:13px;flex:0 0 auto;margin-top:1px}

/* =========================================================================
   GROUPS
   ========================================================================= */
.vis-b{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:700;border-radius:7px;padding:3px 8px;
  background:var(--surface-2);color:var(--text-2);text-transform:uppercase;letter-spacing:.04em}
.vis-b svg{width:13px;height:13px}
.vis-b.publico{background:var(--good-soft);color:var(--good)}
.vis-b.pedido{background:var(--warn-soft);color:var(--warn)}
.vis-b.convite{background:var(--blue-soft);color:var(--blue-ink)}
.grp-row{display:flex;align-items:center;gap:11px;padding:11px 12px;border:1px solid var(--border);border-radius:14px;background:var(--surface);margin-bottom:8px;cursor:pointer;transition:.15s;text-align:left;width:100%}
.grp-row:hover{border-color:var(--border-2);box-shadow:var(--shadow-1)}
.grp-row .gi{width:38px;height:38px;flex:0 0 auto;border-radius:11px;background:var(--surface-2);display:grid;place-content:center;color:var(--text-2)}
.grp-row .gi svg{width:19px;height:19px}
.grp-row .gt{flex:1;min-width:0}
.grp-row .gn{font-weight:700;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.grp-row .gm{font-size:12px;color:var(--text-3);margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:flex;gap:6px;align-items:center}
.grp-row>svg{width:16px;height:16px;color:var(--text-3);flex:0 0 auto}
.grp-card{display:flex;flex-direction:column;gap:9px;padding:16px;border:1px solid var(--border);border-radius:18px;background:var(--surface);cursor:pointer;transition:.15s;text-align:left}
.grp-card:hover{border-color:var(--border-2);box-shadow:var(--shadow-2);transform:translateY(-2px)}
.grp-card .gh{display:flex;align-items:center;gap:9px}
.grp-card .h3{font-family:var(--font-display);font-weight:700;letter-spacing:-.015em;font-size:16.5px;flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left}
.grp-card .gdesc{font-size:13px;color:var(--text-2);line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.grp-card .gfoot{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12.5px;color:var(--text-3);font-weight:500}
.grp-card .gfoot .tag{display:inline-flex;gap:5px;align-items:center}
.grp-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px}
.grp-hero{margin-bottom:6px}
.grp-hero h1{font-size:26px;letter-spacing:-.02em}
.grp-hero .gsub{display:flex;align-items:center;gap:9px;margin-top:8px;flex-wrap:wrap}
.grp-hero .gdesc{font-size:14.5px;color:var(--text-2);line-height:1.55;margin-top:12px;max-width:64ch}
.req-row{display:flex;align-items:center;gap:11px;padding:10px 12px;border:1px solid var(--warn-line);background:var(--warn-soft);border-radius:14px;margin-bottom:8px}
.req-row .t{flex:1;min-width:0;font-weight:600;font-size:13.5px}
.req-row .t .un{font-size:12px;color:var(--text-3);font-weight:500}
.inv-row{display:flex;gap:8px;align-items:center;max-width:420px}
.inv-row .input{flex:1}

/* =========================================================================
   PLANS  (itineraries: journey, stay, meeting point)
   ========================================================================= */
.plan-card{display:flex;flex-direction:column;gap:8px;padding:14px 15px;border:1px solid var(--border);border-radius:16px;background:var(--surface);margin-bottom:10px;cursor:pointer;transition:.15s;text-align:left;width:100%}
.plan-card:hover{border-color:var(--border-2);box-shadow:var(--shadow-1)}
.plan-card .ph{display:flex;align-items:center;gap:9px}
.plan-card .ph .pt{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start}
.plan-card .ph .h4{font-family:var(--font-display);font-weight:700;letter-spacing:-.01em;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.plan-card .ph .by{font-size:12px;color:var(--text-3);margin-top:1px}
.plan-card .ph>svg{width:16px;height:16px;color:var(--text-3);flex:0 0 auto}
.plan-card .psum{font-size:13px;color:var(--text-2);line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.plan-card .pfoot{display:flex;gap:7px;flex-wrap:wrap;align-items:center}
.plan-card .pfoot .tag{display:inline-flex;gap:5px;align-items:center}
.plan-card .pfoot .tag svg{width:12px;height:12px}
.avstack{display:flex;align-items:center}
.avstack .person-av{width:28px;height:28px;font-size:12px;border:2px solid var(--surface);margin-left:-9px}
.avstack .person-av:first-child{margin-left:0}
.avstack .more{font-size:11.5px;font-weight:700;color:var(--text-3);margin-left:5px}
/* plan page */
.plan-map{position:relative;aspect-ratio:16/9;max-height:340px;border-radius:16px;overflow:hidden;border:1px solid var(--border);background:var(--surface-2);margin-bottom:8px}
.plan-map .leaflet-container{position:absolute;inset:0;height:100%;width:100%}
.pm-dot{width:26px;height:26px;border-radius:50%;background:var(--blue);color:#fff;font-weight:800;font-size:12.5px;
  display:grid;place-content:center;border:2px solid #fff;box-shadow:0 1px 5px rgba(0,0,0,.4)}
.pm-dot.ev{background:var(--accent);color:var(--on-accent)}
.pm-dot.ev svg{width:14px;height:14px}
.plan-route{stroke:var(--blue);stroke-width:2.5;stroke-dasharray:2 7;stroke-linecap:round;fill:none}
.itin{position:relative;padding-left:40px}
.itin::before{content:"";position:absolute;left:15px;top:14px;bottom:14px;width:0;border-left:2px dashed var(--border-2)}
.it-item{position:relative;margin-bottom:11px}
.it-dot{position:absolute;left:-40px;top:6px;width:32px;height:32px;border-radius:50%;background:var(--surface);border:1.5px solid var(--border-2);display:grid;place-content:center;color:var(--text-2);z-index:1}
.it-dot svg{width:16px;height:16px}
.it-item.k-viagem .it-dot{color:var(--blue-ink);border-color:color-mix(in srgb,var(--blue) 40%,transparent)}
.it-item.k-estadia .it-dot{color:var(--accent-ink);border-color:var(--accent-line)}
.it-item.k-encontro .it-dot{color:var(--good);border-color:color-mix(in srgb,var(--good) 45%,transparent)}
.it-body{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:11px 13px}
.it-top{display:flex;align-items:baseline;gap:9px;flex-wrap:wrap}
.it-kind{font-size:10.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--text-3)}
.it-cost{margin-left:auto;font-weight:700;font-size:13px;white-space:nowrap}
.it-label{font-weight:700;font-size:14.5px;margin-top:2px}
.it-meta{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:12.5px;color:var(--text-2);font-weight:500;margin-top:3px}
.it-meta svg{width:13px;height:13px;color:var(--text-3);flex:0 0 auto}
.it-note{font-size:13px;color:var(--text-2);line-height:1.5;margin-top:5px}
.it-body a.ext{display:inline-flex;align-items:center;gap:5px;font-size:12.5px;font-weight:600;color:var(--blue-ink);margin-top:5px}
.it-body a.ext svg{width:13px;height:13px}
.plan-stats{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0}
.plan-stats .pstat{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:10px 15px;min-width:110px}
.plan-stats .pstat .n{font-family:var(--font-display);font-weight:800;font-size:19px}
.plan-stats .pstat .l{font-size:11.5px;color:var(--text-3);font-weight:600;margin-top:2px}
/* plan editor */
.pe-item{border:1px solid var(--border);border-radius:14px;padding:11px 12px;margin-bottom:9px;background:var(--surface-2)}
.pe-head{display:flex;align-items:center;gap:7px;margin-bottom:9px}
.pe-head .n{width:24px;height:24px;border-radius:7px;background:var(--accent-soft);color:var(--accent-ink);font-size:12px;font-weight:800;display:grid;place-content:center;flex:0 0 auto}
.pe-head select.input{height:36px;font-size:13px;flex:1;min-width:0;padding:0 30px 0 10px}
.pe-tools{display:flex;gap:3px;flex:0 0 auto}
.pe-tools .icon-btn.sm{width:32px;height:32px;border-radius:9px;background:var(--surface)}
.pe-tools .icon-btn.sm svg{width:15px;height:15px}
.pe-tools .icon-btn.sm.on{background:var(--blue-soft);color:var(--blue-ink)}
.pe-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.pe-grid .wide{grid-column:1/-1}
.pe-grid .input{height:38px;font-size:13.5px;padding:0 11px}
.pe-grid textarea.input{height:auto;min-height:44px;padding:8px 11px}
.pe-map{position:relative;height:230px;border-radius:14px;overflow:hidden;border:1px solid var(--border-2);margin-bottom:10px;background:var(--surface-2)}
.pe-map .leaflet-container{position:absolute;inset:0;width:100%;height:100%}
.pe-map .pick-note{position:absolute;left:50%;bottom:8px;transform:translateX(-50%);z-index:500;background:var(--glass-2);backdrop-filter:blur(8px);
  border:1px solid var(--border-2);border-radius:10px;padding:5px 11px;font-size:12px;font-weight:600;white-space:nowrap;box-shadow:var(--shadow-1)}
@media (max-width:560px){ .pe-grid{grid-template-columns:1fr} }

/* mobile: social pieces */
@media (max-width:900px){
  .hero-pill{width:44px;padding:0}
  .hero-pill .hp-lab{display:none}
  .grp-grid{grid-template-columns:1fr}
  .rate-n{font-size:40px}
}

/* ---- auth dialog: sign-up / sign-in --------------------------------------
   Instagram-shaped: centred wordmark, one bold line of intent, four stacked
   fields with floating labels and a right-hand verdict, a full-width primary
   action, the small print beneath it. On phones it is a bottom sheet. */
.modal.auth{position:relative;padding:20px 24px 18px;max-height:calc(100dvh - 40px)}
.auth-x{position:absolute;top:12px;right:12px;z-index:2}
.auth-brand{display:flex;justify-content:center;align-items:center;gap:1px;margin:6px 0 2px}
.auth-brand svg{width:46px;height:46px;margin-left:-8px}
.auth-brand .wm{font-family:var(--font-display);font-weight:800;font-size:27px;letter-spacing:-.02em}
.auth-sub{margin:0 auto 18px;max-width:32ch;text-align:center;color:var(--text-2);font-weight:600;font-size:15px;line-height:1.35}
.auth-form{display:flex;flex-direction:column}

.ffield{margin-bottom:7px}
.fbox{position:relative;display:flex;align-items:stretch;min-height:52px;border:1px solid var(--border-2);border-radius:13px;background:var(--surface-2);
  transition:border-color .15s,box-shadow .15s,background-color .15s}
.fbox:focus-within{border-color:var(--blue);box-shadow:0 0 0 3px var(--blue-soft);background:var(--surface)}
.ffield[data-state="bad"] .fbox{border-color:var(--danger)}
.ffield[data-state="bad"] .fbox:focus-within{box-shadow:0 0 0 3px var(--danger-soft)}
.finput{flex:1;min-width:0;height:52px;padding:20px 12px 4px 14px;border:0;background:transparent;font-size:15px;font-weight:500;color:var(--text);border-radius:13px}
.finput:focus,.finput:focus-visible{outline:none}
.finput:-webkit-autofill,.finput:-webkit-autofill:focus{-webkit-text-fill-color:var(--text);transition:background-color 100000s ease-in-out 0s}
.fbox label{position:absolute;left:14px;top:50%;transform:translateY(-50%);font-size:15px;color:var(--text-3);pointer-events:none;
  transition:top .15s,transform .15s,font-size .15s;max-width:calc(100% - 28px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.finput:focus ~ label,.finput:not(:placeholder-shown) ~ label{top:8px;transform:none;font-size:11px;font-weight:600;letter-spacing:.02em}
.fstate{display:grid;place-content:center;padding-right:13px;flex:0 0 auto}
.ffield.has-pw .fstate{padding-right:2px}
.fstate svg{width:19px;height:19px;display:none}
.ffield[data-state="ok"] .fstate .ok{display:block;color:var(--good)}
.ffield[data-state="bad"] .fstate .bad{display:block;color:var(--danger)}
.fpw{flex:0 0 auto;padding:0 14px 0 10px;font-size:13px;font-weight:700;color:var(--text);border-radius:0 12px 12px 0}
.fpw:hover{color:var(--text-2)}
.fpw:focus-visible{outline-offset:-3px}
.fmsg{display:none;margin:5px 3px 0;font-size:12.5px;line-height:1.4;color:var(--danger)}
.ffield[data-state="bad"] .fmsg:not(:empty){display:block}

.auth-submit{margin-top:7px}
.auth-err{display:none;margin:12px 4px 0;text-align:center;font-size:13.5px;font-weight:600;line-height:1.4;color:var(--danger)}
.auth-err.on{display:block}
.auth-fine{margin:12px 6px 0;text-align:center;font-size:12px;line-height:1.5;color:var(--text-3)}
.auth-sep{display:flex;align-items:center;gap:12px;margin:14px 0 12px;color:var(--text-3);font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.08em}
.auth-sep::before,.auth-sep::after{content:"";flex:1;height:1px;background:var(--border)}
.auth-google{gap:10px}
.auth-google[disabled]{opacity:.6;border-style:dashed;color:var(--text-2)}
.auth-note{margin:7px 6px 0;text-align:center;font-size:12px;line-height:1.45;color:var(--text-3)}
.auth-org{margin:14px 0 0;text-align:center;font-size:13.5px;line-height:1.5;color:var(--text-2)}
.auth-org[hidden]{display:none}
.auth-orgstrip{display:flex;align-items:center;gap:12px;margin-bottom:12px;padding:10px 12px 10px 14px;border-radius:14px;background:var(--accent-soft);color:var(--accent-ink);font-size:13px;line-height:1.35}
.auth-orgstrip[hidden]{display:none}
.auth-orgstrip svg{width:20px;height:20px;flex:0 0 auto}
.auth-orgstrip>div{flex:1;min-width:0}
.auth-orgstrip b{display:block;color:var(--text);font-weight:700}
.auth-orgstrip span{color:var(--text-2)}
.auth-orgstrip .linkbtn{flex:0 0 auto}
.auth-foot{margin-top:14px;padding-top:13px;border-top:1px solid var(--border);text-align:center;font-size:14px;color:var(--text-2)}
.linkbtn{color:var(--blue-ink);font-weight:600;font-size:inherit;line-height:inherit;border-radius:4px}
.linkbtn:hover{text-decoration:underline}
.linkbtn.strong{font-weight:700}

@media (max-width:900px){
  .modal-wrap.auth-sheet{align-items:flex-end;padding:0}
  .modal-wrap.auth-sheet .modal{width:100%;max-height:calc(100dvh - 20px);border-radius:24px 24px 0 0;border-bottom:0;
    padding:18px 18px calc(20px + env(safe-area-inset-bottom));transform:translateY(40px);overscroll-behavior:contain}
  .modal-wrap.auth-sheet.on .modal{transform:none}
  .auth-brand{margin-top:2px}
  .auth-sub{margin-bottom:16px}
}

/* ============================================================================
   Bondi — colour, and the score
   Solid colours only. The flag's green carries the primary actions, the
   active tab, the calendar's weekdays and the score; its red marks weekends,
   today, Bondi points and notifications. Gold, violet and pink stay as solid
   companions where the app wants more colour (the rail, votes, medals).
   Text on colour keeps its contrast: white on the deep green and red of the
   light theme, near-black on their brighter dark-theme versions.
   ========================================================================== */
:root{
  --pt-green:#0f7a45; --pt-green-ink:#0b5e35;
  --pt-red:#d32f24; --pt-red-ink:#a8261c;
  --on-green:#ffffff; --on-red:#ffffff;
  --coral:#d32f24; --sun:#b57800; --violet:#6b4fd8; --pink:#c2185b; --mint:#0f7a45;
  --glow:0 10px 24px -14px rgba(15,122,69,.75);
}
[data-theme="dark"]{
  --pt-green:#3ec27a; --pt-green-ink:#5fd692;
  --pt-red:#ff5c47; --pt-red-ink:#ff8a78;
  --on-green:#06281a; --on-red:#2a0906;
  --coral:#ff5c47; --sun:#f2b53a; --violet:#a594ff; --pink:#ff6aa9; --mint:#3ec27a;
  --glow:0 10px 28px -14px rgba(62,194,122,.55);
}

/* ---- colour around the pages ------------------------------------------------ */
body,#overlay{background:var(--bg)}
.ov-top{position:relative}
/* the flag, as a line under every page title: two parts green, three parts red */
.ov-top::after{content:"";position:absolute;left:0;width:40%;bottom:-1px;height:2px;background:var(--pt-green);pointer-events:none}
.ov-top::before{content:"";position:absolute;left:40%;right:0;bottom:-1px;height:2px;background:var(--pt-red);pointer-events:none}
.grad-h,.hero h1 .accent,.land-auth h1 .accent,h1 .accent{color:var(--pt-green)}

/* ---- primary actions, tabs, segments ------------------------------------------ */
.btn.primary{background:var(--pt-green);color:var(--on-green);box-shadow:none}
.btn.primary:hover{background:var(--pt-green-ink);filter:none}
.pill-btn.accent{background:var(--pt-green);color:var(--on-green)}
.seg button.on{background:var(--pt-green);color:var(--on-green);box-shadow:none}
.tabs button.on::after{background:var(--pt-green);height:3px}
.tag.accent{background:color-mix(in srgb,var(--violet) 14%,var(--surface));color:var(--violet)}
.empty svg{color:var(--violet);opacity:.85}

/* ---- the rail: every place has its colour -------------------------------------- */
#railNav .rail-btn:nth-child(1){--nc:var(--pt-green)}
#railNav .rail-btn:nth-child(2){--nc:var(--blue)}
#railNav .rail-btn:nth-child(3){--nc:var(--pt-red)}
#railNav .rail-btn:nth-child(4){--nc:var(--violet)}
#railNav .rail-btn:nth-child(5){--nc:var(--pink)}
#railNav .rail-btn:nth-child(6){--nc:var(--sun)}
#railNav .rail-btn:hover{color:var(--nc)}
#railNav .rail-btn.on{color:var(--nc);background:color-mix(in srgb,var(--nc) 15%,var(--surface))}
#railNav .rail-btn.on::before{background:var(--nc)}
.rail-btn .badge{background:var(--pt-red);color:var(--on-red)}

/* ---- the calendar, in colour ---------------------------------------------------- */
.cal-dow{color:var(--on-green);background:var(--pt-green);border-radius:10px;padding:7px 0;letter-spacing:.09em}
.cal-dow.we{background:var(--pt-red);color:var(--on-red)}
.cal-cell{border-radius:16px;box-shadow:var(--shadow-1);transition:transform .15s,box-shadow .15s}
.cal-cell:not(.out):hover{transform:translateY(-2px);box-shadow:var(--shadow-2)}
.cal-cell.wk{background:color-mix(in srgb,var(--pt-red) 6%,var(--surface))}
.cal-cell.past{opacity:.66}
.cal-cell.has{background:color-mix(in srgb,var(--c) 12%,var(--surface));border-color:color-mix(in srgb,var(--c) 45%,transparent)}
.cal-cell .dn{font-weight:800}
.cal-cell.wk .dn{color:var(--pt-red)}
.cal-cell.today{border:2px solid var(--pt-green);box-shadow:var(--glow)}
.cal-cell.today .dn{align-self:flex-start;display:inline-grid;place-content:center;min-width:26px;height:26px;padding:0 7px;border-radius:13px;background:var(--pt-red);color:var(--on-red)}
.cal-ev{display:flex;align-items:center;gap:5px;border-left:none;border-radius:9px;padding:4px 8px;
  background:color-mix(in srgb,var(--c) 84%,#000);color:#fff;box-shadow:none;text-shadow:none}
.cal-ev .ce-i{flex:0 0 auto;font-size:12px;text-shadow:none}
.cal-ev .ce-t{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cal-ev:hover{background:color-mix(in srgb,var(--c) 70%,#000)}
.cal-more{color:var(--pt-green);font-weight:700}
.cal-legend{display:flex;gap:8px;flex-wrap:wrap;margin:-4px 0 18px}
.cal-lg{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 12px;border-radius:999px;font-size:12.5px;font-weight:650;
  color:color-mix(in srgb,var(--c) 82%,var(--text));background:color-mix(in srgb,var(--c) 12%,var(--surface));border:1.5px solid color-mix(in srgb,var(--c) 38%,transparent);transition:.15s}
.cal-lg:hover{background:color-mix(in srgb,var(--c) 22%,var(--surface))}
.cal-lg.on{background:color-mix(in srgb,var(--c) 84%,#000);color:#fff;border-color:transparent;box-shadow:0 6px 16px -9px var(--c)}
.cal-lg.off{opacity:.45}
[data-theme="dark"] .cal-lg{color:color-mix(in srgb,var(--c) 55%,#fff)}
[data-theme="dark"] .cal-lg.on{color:#fff}
@media (max-width:900px){
  .cal-dow{font-size:9.5px;padding:5px 0;border-radius:7px;letter-spacing:.04em}
  .cal-ev{font-size:0;padding:0;height:6px;border-radius:3px;box-shadow:none}
  .cal-ev .ce-i{display:none}
  .cal-cell{border-radius:10px}
  .cal-cell.today .dn{min-width:20px;height:20px;padding:0 5px;font-size:10.5px}
  .cal-legend{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:-6px -16px 14px;padding:0 16px}
  .cal-legend::-webkit-scrollbar{display:none}
  .cal-lg{flex:0 0 auto;height:30px;font-size:12px}
}

/* ---- avatars: Bondi looks and level frames ------------------------------------- */
.look{background:var(--in)}
.look-e{line-height:1;filter:drop-shadow(0 1px 1px rgba(0,0,0,.18))}
.prof-av.look .look-e{font-size:52px}
.person-av.look .look-e{font-size:26px}
.com-av.look .look-e{font-size:19px}
.rail-avatar.look .look-e{font-size:21px}
.fr{border:3px solid var(--frc,var(--border-2))!important;background:var(--in,var(--surface-2))!important}
.fr-bronze{--frc:#b36a2e}
.fr-silver{--frc:#98a3b3}
.fr-gold{--frc:#d9a200}
.fr-sunset{--frc:#e8532f}
/* the rainbow ring: four solid colours, one to a side */
.fr-rainbow{--frc:#d32f24;border-color:#d32f24 #f2b53a #0f7a45 #1b4dff!important}
.prof-av.fr{border-width:4px!important}

/* ---- titles and score chips --------------------------------------------------- */
.tbadge{display:inline-flex;align-items:center;gap:4px;height:22px;padding:0 9px;border-radius:999px;font-size:11.5px;font-weight:700;white-space:nowrap;
  color:color-mix(in srgb,var(--tc) 72%,#000);background:color-mix(in srgb,var(--tc) 13%,var(--surface));border:1px solid color-mix(in srgb,var(--tc) 32%,transparent)}
[data-theme="dark"] .tbadge{color:color-mix(in srgb,var(--tc) 50%,#fff)}
.bchip{display:inline-flex;align-items:center;gap:3px;height:22px;padding:0 9px;border-radius:999px;font-size:11.5px;font-weight:800;white-space:nowrap;
  color:var(--on-red);background:var(--pt-red);box-shadow:none}
.bchip.big{height:28px;padding:0 12px;font-size:13px}
.pbadges{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}
.prof-bondi{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:10px}
.com-h .tbadge{height:19px;font-size:10.5px;padding:0 7px}
.com-who,.com-h .nm[data-act]{cursor:pointer}
.com-h .nm[data-act]:hover{text-decoration:underline}

/* ---- comment votes ---------------------------------------------------------------- */
.com-f{display:flex;align-items:center;gap:2px;margin-top:6px}
.vote{width:30px;height:28px;border-radius:9px;display:grid;place-content:center;color:var(--text-3);transition:.15s}
.vote svg{width:17px;height:17px}
.vote:hover:not([disabled]){background:var(--surface-2)}
.vote.up:hover:not([disabled]),.vote.up.on{color:var(--coral)}
.vote.down:hover:not([disabled]),.vote.down.on{color:var(--violet)}
.vote.up.on{background:color-mix(in srgb,var(--coral) 14%,transparent)}
.vote.up.on svg{fill:currentColor}
.vote.down.on{background:color-mix(in srgb,var(--violet) 14%,transparent)}
.vote.down.on svg{fill:currentColor}
.vote[disabled]{opacity:.35;cursor:default}
.vscore{min-width:22px;text-align:center;font-size:13px;font-weight:800;color:var(--text-2)}
.vscore.pos{color:var(--coral)} .vscore.neg{color:var(--violet)}
.com-hd{display:flex;align-items:center;justify-content:space-between;gap:10px}
.com-sort{display:inline-flex;gap:2px;background:var(--surface-2);border-radius:9px;padding:2px;text-transform:none;letter-spacing:0}
.com-sort button{height:26px;padding:0 10px;border-radius:7px;font-size:11.5px;font-weight:700;color:var(--text-3)}
.com-sort button.on{background:var(--surface);color:var(--text);box-shadow:var(--shadow-1)}

/* ---- toasts: points, and achievements with confetti ------------------------------- */
.toast.bondi{background:var(--pt-green);color:var(--on-green)}
.toast.bondi.down{background:var(--surface-3);color:var(--text)}
.toast.ach{position:relative;overflow:visible;gap:12px;padding:12px 18px 12px 12px;background:var(--surface);color:var(--text);
  border:2px solid var(--pt-green);animation:ach-pop .45s cubic-bezier(.2,1.6,.4,1)}
.ach-i{font-size:30px;width:46px;height:46px;border-radius:50%;display:grid;place-content:center;background:var(--pt-red)}
.ach-t{display:flex;flex-direction:column;line-height:1.25}
.ach-t b{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--pt-green)}
.ach-t span{font-size:15px;font-weight:750}
.toast .cf{position:absolute;top:50%;width:7px;height:10px;border-radius:2px;opacity:0;animation:cf-fly 1.1s ease-out forwards}
@keyframes cf-fly{0%{opacity:1;transform:translate(0,0) rotate(0)}100%{opacity:0;transform:translate(var(--x),var(--y)) rotate(var(--r))}}
@keyframes ach-pop{from{transform:scale(.7);opacity:0}to{transform:scale(1);opacity:1}}

/* ---- the Bondi page ----------------------------------------------------------------- */
.bhero{display:flex;gap:26px;align-items:center;flex-wrap:wrap;padding:24px;border-radius:24px;margin-bottom:26px;position:relative;overflow:hidden;
  background:color-mix(in srgb,var(--tc) 10%,var(--surface));
  border:1px solid color-mix(in srgb,var(--tc) 30%,transparent);box-shadow:var(--shadow-2)}
.bring{--p:0;width:132px;height:132px;border-radius:50%;display:grid;place-content:center;flex:0 0 auto;
  background:conic-gradient(var(--tc) calc(var(--p)*1%),color-mix(in srgb,var(--tc) 16%,var(--surface-3)) 0)}
.bring .prof-av{width:112px;height:112px;margin:0;border-color:var(--surface)}
.binfo{flex:1;min-width:240px;position:relative}
.bscore{display:flex;align-items:baseline;gap:10px}
.bscore b{font-family:var(--font-display);font-size:52px;font-weight:850;letter-spacing:-.04em;line-height:1;color:var(--pt-green)}
.bscore span{font-weight:700;color:var(--text-2)}
.brow{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:10px 0 14px}
.blvl,.bplace{display:inline-flex;align-items:center;gap:5px;font-size:13px;font-weight:650;color:var(--text-2)}
.bplace svg{width:15px;height:15px;color:var(--sun)}
.bprog{height:10px;border-radius:6px;background:color-mix(in srgb,var(--tc) 14%,var(--surface-3));overflow:hidden}
.bprog span{display:block;height:100%;border-radius:6px;background:var(--pt-green);transition:width .8s cubic-bezier(.2,.8,.2,1)}
.bnext{margin-top:8px;font-size:13px;font-weight:600;color:var(--text-2)}
.bsec{margin:30px 0}
.bsec h2{font-size:21px;margin-bottom:4px}
.bsec .sub{color:var(--text-3);font-size:13.5px;margin-bottom:14px}
.bondi-cols{display:grid;grid-template-columns:1fr 1fr;gap:26px}
.bondi-cols .bsec{margin:10px 0}
.bondi-cta{display:flex;gap:18px;align-items:center;flex-wrap:wrap;padding:22px;border-radius:22px;border:2px solid var(--pt-green);
  background:var(--surface);box-shadow:var(--shadow-2)}
.bondi-cta .bc-i{font-size:42px}
.bondi-cta > div:nth-child(2){flex:1;min-width:220px}
.bondi-cta p{color:var(--text-2);margin:4px 0 0}

/* rewards: one card per level */
.look-photo{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.look-cap{font-size:13px;font-weight:650;color:var(--text-2)}
.tier-rail{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(200px,1fr);gap:12px;overflow-x:auto;padding:4px 2px 14px;scroll-snap-type:x proximity}
.tier-card{scroll-snap-align:start;display:flex;flex-direction:column;gap:10px;padding:14px;border-radius:18px;background:var(--surface);
  border:1px solid var(--border);box-shadow:var(--shadow-1);position:relative}
.tier-card.open{border-color:color-mix(in srgb,var(--tc) 40%,transparent);background:color-mix(in srgb,var(--tc) 8%,var(--surface))}
.tier-card.cur{border:2px solid var(--tc);box-shadow:0 10px 26px -14px var(--tc)}
.tier-card.closed{filter:grayscale(.85);opacity:.72}
.tc-h{display:flex;gap:10px;align-items:center}
.tc-i{font-size:26px;width:44px;height:44px;border-radius:14px;display:grid;place-content:center;background:color-mix(in srgb,var(--tc) 18%,var(--surface-2))}
.tc-n{font-weight:800;font-size:15px}
.tc-m{font-size:12px;color:var(--text-3);font-weight:600}
.tc-looks{display:flex;gap:8px}
.tc-f{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:600;color:var(--text-2)}
.frame-dot{width:18px;height:18px;border-radius:50%;display:inline-block}
.tc-title{align-self:stretch}
.look-pick{width:52px;height:52px;border-radius:50%;display:grid;place-content:center;background:var(--in,var(--surface-2));
  border:3px solid transparent;overflow:hidden;transition:transform .15s,box-shadow .15s;position:relative}
.look-pick .look-e{font-size:26px}
.look-pick img{width:100%;height:100%;object-fit:cover}
.look-pick.photo{background:var(--surface-2);font-weight:800;color:var(--text-2)}
.look-pick:hover:not([disabled]){transform:scale(1.08)}
.look-pick.on{border-color:var(--surface);box-shadow:0 0 0 3px var(--tc,var(--accent)),0 8px 18px -8px var(--tc,var(--accent))}
.look-pick[disabled]{cursor:not-allowed}

/* trophies */
.trophies{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px}
.trophy{display:flex;gap:13px;align-items:center;padding:14px;border-radius:18px;background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow-1)}
.trophy .medal{--m1:#f6c28b;--m2:#b36a2e;width:54px;height:54px;flex:0 0 auto;border-radius:50%;display:grid;place-content:center;
  background:var(--m1);border:3px solid var(--m2);box-shadow:none}
.trophy .medal span{font-size:27px;filter:drop-shadow(0 1px 1px rgba(0,0,0,.25))}
.trophy.m-silver .medal{--m1:#f4f7fb;--m2:#8b97a9}
.trophy.m-gold .medal{--m1:#fff0a0;--m2:#d49700}
.trophy.m-special .medal{--m1:#9be7ff;--m2:#7c5cff}
.trophy.won{border-color:color-mix(in srgb,var(--m2,#b36a2e) 30%,transparent)}
.trophy.won{background:color-mix(in srgb,var(--m2) 9%,var(--surface))}
.trophy.locked .medal{filter:grayscale(1);opacity:.45}
.trophy.locked .tn{color:var(--text-2)}
.trophy .tb{flex:1;min-width:0}
.trophy .tn{font-weight:800;font-size:14.5px}
.trophy .td{font-size:12.5px;color:var(--text-2);margin-top:2px;line-height:1.35}
.trophy .tw{font-size:11.5px;color:var(--text-3);font-weight:600;margin-top:5px}
.trophy .tp{height:6px;border-radius:4px;background:var(--surface-3);overflow:hidden;margin-top:7px}
.trophy .tp span{display:block;height:100%;border-radius:4px;background:var(--pt-green)}

/* how points are earned */
.how{display:flex;flex-direction:column;border-radius:18px;overflow:hidden;border:1px solid var(--border);background:var(--surface);box-shadow:var(--shadow-1)}
.how-row{display:flex;align-items:center;gap:12px;padding:10px 14px;border-bottom:1px solid var(--border)}
.how-row:last-child{border-bottom:none}
.how-p{min-width:46px;height:28px;border-radius:9px;display:grid;place-content:center;font-weight:850;font-size:13px;color:var(--on-green);background:var(--pt-green)}
.how-row.neg .how-p{background:#6b7486;color:#fff}
.how-row.total{background:color-mix(in srgb,var(--pt-red) 7%,var(--surface))}
.how-row.total .how-p{background:var(--pt-red);color:var(--on-red)}
.how-l{flex:1;font-size:13.5px;font-weight:600;display:flex;flex-direction:column}
.how-l small{font-size:11.5px;color:var(--text-3);font-weight:600}
.how-m{font-size:13px;color:var(--text-2);white-space:nowrap}
.how-m b{color:var(--text)}

/* the leaderboard */
.leaders{display:flex;flex-direction:column;gap:8px}
.leader{display:flex;align-items:center;gap:12px;padding:10px 14px;border-radius:16px;background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow-1);cursor:pointer;transition:.15s}
.leader:hover{transform:translateX(3px);box-shadow:var(--shadow-2)}
.leader.me{border:2px solid var(--pt-green);background:color-mix(in srgb,var(--pt-green) 6%,var(--surface))}
.leader .lm{width:30px;text-align:center;font-size:22px}
.leader .lp{font-weight:850;color:var(--text-3);font-size:15px}
.leader .person-av{width:42px;height:42px;font-size:15px}
.leader .person-av.look .look-e{font-size:21px}
.leader .ln{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:3px}
.leader .ln b{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.leader .ln small{color:var(--text-3);font-weight:600}

/* the account page card */
.bacct{display:flex;align-items:center;gap:14px;padding:14px 16px;border-radius:18px;margin:14px 0 4px;color:inherit;
  border:2px solid var(--pt-green);background:color-mix(in srgb,var(--tc) 8%,var(--surface));box-shadow:var(--shadow-1);transition:.15s}
.bacct:hover{box-shadow:var(--shadow-2);transform:translateY(-1px)}
.ba-i{font-size:28px;width:50px;height:50px;border-radius:15px;display:grid;place-content:center;background:color-mix(in srgb,var(--tc) 18%,var(--surface-2))}
.ba-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.ba-t b{font-size:20px;font-weight:850}
.ba-t b small{font-size:12.5px;font-weight:650;color:var(--text-3)}
.ba-t > span{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:12.5px}

@media (max-width:900px){
  .bsub{display:none}
  .bondi-cols{grid-template-columns:1fr}
  .bhero{padding:18px;gap:16px}
  .bring{width:104px;height:104px}
  .bring .prof-av{width:88px;height:88px}
  .prof-av.look .look-e{font-size:40px}
  .bscore b{font-size:40px}
  .trophies{grid-template-columns:1fr}
}

/* ============================================================================
   Search suggestions, the event page's tabs and "Vou" window, reviews as
   posts on profiles, and account deletion.
   ========================================================================== */

/* ---- search suggestions ------------------------------------------------------ */
.sug-wrap{position:relative;flex:1;min-width:0;display:flex}
.sug-wrap .searchbar{flex:1;min-width:0}
.hero-search .sug-wrap{min-width:240px}
.sug{position:absolute;left:0;right:0;top:calc(100% + 8px);z-index:60;display:none;max-height:min(460px,62dvh);overflow-y:auto;overscroll-behavior:contain;
  background:var(--glass-2);backdrop-filter:blur(18px) saturate(1.4);border:1px solid var(--border);border-radius:16px;box-shadow:var(--shadow-3);padding:6px}
.sug.on{display:block;animation:menupop .16s ease-out}
.sug-sec+.sug-sec{border-top:1px solid var(--border);margin-top:4px;padding-top:4px}
.sug-h{font-size:10.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--text-3);padding:8px 10px 4px}
.sug-row{display:flex;align-items:center;gap:11px;width:100%;padding:8px 10px;border-radius:11px;text-align:left;color:var(--text)}
.sug-row:hover,.sug-opt.active{background:var(--surface-2)}
.sug-opt.active{box-shadow:inset 0 0 0 1.5px var(--ring)}
.sug-ic{width:34px;height:34px;flex:0 0 auto;border-radius:10px;display:grid;place-content:center;background:var(--surface-2);color:var(--text-2)}
.sug-row[style*="--c"] .sug-ic{background:var(--c);color:#fff}
.sug-ic svg{width:17px;height:17px}
.sug-t{flex:1;min-width:0;display:flex;flex-direction:column}
.sug-l{font-weight:650;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sug-l mark{background:none;color:inherit;font-weight:800;text-decoration:underline;text-decoration-color:var(--pt-green);text-decoration-thickness:2px;text-underline-offset:2px}
.sug-s{font-size:12px;color:var(--text-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:1px}
.sug-foot .sug-ic{background:transparent;border:1.5px dashed var(--border-2)}
.sug-chips{display:flex;flex-wrap:wrap;gap:6px;padding:4px 8px 8px}
.sug-chips .chip{height:34px;padding:0 11px;font-size:13px}
.act-filters{display:flex;gap:6px;flex-wrap:wrap}
.act-filters .chip{height:32px;padding:0 10px;font-size:12.5px;max-width:100%}
.act-filters .chip svg:last-child{width:14px;height:14px;margin-left:2px;opacity:.7}
@media (max-width:900px){ .sug{max-height:52dvh} }

/* ---- "Vou" and "Favorito", by the title ------------------------------------------ */
.hero-acts{display:flex;gap:8px;margin-top:14px;flex-wrap:wrap}
.hact{height:40px;padding:0 16px 0 13px;border-radius:999px;display:inline-flex;align-items:center;gap:7px;font-weight:700;font-size:14px;color:#fff;
  background:rgba(10,12,17,.46);backdrop-filter:blur(9px);border:1.5px solid rgba(255,255,255,.55);transition:background .15s,border-color .15s,transform .12s}
.hact svg{width:18px;height:18px;stroke-width:2.1}
.hact:hover{background:rgba(10,12,17,.66);border-color:#fff}
.hact:active{transform:scale(.96)}
.hact:focus-visible{outline:3px solid #fff;outline-offset:2px;border-radius:999px}
.hact.go.on{background:var(--pt-green);border-color:var(--pt-green);color:var(--on-green)}
.hact.fav.on{background:var(--like);border-color:var(--like);color:#fff}
.hact.fav.on svg{animation:favpop .4s}

/* ---- the event page's tabs --------------------------------------------------------- */
.dtabs{position:sticky;top:-18px;z-index:5;display:flex;gap:2px;margin:0 -18px 18px;padding:0 12px;background:var(--surface);
  border-bottom:1px solid var(--border);overflow-x:auto;scrollbar-width:none}
.dtabs::-webkit-scrollbar{display:none}
.dtab{position:relative;display:inline-flex;align-items:center;gap:7px;padding:13px 10px 12px;font-weight:650;font-size:13.5px;color:var(--text-2);white-space:nowrap}
.dtab svg{width:16px;height:16px;flex:0 0 auto}
.dtab:hover{color:var(--text)}
.dtab.on{color:var(--text)}
.dtab.on::after{content:"";position:absolute;left:8px;right:8px;bottom:-1px;height:3px;border-radius:3px 3px 0 0;background:var(--pt-green)}
.dtab-n{font-size:11px;font-weight:800;border-radius:7px;padding:2px 6px;background:var(--surface-2);color:var(--text-2)}
.dtab-n.sc{background:var(--accent-soft);color:var(--accent-ink)}
.dt-short{display:none}
.dtab-panel{animation:fadein .2s}
.dtabs-anchor{height:0}
.detail.expanded .dtabs{padding:0 18px}
.detail.expanded .dtab{padding:15px 12px 14px;font-size:14px}
/* the quick look is too narrow for the long name: it says "Avaliações" there, the full page says it all */
.detail:not(.expanded) .dt-long{display:none}
.detail:not(.expanded) .dt-short{display:inline}
@media (max-width:440px){ .dt-long{display:none!important} .dt-short{display:inline!important} }
.rev-cols,.go-cols{display:block}
.detail.expanded .rev-cols,.detail.expanded .go-cols{display:grid;grid-template-columns:1fr 1fr;gap:0 30px;align-items:start}
.detail.expanded .rev-cols>*,.detail.expanded .go-cols>*{min-width:0}
@media (max-width:900px){ .detail.expanded .rev-cols,.detail.expanded .go-cols{grid-template-columns:1fr} }
.go-banner{display:flex;align-items:center;gap:11px;padding:12px 14px;border-radius:15px;margin-bottom:18px;flex-wrap:wrap;
  background:color-mix(in srgb,var(--pt-green) 9%,var(--surface));border:1px solid color-mix(in srgb,var(--pt-green) 30%,transparent)}
.go-banner>svg{width:20px;height:20px;color:var(--pt-green);flex:0 0 auto}
.go-banner>span{flex:1;min-width:180px;font-size:13.5px;font-weight:600;line-height:1.4}
.detail-actions .btn{padding:0 12px}
@media (max-width:420px){ .detail-actions{gap:6px} .detail-actions .btn{padding:0 8px;font-size:13.5px} .detail-actions .btn svg{width:17px;height:17px} }

/* ---- the "Vou" window --------------------------------------------------------------- */
.modal.going{width:min(520px,100%)}
.go-head{align-items:flex-start;gap:12px;padding-top:22px}
.go-hd{display:flex;flex-direction:column;gap:6px;min-width:0}
.go-kick{display:inline-flex;align-items:center;gap:6px;align-self:flex-start;font-size:11.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;
  color:var(--on-green);background:var(--pt-green);border-radius:999px;padding:4px 10px 4px 7px}
.go-kick svg{width:15px;height:15px}
.go-head h2{font-size:21px;line-height:1.15}
.go-when{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:var(--text-2)}
.go-when svg{width:15px;height:15px;color:var(--text-3)}
.go-lead{font-size:14px;color:var(--text-2);line-height:1.5;margin:0 0 14px}
.go-opt{border:1px solid var(--border);border-radius:16px;background:var(--surface);margin-bottom:10px;overflow:hidden;transition:border-color .15s,box-shadow .15s}
.go-opt:hover{border-color:var(--border-2);box-shadow:var(--shadow-1)}
.go-opt.on{border-color:color-mix(in srgb,var(--pt-green) 55%,transparent);background:color-mix(in srgb,var(--pt-green) 7%,var(--surface))}
.go-main{display:flex;align-items:center;gap:13px;width:100%;padding:14px;text-align:left}
.go-main.static{cursor:default}
.go-ic{width:44px;height:44px;flex:0 0 auto;border-radius:13px;display:grid;place-content:center;background:var(--accent-soft);color:var(--accent-ink)}
.go-opt:nth-child(3) .go-ic{background:var(--blue-soft);color:var(--blue-ink)}
.go-opt:nth-child(4) .go-ic,.go-opt:last-child .go-ic{background:color-mix(in srgb,var(--pink) 14%,var(--surface));color:var(--pink)}
.go-opt.on .go-ic{background:var(--pt-green);color:var(--on-green)}
.go-ic svg{width:21px;height:21px}
.go-tx{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.go-tx b{font-size:15px;font-weight:750}
.go-tx span{font-size:12.5px;color:var(--text-2);line-height:1.4}
.go-chev{width:18px;height:18px;color:var(--text-3);flex:0 0 auto}
.go-foot{display:flex;gap:6px;flex-wrap:wrap;padding:0 14px 12px 71px}
.go-see{display:inline-flex;align-items:center;gap:5px;font-size:12.5px;font-weight:650;color:var(--blue-ink);border-radius:8px;padding:3px 0}
.go-see svg{width:14px;height:14px}
.go-see:hover{text-decoration:underline}
.go-see.quiet{color:var(--text-3);margin-left:auto}
.go-cmp{padding:0 14px 14px}
.go-cmp textarea.input{min-height:64px}
.go-cmp-a{display:flex;justify-content:flex-end;margin-top:8px}
@media (max-width:560px){ .go-foot{padding-left:14px} }

/* ---- reviews on the event page ------------------------------------------------------ */
.rev-h .nm[data-act],.rev .com-who[data-act]{cursor:pointer}
.rev-h .nm[data-act]:hover{text-decoration:underline}
.rev-f{display:flex;align-items:center;gap:10px;margin-top:6px}
.rev-on{display:inline-flex;align-items:center;gap:5px;font-size:11.5px;font-weight:700;color:var(--blue-ink);border-radius:7px;padding:3px 7px;background:var(--blue-soft)}
.rev-on svg{width:13px;height:13px}
.rlike{display:inline-flex;align-items:center;gap:5px;height:30px;padding:0 10px;border-radius:9px;font-size:13px;font-weight:750;color:var(--text-3);transition:.15s}
.rlike svg{width:17px;height:17px}
.rlike:hover:not([disabled]){background:var(--like-soft);color:var(--like)}
.rlike.on{color:var(--like);background:var(--like-soft)}
.rlike.on svg{animation:favpop .35s}
.rlike[disabled]{cursor:default;opacity:.65}
.share-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:12px}
.share-row .chip{height:38px}
.share-row .hint{flex:1;min-width:180px}

/* ---- reviews as posts: profile and activity ---------------------------------------- */
.tabs .tab-n{margin-left:6px;font-size:11px;font-weight:800;border-radius:7px;padding:1px 6px;background:var(--surface-2);color:var(--text-2)}
.posts{display:grid;gap:14px;max-width:720px}
.post{background:var(--surface);border:1px solid var(--border);border-radius:20px;padding:16px;box-shadow:var(--shadow-1);transition:box-shadow .3s,border-color .3s}
.post.draft{border-style:dashed;background:color-mix(in srgb,var(--surface-2) 55%,var(--surface))}
.post.flash{border-color:var(--pt-green);box-shadow:0 0 0 3px color-mix(in srgb,var(--pt-green) 30%,transparent)}
.pst-who{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.pst-by{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:13.5px}
.pst-by .nm{font-weight:750;cursor:pointer}
.pst-by .nm:hover{text-decoration:underline}
.pst-ev{--c:#888;display:flex;align-items:center;gap:13px;padding:10px;border-radius:15px;background:var(--surface-2);cursor:pointer;transition:background .15s}
.pst-ev:hover{background:var(--surface-3)}
.pst-th{position:relative;width:64px;height:64px;flex:0 0 auto;border-radius:12px;overflow:hidden;background:var(--c);display:grid;place-content:center}
.pst-th .glyph{width:28px;height:28px;color:rgba(255,255,255,.95)}
.pst-th .glyph svg{width:100%;height:100%}
.pst-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.pst-evt{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.pst-evt .ev-cat{color:var(--text-3)}
.pst-evt b{font-family:var(--font-display);font-weight:750;font-size:15.5px;line-height:1.2;letter-spacing:-.01em}
.pst-evm{font-size:12.5px;color:var(--text-3)}
.pst-score{flex:0 0 auto;display:flex;align-items:baseline;gap:1px;padding:8px 11px;border-radius:13px;background:var(--pt-green);color:var(--on-green)}
.pst-score b{font-family:var(--font-display);font-size:24px;font-weight:850;letter-spacing:-.02em;line-height:1}
.pst-score small{font-size:12px;font-weight:700;opacity:.85}
.pst-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:12px 2px 0;font-size:12px}
.pst-meta .when{color:var(--text-3)}
.pst-note{font-size:15px;line-height:1.55;margin:8px 2px 0;white-space:pre-line;overflow-wrap:anywhere}
.pst-subs{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
.pst-sub{display:inline-flex;align-items:center;gap:5px;font-size:11.5px;font-weight:600;color:var(--text-2);background:var(--surface-2);border-radius:8px;padding:4px 8px}
.pst-sub svg{width:13px;height:13px;color:var(--text-3)}
.pst-sub b{font-weight:800;color:var(--text)}
.pst-foot{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:12px;padding-top:10px;border-top:1px solid var(--border)}
.rrep{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 10px;border-radius:9px;font-size:13px;font-weight:650;color:var(--text-2)}
.rrep svg{width:17px;height:17px}
.rrep:hover,.rrep[aria-expanded="true"]{background:var(--surface-2);color:var(--text)}
.pst-own{margin-left:auto;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.pst-state{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:700;color:var(--text-3)}
.pst-state.on{color:var(--good)}
.pst-state svg{width:14px;height:14px}
.pst-comments{margin-top:10px;padding-top:4px;border-top:1px solid var(--border)}
.pst-comments .com:last-child{border-bottom:none}
.pst-comments .com-write{margin-top:10px;border-bottom:none;padding-bottom:0}
.feed-sec+.feed-sec{margin-top:30px}
.feed-h{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:750;letter-spacing:.07em;text-transform:uppercase;color:var(--text-3);margin:0 0 12px}
.feed-h svg{width:16px;height:16px}
@media (max-width:560px){ .post{padding:13px;border-radius:17px} .pst-th{width:54px;height:54px} .pst-score b{font-size:21px} }

/* ---- account: settings and deletion ------------------------------------------------ */
.danger-zone{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;border-color:color-mix(in srgb,var(--danger) 35%,transparent)}
.danger-zone .dz-t{flex:1;min-width:220px}
.danger-zone .dsec-h{color:var(--danger);margin-bottom:6px}
.danger-zone b{font-size:15px}
.danger-zone .hint{margin:4px 0 0;line-height:1.45}
.btn.danger.solid{background:var(--danger);color:#fff}
.btn.danger.solid:hover{background:color-mix(in srgb,var(--danger) 86%,#000)}
.btn.busy{opacity:.7;pointer-events:none}
.modal.del{width:min(480px,100%)}
.del-warn{display:flex;gap:12px;padding:14px;border-radius:15px;background:var(--danger-soft);color:var(--text);margin-bottom:16px}
.del-warn>svg{width:22px;height:22px;color:var(--danger);flex:0 0 auto;margin-top:1px}
.del-warn b{font-size:14px}
.del-warn p{margin:8px 0 0;font-size:13px;font-weight:700;color:var(--danger)}
.del-list{margin:8px 0 0;padding-left:18px;list-style:disc;font-size:13.5px;line-height:1.5;color:var(--text-2)}
.del-list li+li{margin-top:3px}
.del-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap}
.del-actions .btn{flex:0 0 auto}
.pst-own{font-size:13px}
#delErr{text-align:left;margin:-4px 2px 14px}
/* phones: the event sheet sits above the bottom navigation, so its foot
   (calendar, directions, share) is no longer hidden behind it */
@media (max-width:900px){
  .detail{bottom:calc(64px + env(safe-area-inset-bottom))}
  .detail.hidden{transform:translateY(calc(100% + 90px))}
  .detail-card{max-height:calc(100dvh - 138px - env(safe-area-inset-bottom))}
  .detail.expanded .detail-card{height:calc(100dvh - 138px - env(safe-area-inset-bottom));max-height:calc(100dvh - 138px - env(safe-area-inset-bottom))}
  .detail-actions{padding-bottom:14px}
}
.hero-search{position:relative;z-index:30}
.hero-search .sug{background:var(--surface);backdrop-filter:none}
.search-dock:has(.sug.on){z-index:65}

/* ============================================================================
   v17 — notifications in Atividade, social links on profiles, the Bondi page
   in tabs with hexagon badges and drawn glyphs instead of emoji, and search
   results while typing.
   ========================================================================== */

/* ---- notifications: a glyph for what each one is about ------------------- */
.notif{align-items:center;gap:12px;padding:11px 14px;margin-bottom:8px;border-radius:14px;transition:background .15s,border-color .15s}
.notif[data-act]{cursor:pointer}
.notif[data-act]:hover{border-color:var(--border-2)}
.notif.read[data-act]:hover{background:var(--surface-2)}
.notif .nt{min-width:0}
.notif .nt .txt{line-height:1.4}
.notif .nd{margin:0}
.n-ico{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;flex:0 0 auto;background:var(--surface-2);color:var(--text-2)}
.n-ico svg{width:19px;height:19px}
.n-ico.t-like{background:var(--like-soft);color:var(--like)}
.n-ico.t-blue{background:var(--blue-soft);color:var(--blue)}
.n-ico.t-green{background:var(--good-soft);color:var(--good)}
.n-ico.t-amber{background:var(--warn-soft);color:var(--warn)}
.n-ico.t-danger{background:var(--danger-soft);color:var(--danger)}
.n-ico.t-violet{background:rgba(112,72,232,.12);color:#6741d9}
[data-theme="dark"] .n-ico.t-violet{background:rgba(151,117,250,.16);color:#b197fc}
.notif .hexb.sm{width:38px;height:38px}
.notif .tier-ico{width:38px;height:38px}
.notif-sec{margin-bottom:30px}
.feed-h .nnew{margin-left:4px;height:21px;padding:0 9px;border-radius:999px;display:inline-flex;align-items:center;font-size:11px;letter-spacing:0;text-transform:none;font-weight:800;background:var(--pt-red);color:var(--on-red)}
.notif-more{margin-top:4px}

/* ---- social links -------------------------------------------------------- */
.prof-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.plink{height:36px;min-width:36px;padding:0 9px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;gap:7px;
  background:var(--surface);border:1px solid var(--border-2);color:var(--text-2);font-size:13px;font-weight:650;transition:color .15s,border-color .15s,background .15s,transform .15s}
.plink svg{width:17px;height:17px;flex:0 0 auto}
.plink:hover{color:var(--bc);border-color:color-mix(in srgb,var(--bc) 45%,transparent);background:color-mix(in srgb,var(--bc) 8%,var(--surface));transform:translateY(-1px)}
.plink.site{padding:0 13px 0 11px}
.plink.site span{max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.links-edit{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.link-in{position:relative;min-width:0}
.link-in.wide{grid-column:1/-1}
.link-in .li-i{position:absolute;left:13px;top:50%;transform:translateY(-50%);color:var(--bc);pointer-events:none;display:grid}
.link-in .li-i svg{width:18px;height:18px}
.link-in .input{width:100%;padding-left:41px;height:44px;font-size:14px}
.link-in .input.bad{border-color:var(--danger);box-shadow:0 0 0 3px var(--danger-soft)}
#lkErr{text-align:left;margin:8px 2px 0}
@media (max-width:600px){ .links-edit{grid-template-columns:1fr} }

/* ---- avatars: a glyph on the look's colour ------------------------------- */
.look{color:#fff}
.look-e{display:grid;place-items:center;filter:none}
.look-e svg{width:1em;height:1em;stroke-width:1.9}
.look-pick{color:#fff}
.look-pick .look-g{width:24px;height:24px;stroke-width:1.9}

/* ---- level marks and title chips ----------------------------------------- */
.tier-ico{width:40px;height:40px;border-radius:12px;display:inline-grid;place-items:center;flex:0 0 auto;
  background:color-mix(in srgb,var(--tc) 14%,var(--surface));color:color-mix(in srgb,var(--tc) 78%,#000);border:1px solid color-mix(in srgb,var(--tc) 28%,transparent)}
[data-theme="dark"] .tier-ico{background:color-mix(in srgb,var(--tc) 20%,var(--surface));color:color-mix(in srgb,var(--tc) 55%,#fff)}
.tier-ico svg{width:52%;height:52%}
.tier-ico.xs{width:20px;height:20px;border-radius:6px}
.tier-ico.xs svg{width:13px;height:13px}
.tier-ico.lg{width:50px;height:50px;border-radius:15px}
.tbadge{gap:5px}
.tbadge .tb-i{width:12px;height:12px;flex:0 0 auto}

/* ---- achievement badges: a hexagon in the medal's colours ---------------- */
.hexb{--hf:#f6e7d8;--hs:#b86b2d;--hg:#8a4a1c;position:relative;display:inline-grid;place-items:center;width:64px;height:64px;flex:0 0 auto}
.hexb .hx{position:absolute;inset:0;width:100%;height:100%}
.hexb .hx path{fill:var(--hf);stroke:var(--hs);stroke-width:3}
.hexb .hx-g{position:relative;width:42%;height:42%;color:var(--hg)}
.hexb.m-silver{--hf:#eef1f5;--hs:#8a96a8;--hg:#4f5b6e}
.hexb.m-gold{--hf:#fcf1cc;--hs:#cf9b00;--hg:#8a6400}
.hexb.m-special{--hf:#ece6ff;--hs:#7048e8;--hg:#5235b8}
.hexb.off{--hf:var(--surface-2);--hs:var(--border-2);--hg:var(--text-3)}
.hexb.off .hx-g{opacity:.75}
[data-theme="dark"] .hexb.m-bronze{--hf:#3a2a1f;--hs:#c7844a;--hg:#f0b98a}
[data-theme="dark"] .hexb.m-silver{--hf:#272d38;--hs:#9aa6b8;--hg:#dbe2ec}
[data-theme="dark"] .hexb.m-gold{--hf:#382e12;--hs:#d9a800;--hg:#ffd95a}
[data-theme="dark"] .hexb.m-special{--hf:#2a2250;--hs:#8f6cff;--hg:#cbbcff}
.hx-lock{position:absolute;right:0;bottom:3px;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;
  background:var(--surface);color:var(--text-3);border:1px solid var(--border-2);box-shadow:var(--shadow-1)}
.hx-lock svg{width:12px;height:12px}
.hexb.sm{width:40px;height:40px}
.hexb.sm .hx-lock{display:none}

/* ---- achievement cards ---------------------------------------------------- */
.ach-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(178px,1fr));gap:12px}
.achv{display:flex;flex-direction:column;align-items:center;text-align:center;gap:5px;padding:18px 14px 14px;border-radius:18px;
  background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow-1);transition:transform .15s,box-shadow .15s}
.achv:hover{transform:translateY(-2px);box-shadow:var(--shadow-2)}
.achv .hexb{margin-bottom:6px}
.ach-n{font-weight:800;font-size:14px;line-height:1.25}
.achv.locked .ach-n{color:var(--text-2)}
.ach-d{font-size:12.5px;color:var(--text-2);line-height:1.4;flex:1}
.ach-f{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:8px;width:100%;font-size:11.5px;color:var(--text-3);font-weight:650}
.ach-bar{flex:1;height:6px;border-radius:4px;background:var(--surface-3);overflow:hidden}
.ach-bar span{display:block;height:100%;border-radius:4px;background:var(--pt-green)}
.ach-c{font-variant-numeric:tabular-nums;white-space:nowrap}
.mtag{height:20px;padding:0 8px;border-radius:999px;display:inline-flex;align-items:center;font-size:10.5px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;
  background:var(--hf,#f6e7d8);color:var(--hg,#8a4a1c)}
.mtag.m-bronze{--hf:#f6e7d8;--hg:#8a4a1c}
.mtag.m-silver{--hf:#eef1f5;--hg:#4f5b6e}
.mtag.m-gold{--hf:#fcf1cc;--hg:#7a5800}
.mtag.m-special{--hf:#ece6ff;--hg:#5235b8}
[data-theme="dark"] .mtag.m-bronze{--hf:#3a2a1f;--hg:#f0b98a}
[data-theme="dark"] .mtag.m-silver{--hf:#272d38;--hg:#dbe2ec}
[data-theme="dark"] .mtag.m-gold{--hf:#382e12;--hg:#ffd95a}
[data-theme="dark"] .mtag.m-special{--hf:#2a2250;--hg:#cbbcff}
.ach-sec{margin:24px 0 6px}
.ach-sh{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:10px}
.ach-sh h3{font-size:15px;font-weight:800;margin:0}
.ach-sh span{font-size:12.5px;font-weight:700;color:var(--text-3);font-variant-numeric:tabular-nums}
.bseg{display:inline-flex;gap:4px;padding:4px;border-radius:12px;background:var(--surface-2);border:1px solid var(--border);max-width:100%;overflow-x:auto}
.bseg button{height:32px;padding:0 12px;border-radius:9px;font-size:13px;font-weight:650;color:var(--text-2);display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
.bseg button span{font-size:11px;font-weight:800;color:var(--text-3);font-variant-numeric:tabular-nums}
.bseg button.on{background:var(--surface);color:var(--text);box-shadow:var(--shadow-1)}
.bseg button.on span{color:var(--accent)}

/* ---- the Bondi page ------------------------------------------------------- */
.bhero{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:22px 28px;align-items:center;padding:22px 24px;border-radius:22px;margin-bottom:8px;
  background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow-1);overflow:visible}
.bh-id{display:flex;align-items:center;gap:22px;min-width:0}
.bring{width:120px;height:120px}
.bring .prof-av{width:102px;height:102px}
.binfo{min-width:0}
.bh-who{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:15px;margin-bottom:2px}
.bh-who b{font-weight:800}
.bscore b{font-size:44px}
.bprog{height:8px;margin-top:10px}
.bnext{display:flex;justify-content:space-between;align-items:center;gap:6px 14px;flex-wrap:wrap;margin-top:9px;font-size:12.5px;font-weight:650;color:var(--text-2)}
.bnext > span{display:inline-flex;align-items:center;gap:7px}
.bh-stats{display:grid;grid-template-columns:repeat(3,minmax(128px,1fr));gap:10px}
.bstat{display:flex;align-items:center;gap:11px;padding:12px 14px;border-radius:16px;background:var(--surface-2);border:1px solid var(--border)}
.bstat > div{display:flex;flex-direction:column;min-width:0}
.bstat b{font-size:21px;font-weight:850;line-height:1.1;font-variant-numeric:tabular-nums;white-space:nowrap}
.bstat b small{font-size:13px;font-weight:700;color:var(--text-3)}
.bstat > div > span{font-size:12px;font-weight:650;color:var(--text-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bs-i{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;flex:0 0 auto;background:var(--surface);color:var(--text-2);border:1px solid var(--border)}
.bs-i svg{width:20px;height:20px}
.bnav{margin:20px 0 18px}
.bnav button{display:inline-flex;align-items:center;gap:8px}
.bnav button svg{width:17px;height:17px}
.bnav button:not(.on) svg{color:var(--text-3)}
.bp-lead{color:var(--text-2);font-size:14px;line-height:1.5;margin:0 0 14px;max-width:680px}
.bondi-cta .bc-i{width:56px;height:56px;border-radius:16px;display:grid;place-items:center;font-size:0;background:var(--accent-soft);color:var(--accent)}
.bondi-cta .bc-i svg{width:28px;height:28px}

/* levels and what they bring */
.look-photo{display:flex;align-items:center;gap:14px;padding:14px 16px;border-radius:16px;background:var(--surface);border:1px solid var(--border);margin:0 0 16px;box-shadow:var(--shadow-1)}
.look-photo .lp-t{flex:1;min-width:0}
.look-photo .hint{margin:3px 0 0;line-height:1.45}
.lv-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}
.lv{display:flex;flex-direction:column;gap:12px;padding:16px;border-radius:18px;background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow-1)}
.lv.cur{border:2px solid var(--tc);padding:15px;box-shadow:0 10px 26px -16px var(--tc)}
.lv.closed .tier-ico,.lv.closed .look-pick,.lv.closed .frame-dot{filter:grayscale(1);opacity:.55}
.lv-h{display:flex;align-items:center;gap:12px}
.lv-t{flex:1;min-width:0}
.lv-k{font-size:10.5px;font-weight:800;letter-spacing:.07em;text-transform:uppercase;color:var(--text-3)}
.lv-n{font-weight:800;font-size:16px;line-height:1.25}
.lv-m{font-size:12px;color:var(--text-3);font-weight:600}
.lv-st{display:inline-flex;align-items:center;gap:4px;height:24px;padding:0 9px;border-radius:999px;font-size:11.5px;font-weight:750;white-space:nowrap;background:var(--surface-2);color:var(--text-2);flex:0 0 auto}
.lv-st svg{width:13px;height:13px}
.lv-st.ok{background:var(--good-soft);color:var(--good)}
.lv-st.cur{background:color-mix(in srgb,var(--tc) 15%,var(--surface));color:color-mix(in srgb,var(--tc) 78%,#000);border:1px solid color-mix(in srgb,var(--tc) 35%,transparent)}
[data-theme="dark"] .lv-st.cur{color:color-mix(in srgb,var(--tc) 55%,#fff)}
.lv-r{display:flex;flex-direction:column;gap:10px;padding-top:12px;border-top:1px solid var(--border)}
.lv-row{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:46px}
.lv-l{font-size:12.5px;font-weight:650;color:var(--text-3)}
.lv-looks{display:flex;gap:8px}
.lv .look-pick{width:46px;height:46px}
.lv-fr{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:650;color:var(--text-2)}
.lv-title{align-self:stretch}

/* how points are earned */
.how-row{gap:12px;padding:10px 14px}
.how-i{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;flex:0 0 auto;background:var(--surface-2);color:var(--text-2)}
.how-i svg{width:17px;height:17px}
.how-row.neg .how-i{color:var(--danger)}
.how-p{min-width:48px;height:26px;padding:0 8px;border-radius:8px;font-size:12.5px}
.how-row.total .how-p{min-width:0;font-size:11.5px}

/* the board */
.leaders{max-width:720px}
.rank{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;flex:0 0 auto;font-weight:800;font-size:13px;background:var(--surface-2);color:var(--text-2);font-variant-numeric:tabular-nums}
.rank.r1{background:#e8b100;color:#3b2c00}
.rank.r2{background:#b3bdca;color:#1f2733}
.rank.r3{background:#c07a43;color:#fff}

/* the achievement toast and the account card carry the same marks */
.ach-i{width:46px;height:46px;border-radius:0;background:none;font-size:0}
.ach-i .hexb{width:46px;height:46px}
.ach-i .tier-ico{width:46px;height:46px;border-radius:14px}
.bacct .tier-ico.lg{width:50px;height:50px}

@media (max-width:1100px){ .bhero{grid-template-columns:1fr} .bh-stats{grid-template-columns:repeat(3,minmax(0,1fr))} }
@media (max-width:900px){
  .bhero{padding:16px}
  .bh-id{gap:16px}
  .bring{width:96px;height:96px}
  .bring .prof-av{width:82px;height:82px}
  .bscore b{font-size:36px}
  .bh-stats{gap:8px}
  .bstat{flex-direction:column;align-items:flex-start;gap:8px;padding:10px 12px}
  .bstat .tier-ico,.bs-i{width:32px;height:32px;border-radius:10px}
  .bs-i svg{width:17px;height:17px}
  .ach-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
  .achv{padding:14px 10px 12px}
  .hexb{width:56px;height:56px}
  .trophies{grid-template-columns:1fr}
}

/* ---- search: the events found while typing -------------------------------- */
.sug-h{display:flex;align-items:center;gap:6px}
.sug-n{font-size:10.5px;font-weight:800;letter-spacing:0;border-radius:7px;padding:1px 6px;background:var(--surface-2);color:var(--text-2)}
.ach-grid{grid-template-columns:repeat(auto-fill,minmax(158px,1fr))}
.lv-st.lock{width:26px;height:26px;padding:0;justify-content:center;border-radius:50%}
.lv-lock{display:flex;flex-direction:column;gap:7px;margin-top:auto;padding:10px 12px;border-radius:12px;background:var(--surface-2);font-size:12.5px;font-weight:650;color:var(--text-2)}
.lv-bar{height:6px;border-radius:4px;background:var(--surface-3);overflow:hidden}
.lv-bar span{display:block;height:100%;border-radius:4px;background:var(--tc)}
.lv.closed .lv-bar span{background:var(--text-3)}
.lv .lv-title{margin-top:auto}
.how-row.total .how-p{font-size:13px;min-width:48px}
/* the way to all the results stays in view at the foot of the list */
.sug-foot{position:sticky;bottom:-6px;background:var(--surface);padding-bottom:6px;margin-bottom:-6px}
.sug-foot .sug-s{color:var(--accent-ink);font-weight:650}
[data-theme="dark"] .sug-foot .sug-s{color:var(--accent)}
