/* ============================================================
   Pulse, client app
   Daylight: a warm wall, white cards, ink type and one loud heart.
   Borrowed from the feeds the work ends up in: story rings pick a
   location, a rail (desktop) or tab bar (phone) moves between
   sections, cards read like posts, tags sit like stickers.
   Bricolage Grotesque for headings and figures (self-hosted,
   assets/fonts), the device's own font for everything else.
   Admin keeps assets/pulse.css.
   ============================================================ */

@font-face {
  font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 200 800; font-stretch: 75% 100%; font-display: swap;
  src: url('fonts/bricolage-grotesque-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 200 800; font-stretch: 75% 100%; font-display: swap;
  src: url('fonts/bricolage-grotesque-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --wall: #F5F3EF;
  --card: #FFFFFF;
  --tint: #EFECE6;
  --tint-2: #E6E1D9;
  --ink: #15110F;
  --ink-2: #4A423D;
  --muted: #776E68;
  --faint: #A0978F;
  --line: #E7E2DA;
  --line-2: #D5CEC4;
  --heart: #FF2E55;
  --heart-soft: #FFE8EC;
  --blue: #0B6BFF;
  --blue-hi: #0A5BDB;
  --blue-soft: #EAF2FF;
  --good: #0B8A4D;
  --good-soft: #E0F5E9;
  --bad: #C8261A;
  --bad-soft: #FFE6E2;
  --warn: #8F5600;
  --warn-soft: #FFEFCF;
  --soon: #5A2BD4;
  --soon-soft: #EEE7FF;
  --ring: linear-gradient(45deg, #FFC43D 0%, #FF7A1A 24%, #FF2E55 50%, #E01FA2 74%, #7A3CFF 100%);
  --r: 20px;
  --r-sm: 13px;
  --side: 264px;
  --tabbar: 62px;
  --lift: 0 14px 34px -22px rgba(21, 17, 15, 0.45);
  --t: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --display: 'Bricolage Grotesque', 'Arial Black', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --text: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body.app-body {
  font-family: var(--text); font-size: 1rem; line-height: 1.5;
  background: var(--wall); color: var(--ink);
  min-height: 100vh; min-height: 100dvh; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
body.no-scroll { overflow: hidden; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; color: var(--ink); line-height: 1.05; letter-spacing: -0.025em; text-wrap: balance; }
a { color: inherit; text-decoration: none; }
img, video, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { -webkit-appearance: none; appearance: none; }
:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.nw { white-space: nowrap; }
.warn-txt { color: var(--warn); font-weight: 600; }
::selection { background: #FFD3DB; }
.ic { flex: none; }

/* ---------- The logo, and the hearts that fly off it ---------- */
.pulse-logo { overflow: visible; height: 34px; width: auto; color: var(--ink); }
.pulse-logo .ph { transform-box: fill-box; transform-origin: 50% 80%; animation: ph-bob 4.2s ease-in-out infinite; animation-delay: calc(var(--i) * -0.55s); }
@keyframes ph-bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-9%) rotate(4deg); } }
.brand:hover .ph, .pulse-logo.tapped .ph { animation: ph-fly 0.9s cubic-bezier(.2, .7, .3, 1) both; animation-delay: calc(var(--i) * 0.035s); }
@keyframes ph-fly { 0% { transform: scale(0.2) translateY(60%); opacity: 0; } 35% { transform: scale(1.25) translateY(-10%); opacity: 1; } 100% { transform: none; } }
/* Hearts app.js lets go of on a tap, a sign-off, a sent post. */
.heart-pop { position: fixed; left: 0; top: 0; z-index: 200; width: var(--s, 22px); height: var(--s, 22px); pointer-events: none;
  animation: heart-pop var(--d, 1.1s) cubic-bezier(.15, .7, .3, 1) both; }
.heart-pop path { fill: var(--c, var(--heart)); }
@keyframes heart-pop {
  0% { transform: translate(-50%, -50%) scale(0.2) rotate(0); opacity: 0; }
  18% { transform: translate(calc(-50% + var(--dx) * 0.2), calc(-50% + var(--dy) * 0.25)) scale(1.2) rotate(calc(var(--rot) * 0.4)); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.9) rotate(var(--rot)); opacity: 0; }
}
.hrt { display: inline-block; vertical-align: -0.12em; }
/* The heart that ends a heading, where the full stop would go. */
.hs { display: inline-block; width: 0.3em; height: 0.3em; margin-left: 0.05em; vertical-align: -0.02em; fill: var(--heart); transform-origin: 50% 70%; animation: hs-beat 3.2s ease-in-out infinite; }
@keyframes hs-beat { 0%, 12%, 30%, 100% { transform: scale(1); } 6% { transform: scale(1.3); } 20% { transform: scale(1.18); } }

/* ---------- Shell: rail (desktop) ---------- */
.app { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: var(--side) minmax(0, 1fr); align-items: start; }
.side {
  position: sticky; top: 0; height: 100vh; height: 100dvh; z-index: 20;
  display: flex; flex-direction: column; gap: 8px; padding: 34px 14px 16px;
  background: var(--card); border-right: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: flex-end; align-self: flex-start; padding: 8px 12px; border-radius: 12px; }
.side .brand { margin-bottom: 18px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; flex: 1; min-height: 0; scrollbar-width: thin; }
.side-label { font-family: var(--display); font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; color: var(--ink); padding: 22px 12px 6px; }
.nav-a {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 11px 12px; border: 0; border-radius: 14px; background: none; cursor: pointer; text-align: left;
  color: var(--ink); font-weight: 500; font-size: 1.04rem; transition: background var(--t); position: relative;
}
.nav-a:hover { background: var(--tint); }
.nav-a:hover .nav-ic svg { transform: scale(1.08); }
.nav-a.on { font-weight: 800; }
.nav-a.on .nav-ic svg { stroke-width: 2.7; }
.nav-ic { display: inline-flex; width: 30px; justify-content: center; flex: none; }
.nav-ic svg { transition: transform var(--t); }
.nav-txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-txt small { display: block; font-size: 0.82rem; font-weight: 400; color: var(--muted); }
.nav-badge {
  min-width: 21px; height: 21px; padding: 0 6px; border-radius: 11px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--heart); color: #fff; font-family: var(--text); font-size: 0.74rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums;
}
.nav-new .nav-ic svg, .tab-plus svg { stroke-width: 2.6; }
.nav-new .nav-ic { width: 30px; height: 30px; border-radius: 10px; align-items: center; background: var(--ring); color: #fff; }
.nav-new .nav-ic svg { width: 20px; height: 20px; }
.nav-ch { font-size: 0.98rem; padding-top: 8px; padding-bottom: 8px; }
.nav-ch .av-sm { width: 30px; height: 30px; }
.side-foot { display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
.side-who, .menu-who { display: flex; align-items: center; gap: 10px; padding: 0 6px; }
.who-av { width: 40px; height: 40px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
  font-weight: 800; font-size: 0.84rem; background: var(--ink); color: #fff; }
.who-av img { width: 100%; height: 100%; object-fit: cover; }
.who-name { flex: 1; min-width: 0; font-weight: 700; font-size: 0.95rem; line-height: 1.25; overflow-wrap: anywhere; }
.who-login { display: block; font-weight: 400; font-size: 0.86rem; color: var(--muted); }
.who-out { color: var(--muted); padding: 9px; border-radius: 50%; transition: var(--t); }
.who-out:hover { color: var(--ink); background: var(--tint); }

/* Boost status: stickers, the way a story carries them. */
.status-box { display: flex; flex-direction: column; gap: 9px; padding: 0 6px; }
.status-label { font-weight: 700; font-size: 0.9rem; color: var(--muted); }
.boost-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.boost-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 9px; border-radius: 999px; background: #fff; border: 2px solid var(--ink);
  font-size: 0.86rem; font-weight: 800; color: var(--ink); box-shadow: 2px 3px 0 var(--ink); transform: rotate(-2deg); }
.boost-pill:nth-child(even) { transform: rotate(1.5deg); }
.bp-flame { display: inline-block; animation: flick 1.6s ease-in-out infinite; }
@keyframes flick { 50% { transform: scale(1.18) rotate(-6deg); } }

/* ---------- Shell: top bar and tab bar (phone) ---------- */
.topbar, .tabbar { display: none; }
.top-actions { display: inline-flex; align-items: center; gap: 4px; }
.top-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; list-style: none; color: var(--ink); }
.top-btn::-webkit-details-marker { display: none; }
.top-btn:active { background: var(--tint); }
.top-btn .nav-badge { position: absolute; right: 2px; top: 3px; border: 2px solid var(--card); min-width: 22px; height: 22px; }
.top-btn.has-new svg { fill: var(--heart); stroke: var(--heart); animation: hs-beat 3.2s ease-in-out infinite; }
.top-btn .who-av { width: 34px; height: 34px; font-size: 0.74rem; }
.menu { position: relative; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: min(300px, calc(100vw - 24px)); padding: 14px 10px 10px;
  display: flex; flex-direction: column; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 24px 60px -18px rgba(21, 17, 15, 0.4); }
.menu-who { padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu-boost { padding: 6px 0 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu-a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; font-weight: 600; font-size: 1.02rem; }
.menu-a:hover, .menu-a:active { background: var(--tint); }

.main { width: 100%; max-width: 1140px; margin: 0 auto; padding: 30px clamp(20px, 4vw, 52px) 44px; min-width: 0; }
.app-foot { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; color: var(--muted); font-size: 0.9rem; margin-top: 64px; padding-top: 20px; border-top: 1px solid var(--line); }
.app-foot a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Locations as story rings ---------- */
.stories { display: flex; gap: 4px; margin: -8px -10px 30px; padding: 8px 10px 4px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.stories::-webkit-scrollbar { display: none; }
.story { flex: none; width: 104px; display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 4px 4px 8px; border-radius: 18px; text-align: center; }
.story-ring { position: relative; width: 78px; height: 78px; border-radius: 50%; padding: 3px; background: var(--ring); transition: transform 0.25s cubic-bezier(.3, 1.6, .5, 1); }
.story:hover .story-ring { transform: scale(1.06) rotate(-3deg); }
.story:active .story-ring { transform: scale(0.94); }
.story-ring > .loc-dot { width: 100%; height: 100%; border-radius: 50%; border: 3px solid var(--wall); background: var(--card); color: var(--ink); box-shadow: none;
  font-family: var(--display); font-size: 1.25rem; font-weight: 800; overflow: hidden; }
.story-ring > .nav-badge { position: absolute; right: -3px; top: -3px; min-width: 25px; height: 25px; border-radius: 13px; border: 2.5px solid var(--wall); font-size: 0.8rem; }
.story-name { max-width: 100%; font-size: 0.86rem; line-height: 1.2; color: var(--ink-2);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.story.on .story-ring { box-shadow: 0 0 0 3px var(--wall), 0 0 0 6px var(--ink); }
.story.on .story-name { color: var(--ink); font-weight: 800; }
.loc-dot { width: 30px; height: 30px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 800; background: var(--ink); color: #fff; }
.loc-dot-lg { width: 56px; height: 56px; font-family: var(--display); font-size: 1.05rem; }
.loc-logo { overflow: hidden; background: #fff; padding: 0; box-shadow: inset 0 0 0 1px var(--line); }
.loc-logo img { width: 100%; height: 100%; object-fit: cover; }
/* "All locations": up to four logos share the ring. */
.loc-all[class*="loc-all-"] { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 2px; background: var(--wall); }
.loc-all img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.loc-all-2 { grid-template-rows: 1fr; }
.loc-all-3 img:first-child { grid-row: span 2; }

/* ---------- Headings ---------- */
.pg-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; flex-wrap: wrap; margin-bottom: 36px; }
.pg-head > div:first-child { min-width: 0; max-width: 100%; }
.pg-over { font-size: 1.05rem; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.pg-head h1 { font-size: clamp(2.5rem, 5.4vw, 4.1rem); font-stretch: 92%; letter-spacing: -0.04em; line-height: 0.97; overflow-wrap: anywhere; }
.pg-sub { color: var(--ink-2); margin-top: 14px; font-size: 1.12rem; max-width: 620px; }
.pg-actions { display: flex; gap: 10px; }
.sec { margin-bottom: 48px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(1.75rem, 3vw, 2.2rem); letter-spacing: -0.03em; }
.sec-sub { color: var(--muted); font-size: 1.02rem; margin-top: 6px; }
.sec-right { display: flex; gap: 8px; align-items: center; }
.note { color: var(--muted); font-size: 0.92rem; margin-top: 16px; max-width: 760px; }
.link { color: var(--blue); font-weight: 700; font-size: 1rem; display: inline-flex; align-items: center; gap: 5px; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.two-col > .sec:only-child { grid-column: 1 / -1; }
/* A label that sits on a card like a sticker on a story. */
.kicker { display: inline-block; margin-bottom: 10px; padding: 4px 11px; border-radius: 9px; background: var(--ink); color: #fff;
  font-size: 0.86rem; font-weight: 800; line-height: 1.35; transform: rotate(-1.5deg); }

/* ---------- Cards ---------- */
.card, .panel { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
a.card, button.card { transition: transform var(--t), box-shadow var(--t), border-color var(--t); text-align: left; cursor: pointer; }
a.card:hover, button.card:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--lift); }
a.card:active, button.card:active { transform: scale(0.985); }
.panel-body { padding: 24px; }
.panel-head { padding: 22px 24px 0; }
.panel-head h2 { font-size: 1.3rem; }
.ph-note { color: var(--muted); font-size: 0.92rem; }
.empty { padding: 40px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty-ic { width: 64px; height: 64px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 2.5px solid var(--ink); color: var(--ink); margin-bottom: 6px; }
.empty h3 { font-size: 1.5rem; }
.empty p { color: var(--muted); max-width: 440px; font-size: 1rem; }
.empty .btn { margin-top: 10px; }

/* ---------- Buttons, pills, alerts ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  font-family: var(--text); font-weight: 700; font-size: 1rem; line-height: 1.2; padding: 12px 20px; border-radius: 12px;
  transition: background var(--t), transform var(--t), box-shadow var(--t); white-space: nowrap; user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hi); }
.btn-primary:disabled { background: var(--tint-2); color: var(--faint); cursor: not-allowed; transform: none; }
.btn-ghost, .btn-navy { background: var(--tint); color: var(--ink); }
.btn-ghost:hover, .btn-navy:hover { background: var(--tint-2); }
.btn-danger { background: transparent; color: var(--bad); box-shadow: inset 0 0 0 1.5px #F2B8B1; }
.btn-danger:hover { background: var(--bad-soft); }
.btn-sm { padding: 9px 15px; font-size: 0.93rem; border-radius: 10px; }
.btn-lg { padding: 15px 26px; font-size: 1.08rem; border-radius: 14px; }
.btn-block { width: 100%; }
.icon-btn { background: var(--tint); border: 0; border-radius: 50%; width: 44px; height: 44px; flex: none; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); transition: var(--t); }
.icon-btn:hover { background: var(--tint-2); }
.linkish { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 0.92rem; }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 0.84rem; font-weight: 700; line-height: 1.3; padding: 4px 11px; border-radius: 999px; white-space: nowrap; }
.pill-on { background: var(--good-soft); color: var(--good); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-soon { background: var(--soon-soft); color: var(--soon); }
.pill-off { background: var(--tint); color: var(--muted); }
.pill-bad { background: var(--bad-soft); color: var(--bad); }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; font-size: 1rem; margin-bottom: 14px; background: var(--card); border: 1px solid var(--line); }
.alert a { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.a-glyph { width: 26px; height: 26px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.86rem; color: #fff; background: var(--ink); }
.alert-good { background: var(--good-soft); border-color: transparent; } .alert-good .a-glyph { background: var(--good); }
.alert-bad { background: var(--bad-soft); border-color: transparent; } .alert-bad .a-glyph { background: var(--bad); }
.alert-warn { background: var(--warn-soft); border-color: transparent; } .alert-warn .a-glyph { background: var(--warn); }
.alert-info .a-glyph { background: var(--blue); }
.flash { margin-bottom: 24px; animation: drop 0.45s cubic-bezier(.2, .9, .3, 1.2); }
.flash .alert { font-weight: 600; }
@keyframes drop { from { opacity: 0; transform: translateY(-12px); } }
.update-banner { margin-bottom: 24px; padding: 14px 16px; border-radius: 16px; background: var(--blue-soft); }
.ub-inner { display: flex; align-items: center; gap: 12px; }
.ub-spinner { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2.5px solid #BBD4FF; border-top-color: var(--blue); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.delta { display: inline-flex; align-items: center; gap: 4px; font-size: 0.9rem; font-weight: 700; white-space: nowrap; }
.d-glyph { font-size: 0.68rem; }
.delta-up { color: var(--good); } .delta-down { color: var(--bad); } .delta-flat { color: var(--muted); font-weight: 500; }
.spark polyline { stroke: var(--heart); stroke-width: 2.4; }
.spark circle { fill: var(--heart); }

/* ---------- Avatars + platform chips ---------- */
.av { position: relative; flex: none; width: 52px; height: 52px; border-radius: 50%; padding: 2.5px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--ring); font-weight: 800; font-size: 0.86rem; color: #fff; }
.av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 2.5px solid var(--card); background: var(--card); }
.av-pm { position: absolute; right: -3px; bottom: -3px; width: 22px; height: 22px; border-radius: 50%; background: var(--card); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 1px var(--line); }
.av-pm:empty { display: none; }
.av-sm { width: 30px; height: 30px; padding: 2px; font-size: 0.66rem; }
.av-sm img { border-width: 1.5px; }
.av-sm .av-pm { width: 15px; height: 15px; right: -4px; bottom: -4px; }
.av-sm .av-pm svg { width: 11px; height: 11px; }
.av-lg { width: 104px; height: 104px; padding: 4px; font-family: var(--display); font-size: 1.7rem; }
.av-lg img { border-width: 4px; }
.av-lg .av-pm { width: 32px; height: 32px; right: 0; bottom: 0; }
.av-lg .av-pm svg { width: 20px; height: 20px; }
.av-g, .av-plat { background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2); padding: 0; }
.plat-chip { display: inline-flex; align-items: center; font-size: 0.8rem; font-weight: 800; line-height: 1.3; padding: 3px 9px; border-radius: 8px; }
.plat-tiktok { background: #111; color: #fff; box-shadow: inset 2px 0 0 #25F4EE, inset -2px 0 0 #FE2C55; }
.plat-instagram { background: linear-gradient(90deg, #f58529, #dd2a7b 50%, #8134af); color: #fff; }
.plat-facebook { background: #1877F2; color: #fff; }

/* ---------- Home ---------- */
.allclear { display: flex; align-items: center; gap: 16px; padding: 20px 22px; font-size: 1.08rem; color: var(--ink-2); }
.allclear-ic { width: 48px; height: 48px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--good); color: #fff; }
.allclear strong { color: var(--ink); }
/* minmax(0, 1fr) and min-width: 0: a long one-line message (needs info) is
   cut with an ellipsis instead of stretching every card past a phone screen. */
.need-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.need { display: flex; align-items: center; gap: 16px; padding: 14px 16px 14px 14px; min-width: 0; }
.need-thumb { position: relative; width: 68px; height: 68px; border-radius: 14px; flex: none; background: var(--tint); display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.need-thumb .media-tile { width: 100%; height: 100%; border-radius: 14px; }
.need-thumb::after { content: ''; position: absolute; left: -5px; top: -5px; width: 16px; height: 16px; border-radius: 50%; background: var(--heart); border: 3px solid var(--card); z-index: 1; }
.need-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.need-title { font-weight: 800; font-size: 1.1rem; display: inline-flex; gap: 6px; align-items: center; }
.need-info .need-title { color: var(--heart); }
.need-line { color: var(--ink-2); font-size: 0.98rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.need-tags { display: flex; gap: 6px; margin-top: 4px; }
.need-cta { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 10px; background: var(--blue); color: #fff; font-weight: 700; font-size: 0.95rem; white-space: nowrap; }
.need:hover .need-cta { background: var(--blue-hi); }

.bento { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.ch-card { display: flex; flex-direction: column; gap: 18px; padding: 20px; min-height: 216px; overflow: hidden; }
.ch-top { display: flex; align-items: center; gap: 13px; }
.ch-top > span:nth-child(2) { flex: 1; min-width: 0; }
.ch-handle { display: block; font-weight: 800; font-size: 1.1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-plat { display: block; color: var(--muted); font-size: 0.95rem; }
.ch-go { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--tint); color: var(--ink); transition: var(--t); flex: none; }
.ch-card:hover .ch-go { background: var(--ink); color: #fff; transform: rotate(-45deg); }
.ch-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ch-big { display: block; font-family: var(--display); font-weight: 800; font-stretch: 84%; font-size: 2.5rem; letter-spacing: -0.015em; line-height: 1; font-variant-numeric: tabular-nums; }
.ch-k { display: block; color: var(--muted); font-size: 0.95rem; margin-top: 4px; }
.ch-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: auto; }
.ch-foot .spark { width: 56%; height: auto; }
.ch-pending { border-style: dashed; border-color: var(--line-2); background: transparent; }
.ch-wait { color: var(--ink-2); font-size: 0.98rem; margin-top: auto; }
.drop-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 26px; text-align: center !important; min-height: 216px;
  background: var(--ink); border-color: var(--ink); color: #fff; }
button.drop-tile:hover { border-color: var(--ink); }
.drop-ic { width: 64px; height: 64px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--ring); color: #fff; transition: transform 0.3s cubic-bezier(.3, 1.6, .5, 1); margin-bottom: 4px; }
.drop-tile:hover .drop-ic { transform: translateY(-4px) rotate(-8deg) scale(1.06); }
.drop-title { font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em; }
.drop-text { color: rgba(255, 255, 255, 0.72); font-size: 0.98rem; max-width: 260px; }
.drop-off { cursor: default; background: var(--warn-soft); border-color: transparent; color: var(--ink); }
.drop-off .drop-ic { background: var(--warn); }
.drop-off .drop-text { color: var(--ink-2); }

.list { padding: 6px; }
.row { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 15px; transition: background var(--t); scroll-margin-top: 90px; }
a.row:hover { background: var(--wall); }
.row { position: relative; }
.row + .row::before { content: ''; position: absolute; left: 12px; right: 12px; top: -1px; height: 1px; background: var(--line); }
.row-thumb { width: 60px; height: 60px; border-radius: 12px; overflow: hidden; flex: none; background: var(--tint); }
.row-thumb .media-tile { width: 100%; height: 100%; border-radius: 0; }
.row-thumb:empty { display: none; }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.row-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.row-meta { color: var(--muted); font-size: 0.9rem; display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.row-sub { color: var(--ink-2); font-size: 0.98rem; overflow: hidden; text-overflow: ellipsis; }
.row-quote { color: var(--ink); }
.row-outcome { font-size: 0.93rem; color: var(--muted); }
.row-outcome a { color: var(--blue); font-weight: 600; word-break: break-all; }
.row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.row-say { align-items: flex-start; }
.row-loc { font-size: 0.95rem; font-weight: 800; color: var(--ink); }
.row > .loc-dot { width: 46px; height: 46px; font-size: 0.8rem; }

/* ---------- Channel: the profile header and its counts ---------- */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; padding: clamp(22px, 3vw, 36px); margin-bottom: 18px; overflow: hidden; }
.hero-main { min-width: 0; }
.hero-id { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; }
.hero-id > span:last-child { min-width: 0; }
.hero-handle { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: -0.03em; line-height: 1.05; overflow-wrap: anywhere; }
.hero-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 1rem; margin-top: 6px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--good); display: inline-block; animation: live 2.4s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(11, 138, 77, 0.5); } 70% { box-shadow: 0 0 0 8px rgba(11, 138, 77, 0); } 100% { box-shadow: 0 0 0 0 rgba(11, 138, 77, 0); } }
.big-num { font-family: var(--display); font-weight: 800; font-stretch: 78%; font-size: clamp(3.6rem, 9vw, 6.6rem); letter-spacing: -0.015em; line-height: 0.9; color: var(--ink); font-variant-numeric: tabular-nums; }
.big-cap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 14px; font-size: 1.02rem; }
.big-label { font-weight: 800; color: var(--ink); }
.hero-title { font-size: 2rem; margin-bottom: 8px; }
.hero-plot { min-width: 0; }
.hero-plot .spark { width: 100%; height: auto; }
.hero-plot .spark polyline { stroke-width: 3; }
.hero-plot-foot { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.9rem; margin-top: 8px; }
.hero-rating { justify-self: end; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 24px 36px; border-radius: var(--r); background: var(--wall); text-align: center; }
.hr-big { font-family: var(--display); font-weight: 800; font-stretch: 80%; font-size: 4.6rem; line-height: 0.95; letter-spacing: -0.015em; }
.hr-count { color: var(--muted); font-size: 0.95rem; }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tile { padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tile-top { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 1rem; font-weight: 600; }
.tile-ic { display: inline-flex; color: var(--ink); }
.tile-num { font-family: var(--display); font-weight: 800; font-stretch: 84%; font-size: 2.7rem; letter-spacing: -0.015em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.tile-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; min-height: 40px; }
.tile-foot .spark { width: 52%; height: auto; }

/* ---------- Posts: the grid off a profile ---------- */
.igp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.igp { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--card); border: 1px solid var(--line); transition: transform var(--t), box-shadow var(--t); }
.igp:hover { transform: translateY(-3px); box-shadow: var(--lift); }
.igp-img { position: relative; aspect-ratio: 4 / 5; background: var(--tint); overflow: hidden; }
.igp-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.igp:hover .igp-img img { transform: scale(1.05); }
.igp-kind { position: absolute; left: 8px; top: 8px; font-size: 0.78rem; font-weight: 800; padding: 3px 9px; border-radius: 8px; background: rgba(21, 17, 15, 0.78); color: #fff; }
.igp-stats { display: flex; flex-wrap: wrap; gap: 2px 12px; padding: 11px 13px 2px; font-size: 0.9rem; color: var(--muted); }
.igp-stats strong { color: var(--ink); font-weight: 800; }
.igp-date { padding: 2px 13px 12px; font-size: 0.84rem; color: var(--muted); }

/* ---------- Comments, as a thread: who, then what they said ---------- */
.says { columns: 3 300px; column-gap: 14px; }
.say { break-inside: avoid; margin-bottom: 14px; padding: 16px 18px 18px; border-radius: 6px 22px 22px 22px; background: var(--card); border: 1px solid var(--line); position: relative; display: flex; flex-direction: column-reverse; gap: 10px; }
.say.feat { border: 2px solid var(--ink); }
.feat-flag { position: absolute; right: 14px; top: -11px; font-size: 0.8rem; font-weight: 800; padding: 2px 10px; border-radius: 999px; background: #FFC43D; color: var(--ink); transform: rotate(2deg); }
.say-quote { font-size: 1.04rem; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; }
.say-by { display: flex; align-items: center; gap: 10px; }
.say-av { width: 38px; height: 38px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; font-size: 0.76rem; font-weight: 800; background: var(--tint); color: var(--ink); }
.say-who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.say-handle { font-weight: 800; font-size: 0.98rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.say-meta { color: var(--muted); font-size: 0.86rem; }
.say-link { color: var(--muted); padding: 8px; border-radius: 50%; display: inline-flex; align-items: center; }
.say-link:hover { color: var(--ink); background: var(--tint); }
details.more { margin-top: 16px; }
details.more > summary, details.gp-more > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1rem;
  color: var(--ink); padding: 10px 18px; border-radius: 999px; background: var(--tint); }
details.more > summary:hover, details.gp-more > summary:hover { background: var(--tint-2); }
details > summary::-webkit-details-marker { display: none; }
details.more > summary::after, details.gp-more > summary::after { content: '+'; font-size: 1.25rem; line-height: 1; transition: transform var(--t); }
details[open].more > summary::after, details[open].gp-more > summary::after { transform: rotate(45deg); }
details.more[open] > summary { margin-bottom: 16px; }
.more-tight { margin-top: 2px; }
.more-tight > summary { width: 100%; justify-content: flex-start; background: transparent !important; padding: 13px 2px !important; border-top: 1px solid var(--line); border-radius: 0 !important; color: var(--ink) !important; flex-wrap: wrap; }
.more-tight > summary::after { margin-left: auto; }
.more-tight[open] > summary { margin-bottom: 12px !important; }

/* ---------- Google ---------- */
.gp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.metric-label { color: var(--ink-2); font-weight: 600; font-size: 1rem; }
.metric-value { font-family: var(--display); font-weight: 800; font-stretch: 84%; font-size: 2.9rem; letter-spacing: -0.015em; line-height: 1.05; margin: 2px 0 14px; font-variant-numeric: tabular-nums; }
.gp-bars { width: 100%; height: auto; }
.gp-bars line { stroke: var(--line-2); }
.gp-bars rect { fill: var(--ink); }
.gp-bars rect:last-of-type { fill: var(--heart); }
.gp-bv { fill: var(--ink); font-size: 14px; font-weight: 800; font-family: var(--text); }
.gp-bl { fill: var(--muted); font-size: 13px; font-family: var(--text); }
.gp-list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-top: 10px; }
.gp-row { display: flex; justify-content: space-between; gap: 12px; font-size: 1rem; }
.gp-row strong { font-weight: 800; }
.gp-row em { font-style: normal; color: var(--muted); font-weight: 600; margin-left: 6px; }
.gp-track { display: block; height: 8px; border-radius: 8px; background: var(--tint); overflow: hidden; margin-top: 7px; flex: 1; }
.gp-track > span { display: block; height: 100%; border-radius: 8px; background: var(--ink); }
.gp-terms { padding-left: 24px; display: flex; flex-direction: column; gap: 9px; font-size: 1rem; color: var(--muted); }
.gp-terms li { display: list-item; }
.gp-terms li span { color: var(--ink); }
.gp-terms li strong { float: right; color: var(--ink-2); }
.gp-foot { color: var(--muted); font-size: 0.88rem; margin-top: 16px; }
.gp-list-top { margin-top: 4px; }

.rv-stars { display: inline-flex; gap: 1px; color: var(--tint-2); font-size: 1.05rem; line-height: 1; }
.rv-stars .on { color: #F5A400; }
.rv-stars-lg { font-size: 1.5rem; }
.rv-summary { margin-bottom: 16px; }
.rv-summary .panel-body { display: grid; grid-template-columns: auto 1fr; gap: 38px; align-items: center; }
.rv-score { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.rv-avg { font-family: var(--display); font-weight: 800; font-stretch: 80%; font-size: 4.6rem; line-height: 0.95; letter-spacing: -0.015em; }
.rv-total { color: var(--muted); font-size: 0.95rem; }
.rv-dist { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.rv-dist li { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; }
.rv-dist .gp-track { margin: 0; }
.rv-dist .gp-track > span { background: #F5A400; }
.rv-dist-k { width: 34px; color: var(--muted); }
.rv-dist-n { width: 30px; text-align: right; color: var(--ink); font-weight: 700; }
.rv-dist .gp-track > .rv-bar-low { background: var(--heart); }
.rv-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin-top: 16px; }
.rv { padding: 18px; border-radius: 6px 22px 22px 22px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.rv-low { border-color: #F2B8B1; background: #FFFAF9; }
.rv-head { display: flex; align-items: center; gap: 10px; }
.rv-who { display: flex; flex-direction: column; min-width: 0; }
.rv-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--muted); }
.rv-text { color: var(--ink); font-size: 1.02rem; overflow-wrap: anywhere; }
.rv-empty { color: var(--muted); font-style: italic; }
.rv-aspects { color: var(--muted); font-size: 0.9rem; }
.rv-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.rv-remove > summary { list-style: none; }
.rv-remove[open] { width: 100%; }
.rv-form { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.rv-req { padding: 13px 15px; border-radius: 14px; background: var(--wall); display: flex; flex-direction: column; gap: 6px; font-size: 0.95rem; }
.rv-req-why { color: var(--muted); }
.rv-gone { margin-top: 18px; }
.rv-req-note { color: var(--ink); }
.rv-foot .say-link { padding: 8px 2px; border-radius: 8px; gap: 5px; font-weight: 700; font-size: 0.93rem; color: var(--blue); }
.rv-foot .say-link:hover { background: none; color: var(--blue-hi); text-decoration: underline; text-underline-offset: 3px; }
.rv-foot .rv-remove:first-of-type { margin-left: auto; }
.rv-more { margin-top: 16px; }
details.gp-more[open] > summary { margin-bottom: 14px; }
.gp-panel details.gp-more { margin-top: 14px; }
.e-mark { width: 64px; height: 64px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 2.5px solid var(--ink); color: var(--ink); margin-bottom: 6px; }
.hero-rating .kicker { margin-bottom: 4px; }
a.hero-rating { transition: var(--t); }
a.hero-rating:hover { background: var(--tint); }
.rv-rep-text { color: var(--ink); white-space: normal; }
.hint { color: var(--muted); font-size: 0.9rem; margin-top: 7px; }

/* ---------- Content cards: a post waiting on someone ---------- */
.cpost { padding: 24px; margin-bottom: 18px; scroll-margin-top: 90px; }
.cpost-info { border: 2px solid var(--heart); }
.cpost-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.cpost-head h3 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); letter-spacing: -0.03em; margin-bottom: 4px; }
.cpost-info .kicker { background: var(--heart); }
.cpost-tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.cpost-body { display: grid; grid-template-columns: minmax(220px, 0.9fr) 1.1fr; gap: 28px; align-items: start; }
.cpost-media { min-width: 0; }
.cpost-form { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cpost-more { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.cpost-more .ask { margin-right: auto; }
.cpost-more .ask > summary { list-style: none; }
.cpost-more .ask[open] { width: 100%; }
.cpost-more .ask form { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.cpost-more .ask .field { width: 100%; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.muted-note { color: var(--ink-2); font-size: 0.98rem; margin-bottom: 12px; padding: 12px 15px; border-radius: 14px; background: var(--wall); }
.flash-card { animation: ping 1.2s ease 2; }
@keyframes ping { 50% { box-shadow: 0 0 0 5px rgba(255, 46, 85, 0.35); } }

/* A message from Pulse, as it would land in a chat. */
.info-box { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 22px; }
.info-ic { width: 42px; height: 42px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--heart); color: #fff; }
.info-box > div { min-width: 0; padding: 13px 17px; border-radius: 6px 20px 20px 20px; background: var(--heart-soft); }
.info-from { display: block; font-size: 0.9rem; font-weight: 800; color: var(--heart); }
.info-box p { margin-top: 3px; font-size: 1.08rem; color: var(--ink); overflow-wrap: anywhere; }
.info-check .info-ic { background: var(--ink); }
.info-check > div { background: var(--wall); }
.info-check .info-from { color: var(--ink); }
.info-check p { font-size: 1.02rem; }

.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.media-grid.one { grid-template-columns: 1fr; }
.media-tile { display: block; position: relative; border-radius: 14px; overflow: hidden; background: #111; aspect-ratio: 4 / 5; }
.media-grid.one .media-tile { aspect-ratio: auto; max-height: 520px; }
.media-tile img, .media-tile video { width: 100%; height: 100%; object-fit: cover; }
.media-grid.one .media-tile img, .media-grid.one .media-tile video { object-fit: contain; max-height: 520px; }
.media-thumb { aspect-ratio: 1; }
.mt-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.95rem; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6); }
.media-file { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 10px; background: var(--tint); }
.mf-kind { font-weight: 800; color: var(--ink); }
.mf-name { font-size: 0.8rem; color: var(--muted); word-break: break-all; text-align: center; }

.opt-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.opt-card { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line-2); cursor: pointer; transition: var(--t); min-width: 0; }
div.opt-card { cursor: default; }
label.opt-card:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.opt-card.on { box-shadow: inset 0 0 0 2.5px var(--blue); background: var(--blue-soft); }
.opt-top { display: flex; align-items: center; gap: 10px; }
.opt-top input { accent-color: var(--blue); width: 22px; height: 22px; }
.opt-name { font-weight: 800; font-size: 1.1rem; }
.opt-cap { font-size: 1rem; color: var(--ink-2); overflow-wrap: anywhere; }

.bchips { display: flex; flex-wrap: wrap; gap: 6px; }
.bchip { display: inline-flex; align-items: center; gap: 5px; font-size: 0.86rem; font-weight: 600; color: var(--ink-2); padding: 3px 10px; border-radius: 8px; background: var(--tint); }
summary .bchips { margin-left: 6px; }

/* ---------- Fields ---------- */
.field { display: flex; flex-direction: column; gap: 8px; border: 0; min-width: 0; }
.field label, .field legend { font-weight: 700; font-size: 1rem; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.field legend { margin-bottom: 8px; }
.opt { color: var(--muted); font-weight: 400; }
input[type=text], input[type=password], input[type=email], input[type=url], input[type=date], input[type=time], textarea, select {
  width: 100%; padding: 13px 15px; border-radius: var(--r-sm); background: var(--card); border: 1.5px solid var(--line-2); color: var(--ink);
  font-size: 1rem; transition: border-color var(--t), box-shadow var(--t); resize: vertical;
}
textarea { min-height: 92px; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(11, 107, 255, 0.16); }
.count { text-align: right; margin-top: -2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 6px; padding: 10px 17px; border-radius: 999px; font-weight: 700; font-size: 1rem; background: var(--tint); transition: var(--t); }
.chip:hover span { background: var(--tint-2); }
.chip input:checked + span { background: var(--ink); color: #fff; }
.chip input:checked + span::before { content: '\2713'; font-weight: 800; }
.chip input:focus-visible + span { outline: 2.5px solid var(--blue); outline-offset: 2px; }
.details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.when-later { margin-top: 14px; }
.when-pick:has(input[value="later"]:checked) .when-later[hidden] { display: block; }
.when-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; max-width: 460px; }
.when-grid .field { min-width: 0; }
.when-grid input { min-height: 50px; min-width: 0; max-width: 100%; font-family: inherit; }
@media (max-width: 440px) { .when-grid { grid-template-columns: minmax(0, 1fr); } }
.tag-preview { display: flex; flex-wrap: wrap; gap: 5px; }
.tag-preview:empty { display: none; }
.tchip { font-size: 0.86rem; font-weight: 700; padding: 3px 10px; border-radius: 8px; background: var(--blue-soft); color: var(--blue-hi); }
.music { margin-top: 14px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg-opt { position: relative; cursor: pointer; }
.seg-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg-opt span { display: inline-flex; padding: 9px 15px; border-radius: 999px; font-size: 0.96rem; font-weight: 600; background: var(--tint); transition: var(--t); }
.seg-opt:hover span { background: var(--tint-2); }
.seg-opt input:checked + span { background: var(--ink); color: #fff; }
.seg-opt input:focus-visible + span { outline: 2.5px solid var(--blue); outline-offset: 2px; }
.music-note { margin-top: 10px; }

/* ---------- Uploads ---------- */
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 30px 20px; border-radius: var(--r);
  border: 2px dashed var(--line-2); background: var(--wall); transition: var(--t); }
.dropzone.is-over { border-color: var(--blue); background: var(--blue-soft); transform: scale(1.01); }
.dz-ic { width: 60px; height: 60px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--ring); color: #fff; }
.dz-title { font-family: var(--display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; }
.dz-text { color: var(--muted); font-size: 0.96rem; max-width: 380px; margin-bottom: 6px; }
.dropzone .btn-ghost { background: var(--ink); color: #fff; }
.dropzone .btn-ghost:hover { background: #000; }
.up-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; }
.up-list:empty { display: none; }
.up-item { position: relative; border-radius: 16px; overflow: hidden; background: var(--card); border: 1px solid var(--line); animation: pop 0.3s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes pop { from { opacity: 0; transform: scale(0.9); } }
.up-thumb { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; background: #111; color: #bbb; font-weight: 800; font-size: 0.86rem; }
.up-thumb img, .up-thumb video { width: 100%; height: 100%; object-fit: cover; }
.up-main { display: flex; flex-direction: column; gap: 3px; padding: 9px 11px 11px; }
.up-name { font-size: 0.88rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-meta { font-size: 0.82rem; color: var(--muted); }
.up-bar { height: 5px; border-radius: 5px; background: var(--tint); overflow: hidden; margin-top: 3px; }
.up-bar span { display: block; height: 100%; width: 0; background: var(--ring); transition: width 0.3s; }
.up-item.is-done .up-bar span { width: 100% !important; background: var(--good); }
.up-item.is-done .up-meta { color: var(--good); font-weight: 600; }
.up-item.is-bad { border-color: var(--bad); }
.up-item.is-bad .up-meta { color: var(--bad); font-weight: 600; }
.up-rm { position: absolute; right: 6px; top: 6px; width: 30px; height: 30px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(21, 17, 15, 0.72); color: #fff; font-size: 1.1rem; line-height: 1; }
.up-rm:hover { background: var(--bad); }
/* Posting order: number and move arrows, once there is more than one file. */
.up-num { position: absolute; left: 6px; top: 6px; z-index: 3; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 13px;
  display: inline-flex; align-items: center; justify-content: center; background: var(--heart); color: #fff; font-size: 0.84rem; font-weight: 800; pointer-events: none; }
.up-num:empty { display: none; }
.up-mv { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 4px; }
.up-mv button { width: 32px; height: 30px; border-radius: 15px; border: 0; cursor: pointer; background: rgba(21, 17, 15, 0.72); color: #fff; font-size: 1.2rem; line-height: 1; }
.up-mv button:hover:not(:disabled) { background: var(--blue); }
.up-mv button:disabled { opacity: 0.3; cursor: default; }
.up-list:not(.multi) .up-num, .up-list:not(.multi) .up-mv { display: none; }
.up-hint { margin-top: 8px; }
.keep-tile .up-mv { left: auto; right: 6px; transform: none; }
/* Posts shown back: tiles numbered in posting order. */
.media-grid:not(.one):not(.keep-grid) { counter-reset: tile; }
.media-grid:not(.one):not(.keep-grid) > .media-tile::after { counter-increment: tile; content: counter(tile); position: absolute; left: 6px; top: 6px;
  min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: rgba(21, 17, 15, 0.75); color: #fff; font-size: 0.8rem; font-weight: 800; pointer-events: none; }
body.drag-hint::after { content: 'Drop to start a new post'; position: fixed; inset: 14px; z-index: 60; border-radius: 28px; border: 3px dashed var(--heart);
  background: rgba(255, 255, 255, 0.93); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 5vw, 3rem); letter-spacing: -0.03em; color: var(--ink); pointer-events: none; }

/* ---------- Keep / drop files when answering ---------- */
.keep-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.keep-grid.one { grid-template-columns: minmax(0, 260px); }
.keep-tile { position: relative; display: block; cursor: pointer; border-radius: 14px; transition: var(--t); }
.keep-tile input { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 2; }
.keep-tile .media-tile { aspect-ratio: 4 / 5; transition: var(--t); }
.keep-badge { position: absolute; left: 8px; bottom: 8px; z-index: 1; font-size: 0.82rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--good); color: #fff; }
.kb-off { display: none; }
.keep-tile input:not(:checked) ~ .keep-badge { background: var(--bad); }
.keep-tile input:not(:checked) ~ .keep-badge .kb-on { display: none; }
.keep-tile input:not(:checked) ~ .keep-badge .kb-off { display: inline; }
.keep-tile:has(input:not(:checked)) .media-tile { opacity: 0.35; filter: grayscale(1); }
.keep-tile:has(input:focus-visible) { outline: 2.5px solid var(--blue); outline-offset: 2px; }

/* ---------- Composer ---------- */
.drawer { position: fixed; inset: 0; z-index: 100; }
.drawer[hidden] { display: none; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(21, 17, 15, 0.55); opacity: 0; transition: opacity 0.26s; }
.drawer-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(660px, 100%); display: flex; flex-direction: column;
  background: var(--card); box-shadow: -30px 0 80px -20px rgba(21, 17, 15, 0.45);
  transform: translateX(100%); transition: transform 0.34s cubic-bezier(.2, .9, .25, 1); }
.drawer.open .drawer-scrim { opacity: 1; }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 24px 28px 18px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: clamp(1.9rem, 4vw, 2.5rem); letter-spacing: -0.035em; }
.drawer-body { flex: 1; overflow-y: auto; padding: 24px 28px 32px; display: flex; flex-direction: column; gap: 30px; overscroll-behavior: contain; }
.drawer-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 28px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--card); }
.cf-status { color: var(--muted); font-size: 0.96rem; }
.drawer.is-ready .cf-status { color: var(--good); font-weight: 700; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.step-n { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 1.2rem; background: var(--ink); color: #fff; }
.step-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.step-main h3 { font-size: 1.5rem; padding-top: 7px; }
.step-main h3 .opt { font-family: var(--text); font-size: 0.95rem; letter-spacing: 0; }
.plat-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.plat-opt { position: relative; cursor: pointer; }
.plat-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.plat-opt span { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 17px; border-radius: 16px; font-weight: 800; font-size: 1.05rem; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line-2); transition: var(--t); }
.plat-opt:hover span { box-shadow: inset 0 0 0 1.5px var(--ink); }
.plat-opt input:checked + span { background: var(--blue-soft); box-shadow: inset 0 0 0 2.5px var(--blue); }
.plat-opt input:checked + span::after { content: '\2713'; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 0.8rem; }
.plat-opt input:focus-visible + span { outline: 2.5px solid var(--blue); outline-offset: 2px; }
.mode-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mode-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 18px; cursor: pointer; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line-2); transition: var(--t); }
.mode-card input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.mode-card:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.mode-card.on { background: var(--blue-soft); box-shadow: inset 0 0 0 2.5px var(--blue); }
.mode-card:focus-within { outline: 2.5px solid var(--blue); outline-offset: 2px; }
.mc-ic { width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--tint); color: var(--ink); margin-bottom: 4px; }
.mode-card.on .mc-ic { background: var(--blue); color: #fff; }
.mc-title { font-weight: 800; font-size: 1.15rem; }
.mc-text { color: var(--ink-2); font-size: 0.96rem; }
.mode-extra { display: flex; flex-direction: column; gap: 16px; }
/* Inside a .field, so scoped under .want-pick to win over `.field label`. */
.want-pick { display: grid; gap: 10px; }
.want-pick .want-opt { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 15px 16px; border-radius: 16px; cursor: pointer;
  background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line-2); transition: var(--t); font-weight: 400; font-size: 1rem; color: var(--ink); }
.want-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.want-pick .want-opt:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.want-pick .want-opt.on { background: var(--blue-soft); box-shadow: inset 0 0 0 2.5px var(--blue); }
.want-opt:focus-within { outline: 2.5px solid var(--blue); outline-offset: 2px; }
.wo-box { flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 2px var(--line-2); color: #fff; font-weight: 800; font-size: 0.9rem; transition: var(--t); }
.want-opt.on .wo-box { background: var(--blue); box-shadow: none; }
.want-opt.on .wo-box::before { content: '\2713'; }
.wo-main { display: flex; flex-direction: column; gap: 3px; }
.wo-title { font-weight: 800; font-size: 1.05rem; }
.wo-text { color: var(--ink-2); font-size: 0.96rem; font-weight: 400; }
.cf-loc select { width: 100%; font-weight: 700; }

/* ---------- Sign in ---------- */
.auth { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px 18px; }
.auth-card { width: min(440px, 100%); padding: 38px 32px 32px; border-radius: 28px; }
.auth-brand { display: flex; justify-content: center; margin: 26px 0 30px; }
.auth-brand .pulse-logo { height: auto; width: min(240px, 72%); }
.auth-card h1 { font-size: clamp(2.2rem, 7vw, 2.8rem); letter-spacing: -0.04em; text-align: center; }
.auth-tag { color: var(--ink-2); text-align: center; font-size: 1.05rem; margin: 10px 0 26px; }
.auth-form form { display: flex; flex-direction: column; gap: 16px; }
.auth-form .muted { text-align: center; }
.auth-form .muted a, .auth-back a { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
/* Turnstile: standard 300 x 65 widget, centred; app.js drops to compact if the card is narrower. */
.cf-box { min-height: 65px; display: flex; justify-content: center; }
.cf-err { color: var(--bad); font-size: 0.95rem; font-weight: 600; text-align: center; margin-top: -6px; }
.pin-input { letter-spacing: 0.4em; font-weight: 700; }
.auth-back { margin-top: 22px; font-size: 1rem; }
.auth-help { text-align: center; color: var(--muted); font-size: 0.98rem; margin-top: 22px; }
.auth-help a { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.auth-copy { margin-top: 14px; color: var(--muted); font-size: 0.88rem; }
@media (max-width: 420px) { .auth-card { padding-left: 22px; padding-right: 22px; } }

/* ---------- Service notice (PULSE_SERVICE_NOTICE), top of every page ---------- */
.svc-notice { position: relative; z-index: 60; background: #FFC43D; color: var(--ink); }
.svc-inner { max-width: 1320px; margin: 0 auto; padding: 11px 20px; display: flex; align-items: center; gap: 12px; font-size: 1rem; line-height: 1.4; font-weight: 700; }
.svc-mark { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #FFC43D; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.85rem; }

/* ---------- Accounts with several locations (lib/app_overview.php) ---------- */
.loc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 16px; }
.loc-card { display: flex; flex-direction: column; gap: 14px; padding: 20px; min-width: 0; }
.loc-head { display: flex; align-items: center; gap: 14px; }
.loc-head > .loc-dot { box-shadow: 0 0 0 2.5px var(--card), 0 0 0 5px var(--ink); margin: 5px; }
.loc-title { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.loc-name { font-family: var(--display); font-weight: 800; font-size: 1.45rem; letter-spacing: -0.025em; line-height: 1.1; color: var(--ink); width: 100%; }
.loc-name:hover { text-decoration: underline; text-decoration-thickness: 2.5px; text-underline-offset: 4px; }
.loc-rows { list-style: none; display: grid; gap: 2px; }
.loc-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px 10px; border-radius: 12px; font-size: 0.98rem; color: var(--ink-2); }
a.loc-row:hover { background: var(--wall); }
.loc-ch { display: inline-flex; align-items: center; gap: 9px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; color: var(--ink); }
.loc-num strong { color: var(--ink); font-weight: 800; }
.loc-row-pending { opacity: 0.85; }
.loc-note { display: flex; gap: 8px; align-items: flex-start; font-size: 0.93rem; font-weight: 600; color: var(--warn); }
.loc-open { margin-top: auto; align-self: stretch; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 16px; border-radius: 12px; background: var(--tint); font-weight: 700; font-size: 0.98rem; color: var(--ink); transition: var(--t); }
.loc-open:hover { background: var(--ink); color: #fff; }

/* ---------- Post studio (lib/app_studio.php, assets/studio.js) ---------- */
.seg-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.seg-link { padding: 10px 19px; border-radius: 999px; font-weight: 700; font-size: 1.02rem; color: var(--ink); background: var(--tint); transition: var(--t); }
.seg-link:hover { background: var(--tint-2); }
.seg-link.on { background: var(--ink); color: #fff; }
.studio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.studio-pick, .studio-edit { padding: 20px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.studio-edit { position: sticky; top: 18px; }
.studio-edit[hidden] { display: none; }
.studio-edit form { display: flex; flex-direction: column; gap: 16px; }
.studio-list { display: flex; flex-direction: column; gap: 8px; max-height: 72vh; overflow: auto; padding: 2px; }
.studio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); grid-auto-rows: max-content; align-content: start; gap: 10px; }
.sg { display: grid; gap: 6px; text-align: left; padding: 13px 15px; border-radius: 16px; border: 0; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line-2); cursor: pointer; transition: var(--t); }
.sg:hover, .sm:hover, .sn:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.sg.on, .sm.on, .sn.on { box-shadow: inset 0 0 0 2.5px var(--blue); background: var(--blue-soft); }
.sg-team { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 600; }
.sg-team img { width: 28px; height: 28px; object-fit: contain; }
.sg-name { flex: 1; min-width: 0; }
.sg-score { font-family: var(--display); font-variant-numeric: tabular-nums; font-weight: 800; font-size: 1.25rem; }
.sg-win { color: var(--ink); font-weight: 800; }
.sg-meta { font-size: 0.86rem; color: var(--muted); }
.sm { display: block; width: 100%; text-align: left; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line-2); cursor: pointer; transition: var(--t); }
/* A square that holds on every browser: iPhone Safari squashed an aspect-ratio
   picture inside a scrolling grid of buttons into a short strip. */
.sm-pic { display: block; position: relative; width: 100%; height: 0; padding-top: 100%; background: #111; }
.sm-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.sm-cap { display: flex; flex-direction: column; text-align: left; gap: 3px; padding: 9px 11px 11px; }
.sm-title { font-size: 0.9rem; font-weight: 600; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sm-ups { font-size: 0.82rem; color: var(--muted); }
.sn { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; align-items: center; width: 100%; text-align: left; padding: 8px; border: 0; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line-2); cursor: pointer; transition: var(--t); color: inherit; font: inherit; }
.sn-pic { display: block; position: relative; width: 120px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #111; }
.sn-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.sn-cap { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sn-title { font-size: 0.96rem; font-weight: 700; color: var(--ink); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sn-meta { font-size: 0.82rem; color: var(--muted); }
.studio-logos { flex-wrap: wrap; }
.studio-logos .seg-opt span { display: inline-flex; align-items: center; gap: 8px; }
.studio-logos img { width: 26px; height: 26px; object-fit: contain; }
[data-own-clear][hidden] { display: none; }
.studio-teams { display: grid; grid-template-columns: 2fr 1fr 0.7fr; gap: 10px; }
.studio-teams .field:nth-child(1) { grid-column: span 2; }
.studio-teams .field:nth-child(2) { grid-column: span 1; }
.studio-preview { position: relative; max-width: 100%; margin: 0 auto; overflow: hidden; border-radius: 14px; background: #111; }
.studio-preview iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; pointer-events: none; }
[data-for-size][hidden] { display: none; }
.studio-step { font-family: var(--display); font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.studio-designs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.design { position: relative; cursor: pointer; }
.design input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.design-card { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: var(--card); box-shadow: 0 0 0 1.5px var(--line-2); transition: var(--t); }
.design-card img { display: block; width: 100%; height: auto; }
.design-name { padding: 9px 11px; font-size: 0.92rem; font-weight: 700; color: var(--ink); }
.design:hover .design-card { box-shadow: 0 0 0 1.5px var(--ink); }
.design input:checked + .design-card { box-shadow: 0 0 0 3px var(--blue); }
.design input:checked + .design-card .design-name { background: var(--blue); color: #fff; }
.design input:focus-visible + .design-card { outline: 2.5px solid var(--blue); outline-offset: 3px; }
.studio-photo { display: flex; flex-direction: column; gap: 10px; }
.studio-photo[hidden], [data-field][hidden], [data-highlight-hint][hidden], [data-photo-only][hidden] { display: none; }
.studio-photo-row { display: flex; align-items: center; gap: 12px; }
.studio-photo-row img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; }
.studio-tip { margin-top: 12px; padding: 12px 15px; border-radius: 14px; background: var(--blue-soft); color: var(--ink-2); font-size: 0.95rem; line-height: 1.45; }
.studio-tip strong { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .cpost-body { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .topbar { display: flex; position: sticky; top: 0; z-index: 30; align-items: center; justify-content: space-between; height: 60px; padding: 0 8px 0 10px;
    background: var(--card); border-bottom: 1px solid var(--line); }
  .topbar .pulse-logo { height: 28px; }
  .main { padding: 18px 16px calc(var(--tabbar) + 44px + env(safe-area-inset-bottom)); }
  .stories { margin: -6px -16px 22px; padding: 6px 12px 2px; gap: 0; }
  .story { width: 92px; }
  .story-ring { width: 72px; height: 72px; }
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); align-items: stretch; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    height: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding: 0 4px env(safe-area-inset-bottom); background: var(--card); border-top: 1px solid var(--line); }
  .tab, .tab-sheet > summary { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 0; background: none; cursor: pointer; color: var(--muted); min-width: 0; }
  .tab-sheet { display: block; position: static; }
  .tab-sheet > summary { height: 100%; list-style: none; }
  .tab-ic { position: relative; display: inline-flex; }
  .tab-ic .nav-badge { position: absolute; left: 55%; top: -6px; border: 2px solid var(--card); height: 22px; min-width: 22px; }
  .tab-txt { font-size: 0.74rem; font-weight: 600; line-height: 1.1; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tab.on, .tab-sheet.on > summary, .tab-sheet[open] > summary { color: var(--ink); }
  .tab.on .tab-txt, .tab-sheet.on .tab-txt { font-weight: 800; }
  .tab.on .tab-ic > svg, .tab-sheet.on .tab-ic > svg { stroke-width: 2.7; }
  .tab:active .tab-ic, .tab-sheet > summary:active .tab-ic { transform: scale(0.88); }
  .tab-plus { width: 50px; height: 40px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: var(--ring); color: #fff; transition: transform 0.2s cubic-bezier(.3, 1.6, .5, 1); }
  .tab-new:active .tab-plus { transform: scale(0.88) rotate(90deg); }
  .sheet { position: fixed; left: 8px; right: 8px; bottom: calc(var(--tabbar) + 10px + env(safe-area-inset-bottom)); z-index: 41; padding: 16px 10px 10px; max-height: 70vh; overflow-y: auto;
    display: flex; flex-direction: column; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 -10px 60px -10px rgba(21, 17, 15, 0.4); animation: sheet 0.26s cubic-bezier(.2, .9, .25, 1); }
  @keyframes sheet { from { transform: translateY(24px); opacity: 0; } }
  .sheet-title { font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.025em; color: var(--ink); padding: 2px 12px 8px; }
  .sheet .nav-a { color: var(--ink); font-size: 1.05rem; padding: 12px; }
  .pg-head { margin-bottom: 28px; }
  .pg-actions { display: none; }
  .app-foot { margin-top: 44px; }
  .two-col, .gp-grid { grid-template-columns: 1fr; gap: 0; }
  .gp-grid { gap: 14px; }
  .hero { grid-template-columns: 1fr; }
  .hero-rating { justify-self: stretch; }
  /* The composer comes up from the bottom, the way a share sheet does. */
  .drawer-panel { top: auto; left: 0; width: 100%; height: calc(100% - 28px); border-radius: 26px 26px 0 0; transform: translateY(100%); }
  .drawer-panel::before { content: ''; position: absolute; left: 50%; top: 8px; width: 42px; height: 5px; margin-left: -21px; border-radius: 5px; background: var(--line-2); }
}
@media (max-width: 620px) {
  .tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile { padding: 15px 16px; }
  .tile-num { font-size: 2.2rem; }
  .tile-foot .spark { display: none; }
  .details-grid, .mode-row { grid-template-columns: 1fr; }
  .igp-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .says { columns: 1; }
  .rv-list { grid-template-columns: 1fr; }
  .rv-summary .panel-body { grid-template-columns: 1fr; gap: 20px; }
  .need { flex-wrap: wrap; }
  .need-main { flex-basis: 0; }
  .need-line { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
  .need-cta { width: 100%; justify-content: center; padding: 11px 16px; }
  .loc-row { grid-template-columns: minmax(0, 1fr) auto; }
  .loc-delta { display: none; }
  .row { flex-wrap: wrap; }
  .row-side { flex-direction: row; flex-wrap: wrap; width: 100%; justify-content: space-between; align-items: center; }
  .hero-id { gap: 14px; }
  .av-lg { width: 80px; height: 80px; }
  .drawer-head, .drawer-body, .drawer-foot { padding-left: 18px; padding-right: 18px; }
  .drawer-head { padding-top: 26px; }
  .drawer-foot { flex-direction: column; align-items: stretch; }
  .drawer-foot .btn { width: 100%; }
  .step { grid-template-columns: 1fr; gap: 10px; }
  .step-n { display: none; }
  .cpost { padding: 18px; }
  .cpost-head { flex-direction: column; }
  .cpost-tags { justify-content: flex-start; }
  .form-foot .btn { width: 100%; }
  .bento { grid-template-columns: 1fr; }
  .ch-card, .drop-tile { min-height: 0; }
}
@media (max-width: 900px) {
  .studio { grid-template-columns: minmax(0, 1fr); }
  .studio-edit { position: static; }
  .studio-list { max-height: 60vh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
