
      /* Signed-in home — kept in this file so the product remains one page. */
      .app-home {
        display: none;
        min-height: 100svh;
        color: var(--ink);
        background:
          radial-gradient(circle at 80% 4%, rgba(64, 132, 255, 0.1), transparent 28%),
          #f5f8fd;
      }

      body.is-logged-in .site-shell {
        display: none;
      }

      body.is-logged-in .app-home {
        display: grid;
        grid-template-columns: 98px minmax(0, 1fr);
      }

      .app-sidebar {
        position: sticky;
        top: 0;
        z-index: 30;
        height: 100svh;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 26px 14px 22px;
        border-right: 1px solid var(--line);
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(20px);
      }

      .app-mark {
        width: 48px;
        height: 48px;
        display: grid;
        place-items: center;
        overflow: hidden;
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 9px 24px rgba(14, 57, 126, 0.12);
      }

      .app-mark img {
        width: 168px;
        max-width: none;
        transform: translateX(58px);
      }

      .app-nav {
        width: 100%;
        display: grid;
        gap: 10px;
        margin-top: 18px;
      }

      .app-nav-button,
      .mobile-tab {
        border: 0;
        color: #52698f;
        background: transparent;
        cursor: pointer;
      }

      .mobile-tab:focus:not(:focus-visible) {
        outline: none;
      }

      .app-nav-button {
        min-height: 64px;
        display: grid;
        place-items: center;
        gap: 5px;
        border-radius: 17px;
        font-size: 10px;
        font-weight: 600;
      }

      .app-nav-button svg,
      .mobile-tab svg {
        width: 23px;
        height: 23px;
      }

      .app-nav-button.active {
        color: var(--blue);
        background: #eef4ff;
      }

      .app-sidebar-profile {
        position: relative;
        width: calc(100% + 36px);
        height: 72px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        margin-top: auto;
        margin-left: -18px;
        padding: 0 4px 0 76px;
        border: 0;
        border-radius: 17px;
        overflow: visible;
        color: #0b285b;
        background: transparent;
        box-shadow: none;
        font-weight: 700;
        text-align: left;
        cursor: pointer;
      }

      .app-sidebar-profile::before {
        content: "";
        position: absolute;
        left: 32px;
        width: 38px;
        height: 38px;
        border: 3px solid #fff;
        border-radius: 50%;
        background: #fff url("assets/user-avatar.png") center / 145% no-repeat;
        box-shadow: 0 8px 22px rgba(18, 50, 101, 0.16);
      }

      .app-sidebar-profile::after {
        content: none;
      }

      .app-sidebar-profile-copy {
        min-width: 0;
        display: grid;
        gap: 2px;
        line-height: 1.12;
        white-space: nowrap;
      }

      .app-sidebar-profile-copy strong {
        font-size: 12.5px;
        font-weight: 700;
      }

      .app-sidebar-profile-copy > span {
        width: 100%;
        overflow: hidden;
        color: #52698f;
        font-size: 9px;
        font-weight: 600;
        letter-spacing: -0.02em;
        text-overflow: ellipsis;
      }

      .app-sidebar-profile-copy > small {
        display: grid;
        gap: 1px;
        color: #2167f5;
        font-size: 8.5px;
        font-weight: 700;
        letter-spacing: -0.02em;
      }

      .app-sidebar-profile-copy > small span {
        color: inherit;
        font: inherit;
        letter-spacing: inherit;
      }

      .app-sidebar-notifications {
        position: relative;
        width: 100%;
        min-height: 58px;
        display: grid;
        grid-template-columns: 28px minmax(0, 1fr);
        align-items: center;
        gap: 12px;
        margin-top: 8px;
        padding: 0 14px;
        border: 0;
        border-radius: 17px;
        color: #52698f;
        background: transparent;
        font-size: 10px;
        font-weight: 600;
        text-align: left;
        cursor: pointer;
      }

      .app-sidebar-notifications svg {
        width: 23px;
        height: 23px;
      }

      .app-sidebar-notifications .notification-dot {
        top: 6px;
        right: auto;
        left: 30px;
      }

      .app-main {
        min-width: 0;
        padding: 0 20px;
      }

      .app-topbar {
        position: relative;
        z-index: 20;
        height: 92px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 30px;
        padding: 0;
      }

      .app-wordmark {
        width: 160px;
        height: 44px;
        display: inline-flex;
        align-items: center;
        overflow: hidden;
        padding: 0;
        border: 0;
        background: transparent;
        cursor: pointer;
      }

      .app-wordmark img {
        width: 100%;
        height: auto;
      }

      .topbar-actions {
        display: flex;
        align-items: center;
        gap: 12px;
      }

      .desktop-control-label {
        display: none;
      }

      .app-header-nav {
        display: none;
        align-items: center;
        justify-content: center;
        gap: 38px;
      }

      .app-header-nav button {
        position: relative;
        padding: 12px 0;
        border: 0;
        color: #52698f;
        background: transparent;
        font-size: 15px;
        font-weight: 500;
        cursor: pointer;
      }

      .app-header-nav button::after {
        content: "";
        position: absolute;
        right: 0;
        bottom: 5px;
        left: 0;
        height: 2px;
        border-radius: 2px;
        background: var(--blue);
        transform: scaleX(0);
        transition: transform var(--sp-dur-glide) var(--sp-ease-glide);
      }

      .app-header-nav button:hover,
      .app-header-nav button.active {
        color: var(--blue);
      }

      .app-header-nav button:hover::after,
      .app-header-nav button.active::after {
        transform: scaleX(1);
      }

      .icon-button {
        position: relative;
        width: 44px;
        height: 44px;
        display: grid;
        place-items: center;
        border: 1px solid var(--line);
        border-radius: 14px;
        color: var(--ink);
        background: rgba(255, 255, 255, 0.82);
        cursor: pointer;
      }

      .icon-button svg {
        width: 21px;
        height: 21px;
      }

      .notification-dot,
      .profile-status {
        position: absolute;
        border: 2px solid #fff;
        border-radius: 50%;
      }

      .notification-dot {
        top: 2px;
        right: 1px;
        min-width: 17px;
        height: 17px;
        display: grid;
        place-items: center;
        padding: 0 4px;
        background: var(--blue);
        color: #fff;
        font-size: 7px;
        font-weight: 700;
      }

      .notification-dot:empty,
      .notification-dot[hidden] {
        display: none;
      }

      .notification-panel {
        position: absolute;
        z-index: 45; /* above the Vibe "people selected" bar */
        top: 72px;
        right: 0;
        width: min(360px, calc(100vw - 36px));
        padding: 12px;
        border: 1px solid rgba(255, 255, 255, 0.88);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 18px 44px rgba(8, 34, 78, 0.22);
        backdrop-filter: blur(18px);
      }

      .notification-panel[hidden] {
        display: none;
      }

      .notification-panel > header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 9px;
        padding: 1px 2px;
      }

      .notification-panel > header strong {
        color: var(--ink);
        font-size: 14px;
      }

      .notification-panel > header button {
        width: 30px;
        height: 30px;
        display: grid;
        place-items: center;
        border: 0;
        border-radius: 50%;
        color: #52698f;
        background: #edf2f9;
        font-size: 17px;
        cursor: pointer;
      }

      .notification-connect {
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr);
        align-items: center;
        gap: 9px;
        padding: 10px;
        border-radius: 14px;
        background: #f5f8fd;
      }

      [data-notification-list] {
        display: grid;
        gap: 8px;
        max-height: min(430px, calc(100vh - 190px));
        overflow-y: auto;
        overscroll-behavior: contain;
      }

      /* A person's moving 3D avatar (web/live-avatar.js slots). Head to toe, no frame, sized per place:
         card = Home/Vibe card, detail = dialog and header, row = list row (kept to the row's height).
         Picture first: their avatar's picture (inside) shows until the 3D avatar is ready, then fades out. */
      .live-avatar-slot {
        position: relative;
        display: grid;
        flex: none;
        place-items: center;
        overflow: visible;
      }
      .live-avatar-slot--card { width: 62px; height: 96px; }
      .live-avatar-slot--detail { width: 64px; height: 92px; }
      .live-avatar-slot--row { width: 48px; height: 64px; margin-block: -3px; }
      .live-avatar-slot > :not(iframe) {
        transition: opacity 0.42s ease-out;
        max-width: 100%;
      }
      .live-avatar-slot--row > :not(iframe) { width: 44px !important; height: auto !important; aspect-ratio: 4 / 5; }
      .live-avatar-slot--card > :not(iframe),
      .live-avatar-slot--detail > :not(iframe) { width: 52px !important; height: auto !important; aspect-ratio: 4 / 5; }
      .live-avatar-slot[data-live-avatar-state="ready"] > :not(iframe) { opacity: 0; }

      .notification-connect .profile-social-avatar {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        font-size: 9px;
      }

      .notification-connect .profile-social-copy strong {
        font-size: 11px;
      }

      /* Notices without a profile picture use the full card width (they were squeezed into the picture column). */
      .notification-connect > .profile-social-copy:first-child { grid-column: 1 / -1; }

      .notification-connect .profile-social-actions {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .notification-empty {
        margin: 4px 0;
        color: #52698f;
        font-size: 10px;
        text-align: center;
      }

      .top-profile {
        position: relative;
        width: 46px;
        height: 46px;
        display: grid;
        place-items: center;
        border: 3px solid #fff;
        border-radius: 50%;
        overflow: hidden;
        color: transparent;
        background: #fff url("assets/user-avatar.png") center / 145% no-repeat;
        box-shadow: 0 8px 22px rgba(18, 50, 101, 0.16);
        font-size: 12px;
        font-weight: 700;
      }

      .profile-status {
        right: -1px;
        bottom: -1px;
        width: 12px;
        height: 12px;
        background: #35c676;
      }

      .app-heading-row {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 24px;
        width: auto;
        margin: 10px 0 26px;
        padding-top: 0;
      }

      .home-location-notice {
        display: inline-block;
        margin: 4px 0 8px;
        padding: 6px 12px;
        border-radius: 999px;
        background: rgba(155, 108, 255, 0.12);
        color: #5b2fc4;
        font-size: 14px;
        font-weight: 600;
      }
      .home-location-notice[hidden] { display: none; }
      html[data-theme="dark"] .home-location-notice, body.dark .home-location-notice { background: rgba(155, 108, 255, 0.24); color: #f5f8ff; }
      .welcome-copy p {
        margin: 0 0 5px;
        color: #52698f;
        font-size: 15px;
      }

      .welcome-copy h2 {
        margin: 0;
        font-size: clamp(38px, 4vw, 62px);
        font-weight: 700;
        letter-spacing: -0.055em;
        line-height: 0.98;
      }

      .welcome-copy h2 span {
        color: var(--blue);
      }

      .welcome-copy small {
        display: block;
        margin-top: 10px;
        color: #52698f;
        font-size: 14px;
      }
      .home-layout {
        width: auto;
        margin: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        align-items: start;
      }

      .home-view .right-column {
        display: none;
      }

      .world-panel,
      .vibe-panel,
      .desktop-activity {
        border: 1px solid rgba(31, 80, 158, 0.11);
        background: rgba(255, 255, 255, 0.76);
        box-shadow: 0 20px 50px rgba(19, 57, 116, 0.08);
        backdrop-filter: blur(18px);
      }

      .world-panel {
        overflow: hidden;
        border-radius: 26px;
      }

      .world-toolbar {
        height: 70px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 0 20px;
        border-bottom: 1px solid var(--line);
      }

      .location-pill {
        width: min(360px, 50vw);
        min-width: 216px;
        display: flex;
        align-items: center;
        gap: 11px;
        padding: 10px 13px;
        border: 1px solid var(--line);
        border-radius: 14px;
        color: var(--ink);
        background: #fff;
        text-align: left;
        cursor: pointer;
      }

      .location-pill > svg {
        width: 22px;
        height: 22px;
        color: var(--blue);
      }

      .location-pill strong,
      .location-pill span {
        display: block;
      }

      .location-pill > span {
        min-width: 0;
      }

      .location-pill > span > span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .location-pill strong {
        font-size: 12px;
      }

      .location-pill span {
        margin-top: 2px;
        color: #52698f;
        font-size: 9px;
      }

      .toolbar-note {
        color: #52698f;
        font-size: 11px;
      }

      .world-map {
        position: relative;
        min-height: 560px;
        overflow: hidden;
        background: #dae9f8 url("assets/spossity-home-city.png") center / cover no-repeat;
        transition: background-position 420ms var(--sp-ease-glide);
      }

      .world-map::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background:
          linear-gradient(0deg, rgba(255, 255, 255, 0.58), transparent 25%),
          linear-gradient(90deg, rgba(219, 238, 255, 0.16), transparent 40%);
      }

      .home-ff-browser {
        position: absolute;
        z-index: 8;
        top: 14px;
        left: 50%;
        display: grid;
        grid-template-columns: 38px minmax(150px, auto) 38px;
        align-items: center;
        gap: 3px;
        padding: 4px;
        border: 1px solid rgba(255, 255, 255, 0.86);
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 12px 30px rgba(8, 35, 80, 0.18);
        backdrop-filter: blur(14px);
        transform: translateX(-50%);
      }

      .home-ff-browser button {
        border: 0;
        cursor: pointer;
      }

      .home-ff-arrow {
        width: 38px;
        height: 38px;
        display: grid;
        place-items: center;
        border-radius: 12px;
        color: var(--blue);
        background: transparent;
        font-size: 25px;
        line-height: 1;
      }

      .home-ff-arrow:hover,
      .home-ff-arrow:focus-visible {
        background: #edf4ff;
      }

      .home-ff-open {
        min-height: 38px;
        display: grid;
        place-items: center;
        align-content: center;
        padding: 0 10px;
        border-radius: 10px;
        color: #52698f;
        background: transparent;
      }

      .home-ff-center {
        display: grid;
        gap: 2px;
      }

      .home-ff-switch {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2px;
        padding: 2px;
        border-radius: 12px;
        background: #edf3ff;
      }

      .home-ff-open.active {
        color: #fff;
        background: var(--blue);
      }

      .home-ff-open strong,
      .home-ff-open span {
        display: block;
      }

      .home-ff-open strong {
        font-size: 10px;
        letter-spacing: 0.04em;
        white-space: nowrap;
      }

      .home-ff-open span {
        margin-top: 1px;
        font-size: 7px;
        font-weight: 700;
        opacity: 0.82;
      }

      .home-ff-position {
        color: #52698f;
        font-size: 7px;
        font-weight: 700;
        text-align: center;
      }

      .friend-discovery {
        position: absolute;
        z-index: 12;
        top: 70px;
        left: 50%;
        width: min(430px, calc(100% - 32px));
        max-height: calc(100% - 92px);
        padding: 13px;
        overflow-y: auto;
        border: 1px solid rgba(255, 255, 255, 0.88);
        border-radius: 21px;
        background: rgba(248, 251, 255, 0.96);
        box-shadow: 0 22px 55px rgba(7, 31, 71, 0.24);
        backdrop-filter: blur(18px);
        transform: translateX(-50%);
      }

      .friend-discovery[hidden] {
        display: none;
      }

      .friend-discovery header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 1px 2px 10px;
      }

      .friend-discovery header span,
      .friend-discovery header strong {
        display: block;
      }

      .friend-discovery header span {
        color: var(--blue);
        font-size: 8px;
        font-weight: 700;
        letter-spacing: 0.14em;
      }

      .friend-discovery header strong {
        margin-top: 2px;
        color: var(--ink);
        font-size: 18px;
      }

      .friend-discovery header button {
        width: 34px;
        height: 34px;
        display: grid;
        place-items: center;
        padding: 0;
        border: 0;
        border-radius: 50%;
        color: #52698f;
        background: #edf2f9;
        font-size: 20px;
        cursor: pointer;
      }

      .friend-discovery-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px;
        margin-bottom: 10px;
        padding: 4px;
        border-radius: 13px;
        background: #eaf0f9;
      }

      .friend-discovery-tabs button {
        min-height: 36px;
        border: 0;
        border-radius: 10px;
        color: #52698f;
        background: transparent;
        font-size: 10px;
        font-weight: 700;
        cursor: pointer;
      }

      .friend-discovery-tabs button.active {
        color: var(--blue);
        background: #fff;
        box-shadow: 0 5px 14px rgba(18, 54, 108, 0.1);
      }

      .friend-discovery-search {
        height: 44px;
        display: flex;
        align-items: center;
        gap: 9px;
        padding: 0 12px;
        border: 1px solid rgba(29, 75, 153, 0.14);
        border-radius: 13px;
        background: #fff;
      }

      .friend-discovery-search svg {
        width: 18px;
        height: 18px;
        flex: 0 0 auto;
        color: var(--blue);
      }

      .friend-discovery-search input {
        width: 100%;
        min-width: 0;
        border: 0;
        outline: 0;
        color: var(--ink);
        background: transparent;
        font: inherit;
        font-size: 11px;
      }

      .friend-discovery-results {
        display: grid;
        gap: 9px;
        margin-top: 11px;
      }

      .friend-discovery-card {
        display: grid;
        grid-template-columns: 58px minmax(0, 1fr) auto;
        align-items: center;
        gap: 11px;
        padding: 9px;
        border: 1px solid rgba(29, 75, 153, 0.11);
        border-radius: 15px;
        background: #fff;
        box-shadow: 0 8px 20px rgba(15, 51, 108, 0.07);
      }

      .friend-discovery-avatar {
        width: 58px;
        height: 58px;
        display: grid;
        place-items: center;
        overflow: hidden;
        border-radius: 12px;
        color: #fff;
        background: linear-gradient(145deg, #2167f5, #7659ef);
        font-size: 12px;
        font-weight: 700;
      }

      .friend-discovery-avatar.sarah,
      .friend-discovery-avatar.user {
        color: transparent;
        background-position: center;
        background-size: cover;
      }

      .friend-discovery-avatar.sarah {
        background-image: url("assets/sarah-avatar.png");
      }

      .friend-discovery-avatar.user {
        background-image: url("assets/user-avatar.png");
        background-position: center;
        background-size: 145%;
      }

      .friend-discovery-copy {
        min-width: 0;
      }

      .friend-discovery-copy strong,
      .friend-discovery-copy span,
      .friend-discovery-copy small {
        display: block;
      }

      .friend-discovery-copy strong {
        overflow: hidden;
        color: var(--ink);
        font-size: 12px;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .friend-discovery-copy span {
        margin-top: 3px;
        color: #52698f;
        font-size: 9px;
      }

      .friend-discovery-copy small {
        margin-top: 3px;
        color: #52698f;
        font-size: 8px;
      }

      .friend-request-button {
        min-height: 36px;
        padding: 0 13px;
        border: 0;
        border-radius: 11px;
        color: #fff;
        background: var(--blue);
        font-size: 9px;
        font-weight: 700;
        cursor: pointer;
      }

      .friend-request-button.requested {
        color: var(--blue);
        background: #edf4ff;
      }

      .friend-discovery-empty {
        margin: 8px 0;
        color: #52698f;
        font-size: 10px;
        text-align: center;
      }

      .map-card {
        position: absolute;
        z-index: 4;
        border: 1px solid rgba(255, 255, 255, 0.82);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.88);
        box-shadow: 0 18px 44px rgba(14, 48, 102, 0.18);
        backdrop-filter: blur(14px);
      }

      .map-event {
        top: 52px;
        right: 38px;
        width: 295px;
        display: grid;
        grid-template-columns: 76px 1fr;
        gap: 13px;
        padding: 13px;
      }

      .map-event[hidden] {
        display: none;
      }

      .concert-thumb {
        min-height: 86px;
        display: grid;
        place-items: center;
        border-radius: 12px;
        background: #152058 url("assets/concert-thumb.png") center / cover no-repeat;
      }

      .event-detail .event-kicker {
        color: #f13f5d;
        font-size: 9px;
        font-weight: 700;
        letter-spacing: 0.08em;
      }

      .event-detail p {
        margin: 6px 0 11px;
        color: #52698f;
        font-size: 10px;
        line-height: 1.45;
      }

      .event-detail p strong {
        color: var(--ink);
      }

      .mini-primary {
        width: 100%;
        min-height: 32px;
        border: 0;
        border-radius: 999px;
        color: #fff;
        background: var(--blue);
        font-size: 10px;
        font-weight: 700;
        cursor: pointer;
      }

      .map-person {
        left: 30px;
        bottom: 28px;
        width: 260px;
        padding: 17px;
        cursor: grab;
        touch-action: none;
        user-select: none;
      }

      .map-person.is-dragging {
        cursor: grabbing;
      }

      .map-person.is-location-changing {
        animation: locationDashboardIn 300ms var(--sp-ease-glide);
      }

      @keyframes locationDashboardIn {
        from { opacity: 0.55; transform: translateX(10px); }
        to { opacity: 1; transform: translateX(0); }
      }

      @media (min-width: 1101px) {
        .home-view .map-person,
        .home-view .home-bg-card {
          bottom: max(28px, calc(828px - 100svh));
        }
      }

      .home-family-cluster {
        position: absolute;
        z-index: 6;
        left: 38px;
        bottom: 184px;
        display: flex;
        align-items: center;
        padding: 5px;
        border: 1px solid rgba(255, 255, 255, 0.84);
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.88);
        box-shadow: 0 9px 24px rgba(8, 35, 80, 0.18);
        backdrop-filter: blur(12px);
      }

      .home-family-cluster:empty {
        display: none;
      }

      .home-family-profile {
        width: auto;
        min-width: 92px;
        height: 38px;
        display: flex;
        align-items: center;
        gap: 7px;
        margin-left: 5px;
        padding: 0 10px 0 6px;
        overflow: hidden;
        border: 1px solid rgba(29, 75, 153, 0.12);
        border-radius: 11px;
        color: var(--ink);
        background: #fff;
        box-shadow: 0 5px 13px rgba(8, 35, 80, 0.15);
        font-size: 9px;
        font-weight: 700;
        cursor: pointer;
      }

      .home-family-profile:first-child {
        margin-left: 0;
      }

      .home-family-profile-initials {
        width: 26px;
        height: 26px;
        display: grid;
        place-items: center;
        flex: 0 0 auto;
        border-radius: 8px;
        color: #fff;
        background: linear-gradient(145deg, #2167f5, #7659ef);
        font-size: 8px;
      }

      .home-family-profile[aria-pressed="true"] {
        border-color: rgba(33, 103, 245, 0.34);
        color: var(--blue);
        background: #edf4ff;
      }

      .person-line {
        display: flex;
        align-items: center;
        gap: 11px;
      }

      .home-card-avatar {
        position: relative;
        flex: 0 0 62px;
        width: 62px;
        align-self: stretch;
        min-height: 96px;
        background: none;
        border: 0;
      }

      .person-line strong,
      .person-line small {
        display: block;
      }

      [data-home-family-status] .shared-location-trigger {
        display: inline; padding: 0; margin: 0; border: 0; border-radius: 0;
        background: none; box-shadow: none; color: inherit; font: inherit;
        font-weight: 700; cursor: pointer;
      }
      [data-home-family-status] .shared-location-trigger:focus-visible { outline: 2px solid var(--blue, #2167f5); outline-offset: 3px; }
      .shared-location-place { margin: 4px 0 10px; font-size: 18px; font-weight: 700; }
      .shared-location-handoff .home-visit-actions { display: flex; flex-wrap: wrap; gap: 10px; }
      .shared-location-handoff a { display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; border-radius: 16px; background: #2167f5; color: #fff; font-weight: 800; text-decoration: none; }
      .shared-location-handoff a.secondary { background: transparent; color: inherit; border: 1.5px solid #cbdcf4; }
      html[data-theme="dark"] .shared-location-handoff a.secondary { border-color: #38577e; }
      .shared-location-dialog [data-map-status] { font-size: 13px; }

      .person-name-row {
        display: flex;
        align-items: center;
        gap: 7px;
      }

      .person-name-row strong {
        min-width: 0;
      }

      .relationship-pill {
        display: inline-flex;
        align-items: center;
        min-height: 18px;
        padding: 2px 7px;
        border-radius: 999px;
        color: #1859d8;
        background: #eaf2ff;
        font-size: 8px;
        font-style: normal;
        font-weight: 700;
        letter-spacing: 0.02em;
        line-height: 1;
        white-space: nowrap;
      }

      .person-line small {
        margin-top: 4px;
        color: #52698f;
        font-size: 9px;
      }

      .person-actions {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
        margin-top: 14px;
      }

      .round-action {
        display: grid;
        place-items: center;
        width: 100%;
        min-width: 0;
        padding: 0;
        gap: 5px;
        border: 0;
        color: #52698f;
        background: transparent;
        font-size: 8px;
        cursor: pointer;
      }

      .round-action i {
        width: 34px;
        height: 34px;
        display: grid;
        place-items: center;
        border-radius: 50%;
        color: var(--blue);
        background: #eef4ff;
        font-style: normal;
      }

      .round-action i svg,
      .vibe-action i svg {
        width: 18px;
        height: 18px;
      }

      .home-bg-card {
        right: 28px;
        bottom: 28px;
        width: 250px;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px;
        cursor: pointer;
      }

      .home-bg-icon {
        width: 42px;
        height: 42px;
        display: grid;
        place-items: center;
        flex: 0 0 auto;
        border-radius: 50%;
        color: var(--blue);
        background: #eef4ff;
      }

      .home-bg-icon svg {
        width: 22px;
        height: 22px;
      }

      .home-bg-card strong,
      .home-bg-card small {
        display: block;
      }

      .home-bg-card strong {
        font-size: 12px;
      }

      .home-bg-card small {
        margin-top: 4px;
        color: #52698f;
        font-size: 9px;
      }

      .permission-strip {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 0 20px;
        color: #52698f;
        font-size: 10px;
      }

      .permission-strip span:first-child::before {
        content: "◆";
        margin-right: 8px;
        color: #52698f;
        font-size: 8px;
      }

      .right-column {
        display: grid;
        gap: 24px;
      }

      .vibe-panel,
      .desktop-activity {
        border-radius: 24px;
        padding: 22px;
      }

      .panel-title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        margin-bottom: 22px;
      }

      .panel-title h3 {
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0;
        font-size: 18px;
      }

      .vibe-bars {
        width: 27px;
        height: 27px;
        color: var(--blue);
      }

      .vibe-accent {
        color: var(--blue);
      }

      .panel-title button {
        border: 0;
        color: var(--blue);
        background: transparent;
        font-size: 10px;
        font-weight: 700;
        cursor: pointer;
      }

      .vibe-actions {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 18px 10px;
      }

      .vibe-action {
        min-width: 0;
        display: grid;
        place-items: center;
        gap: 8px;
        border: 0;
        color: #52698f;
        background: transparent;
        font-size: 9px;
        line-height: 1.2;
        cursor: pointer;
      }

      .vibe-action i {
        width: 48px;
        height: 48px;
        display: grid;
        place-items: center;
        border-radius: 50%;
        color: #3978ff;
        background: #eef4ff;
        font-style: normal;
      }

      .vibe-action:nth-child(2) i,
      .vibe-action:nth-child(3) i {
        color: #05a879;
        background: #e9faf4;
      }

      .vibe-action:nth-child(5) i {
        color: #ef8048;
        background: #fff2e9;
      }

      .vibe-action:nth-child(6) i {
        color: #784df6;
        background: #f3edff;
      }

      .vibe-quote {
        margin: 24px 0 0;
        color: #52698f;
        font-family: Georgia, serif;
        font-size: 11px;
        font-style: italic;
        line-height: 1.5;
        text-align: center;
      }

      .activity-list {
        display: grid;
        gap: 13px;
      }

      .activity-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px;
        border-radius: 15px;
        background: #f5f8fd;
      }

      .activity-icon {
        width: 38px;
        height: 38px;
        display: grid;
        place-items: center;
        flex: 0 0 auto;
        border-radius: 12px;
        color: var(--blue);
        background: #e8f0ff;
      }

      .activity-item strong,
      .activity-item small {
        display: block;
      }

      .activity-item strong {
        font-size: 11px;
      }

      .activity-item small {
        margin-top: 3px;
        color: #52698f;
        font-size: 9px;
      }

      .mobile-bottom-nav {
        display: none;
      }

      [hidden] {
        display: none !important;
      }

      .home-view {
        animation: sp-screen-in var(--sp-dur-glide) var(--sp-ease-glide) backwards;
      }

      .vibe-view {
        min-height: calc(100svh - 92px);
        display: grid;
        align-content: start;
        place-items: start center;
        gap: 12px;
        padding: 12px 0 24px;
        animation: sp-screen-in var(--sp-dur-glide) var(--sp-ease-glide) backwards;
      }

      .vibe-view .vibe-panel {
        position: relative;
        width: min(900px, 100%);
        overflow: hidden;
        padding: 10px 12px 9px;
        border: 1px solid rgba(255, 255, 255, 0.76);
        border-radius: 18px;
        background: linear-gradient(125deg, rgba(255, 255, 255, 0.96), rgba(239, 245, 255, 0.9) 58%, rgba(246, 240, 255, 0.9));
        box-shadow: 0 16px 44px rgba(31, 78, 151, 0.09), inset 0 1px 0 #fff;
      }

      .vibe-view .panel-title {
        margin-bottom: 8px;
      }

      .vibe-view .panel-title h3 {
        gap: 8px;
        font-size: 21px;
        letter-spacing: -0.045em;
      }

      .vibe-view .vibe-bars {
        width: 46px;
        height: 46px;
      }

      .vibe-view .panel-title button {
        font-size: 18px;
      }

      :is(.vibe-view, .spot-host-actions) .vibe-actions {
        grid-template-columns: repeat(6, 1fr);
        gap: 5px;
      }

      :is(.vibe-view, .spot-host-actions) .vibe-action {
        gap: 4px;
        min-height: 60px;
        padding: 6px 3px 5px;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.58);
        font-size: 8px;
        font-weight: 700;
        transition: transform var(--sp-dur-glide) var(--sp-ease-glide), background 150ms ease, box-shadow 150ms ease;
      }

      :is(.vibe-view, .spot-host-actions) .vibe-action:hover {
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 8px 20px rgba(31, 78, 151, 0.09);
        transform: translateY(-2px);
      }

      :is(.vibe-view, .spot-host-actions) .vibe-action:focus {
        outline: none;
      }

      :is(.vibe-view, .spot-host-actions) .vibe-action:focus-visible {
        box-shadow: 0 0 0 2px rgba(33, 103, 245, 0.3), 0 8px 20px rgba(31, 78, 151, 0.09);
      }

      :is(.vibe-view, .spot-host-actions) .vibe-action i {
        width: 34px;
        height: 34px;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72), 0 7px 18px rgba(34, 86, 166, 0.08);
      }

      :is(.vibe-view, .spot-host-actions) .vibe-action i svg {
        width: 15px;
        height: 15px;
      }

      .vibe-view .vibe-quote {
        margin-top: 40px;
        font-size: 16px;
      }

      @media (min-width: 1101px) {
        .vibe-view > .persistent-city-map .friends-map {
          min-height: 560px;
        }
      }

      .attended-preview {
        width: 100%;
        overflow: hidden;
        border: 1px solid rgba(31, 80, 158, 0.1);
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 12px 34px rgba(19, 57, 116, 0.07);
      }

      .attended-preview[hidden] {
        display: none;
      }

      .attended-preview-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        margin: 0;
        padding: 16px 18px;
      }

      .attended-preview-header h4,
      .attended-preview-header p {
        margin: 0;
      }

      .attended-preview-header p {
        margin-bottom: 3px;
        color: #52698f;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.09em;
        text-transform: uppercase;
      }

      .attended-preview-header h4 {
        font-size: 21px;
      }

      .attended-preview-header h4 span {
        color: var(--blue);
      }

      .attended-preview-close {
        width: 32px;
        height: 32px;
        border: 1px solid var(--line);
        border-radius: 50%;
        color: #52698f;
        background: #f7f9fd;
        font-size: 18px;
        cursor: pointer;
      }

      .attended-event-list {
        position: absolute;
        z-index: 2;
        inset: 0;
      }

      .attended-map {
        position: relative;
        min-height: 420px;
        overflow: hidden;
        background: #dceaff url("assets/spossity-home-city.png") center 48% / cover no-repeat;
      }

      .attended-map::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: linear-gradient(180deg, rgba(238, 246, 255, 0.1), rgba(7, 31, 69, 0.18));
      }

      .attended-map-label {
        position: absolute;
        z-index: 3;
        top: 16px;
        left: 16px;
        display: flex;
        align-items: center;
        gap: 9px;
        padding: 10px 13px;
        border: 1px solid rgba(255, 255, 255, 0.7);
        border-radius: 14px;
        color: #52698f;
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 9px 24px rgba(11, 40, 87, 0.13);
        backdrop-filter: blur(12px);
        font-size: 10px;
        font-weight: 700;
      }

      .attended-map-label strong {
        width: 22px;
        height: 22px;
        display: grid;
        place-items: center;
        border-radius: 50%;
        color: #fff;
        background: var(--blue);
        font-size: 9px;
      }

      .attended-event-card {
        position: absolute;
        left: var(--pin-x);
        top: var(--pin-y);
        display: grid;
        grid-template-columns: 34px minmax(0, 1fr);
        align-items: center;
        gap: 8px;
        width: min(230px, 42%);
        min-width: 0;
        padding: 10px;
        border: 1px solid rgba(255, 255, 255, 0.78);
        border-radius: 15px;
        background: rgba(255, 255, 255, 0.91);
        box-shadow: 0 12px 28px rgba(6, 31, 75, 0.2);
        backdrop-filter: blur(12px);
        transform: translate(-50%, -50%);
      }

      .attended-event-card::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: -13px;
        width: 14px;
        height: 14px;
        border: 3px solid #fff;
        border-radius: 50% 50% 50% 0;
        background: var(--blue);
        box-shadow: 0 4px 12px rgba(10, 45, 103, 0.25);
        transform: translateX(-50%) rotate(-45deg);
      }

      .attended-event-icon {
        width: 34px;
        height: 34px;
        display: grid;
        place-items: center;
        border-radius: 12px;
        color: var(--blue);
        background: #eaf1ff;
      }

      .attended-event-icon svg {
        width: 16px;
        height: 16px;
      }

      .attended-event-copy {
        min-width: 0;
      }

      .attended-event-copy strong,
      .attended-event-copy span,
      .attended-event-copy small {
        display: block;
      }

      .attended-event-copy strong {
        overflow: hidden;
        font-size: 10px;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .attended-event-copy span {
        margin-top: 3px;
        color: #52698f;
        font-size: 8px;
      }

      .attended-event-copy small {
        margin-top: 2px;
        color: #52698f;
        font-size: 8px;
      }

      .attended-event-type {
        grid-column: 2;
        justify-self: start;
        margin-top: 2px;
        padding: 4px 6px;
        border-radius: 999px;
        color: #155be2;
        background: #eaf1ff;
        font-size: 8px;
        font-style: normal;
        font-weight: 700;
        white-space: nowrap;
      }

      .attended-event-type.in-person {
        color: #087346;
        background: #e9f8f1;
      }

      .attended-empty {
        position: absolute;
        top: 50%;
        left: 50%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        width: min(330px, calc(100% - 32px));
        padding: 14px;
        border: 1px solid rgba(255, 255, 255, 0.76);
        border-radius: 16px;
        color: #52698f;
        background: rgba(255, 255, 255, 0.92);
        box-shadow: 0 12px 30px rgba(6, 31, 75, 0.18);
        backdrop-filter: blur(12px);
        font-size: 10px;
        transform: translate(-50%, -50%);
      }

      .attended-empty button {
        border: 0;
        color: var(--blue);
        background: transparent;
        font-size: 9px;
        font-weight: 700;
        cursor: pointer;
      }

      .friends-preview {
        width: 100%;
        overflow: hidden;
        border: 1px solid rgba(31, 80, 158, 0.1);
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.94);
        box-shadow: 0 12px 34px rgba(19, 57, 116, 0.07);
      }

      .persistent-city-map {
        flex: 0 0 auto;
      }

      .persistent-city-map.hosting-event .friends-map {
        min-height: 420px;
      }

      .live-view > .persistent-city-map,
      .timeline-view > .persistent-city-map {
        margin: 18px 0 24px;
      }

      .timeline-view > .persistent-city-map .friends-map {
        min-height: 440px;
      }

      .friends-preview[hidden] {
        display: none;
      }

      .friends-preview-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 14px 16px;
        border-bottom: 1px solid var(--line);
      }

      .friends-preview-header h4,
      .friends-preview-header p {
        margin: 0;
      }

      .friends-preview-header p {
        margin-bottom: 3px;
        color: #52698f;
        font-size: 9px;
        font-weight: 700;
        letter-spacing: 0.09em;
        text-transform: uppercase;
      }

      .friends-preview-header h4 {
        font-size: 20px;
      }

      .friends-preview-header h4 span {
        color: var(--blue);
      }

      .friends-preview-close {
        width: 32px;
        height: 32px;
        border: 1px solid var(--line);
        border-radius: 50%;
        color: #52698f;
        background: #f7f9fd;
        font-size: 18px;
        cursor: pointer;
      }

      .friends-grid {
        position: absolute;
        z-index: 2;
        inset: 0;
      }

      .friends-grid.composer-open {
        z-index: 9;
      }

      .friends-grid:has(.vibe-chat-panel) {
        z-index: 9;
      }

      .persistent-city-map.composer-active .map-page-header {
        visibility: hidden;
        pointer-events: none;
      }

      .persistent-city-map.composer-active .timeline-compose-card {
        top: 50%;
        transform: translate(-50%, -50%);
      }

      .friends-map {
        position: relative;
        min-height: 510px;
        overflow: hidden;
        background: #dceaff url("assets/spossity-home-city.png") center 48% / cover no-repeat;
      }

      .friends-map::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: linear-gradient(180deg, rgba(236, 245, 255, 0.06), rgba(7, 31, 69, 0.18));
      }

      .friends-map-label {
        position: absolute;
        z-index: 3;
        top: 14px;
        left: 14px;
        padding: 9px 12px;
        border: 1px solid rgba(255, 255, 255, 0.72);
        border-radius: 13px;
        color: #52698f;
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 9px 24px rgba(11, 40, 87, 0.13);
        backdrop-filter: blur(12px);
        font-size: 9px;
        font-weight: 700;
      }

      .friends-map-label[hidden] { display: none !important; }

      .vibe-people-filters {
        position: relative;
        z-index: 1;
        flex: 0 0 auto;
        margin-left: auto;
        display: flex;
        gap: 4px;
        padding: 4px;
        border: 1px solid rgba(255, 255, 255, 0.72);
        border-radius: 13px;
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 9px 24px rgba(11, 40, 87, 0.13);
        backdrop-filter: blur(12px);
      }

      .vibe-people-filters[hidden] {
        display: none;
      }

      .vibe-people-filters button {
        min-height: 32px;
        padding: 0 12px;
        border: 0;
        border-radius: 10px;
        color: #52698f;
        background: transparent;
        font: inherit;
        font-size: 9px;
        font-weight: 700;
        cursor: pointer;
      }

      .vibe-people-filters button.active {
        color: #fff;
        background: #784df6;
      }

      .friends-map-search {
        position: absolute;
        z-index: 4;
        top: 14px;
        right: 14px;
        width: min(280px, 42%);
        height: 39px;
        display: grid;
        grid-template-columns: 18px minmax(0, 1fr);
        align-items: center;
        gap: 7px;
        padding: 0 11px;
        border: 1px solid rgba(255, 255, 255, 0.72);
        border-radius: 13px;
        color: #52698f;
        background: rgba(255, 255, 255, 0.92);
        box-shadow: 0 9px 24px rgba(11, 40, 87, 0.13);
        backdrop-filter: blur(12px);
      }

      .friends-map-search svg {
        width: 16px;
        height: 16px;
      }

      .friends-map-search input {
        min-width: 0;
        border: 0;
        outline: 0;
        color: var(--ink);
        background: transparent;
        font: inherit;
        font-size: 9px;
      }

      .friends-map-search input::placeholder {
        color: #52698f;
      }

      .friends-no-results {
        position: absolute;
        z-index: 3;
        top: 50%;
        left: 50%;
        margin: 0;
        padding: 12px 15px;
        border-radius: 13px;
        color: #52698f;
        background: rgba(255, 255, 255, 0.92);
        box-shadow: 0 9px 24px rgba(11, 40, 87, 0.14);
        font-size: 10px;
        transform: translate(-50%, -50%);
      }

      .friends-no-results[hidden] {
        display: none;
      }

      .vibe-map-idle {
        position: absolute;
        z-index: 3;
        top: 50%;
        left: 50%;
        margin: 0;
        padding: 12px 16px;
        border: 1px solid rgba(255, 255, 255, 0.76);
        border-radius: 14px;
        color: #52698f;
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 10px 26px rgba(11, 40, 87, 0.14);
        backdrop-filter: blur(12px);
        font-size: 10px;
        font-weight: 700;
        transform: translate(-50%, -50%);
      }

      /* Live and Upcoming with nothing on: the note sits at the top of the map, as in the app. */
      .vibe-map-idle.live-map-idle {
        top: 18px;
        width: max-content;
        max-width: min(420px, calc(100% - 36px));
        transform: translateX(-50%);
      }

      .host-map-preview-card {
        position: absolute;
        z-index: 4;
        top: 52%;
        left: 68%;
        width: min(330px, calc(100% - 32px));
        display: grid;
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 12px;
        padding: 11px;
        border: 1px solid rgba(255, 255, 255, 0.82);
        border-radius: 19px;
        background: rgba(255, 255, 255, 0.93);
        box-shadow: 0 16px 38px rgba(8, 34, 78, 0.22);
        backdrop-filter: blur(14px);
        transform: translate(-50%, -50%);
      }

      .host-map-preview-card::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: -14px;
        width: 15px;
        height: 15px;
        border: 3px solid #fff;
        border-radius: 50% 50% 50% 0;
        background: linear-gradient(145deg, #2d72ff, #7b55ff);
        box-shadow: 0 5px 14px rgba(10, 45, 103, 0.28);
        transform: translateX(-50%) rotate(-45deg);
      }

      .host-map-preview-image {
        min-height: 105px;
        border-radius: 13px;
        background: #162b68 url("assets/concert-thumb.png") center / cover no-repeat;
      }

      .host-map-preview-copy {
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
      }

      .host-map-preview-status,
      .host-map-preview-format {
        display: inline-flex;
        align-items: center;
        min-height: 21px;
        padding: 0 8px;
        border-radius: 999px;
        font-size: 8px;
        font-weight: 700;
        letter-spacing: 0.05em;
        text-transform: uppercase;
      }

      .host-map-preview-status {
        color: #fff;
        background: linear-gradient(120deg, #276df2, #7955ef);
      }

      .host-map-preview-copy > strong {
        width: 100%;
        overflow: hidden;
        margin-top: 8px;
        color: var(--ink);
        font-size: 14px;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .host-map-preview-copy > span:not(.host-map-preview-status):not(.host-map-preview-format),
      .host-map-preview-copy small {
        width: 100%;
        overflow: hidden;
        margin-top: 4px;
        color: #52698f;
        font-size: 9px;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .host-map-preview-format {
        margin-top: 8px;
        color: #1760db;
        background: #e9f1ff;
      }

      .host-map-preview-attendance {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 10px;
        margin-top: 8px;
        color: #52698f;
        font-size: 8px;
        font-weight: 700;
      }

      .host-map-preview-attendance span {
        display: inline-flex;
        align-items: baseline;
        gap: 3px;
        white-space: nowrap;
      }

      .host-map-preview-attendance strong {
        color: var(--ink);
        font-size: 10px;
      }

      .host-map-preview-attendance .seats-left strong {
        color: #13845b;
      }

      .friend-card {
        position: absolute;
        left: var(--friend-x);
        top: var(--friend-y);
        display: grid;
        grid-template-columns: 38px minmax(0, 1fr) 32px;
        align-items: center;
        gap: 8px;
        width: 205px;
        min-width: 0;
        padding: 9px;
        border: 1px solid rgba(255, 255, 255, 0.8);
        border-radius: 15px;
        background: rgba(255, 255, 255, 0.91);
        box-shadow: 0 10px 24px rgba(9, 37, 80, 0.18);
        backdrop-filter: blur(12px);
        transform: translate(-50%, -50%);
        transition: border-color 150ms ease, background 150ms ease, transform var(--sp-dur-glide) var(--sp-ease-glide);
      }

      .friend-card::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: -12px;
        width: 13px;
        height: 13px;
        border: 3px solid #fff;
        border-radius: 50% 50% 50% 0;
        background: var(--blue);
        box-shadow: 0 4px 12px rgba(10, 45, 103, 0.25);
        transform: translateX(-50%) rotate(-45deg);
      }

      .friend-card.selected {
        border-color: rgba(33, 103, 245, 0.5);
        background: #edf4ff;
        transform: translate(-50%, -52%);
      }

      .friend-avatar {
        width: 38px;
        height: 38px;
        display: grid;
        place-items: center;
        overflow: hidden;
        border: 2px solid #fff;
        border-radius: 50%;
        color: #fff;
        background: linear-gradient(145deg, #4c8aff, #173a7c);
        box-shadow: 0 5px 14px rgba(20, 56, 112, 0.16);
        font-size: 9px;
        font-weight: 700;
      }

      .friend-avatar.sarah,
      .friend-avatar.user {
        color: transparent;
        background-position: center;
        background-size: cover;
      }

      .friend-avatar.sarah {
        background-image: url("assets/sarah-avatar.png");
      }

      .friend-avatar.user {
        background-image: url("assets/user-avatar.png");
        background-position: center;
        background-size: 145%;
      }

      .friend-copy {
        min-width: 0;
      }

      /* Vibe map card: the person's moving 3D avatar, like the Home card (no frame, no photo),
         then name, relationship and location stacked, and the chat button. */
      .friend-card.has-live-avatar {
        grid-template-columns: 62px minmax(0, 1fr) 32px;
        column-gap: 10px;
        width: 244px;
        padding: 6px 12px 6px 6px;
      }
      .friend-card.has-live-avatar .friend-copy {
        display: grid;
        gap: 5px;
        align-content: center;
      }
      .friend-card.has-live-avatar .friend-copy strong {
        font-size: 13px;
        line-height: 1.15;
      }
      .friend-card.has-live-avatar .friend-copy .friend-presence {
        margin: 0;
        font-size: 10px;
        line-height: 1.2;
      }
      /* The place sits at the pin's tip (bottom-aligned), as on iPhone and iPad. */
      .friend-card.has-live-avatar .friend-place {
        display: flex;
        align-items: flex-end;
        gap: 4px;
        margin: 0;
        color: #52698f;
        font-size: 10px;
        line-height: 1.3;
      }
      .friend-card.has-live-avatar .friend-place .spossity-location-pin {
        flex: none;
        width: 10px;
        height: 12.5px;
        margin: 0;
        vertical-align: 0;
      }
      .friend-card.has-live-avatar .friend-place span {
        display: -webkit-box;
        margin: 0;
        overflow: hidden;
        color: inherit;
        font-size: inherit;
        white-space: normal;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
      }
      .friend-card.has-live-avatar .friend-place span::before { content: none; }
      html[data-theme="dark"] .friend-card.has-live-avatar .friend-place { color: #9fb4d2; }

      .friend-copy strong,
      .friend-copy span {
        display: block;
      }

      .friend-copy .friend-relationship {
        display: inline;
        min-height: 0;
        padding: 0;
        color: #1859d8;
        background: transparent;
        font-size: inherit;
        font-weight: 700;
      }

      .friend-copy strong {
        overflow: hidden;
        font-size: 11px;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .friend-copy span {
        overflow: hidden;
        margin-top: 4px;
        color: #52698f;
        font-size: 8px;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .friend-copy span::before {
        content: "";
        width: 6px;
        height: 6px;
        display: inline-block;
        margin-right: 5px;
        border-radius: 50%;
        background: #2dc283;
      }

      .friend-text-button {
        width: 32px;
        height: 32px;
        display: grid;
        place-items: center;
        border: 0;
        border-radius: 50%;
        color: var(--blue);
        background: #edf3ff;
        cursor: pointer;
      }

      .friend-text-button svg {
        width: 16px;
        height: 16px;
      }

      .friend-text-button.selected {
        color: #fff;
        background: var(--blue);
      }

      .people-picker-tabs {
        position: absolute;
        z-index: 6;
        top: 98px;
        left: 50%;
        display: inline-flex;
        gap: 4px;
        padding: 4px;
        border: 1px solid rgba(255, 255, 255, 0.82);
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.94);
        box-shadow: 0 10px 24px rgba(9, 37, 80, 0.17);
        backdrop-filter: blur(14px);
        transform: translateX(-50%);
      }

      .people-picker-tabs button {
        min-width: 82px;
        min-height: 32px;
        padding: 0 11px;
        border: 0;
        border-radius: 10px;
        color: #52698f;
        background: transparent;
        font-size: 9px;
        font-weight: 700;
        cursor: pointer;
      }

      .people-picker-tabs button.active {
        color: #fff;
        background: var(--blue);
      }

      .vibe-chat-panel {
        position: absolute;
        z-index: 7;
        top: 106px;
        right: auto;
        bottom: auto;
        left: 50%;
        width: min(620px, calc(100% - 44px));
        margin: 0 auto;
        padding: 15px;
        border: 1px solid rgba(255, 255, 255, 0.86);
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.94);
        box-shadow: 0 20px 48px rgba(7, 32, 76, 0.24);
        backdrop-filter: blur(18px);
        transform: translateX(-50%);
      }

      .vibe-chat-topline {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        min-height: 54px;
        margin-bottom: 12px;
        padding-bottom: 10px;
        border-bottom: 1px solid rgba(84, 122, 179, 0.22);
        color: #0b285b;
        font-size: 17px;
        font-weight: 800;
      }
      .vibe-chat-topline-actions { display: flex; align-items: center; gap: 8px; }
      .vibe-chat-conversations-toggle,
      .vibe-chat-topline-close {
        min-height: 44px;
        padding: 0 12px;
        border: 0;
        border-radius: 12px;
        color: #2167f5;
        background: #edf4ff;
        font: inherit;
        font-size: 13px;
        cursor: pointer;
      }
      .vibe-chat-topline-close { min-width: 44px; padding: 0; font-size: 28px; }
      .vibe-chat-topline button:focus-visible { outline: 3px solid #2167f5; outline-offset: 2px; }
      .vibe-chat-conversations[hidden] { display: none; }
      .vibe-chat-conversations { max-height: min(50dvh, 420px); overflow-y: auto; padding: 2px; }
      .vibe-chat-conversations h3 { margin: 4px 0 14px; color: #0b285b; font-size: 21px; }
      .vibe-chat-conversation-list { display: grid; gap: 10px; }
      .vibe-chat-panel.showing-conversations > :not(.vibe-chat-topline):not(.vibe-chat-conversations) { display: none !important; }
      html[data-theme="dark"] .vibe-chat-topline,
      html[data-theme="dark"] .vibe-chat-conversations h3 { color: #f5f8ff; }
      html[data-theme="dark"] .vibe-chat-topline { border-color: rgba(176, 199, 236, 0.17); }
      html[data-theme="dark"] .vibe-chat-topline button { color: #f5f8ff; background: #142b47; }

      .vibe-call-panel {
        position: absolute;
        z-index: 7;
        top: 106px;
        left: 50%;
        width: min(620px, calc(100% - 44px));
        padding: 16px;
        border: 1px solid rgba(255, 255, 255, 0.86);
        border-radius: 22px;
        color: var(--ink);
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 20px 48px rgba(7, 32, 76, 0.24);
        backdrop-filter: blur(18px);
        transform: translateX(-50%);
      }

      .vibe-call-people,
      .vibe-chat-people {
        display: flex;
        align-items: center;
      }

      .vibe-chat-people {
        flex: 0 0 auto;
        min-width: 0;
      }

      .vibe-chat-header--group { flex-wrap: wrap; }
      .vibe-chat-header--group .vibe-chat-people { order: 3; flex: 1 0 100%; width: 0; overflow-x: auto; gap: 12px; padding-block: 8px; align-items: flex-start; }
      .vibe-chat-participant { flex: 0 0 88px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: 12px; color: var(--ink); }
      .vibe-chat-participant > span:last-child { white-space: normal; overflow-wrap: anywhere; }
      /* One person: their moving avatar, kept to the header's height. */
      .vibe-chat-people .live-avatar-slot--detail { width: 48px; height: 68px; margin-block: -12px 0; }
      .vibe-chat-people .live-avatar-slot--row { width: 40px; height: 58px; margin-block: -8px 0; }
      .vibe-chat-people .live-avatar-slot--row + .live-avatar-slot--row { margin-left: -10px; }
      .live-question-photo .live-avatar-slot--row { width: 40px; height: 56px; margin-block: -6px; }

      .vibe-chat-people .vibe-chat-avatar:not(:first-child) {
        margin-left: -9px;
      }

      .vibe-chat-messages {
        display: flex;
        min-height: 118px;
        max-height: 230px;
        flex-direction: column;
        gap: 7px;
        overflow-y: auto;
        padding: 10px 2px;
      }

      .vibe-message {
        max-width: 78%;
        align-self: flex-start;
        padding: 9px 12px;
        border-radius: 14px 14px 14px 5px;
        color: var(--ink);
        background: #edf3fc;
        font-size: 11px;
        line-height: 1.4;
      }

      .vibe-message.mine {
        align-self: flex-end;
        border-radius: 14px 14px 5px 14px;
        color: #fff;
        background: var(--blue);
      }

      .vibe-message small {
        display: block;
        margin-bottom: 2px;
        font-size: 8px;
        font-weight: 700;
        opacity: 0.72;
      }

      .vibe-chat-status {
        margin: 0;
        color: #52698f;
        font-size: 9px;
        text-align: center;
      }

      .vibe-chat-header {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 11px;
        margin-bottom: 12px;
      }

      .vibe-chat-avatar {
        width: 44px;
        height: 44px;
        display: grid;
        place-items: center;
        flex: 0 0 44px;
        overflow: hidden;
        border: 2px solid #fff;
        border-radius: 50%;
        color: #fff;
        background: linear-gradient(145deg, #2167f5, #7659ef);
        box-shadow: 0 6px 16px rgba(20, 56, 112, 0.18);
        font-size: 10px;
        font-weight: 700;
      }

      .vibe-chat-heading {
        min-width: 0;
        flex: 1 1 120px;
      }

      .vibe-chat-heading strong,
      .vibe-chat-heading span {
        display: block;
      }

      .vibe-chat-heading strong {
        overflow: hidden;
        color: var(--ink);
        font-size: 15px;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .vibe-chat-heading span {
        margin-top: 3px;
        color: #52698f;
        font-size: 9px;
      }

      .vibe-chat-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-left: auto;
      }

      .vibe-chat-back,
      .vibe-chat-close {
        min-width: 44px;
        min-height: 44px;
        padding: 0 11px;
        border: 0;
        border-radius: 11px;
        color: var(--blue);
        background: #edf4ff;
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
      }

      .vibe-chat-close { font-size: 27px; }
      .vibe-chat-actions button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
      html[data-theme="dark"] .vibe-chat-actions button { color: #f5f8ff; background: #142b47; }

      .vibe-chat-form {
        display: grid;
        gap: 9px;
      }

      .vibe-chat-form textarea {
        width: 100%;
        min-height: 48px;
        max-height: 96px;
        padding: 12px 14px;
        resize: none;
        border: 1px solid rgba(29, 75, 153, 0.16);
        border-radius: 16px;
        outline: none;
        color: var(--ink);
        background: #f7f9fd;
        font: inherit;
        font-size: 13px;
        line-height: 1.45;
      }

      .vibe-chat-form textarea:focus {
        border-color: rgba(33, 103, 245, 0.52);
        box-shadow: 0 0 0 3px rgba(33, 103, 245, 0.09);
      }

      .vibe-chat-form button {
        min-height: 40px;
        justify-self: end;
        padding: 0 22px;
        border: 0;
        border-radius: 13px;
        color: #fff;
        background: var(--blue);
        font-size: 10px;
        font-weight: 700;
        cursor: pointer;
      }

      .group-chat-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 12px 16px;
        border-top: 1px solid var(--line);
        color: #52698f;
        font-size: 10px;
      }

      .vibe-call-heading {
        margin: 0 0 13px;
        text-align: center;
      }

      .vibe-call-topline {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 14px;
      }

      .vibe-call-add-people {
        min-height: 34px;
        padding: 0 12px;
        border: 0;
        border-radius: 11px;
        color: var(--blue);
        background: #edf4ff;
        font-size: 9px;
        font-weight: 700;
        cursor: pointer;
      }

      .vibe-call-heading strong,
      .vibe-call-heading span {
        display: block;
      }

      .vibe-call-heading strong {
        font-size: 17px;
      }

      .vibe-call-heading span {
        margin-top: 4px;
        color: #52698f;
        font-size: 10px;
      }

      .vibe-call-people {
        justify-content: flex-start;
      }

      .vibe-call-media {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        overflow: hidden;
        margin-bottom: 13px;
        border-radius: 16px;
      }

      .vibe-call-media:empty {
        display: none;
      }

      .vibe-call-media video {
        width: 100%;
        min-height: 130px;
        object-fit: cover;
        background: #071b3f;
      }

      .vibe-call-controls {
        display: flex;
        justify-content: center;
        gap: 9px;
      }

      .vibe-call-controls button {
        min-height: 40px;
        padding: 0 16px;
        border: 0;
        border-radius: 13px;
        color: #0b285b;
        background: #edf4ff;
        font-size: 10px;
        font-weight: 700;
        cursor: pointer;
      }

      .vibe-call-controls .end-call,
      .vibe-call-controls .decline-call {
        color: #fff;
        background: #e94963;
      }

      .vibe-call-controls .accept-call {
        color: #fff;
        background: #0aad7b;
      }

      .group-chat-bar button {
        min-height: 36px;
        padding: 0 14px;
        border: 0;
        border-radius: 12px;
        color: #fff;
        background: var(--blue);
        font-size: 9px;
        font-weight: 700;
        cursor: pointer;
      }

      .group-chat-bar button:disabled {
        color: #93a2b9;
        background: #edf1f7;
        cursor: default;
      }

      .host-event-preview {
        position: relative;
        width: min(720px, 100%);
        overflow: hidden;
        border: 1px solid rgba(31, 80, 158, 0.1);
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 12px 34px rgba(19, 57, 116, 0.07);
      }

      .friends-map > .host-event-preview {
        position: absolute;
        z-index: 12;
        top: 92px;
        left: 50%;
        width: min(720px, calc(100% - 32px));
        max-height: calc(100% - 108px);
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        transform: translateX(-50%);
      }

      .host-event-preview[hidden] {
        display: none;
      }

      .host-event-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 15px 18px;
        border-bottom: 1px solid var(--line);
      }

      .host-event-header p,
      .host-event-header h4 {
        margin: 0;
      }

      .host-event-header p {
        margin-bottom: 3px;
        color: #52698f;
        font-size: 9px;
        font-weight: 700;
        letter-spacing: 0.09em;
        text-transform: uppercase;
      }

      .host-event-header h4 {
        font-size: 20px;
      }

      .host-event-header h4 span {
        color: var(--blue);
      }

      .host-event-close {
        width: 32px;
        height: 32px;
        border: 1px solid var(--line);
        border-radius: 50%;
        color: #52698f;
        background: #f7f9fd;
        font-size: 18px;
        cursor: pointer;
      }

      .host-event-form {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
        padding: 18px;
      }

      .host-field {
        display: grid;
        gap: 7px;
        min-width: 0;
      }

      .host-field.full {
        grid-column: 1 / -1;
      }

      .host-date-time-row {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
      }

      .host-time-control {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: stretch;
        gap: 7px;
      }

      .host-time-entry {
        min-width: 0;
        display: grid;
        grid-template-columns: minmax(36px, 1fr) auto minmax(36px, 1fr);
        align-items: center;
        gap: 4px;
      }

      .host-time-entry input {
        padding: 0 5px;
        text-align: center;
      }

      .host-time-entry > span {
        color: var(--ink);
        font-size: 14px;
        font-weight: 800;
      }

      .host-period-choice {
        display: grid;
        grid-template-columns: repeat(2, minmax(32px, 1fr));
        gap: 3px;
        padding: 3px;
        border: 1px solid var(--line);
        border-radius: 13px;
        background: #f8faff;
      }

      .host-period-choice label {
        min-height: 35px;
        display: grid;
        place-items: center;
        padding: 0 7px;
        border-radius: 9px;
        color: #52698f;
        font-size: 9px;
        font-weight: 800;
        cursor: pointer;
      }

      .host-period-choice label:has(input:checked) {
        color: #ffffff;
        background: linear-gradient(145deg, #397cff, #2167f5);
        box-shadow: 0 5px 12px rgba(22, 89, 211, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.24);
      }

      .host-period-choice label:has(input:focus-visible) {
        outline: 2px solid rgba(33, 103, 245, 0.42);
        outline-offset: 1px;
      }

      .host-period-choice input {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
      }

      .host-field > span,
      .host-choice legend {
        color: #52698f;
        font-size: 9px;
        font-weight: 700;
      }

      .host-field input,
      .host-field select,
      .host-field textarea {
        width: 100%;
        min-width: 0;
        border: 1px solid var(--line);
        border-radius: 13px;
        color: var(--ink);
        background: #f8faff;
        font: inherit;
        font-size: 11px;
        outline: none;
      }

      .host-field input,
      .host-field select {
        height: 43px;
        padding: 0 12px;
      }

      .host-field select {
        appearance: none;
        padding-right: 34px;
        background-image: linear-gradient(45deg, transparent 50%, #6c82a4 50%), linear-gradient(135deg, #6c82a4 50%, transparent 50%);
        background-position: calc(100% - 17px) 18px, calc(100% - 12px) 18px;
        background-repeat: no-repeat;
        background-size: 5px 5px, 5px 5px;
        cursor: pointer;
      }

      .host-location-field {
        gap: 7px;
        margin: 0;
        padding: 0;
        border: 0;
      }

      .host-location-field > legend {
        margin-bottom: 7px;
        padding: 0;
        color: #52698f;
        font-size: 9px;
        font-weight: 700;
      }

      .host-location-selects {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        overflow: hidden;
        border: 1px solid var(--line);
        border-radius: 13px;
        background: #f8faff;
      }

      .host-location-part {
        min-width: 0;
        padding: 7px 10px 6px;
      }

      .host-location-part + .host-location-part {
        border-left: 1px solid var(--line);
      }

      .host-location-part > span {
        display: block;
        margin-bottom: 1px;
        color: #52698f;
        font-size: 8px;
        font-weight: 700;
      }

      .location-picker-trigger {
        width: 100%;
        height: 25px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 14px;
        align-items: center;
        gap: 5px;
        padding: 0;
        border: 0;
        color: var(--ink);
        background: transparent;
        text-align: left;
        cursor: pointer;
      }

      .location-picker-trigger strong {
        overflow: hidden;
        font-size: 11px;
        font-weight: 700;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .location-picker-trigger svg {
        width: 13px;
        height: 13px;
        color: #52698f;
      }

      .location-picker-trigger:disabled {
        color: #9aa8bb;
        cursor: wait;
      }

      .host-field textarea {
        min-height: 78px;
        padding: 11px 12px;
        resize: vertical;
      }

      .host-image-field input[type="file"] {
        height: auto;
        padding: 9px;
        color: #52698f;
        background: #f8faff;
        cursor: pointer;
      }

      .host-image-field input[type="file"]::file-selector-button {
        margin-right: 10px;
        padding: 8px 11px;
        border: 0;
        border-radius: 9px;
        color: var(--blue);
        background: #eaf1ff;
        font: inherit;
        font-size: 9px;
        font-weight: 700;
        cursor: pointer;
      }

      .host-image-preview {
        position: relative;
        min-height: 150px;
        overflow: hidden;
        border-radius: 14px;
        background: #edf3ff;
      }

      .host-image-preview[hidden] {
        display: none;
      }

      .host-image-preview img {
        width: 100%;
        height: 180px;
        display: block;
        object-fit: cover;
      }

      .host-image-preview button {
        position: absolute;
        top: 9px;
        right: 9px;
        width: 28px;
        height: 28px;
        border: 1px solid rgba(255, 255, 255, 0.72);
        border-radius: 50%;
        color: #fff;
        background: rgba(9, 30, 65, 0.68);
        font-size: 16px;
        cursor: pointer;
      }

      .host-field input:focus,
      .host-field textarea:focus {
        border-color: rgba(33, 103, 245, 0.5);
        box-shadow: 0 0 0 3px rgba(33, 103, 245, 0.08);
      }

      .host-choice {
        min-width: 0;
        margin: 0;
        padding: 0;
        border: 0;
      }

      .host-choice.full,
      .host-studio-picker.full,
      .host-event-team.full {
        grid-column: 1 / -1;
      }

      .host-choice legend {
        margin-bottom: 7px;
      }

      .host-choice-options {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
      }

      .host-choice-options.three {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }

      .host-choice-options.event-types {
        grid-template-columns: repeat(4, minmax(0, 1fr));
      }

      .host-event-type-description {
        margin: 8px 0 0;
        padding: 10px 12px;
        border: 1px solid rgba(142, 91, 255, 0.24);
        border-radius: 12px;
        color: #6741ad;
        background: #f7f2ff;
        font-size: 10px;
        font-weight: 650;
        line-height: 1.45;
      }

      .host-event-category {
        min-width: 0;
        margin: 0;
        padding: 0;
        border: 0;
        grid-column: 1 / -1;
      }

      .host-event-category legend {
        margin-bottom: 7px;
        color: #52698f;
        font-size: 9px;
        font-weight: 700;
      }

      .host-event-category-trigger {
        width: 100%;
        min-height: 52px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 12px;
        padding: 9px 13px;
        border: 1px solid var(--line);
        border-radius: 13px;
        color: var(--ink);
        background: #f8faff;
        text-align: left;
        cursor: pointer;
      }

      .host-event-category-trigger span {
        display: grid;
        gap: 2px;
      }

      .host-event-category-trigger small {
        color: #52698f;
        font-size: 8px;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
      }

      .host-event-category-trigger strong {
        overflow: hidden;
        font-size: 11px;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .host-event-category-trigger b {
        color: #8e5bff;
        font-size: 18px;
        line-height: 1;
      }

      .host-event-category-overlay {
        position: fixed;
        z-index: 500;
        inset: 0;
        display: grid;
        place-items: center;
        padding: 70px 18px 18px;
        background: rgba(8, 17, 33, 0.48);
        backdrop-filter: blur(8px);
      }

      .host-event-category-overlay[hidden] {
        display: none;
      }

      .host-event-category-panel {
        position: relative;
        z-index: 1;
        width: min(720px, 100%);
        overflow: hidden;
        border: 1px solid rgba(142, 91, 255, 0.32);
        border-radius: 18px;
        background: #ffffff;
        box-shadow: 0 22px 52px rgba(4, 14, 32, 0.26);
      }

      .host-event-category-panel > header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 14px 15px;
        border-bottom: 1px solid var(--line);
      }

      .host-event-category-panel h5,
      .host-event-category-panel p {
        margin: 0;
      }

      .host-event-category-panel h5 {
        color: var(--ink);
        font-size: 14px;
      }

      .host-event-category-panel p {
        margin-top: 3px;
        color: #52698f;
        font-size: 9px;
      }

      .host-event-category-close {
        width: 30px;
        height: 30px;
        flex: 0 0 auto;
        border: 1px solid var(--line);
        border-radius: 50%;
        color: #52698f;
        background: #f7f9fd;
        font-size: 17px;
        cursor: pointer;
      }

      .host-event-category-list {
        max-height: min(510px, calc(100vh - 220px));
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        overflow-y: auto;
        padding: 12px;
      }

      .host-event-category-option {
        min-height: 58px;
        display: grid;
        align-content: center;
        gap: 4px;
        padding: 10px 11px;
        border: 1px solid #dbe4f2;
        border-radius: 12px;
        color: #52698f;
        background: #f8faff;
        text-align: left;
        cursor: pointer;
      }

      .host-event-category-option strong {
        font-size: 10px;
      }

      .host-event-category-option small {
        color: #52698f;
        font-size: 8px;
        line-height: 1.35;
      }

      .host-event-category-option[aria-checked="true"] {
        border-color: rgba(142, 91, 255, 0.72);
        color: #6030c7;
        background: #f3edff;
        box-shadow: inset 0 0 0 1px rgba(142, 91, 255, 0.16);
      }

      .host-event-category-backdrop {
        position: absolute;
        inset: 0;
        border: 0;
        background: transparent;
        cursor: default;
      }

      .host-choice label {
        min-height: 43px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        border: 1px solid var(--line);
        border-radius: 13px;
        color: #52698f;
        background: #f8faff;
        font-size: 10px;
        font-weight: 700;
        cursor: pointer;
        transition: border-color 150ms ease, color 150ms ease, background 150ms ease, transform var(--sp-dur-glide) var(--sp-ease-glide);
      }

      .host-choice label:has(input:checked) {
        border-color: rgba(45, 114, 255, 0.38);
        color: #155cdb;
        background: linear-gradient(125deg, #edf4ff, #f3edff);
        box-shadow: 0 7px 18px rgba(38, 91, 177, 0.09);
        transform: translateY(-1px);
      }

      .host-choice input {
        width: 13px;
        height: 13px;
        accent-color: var(--blue);
      }

      .host-studio-picker {
        min-width: 0;
        margin: 0;
        padding: 0;
        border: 0;
      }

      .host-studio-picker legend {
        margin-bottom: 7px;
        color: #52698f;
        font-size: 9px;
        font-weight: 700;
      }

      .host-studio-options {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.25rem), 1fr));
        gap: 12px;
      }

      .host-studio-option {
        position: relative;
        min-width: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        padding: 0;
        border: 2px solid var(--sp-theme-border);
        border-radius: 16px;
        color: var(--sp-theme-text);
        background: var(--sp-theme-surface);
        cursor: pointer;
      }

      .host-studio-option::before {
        content: "";
        display: block;
        width: 100%;
        aspect-ratio: 1.6;
        flex-shrink: 0;
        background: var(--studio-preview) center / cover no-repeat;
      }
      .host-studio-preview-choice:nth-child(1) .host-studio-option { --studio-preview: url("assets/spossity-city-lights-stage-empty.png"); }
      .host-studio-preview-choice:nth-child(2) .host-studio-option { --studio-preview: url("assets/event-studio-set-empty.png"); }
      .host-studio-preview-choice:nth-child(3) .host-studio-option { --studio-preview: url("assets/event-studio-conservatory.png"); }
      .host-studio-preview-choice:nth-child(4) .host-studio-option { --studio-preview: url("assets/event-studio-healy-hall.jpg"); }
      .host-studio-preview-choice:nth-child(5) .host-studio-option { --studio-preview: url("assets/event-studio-kendall-meeting-room.png"); }
      .host-studio-option:has(input:checked) { border-color: var(--sp-color-blue); }
      html[data-theme="dark"] .host-studio-option:has(input:checked) { border-color: var(--sp-color-violet); }
      .host-studio-option:has(input:focus-visible) { outline: 2px solid var(--sp-theme-text); outline-offset: 3px; }
      .host-studio-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
      .host-studio-option strong {
        display: flex;
        align-items: center;
        flex: 1;
        min-height: calc(2.8em + 24px);
        padding: 12px;
        font-size: 0.875rem;
        line-height: 1.4;
        font-weight: 600;
        overflow-wrap: anywhere;
      }

      .host-event-team {
        display: grid;
        gap: 9px;
        padding: 13px;
        border: 1px solid var(--line);
        border-radius: 15px;
        background: #f8faff;
      }

      .host-event-team[hidden],
      [data-studio-seat-field][hidden],
      [data-audience-countries-field][hidden] {
        display: none;
      }

      .host-audience-picker {
        display: grid;
        gap: 9px;
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: 13px;
        background: #f8faff;
      }

      .host-audience-picker .host-audience-search { height: 40px; }

      .host-audience-options {
        display: grid;
        gap: 3px;
        max-height: 180px;
        overflow-y: auto;
        overscroll-behavior: contain;
      }

      .host-audience-option {
        min-height: 36px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 6px 9px;
        border: 1px solid transparent;
        border-radius: 9px;
        color: var(--ink);
        background: transparent;
        font-size: 11px;
        text-align: left;
        cursor: pointer;
      }

      .host-audience-option[aria-pressed="true"] {
        border-color: #8e5bff;
        background: #eee8ff;
        font-weight: 700;
      }

      .host-audience-selected {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        min-height: 20px;
        color: #52698f;
        font-size: 11px;
      }

      .host-audience-selected button {
        padding: 5px 9px;
        border: 1px solid #a68aff;
        border-radius: 999px;
        color: var(--ink);
        background: #eee8ff;
        font: inherit;
        cursor: pointer;
      }

      html[data-theme="dark"] body.is-logged-in .host-audience-picker {
        border-color: var(--dark-border);
        background: #091b32;
      }

      html[data-theme="dark"] body.is-logged-in .host-audience-option,
      html[data-theme="dark"] body.is-logged-in .host-audience-selected button { color: var(--dark-text); }

      html[data-theme="dark"] body.is-logged-in .host-audience-option[aria-pressed="true"],
      html[data-theme="dark"] body.is-logged-in .host-audience-selected button {
        border-color: #a68aff;
        background: #281d4e;
      }

      .host-event-team > strong {
        color: var(--ink);
        font-size: 11px;
      }

      .host-event-team > p {
        margin: -3px 0 0;
        color: #52698f;
        font-size: 9px;
        line-height: 1.45;
      }

      .host-event-team-picker {
        display: grid;
        grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) auto;
        align-items: end;
        gap: 8px;
      }

      .host-event-team-picker button,
      .host-team-remove {
        min-height: 43px;
        padding: 0 14px;
        border: 1px solid rgba(33, 103, 245, 0.28);
        border-radius: 13px;
        color: var(--blue);
        background: #fff;
        font: inherit;
        font-size: 10px;
        font-weight: 750;
        cursor: pointer;
      }

      .host-event-team-list {
        display: grid;
        gap: 7px;
      }

      .host-team-member {
        min-height: 45px;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 7px 8px 7px 11px;
        border-radius: 12px;
        color: var(--ink);
        background: #fff;
        font-size: 10px;
      }

      .host-team-member span {
        min-width: 0;
        flex: 1;
      }

      .host-team-member span strong,
      .host-team-member span small {
        display: block;
      }

      .host-team-member span small {
        margin-top: 2px;
        color: #52698f;
      }

      .host-team-remove {
        min-height: 31px;
        padding: 0 10px;
      }

      .host-event-submit {
        grid-column: 1 / -1;
        min-height: 44px;
        border: 0;
        border-radius: 13px;
        color: #fff;
        background: linear-gradient(120deg, #2167f5, #4d6df5 58%, #7757ee);
        box-shadow: 0 10px 24px rgba(33, 103, 245, 0.2);
        font-size: 11px;
        font-weight: 700;
        cursor: pointer;
      }

      .live-view {
        min-height: calc(100svh - 92px);
        padding: 12px 0 54px;
        animation: sp-screen-in var(--sp-dur-glide) var(--sp-ease-glide) backwards;
      }

      @media (min-width: 1101px) {
        .live-view > .persistent-city-map {
          margin-top: 0;
        }
      }

      .live-view-header {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 24px;
        margin-bottom: 24px;
      }

      .live-view-header p {
        margin: 0 0 6px;
        color: #52698f;
        font-size: 14px;
      }

      .live-view-header h2 {
        margin: 0;
        color: var(--ink);
        font-size: clamp(36px, 4vw, 58px);
        line-height: 1;
        letter-spacing: -0.055em;
      }

      .live-view-header h2 span {
        color: var(--blue);
      }

      .live-count {
        display: inline-flex;
        align-items: center;
        gap: 8px;
      }

      .live-count::before {
        content: "";
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--sp-danger);
        box-shadow: 0 0 0 4px rgba(255, 65, 101, 0.12);
      }

      .live-view-controls,
      .live-event-filters {
        display: flex;
        align-items: center;
        gap: 10px;
      }

      .live-event-filters {
        padding: 4px;
        border: 1px solid var(--line);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.78);
      }

      .live-filter-button {
        min-height: 34px;
        padding: 0 14px;
        border: 0;
        border-radius: 999px;
        color: #52698f;
        background: transparent;
        font-size: 11px;
        font-weight: 700;
        cursor: pointer;
      }

      .live-filter-button.active {
        color: #fff;
        background: var(--blue);
        box-shadow: 0 6px 15px rgba(33, 103, 245, 0.2);
      }

      .live-filter-button:focus-visible {
        outline: 2px solid rgba(33, 103, 245, 0.55);
        outline-offset: 2px;
      }

      .live-count.upcoming::before {
        background: var(--sp-color-blue-bright);
        box-shadow: 0 0 0 4px rgba(76, 138, 255, 0.12);
      }

      .live-events-grid {
        display: none;
      }

      .live-view > .persistent-city-map .friends-map {
        min-height: clamp(620px, 74vh, 820px);
      }

      .friends-preview.live-map-mode > .friends-preview-header {
        display: none;
      }

      .friends-preview.live-map-mode .friends-map-label {
        top: 112px;
      }

      .friends-map > .live-view-header {
        position: absolute;
        z-index: 8;
        top: 16px;
        right: 16px;
        left: 16px;
        margin: 0;
        padding: 14px 16px;
        border: 1px solid rgba(255, 255, 255, 0.82);
        border-radius: 19px;
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 14px 34px rgba(8, 35, 80, 0.18);
        backdrop-filter: blur(16px);
      }

      .friends-map > .live-view-header h2 {
        font-size: clamp(27px, 3vw, 39px);
      }

      .friends-map > .live-view-header p {
        margin-bottom: 5px;
        font-size: 9px;
      }

      .live-map-pin {
        position: absolute;
        z-index: 4;
        left: var(--event-x);
        top: var(--event-y);
        width: 42px;
        height: 42px;
        display: grid;
        place-items: center;
        border: 4px solid #fff;
        border-radius: 50% 50% 50% 0;
        color: #fff;
        background: linear-gradient(145deg, #226af4, #7650f2);
        box-shadow: 0 8px 22px rgba(8, 38, 88, 0.3);
        cursor: pointer;
        transform: translate(-50%, -50%) rotate(-45deg);
        transition: transform var(--sp-dur-glide) var(--sp-ease-glide), box-shadow 160ms ease;
      }

      .live-map-pin svg {
        width: 17px;
        height: 17px;
        transform: rotate(45deg);
      }

      .live-map-pin:hover,
      .live-map-pin.active {
        box-shadow: 0 8px 24px rgba(25, 94, 228, 0.42), 0 0 0 7px rgba(39, 109, 242, 0.18);
        transform: translate(-50%, -50%) rotate(-45deg) scale(1.08);
      }

      .live-map-event-panel {
        position: absolute;
        z-index: 6;
        right: 22px;
        bottom: 20px;
        left: 22px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(360px, 1.25fr);
        align-items: center;
        gap: 18px;
        padding: 16px;
        border: 1px solid rgba(255, 255, 255, 0.84);
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.92);
        box-shadow: 0 20px 48px rgba(7, 32, 76, 0.24);
        backdrop-filter: blur(18px);
      }

      .live-map-event-info {
        min-width: 0;
        display: grid;
        grid-template-columns: 72px minmax(0, 1fr);
        align-items: center;
        gap: 13px;
      }

      .live-map-event-image {
        width: 72px;
        height: 72px;
        border-radius: 17px;
        background-color: #17376b;
        background-position: center;
        background-size: cover;
      }

      .live-map-event-copy {
        min-width: 0;
      }

      .live-map-event-copy > span,
      .live-map-event-copy > small,
      .live-map-event-copy > strong {
        display: block;
      }

      .live-map-event-copy > span {
        color: var(--blue);
        font-size: 8px;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
      }

      .live-map-event-copy > strong {
        overflow: hidden;
        margin-top: 4px;
        color: var(--ink);
        font-size: 17px;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .live-map-event-copy > small {
        margin-top: 4px;
        color: #52698f;
        font-size: 9px;
      }

      .live-map-event-attending {
        margin-top: 6px;
        color: #157a55;
        font-size: 9px;
        font-weight: 700;
      }

      .live-map-event-actions {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 7px;
      }

      .live-map-event-actions .event-action {
        min-height: 36px;
      }

      .live-event-card {
        min-width: 0;
        overflow: hidden;
        border: 1px solid rgba(31, 80, 158, 0.11);
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 18px 44px rgba(19, 57, 116, 0.09);
      }

      .live-event-visual {
        position: relative;
        height: 172px;
        overflow: hidden;
        background-color: #17376b;
        background-position: center;
        background-size: cover;
      }

      .live-event-visual::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(6, 21, 50, 0.04), rgba(6, 21, 50, 0.5));
      }

      .event-scene-1,
      .event-scene-5,
      .event-scene-9 {
        background-image: linear-gradient(135deg, rgba(72, 39, 188, 0.32), rgba(11, 32, 92, 0.08)), url("assets/concert-thumb.png");
        image-rendering: auto;
      }

      .event-scene-2,
      .event-scene-6,
      .event-scene-10 {
        background-image: linear-gradient(135deg, rgba(255, 133, 66, 0.2), rgba(27, 83, 184, 0.08)), url("assets/spossity-home-city.png");
      }

      .event-scene-3,
      .event-scene-7 {
        background-image: linear-gradient(135deg, rgba(12, 169, 116, 0.22), rgba(25, 78, 169, 0.12)), url("assets/spossity-city-hero.webp");
      }

      .event-scene-4,
      .event-scene-8 {
        background-image: linear-gradient(135deg, rgba(43, 91, 219, 0.16), rgba(128, 60, 201, 0.16)), url("assets/spossity-home-city.png");
        background-position: 72% center;
      }

      .event-live-badge,
      .event-viewers {
        position: absolute;
        z-index: 2;
        top: 13px;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 7px 10px;
        border-radius: 999px;
        color: #fff;
        background: rgba(8, 28, 67, 0.76);
        backdrop-filter: blur(10px);
        font-size: 9px;
        font-weight: 700;
        letter-spacing: 0.08em;
      }

      .event-live-badge {
        left: 13px;
      }

      .event-live-badge::before {
        content: "";
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #ff4165;
      }

      .event-live-badge.upcoming::before {
        background: #4c8aff;
      }

      .event-live-badge.starting::before {
        background: #8b55ff;
      }

      .event-viewers {
        right: 13px;
        letter-spacing: 0;
        font-weight: 600;
      }

      .live-event-meta {
        position: absolute;
        z-index: 2;
        right: 16px;
        bottom: 14px;
        left: 16px;
        color: #fff;
      }

      .live-event-meta span {
        display: block;
        margin-bottom: 5px;
        color: rgba(255, 255, 255, 0.82);
        font-size: 9px;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
      }

      .live-event-meta strong {
        display: block;
        font-size: 19px;
        line-height: 1.15;
      }

      .live-event-body {
        padding: 16px;
      }

      .live-event-host {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 14px;
        color: #52698f;
        font-size: 10px;
      }

      .live-event-host strong {
        color: var(--ink);
      }

      .live-event-place {
        text-align: right;
      }

      .event-seat-count {
        display: flex;
        justify-content: flex-end;
        gap: 7px;
        margin-top: 3px;
        color: #13845b;
        font-size: 8px;
        font-weight: 700;
      }

      .event-seat-count span + span::before {
        content: "·";
        margin-right: 7px;
        color: #52698f;
      }

      .event-seat-count.sold-out {
        color: #e43f5f;
      }

      .live-event-actions {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
      }

      .event-social-action {
        grid-column: span 1;
      }

      .event-attend {
        grid-column: span 2;
        color: #fff;
        border-color: var(--blue);
        background: var(--blue);
      }

      .event-action {
        min-height: 39px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        padding: 0 9px;
        border: 1px solid rgba(37, 82, 157, 0.13);
        border-radius: 11px;
        color: #52698f;
        background: #f7f9fd;
        font-size: 9px;
        font-weight: 600;
        cursor: pointer;
        transition: transform var(--sp-dur-glide) var(--sp-ease-glide), color 160ms ease, border-color 160ms ease, background 160ms ease;
      }

      .event-action:hover {
        transform: translateY(-1px);
        border-color: rgba(33, 103, 245, 0.35);
      }

      .event-action:disabled {
        color: #9ba8ba;
        border-color: rgba(37, 82, 157, 0.08);
        background: #f2f4f8;
        cursor: not-allowed;
        transform: none;
      }

      .event-action svg {
        width: 15px;
        height: 15px;
        flex: 0 0 auto;
      }

      .event-action small {
        margin-left: 2px;
        font-size: 0.82em;
        font-weight: 700;
        opacity: 0.72;
      }

      .event-action.liked {
        color: #135ce8;
        border-color: rgba(33, 103, 245, 0.34);
        background: #e4efff;
      }

      .event-like {
        color: #1762ed;
        background: #eef4ff;
      }

      .event-comment {
        color: #0b285b;
        background: #f5f7fb;
      }

      .event-keep {
        color: #08753f;
        background: #eef9f3;
      }

      .event-share {
        flex-direction: column;
        gap: 3px;
        color: #4f24bd;
        background: #f3efff;
      }

      .event-share svg {
        width: 30px;
        height: 17px;
      }

      .event-action.attending {
        color: #fff;
        border-color: var(--blue);
        background: var(--blue);
      }

      .event-action.kept,
      .timeline-action.kept {
        color: #08753f;
        border-color: rgba(8, 117, 63, 0.22);
        background: #edf9f2;
      }

      .event-watch {
        grid-column: span 2;
        color: var(--blue);
        border-color: var(--blue);
        background: #edf4ff;
      }

      .event-watch:hover {
        color: #0f53d3;
        background: #dceaff;
      }

      .event-watch.event-watch-only { grid-column: 1 / -1; }

      body.live-watch-open { overflow: hidden; }

      [data-live-viewer-count] { font-size:12px;white-space:nowrap; }

      .host-live-listing-identity { display:flex;flex-direction:column;gap:12px;padding:18px;min-width:0; }
      .host-live-listing-category { font-size:12px;font-weight:700;text-transform:uppercase;color:#52698f; }
      .host-live-listing-person { display:flex;align-items:flex-start;gap:12px;min-width:0; }
      .host-live-listing-copy { display:flex;flex-direction:column;gap:6px;min-width:0;flex:1;overflow-wrap:anywhere; }
      .host-live-listing-copy > strong { font-size:22px;line-height:1.2; }
      .host-live-listing-copy > span { line-height:1.4; }
      .host-live-listing-identity > small { color:#52698f; }
      .live-host-profile { flex:0 0 auto;width:64px;height:80px; }
      .live-host-profile-large { position:absolute;left:calc(50% - 40px);top:36px;width:80px;height:100px; }
      .live-watch-modal {
        position: fixed;
        z-index: 1500;
        inset: 0;
        display: grid;
        place-items: center;
        padding: clamp(14px, 3vw, 34px);
      }

      .live-watch-modal[hidden] { display: none; }

      .live-watch-backdrop {
        position: absolute;
        inset: 0;
        border: 0;
        background: rgba(2, 11, 28, 0.76);
        backdrop-filter: blur(12px);
      }

      .live-watch-dialog {
        position: relative;
        z-index: 1;
        width: min(920px, 100%);
        overflow: hidden;
        border: 1px solid rgba(143, 182, 247, 0.28);
        border-radius: 28px;
        color: #fff;
        background: #07182f;
        box-shadow: 0 32px 90px rgba(0, 5, 18, 0.56);
      }

      .live-watch-header,
      .live-watch-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 16px 18px;
      }

      .live-watch-header > span,
      .live-watch-footer > span { min-width: 0; }
      .live-watch-header strong,
      .live-watch-footer strong,
      .live-watch-footer small { display: block; }
      .live-watch-header strong { font-size: 17px; }
      .live-watch-header small,
      .live-watch-footer small { margin-top: 3px; color: #9fb4d2; font-size: 10px; }

      .live-watch-close {
        width: 42px;
        height: 42px;
        flex: 0 0 auto;
        border: 1px solid rgba(255, 255, 255, 0.22);
        border-radius: 50%;
        color: #fff;
        background: rgba(255, 255, 255, 0.08);
        font: inherit;
        font-size: 21px;
        cursor: pointer;
      }

      .live-watch-stage {
        position: relative;
        aspect-ratio: 16 / 9;
        overflow: hidden;
        background-color: #0c2a54;
        background-position: center;
        background-size: cover;
      }

      .live-watch-stage::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(2, 12, 30, 0.08), rgba(2, 12, 30, 0.58));
        pointer-events: none;
      }

      .live-watch-badge,
      .live-watch-spectator {
        position: absolute;
        z-index: 2;
        top: 18px;
        padding: 8px 11px;
        border-radius: 999px;
        font-size: 9px;
        font-weight: 800;
      }

      .live-watch-badge { left: 18px; background: #ed3154; letter-spacing: 0.1em; }
      .live-watch-spectator { right: 18px; background: rgba(5, 20, 45, 0.8); backdrop-filter: blur(10px); }

      .live-watch-now {
        position: absolute;
        z-index: 2;
        right: 18px;
        bottom: 18px;
        left: 18px;
        text-shadow: 0 3px 18px rgba(0, 7, 20, 0.82);
      }

      .live-watch-now strong { display: block; font-size: clamp(22px, 4vw, 42px); }
      .live-watch-now small { display: block; margin-top: 5px; color: rgba(255, 255, 255, 0.84); }

      .live-watch-footer > em {
        flex: 0 0 auto;
        padding: 8px 11px;
        border-radius: 999px;
        color: #73e2ad;
        background: rgba(22, 119, 82, 0.2);
        font-size: 9px;
        font-style: normal;
        font-weight: 800;
      }

      body.comments-open,
      body.location-picker-open {
        overflow: hidden;
      }

      .location-picker-modal {
        position: fixed;
        z-index: 100;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 22px;
      }

      .location-picker-modal[hidden] {
        display: none !important;
      }

      .location-picker-backdrop {
        position: absolute;
        inset: 0;
        border: 0;
        background: rgba(4, 17, 40, 0.52);
        backdrop-filter: blur(8px);
        cursor: pointer;
      }

      .location-picker-sheet {
        position: relative;
        width: min(460px, 100%);
        max-height: min(690px, calc(100svh - 44px));
        display: grid;
        grid-template-rows: auto auto minmax(0, 1fr);
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.72);
        border-radius: 28px;
        background: rgba(251, 253, 255, 0.97);
        box-shadow: 0 30px 90px rgba(4, 22, 55, 0.3);
        backdrop-filter: blur(22px);
        animation: sp-sheet-in var(--sp-dur-glide) var(--sp-ease-glide) backwards;
      }

      .location-picker-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
        padding: 22px 22px 14px;
      }

      .location-picker-header p,
      .location-picker-header h3 {
        margin: 0;
      }

      .location-picker-header p {
        margin-bottom: 3px;
        color: #52698f;
        font-size: 9px;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
      }

      .location-picker-header h3 {
        font-size: 25px;
        letter-spacing: -0.04em;
      }

      .location-picker-header h3 span {
        color: var(--blue);
      }

      .location-picker-close {
        width: 38px;
        height: 38px;
        display: grid;
        place-items: center;
        flex: 0 0 auto;
        border: 1px solid rgba(31, 80, 158, 0.1);
        border-radius: 50%;
        color: #52698f;
        background: #f2f6fc;
        font-size: 19px;
        cursor: pointer;
      }

      .location-picker-search {
        height: 48px;
        display: grid;
        grid-template-columns: 19px minmax(0, 1fr);
        align-items: center;
        gap: 9px;
        margin: 0 22px 12px;
        padding: 0 14px;
        border: 1px solid rgba(31, 80, 158, 0.1);
        border-radius: 16px;
        color: #52698f;
        background: #f1f5fb;
      }

      .location-picker-search svg {
        width: 18px;
        height: 18px;
      }

      .location-picker-search input {
        min-width: 0;
        border: 0;
        outline: 0;
        color: var(--ink);
        background: transparent;
        font: inherit;
        font-size: 12px;
      }

      .location-picker-list {
        min-height: 180px;
        overflow-y: auto;
        display: grid;
        align-content: start;
        gap: 6px;
        padding: 0 14px 18px;
        overscroll-behavior: contain;
      }

      .location-picker-option {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 0 14px;
        border: 0;
        border-radius: 15px;
        color: #52698f;
        background: transparent;
        font: inherit;
        font-size: 12px;
        font-weight: 700;
        text-align: left;
        cursor: pointer;
      }

      .location-picker-option:hover {
        background: #f0f4fb;
      }

      .location-picker-option.selected {
        color: #155ddf;
        background: linear-gradient(120deg, #edf4ff, #f3efff);
      }

      .location-picker-check {
        width: 18px;
        height: 18px;
        display: grid;
        place-items: center;
        flex: 0 0 auto;
        border-radius: 50%;
        color: transparent;
        background: #edf1f7;
        font-size: 12px;
      }

      .location-picker-option.selected .location-picker-check {
        color: #fff;
        background: linear-gradient(145deg, #2d72ff, #7558ef);
      }

      .location-picker-empty {
        margin: 44px 18px;
        color: #52698f;
        font-size: 12px;
        text-align: center;
      }

      .comments-modal {
        position: fixed;
        z-index: 80;
        inset: 0;
        display: grid;
        place-items: center;
        padding: 24px;
      }

      .comments-modal[hidden] {
        display: none !important;
      }

      .comments-backdrop {
        position: absolute;
        inset: 0;
        border: 0;
        background: rgba(3, 14, 34, 0.56);
        backdrop-filter: blur(5px);
        cursor: pointer;
      }

      .comments-sheet {
        position: relative;
        width: min(520px, 100%);
        max-height: min(680px, calc(100svh - 48px));
        display: grid;
        grid-template-rows: auto minmax(0, 1fr) auto;
        overflow: hidden;
        border: 1px solid var(--line);
        border-radius: 28px;
        color: var(--ink);
        background: #fff;
        box-shadow: 0 28px 80px rgba(3, 20, 51, 0.28);
      }

      .comments-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 20px 22px 16px;
        border-bottom: 1px solid var(--line);
      }

      .comments-header h3,
      .comments-header p {
        margin: 0;
      }

      .comments-header h3 {
        font-size: 20px;
        line-height: 1.2;
      }

      .comments-header p {
        margin-top: 4px;
        color: #52698f;
        font-size: 11px;
      }

      .comments-close {
        width: 38px;
        height: 38px;
        display: grid;
        place-items: center;
        flex: 0 0 auto;
        border: 1px solid var(--line);
        border-radius: 50%;
        color: var(--ink);
        background: #f6f9fe;
        font-size: 20px;
        cursor: pointer;
      }

      .comments-list {
        min-height: 220px;
        overflow-y: auto;
        display: grid;
        align-content: start;
        gap: 18px;
        padding: 20px 22px;
      }

      .comment-entry {
        display: grid;
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 11px;
      }
      .comment-entry.is-thread-reply { margin-inline-start: calc(min(var(--comment-depth), 3) * 18px); border-inline-start: 2px solid #b4a0f1; padding-inline-start: 8px; }

      .comment-avatar {
        width: 38px;
        height: 38px;
        display: grid;
        place-items: center;
        border-radius: 50%;
        color: #fff;
        background: linear-gradient(145deg, #397cff, #173a7c);
        font-size: 11px;
        font-weight: 700;
      }

      .comment-copy strong,
      .comment-copy small {
        display: block;
      }

      .comment-copy strong {
        font-size: 12px;
      }

      .comment-copy p {
        margin: 4px 0;
        color: #52698f;
        font-size: 12px;
        line-height: 1.45;
      }

      .comment-copy small {
        color: #52698f;
        font-size: 9px;
      }

      .comment-reply-context { border-left: 2px solid #8d63f6; padding-left: 8px; color: #52698f; font-size: 11px; }
      .event-live-chat-before { display: block; color: #52698f; font-size: 11px; }
      /* Your profile card: your moving 3D avatar (its still while it loads), unframed, as on the apps. */
      .profile-card-avatar { position: relative; width: 56px; height: 70px; flex: 0 0 auto; display: grid; place-items: end center; }
      .profile-card-avatar > * { width: 100%; height: 100%; }
      .profile-info-avatar { width: 56px; height: 70px; flex: 0 0 auto; }
      [data-attendee-microphone].is-ready-to-talk { border: 2px solid #8b55ff !important; background: rgba(139,85,255,.28) !important; }
      .comment-host-badge { display: inline-block; margin-inline-start: 6px; padding: 1px 7px; border-radius: 8px; background: #7a3cff; color: #ffffff; font-size: 11px; font-weight: 800; vertical-align: middle; }
      .comment-message-line { display: flex; align-items: flex-end; gap: 6px; }
      .comment-message-line p { flex: 1; min-width: 0; overflow-wrap: anywhere; }
      .comment-actions { display: flex; flex-shrink: 0; align-items: center; gap: 3px; }
      .comment-actions button, .comment-reply-target button { border: 1px solid #cbd8ef; border-radius: 8px; padding: 4px 9px; background: #fff; color: #0b285b; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
      .comment-actions button { width: 32px; height: 32px; padding: 4px; display: grid; place-items: center; font-size: 17px; }
      .comment-tools { display: flex; gap: 3px; }
      .comment-tools[hidden] { display: none; }
      .comment-actions svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
      .comment-reactions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
      .comment-reactions button { border: 1px solid #cbd8ef; border-radius: 20px; padding: 2px 7px; background: #fff; font-size: 12px; cursor: pointer; }
      .comment-reply-target { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #0b285b; font-size: 11px; }
      .comment-reply-target[hidden] { display: none; }

      .comments-form {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 9px;
        padding: 14px 18px max(14px, env(safe-area-inset-bottom));
        border-top: 1px solid var(--line);
        background: rgba(248, 250, 254, 0.96);
      }

      .comments-form input {
        min-width: 0;
        height: 44px;
        padding: 0 14px;
        border: 1px solid var(--line);
        border-radius: 13px;
        color: var(--ink);
        background: #fff;
        font: inherit;
        font-size: 12px;
        outline: none;
      }

      .comments-form input:focus {
        border-color: rgba(33, 103, 245, 0.55);
        box-shadow: 0 0 0 3px rgba(33, 103, 245, 0.1);
      }

      .comments-form button {
        min-width: 70px;
        border: 0;
        border-radius: 13px;
        color: #fff;
        background: var(--blue);
        font-size: 11px;
        font-weight: 700;
        cursor: pointer;
      }

      .timeline-view {
        width: min(620px, 100%);
        min-height: calc(100svh - 92px);
        margin: 0 auto;
        padding: 24px 0 64px;
        animation: sp-screen-in var(--sp-dur-glide) var(--sp-ease-glide) backwards;
      }

      .timeline-header {
        margin-bottom: 18px;
      }

      .timeline-header p,
      .timeline-header h2 {
        margin: 0;
      }

      .timeline-header p {
        margin-bottom: 6px;
        color: #52698f;
        font-size: 14px;
      }

      .timeline-header h2 {
        font-size: clamp(38px, 4vw, 56px);
        line-height: 1;
        letter-spacing: -0.055em;
      }

      .timeline-header h2 span {
        color: var(--blue);
      }

      .timeline-feed {
        display: grid;
        gap: 18px;
      }

      .timeline-glimpse {
        width: 100%;
        display: grid;
        gap: 12px;
        padding: 4px 0 8px;
        background: transparent;
      }

      .timeline-glimpse h3 {
        margin: 0;
        color: var(--ink);
        font-size: clamp(28px, 2.6vw, 40px);
        font-weight: 800;
        letter-spacing: -0.045em;
      }

      .timeline-glimpse-heading {
        display: flex;
        align-items: center;
        gap: 0;
      }

      .timeline-glimpse-heading img {
        display: block;
        width: clamp(34px, 3vw, 42px);
        height: clamp(32px, 2.8vw, 39px);
        object-fit: contain;
        flex: none;
      }

      .glimpse-hanging-gallery {
        position: relative;
        width: min(700px, 78%);
        height: 300px;
        justify-self: center;
        background: transparent;
      }

      .glimpse-hanging-cards {
        position: absolute;
        z-index: 2;
        top: 0;
        right: 5%;
        left: 5%;
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
      }

      .glimpse-hanging-item {
        position: relative;
        width: 27.5%;
        height: 270px;
        transform-origin: 50% 10px;
        transition: transform var(--sp-dur-glide) var(--sp-ease-glide);
      }

      .glimpse-individual-hanger {
        position: absolute;
        z-index: 1;
        top: 0;
        right: 0;
        left: 0;
        width: 100%;
        height: 64px;
        overflow: visible;
        pointer-events: none;
      }

      .glimpse-hanging-card {
        position: absolute;
        z-index: 2;
        top: 54px;
        left: 0;
        width: 100%;
        height: 210px;
        overflow: hidden;
        padding: 0;
        border: 3px solid #9b6cff;
        border-radius: 18px;
        color: #0b285b;
        background: #f7faff;
        box-shadow: 0 12px 24px rgba(123, 69, 234, 0.24);
        cursor: pointer;
        transition: box-shadow 180ms ease;
      }

      .glimpse-hanging-item:nth-child(2) {
        margin-top: 14px;
      }

      .glimpse-hanging-item:nth-child(3) {
        margin-top: 5px;
      }

      .glimpse-hanging-item:hover,
      .glimpse-hanging-item:focus-within {
        transform: translateY(-4px) rotate(1deg);
      }

      .glimpse-hanging-card:hover,
      .glimpse-hanging-card:focus-visible {
        box-shadow: 0 18px 34px rgba(123, 69, 234, 0.34);
      }

      .glimpse-hanging-item.is-swinging {
        animation: glimpse-swing var(--sp-dur-snappy) var(--sp-ease-snappy);
      }

      @keyframes glimpse-swing {
        0%, 100% { transform: rotate(0); }
        30% { transform: rotate(2.4deg); }
        66% { transform: rotate(-1.5deg); }
      }

      .glimpse-hanging-card img,
      .glimpse-hanging-shade {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
      }

      .glimpse-hanging-card img {
        object-fit: cover;
      }

      .glimpse-hanging-shade {
        background: rgba(2, 8, 20, 0.12);
      }

      .glimpse-hanging-play,
      .glimpse-hanging-plus {
        position: absolute;
        z-index: 2;
        top: 50%;
        left: 50%;
        display: grid;
        place-items: center;
        transform: translate(-50%, -50%);
      }

      .glimpse-hanging-play {
        width: 52px;
        height: 52px;
        border: 2px solid currentColor;
        border-radius: 18px;
        color: #397cff;
        background: rgba(3, 11, 27, 0.76);
      }

      .glimpse-hanging-play svg {
        width: 24px;
        height: 24px;
        color: #fff;
      }

      .glimpse-hanging-plus {
        width: 58px;
        height: 58px;
        border: 2px solid rgba(155, 108, 255, 0.58);
        border-radius: 19px;
        color: #9b6cff;
        background: rgba(155, 108, 255, 0.08);
        font-size: 38px;
        font-weight: 300;
        line-height: 1;
      }

      .glimpse-hanging-label {
        position: absolute;
        z-index: 3;
        right: 0;
        bottom: 0;
        left: 0;
        min-height: 50px;
        display: grid;
        place-items: center;
        padding: 7px;
        color: #fff;
        background: rgba(2, 8, 20, 0.82);
        font-size: 13px;
        font-weight: 800;
        line-height: 1.2;
        text-align: center;
      }

      .glimpse-hanging-card.create .glimpse-hanging-label {
        color: #0b285b;
        background: rgba(247, 250, 255, 0.95);
      }

      .glimpse-hanging-grommet {
        position: absolute;
        z-index: 5;
        top: 7px;
        width: 15px;
        height: 15px;
        border: 2px solid #edf2f8;
        border-radius: 50%;
        background: radial-gradient(circle at 38% 30%, #f8fbff 0 14%, #9aa9bd 34%, #4c596c 66%, #dce5f1 100%);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
      }

      .glimpse-hanging-grommet::after {
        content: "";
        position: absolute;
        inset: 3px;
        border-radius: 50%;
        background: #111722;
      }

      .glimpse-hanging-grommet.left { left: 8px; }
      .glimpse-hanging-grommet.right { right: 8px; }

      html[data-theme="dark"] body.is-logged-in .timeline-glimpse h3 {
        color: #f5f8ff;
      }

      html[data-theme="dark"] body.is-logged-in .glimpse-hanging-card {
        color: #f5f8ff;
        background: #050b14;
      }

      html[data-theme="dark"] body.is-logged-in .glimpse-hanging-card.create .glimpse-hanging-label {
        color: #f5f8ff;
        background: rgba(5, 11, 20, 0.95);
      }

      @media (max-width: 1100px) {
        .timeline-glimpse {
          gap: 9px;
          padding: 2px 14px 4px;
        }

        .timeline-glimpse h3 {
          font-size: 25px;
        }

        .glimpse-hanging-gallery {
          width: 100%;
          height: 260px;
        }

        .glimpse-hanging-cards {
          top: 0;
          right: 8px;
          left: 8px;
        }

        .glimpse-hanging-item {
          width: 30%;
          height: 228px;
        }

        .glimpse-hanging-card {
          top: 52px;
          width: 100%;
          height: 176px;
          border-width: 2.5px;
        }

        .glimpse-hanging-play {
          width: 44px;
          height: 44px;
          border-radius: 15px;
        }

        .glimpse-hanging-plus {
          width: 50px;
          height: 50px;
          border-radius: 17px;
          font-size: 32px;
        }

        .glimpse-hanging-label {
          min-height: 48px;
          font-size: 11px;
        }
      }

      .timeline-keeping-up {
        min-width: 0;
        padding: 3px 2px 1px;
      }

      .timeline-keeping-up[hidden] {
        display: none;
      }

      .timeline-keeping-up > strong {
        display: block;
        margin: 0 2px 9px;
        color: var(--ink);
        font-size: 11px;
      }

      .timeline-keeping-up-people {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        padding: 0 2px 7px;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
      }

      .timeline-keeping-up-people::-webkit-scrollbar {
        display: none;
      }

      .timeline-followed-person {
        width: 58px;
        flex: 0 0 58px;
        display: grid;
        justify-items: center;
        gap: 5px;
        padding: 0;
        border: 0;
        color: var(--ink);
        background: transparent;
        font-size: 8px;
        font-weight: 700;
        text-align: center;
        scroll-snap-align: start;
      }

      .timeline-followed-avatar {
        width: 46px;
        height: 46px;
        display: grid;
        place-items: center;
        overflow: hidden;
        border: 2px solid #fff;
        border-radius: 50%;
        color: #fff;
        background: linear-gradient(145deg, #4c8aff, #173a7c);
        box-shadow: 0 6px 16px rgba(20, 56, 112, 0.2);
      }

      .timeline-followed-avatar.sarah {
        color: transparent;
        background: #dfe9f5 url("assets/sarah-avatar.png") center / cover no-repeat;
      }

      .timeline-followed-person span:last-child {
        width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .timeline-post {
        overflow: hidden;
        border: 1px solid rgba(31, 80, 158, 0.11);
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.92);
        box-shadow: 0 12px 34px rgba(19, 57, 116, 0.075);
      }

      .timeline-post-header {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 14px 10px;
      }

      .timeline-owned-post .timeline-post-header { padding-right: 54px; }
      .timeline-post-delete { position:absolute; z-index:2; top:4px; right:4px; display:grid; place-items:center; width:44px; height:44px; padding:0; border:0; color:#0b285b; background:transparent; font:inherit; font-size:28px; line-height:1; cursor:pointer; }
      .timeline-post-delete:focus-visible { outline:2px solid #2167f5; outline-offset:-5px; border-radius:8px; }
      html[data-theme="dark"] .timeline-post-delete { color:#f5f8ff; }
      /* Repost (History only): an arrow just before the X. */
      .timeline-post-repost { position:absolute; z-index:2; top:4px; right:48px; display:grid; place-items:center; width:44px; height:44px; padding:0; border:0; border-radius:50%; color:#7b4dff; background:transparent; cursor:pointer; }
      .timeline-post-repost svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
      .timeline-post-repost:hover { background:rgba(123,77,255,.1); }
      .timeline-post-repost:disabled { opacity:.5; }
      html[data-theme="dark"] .timeline-post-repost { color:#b9a0ff; }
      /* History: Timeline | Glimpse, one segmented control; both share the date filters below. */
      /* Timeline | Glimpse: a glass track with a glowing thumb that springs between the two tabs. */
      .timeline-history-kinds { position:relative; isolation:isolate; display:grid; grid-template-columns:1fr 1fr; width:min(240px, calc(100% - 44px)); margin:0 22px 4px; padding:4px; border-radius:999px; background:linear-gradient(180deg,rgba(255,255,255,.82),rgba(236,241,255,.6)); border:1px solid rgba(33,103,245,.12); align-self:flex-start; }
      html body .timeline-history-kinds { box-shadow:inset 0 1px 0 rgba(255,255,255,.9), inset 0 -1px 2px rgba(11,40,91,.06) !important; }
      .timeline-history-kinds::before { content:""; position:absolute; z-index:0; top:4px; bottom:4px; left:4px; width:calc(50% - 4px); border-radius:999px; background:linear-gradient(140deg,#9a6bff 0%,#7b4dff 45%,#5b6cff 100%); box-shadow:0 6px 16px rgba(123,77,255,.38), inset 0 1px 0 rgba(255,255,255,.35); transition:transform .46s var(--sp-ease-snappy), box-shadow .3s ease; }
      .timeline-history-kinds[data-kind="glimpse"]::before { transform:translateX(100%); }
      .timeline-history-kinds.is-moving::before { box-shadow:0 8px 22px rgba(123,77,255,.5), inset 0 1px 0 rgba(255,255,255,.4); }
      .timeline-history-kinds button { position:relative; z-index:1; min-height:36px; padding:0 18px; border:0; border-radius:999px; font:inherit; font-size:14px; font-weight:600; color:#52698f; background:transparent; cursor:pointer; transition: color .28s ease, transform var(--sp-dur-glide) var(--sp-ease-glide); }
      .timeline-history-kinds button:hover:not([aria-selected="true"]) { color:#0b285b; }
      .timeline-history-kinds button:active { transform:scale(.94); }
      .timeline-history-kinds button[aria-selected="true"] { color:#fff; }
      html[data-theme="dark"] .timeline-history-kinds { background:linear-gradient(180deg,rgba(255,255,255,.1),rgba(255,255,255,.04)); border-color:rgba(255,255,255,.1); }
      html[data-theme="dark"] body .timeline-history-kinds { box-shadow:inset 0 1px 0 rgba(255,255,255,.12), inset 0 -1px 2px rgba(0,0,0,.25) !important; }
      html[data-theme="dark"] .timeline-history-kinds button { color:#9fb4d2; }
      html[data-theme="dark"] .timeline-history-kinds button:hover:not([aria-selected="true"]) { color:#f5f8ff; }
      html[data-theme="dark"] .timeline-history-kinds button[aria-selected="true"] { color:#fff; }
      @media (prefers-reduced-motion: reduce) { .timeline-history-kinds::before, .timeline-history-kinds button { transition:none; } }
      .timeline-author .timeline-location-pin { display:inline-block; width:12px; height:14px; margin-right:3px; vertical-align:-2px; color:#7836ef; }
      html[data-theme="dark"] .timeline-author .timeline-location-pin { color:#b17aff; }

      .timeline-avatar {
        width: 36px;
        height: 36px;
        display: grid;
        place-items: center;
        flex: 0 0 auto;
        overflow: hidden;
        border: 2px solid #fff;
        border-radius: 50%;
        color: #fff;
        background: linear-gradient(145deg, #4c8aff, #173a7c);
        box-shadow: 0 5px 14px rgba(20, 56, 112, 0.18);
        font-size: 10px;
        font-weight: 700;
      }

      .timeline-avatar.sarah {
        color: transparent;
        background: #fff url("assets/sarah-avatar.png") center / cover no-repeat;
      }

      .timeline-avatar.user {
        color: transparent;
        background: #fff url("assets/user-avatar.png") center / 145% no-repeat;
      }

      .timeline-author {
        min-width: 0;
        flex: 1;
      }

      .timeline-author strong,
      .timeline-author span {
        display: block;
      }

      .timeline-author strong {
        font-size: 13px;
      }

      .timeline-author span {
        margin-top: 3px;
        overflow: hidden;
        color: #52698f;
        font-size: 9px;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .timeline-more {
        width: 32px;
        height: 32px;
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: 0;
        border-radius: 50%;
        color: #52698f;
        background: #f5f8fd;
        font-size: 0;
        line-height: 0;
        cursor: pointer;
      }

      .timeline-more::before {
        content: "";
        width: 18px;
        height: 6px;
        color: inherit;
        background:
          radial-gradient(circle at 3px 3px, currentColor 0 2px, transparent 2.2px),
          radial-gradient(circle at 9px 3px, currentColor 0 2px, transparent 2.2px),
          radial-gradient(circle at 15px 3px, currentColor 0 2px, transparent 2.2px);
      }

      .timeline-copy {
        margin: 0;
        padding: 0 14px 11px;
        color: #52698f;
        font-size: 12px;
        line-height: 1.42;
      }

      .timeline-media {
        position: relative;
        width: 100%;
        aspect-ratio: 16 / 9;
        overflow: hidden;
        background-color: #17376b;
        background-position: center;
        background-size: cover;
      }

      .timeline-media::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: linear-gradient(180deg, rgba(5, 20, 49, 0.02), rgba(5, 20, 49, 0.18));
      }

      .timeline-api-media > img,
      .timeline-api-media > video,
      .timeline-avatar.spot > img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }

      .timeline-media .timeline-date-stamp {
        position: absolute;
        z-index: 4;
        right: 14px;
        bottom: 14px;
        color: #fff;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 0.1em;
        font-variant-numeric: tabular-nums;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95), 0 2px 9px rgba(0, 0, 0, 0.9);
        pointer-events: none;
      }

      .timeline-avatar.spot {
        border: 2px solid #9b6cff;
        border-radius: 28%;
        background: #08182e;
      }

      .timeline-load-more {
        display: block;
        margin: 18px auto;
        padding: 10px 18px;
        border: 1px solid #5c8bcb;
        border-radius: 12px;
        color: #52698f;
        background: #f4f8ff;
        font: inherit;
        cursor: pointer;
      }

      html[data-theme="dark"] .timeline-load-more {
        color: #f5f8ff;
        background: #102b52;
      }

      .timeline-scene-1 {
        background-image: url("assets/spossity-home-city.png");
      }

      .timeline-scene-2,
      .timeline-scene-5 {
        background-image: url("assets/concert-thumb.png");
      }

      .timeline-scene-3,
      .timeline-scene-6 {
        background-image: url("assets/spossity-city-hero.webp");
      }

      .timeline-scene-4 {
        background-image: url("assets/spossity-home-city.png");
        background-position: 72% center;
      }

      .timeline-duration {
        position: absolute;
        z-index: 2;
        top: 14px;
        padding: 7px 10px;
        border-radius: 999px;
        color: #fff;
        background: rgba(7, 27, 64, 0.72);
        backdrop-filter: blur(10px);
        font-size: 9px;
        font-weight: 700;
        letter-spacing: 0.08em;
      }

      .timeline-duration {
        right: 14px;
        letter-spacing: 0;
      }

      .timeline-play {
        position: absolute;
        z-index: 3;
        top: 50%;
        left: 50%;
        width: 52px;
        height: 52px;
        display: grid;
        place-items: center;
        border: 1px solid rgba(255, 255, 255, 0.74);
        border-radius: 50%;
        color: #fff;
        background: rgba(22, 88, 226, 0.86);
        box-shadow: 0 14px 32px rgba(5, 25, 66, 0.28);
        backdrop-filter: blur(9px);
        transform: translate(-50%, -50%);
        cursor: pointer;
      }

      .timeline-play svg {
        width: 24px;
        height: 24px;
        margin-left: 3px;
      }

      .timeline-play.playing svg {
        margin-left: 0;
      }

      .timeline-post-footer {
        padding: 10px 14px 12px;
      }

      .timeline-presence {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 9px;
        color: #52698f;
        font-size: 11px;
      }

      .timeline-presence strong {
        color: var(--ink);
      }

      .presence-avatars {
        display: flex;
        padding-left: 7px;
      }

      .presence-avatar {
        width: 23px;
        height: 23px;
        display: grid;
        place-items: center;
        margin-left: -7px;
        overflow: hidden;
        border: 2px solid #fff;
        border-radius: 50%;
        color: #fff;
        background: linear-gradient(145deg, #4c8aff, #173a7c);
        font-size: 6px;
        font-style: normal;
        font-weight: 700;
      }

      .presence-avatar:nth-child(2) {
        background: linear-gradient(145deg, #f0b18f, #624f42);
      }

      .presence-avatar:nth-child(3) {
        background: linear-gradient(145deg, #80c7ba, #285d55);
      }

      .presence-avatar:nth-child(4) {
        background: linear-gradient(145deg, #8c78e8, #372b7c);
      }

      .presence-avatar.user,
      .presence-avatar.sarah {
        color: transparent;
        background-position: center;
        background-size: cover;
      }

      .presence-avatar.user {
        background-image: url("assets/user-avatar.png");
        background-position: center;
        background-size: 145%;
      }

      .presence-avatar.sarah {
        background-image: url("assets/sarah-avatar.png");
      }

      .timeline-actions {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
      }

      .timeline-action {
        min-height: 54px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        border: 1px solid rgba(37, 82, 157, 0.13);
        border-radius: 14px;
        color: #52698f;
        background: #f7f9fd;
        font-size: 11px;
        font-weight: 700;
        cursor: pointer;
        transition: transform var(--sp-dur-glide) var(--sp-ease-glide), color 150ms ease, border-color 150ms ease, background 150ms ease;
      }

      .timeline-action:hover {
        transform: translateY(-1px);
        border-color: rgba(33, 103, 245, 0.34);
      }

      .timeline-action:active {
        transform: scale(0.97);
      }

      .timeline-action svg {
        width: 23px;
        height: 23px;
        flex: 0 0 auto;
      }

      .timeline-share svg {
        width: 48px;
      }

      .timeline-share {
        flex-direction: column;
        gap: 3px;
      }

      .timeline-action small {
        display: block;
        margin-top: 3px;
        font-size: 0.86em;
        font-weight: 700;
        opacity: 0.72;
      }

      .timeline-action.liked {
        color: #135ce8;
        border-color: rgba(33, 103, 245, 0.34);
        background: #dfecff;
      }

      .timeline-like {
        color: #1762ed;
        border-color: rgba(33, 103, 245, 0.12);
        background: linear-gradient(145deg, #eff5ff, #e8f1ff);
      }

      .timeline-comment {
        color: #0b285b;
        border-color: rgba(16, 42, 92, 0.1);
        background: linear-gradient(145deg, #fafbfe, #f1f4f9);
      }

      .timeline-keep {
        color: #08753f;
        border-color: rgba(8, 117, 63, 0.1);
        background: linear-gradient(145deg, #f2fbf6, #e8f7ef);
      }

      .timeline-share {
        color: #4f24bd;
        border-color: rgba(79, 36, 189, 0.1);
        background: linear-gradient(145deg, #f8f5ff, #f0eaff);
      }

      @keyframes appIn {
        from { opacity: 0; transform: translateY(8px); }
        to { opacity: 1; transform: translateY(0); }
      }

      @media (max-width: 1080px) {
        body.is-logged-in .app-home {
          display: grid;
          grid-template-columns: 82px minmax(0, 1fr);
        }

        .app-main {
          padding-right: 24px;
          padding-left: 24px;
        }

        .app-topbar {
          padding-right: 0;
          padding-left: 0;
        }

        .app-heading-row,
        .home-layout {
          width: auto;
        }

        .home-layout {
          grid-template-columns: 1fr;
        }

        .right-column {
          grid-template-columns: 1fr 1fr;
        }

        .live-events-grid {
          grid-template-columns: repeat(2, minmax(0, 1fr));
        }
      }

      @media (max-width: 1100px) {
        body.is-logged-in {
          background: #fff;
        }

        body.is-logged-in .app-home {
          display: block;
          min-height: 100svh;
          padding-bottom: 78px;
          background: #fff;
        }

        .app-sidebar {
          display: none;
        }

        .app-main {
          height: calc(100svh - 78px);
          min-height: calc(100svh - 78px);
          display: flex;
          flex-direction: column;
          overflow-y: auto;
          overscroll-behavior-y: contain;
          padding: 0 16px 16px;
          scrollbar-width: none;
        }

        .app-main::-webkit-scrollbar {
          display: none;
        }

        .app-topbar {
          height: 78px;
          padding-right: 0;
          padding-left: 0;
        }

        .app-wordmark {
          width: 142px;
        }

        .topbar-actions {
          gap: 8px;
        }

        .app-header-nav {
          display: none;
        }

        .icon-button {
          width: 39px;
          height: 39px;
          border: 0;
          background: transparent;
        }

        .notification-panel {
          top: calc(68px + env(safe-area-inset-top));
          right: 12px;
          width: min(340px, calc(100vw - 24px));
        }

        .top-profile {
          width: 40px;
          height: 40px;
        }

        .app-heading-row {
          width: auto;
          position: relative;
          align-items: flex-start;
          margin: 12px 10px 16px;
          padding-top: 0;
        }

        .welcome-copy p {
          font-size: 12px;
        }

        .welcome-copy h2 {
          font-size: clamp(34px, 10vw, 45px);
        }

        .welcome-copy small {
          margin-top: 5px;
          font-size: 12px;
        }

        .home-layout {
          width: auto;
          margin: 0;
          min-height: 0;
          display: flex;
          flex: 1;
          flex-direction: column;
          align-items: stretch;
        }

        .home-view:not([hidden]) {
          min-height: 0;
          display: flex;
          flex: 1;
          flex-direction: column;
        }

        .world-panel {
          min-height: 0;
          display: flex;
          flex: 1;
          flex-direction: column;
          border-radius: 22px;
          box-shadow: 0 14px 38px rgba(19, 57, 116, 0.1);
        }

        .world-toolbar {
          position: absolute;
          z-index: 8;
          height: auto;
          margin: 16px 0 0 12px;
          padding: 0;
          border: 0;
        }

        .location-pill {
          width: min(184px, calc(100vw - 190px));
          min-width: 0;
          padding: 9px 11px;
          background: rgba(255, 255, 255, 0.9);
          box-shadow: 0 10px 28px rgba(14, 48, 102, 0.12);
          backdrop-filter: blur(12px);
        }

        .toolbar-note {
          display: none;
        }

        .world-map {
          min-height: 0;
          flex: 1;
          background-position: 63% center;
        }

        .home-ff-browser {
          top: 70px;
          right: 10px;
          left: auto;
          grid-template-columns: 32px minmax(142px, auto) 32px;
          transform: none;
        }

        .home-ff-arrow {
          width: 32px;
          height: 34px;
          font-size: 22px;
        }

        .home-ff-open {
          min-height: 34px;
          padding: 0 8px;
        }

        .friend-discovery {
          top: 122px;
          width: calc(100% - 20px);
          max-height: calc(100% - 138px);
          padding: 11px;
          border-radius: 18px;
        }

        .friend-discovery-card {
          grid-template-columns: 48px minmax(0, 1fr) auto;
          gap: 8px;
          padding: 8px;
        }

        .friend-discovery-avatar {
          width: 48px;
          height: 48px;
          border-radius: 11px;
        }

        .friend-request-button {
          min-height: 34px;
          padding: 0 10px;
        }

        .map-event {
          top: 78px;
          right: 12px;
          width: 186px;
          grid-template-columns: 52px 1fr;
          gap: 8px;
          padding: 8px;
          border-radius: 14px;
        }

        .concert-thumb {
          min-height: 61px;
          border-radius: 9px;
          font-size: 18px;
        }

        .event-detail p {
          margin: 3px 0 6px;
          font-size: 8px;
        }

        .mini-primary {
          min-height: 25px;
          font-size: 8px;
        }

        .map-person {
          left: 10px;
          bottom: 13px;
          width: 185px;
          min-height: 128px;
          padding: 10px;
          border-radius: 14px;
        }

        .home-family-cluster {
          left: 13px;
          bottom: 132px;
          padding: 4px;
        }

        .home-family-profile {
          min-width: 82px;
          height: 32px;
          border-radius: 9px;
        }

        .home-family-profile-initials {
          width: 22px;
          height: 22px;
          border-radius: 7px;
        }

        .home-card-avatar {
          width: 54px;
          flex-basis: 54px;
          min-height: 84px;
        }

        .person-actions {
          gap: 3px;
          margin-top: 8px;
        }

        .round-action {
          font-size: 7px;
        }

        .round-action i {
          width: 28px;
          height: 28px;
          font-size: 11px;
        }

        .home-bg-card {
          right: 10px;
          bottom: 13px;
          width: 167px;
          gap: 8px;
          padding: 10px;
          border-radius: 14px;
        }

        .home-bg-icon {
          width: 34px;
          height: 34px;
        }

        .home-bg-card strong {
          font-size: 10px;
        }

        .home-bg-card small {
          font-size: 7px;
        }

        .permission-strip {
          min-height: 42px;
          padding: 0 13px;
          font-size: 8px;
        }

        .right-column {
          display: block;
        }

        .vibe-panel {
          margin-top: 12px;
          padding: 17px 12px;
          border-radius: 20px;
          box-shadow: none;
        }

        .panel-title {
          margin-bottom: 15px;
        }

        .panel-title h3 {
          font-size: 15px;
        }

        .vibe-actions {
          grid-template-columns: repeat(6, 1fr);
          gap: 4px;
        }

        .vibe-action {
          font-size: 7px;
        }

        .vibe-action i {
          width: 39px;
          height: 39px;
          font-size: 15px;
        }

        .vibe-quote {
          margin-top: 17px;
          font-size: 9px;
        }

        .desktop-activity {
          display: none;
        }

        .vibe-view {
          min-height: calc(100svh - 78px);
          gap: 6px;
          padding: 6px 0 0;
        }

        .vibe-view.hosting-event-active {
          min-height: auto;
          padding-bottom: calc(104px + env(safe-area-inset-bottom));
        }

        .vibe-view .vibe-panel {
          width: 100%;
          margin: 0;
          padding: 9px 6px 8px;
          border-radius: 15px;
        }

        .vibe-view .panel-title {
          margin: 0 5px 9px;
        }

        .vibe-view .panel-title h3 {
          gap: 6px;
          font-size: 18px;
        }

        .vibe-view .vibe-bars {
          width: 34px;
          height: 34px;
        }

        .vibe-view .panel-title button {
          font-size: 11px;
        }

        :is(.vibe-view, .spot-host-actions) .vibe-actions {
          grid-template-columns: repeat(6, minmax(0, 1fr));
          gap: 3px;
        }

        :is(.vibe-view, .spot-host-actions) .vibe-action {
          gap: 3px;
          min-height: 54px;
          padding: 5px 1px 4px;
          border-radius: 10px;
          font-size: 7px;
        }

        :is(.vibe-view, .spot-host-actions) .vibe-action i {
          width: 30px;
          height: 30px;
        }

        :is(.vibe-view, .spot-host-actions) .vibe-action i svg {
          width: 14px;
          height: 14px;
        }

        .vibe-view .vibe-quote {
          margin-top: 32px;
          font-size: 11px;
        }

        .attended-preview {
          border-radius: 20px;
        }

        .attended-preview-header h4 {
          font-size: 18px;
        }

        .attended-preview-header {
          padding: 13px 14px;
        }

        .attended-map {
          min-height: 430px;
          background-position: 62% center;
        }

        .attended-map-label {
          top: 12px;
          left: 12px;
        }

        .attended-event-card {
          width: 172px;
          padding: 8px;
        }

        .friends-preview {
          width: 100%;
          border-radius: 20px;
        }

        .live-view > .persistent-city-map,
        .timeline-view > .persistent-city-map {
          margin: 14px 0 18px;
        }

        .live-view > .persistent-city-map {
          height: 100%;
          margin-top: 0;
        }

        .live-view > .persistent-city-map .friends-map {
          height: 100%;
          min-height: 0;
        }

        .friends-map > .live-view-header {
          top: 10px;
          right: 10px;
          left: 10px;
          display: grid;
          gap: 10px;
          padding: 12px;
        }

        .friends-map > .live-view-header h2 {
          font-size: 29px;
        }

        .friends-map > .live-view-header .live-view-controls {
          justify-content: space-between;
        }

        .friends-preview.live-map-mode .friends-map-label {
          top: 132px;
        }

        .live-map-pin {
          width: 38px;
          height: 38px;
        }

        .live-map-event-panel {
          right: 10px;
          bottom: calc(88px + env(safe-area-inset-bottom));
          left: 10px;
          grid-template-columns: 1fr;
          gap: 11px;
          padding: 12px;
          border-radius: 19px;
        }

        .live-map-event-info {
          grid-template-columns: 58px minmax(0, 1fr);
          gap: 10px;
        }

        .live-map-event-image {
          width: 58px;
          height: 58px;
          border-radius: 14px;
        }

        .live-map-event-copy > strong {
          font-size: 14px;
        }

        .live-map-event-actions {
          gap: 5px;
        }

        .live-map-event-actions .event-action {
          min-height: 34px;
          padding: 0 5px;
          font-size: 7px;
        }

        .friends-map {
          min-height: 720px;
          background-position: 62% center;
        }

        .persistent-city-map.hosting-event .friends-map {
          min-height: 470px;
        }

        .host-map-preview-card {
          top: 58%;
          left: 50%;
          width: min(300px, calc(100% - 28px));
          grid-template-columns: 80px minmax(0, 1fr);
        }

        .host-map-preview-image {
          min-height: 96px;
        }

        .friends-map-search {
          top: 54px;
          right: 12px;
          left: 12px;
          width: auto;
        }

        .friend-card {
          left: var(--friend-mobile-x);
          top: var(--friend-mobile-y);
          width: 164px;
          grid-template-columns: 34px minmax(0, 1fr) 29px;
          gap: 6px;
          padding: 7px;
        }

        .timeline-feed {
          padding-bottom: calc(96px + env(safe-area-inset-bottom));
        }

        .friend-avatar {
          width: 34px;
          height: 34px;
        }

        .friend-text-button {
          width: 29px;
          height: 29px;
        }

        .vibe-chat-panel {
          position: fixed;
          z-index: 35;
          top: auto;
          right: 10px;
          bottom: calc(144px + env(safe-area-inset-bottom));
          left: 10px;
          width: auto;
          max-height: calc(100svh - 176px - env(safe-area-inset-bottom));
          overflow-y: auto;
          padding: 12px;
          border-radius: 19px;
          transform: none;
        }

        .vibe-call-panel {
          position: fixed;
          z-index: 35;
          top: auto;
          right: 10px;
          bottom: calc(144px + env(safe-area-inset-bottom));
          left: 10px;
          width: auto;
          max-height: calc(100svh - 176px - env(safe-area-inset-bottom));
          overflow-y: auto;
          padding: 12px;
          border-radius: 19px;
          transform: none;
        }

        .vibe-chat-form textarea {
          min-height: 48px;
        }

        .host-event-preview {
          width: 100%;
          border-radius: 20px;
        }

        .host-event-form {
          grid-template-columns: 1fr;
          gap: 13px;
          padding: 14px;
        }

        .host-date-time-row {
          grid-template-columns: 1fr;
        }

        .host-field.full,
        .host-event-submit {
          grid-column: auto;
        }

        .host-choice.full,
        .host-event-team.full {
          grid-column: auto;
        }

        .host-choice-options.three,
        .host-event-team-picker {
          grid-template-columns: 1fr;
        }

        .host-choice-options.event-types {
          grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .host-event-category-overlay {
          padding: 58px 10px 10px;
        }

        .host-event-category-list {
          grid-template-columns: 1fr;
        }

        .event-studio-view {
          min-height: calc(100svh - 78px);
          padding: 14px 0 calc(104px + env(safe-area-inset-bottom));
        }

        .event-studio-header {
          gap: 11px;
          margin-bottom: 13px;
          padding-right: 12px;
          padding-left: 12px;
        }

        .event-studio-heading h2 {
          font-size: 31px;
        }

        .event-studio-entry {
          min-height: 590px;
          grid-template-columns: 1fr;
          align-content: end;
          gap: 18px;
          padding: 18px;
          border-radius: 24px;
        }

        .event-studio-live-session {
          min-height: 590px;
          border-radius: 24px;
          background-position: center;
        }

        .event-studio-live-topline {
          right: 15px;
          left: 15px;
          flex-wrap: wrap;
          gap: 7px;
        }

        .event-studio-live-topline strong {
          width: 100%;
          font-size: 13px;
        }

        .event-studio-permissions {
          top: 88px;
          right: 12px;
          left: 12px;
          justify-content: center;
        }

        .event-studio-live-people {
          right: 3%;
          bottom: 29%;
          left: 3%;
          gap: 4px;
        }

        .event-studio-seat {
          width: clamp(64px, 22vw, 94px);
          height: 148px;
        }

        .event-studio-seat-copy {
          right: -5%;
          left: -5%;
        }

        .event-studio-position-options {
          grid-template-columns: 1fr;
        }

        .event-studio-position-options button {
          min-height: 72px;
          grid-template-columns: 34px 1fr;
          justify-items: start;
          text-align: left;
        }

        .event-studio-position-options button small {
          grid-column: 2;
        }

        .event-studio-live-audience {
          bottom: 71px;
          left: 15px;
        }

        .event-studio-live-audience-faces i:nth-child(n + 4) {
          display: none;
        }

        .event-studio-live-controls {
          right: 10px;
          bottom: 12px;
          left: 10px;
          gap: 5px;
        }

        .event-studio-live-controls button {
          min-width: 0;
          min-height: 46px;
          flex: 1;
          gap: 4px;
          padding: 0 7px;
          font-size: 9px;
        }

        .event-studio-control-group {
          width: 100%;
          gap: 5px;
        }

        .event-studio-room {
          min-height: 250px;
          border-radius: 21px;
        }

        .live-view {
          min-height: 0;
          flex: 1;
          padding: 0;
        }

        .live-view-header {
          align-items: flex-start;
          flex-wrap: wrap;
          margin: 0 5px 18px;
        }

        .live-view-header p {
          font-size: 11px;
        }

        .live-view-header h2 {
          font-size: 36px;
        }

        .live-view-controls {
          width: 100%;
          justify-content: space-between;
        }

        .live-event-filters {
          gap: 3px;
          padding: 3px;
        }

        .live-filter-button {
          min-height: 31px;
          padding: 0 11px;
          font-size: 9px;
        }

        .live-events-grid {
          grid-template-columns: repeat(2, minmax(0, 1fr));
          gap: 9px;
        }

        .live-event-card {
          border-radius: 16px;
        }

        .live-event-visual {
          height: 118px;
        }

        .event-live-badge,
        .event-viewers {
          top: 8px;
          padding: 5px 7px;
          font-size: 7px;
        }

        .event-live-badge {
          left: 8px;
        }

        .event-viewers {
          right: 8px;
        }

        .live-event-meta {
          right: 10px;
          bottom: 9px;
          left: 10px;
        }

        .live-event-meta span {
          margin-bottom: 3px;
          font-size: 7px;
        }

        .live-event-meta strong {
          font-size: 13px;
        }

        .live-event-body {
          padding: 9px;
        }

        .live-event-host {
          align-items: flex-start;
          flex-direction: column;
          gap: 3px;
          margin-bottom: 9px;
          font-size: 7px;
        }

        .live-event-actions {
          grid-template-columns: repeat(2, minmax(0, 1fr));
          gap: 5px;
        }

        .event-action {
          min-height: 39px;
          gap: 4px;
          padding: 4px;
          font-size: 7px;
          line-height: 1.1;
        }

        .event-action svg {
          width: 12px;
          height: 12px;
        }

        .event-share svg {
          width: 28px;
          height: 14px;
        }

        .event-social-action {
          min-height: 47px;
          flex-direction: column;
          gap: 2px;
        }

        .event-social-action span {
          display: flex;
          align-items: center;
          gap: 2px;
          white-space: nowrap;
        }

        .event-social-action small {
          margin-left: 0;
          font-size: 6px;
        }

        .event-watch {
          grid-column: span 1;
        }

        .event-attend[data-entry-mode="studio"] {
          grid-column: span 1;
        }

        .event-watch.event-watch-only { grid-column: 1 / -1; }

        .live-watch-modal { align-items: end; padding: 0; }
        .live-watch-dialog { border-right: 0; border-bottom: 0; border-left: 0; border-radius: 24px 24px 0 0; }
        .live-watch-header, .live-watch-footer { padding: 13px 14px; }
        .live-watch-spectator { top: auto; right: 12px; bottom: 12px; left: 12px; text-align: center; }
        .live-watch-badge { top: 12px; left: 12px; }
        .live-watch-now { right: 14px; bottom: 48px; left: 14px; }

        .comments-modal {
          align-items: end;
          padding: 0;
        }

        .location-picker-modal {
          align-items: end;
          padding: 0;
        }

        .location-picker-sheet {
          width: 100%;
          max-height: min(640px, 82svh);
          border-right: 0;
          border-bottom: 0;
          border-left: 0;
          border-radius: 26px 26px 0 0;
        }

        .location-picker-header {
          padding: 20px 18px 13px;
        }

        .location-picker-search {
          margin-right: 18px;
          margin-left: 18px;
        }

        .location-picker-list {
          padding-right: 10px;
          padding-left: 10px;
          padding-bottom: max(18px, env(safe-area-inset-bottom));
        }

        .comments-sheet {
          width: 100%;
          max-height: min(640px, 86svh);
          border-right: 0;
          border-bottom: 0;
          border-left: 0;
          border-radius: 24px 24px 0 0;
        }

        .comments-header {
          padding: 18px 18px 14px;
        }

        .comments-list {
          padding: 18px;
        }

        .timeline-view {
          width: auto;
          margin: 0 -6px;
          padding: 20px 0 28px;
        }

        .timeline-header {
          margin: 0 11px 18px;
        }

        .timeline-header p {
          font-size: 11px;
        }

        .timeline-header h2 {
          font-size: 36px;
        }

        .timeline-feed {
          gap: 16px;
        }

        .timeline-post {
          border-radius: 19px;
        }

        .timeline-post-header {
          padding: 13px 14px 11px;
        }

        .timeline-copy {
          padding: 0 14px 12px;
          font-size: 12px;
        }

        .timeline-media {
          aspect-ratio: 5 / 4;
        }

        .timeline-post-footer {
          padding: 9px 11px 11px;
        }

        .timeline-presence {
          gap: 7px;
          margin-bottom: 8px;
          font-size: 9px;
        }

        .timeline-action {
          min-height: 55px;
          flex-direction: column;
          gap: 3px;
          padding: 4px 2px;
          font-size: 8px;
        }

        .timeline-action svg {
          width: 19px;
          height: 19px;
        }

        .timeline-share svg {
          width: 36px;
        }

        .timeline-action small {
          margin-top: 1px;
          font-size: 7px;
        }

        .mobile-bottom-nav {
          position: fixed;
          z-index: 40;
          right: 0;
          bottom: 0;
          left: 0;
          min-height: 70px;
          display: grid;
          grid-template-columns: repeat(5, 1fr);
          padding: 7px max(8px, env(safe-area-inset-right)) max(7px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
          border: 0;
          background: transparent;
          box-shadow: none;
          backdrop-filter: none;
        }

        .mobile-tab {
          min-height: 52px;
          display: grid;
          place-items: center;
          gap: 2px;
          padding: 0;
          border: 0;
          border-radius: 0;
          font-size: 8px;
          background: transparent;
          box-shadow: none;
          -webkit-tap-highlight-color: transparent;
        }

        .mobile-tab:hover,
        .mobile-tab:focus,
        .mobile-tab:focus-visible,
        .mobile-tab:active,
        .mobile-tab.active {
          color: var(--blue);
          border: 0;
          border-radius: 0;
          background: transparent;
          box-shadow: none;
        }

        .mobile-tab.active {
          font-weight: 700;
        }
      }

      @media (max-width: 410px) {
        .app-main {
          padding-right: 10px;
          padding-left: 10px;
        }

        .app-heading-row {
          margin-right: 5px;
          margin-left: 5px;
        }

        .welcome-copy h2 {
          font-size: 35px;
        }

        .world-map {
          min-height: 0;
        }

        .map-event {
          width: 175px;
        }

        .map-person {
          width: 174px;
        }

        .home-bg-card {
          width: 155px;
        }

        .vibe-action i {
          width: 36px;
          height: 36px;
        }
      }

      /* One consistent page heading, always anchored to its map. */
      .map-page-header {
        position: absolute;
        z-index: 8;
        top: 16px;
        right: 16px;
        left: 16px;
        width: auto;
        min-height: 70px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
        margin: 0;
        padding: 13px 16px;
        border: 1px solid rgba(255, 255, 255, 0.82);
        border-radius: 19px;
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 14px 34px rgba(8, 35, 80, 0.18);
        backdrop-filter: blur(16px);
      }

      .map-page-header p,
      .map-page-header h2,
      .map-page-header h4 {
        margin: 0;
      }

      .map-page-header p {
        margin-bottom: 4px;
        color: #52698f;
        font-size: 9px;
        font-weight: 700;
        letter-spacing: 0.09em;
        line-height: 1.2;
        text-transform: uppercase;
      }

      .map-page-header h2,
      .map-page-header h4 {
        color: var(--ink);
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
        font-size: clamp(29px, 3vw, 40px);
        font-weight: 700;
        letter-spacing: -0.055em;
        line-height: 0.98;
      }

      .map-page-header h2 span,
      .map-page-header h4 span {
        color: var(--blue);
      }

      .friends-map > .live-view-header.map-page-header h2 {
        font-size: clamp(29px, 3vw, 40px);
      }

      .friends-preview {
        position: relative;
      }

      .friends-map > .friends-preview-header {
        position: absolute;
      }

      .friends-preview.live-map-mode .friends-preview-header {
        display: none;
      }

      .persistent-city-map:not(.live-map-mode) .friends-map-label,
      .persistent-city-map:not(.live-map-mode) .friends-map-search {
        top: 98px;
      }

      .timeline-view,
      .me-view {
        min-height: calc(100svh - 92px);
        margin: 0 auto;
        padding: 0 0 64px;
        animation: sp-screen-in var(--sp-dur-glide) var(--sp-ease-glide) backwards;
      }

      .timeline-view {
        width: min(620px, 100%);
      }

      .me-view {
        width: 100%;
      }

      .timeline-view > .persistent-city-map,
      .me-view > .persistent-city-map {
        margin: 0 0 24px;
      }

      .me-view > .persistent-city-map .friends-map {
        height: 560px;
        min-height: 560px;
        background-position: 61% center;
      }

      .profile-map-card {
        width: min(260px, calc(100% - 32px));
      }

      .profile-map-marker {
        pointer-events: none;
      }

      .profile-summary-card {
        position: absolute;
        z-index: 6;
        top: 102px;
        left: 18px;
        width: min(270px, calc(50% - 28px));
        display: grid;
        grid-template-columns: 48px minmax(0, 1fr);
        align-items: center;
        gap: 11px;
        padding: 11px 13px;
        border: 1px solid rgba(255, 255, 255, 0.86);
        border-radius: 17px;
        background: rgba(255, 255, 255, 0.92);
        box-shadow: 0 13px 32px rgba(8, 34, 78, 0.18);
        backdrop-filter: blur(16px);
      }

      .profile-summary-avatar,
      .profile-social-avatar {
        display: grid;
        place-items: center;
        overflow: hidden;
        color: #fff;
        background: linear-gradient(145deg, #2167f5, #7659ef);
        font-weight: 700;
      }

      .profile-summary-avatar {
        width: 48px;
        height: 48px;
        border: 2px solid #fff;
        border-radius: 50%;
        background: #fff url("assets/user-avatar.png") center / 145% no-repeat;
        box-shadow: 0 7px 18px rgba(22, 61, 125, 0.18);
        color: transparent;
      }

      .profile-summary-copy,
      .profile-social-copy {
        min-width: 0;
      }

      .profile-summary-copy strong,
      .profile-summary-copy span,
      .profile-social-copy strong,
      .profile-social-copy span,
      .profile-social-copy small {
        display: block;
      }

      .profile-summary-copy strong {
        overflow: hidden;
        color: var(--ink);
        font-size: 14px;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .profile-summary-copy span {
        margin-top: 4px;
        color: var(--blue);
        font-size: 10px;
        font-weight: 700;
      }

      /* "1 Keep Up · 0 Keeping Up" on one line in blue, as in the app. */
      .profile-summary-copy small {
        display: block;
        margin-top: 5px;
        color: var(--blue);
        font-size: 11px;
        font-weight: 700;
      }
      .profile-summary-copy small span {
        display: inline;
        margin: 0;
        color: inherit;
        font-size: inherit;
      }

      .profile-person-pin span {
        display: block;
        font-size: 8px;
        font-weight: 700;
        transform: rotate(45deg);
      }

      .profile-social-panel {
        position: absolute;
        z-index: 7;
        right: 20px;
        bottom: 20px;
        left: 20px;
        display: grid;
        grid-template-columns: 170px minmax(0, 1fr);
        align-items: center;
        gap: 16px;
        padding: 13px;
        border: 1px solid rgba(255, 255, 255, 0.86);
        border-radius: 21px;
        background: rgba(255, 255, 255, 0.93);
        box-shadow: 0 19px 46px rgba(8, 34, 78, 0.23);
        backdrop-filter: blur(18px);
      }

      .profile-social-panel[hidden] {
        display: none;
      }

      .profile-menu-panel {
        position: absolute;
        z-index: 7;
        top: 102px;
        right: 18px;
        bottom: 18px;
        width: min(365px, calc(100% - 36px));
        display: flex;
        flex-direction: column;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.86);
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.94);
        box-shadow: 0 19px 46px rgba(8, 34, 78, 0.23);
        backdrop-filter: blur(18px);
      }

      .profile-panel-close {
        position: absolute;
        z-index: 3;
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
        display: grid;
        place-items: center;
        padding: 0;
        border: 1px solid rgba(33, 103, 245, 0.18);
        border-radius: 50%;
        color: #52698f;
        background: rgba(255, 255, 255, 0.94);
        font: 400 29px/1 system-ui, sans-serif;
        cursor: pointer;
      }

      .profile-panel-close:hover,
      .profile-summary-copy button[data-profile-menu] { border-radius: 6px; }
      .profile-summary-copy button[data-profile-menu]:focus { outline: none; box-shadow: none; }
      .profile-summary-copy button[data-profile-menu]:focus-visible {
        background: rgba(139, 61, 255, .16) !important;
      }

      .profile-panel-close:focus-visible {
        color: var(--blue);
        border-color: rgba(33, 103, 245, 0.42);
        outline: none;
      }

      html[data-theme="dark"] body.is-logged-in .profile-panel-close {
        color: #f5f8ff;
        border-color: rgba(126, 171, 239, 0.28);
        background: #0b2546;
      }

      .profile-menu-panel[hidden] {
        display: none;
      }

      .profile-menu-title {
        display: none;
      }

      @media (max-width: 1100px) {
        .profile-menu-title {
          display: block;
          margin: 4px 56px 14px 20px;
          color: #0b285b;
          font-size: 31px;
          font-weight: 800;
          letter-spacing: -1.1px;
          line-height: 1.1;
          white-space: nowrap;
        }

        html[data-theme="dark"] body.is-logged-in .profile-menu-title {
          color: #f5f8ff;
        }

        .app-heading-row .welcome-copy {
          min-width: 0;
        }

        .welcome-copy h2 {
          white-space: nowrap;
        }
      }

      .profile-menu-identity {
        display: grid;
        grid-template-columns: 54px minmax(0, 1fr);
        align-items: center;
        gap: 12px;
        padding: 16px 62px 13px 17px;
        border-bottom: 1px solid var(--line);
      }

      .profile-menu-identity .profile-summary-avatar {
        width: 54px;
        height: 54px;
      }

      .profile-menu-identity strong,
      .profile-menu-identity span,
      .profile-menu-identity small {
        display: block;
      }

      .profile-menu-identity strong {
        overflow: hidden;
        color: var(--ink);
        font-size: 15px;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .profile-menu-identity span {
        overflow: hidden;
        margin-top: 2px;
        color: #52698f;
        font-size: 9px;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .profile-menu-identity small {
        margin-top: 5px;
        color: var(--blue);
        font-size: 9px;
        font-weight: 700;
      }

      .profile-menu-scroll {
        min-height: 0;
        overflow-y: auto;
        padding: 7px 11px 10px;
      }

      .profile-menu-label {
        margin: 8px 8px 4px;
        color: #52698f;
        font-size: 7px;
        font-weight: 700;
        letter-spacing: 0.13em;
        text-transform: uppercase;
      }

      .profile-menu-list {
        display: grid;
      }

      .profile-menu-item {
        width: 100%;
        min-height: 43px;
        display: grid;
        grid-template-columns: 31px minmax(0, 1fr) auto;
        align-items: center;
        gap: 9px;
        padding: 6px 8px;
        border: 0;
        border-bottom: 1px solid rgba(26, 67, 130, 0.08);
        color: var(--ink);
        background: transparent;
        text-align: left;
        cursor: pointer;
      }

      .profile-menu-item:hover,
      .profile-menu-item:focus-visible {
        border-radius: 11px;
        background: #f0f5ff;
        outline: none;
      }

      .profile-menu-icon {
        width: 31px;
        height: 31px;
        display: grid;
        place-items: center;
        border-radius: 10px;
        color: var(--blue);
        background: #edf4ff;
      }

      .profile-menu-icon svg {
        width: 17px;
        height: 17px;
      }

      .profile-menu-copy strong,
      .profile-menu-copy small {
        display: block;
      }

      .profile-menu-copy strong {
        font-size: 10px;
      }

      .profile-menu-copy small {
        margin-top: 2px;
        color: #52698f;
        font-size: 8px;
      }

      .profile-menu-meta {
        color: #52698f;
        font-size: 8px;
        font-weight: 700;
      }

      .profile-menu-item.settings {
        margin-top: 5px;
      }

      .profile-menu-item.logout {
        margin-top: 5px;
        color: #d33f5b;
        border-bottom: 0;
      }

      .profile-menu-item.logout .profile-menu-icon {
        color: #d33f5b;
        background: #fff0f4;
      }

      .profile-settings-back {
        min-height: 30px;
        margin: 0 0 10px;
        padding: 0;
        border: 0;
        color: var(--blue);
        background: transparent;
        font-size: 9px;
        font-weight: 700;
        cursor: pointer;
      }

      .profile-settings-detail {
        display: grid;
        gap: 4px;
        margin-bottom: 12px;
        padding: 1px 3px 12px;
        border-bottom: 1px solid var(--line);
      }

      .profile-settings-detail span {
        color: #52698f;
        font-size: 8px;
        line-height: 1.4;
      }

      .profile-security-action {
        width: 100%;
        min-height: 38px;
        margin-top: 2px;
        border: 0;
        border-radius: 11px;
        color: var(--blue);
        background: #edf4ff;
        font-size: 9px;
        font-weight: 700;
        cursor: pointer;
      }

      .profile-detail-heading {
        margin: 0;
        color: var(--ink);
        font-size: 18px;
        line-height: 1.1;
      }

      .profile-detail-heading span {
        color: var(--blue);
      }

      .profile-detail-intro {
        margin: 5px 0 14px;
        color: #52698f;
        font-size: 9px;
        line-height: 1.45;
      }

      .profile-event-sections,
      .profile-event-list {
        display: grid;
        gap: 10px;
      }

      .profile-event-section {
        display: grid;
        gap: 7px;
      }

      .profile-event-section > h4 {
        margin: 0;
        color: var(--ink);
        font-size: 11px;
      }

      .profile-event-preview {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 12px;
        padding: 12px;
        border: 1px solid rgba(33, 103, 245, 0.14);
        border-radius: 15px;
        background: #f5f8ff;
      }

      .profile-event-preview-copy {
        min-width: 0;
      }

      .profile-event-preview-copy strong,
      .profile-event-preview-copy span,
      .profile-event-preview-copy small {
        display: block;
      }

      .profile-event-preview-copy strong {
        overflow: hidden;
        color: var(--ink);
        font-size: 11px;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .profile-event-preview-copy span,
      .profile-event-preview-copy small,
      .profile-event-empty {
        color: #52698f;
        font-size: 9px;
        line-height: 1.4;
      }

      .profile-event-preview-copy span {
        margin-top: 3px;
      }

      .profile-event-preview-copy small {
        margin-top: 2px;
      }

      .profile-event-open {
        min-height: 36px;
        padding: 0 12px;
        border: 0;
        border-radius: 11px;
        color: #fff;
        background: var(--blue);
        font-size: 9px;
        font-weight: 700;
        cursor: pointer;
      }

      .profile-event-empty {
        margin: 0;
        padding: 13px;
        border-radius: 13px;
        background: #f5f8ff;
      }

      .event-studio-view {
        width: 100%;
        min-height: calc(100svh - 92px);
        margin: 0 auto;
        padding: 24px 0 110px;
        animation: sp-screen-in var(--sp-dur-glide) var(--sp-ease-glide) backwards;
      }

      .event-studio-header {
        display: flex;
        align-items: center;
        gap: 18px;
        margin-bottom: 18px;
      }

      .event-studio-back {
        min-height: 42px;
        padding: 0 15px;
        border: 0;
        border-radius: 13px;
        color: var(--blue);
        background: #edf4ff;
        font: inherit;
        font-size: 11px;
        font-weight: 700;
        cursor: pointer;
      }

      .event-studio-heading p,
      .event-studio-heading h2 {
        margin: 0;
      }

      .event-studio-heading p {
        color: #52698f;
        font-size: 9px;
        font-weight: 700;
        letter-spacing: 0.13em;
        text-transform: uppercase;
      }

      .event-studio-heading h2 {
        color: var(--ink);
        font-size: clamp(29px, 4vw, 48px);
        line-height: 1;
      }

      .event-studio-heading h2 span {
        color: var(--blue);
      }

      .event-studio-entry {
        min-height: 430px;
        display: grid;
        grid-template-columns: minmax(230px, 0.8fr) minmax(340px, 1.2fr);
        align-items: end;
        align-content: end;
        gap: clamp(18px, 4vw, 38px);
        overflow: hidden;
        padding: clamp(22px, 4vw, 42px);
        border-radius: 28px;
        background:
          linear-gradient(180deg, rgba(4, 20, 47, 0.06), rgba(4, 20, 47, 0.88)),
          url("assets/spossity-home-city.png") center / cover no-repeat;
        box-shadow: 0 24px 54px rgba(8, 34, 78, 0.18);
      }

      .event-studio-entry-copy {
        width: min(520px, 100%);
        color: #fff;
      }

      .event-studio-entry-copy > span,
      .event-studio-entry-copy > strong,
      .event-studio-entry-copy > small {
        display: block;
      }

      .event-studio-entry-copy > span {
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
      }

      .event-studio-entry-copy > strong {
        margin-top: 7px;
        font-size: clamp(25px, 4vw, 40px);
      }

      .event-studio-entry-copy > small {
        margin-top: 7px;
        font-size: 12px;
      }

      .event-studio-start {
        min-height: 46px;
        margin-top: 18px;
        padding: 0 20px;
        border: 0;
        border-radius: 14px;
        color: #fff;
        background: var(--blue);
        font: inherit;
        font-size: 12px;
        font-weight: 700;
        cursor: pointer;
      }

      .event-studio-start:disabled {
        opacity: 0.68;
        cursor: default;
      }

      .event-studio-room {
        min-height: 270px;
        display: grid;
        grid-template-rows: minmax(170px, 1fr) auto;
        gap: 10px;
        padding: 14px;
        border: 1px solid rgba(255, 255, 255, 0.32);
        border-radius: 24px;
        background: rgba(7, 27, 59, 0.76);
        box-shadow: 0 20px 44px rgba(0, 12, 34, 0.24);
        backdrop-filter: blur(16px);
      }

      .event-studio-stage {
        position: relative;
        display: grid;
        place-items: center;
        overflow: hidden;
        padding: 34px 12px 18px;
        border-radius: 18px;
        background:
          radial-gradient(circle at 50% 30%, rgba(81, 135, 255, 0.36), transparent 48%),
          linear-gradient(145deg, rgba(34, 73, 132, 0.92), rgba(8, 31, 65, 0.96));
      }

      .event-studio-stage::after {
        content: "";
        position: absolute;
        right: 8%;
        bottom: 14px;
        left: 8%;
        height: 2px;
        border-radius: 50%;
        background: rgba(135, 176, 255, 0.46);
        box-shadow: 0 0 24px rgba(84, 139, 255, 0.7);
      }

      .event-studio-stage-label {
        position: absolute;
        top: 13px;
        left: 15px;
        color: rgba(255, 255, 255, 0.76);
        font-size: 9px;
        font-weight: 750;
        letter-spacing: 0.12em;
        text-transform: uppercase;
      }

      .event-studio-audience {
        min-height: 68px;
        display: grid;
        grid-template-columns: auto auto minmax(80px, 1fr);
        align-items: center;
        gap: 10px;
        padding: 11px 13px;
        border-radius: 17px;
        color: #fff;
        background: rgba(255, 255, 255, 0.09);
      }

      .event-studio-audience[hidden] {
        display: none;
      }

      .event-studio-audience > span {
        font-size: 9px;
        font-weight: 700;
      }

      .event-studio-audience > strong {
        font-size: 11px;
      }

      .event-studio-seats {
        display: grid;
        grid-template-columns: repeat(6, 7px);
        justify-content: end;
        gap: 5px;
      }

      .event-studio-seats i {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #73a0ff;
        box-shadow: 0 0 7px rgba(115, 160, 255, 0.64);
      }

      .event-studio-live-session {
        position: relative;
        min-height: 430px;
        flex: 1;
        overflow: hidden;
        border-radius: 28px;
        color: #fff;
        background: #07182f;
        box-shadow: 0 24px 54px rgba(8, 34, 78, 0.22);
        perspective: 1200px;
        touch-action: none;
        cursor: grab;
      }

      .event-studio-live-session.is-spatial-dragging { cursor: grabbing; }

      .event-studio-live-set {
        position: absolute;
        z-index: 0;
        inset: 0;
        border-radius: inherit;
        overflow: hidden;
        background: #07182f;
        transform: translate3d(0, 0, 0) scale(1);
        transition: transform var(--sp-dur-glide) var(--sp-ease-glide), 0.72, 0.2, 1);
        will-change: transform;
      }

      .event-studio-spatial-world {
        --spatial-pan-x: 0px;
        --spatial-pan-y: 0px;
        --spatial-zoom: 1.05;
        --spatial-rotate-x: 0deg;
        --spatial-rotate-y: 0deg;
        position: absolute;
        inset: -4%;
        overflow: hidden;
        border-radius: inherit;
        background: #07182f url("assets/event-studio-set-empty.png") center / cover no-repeat;
        transform: translate3d(var(--spatial-pan-x), var(--spatial-pan-y), 0)
          rotateX(var(--spatial-rotate-x)) rotateY(var(--spatial-rotate-y)) scale(var(--spatial-zoom));
        transform-style: preserve-3d;
        transform-origin: center;
        transition: transform var(--sp-dur-glide) var(--sp-ease-glide);
        will-change: transform;
      }

      .event-studio-live-session.is-spatial-dragging .event-studio-spatial-world {
        transition: none;
      }

      .studio-webgl-canvas {
        position: absolute;
        z-index: 0;
        inset: 0;
        width: 100%;
        height: 100%;
        display: block;
        pointer-events: none;
      }

      .event-studio-engine-frame {
        position: absolute;
        z-index: 1;
        inset: 0;
        width: 100%;
        height: 100%;
        display: block;
        border: 0;
        background: #07080f;
      }

      .host-event-stage-engine {
        z-index: 3;
        opacity: 0;
        pointer-events: none;
      }

      .event-studio-view.host-event-production-mode .event-studio-stage.is-engine-live {
        padding: 0;
        background: #07080f;
      }

      .event-studio-view.host-event-production-mode .event-studio-stage.is-engine-live .host-event-stage-engine {
        opacity: 1;
        pointer-events: auto;
      }

      .event-studio-view.host-event-production-mode .event-studio-stage.is-engine-live > .event-studio-stage-label,
      .event-studio-view.host-event-production-mode .event-studio-stage.is-engine-live > .host-event-stage-ready,
      .event-studio-view.host-event-production-mode .event-studio-stage.is-engine-live > .event-studio-audience {
        display: none;
      }

      .event-studio-spatial-world.uses-skyline-engine {
        inset: 0;
        transform: none;
      }

      .event-studio-spatial-world.is-webgl-studio {
        background: #07182f;
      }

      .event-studio-live-session[data-camera-shot="guest-left"] .event-studio-live-set {
        transform: translate3d(4%, 0, 0) scale(1.11);
      }

      .event-studio-live-session[data-camera-shot="guest-right"] .event-studio-live-set {
        transform: translate3d(-4%, 0, 0) scale(1.11);
      }

      .event-studio-live-session[data-camera-shot="audience"] .event-studio-live-set {
        transform: translate3d(0, -3%, 0) scale(1.16);
      }

      .event-studio-live-session[data-camera-shot="speaker"] .event-studio-live-set {
        transform: translate3d(-3%, -1%, 0) scale(1.2);
      }

      .event-studio-live-window {
        display: none;
      }

      .event-studio-live-window::after {
        content: "";
        position: absolute;
        inset: 0;
        background: repeating-linear-gradient(90deg, transparent 0 15.6%, rgba(6, 20, 43, 0.78) 15.6% 16.3%);
        pointer-events: none;
      }

      .event-studio-live-window span {
        width: 5.8%;
        min-height: 24%;
        border-radius: 4px 4px 0 0;
        background:
          repeating-linear-gradient(180deg, transparent 0 8px, rgba(255, 207, 126, 0.54) 8px 10px),
          #102747;
        box-shadow: 0 0 26px rgba(47, 111, 216, 0.22);
      }

      .event-studio-live-window span:nth-child(2),
      .event-studio-live-window span:nth-child(7) { min-height: 42%; }
      .event-studio-live-window span:nth-child(3),
      .event-studio-live-window span:nth-child(9) { min-height: 67%; }
      .event-studio-live-window span:nth-child(4),
      .event-studio-live-window span:nth-child(11) { min-height: 50%; }
      .event-studio-live-window span:nth-child(5) { min-height: 78%; }
      .event-studio-live-window span:nth-child(6) { min-height: 34%; }
      .event-studio-live-window span:nth-child(8) { min-height: 58%; }
      .event-studio-live-window span:nth-child(10) { min-height: 31%; }

      .event-studio-live-platform {
        display: none;
      }

      .event-studio-live-light {
        display: none;
      }

      .event-studio-live-light.left { left: 9%; }
      .event-studio-live-light.right { right: 9%; }

      .event-studio-live-session[hidden] {
        display: none;
      }

      .event-studio-host-live-media {
        position: absolute;
        z-index: 0;
        inset: 0;
        display: none;
        overflow: hidden;
        border-radius: inherit;
        background: #06152f;
      }

      .event-studio-host-live-media picture {
        position: absolute;
        inset: 0;
        display: block;
      }

      .event-studio-host-live-media img,
      .event-studio-host-live-media video {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
      }

      .event-studio-host-live-media video {
        position: absolute;
        inset: 0;
        transform: scaleX(-1);
      }

      .event-studio-host-live-media video[hidden] {
        display: none;
      }

      .event-studio-host-live-brand {
        position: absolute;
        z-index: 1;
        top: 22%;
        left: 50%;
        transform: translateX(-50%);
        color: #fff;
        font-size: clamp(28px, 4vw, 64px);
        font-weight: 800;
        line-height: 1;
        letter-spacing: -0.04em;
        white-space: nowrap;
        text-shadow: 0 4px 22px rgba(0, 14, 45, 0.75);
        pointer-events: none;
      }

      .event-studio-host-live-brand b {
        color: #18a4ff;
      }

      .event-studio-host-live-media video:not([hidden]) + .event-studio-host-live-brand {
        display: none;
      }

      .event-studio-view.host-live-camera-mode .event-studio-header {
        min-height: 58px;
      }

      .event-studio-view.host-live-camera-mode .event-studio-back,
      .event-studio-view.host-live-camera-mode .event-studio-heading p,
      .event-studio-view.host-live-camera-mode .event-studio-live-set,
      .event-studio-view.host-live-camera-mode [data-event-studio-live-role],
      .event-studio-view.host-live-camera-mode [data-event-studio-camera-label],
      .event-studio-view.host-live-camera-mode .studio-spatial-hint {
        display: none;
      }

      .event-studio-view.host-live-camera-mode .event-studio-host-live-media {
        display: block;
      }

      .event-studio-view.host-live-camera-mode .event-studio-live-session {
        cursor: default;
        perspective: none;
        touch-action: manipulation;
      }

      .event-studio-view.host-live-camera-mode .event-studio-live-topline strong {
        width: auto;
      }

      .event-studio-live-shade {
        position: absolute;
        inset: 0;
        background:
          linear-gradient(180deg, rgba(4, 15, 34, 0.7) 0%, transparent 25%, transparent 64%, rgba(4, 15, 34, 0.86) 100%),
          linear-gradient(90deg, rgba(4, 15, 34, 0.28), transparent 30%, transparent 70%, rgba(4, 15, 34, 0.28));
        z-index: 1;
        pointer-events: none;
      }

      .event-studio-live-topline {
        position: absolute;
        z-index: 2;
        top: clamp(16px, 2.6vw, 28px);
        left: clamp(16px, 2.6vw, 28px);
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 0;
        text-shadow: 0 2px 12px rgba(0, 10, 28, 0.72);
      }

      .event-studio-live-topline > span:not(.event-studio-live-badge) {
        color: rgba(255, 255, 255, 0.84);
        font-size: 10px;
        font-weight: 700;
      }

      .event-studio-live-topline strong {
        overflow: hidden;
        font-size: 14px;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .event-studio-camera-label {
        color: #fff;
        font-size: 9px;
        font-weight: 800;
      }

      .event-studio-permissions {
        position: absolute;
        z-index: 3;
        top: clamp(16px, 2.6vw, 28px);
        right: clamp(16px, 2.6vw, 28px);
        display: flex;
        gap: 6px;
      }

      .event-studio-permissions[hidden],
      [data-event-studio-audience-controls][hidden],
      [data-event-studio-host-controls][hidden] {
        display: none;
      }

      .event-studio-permissions button {
        min-height: 34px;
        padding: 0 11px;
        border: 1px solid rgba(255, 255, 255, 0.28);
        border-radius: 999px;
        color: #fff;
        background: rgba(5, 20, 45, 0.78);
        font: inherit;
        font-size: 9px;
        font-weight: 800;
        cursor: pointer;
      }

      .event-studio-permissions button[aria-pressed="false"] {
        color: #9fb4d2;
      }

      .event-studio-live-badge {
        padding: 6px 9px;
        border-radius: 999px;
        background: #ee3457;
        box-shadow: 0 7px 20px rgba(238, 52, 87, 0.34);
        font-size: 9px;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
      }

      .event-studio-live-people {
        position: absolute;
        z-index: 3;
        right: 11%;
        bottom: 29%;
        left: 11%;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        gap: clamp(8px, 2.6vw, 42px);
        transform: translateZ(42px);
        transform-style: preserve-3d;
      }

      .event-studio-attendee-presence {
        position: absolute;
        z-index: 2;
        top: 28%;
        bottom: auto;
        left: 3.7%;
        width: 122px;
        height: 176px;
        display: grid;
        align-items: end;
        justify-items: center;
        pointer-events: none;
        transform: translateZ(72px);
        transform-style: preserve-3d;
      }

      .event-studio-attendee-presence[hidden] {
        display: none;
      }

      .event-studio-attendee-presence .event-studio-avatar-figure {
        bottom: 20px;
        width: 72px;
        height: 132px;
      }

      .event-studio-attendee-presence > small {
        position: absolute;
        z-index: 5;
        top: 0;
        left: 50%;
        max-width: 100%;
        overflow: hidden;
        padding: 4px 7px;
        border-radius: 10px;
        color: #fff;
        background: rgba(4, 20, 45, 0.86);
        font-size: 8px;
        font-weight: 800;
        text-overflow: ellipsis;
        transform: translateX(-50%);
        white-space: nowrap;
      }

      @media (max-width: 1100px) {
        .event-studio-attendee-presence {
          top: 31%;
          bottom: auto;
          left: 4%;
          width: 104px;
          height: 158px;
        }

        .event-studio-attendee-presence .event-studio-avatar-figure {
          bottom: 20px;
          width: 68px;
          height: 124px;
        }
      }

      .studio-spatial-hint {
        position: absolute;
        z-index: 4;
        right: clamp(14px, 2.6vw, 28px);
        bottom: clamp(74px, 9vw, 94px);
        margin: 0;
        padding: 7px 10px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 999px;
        color: rgba(255, 255, 255, 0.88);
        background: rgba(5, 20, 45, 0.64);
        box-shadow: 0 8px 22px rgba(0, 10, 28, 0.26);
        backdrop-filter: blur(10px);
        pointer-events: none;
        font-size: 9px;
        font-weight: 700;
        letter-spacing: 0.01em;
      }

      @media (max-width: 1100px) {
        .event-studio-live-session .studio-spatial-hint {
          right: 12px;
          bottom: 72px;
          max-width: 148px;
          border-radius: 12px;
          text-align: center;
        }
      }

      .event-studio-seat {
        position: relative;
        width: clamp(118px, 14vw, 224px);
        height: clamp(188px, 23vw, 340px);
        display: block;
        flex: 0 1 224px;
        padding: 0;
        border: 0;
        color: #fff;
        background: transparent;
        font: inherit;
        text-align: center;
        cursor: default;
      }

      .event-studio-seat.available {
        cursor: pointer;
      }

      .event-studio-seat.available:focus-visible {
        outline: 3px solid #79a9ff;
        outline-offset: 5px;
      }

      .event-studio-live-session[data-studio-format="single"] .event-studio-seat {
        width: clamp(148px, 16vw, 226px);
        height: clamp(220px, 24vw, 344px);
        flex-basis: 226px;
      }

      .event-studio-chair {
        position: absolute;
        z-index: 2;
        inset: auto 0 16px;
        height: 60%;
        background: url("assets/event-studio-chair-ivory.png") center bottom / contain no-repeat;
        filter: drop-shadow(0 18px 18px rgba(2, 10, 25, 0.42));
      }

      .event-studio-chair::before {
        content: none;
      }

      .event-studio-chair::after {
        content: none;
      }

      .event-studio-seat.available .event-studio-chair {
        filter: drop-shadow(0 0 9px rgba(93, 151, 255, 0.95)) drop-shadow(0 18px 18px rgba(2, 10, 25, 0.42));
        animation: studioSeatReady 1.8s ease-in-out infinite;
      }

      .event-studio-seat-copy {
        position: absolute;
        z-index: 5;
        right: -14%;
        bottom: -7px;
        left: -14%;
        display: grid;
        gap: 1px;
        text-shadow: 0 2px 9px #020912;
      }

      .event-studio-seat-copy strong,
      .event-studio-seat-copy small {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .event-studio-seat-copy strong { font-size: 11px; }
      .event-studio-seat-copy small { color: #f5f8ff; font-size: 8px; }

      .event-studio-avatar-figure {
        --avatar-skin: #bd8669;
        --avatar-hair: #172033;
        --avatar-clothes: #2359a5;
        position: absolute;
        z-index: 4;
        left: 50%;
        bottom: 6%;
        width: 74%;
        height: 88%;
        transform: translateX(-50%);
        transform-origin: 50% 90%;
        animation: studioAvatarSit var(--sp-dur-glide) var(--sp-ease-glide) both;
      }

      .event-studio-avatar-figure[data-presentation="feminine"] {
        --avatar-skin: #b8785d;
        --avatar-hair: #291c1a;
        --avatar-clothes: #7c4eb6;
      }

      .event-studio-avatar-figure.has-rendered-avatar {
        display: flex;
        align-items: flex-end;
        justify-content: center;
      }

      .event-studio-avatar-figure.has-profile-avatar {
        width: 70%;
        height: 64%;
        display: flex;
        align-items: center;
        justify-content: center;
      }

      .event-studio-profile-avatar {
        width: 100%;
        height: 100%;
        display: grid;
        place-items: center;
        overflow: hidden;
        border: 4px solid transparent;
        border-radius: 18px;
        color: #fff;
        background:
          linear-gradient(#245fc8, #245fc8) padding-box,
          linear-gradient(145deg, #a96cff 0%, #8755f8 50%, #7047e8 100%) border-box;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9), 0 9px 20px rgba(2, 10, 24, 0.38);
        font-size: clamp(11px, 1.35vw, 20px);
        font-weight: 850;
      }

      .event-studio-profile-avatar img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
      }

      .event-studio-avatar-render {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center bottom;
        filter: drop-shadow(0 11px 12px rgba(2, 10, 24, 0.34));
      }

      .event-studio-avatar-figure[data-presentation="masculine"] {
        --avatar-skin: #b67c5f;
        --avatar-hair: #151b25;
        --avatar-clothes: #1c4f8e;
      }

      .event-studio-avatar-head {
        position: absolute;
        z-index: 4;
        top: 0;
        left: 50%;
        width: 36%;
        aspect-ratio: 0.86;
        transform: translateX(-50%);
        border-radius: 46% 46% 44% 44%;
        background: var(--avatar-skin);
        box-shadow: inset 0 -5px 8px rgba(89, 40, 25, 0.13);
      }

      .event-studio-avatar-head::before {
        content: "";
        position: absolute;
        top: 43%;
        left: 28%;
        width: 7%;
        aspect-ratio: 1;
        border-radius: 50%;
        background: #182235;
        box-shadow: 8px 0 #182235;
      }

      .event-studio-avatar-head::after {
        content: "";
        position: absolute;
        bottom: 20%;
        left: 38%;
        width: 24%;
        height: 8%;
        border-bottom: 1px solid rgba(83, 39, 30, 0.68);
        border-radius: 50%;
      }

      .event-studio-avatar-hair {
        position: absolute;
        z-index: 5;
        top: -2%;
        left: 29%;
        width: 42%;
        height: 19%;
        border-radius: 65% 65% 30% 30%;
        background: var(--avatar-hair);
      }

      .event-studio-avatar-figure[data-presentation="feminine"] .event-studio-avatar-hair {
        left: 25%;
        width: 50%;
        height: 33%;
        border-radius: 60% 60% 42% 42%;
      }

      .event-studio-avatar-torso {
        position: absolute;
        z-index: 3;
        top: 24%;
        left: 21%;
        width: 58%;
        height: 43%;
        border-radius: 38% 38% 18% 18%;
        background: linear-gradient(145deg, color-mix(in srgb, var(--avatar-clothes) 82%, white), var(--avatar-clothes));
        box-shadow: inset 0 1px rgba(255, 255, 255, 0.28);
      }

      .event-studio-avatar-torso::after {
        content: "";
        position: absolute;
        top: 0;
        left: 36%;
        width: 28%;
        height: 24%;
        border-right: 2px solid rgba(255, 255, 255, 0.5);
        border-bottom: 2px solid rgba(255, 255, 255, 0.5);
        transform: rotate(45deg) translate(-12%, -34%);
      }

      .event-studio-avatar-arm,
      .event-studio-avatar-leg {
        position: absolute;
        display: block;
        background: var(--avatar-clothes);
      }

      .event-studio-avatar-arm {
        z-index: 2;
        top: 30%;
        width: 17%;
        height: 40%;
        border-radius: 999px;
      }

      .event-studio-avatar-arm.left { left: 12%; transform: rotate(18deg); }
      .event-studio-avatar-arm.right { right: 12%; transform: rotate(-18deg); }

      .event-studio-avatar-leg {
        z-index: 2;
        top: 61%;
        width: 22%;
        height: 36%;
        border-radius: 0 0 999px 999px;
        background: #111c31;
      }

      .event-studio-avatar-leg.left { left: 25%; transform: rotate(4deg); }
      .event-studio-avatar-leg.right { right: 25%; transform: rotate(-4deg); }

      .event-studio-avatar-initials {
        display: none;
      }

      .event-studio-avatar-figure[data-pose="relaxed"] { transform: translateX(-50%) translateX(-3%) rotate(-4deg); }
      .event-studio-avatar-figure[data-pose="relaxed"] .event-studio-avatar-arm.left { transform: rotate(38deg); }
      .event-studio-avatar-figure[data-pose="forward"] { transform: translateX(-50%) translateY(4%) scale(1.04); }
      .event-studio-avatar-figure[data-pose="forward"] .event-studio-avatar-torso { transform: skewY(-4deg); }

      @media (max-width: 1100px) {
        .event-studio-entry {
          min-height: 590px;
          grid-template-columns: minmax(0, 1fr);
          align-content: end;
          gap: 18px;
          padding: 18px;
          border-radius: 24px;
        }

        .event-studio-entry-copy,
        .event-studio-room {
          width: 100%;
          min-width: 0;
        }
      }

      @media (min-width: 721px) and (max-width: 900px) {
        .event-studio-entry {
          grid-template-columns: minmax(0, 1fr);
          gap: 20px;
        }

        .event-studio-entry-copy,
        .event-studio-room {
          width: 100%;
          min-width: 0;
        }
      }

      .host-event-production-brand,
      .host-event-production-rail,
      .host-event-production-controls,
      .host-event-stage-ready,
      .host-event-subnav,
      .host-event-edit {
        display: none;
      }

      .host-event-production-workspace,
      .host-event-production-main {
        display: contents;
      }

      body.is-logged-in[data-app-view="event-studio"] .app-home {
        background: var(--sp-theme-canvas);
      }

      body.is-logged-in[data-app-view="event-studio"] .app-topbar {
        display: none;
      }

      body.is-logged-in[data-app-view="event-studio"] .app-main {
        height: 100svh;
        padding: 0;
        overflow: hidden;
      }

      body.is-logged-in[data-app-view="event-studio"] .event-studio-view.host-event-production-mode {
        min-height: 100svh;
        height: 100svh;
        display: block;
        padding: 0;
        color: var(--sp-theme-text);
        background: var(--sp-theme-brand-canvas);
      }

      .event-studio-view.host-event-production-mode .host-event-subnav {
        display: none;
      }

      .event-studio-view.host-event-production-mode .host-event-subnav > img {
        width: 96px;
        height: 30px;
        object-fit: contain;
        object-position: center;
      }

      .event-studio-view.host-event-production-mode .host-event-subnav nav {
        display: grid;
        gap: 8px;
      }

      .event-studio-view.host-event-production-mode .host-event-subnav button {
        min-height: 74px;
        display: grid;
        place-items: center;
        gap: 7px;
        padding: 8px 4px;
        border: 0;
        border-left: 3px solid transparent;
        border-radius: 6px;
        color: #9fb4d2;
        background: transparent;
        font: inherit;
        font-size: 9px;
        cursor: pointer;
      }

      .event-studio-view.host-event-production-mode .host-event-subnav button span {
        color: #8fb2ff;
        font-size: 20px;
      }

      .event-studio-view.host-event-production-mode .host-event-subnav button.active {
        border-left-color: #9b6cff;
        color: #cbb8ff;
        background: linear-gradient(90deg, rgba(117, 70, 238, 0.42), rgba(82, 41, 171, 0.14));
      }

      .event-studio-view.host-event-production-mode .host-event-production-main {
        min-width: 0;
        min-height: 0;
        height: 100%;
        display: flex;
        flex-direction: column;
        gap: 4px;
        padding: 18px 22px 20px;
        box-sizing: border-box;
      }

      .event-studio-view.host-event-production-mode .event-studio-header {
        min-height: 50px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;
        align-items: center;
        gap: 14px;
        margin-bottom: 0;
        padding: 0;
      }

      .event-studio-view.host-event-production-mode .event-studio-heading {
        grid-column: 1;
        grid-row: 1;
      }

      .event-studio-view.host-event-production-mode .event-studio-heading h2 {
        color: var(--sp-theme-text);
        font-size: clamp(26px, 3vw, 42px);
      }

      .event-studio-view.host-event-production-mode .event-studio-heading h2 span {
        color: var(--sp-color-blue);
        background: var(--sp-brand-gradient);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
      }

      .event-studio-view.host-event-production-mode .host-event-edit {
        min-width: 142px;
        min-height: 44px;
        display: inline-flex;
        grid-column: 2;
        grid-row: 1;
        align-items: center;
        justify-content: center;
        gap: 9px;
        border: 1px solid var(--sp-theme-brand-border);
        border-radius: 9px;
        color: var(--sp-theme-text);
        background: var(--sp-theme-brand-surface);
        box-shadow: var(--sp-theme-brand-shadow);
        font: inherit;
        font-size: 11px;
        font-weight: 750;
        cursor: pointer;
      }

      .event-studio-view.host-event-production-mode .event-studio-back {
        width: 42px;
        min-height: 42px;
        display: grid;
        grid-column: 3;
        grid-row: 1;
        place-items: center;
        padding: 0;
        border: 0;
        border-radius: 50%;
        color: var(--sp-theme-text);
        background: transparent;
        font-size: 27px;
      }

      .event-studio-view.host-event-production-mode .event-studio-heading > p {
        display: none;
      }

      .event-studio-view.host-event-production-mode .event-studio-entry {
        min-height: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto minmax(320px, 1fr) auto auto;
        flex: 1;
        align-items: stretch;
        align-content: stretch;
        gap: 12px;
        padding: 4px 18px 18px;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
      }

      .event-studio-view.host-event-production-mode .host-event-production-brand {
        min-height: 38px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
      }

      .event-studio-view.host-event-production-mode .host-event-production-brand img {
        width: 132px;
        height: 34px;
        object-fit: contain;
        object-position: left center;
      }

      .event-studio-view.host-event-production-mode .host-event-production-brand h3 {
        margin: 0;
        color: var(--sp-theme-text);
        font-size: clamp(22px, 2.4vw, 34px);
        line-height: 1;
        letter-spacing: -0.04em;
      }

      .event-studio-view.host-event-production-mode .host-event-production-brand h3 span {
        color: #9b6cff;
      }

      .event-studio-view.host-event-production-mode .event-studio-entry-copy {
        width: 100%;
        min-height: 68px;
        display: grid;
        grid-template-columns: 42px minmax(180px, 1fr) minmax(200px, auto);
        align-items: center;
        gap: 12px;
        padding: 10px 14px;
        border: 1px solid var(--sp-theme-brand-border);
        border-radius: 17px;
        color: var(--sp-theme-text);
        background: var(--sp-theme-brand-surface);
        box-shadow: var(--sp-theme-brand-shadow);
      }

      .event-studio-view.host-event-production-mode .host-event-identity-thumb {
        width: 42px;
        height: 42px;
        display: block;
        border-radius: 7px;
        object-fit: cover;
      }

      .event-studio-view.host-event-production-mode .event-studio-entry-copy > span {
        display: none;
      }

      .event-studio-view.host-event-production-mode .event-studio-entry-copy > strong {
        min-width: 0;
        margin: 0;
        overflow: hidden;
        color: var(--sp-theme-text);
        font-size: clamp(17px, 2vw, 24px);
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .event-studio-view.host-event-production-mode .event-studio-entry-copy > small {
        min-width: 0;
        margin: 0;
        overflow: hidden;
        color: var(--sp-theme-text-muted);
        font-size: 11px;
        font-weight: 700;
        text-align: right;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .event-studio-view.host-event-production-mode .host-event-production-workspace {
        min-height: 0;
        display: grid;
        grid-template-columns: minmax(0, 1.65fr) minmax(230px, 0.55fr);
        gap: 12px;
      }

      .event-studio-view.host-event-production-mode .event-studio-room {
        min-height: 0;
        display: block;
        padding: 0;
        overflow: hidden;
        border: 1px solid var(--sp-theme-brand-border);
        border-radius: 23px;
        background: var(--sp-theme-surface-soft);
        box-shadow: var(--sp-theme-shadow);
        backdrop-filter: none;
      }

      .event-studio-view.host-event-production-mode .event-studio-stage {
        min-height: 100%;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        padding: 50px 20px 22px;
        border-radius: 22px;
        background:
          linear-gradient(180deg, rgba(4, 12, 28, 0.08), rgba(4, 12, 28, 0.54)),
          var(--host-event-stage-image, url("assets/spossity-host-event-stage.png")) center / cover no-repeat;
      }

      .event-studio-view.host-event-production-mode .event-studio-stage::after {
        display: none;
      }

      .event-studio-view.host-event-production-mode .event-studio-stage-label {
        top: 15px;
        left: 16px;
        padding: 7px 10px;
        border: 1px solid rgba(255, 255, 255, 0.22);
        border-radius: 999px;
        color: #fff;
        background: rgba(5, 14, 31, 0.74);
      }

      .event-studio-view.host-event-production-mode .host-event-stage-ready {
        position: absolute;
        top: 20px;
        right: 18px;
        display: block;
        color: #79edc1;
        font-size: 9px;
        font-weight: 900;
        letter-spacing: 0.1em;
        text-transform: uppercase;
      }

      .event-studio-view.host-event-production-mode .event-studio-audience {
        display: none;
      }

      .event-studio-view.host-event-production-mode .host-event-production-rail {
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 14px;
        border: 1px solid var(--sp-theme-border);
        border-radius: 22px;
        color: var(--sp-theme-text);
        background: var(--sp-theme-brand-surface);
        box-shadow: var(--sp-theme-brand-shadow);
      }

      .event-studio-view.host-event-production-mode .host-event-production-rail h4 {
        margin: 0;
        font-size: 15px;
      }

      .event-studio-view.host-event-production-mode .host-event-production-rail > header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
      }

      .event-studio-view.host-event-production-mode .host-event-production-rail > header button {
        min-height: 34px;
        padding: 0 11px;
        border: 1px solid var(--sp-theme-accent-border);
        border-radius: 8px;
        color: var(--sp-theme-text);
        background: var(--sp-theme-surface);
        font: inherit;
        font-size: 9px;
        font-weight: 800;
        cursor: pointer;
      }

      .event-studio-view.host-event-production-mode .host-event-production-team {
        min-height: 0;
        display: flex;
        flex: 1;
        flex-direction: column;
        gap: 8px;
      }

      .event-studio-view.host-event-production-mode .host-event-production-person {
        min-height: 58px;
        display: grid;
        grid-template-columns: 38px minmax(0, 1fr) auto;
        align-items: center;
        gap: 9px;
        padding: 8px;
        border: 1px solid var(--sp-theme-border);
        border-radius: 14px;
        color: var(--sp-theme-text);
        background: var(--sp-theme-surface-soft);
      }

      .event-studio-view.host-event-production-mode .host-event-production-avatar {
        position: relative;
        width: 34px;
        height: 42px;
      }

      .event-studio-view.host-event-production-mode .host-event-production-avatar .event-studio-avatar-figure {
        bottom: 0;
        width: 34px;
        height: 42px;
      }

      .event-studio-view.host-event-production-mode .host-event-production-person > span:nth-child(2) {
        min-width: 0;
      }

      .event-studio-view.host-event-production-mode .host-event-production-person strong,
      .event-studio-view.host-event-production-mode .host-event-production-person small {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .event-studio-view.host-event-production-mode .host-event-production-person strong {
        font-size: 11px;
      }

      .event-studio-view.host-event-production-mode .host-event-production-person small {
        margin-top: 3px;
        color: var(--sp-theme-text-muted);
        font-size: 9px;
      }

      .event-studio-view.host-event-production-mode .host-event-production-person b {
        color: #38d995;
      }

      .event-studio-view.host-event-production-mode .host-event-join-stage {
        min-width: 44px;
        min-height: 44px;
        padding: 8px 12px;
        border: 1px solid var(--sp-theme-accent-border);
        border-radius: var(--sp-curve-control);
        background: var(--sp-theme-accent-soft);
        color: var(--sp-theme-accent);
        font: inherit;
        font-size: 12px;
        font-weight: 800;
        cursor: pointer;
      }

      .event-studio-view.host-event-production-mode .host-event-join-stage:focus-visible {
        outline: 2px solid var(--sp-theme-accent);
        outline-offset: 3px;
      }

      .event-studio-view.host-event-production-mode .host-event-join-stage:disabled {
        cursor: wait;
        opacity: 0.7;
      }

      .event-studio-view.host-event-production-mode .host-event-production-audience {
        min-height: 64px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 11px;
        border: 1px solid color-mix(in srgb, var(--sp-theme-accent-border) 42%, transparent);
        border-radius: 16px;
        color: var(--sp-theme-text);
        background: var(--sp-theme-surface-accent);
      }

      .event-studio-view.host-event-production-mode .host-event-production-audience span,
      .event-studio-view.host-event-production-mode .host-event-production-audience small {
        display: block;
      }

      .event-studio-view.host-event-production-mode .host-event-production-audience span {
        font-size: 11px;
        font-weight: 900;
      }

      .event-studio-view.host-event-production-mode .host-event-production-audience small {
        margin-top: 3px;
        color: var(--sp-theme-text-muted);
        font-size: 8px;
      }

      .event-studio-view.host-event-production-mode .host-event-production-audience strong {
        color: var(--sp-theme-accent);
        font-size: 22px;
      }

      .host-event-team-invite-overlay {
        position: fixed;
        z-index: 120;
        inset: 0;
        display: grid;
        place-items: center;
        padding: 20px;
        background: var(--sp-theme-overlay);
        backdrop-filter: blur(10px);
      }

      .host-event-team-invite-overlay[hidden] { display: none; }

      .host-event-team-invite-dialog {
        width: min(640px, 100%);
        max-height: min(760px, calc(100svh - 40px));
        display: grid;
        grid-template-rows: auto auto auto minmax(0, 1fr) auto auto;
        gap: 14px;
        overflow: hidden;
        padding: 20px;
        border: 1px solid var(--sp-theme-border);
        border-radius: 24px;
        color: var(--sp-theme-text);
        background: var(--sp-theme-surface);
        box-shadow: var(--sp-theme-shadow);
      }

      .host-event-team-invite-header,
      .host-event-team-invite-actions {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
      }

      .host-event-team-invite-header h3,
      .host-event-team-invite-header p { margin: 0; }
      .host-event-team-invite-header h3 { font-size: 22px; }
      .host-event-team-invite-header p { margin-top: 4px; color: var(--sp-theme-text-muted); font-size: 11px; }

      .host-event-team-invite-close {
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
        border: 1px solid var(--sp-theme-border);
        border-radius: 50%;
        color: var(--sp-theme-text);
        background: var(--sp-theme-surface-soft);
        font: inherit;
        font-size: 24px;
        cursor: pointer;
      }

      .host-event-team-invite-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
      }

      .host-event-team-invite-tabs button,
      .host-event-team-invite-contact,
      .host-event-team-invite-actions button {
        min-height: 44px;
        border: 1px solid var(--sp-theme-border);
        border-radius: 13px;
        color: var(--sp-theme-text);
        background: var(--sp-theme-surface-soft);
        font: inherit;
        font-size: 12px;
        font-weight: 800;
        cursor: pointer;
      }

      .host-event-team-invite-tabs button[aria-pressed="true"],
      .host-event-team-invite-contact[aria-pressed="true"] {
        border-color: var(--sp-theme-accent-border);
        background: var(--sp-theme-accent-soft);
        box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sp-theme-accent) 30%, transparent);
      }

      .host-event-team-invite-status {
        min-height: 18px;
        margin: 0;
        color: var(--sp-theme-accent);
        font-size: 11px;
        line-height: 1.45;
      }

      .host-event-team-invite-list {
        min-height: 128px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-content: start;
        gap: 9px;
        overflow-y: auto;
        padding-right: 3px;
      }

      .host-event-team-invite-contact {
        display: grid;
        grid-template-columns: 36px minmax(0, 1fr) auto;
        align-items: center;
        gap: 9px;
        padding: 8px 10px;
        text-align: left;
      }

      .host-event-team-invite-contact:disabled { opacity: 0.56; cursor: default; }
      .host-event-team-invite-contact > i {
        width: 36px;
        height: 36px;
        display: grid;
        place-items: center;
        border: 2px solid #9b6cff;
        border-radius: 12px;
        color: #fff;
        background: #2359b8;
        font-size: 10px;
        font-style: normal;
      }
      .host-event-team-invite-contact strong,
      .host-event-team-invite-contact small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
      .host-event-team-invite-contact small { margin-top: 3px; color: var(--sp-theme-text-muted); font-size: 9px; }
      .host-event-team-invite-contact em { color: var(--sp-theme-accent); font-size: 9px; font-style: normal; }

      .host-event-team-invite-role {
        display: grid;
        gap: 6px;
        color: var(--sp-theme-text);
        font-size: 11px;
        font-weight: 800;
      }
      .host-event-team-invite-role select {
        min-height: 46px;
        padding: 0 12px;
        border: 1px solid var(--sp-theme-border);
        border-radius: 13px;
        color: var(--sp-theme-text);
        background: var(--sp-theme-surface-soft);
        font: inherit;
      }

      .host-event-team-invite-actions { justify-content: flex-end; }
      .host-event-team-invite-actions button { min-width: 112px; padding: 0 15px; }
      .host-event-team-invite-actions button:last-child { border-color: #b38cff; background: #7d48ef; }
      .host-event-team-invite-actions button:disabled { opacity: 0.48; cursor: not-allowed; }

      .host-event-production-person.is-pending b { color: #bca4ff !important; font-size: 8px; text-transform: uppercase; }

      @media (max-width: 1100px) {
        .host-event-team-invite-overlay { align-items: end; padding: 0; }
        .host-event-team-invite-dialog {
          width: 100%;
          max-height: min(82svh, 720px);
          padding: 16px 14px calc(16px + env(safe-area-inset-bottom));
          border-radius: 24px 24px 0 0;
        }
        .host-event-team-invite-list { grid-template-columns: 1fr; }
      }

      .host-event-production-reactions {
        display: none;
      }

      .event-studio-view.host-event-production-mode .host-event-production-reactions {
        min-height: 58px;
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 8px 0;
        border-top: 1px solid var(--sp-theme-brand-border);
        border-bottom: 1px solid var(--sp-theme-brand-border);
      }

      .event-studio-view.host-event-production-mode .host-event-production-reactions > strong {
        flex: 0 0 auto;
        color: var(--sp-theme-text);
        font-size: 11px;
        font-weight: 900;
      }

      .event-studio-view.host-event-production-mode .host-event-production-reactions > div {
        min-width: 0;
        display: flex;
        flex: 1;
        gap: 8px;
      }

      .event-studio-view.host-event-production-mode .host-event-production-reactions button {
        min-width: 0;
        min-height: 42px;
        display: flex;
        flex: 1;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 7px 12px;
        border: 1px solid var(--sp-theme-border-strong);
        border-radius: 10px;
        color: var(--sp-theme-text-muted);
        background: var(--sp-theme-surface);
        font: inherit;
        font-size: 10px;
        font-weight: 850;
        cursor: pointer;
      }

      .event-studio-view.host-event-production-mode .host-event-production-reactions button[aria-pressed="true"] {
        border-color: var(--sp-theme-accent-border);
        color: var(--sp-theme-text);
        background: var(--sp-theme-accent-soft);
      }

      .event-studio-view.host-event-production-mode .host-event-production-reactions button b {
        color: var(--sp-theme-text-muted);
        font-size: 9px;
        font-weight: 900;
      }

      .event-studio-view.host-event-production-mode .host-event-production-reactions button[aria-pressed="true"] b {
        color: var(--sp-theme-accent);
      }

      .event-studio-view.host-event-production-mode .host-event-production-question {
        min-width: 0;
        display: flex;
        flex: 1;
        overflow: hidden;
        border: 1px solid var(--sp-theme-accent-border);
        border-radius: 10px;
        background: var(--sp-theme-accent-soft);
      }

      .event-studio-view.host-event-production-mode .host-event-production-question button {
        min-height: 40px;
        border: 0;
        border-radius: 0;
        background: transparent;
      }

      .event-studio-view.host-event-production-mode .host-event-production-question [data-open-event-live-chat] {
        flex: 1;
        color: var(--sp-theme-text);
      }

      .event-studio-view.host-event-production-mode .host-event-production-question [data-studio-permission="askQuestion"] {
        flex: 0 0 52px;
        border-left: 1px solid rgba(185, 151, 255, .42);
      }

      .event-studio-view.host-event-production-mode .host-event-production-controls {
        min-height: 84px;
        display: flex;
        align-items: stretch;
        gap: 14px;
        padding: 12px 14px;
        border: 1px solid var(--sp-theme-brand-border);
        border-radius: 16px;
        background: var(--sp-theme-brand-surface);
        box-shadow: var(--sp-theme-brand-shadow);
      }

      .event-studio-view.host-event-production-mode .host-event-production-control-list {
        min-width: 0;
        display: flex;
        flex: 1;
        gap: 14px;
      }

      .event-studio-view.host-event-production-mode .host-event-production-control-list button {
        min-width: 96px;
        display: flex;
        flex: 1;
        align-items: center;
        justify-content: flex-start;
        gap: 11px;
        padding: 8px 14px;
        border: 1px solid var(--sp-theme-border-strong);
        border-radius: 10px;
        color: var(--sp-theme-text);
        background: var(--sp-theme-surface);
        font: inherit;
        font-size: 10px;
        font-weight: 800;
        cursor: pointer;
      }

      .event-studio-view.host-event-production-mode .host-event-production-control-list button em {
        color: inherit;
        font-style: normal;
        font-size: 11px;
        font-weight: 800;
      }

      .event-studio-view.host-event-production-mode .host-event-production-control-list button b {
        margin-left: auto;
        color: var(--sp-theme-text-muted);
        font-size: 12px;
      }

      .event-studio-view.host-event-production-mode .host-event-production-control-list button[aria-pressed="true"] {
        border-color: var(--sp-theme-border-strong);
        color: var(--sp-theme-text);
        background: var(--sp-theme-surface);
      }

      .event-studio-view.host-event-production-mode .host-event-production-control-list button span {
        width: 20px;
        height: 20px;
        display: grid;
        flex: 0 0 20px;
        place-items: center;
        color: var(--sp-theme-text);
      }

      .event-studio-view.host-event-production-mode .host-event-production-control-list button span svg {
        width: 20px;
        height: 20px;
        display: block;
      }

      .event-studio-view.host-event-production-mode .host-event-production-control-list button[aria-pressed="false"] {
        color: var(--sp-theme-text-muted);
        background: var(--sp-theme-surface-soft);
        opacity: 0.78;
      }

      .event-studio-view.host-event-production-mode .host-event-production-control-list button:disabled {
        cursor: not-allowed;
        opacity: 0.45;
      }

      .host-event-fullscreen-preview {
        position: fixed;
        z-index: 240;
        inset: 0;
        display: grid;
        grid-template-rows: auto minmax(0, 1fr);
        color: #f5f8ff;
        background: #030b17;
      }

      .host-event-fullscreen-preview[hidden] { display: none; }

      .host-event-fullscreen-header {
        min-height: max(66px, calc(env(safe-area-inset-top, 0px) + 58px));
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 16px;
        padding: max(10px, env(safe-area-inset-top, 0px)) 18px 10px;
        border-bottom: 1px solid rgba(145, 190, 255, 0.24);
        background: #061224;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
      }

      .host-event-fullscreen-back {
        min-width: 90px;
        min-height: 42px;
        padding: 0 15px;
        border: 1px solid #7655dc;
        border-radius: 11px;
        color: #fff;
        background: #111b35;
        font: inherit;
        font-size: 11px;
        font-weight: 850;
        cursor: pointer;
      }

      .host-event-fullscreen-copy {
        min-width: 0;
        display: grid;
        gap: 3px;
      }

      .host-event-fullscreen-copy strong,
      .host-event-fullscreen-copy small {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .host-event-fullscreen-copy strong { font-size: 15px; }
      .host-event-fullscreen-copy small { color: #9fb4d2; font-size: 9px; }

      .host-event-fullscreen-ready {
        color: #79edc1;
        font-size: 9px;
        font-weight: 900;
        letter-spacing: 0.12em;
        text-transform: uppercase;
      }

      .host-event-fullscreen-stage {
        position: relative;
        min-width: 0;
        min-height: 0;
        padding: 12px;
        background: radial-gradient(circle at 50% 10%, rgba(65, 77, 196, 0.2), transparent 42%), #020812;
      }

      .host-event-fullscreen-people {
        position: absolute;
        right: 8%;
        bottom: 28px;
        left: 8%;
        z-index: 2;
        pointer-events: none;
      }

      .attendee-event-stage-people {
        position: absolute;
        right: 8%;
        bottom: 54px;
        left: 8%;
        z-index: 3;
        pointer-events: none;
      }

      .host-event-fullscreen-frame {
        width: 100%;
        height: 100%;
        display: block;
        border: 1px solid rgba(145, 190, 255, 0.26);
        border-radius: 18px;
        background: #020817;
      }

      body.host-event-preview-open { overflow: hidden; }

      .host-event-media-panel {
        position: fixed;
        z-index: 180;
        top: max(78px, calc(env(safe-area-inset-top, 0px) + 62px));
        left: 50%;
        width: min(720px, calc(100vw - 40px));
        max-height: min(420px, calc(100svh - 104px));
        display: flex;
        flex-direction: column;
        gap: 10px;
        min-height: 72px;
        overflow-y: auto;
        padding: 10px 12px;
        border: 1px solid var(--sp-theme-accent-border);
        border-radius: 14px;
        color: var(--sp-theme-text);
        background: var(--sp-theme-surface-inset);
        box-shadow: var(--sp-theme-shadow);
        transform: translateX(-50%);
      }

      .host-event-media-panel[hidden] { display: none; }

      .host-event-media-panel-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        cursor: grab;
        touch-action: none;
        user-select: none;
      }

      .host-event-media-panel-header > span {
        position: relative;
        min-width: 0;
        display: grid;
        gap: 2px;
        padding-left: 20px;
        cursor: grab;
        touch-action: none;
        user-select: none;
      }

      .host-event-media-panel-header > span::before {
        content: "⋮⋮";
        position: absolute;
        top: 50%;
        left: 0;
        color: #a86dff;
        font-size: 14px;
        letter-spacing: -5px;
        transform: translateY(-50%);
      }

      .host-event-media-panel.is-dragging .host-event-media-panel-header > span {
        cursor: grabbing;
      }

      .host-event-media-panel.is-dragging .host-event-media-panel-header {
        cursor: grabbing;
      }

      .host-event-media-panel-actions,
      .host-event-media-panel-actions button {
        touch-action: manipulation;
      }

      .event-studio-view.is-moving-media-panel .event-studio-engine-frame {
        pointer-events: none;
      }

      .host-event-media-panel-header strong { font-size: 12px; }
      .host-event-media-panel-header small { color: var(--sp-theme-text-muted); font-size: 9px; }

      .host-event-media-library {
        min-width: 0;
        display: flex;
        align-items: center;
        gap: 8px;
        overflow-x: auto;
        scrollbar-width: none;
      }

      .host-event-media-library::-webkit-scrollbar { display: none; }

      .host-event-media-item,
      .host-event-media-action,
      .host-event-media-add,
      .host-event-media-close {
        border: 1px solid var(--sp-theme-border-strong);
        color: var(--sp-theme-text);
        background: var(--sp-theme-surface-soft);
        font: inherit;
        cursor: pointer;
      }

      .host-event-media-item {
        width: 100%;
        min-width: 150px;
        max-width: 220px;
        display: grid;
        gap: 2px;
        padding: 9px 11px;
        border-radius: 10px;
        text-align: left;
      }

      .host-event-media-item[aria-pressed="true"] {
        border-color: var(--sp-theme-accent-border);
        background: var(--sp-theme-accent-soft);
        box-shadow: 0 0 0 1px color-mix(in srgb, var(--sp-theme-accent) 28%, transparent) inset;
      }

      .host-event-media-item strong,
      .host-event-media-item small {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .host-event-media-item strong { font-size: 10px; }
      .host-event-media-item small { color: var(--sp-theme-text-muted); font-size: 8px; }

      .host-event-media-card {
        min-width: 170px;
        max-width: 240px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: stretch;
        gap: 6px;
      }

      .host-event-media-action {
        min-width: 64px;
        padding: 7px 10px;
        border-color: #9564ff;
        border-radius: 10px;
        font-size: 9px;
        font-weight: 850;
      }

      .host-event-media-empty {
        padding: 0 8px;
        color: var(--sp-theme-text-muted);
        font-size: 10px;
        line-height: 1.4;
      }

      .host-event-media-add {
        min-width: 96px;
        min-height: 42px;
        padding: 8px 12px;
        border-color: #9564ff;
        border-radius: 10px;
        font-size: 10px;
        font-weight: 850;
      }

      .host-event-media-close {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        font-size: 18px;
      }

      .host-event-media-panel-actions {
        display: flex;
        align-items: center;
        gap: 8px;
      }

      .host-event-audience-overlay {
        position: fixed;
        z-index: 190;
        inset: 0;
        display: block;
        pointer-events: none;
      }

      .host-event-audience-overlay[hidden] { display: none; }

      .host-event-audience-dialog {
        position: fixed;
        top: max(82px, calc(env(safe-area-inset-top, 0px) + 66px));
        right: 18px;
        width: min(390px, calc(100vw - 36px));
        max-height: min(590px, calc(100svh - 112px));
        display: grid;
        grid-template-rows: auto auto minmax(0, 1fr);
        gap: 10px;
        overflow: hidden;
        padding: 13px;
        border: 1px solid var(--sp-theme-accent-border);
        border-radius: 17px;
        color: var(--sp-theme-text);
        background: var(--sp-theme-surface-inset);
        box-shadow: var(--sp-theme-shadow);
        pointer-events: auto;
      }

      .host-event-audience-dialog.is-dragging { box-shadow: 0 26px 68px rgba(0, 0, 0, 0.68), 0 0 0 1px rgba(168, 109, 255, 0.28); }
      .event-studio-view.is-moving-audience-panel .event-studio-engine-frame { pointer-events: none; }

      .host-event-audience-header,
      .host-event-audience-summary,
      .host-event-audience-row {
        display: flex;
        align-items: center;
      }

      .host-event-audience-header { justify-content: space-between; gap: 12px; cursor: grab; touch-action: none; user-select: none; }
      .host-event-audience-dialog.is-dragging .host-event-audience-header { cursor: grabbing; }
      .host-event-audience-header span { position: relative; min-width: 0; padding-left: 20px; cursor: grab; touch-action: none; user-select: none; }
      .host-event-audience-header span::before { content: "⋮⋮"; position: absolute; top: 50%; left: 0; color: #a86dff; font-size: 14px; letter-spacing: -5px; transform: translateY(-50%); }
      .host-event-audience-header strong,
      .host-event-audience-header small { display: block; }
      .host-event-audience-header strong { font-size: 16px; }
      .host-event-audience-header small { margin-top: 2px; color: var(--sp-theme-text-muted); font-size: 9px; }
      .host-event-audience-close {
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
        border: 1px solid var(--sp-theme-border-strong);
        border-radius: 50%;
        color: var(--sp-theme-text);
        background: var(--sp-theme-surface-soft);
        font: inherit;
        font-size: 18px;
        cursor: pointer;
      }

      .host-event-audience-summary {
        justify-content: space-between;
        gap: 12px;
        padding: 9px 11px;
        border: 1px solid var(--sp-theme-border-strong);
        border-radius: 14px;
        background: var(--sp-theme-surface-soft);
      }
      .host-event-audience-summary span { color: var(--sp-theme-text-muted); font-size: 9px; }
      .host-event-audience-summary strong { color: var(--sp-theme-accent); font-size: 11px; }

      .host-event-audience-scroll { min-height: 0; overflow-y: auto; }
      .host-event-audience-section + .host-event-audience-section { margin-top: 13px; }
      .host-event-audience-section h5 { margin: 0 0 7px; color: var(--sp-theme-accent); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
      .host-event-audience-list { display: grid; gap: 6px; }
      .host-event-audience-row {
        gap: 8px;
        min-height: 49px;
        padding: 7px 8px;
        border: 1px solid var(--sp-theme-border-strong);
        border-radius: 13px;
        background: var(--sp-theme-surface-soft);
      }
      .host-event-audience-avatar {
        width: 32px;
        height: 32px;
        display: grid;
        flex: 0 0 32px;
        place-items: center;
        border: 2px solid #9564ff;
        border-radius: 50%;
        color: #fff;
        background: #24427a;
        font-size: 11px;
        font-weight: 900;
      }
      .host-event-audience-copy { min-width: 0; flex: 1; }
      .host-event-audience-copy strong,
      .host-event-audience-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
      .host-event-audience-copy strong { font-size: 10px; }
      .host-event-audience-copy small { margin-top: 2px; color: var(--sp-theme-text-muted); font-size: 8px; }
      .host-event-audience-hand { color: #ffd36a; font-size: 16px; }
      .host-event-audience-lower {
        min-height: 30px;
        padding: 0 9px;
        border: 1px solid var(--sp-theme-accent-border);
        border-radius: 9px;
        color: var(--sp-theme-text);
        background: var(--sp-theme-accent-soft);
        font: inherit;
        font-size: 8px;
        font-weight: 850;
        cursor: pointer;
      }
      .host-event-audience-empty { margin: 0; padding: 14px 9px; border: 1px dashed var(--sp-theme-border-strong); border-radius: 11px; color: var(--sp-theme-text-muted); text-align: center; font-size: 9px; }

      .event-studio-view.host-event-production-mode .event-studio-start {
        min-width: 184px;
        min-height: 58px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        margin: 0;
        border: 1px solid #c1a8ff;
        border-radius: 10px;
        background: linear-gradient(135deg, #a448ff 0%, #6944f4 100%);
        box-shadow: 0 8px 18px rgba(109, 66, 239, 0.35);
      }

      .event-studio-view.host-event-production-mode .event-studio-start svg {
        width: 20px;
        height: 20px;
      }

      .event-studio-view.host-event-production-mode .event-studio-start span {
        margin-left: 0;
        font-size: 12px;
        font-weight: 900;
      }

      @media (max-width: 900px) {
        body.is-logged-in[data-app-view="event-studio"] .event-studio-view.host-event-production-mode {
          display: block;
          overflow-y: auto;
        }

        .event-studio-view.host-event-production-mode .host-event-subnav {
          display: none;
        }

        .event-studio-view.host-event-production-mode .host-event-production-main {
          min-height: 100%;
          height: auto;
          padding: 12px;
        }

        .event-studio-view.host-event-production-mode .event-studio-entry {
          min-height: 820px;
          padding: 12px;
          border-radius: 24px;
        }

        .event-studio-view.host-event-production-mode .event-studio-entry-copy {
          grid-template-columns: 38px minmax(0, 1fr);
        }

        .event-studio-view.host-event-production-mode .event-studio-entry-copy > small {
          grid-column: 1 / -1;
          text-align: left;
        }

        .event-studio-view.host-event-production-mode .host-event-production-workspace {
          grid-template-columns: minmax(0, 1fr);
          grid-template-rows: minmax(290px, 1fr) auto;
        }

        .event-studio-view.host-event-production-mode .event-studio-stage {
          min-height: clamp(360px, 52svh, 560px);
        }

        .event-studio-view.host-event-production-mode .host-event-production-rail {
          padding: 11px;
        }

        .event-studio-view.host-event-production-mode .host-event-production-team {
          display: grid;
          grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
        }

        .event-studio-view.host-event-production-mode .host-event-production-controls {
          flex-direction: column;
        }

        .event-studio-view.host-event-production-mode .host-event-production-reactions {
          min-height: 82px;
          align-items: stretch;
          flex-direction: column;
          gap: 8px;
        }

        .event-studio-view.host-event-production-mode .host-event-production-reactions > div {
          width: 100%;
        }

        .event-studio-view.host-event-production-mode .host-event-production-reactions button {
          min-height: 48px;
          padding: 7px 5px;
        }

        .event-studio-view.host-event-production-mode .host-event-production-control-list {
          flex-wrap: wrap;
        }

        .event-studio-view.host-event-production-mode .host-event-production-control-list button {
          min-height: 48px;
          flex-basis: 46%;
        }

        .host-event-fullscreen-header {
          grid-template-columns: auto minmax(0, 1fr);
          gap: 10px;
          padding-right: 12px;
          padding-left: 12px;
        }

        .host-event-fullscreen-back {
          min-width: 76px;
          min-height: 44px;
          padding: 0 12px;
        }

        .host-event-fullscreen-ready { display: none; }
        .host-event-fullscreen-stage { padding: 6px; }
        .host-event-fullscreen-frame { border-radius: 13px; }

        .host-event-media-panel {
          top: max(68px, calc(env(safe-area-inset-top, 0px) + 54px));
          width: calc(100vw - 24px);
          max-height: calc(100svh - 88px);
          min-height: 132px;
        }

        .host-event-media-panel-header { align-items: flex-start; }

        .host-event-media-card { min-width: min(82vw, 260px); }

        .host-event-media-panel-actions {
          justify-content: flex-end;
        }

        .host-event-audience-dialog {
          top: max(72px, calc(env(safe-area-inset-top, 0px) + 58px));
          right: 10px;
          width: min(340px, calc(100vw - 20px));
          max-height: min(540px, calc(100svh - 94px));
          padding: 11px;
          border-radius: 15px;
        }
        .host-event-audience-row { min-height: 50px; }

        .event-studio-view.host-event-production-mode .event-studio-start {
          width: 100%;
        }

        .event-studio-view.host-event-production-mode .host-event-edit {
          min-width: 44px;
          width: 44px;
          padding: 0;
        }

        .event-studio-view.host-event-production-mode .host-event-edit span {
          display: none;
        }
      }

      .event-studio-position-modal {
        position: fixed;
        z-index: 90;
        inset: 0;
        display: grid;
        place-items: center;
        padding: 20px;
      }

      .event-studio-position-modal[hidden] { display: none; }
      :is(.office-position-picker,.inline-office-studio,.office-meeting-mode) .event-studio-position-dialog h3 { color:#0b285b; }
      :is(.office-position-picker,.inline-office-studio,.office-meeting-mode) [data-pose-group] { appearance:none; -webkit-appearance:none; cursor:pointer; }
      :is(.office-position-picker,.inline-office-studio,.office-meeting-mode) [data-pose-group][aria-pressed="true"] { color:#783ff2; background:#eee7ff; border-color:#9867ff; }
      :is(.office-position-picker,.inline-office-studio,.office-meeting-mode) [data-pose-group]:focus-visible { outline:2px solid #9867ff; outline-offset:3px; }

      .office-position-picker { z-index: 1000; }
      :is(.office-position-picker,.inline-office-studio,.office-meeting-mode) .event-studio-position-dialog { box-sizing:border-box; max-height:calc(100dvh - 40px); overflow-y:auto; color:#0b285b; background:#f8f7ff; }
      :is(.office-position-picker,.inline-office-studio,.office-meeting-mode) .event-studio-position-dialog h3 { color:inherit; }
      :is(.office-position-picker,.inline-office-studio,.office-meeting-mode) .event-studio-position-dialog p { color:#8b55ff; }
      :is(.office-position-picker,.inline-office-studio,.office-meeting-mode) .event-studio-position-options button { color:#0b285b; background:#f5f8ff; border-color:#c7d5e9; }
      :is(.office-position-picker,.inline-office-studio,.office-meeting-mode) .event-studio-position-options small { color:#52698f; }
      :is(.office-position-picker,.inline-office-studio,.office-meeting-mode) [data-pose-group] { min-height:44px; padding:8px 16px; border:1px solid #b896ff; border-radius:18px; color:#0b285b; background:#f5f8ff; font:inherit; }
      html[data-theme="dark"] :is(.office-position-picker,.inline-office-studio,.office-meeting-mode) .event-studio-position-dialog { background:#0b2242; color:#f5f8ff; }
      html[data-theme="dark"] :is(.office-position-picker,.inline-office-studio,.office-meeting-mode) :is(.event-studio-position-options button,[data-pose-group]) { background:#112e57; color:#f5f8ff; }
      html[data-theme="dark"] :is(.office-position-picker,.inline-office-studio,.office-meeting-mode) .event-studio-position-options small { color:#9fb4d2; }


      .event-studio-position-backdrop {
        position: absolute;
        inset: 0;
        border: 0;
        background: rgba(2, 10, 24, 0.68);
        backdrop-filter: blur(10px);
      }

      .event-studio-position-dialog {
        position: relative;
        width: min(360px, 100%);
        padding: 16px;
        border: 1px solid rgba(136, 180, 255, 0.32);
        border-radius: 26px;
        color: #fff;
        background: #0b2242;
        box-shadow: 0 26px 70px rgba(0, 0, 0, 0.46);
      }

      .event-studio-position-dialog p,
      .event-studio-position-dialog h3 { margin: 0; }
      .event-studio-position-dialog p { color: #7eaaff; font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
      .event-studio-position-dialog h3 { margin-top: 5px; font-size: 24px; }
      .event-studio-position-options { display: grid; grid-template-columns: 1fr; gap: 6px; margin-top: 12px; }
      .event-studio-position-options[hidden] { display: none; }
      .event-studio-position-options button { min-height: 52px; display: grid; grid-template-columns: 28px 1fr; align-items: center; column-gap: 8px; row-gap: 2px; padding: 8px; text-align: left; border: 1px solid rgba(143, 182, 247, 0.28); border-radius: 18px; color: #fff; background: #112e57; font: inherit; cursor: pointer; }
      .event-studio-position-options button:hover,
      .event-studio-position-options button:focus-visible { border-color: #74a7ff; background: #173b70; }
      .event-studio-position-options button > span { grid-column: 1; grid-row: 1 / 3; color: #79a9ff; font-size: 26px; }
      .event-studio-position-options small { grid-column: 2; color: #9fb4d2; text-align: left; }

      .event-studio-position-dialog [data-pose-group] {
        appearance: none;
        -webkit-appearance: none;
        min-height: 44px;
        margin: 12px 8px 0 0;
        padding: 8px 18px;
        border: 1px solid rgba(143, 182, 247, 0.38);
        border-radius: 18px;
        color: #f5f8ff;
        background: #112e57;
        font: inherit;
        font-weight: 800;
        cursor: pointer;
        transition: transform var(--sp-dur-glide, 320ms) var(--sp-ease-glide, cubic-bezier(.2, 1.2, .3, 1)), background 150ms ease;
      }

      .event-studio-position-dialog [data-pose-group][aria-pressed="true"] {
        border: 2px solid #8b55ff;
        background: #173b70;
      }

      .event-studio-position-dialog [data-pose-group]:active,
      .event-studio-position-options button:active {
        transform: scale(0.97);
      }

      .event-studio-position-dialog [data-pose-group] > span {
        margin-right: 7px;
        font-size: 16px;
      }

      .event-studio-position-dialog [data-pose-group] {
        display: inline-flex;
        align-items: center;
        justify-content: center;
      }

      .event-studio-position-dialog [data-pose-group] > span {
        font-size: 18px;
        line-height: 1;
      }

      .event-studio-position-options strong { grid-column: 2; }
      @keyframes studioAvatarSit {
        from { opacity: 0; transform: translateX(-50%) translateY(-18%) scale(0.92); }
        to { opacity: 1; }
      }

      @keyframes studioSeatReady {
        50% { filter: brightness(1.18); }
      }

      .event-studio-live-audience {
        position: absolute;
        z-index: 2;
        bottom: clamp(70px, 9vw, 92px);
        left: clamp(16px, 2.6vw, 28px);
        display: flex;
        align-items: center;
        gap: 9px;
        font-size: 9px;
        font-weight: 700;
        text-shadow: 0 2px 10px rgba(0, 10, 28, 0.85);
      }

      .event-studio-live-audience[hidden] {
        display: none;
      }

      .event-studio-live-audience-faces {
        display: flex;
        padding-left: 6px;
      }

      .event-studio-live-audience-faces i {
        width: 27px;
        height: 27px;
        display: grid;
        place-items: center;
        margin-left: -7px;
        border: 2px solid #fff;
        border-radius: 50%;
        background: linear-gradient(145deg, #4d83f0, #15356d);
        box-shadow: 0 7px 15px rgba(0, 10, 28, 0.36);
        font-size: 7px;
        font-style: normal;
      }

      .event-studio-live-controls {
        position: absolute;
        z-index: 3;
        right: clamp(16px, 2.6vw, 28px);
        bottom: clamp(14px, 2vw, 22px);
        left: clamp(16px, 2.6vw, 28px);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
      }

      .event-studio-control-group {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
      }

      .event-studio-live-controls button {
        min-width: 66px;
        min-height: 44px;
        display: grid;
        grid-template-columns: auto auto;
        place-content: center;
        gap: 7px;
        padding: 0 14px;
        border: 1px solid rgba(255, 255, 255, 0.24);
        border-radius: 999px;
        color: #fff;
        background: rgba(5, 20, 45, 0.78);
        box-shadow: 0 9px 25px rgba(0, 10, 28, 0.3);
        backdrop-filter: blur(12px);
        font: inherit;
        font-size: 10px;
        font-weight: 700;
        cursor: pointer;
      }

      .event-studio-live-controls button[aria-pressed="true"] {
        color: #0b285b;
        background: #fff;
      }

      .event-studio-live-controls button:disabled {
        opacity: 0.42;
        cursor: not-allowed;
      }

      .event-studio-control-emoji {
        font-size: 13px;
        line-height: 1;
      }

      html.reduce-motion .event-studio-live-set {
        transition: none;
      }

      @media (max-width: 1100px) {
        .event-studio-permissions {
          top: 88px;
          right: 12px;
          left: 12px;
          justify-content: center;
        }

        .event-studio-control-group {
          width: 100%;
          gap: 5px;
        }

        .event-studio-live-controls button {
          min-width: 0;
          flex: 1;
          padding-right: 7px;
          padding-left: 7px;
          font-size: 9px;
        }
      }

      .event-studio-live-controls .event-studio-leave,
      .event-studio-live-controls .event-studio-end {
        border-color: rgba(255, 91, 117, 0.66);
        background: #d93655;
      }

      .profile-invite-options {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
      }

      .profile-invite-option {
        min-height: 92px;
        display: grid;
        align-content: center;
        gap: 5px;
        padding: 14px;
        border: 1px solid rgba(33, 103, 245, 0.16);
        border-radius: 14px;
        color: var(--ink);
        background: #f5f8ff;
        text-align: left;
        cursor: pointer;
      }

      .profile-invite-option strong,
      .profile-invite-option small {
        display: block;
      }

      .profile-invite-option strong {
        color: var(--blue);
        font-size: 14px;
      }

      .profile-invite-option small {
        color: #52698f;
        font-size: 10px;
        line-height: 1.4;
      }

      .profile-invite-search {
        display: grid;
        gap: 8px;
      }

      .profile-invite-search input {
        width: 100%;
        height: 46px;
        padding: 0 13px;
        border: 1px solid rgba(29, 75, 153, 0.16);
        border-radius: 13px;
        color: var(--ink);
        background: #fff;
        font: inherit;
        font-size: 16px;
        outline: none;
      }

      .profile-invite-search input:focus {
        border-color: rgba(33, 103, 245, 0.42);
        box-shadow: 0 0 0 4px rgba(33, 103, 245, 0.08);
      }

      .profile-invite-results {
        display: grid;
        gap: 7px;
        max-height: 250px;
        overflow-y: auto;
      }

      .profile-invite-empty {
        margin: 8px 2px;
        color: #52698f;
        font-size: 11px;
        line-height: 1.45;
      }

      .profile-invite-person {
        min-width: 0;
        display: grid;
        grid-template-columns: 38px minmax(0, 1fr) auto;
        align-items: center;
        gap: 9px;
        padding: 9px;
        border: 1px solid rgba(29, 75, 153, 0.12);
        border-radius: 13px;
        background: #fff;
      }

      .profile-invite-avatar {
        width: 38px;
        height: 38px;
        display: grid;
        place-items: center;
        border-radius: 50%;
        color: #fff;
        background: linear-gradient(145deg, #2167f5, #7659ef);
        font-size: 11px;
        font-weight: 700;
      }

      .profile-invite-person-copy {
        min-width: 0;
      }

      .profile-invite-person-copy strong,
      .profile-invite-person-copy small {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .profile-invite-person-copy strong {
        color: var(--ink);
        font-size: 11px;
      }

      .profile-invite-person-copy small {
        margin-top: 2px;
        color: #52698f;
        font-size: 9px;
      }

      .profile-invite-select,
      .profile-invite-send {
        min-height: 36px;
        padding: 0 12px;
        border: 0;
        border-radius: 11px;
        color: #fff;
        background: var(--blue);
        font-size: 10px;
        font-weight: 700;
        cursor: pointer;
      }

      .profile-invite-selected {
        display: grid;
        gap: 12px;
        padding: 12px;
        border-radius: 14px;
        background: #f5f8ff;
      }

      .profile-invite-selected[hidden] {
        display: none;
      }

      .profile-invite-selected-person {
        color: var(--ink);
        font-size: 12px;
        font-weight: 700;
      }

      .profile-invite-new-toggle {
        min-height: 40px;
        padding: 0 12px;
        border: 1px solid rgba(33, 103, 245, 0.18);
        border-radius: 12px;
        color: #7c3aed;
        background: #f5f8ff;
        font-size: 11px;
        font-weight: 700;
        cursor: pointer;
      }

      .profile-invite-new-form {
        display: grid;
        gap: 10px;
        padding: 12px;
        border: 1px solid rgba(29, 75, 153, 0.13);
        border-radius: 14px;
        background: #fff;
      }

      .profile-invite-new-form[hidden],
      .profile-invite-age[hidden],
      .profile-invite-guardian[hidden],
      .profile-invite-age-warning[hidden] {
        display: none;
      }

      .profile-invite-new-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
      }

      .profile-invite-field {
        display: grid;
        gap: 5px;
        color: #52698f;
        font-size: 10px;
        font-weight: 700;
      }

      .profile-invite-field.full {
        grid-column: 1 / -1;
      }

      .profile-invite-field input {
        height: 42px;
        min-width: 0;
        padding: 0 11px;
        border: 1px solid rgba(29, 75, 153, 0.16);
        border-radius: 11px;
        color: var(--ink);
        background: #fff;
        font-size: 16px;
      }

      .profile-invite-age {
        display: grid;
        gap: 5px;
      }

      .profile-invite-age-warning {
        color: #b42318;
        font-size: 10px;
        font-weight: 700;
        line-height: 1.35;
      }

      .profile-invite-guardian {
        display: grid;
        grid-template-columns: 20px minmax(0, 1fr);
        align-items: start;
        gap: 9px;
        padding: 11px;
        border-radius: 11px;
        color: #52698f;
        background: #eef5ff;
        font-size: 11px;
        font-weight: 600;
        line-height: 1.45;
      }

      .profile-invite-guardian input {
        width: 18px;
        height: 18px;
        margin: 0;
        accent-color: var(--blue);
      }

      .profile-invite-relationships {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
        margin: 0;
        padding: 0;
        border: 0;
      }

      .profile-invite-relationships legend {
        grid-column: 1 / -1;
        margin-bottom: 1px;
        color: #52698f;
        font-size: 10px;
        font-weight: 700;
      }

      .profile-invite-relationships input {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: 0;
        opacity: 0;
        pointer-events: none;
      }

      .profile-invite-relationships span {
        min-height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(33, 103, 245, 0.15);
        border-radius: 11px;
        color: #52698f;
        background: #fff;
        font-size: 11px;
        font-weight: 700;
        cursor: pointer;
      }

      .profile-invite-relationships input:checked + span {
        border-color: var(--blue);
        color: var(--blue);
        background: #edf4ff;
      }

      .profile-invite-send {
        width: 100%;
        min-height: 42px;
      }

      .profile-invite-send:disabled {
        cursor: wait;
        opacity: 0.56;
      }

      .profile-setting-stack {
        display: grid;
        gap: 8px;
      }

      .profile-setting-row {
        min-height: 45px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 8px 9px;
        border-radius: 12px;
        background: rgba(238, 244, 253, 0.86);
      }

      .profile-setting-row strong,
      .profile-setting-row small {
        display: block;
      }

      .profile-setting-row strong {
        color: var(--ink);
        font-size: 9px;
      }

      .profile-setting-row small {
        margin-top: 2px;
        color: #52698f;
        font-size: 8px;
        line-height: 1.35;
      }

      .profile-location-scope { display: grid; gap: 6px; margin-bottom: 12px; }
      .profile-location-scope h4 { margin: 0; }
      .profile-location-scope > p, .profile-scope-note { margin: 0; color: #52698f; font-size: 8px; line-height: 1.4; }
      .profile-scope-badge { display: inline-block; padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(33, 103, 245, 0.28); background: rgba(33, 103, 245, 0.10); color: #0b285b; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
      .profile-scope-badge.private { border-color: rgba(120, 54, 239, 0.30); background: rgba(120, 54, 239, 0.10); }
      .profile-scope-note { margin-top: 2px; }
      html[data-theme="dark"] .profile-location-scope > p, html[data-theme="dark"] .profile-scope-note { color: #9fb4d2; }
      html[data-theme="dark"] .profile-scope-badge { color: #f5f8ff; border-color: rgba(143, 178, 255, 0.40); background: rgba(143, 178, 255, 0.14); }
      html[data-theme="dark"] .profile-scope-badge.private { border-color: rgba(177, 122, 255, 0.42); background: rgba(177, 122, 255, 0.16); }

      /* Spossity meter: your tube and each invited child's tube side by side; fits 5+ children. */
      .usage-meter-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(62px, 1fr); gap: 6px; padding: 18px 2px 8px; overflow-x: auto; scroll-snap-type: x proximity; }
      .usage-meter-col { display: flex; flex-direction: column; align-items: center; gap: 8px; scroll-snap-align: start; min-width: 0; }
      .usage-meter-who { all: unset; cursor: pointer; display: grid; text-align: center; min-height: 40px; max-width: 100%; color: #0b285b; }
      .usage-meter-who b, .usage-meter-who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
      .usage-meter-who b { font-size: 14px; }
      .usage-meter-who small { font-size: 11px; color: #52698f; }
      .usage-meter-who.is-selected b, .usage-meter-who.is-selected small { color: #9b6cff; }
      .usage-meter-who:focus-visible { outline: 2px solid #9b6cff; outline-offset: 3px; border-radius: 8px; }
      .usage-meter-tube { position: relative; width: clamp(34px, calc(220px / var(--meter-count, 1)), 56px); height: 200px; border: 2px solid rgba(255,255,255,.85); border-radius: 30px; background: linear-gradient(110deg, rgba(181,139,255,.48), rgba(121,53,238,.28)); box-shadow: inset 2px 0 8px rgba(255,255,255,.7), 0 8px 20px rgba(25,35,69,.15); overflow: hidden; }
      .usage-meter-tube i { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(90deg, #7935ee, #b28aff); border-radius: 28px; }
      .usage-meter-col.is-locked .usage-meter-tube i { background: #52698f; opacity: .45; }
      .usage-meter-time { font-size: 17px; color: #9b6cff; white-space: nowrap; }
      .usage-meter-col.is-locked .usage-meter-time { color: #52698f; }
      .usage-meter-padlock { all: unset; cursor: pointer; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 13px; border: 1.5px solid rgba(255,255,255,.95); background: rgba(255,255,255,.6); backdrop-filter: blur(14px); color: #7836ef; }
      .usage-meter-padlock svg { width: 21px; height: 21px; }
      .usage-meter-col.is-locked .usage-meter-padlock { color: #c0392b; border-color: #c0392b; background: rgba(192,57,43,.10); }
      .usage-meter-padlock:focus-visible { outline: 2px solid #9b6cff; outline-offset: 3px; }
      .usage-meter-state { font-size: 10.5px; font-weight: 700; color: #52698f; text-align: center; }
      .usage-meter-col.is-locked .usage-meter-state { color: #c0392b; }
      .usage-meter-lock { display: grid; gap: 10px; margin: 8px 0; padding: 14px; border-radius: 18px; border: 1.5px solid rgba(255,255,255,.95); background: rgba(255,255,255,.62); backdrop-filter: blur(18px); color: #0b285b; }
      .usage-meter-lock label { display: grid; gap: 6px; font-weight: 700; font-size: 13px; }
      .usage-meter-lock input { min-height: 40px; padding: 8px 12px; border-radius: 12px; border: 1px solid #cbdcf4; font: inherit; }
      .usage-meter-lock > div { display: flex; gap: 8px; justify-content: flex-end; }
      .usage-meter-lock button { min-height: 40px; padding: 8px 16px; border-radius: 14px; border: 1.5px solid #b18af4; background: #f4f2fb; color: #0b285b; font-weight: 800; }
      .usage-meter-lock-error { color: #c0392b; margin: 0; font-size: 13px; }
      html[data-theme="dark"] .usage-meter-who { color: #f5f8ff; }
      html[data-theme="dark"] .usage-meter-who small, html[data-theme="dark"] .usage-meter-state, html[data-theme="dark"] .usage-meter-col.is-locked .usage-meter-time { color: #9fb4d2; }
      html[data-theme="dark"] .usage-meter-who.is-selected b, html[data-theme="dark"] .usage-meter-who.is-selected small { color: #9b6cff; }
      html[data-theme="dark"] .usage-meter-tube { border-color: rgba(143,178,255,.28); background: linear-gradient(110deg, rgba(181,139,255,.22), rgba(121,53,238,.14)); box-shadow: none; }
      html[data-theme="dark"] .usage-meter-padlock { border-color: rgba(143,178,255,.22); background: rgba(20,34,58,.72); color: #b17aff; }
      html[data-theme="dark"] .usage-meter-col.is-locked .usage-meter-padlock { color: #ff8a8a; border-color: #ff8a8a; background: rgba(255,138,138,.14); }
      html[data-theme="dark"] .usage-meter-col.is-locked .usage-meter-state, html[data-theme="dark"] .usage-meter-lock-error { color: #ff8a8a; }
      html[data-theme="dark"] .usage-meter-lock { border-color: rgba(143,178,255,.22); background: rgba(20,34,58,.72); color: #f5f8ff; }
      html[data-theme="dark"] .usage-meter-lock input { background: #0d1d36; color: #f5f8ff; border-color: rgba(143,178,255,.3); }
      html[data-theme="dark"] .usage-meter-lock button { background: #14223a; color: #f5f8ff; border-color: #8d65d1; }
      /* Dark mode for parts that were only dark inside their first home (History) or never had a dark layer.
         Spossity meter filters reuse the History filter chips; Invite, Block and the relationship picker share the
         Profile invite cards; Shared Live Location reuses the event form close button. (audits/dark-mode-1115) */
      html[data-theme="dark"] .timeline-history-filter,
      html[data-theme="dark"] .timeline-history-calendar-select { color:#f5f8ff; border-color:rgba(173,145,255,.34); background:#1a2944; }
      html[data-theme="dark"] .timeline-history-filter[aria-pressed="true"] { color:#f5f8ff; background:#312657; border-color:#a78bfa; }
      html[data-theme="dark"] .timeline-history-calendar-select.has-value { color:#f5f8ff; background:#312657; border-color:#a78bfa; }
      html[data-theme="dark"] .timeline-history-calendar-field::after { border-color:#f4f0ff; }
      html[data-theme="dark"] .timeline-history-calendar-field.has-value::after { border-color:#a78bfa; }
      html[data-theme="dark"] .host-event-close { color:#f5f8ff; border-color:rgba(173,145,255,.34); background:#1a2944; }
      html[data-theme="dark"] .profile-invite-option { color:#f5f8ff; border-color:rgba(173,145,255,.3); background:#1a2944; }
      html[data-theme="dark"] .profile-invite-option strong { color:#f5f8ff; }
      html[data-theme="dark"] .profile-invite-option small { color:#9fb4d2; }
      html[data-theme="dark"] .profile-invite-option:hover,
      html[data-theme="dark"] .profile-invite-option:focus-visible { border-color:#a78bfa; background:#22304f; }
      html[data-theme="dark"] .profile-invite-selected { color:#f5f8ff; background:#14223a; }
      html[data-theme="dark"] .profile-invite-selected-person { color:#f5f8ff; }
      html[data-theme="dark"] .profile-invite-relationships legend { color:#9fb4d2; }
      html[data-theme="dark"] .profile-invite-relationships span { color:#f5f8ff; border-color:rgba(173,145,255,.3); background:#1a2944; }
      html[data-theme="dark"] .profile-invite-relationships input:checked + span { color:#f5f8ff; border-color:#a78bfa; background:#312657; }
      html[data-theme="dark"] .profile-invite-relationships input:focus-visible + span { outline:2px solid #a78bfa; outline-offset:2px; }
      html[data-theme="dark"] .profile-invite-guardian { color:#9fb4d2; background:#1a2944; }
      html[data-theme="dark"] .profile-invite-age-warning { color:#ff8a8a; }
      html[data-theme="dark"] .timeline-composer-media-button:hover,
      html[data-theme="dark"] .timeline-composer-media-button:focus-visible { border-color:#a78bfa; background:#22304f; }

      .timeline-search-safety { display: flex; gap: 6px; margin-top: 6px; }
      .timeline-search-safety button { min-height: 32px; padding: 4px 12px; border-radius: 12px; border: 1px solid #cbdcf4; background: rgba(255,255,255,.6); color: #0b285b; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
      html[data-theme="dark"] .timeline-search-safety button { background: #14223a; color: #f5f8ff; border-color: rgba(143,178,255,.3); }

      .legal-document h3 { margin: 18px 0 6px; font-size: 15px; }
      .legal-document p { margin: 0 0 8px; font-size: 13px; line-height: 1.55; }
      .legal-document a { color: #2167f5; font-weight: 700; }
      .legal-document-notice { padding: 10px 12px; border-radius: 12px; background: rgba(120,54,239,.08); color: #52698f; }
      html[data-theme="dark"] .legal-document a { color: #8fb2ff; }
      html[data-theme="dark"] .legal-document-notice { background: rgba(177,122,255,.12); color: #9fb4d2; }

      .profile-choice-section {
        display: grid;
        gap: 7px;
        margin-bottom: 13px;
      }

      .profile-choice-section > strong {
        color: var(--ink);
        font-size: 10px;
      }

      .profile-choice-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
      }

      .profile-choice-grid.languages {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .profile-choice-grid button {
        min-height: 34px;
        padding: 0 8px;
        border: 1px solid rgba(33, 103, 245, 0.12);
        border-radius: 10px;
        color: #52698f;
        background: #f3f7fd;
        font-size: 8px;
        font-weight: 700;
        cursor: pointer;
      }

      .profile-choice-grid button[aria-pressed="true"] {
        color: #fff;
        border-color: var(--blue);
        background: var(--blue);
      }

      .profile-stat-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
      }

      .profile-stat-grid.single {
        grid-template-columns: 1fr;
      }

      .profile-stat {
        display: grid;
        gap: 3px;
        padding: 13px;
        border-radius: 14px;
        background: #edf4ff;
      }

      .profile-stat strong {
        color: var(--blue);
        font-size: 20px;
      }

      .profile-stat span {
        color: #52698f;
        font-size: 8px;
        font-weight: 700;
      }

      .profile-settings-status {
        min-height: 14px;
        margin: 8px 0 0;
        color: #52698f;
        font-size: 8px;
      }

      html.reduce-motion *,
      html.reduce-motion *::before,
      html.reduce-motion *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
      }

      html[data-theme="dark"] body.is-logged-in,
      html[data-theme="dark"] body.is-logged-in .app-shell,
      html[data-theme="dark"] body.is-logged-in .app-main {
        color: #f5f8ff;
        background: #071225;
      }

      html[data-theme="dark"] body.is-logged-in .app-topbar,
      html[data-theme="dark"] body.is-logged-in .app-sidebar {
        border-color: rgba(157, 184, 229, 0.13);
        background: rgba(7, 18, 37, 0.96);
      }

      html[data-theme="dark"] body.is-logged-in .mobile-bottom-nav {
        border: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
      }

      html[data-theme="dark"] body.is-logged-in .profile-menu-panel,
      html[data-theme="dark"] body.is-logged-in .profile-settings-panel,
      html[data-theme="dark"] body.is-logged-in .profile-social-panel,
      html[data-theme="dark"] body.is-logged-in .vibe-chat-panel,
      html[data-theme="dark"] body.is-logged-in .vibe-call-panel,
      html[data-theme="dark"] body.is-logged-in .people-picker-tabs {
        border-color: rgba(176, 199, 236, 0.17);
        background: rgba(8, 24, 49, 0.95);
      }

      html[data-theme="dark"] body.is-logged-in .people-picker-tabs button:not(.active) {
        color: #9fb4d2;
      }

      html[data-theme="dark"] body.is-logged-in .vibe-chat-form textarea {
        border-color: rgba(176, 199, 236, 0.16);
        color: #f5f8ff;
        background: #10294e;
      }

      html[data-theme="dark"] body.is-logged-in .profile-menu-identity,
      html[data-theme="dark"] body.is-logged-in .profile-menu-item,
      html[data-theme="dark"] body.is-logged-in .profile-settings-detail,
      html[data-theme="dark"] body.is-logged-in .profile-family-permissions {
        border-color: rgba(176, 199, 236, 0.12);
      }

      html[data-theme="dark"] body.is-logged-in .profile-menu-item:hover,
      html[data-theme="dark"] body.is-logged-in .profile-menu-item:focus-visible,
      html[data-theme="dark"] body.is-logged-in .profile-setting-row,
      html[data-theme="dark"] body.is-logged-in .profile-choice-grid button,
      html[data-theme="dark"] body.is-logged-in .profile-stat,
      html[data-theme="dark"] body.is-logged-in .profile-security-action {
        background: #10294e;
      }

      html[data-theme="dark"] body.is-logged-in .profile-menu-copy strong,
      html[data-theme="dark"] body.is-logged-in .profile-menu-identity strong,
      html[data-theme="dark"] body.is-logged-in .profile-detail-heading,
      html[data-theme="dark"] body.is-logged-in .profile-setting-row strong,
      html[data-theme="dark"] body.is-logged-in .profile-choice-section > strong,
      html[data-theme="dark"] body.is-logged-in .profile-settings-account strong,
      html[data-theme="dark"] body.is-logged-in .profile-family-permissions > strong {
        color: #f5f8ff;
      }

      html[data-theme="dark"] body.is-logged-in .profile-event-preview,
      html[data-theme="dark"] body.is-logged-in .profile-event-empty,
      /* Pop-up controls that were light in dark mode (theme audit). */
      html[data-theme="dark"] body.is-logged-in .host-event-team-picker button,
      html[data-theme="dark"] body.is-logged-in .host-team-remove {
        border-color: var(--sp-theme-border, rgba(145, 190, 255, 0.28));
        color: #9fb4d2;
        background: var(--sp-theme-surface-soft, #0a1d36);
      }
      html[data-theme="dark"] body.is-logged-in .location-picker-check { background: rgba(145, 190, 255, 0.16); }

      html[data-theme="dark"] body.is-logged-in .host-event-team,
      html[data-theme="dark"] body.is-logged-in .host-team-member {
        border-color: rgba(176, 199, 236, 0.17);
        background: #10294e;
      }

      html[data-theme="dark"] body.is-logged-in .profile-event-preview-copy strong,
      html[data-theme="dark"] body.is-logged-in .profile-event-section > h4,
      html[data-theme="dark"] body.is-logged-in .host-event-team > strong,
      html[data-theme="dark"] body.is-logged-in .host-team-member {
        color: #f5f8ff;
      }

      html[data-theme="dark"] body.is-logged-in .profile-event-preview-copy span,
      html[data-theme="dark"] body.is-logged-in .profile-event-preview-copy small,
      html[data-theme="dark"] body.is-logged-in .profile-event-empty,
      html[data-theme="dark"] body.is-logged-in .host-event-team > p,
      html[data-theme="dark"] body.is-logged-in .host-team-member span small,
      html[data-theme="dark"] body.is-logged-in .event-studio-heading p {
        color: #f5f8ff;
      }

      html[data-theme="dark"] body.is-logged-in .event-studio-heading h2 {
        color: #f5f8ff;
      }

      html[data-theme="dark"] body.is-logged-in .event-studio-back {
        color: #9fb4d2;
        background: #10294e;
      }

      .profile-social-tabs {
        display: grid;
        gap: 6px;
        padding: 5px;
        border-radius: 14px;
        background: #eaf0f9;
      }

      .profile-social-tabs button {
        min-height: 38px;
        border: 0;
        border-radius: 10px;
        color: #52698f;
        background: transparent;
        font-size: 10px;
        font-weight: 700;
        cursor: pointer;
      }

      .profile-social-tabs button.active {
        color: var(--blue);
        background: #fff;
        box-shadow: 0 6px 16px rgba(16, 55, 114, 0.11);
      }

      .profile-social-tabs i {
        min-width: 18px;
        display: inline-grid;
        place-items: center;
        margin-left: 5px;
        padding: 2px 5px;
        border-radius: 999px;
        color: #fff;
        background: var(--blue);
        font-size: 8px;
        font-style: normal;
      }

      .profile-social-person {
        min-width: 0;
        display: grid;
        grid-template-columns: 58px minmax(0, 1fr) auto;
        align-items: center;
        gap: 12px;
      }

      .profile-social-avatar {
        width: 58px;
        height: 58px;
        border-radius: 15px;
        font-size: 11px;
      }

      .profile-social-copy strong {
        overflow: hidden;
        color: var(--ink);
        font-size: 14px;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .profile-social-copy span {
        margin-top: 3px;
        color: #52698f;
        font-size: 9px;
      }

      .profile-social-copy small {
        margin-top: 4px;
        color: #52698f;
        font-size: 8px;
      }

      .profile-social-actions {
        display: flex;
        align-items: center;
        gap: 7px;
      }

      .profile-social-actions button {
        min-height: 38px;
        padding: 0 14px;
        border: 0;
        border-radius: 11px;
        color: #fff;
        background: var(--blue);
        font-size: 9px;
        font-weight: 700;
        cursor: pointer;
      }

      .profile-social-actions button:disabled,
      .profile-social-actions button.connected {
        color: var(--blue);
        background: #edf4ff;
        cursor: default;
      }

      .profile-social-actions .profile-decline {
        color: #52698f;
        background: #edf1f7;
      }

      .profile-social-empty {
        margin: 0;
        color: #52698f;
        font-size: 11px;
        text-align: center;
      }

      .timeline-compose-card {
        position: fixed;
        z-index: 9;
        top: 50%;
        left: 50%;
        width: min(430px, calc(100vw - 32px));
        max-height: calc(100svh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
        overflow: hidden;
        display: flex;
        flex-direction: column;
        padding: 13px;
        border: 1px solid rgba(255, 255, 255, 0.82);
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.94);
        box-shadow: 0 16px 38px rgba(8, 34, 78, 0.22);
        backdrop-filter: blur(15px);
        transform: translate(-50%, -50%);
      }

      .timeline-compose-card[hidden] {
        display: none;
      }

      .timeline-heading-plus {
        width: 44px;
        height: 44px;
        flex: 0 0 auto;
        display: grid;
        place-items: center;
        padding: 0;
        border: 1px solid rgba(33, 103, 245, 0.18);
        border-radius: 50%;
        color: var(--blue);
        background: rgba(255, 255, 255, 0.92);
        box-shadow: 0 8px 20px rgba(25, 73, 165, 0.18);
        font-size: 31px;
        font-weight: 300;
        line-height: 1;
        cursor: pointer;
      }

      .timeline-heading-plus[hidden] {
        display: none;
      }

      .timeline-primary-actions {
        display: flex;
        align-items: center;
        gap: 9px;
      }

      .timeline-heading-history {
        min-height: 44px;
        padding: 0 14px;
        border: 1px solid rgba(33, 103, 245, 0.18);
        border-radius: 24px;
        color: var(--navy);
        background: rgba(255, 255, 255, 0.92);
        box-shadow: 0 8px 20px rgba(25, 73, 165, 0.14);
        font: inherit;
        font-size: 13px;
        font-weight: 800;
        cursor: pointer;
      }

      .timeline-heading-history[hidden] { display: none; }
      /* Timeline sections (phone-sized web): the same menu as the iPhone and iPad apps. Wider screens show them in the side column. */
      .timeline-sections { position: relative; display: none; }
      @media (max-width: 1100px) { body.is-logged-in .timeline-sections { display: inline-flex; } body.is-logged-in .timeline-heading-history { display: none !important; } body.is-logged-in .timeline-sections { order: 1; } body.is-logged-in .timeline-heading-plus { order: 2; } } /* as in the apps: search, sections, +; History is in the sections menu */
      .timeline-heading-sections { cursor: pointer; } /* look: the shared Timeline header surface (web/styles/social-buttons.css) */
      .timeline-heading-sections[hidden], .timeline-sections-menu[hidden] { display: none; }
      .timeline-sections-menu { position: absolute; z-index: 40; top: calc(100% + 8px); right: 0; min-width: 190px; display: flex; flex-direction: column; padding: 6px; border: 1px solid rgba(33,103,245,.14); border-radius: 16px; background: rgba(255,255,255,.98); box-shadow: 0 18px 40px rgba(8,34,78,.2); }
      .timeline-sections-menu button { min-height: 44px; padding: 0 14px; border: 0; border-radius: 11px; color: var(--navy); background: transparent; font: inherit; font-size: 15px; font-weight: 600; text-align: left; cursor: pointer; }
      .timeline-sections-menu button:hover, .timeline-sections-menu button:focus-visible { background: rgba(33,103,245,.08); outline: none; }
      .timeline-section-sheet { width: min(620px, calc(100vw - 24px)); max-height: calc(100svh - 48px); padding: 0; border: 0; border-radius: 24px; color: var(--navy); background: #fff; box-shadow: 0 30px 70px rgba(8,34,78,.3); }
      .timeline-section-sheet::backdrop { background: rgba(8,20,42,.45); }
      .timeline-section-sheet-header { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 8px; background: inherit; }
      .timeline-section-sheet-header h2 { margin: 0; font-size: 22px; }
      .timeline-section-sheet-header button { width: 42px; height: 42px; border: 0; border-radius: 21px; color: inherit; background: rgba(33,103,245,.08); font-size: 22px; cursor: pointer; }
      .timeline-section-sheet-body { padding: 4px 16px 18px; overflow-y: auto; }
      .timeline-section-sheet .timeline-map-event-group { display: flex; flex-direction: column; gap: 10px; padding: 0; border: 0; background: transparent; }
      .timeline-section-sheet .timeline-map-event-heading { display: none; }
      .timeline-section-sheet .timeline-map-upcoming-list, .timeline-section-sheet .timeline-map-open-offices { display: flex; flex-direction: column; gap: 10px; min-height: 0; padding: 0; border: 0; outline: 0; box-shadow: none; background: transparent; }
      .timeline-section-sheet .timeline-map-upcoming-event, .timeline-section-sheet .timeline-open-office { display: grid; grid-template-columns: 56px minmax(0,1fr); align-items: center; gap: 12px; min-height: 64px; padding: 4px; border: 0; color: inherit; background: transparent; font: inherit; text-align: left; cursor: pointer; }
      .timeline-section-sheet .timeline-open-office { grid-template-columns: minmax(0,1fr) auto; }
      .timeline-section-sheet .timeline-map-upcoming-visual { width: 56px; height: 56px; border-radius: 16px; background-color: #dce5f5; background-size: cover; background-position: center; }
      .timeline-section-sheet .timeline-map-upcoming-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
      .timeline-section-sheet .timeline-map-upcoming-copy strong { font-size: 16px; }
      .timeline-section-sheet .timeline-map-upcoming-copy small { color: #52698f; font-size: 13px; }
      .timeline-section-sheet .timeline-open-office .timeline-map-see-all { min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; color: #fff; background: #9b6cff; font: inherit; font-size: 15px; font-weight: 700; }
      .timeline-section-sheet .timeline-map-empty { margin: 4px 0; color: #52698f; font-size: 15px; }
      html[data-theme="dark"] .timeline-sections-menu { color: #f5f8ff; border-color: rgba(173,145,255,.44); background: rgba(25,35,57,.97); }
      html[data-theme="dark"] .timeline-sections-menu button { color: #f5f8ff; }
      html[data-theme="dark"] .timeline-section-sheet { color: #f5f8ff; background: #101b30; }
      html[data-theme="dark"] .timeline-section-sheet .timeline-map-upcoming-copy small, html[data-theme="dark"] .timeline-section-sheet .timeline-map-empty { color: #9fb4d2; }
      .timeline-heading-history:focus-visible { outline: 2px solid rgba(33,103,245,.55); outline-offset: 3px; }
      html[data-theme="dark"] body.is-logged-in .timeline-heading-history { color: #f5f8ff; border-color: rgba(173,145,255,.44); background: rgba(25,35,57,.94); }

      .timeline-history-dialog {
        width: min(660px, calc(100vw - 24px));
        max-width: none;
        max-height: min(92svh, 1100px);
        padding: 0;
        overflow: hidden;
        border: 1px solid rgba(255,255,255,.88);
        border-radius: 24px;
        color: var(--navy);
        background: rgba(247,249,255,.98);
        box-shadow: 0 24px 70px rgba(8,25,57,.35);
      }
      .timeline-history-dialog::backdrop { background: rgba(8,18,38,.56); backdrop-filter: blur(5px); }
      .timeline-history-shell { display:flex; flex-direction:column; height:min(92svh,1100px); max-height:min(92svh,1100px); min-height:0; }
      .timeline-history-header { display:flex; flex:0 0 auto; align-items:center; gap:16px; padding:20px 22px 12px; }
      .timeline-history-heading { min-width:0; flex:1; }
      .timeline-history-heading h2 { margin:0; font-size:22px; font-weight:800; }
      .timeline-history-heading p { margin:4px 0 0; color:#52698f; font-size:13px; }
      .timeline-history-close { width:42px; height:42px; border:1px solid rgba(33,103,245,.18); border-radius:50%; color:var(--navy); background:#fff; font-size:26px; cursor:pointer; }
      .timeline-history-filters { display:flex; flex:0 0 auto; align-items:flex-end; flex-wrap:nowrap; gap:8px; min-height:64px; overflow-x:auto; overflow-y:hidden; padding:4px 20px 14px; }
      .timeline-history-filter { flex:0 0 auto; min-height:38px; padding:0 14px; border:1px solid rgba(33,103,245,.18); border-radius:22px; color:#52698f; background:#fff; font:inherit; font-size:13px; font-weight:700; cursor:pointer; }
      .timeline-history-filter[aria-pressed="true"] { color:#174fc2; border-color:#2167f5; background:#e8f0ff; }
      .spossity-assistant[data-phase="listening"] .companion-portrait{filter:drop-shadow(0 0 3px #843cff)}
      .companion-portrait{display:inline-block;flex:0 0 72px;width:72px;height:48px;border-radius:0;overflow:hidden}
      @keyframes companion-breathe { 0%,100%{opacity:1} 50%{opacity:.92} }
      @keyframes companion-listen { 0%,100%{opacity:1;filter:brightness(1)} 50%{opacity:.72;filter:brightness(1.22)} }
      @keyframes companion-think { 0%,100%{filter:brightness(1)} 50%{filter:brightness(1.35)} }
      @keyframes companion-speak { 0%,100%{opacity:1;filter:brightness(1.15)} 50%{opacity:.72;filter:brightness(1)} }
      .spossity-assistant .companion-portrait { animation:companion-breathe 4.8s ease-in-out infinite; }
      .spossity-assistant[data-phase="listening"] .companion-portrait { animation:companion-listen 1.7s ease-in-out infinite; }
      .spossity-assistant:is([data-phase="starting"],[data-phase="processing"],[data-phase="thinking"]) .companion-portrait { animation:companion-think 1.1s ease-in-out infinite; }
      .spossity-assistant[data-phase="speaking"] .companion-portrait { animation:companion-speak .64s ease-in-out infinite; }
      .spossity-assistant[data-phase="error"] .companion-portrait { animation:none; }
      @media (prefers-reduced-motion:reduce) { .spossity-assistant .companion-portrait { animation:none!important;opacity:1;filter:brightness(1.08); } }
      .session-history-filters { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:16px 0; }
      .session-history-filters label { display:flex; flex-direction:column; gap:6px; min-width:0; color:var(--ink); font-size:14px; font-weight:700; }
      .session-history-filters .timeline-history-calendar-select { min-width:0; min-height:44px; padding:10px 24px 10px 12px; background:linear-gradient(135deg,#faf8ff,#e6efff); border:2px solid white; border-radius:22px; color:#0b285b; }
      .session-history-filters select:focus-visible { outline:2px solid #843cff; outline-offset:2px; }
      .session-history-note { font-size:16px!important; line-height:1.5; color:#52698f; }
      html[data-theme="dark"] .session-history-filters select { background:#17243c; color:#f5f8ff; border-color:#7052a0; }
      .timeline-history-calendar-control { display:block; flex:0 0 auto; }
      .timeline-history-calendar-field { position:relative; display:block; width:150px; }
      .timeline-history-calendar-field[data-calendar-select="year"] { width:128px; }
      .timeline-history-calendar-select { appearance:none; -webkit-appearance:none; display:block; width:100%; min-height:42px; padding:0 40px 0 15px; border:1px solid rgba(33,103,245,.2); border-radius:24px; color:#52698f; background:#fff; font:inherit; font-size:13px; font-weight:700; text-transform:none; letter-spacing:normal; cursor:pointer; }
      .timeline-history-calendar-field::after { content:""; position:absolute; top:50%; right:16px; width:9px; height:9px; border-right:2px solid #456080; border-bottom:2px solid #456080; border-radius:1px; transform:translateY(-70%) rotate(45deg); pointer-events:none; }
      .timeline-history-calendar-select:focus-visible { outline:2px solid #2167f5; outline-offset:2px; }
      .timeline-history-calendar-select.has-value { color:#174fc2; border-color:#2167f5; background:#e8f0ff; }
      .timeline-history-calendar-field.has-value::after { border-color:#2167f5; }
      .timeline-history-list { display:grid; flex:1 1 auto; align-content:start; gap:18px; min-height:0; overflow:auto; overscroll-behavior:contain; padding:4px 20px 20px; }
      .timeline-history-list .timeline-post { display:flex; flex-direction:column; }
      .timeline-history-list .timeline-post-footer {
        position:relative !important;
        inset:auto !important;
        z-index:1;
        display:block !important;
        min-height:0;
        margin:0;
        padding:12px !important;
        border:0;
        background:transparent;
      }
      .timeline-history-list .timeline-actions { position:static !important; display:grid; }
      .timeline-history-list .timeline-action { display:inline-flex; visibility:visible; opacity:1; }
      .timeline-history-empty { padding:28px 12px; color:#52698f; text-align:center; }
      .timeline-history-more { width:100%; min-height:44px; margin:4px 0 12px; border:1px solid rgba(33,103,245,.2); border-radius:14px; color:#174fc2; background:#fff; font:inherit; font-weight:800; cursor:pointer; }
      .timeline-history-dialog[data-theme="dark"] { color:#f5f8ff; border-color:rgba(173,145,255,.5); background:#111d35; }
      .timeline-history-dialog[data-theme="dark"] .timeline-history-heading p,
      .timeline-history-dialog[data-theme="dark"] .timeline-history-empty { color:#9fb4d2; }
      .timeline-history-dialog[data-theme="dark"] .timeline-history-close,
      .timeline-history-dialog[data-theme="dark"] .timeline-history-filter,
      .timeline-history-dialog[data-theme="dark"] .timeline-history-calendar-select,
      .timeline-history-dialog[data-theme="dark"] .timeline-history-more { color:#f5f8ff; border-color:rgba(173,145,255,.34); background:#1a2944; }
      .timeline-history-dialog[data-theme="dark"] .timeline-history-filter[aria-pressed="true"] { background:#312657; border-color:#a78bfa; }
      .timeline-history-dialog[data-theme="dark"] .timeline-history-calendar-select.has-value { color:#f5f8ff; background:#312657; border-color:#a78bfa; }
      .timeline-history-dialog[data-theme="dark"] .timeline-history-calendar-select:focus-visible { outline-color:#a78bfa; }
      .timeline-history-dialog[data-theme="dark"] .timeline-history-calendar-field::after { border-color:#f4f0ff; }
      .timeline-history-dialog[data-theme="dark"] .timeline-history-calendar-field.has-value::after { border-color:#a78bfa; }
      @media (max-width: 600px) {
        .timeline-history-header { padding:16px 14px 10px; }
        .timeline-history-filters { flex-wrap:wrap; row-gap:10px; overflow:visible; padding-right:14px; padding-left:14px; }
        .timeline-history-list { padding-right:12px; padding-left:12px; }
        .timeline-history-list { gap:16px; }
      }

      .timeline-heading-plus:focus-visible {
        outline: 2px solid rgba(33, 103, 245, 0.55);
        outline-offset: 3px;
      }

      .timeline-heading-actions {
        position: relative;
        display: grid;
        justify-items: center;
        gap: 5px;
      }

      .timeline-heading-keep-ups,
      .timeline-mobile-map-back {
        display: none;
      }

      .profile-back-button {
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 0 13px;
        border: 1px solid rgba(33, 103, 245, 0.16);
        border-radius: 12px;
        color: var(--blue);
        background: rgba(255, 255, 255, 0.92);
        box-shadow: 0 8px 20px rgba(25, 73, 165, 0.14);
        font-size: 10px;
        font-weight: 700;
        cursor: pointer;
      }

      .profile-back-button svg {
        width: 16px;
        height: 16px;
      }

      .profile-back-button[hidden] {
        display: none;
      }

      .timeline-keep-up {
        min-height: 31px;
        padding: 0 11px;
        border: 1px solid rgba(33, 103, 245, 0.22);
        border-radius: 999px;
        color: var(--blue);
        background: #edf4ff;
        font-size: 9px;
        font-weight: 700;
        cursor: pointer;
      }

      .timeline-keep-up[aria-pressed="true"] {
        color: #fff;
        border-color: var(--blue);
        background: var(--blue);
      }

      .profile-settings-button {
        min-height: 42px;
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 0 14px;
        border: 1px solid rgba(29, 75, 153, 0.13);
        border-radius: 12px;
        color: var(--blue);
        background: rgba(255, 255, 255, 0.92);
        box-shadow: 0 8px 20px rgba(25, 73, 165, 0.14);
        font-size: 10px;
        font-weight: 700;
        cursor: pointer;
      }

      .profile-settings-button svg {
        width: 17px;
        height: 17px;
      }

      .profile-settings-button[hidden] {
        display: none;
      }

      .profile-settings-panel {
        position: absolute;
        z-index: 9;
        top: 102px;
        right: 18px;
        width: min(360px, calc(100% - 36px));
        max-height: calc(100% - 122px);
        overflow-y: auto;
        padding: 14px;
        border: 1px solid rgba(255, 255, 255, 0.86);
        border-radius: 17px;
        background: rgba(255, 255, 255, 0.94);
        box-shadow: 0 16px 38px rgba(8, 34, 78, 0.22);
        backdrop-filter: blur(16px);
      }

      .profile-settings-panel.profile-invite-detail-panel {
        width: min(560px, calc(100% - 36px));
      }

      .profile-settings-panel[hidden] {
        display: none;
      }

      .profile-edit-form { display: grid; gap: 12px; }
      .profile-edit-form select { width: 100%; min-height: 38px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface, #f4f8ff); color: var(--ink); font: inherit; }
      .profile-edit-form fieldset { border: 0; margin: 0; padding: 0; }
      .profile-edit-form fieldset label { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-right: 16px; }
      .profile-settings-account {
        display: grid;
        gap: 3px;
        margin-bottom: 12px;
        padding: 2px 3px 11px;
        border-bottom: 1px solid var(--line);
      }

      .profile-settings-account strong {
        color: var(--ink);
        font-size: 12px;
      }

      .profile-settings-account span {
        overflow: hidden;
        color: #52698f;
        font-size: 9px;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .profile-location-setting {
        display: grid;
        gap: 8px;
        margin-bottom: 12px;
        padding: 3px 3px 12px;
        border-bottom: 1px solid var(--line);
      }

      .profile-location-setting > span {
        color: var(--ink);
        font-size: 11px;
        font-weight: 700;
      }

      .profile-location-switch {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        cursor: pointer;
      }

      .profile-location-switch small {
        color: #52698f;
        font-size: 9px;
        line-height: 1.35;
      }

      .profile-location-switch input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
      }

      .profile-location-toggle {
        position: relative;
        width: 40px;
        height: 23px;
        flex: 0 0 auto;
        border-radius: 999px;
        background: #cbd6e7;
        transition: background 160ms ease;
      }

      .profile-location-toggle::after {
        content: "";
        position: absolute;
        top: 3px;
        left: 3px;
        width: 17px;
        height: 17px;
        border-radius: 50%;
        background: #fff;
        box-shadow: 0 2px 7px rgba(8, 35, 80, 0.2);
        transition: transform var(--sp-dur-glide) var(--sp-ease-glide);
      }

      .profile-location-switch input:checked + .profile-location-toggle {
        background: var(--blue);
      }

      .profile-location-switch input:checked + .profile-location-toggle::after {
        transform: translateX(17px);
      }

      .profile-location-note {
        margin: 0;
        color: #52698f;
        font-size: 8px;
        line-height: 1.4;
      }

      .profile-family-permissions {
        display: grid;
        gap: 9px;
        margin-bottom: 12px;
        padding: 3px 3px 12px;
        border-bottom: 1px solid var(--line);
      }

      .profile-family-permissions > summary { cursor: pointer; padding: 10px 0; color: var(--ink); font-size: 11px; font-weight: 700; }
      .profile-family-location-list { display: grid; gap: 12px; padding: 6px 0; }
      .profile-family-location-person { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
      .profile-family-location-person > strong { color: var(--ink); font-size: 9px; overflow-wrap: anywhere; }
      .profile-family-location-person .profile-location-switch { min-height: 44px; position: relative; }
      .profile-family-location-person input:focus-visible + .profile-location-toggle { outline: 2px solid var(--blue); outline-offset: 3px; }
      .profile-family-location-person input:disabled + .profile-location-toggle { opacity: .55; }
      html[data-theme="dark"] .profile-family-permissions > summary,
      html[data-theme="dark"] .profile-family-location-person > strong { color: #f5f8ff; }
      .profile-family-permissions > strong {
        color: var(--ink);
        font-size: 11px;
      }

      .profile-family-permissions > p {
        margin: -4px 0 0;
        color: #52698f;
        font-size: 8px;
      }

      .profile-permission-person {
        display: grid;
        gap: 6px;
      }

      .profile-permission-person > span {
        color: #52698f;
        font-size: 9px;
        font-weight: 700;
      }

      .profile-permission-person > div {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
      }

      .profile-permission-person button {
        min-height: 27px;
        padding: 0 8px;
        border: 1px solid rgba(33, 103, 245, 0.13);
        border-radius: 9px;
        color: #52698f;
        background: #f4f7fc;
        font-size: 8px;
        font-weight: 700;
        cursor: pointer;
      }

      .profile-permission-person button[aria-pressed="true"] {
        color: #fff;
        border-color: var(--blue);
        background: var(--blue);
      }

      .profile-permission-person button:disabled {
        opacity: 0.58;
        cursor: wait;
      }

      .profile-sign-out {
        width: 100%;
        min-height: 43px;
        border: 1px solid rgba(211, 63, 91, 0.16);
        border-radius: 12px;
        color: #d33f5b;
        background: #fff2f5;
        font-size: 11px;
        font-weight: 700;
        cursor: pointer;
      }

      .timeline-composer {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        gap: 10px;
      }

      .timeline-composer[hidden] {
        display: none;
      }

      dialog.post-location-consent { box-sizing: border-box; width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); margin: auto; padding: 24px !important; border: 1px solid rgba(255,255,255,.85); border-radius: 24px; overflow: auto; color: #0b285b; font-family: inherit; }
      dialog.post-location-consent::backdrop { background: rgba(12,29,55,.38); }
      dialog.post-location-consent h3 { margin: 0 0 14px; font-size: 20px; line-height: 1.3; }
      dialog.post-location-consent p { margin: 0 0 20px; font-size: 15px; line-height: 1.55; }
      dialog.post-location-consent button { min-height: 44px; padding: 10px 20px; margin: 0 10px 0 0; border: 2px solid rgba(255,255,255,.9); border-radius: 18px; background: #f4f2fb; color: #0b285b; font: inherit; font-weight: 700; cursor: pointer; }
      dialog.post-location-consent button:last-child { border-color: #b18af4; }
      dialog.post-location-consent button:focus-visible { outline: 2px solid #8033ff; outline-offset: 3px; }
      html[data-theme="dark"] dialog.post-location-consent button { background: #14223a; color: #f5f8ff; border-color: #8d65d1; }
      .timeline-composer-header { display: flex; align-items: center; gap: 14px; }
      .timeline-location-label { margin-right: auto; font-weight: 700; }
      .home-visit-arrival { margin: 4px 0 0; color: #7836ef; font-weight: 800; font-size: 13px; }
      .visit-pill { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; max-width: min(360px, calc(100vw - 32px)); min-height: 44px; padding: 0 18px; border-radius: 22px; border: 1.5px solid rgba(255,255,255,.95); background: rgba(255,255,255,.72); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 12px 28px rgba(11,40,91,.18); color: #0b285b; font: inherit; font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
      .visit-pill[hidden] { display: none; }
      html[data-theme="dark"] .visit-pill { border-color: rgba(143,178,255,.22); background: rgba(20,34,58,.78); color: #f5f8ff; }
      @media (min-width: 1101px) { .visit-pill { bottom: 28px; } }
      html[data-theme="dark"] .home-visit-arrival { color: #b17aff; }
      .timeline-location-label.timeline-appreshiat-label { margin-right: 0; margin-left: 8px; }
      .timeline-location-switch { position: relative; flex: 0 0 52px; width: 52px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
      .timeline-location-switch::before { content: ""; position: absolute; inset: 6px 0; border-radius: 999px; background: #b6b3b6; }
      .timeline-location-switch span { position: absolute; left: 3px; top: 9px; width: 26px; height: 26px; border-radius: 50%; background: #fff; }
      .timeline-location-switch[aria-checked="true"]::before { background: var(--sp-color-violet, #8033ff); }
      .timeline-location-switch[aria-checked="true"] span { left: 23px; }
      .timeline-location-switch:focus-visible { outline: 2px solid var(--sp-color-violet, #8033ff); outline-offset: 2px; border-radius: 999px; }
      .timeline-composer-close { width: 32px; height: 32px; border: 1px solid rgba(33,103,245,.2); border-radius: 50%; background: #edf4ff; color: #0b285b; font-family: inherit; font-size: 23px; font-weight: 700; line-height: 1; cursor: pointer; }

      .timeline-composer textarea {
        width: 100%;
        min-height: 92px;
        max-height: min(32svh, 180px);
        resize: vertical;
        padding: 11px 12px;
        border: 1px solid rgba(33, 103, 245, 0.18);
        border-radius: 14px;
        color: var(--ink);
        background: #f8faff;
        font: inherit;
        font-size: 11px;
        line-height: 1.4;
        outline: none;
      }

      .timeline-composer textarea:focus {
        border-color: rgba(33, 103, 245, 0.5);
        box-shadow: 0 0 0 3px rgba(33, 103, 245, 0.1);
      }

      .timeline-composer-media-preview {
        position: relative;
        min-height: 0;
        max-height: min(40svh, 176px);
        flex: 0 1 auto;
        display: grid;
        gap: 8px;
        padding: 8px;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        border: 1px solid rgba(33, 103, 245, 0.14);
        border-radius: 14px;
        background: #f3f7ff;
      }

      .timeline-composer-media-preview[hidden] {
        display: none;
      }

      .timeline-composer-media-frame {
        position: relative;
        width: 92px;
        height: 62px;
        overflow: hidden;
        border-radius: 10px;
        background: #dfe8f7;
      }

      .timeline-composer-media-list { display: grid; gap: 8px; }
      .timeline-composer-media-item {
        position: relative;
        min-height: 72px;
        display: grid;
        grid-template-columns: 92px minmax(0, 1fr) 34px;
        align-items: center;
        gap: 10px;
        padding: 8px;
        border-radius: 10px;
        background: rgba(255,255,255,.58);
      }

      .timeline-composer-media-frame img,
      .timeline-composer-media-frame video {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
      }

      .timeline-composer-media-frame [hidden] {
        display: none;
      }

      .timeline-composer-media-copy {
        min-width: 0;
        display: grid;
        gap: 3px;
      }

      .timeline-composer-media-copy strong,
      .timeline-composer-media-copy small {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .timeline-composer-media-copy strong {
        color: var(--ink);
        font-size: 10px;
      }

      .timeline-composer-media-copy small {
        color: #52698f;
        font-size: 8px;
        text-transform: capitalize;
      }

      .timeline-composer-media-remove {
        width: 34px;
        height: 34px;
        display: grid;
        place-items: center;
        padding: 0;
        border: 0;
        border-radius: 10px;
        color: #0b285b;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 2px 8px rgba(10, 32, 70, 0.28);
        cursor: pointer;
        touch-action: manipulation;
      }

      .timeline-composer-media-remove svg { width: 17px; height: 17px; }

      .timeline-composer-footer {
        display: flex;
        align-items: center;
        gap: 8px;
        position: relative;
        z-index: 2;
      }

      .timeline-composer-choice { position: relative; min-width: 0; }

      .timeline-composer-media-actions {
        display: flex;
        align-items: center;
        gap: 6px;
      }

      .timeline-composer-media-button {
        min-height: 34px;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 0 10px;
        border: 1px solid rgba(33, 103, 245, 0.14);
        border-radius: 11px;
        color: var(--blue);
        background: #edf4ff;
        font-size: 9px;
        font-weight: 700;
        cursor: pointer;
      }

      .timeline-composer-footer > .timeline-composer-choice { flex: 1 1 0; }
      .timeline-composer-footer > .timeline-composer-choice > .timeline-composer-media-button { width: 100%; justify-content: center; white-space: nowrap; }

      .timeline-composer-media-button svg {
        width: 16px;
        height: 16px;
        flex: 0 0 auto;
      }

      .timeline-composer-media-button:hover,
      .timeline-composer-media-button:focus-visible {
        border-color: rgba(33, 103, 245, 0.38);
        background: #e3edff;
      }

      .timeline-composer-actions {
        display: flex;
        flex: 1 1 0;
      }

      .timeline-composer-actions button { width: 100%; }

      .timeline-composer-actions button {
        min-height: 34px;
        padding: 0 14px;
        border: 0;
        border-radius: 11px;
        color: #52698f;
        background: #edf2f9;
        font-size: 9px;
        font-weight: 700;
        cursor: pointer;
      }

      .timeline-composer-actions button[type="submit"] {
        color: #fff;
        background: var(--blue);
      }

      .timeline-user-post .timeline-post-footer {
        border-top: 1px solid var(--line);
      }

      .timeline-user-media {
        width: 100%;
        max-height: 420px;
        display: block;
        object-fit: cover;
        background: #07152e;
      }

      @media (max-width: 1100px) {
        .map-page-header {
          top: 10px;
          right: 10px;
          left: 10px;
          min-height: 66px;
          gap: 10px;
          padding: 11px 12px;
          border-radius: 17px;
        }

        .map-page-header h2,
        .map-page-header h4,
        .friends-map > .live-view-header h2 {
          font-size: 29px;
        }

        .persistent-city-map:not(.live-map-mode) .friends-map-label {
          top: 88px;
        }

        .persistent-city-map:not(.live-map-mode) .friends-map-search {
          top: 128px;
        }

        .timeline-view,
        .me-view {
          width: auto;
          min-height: 0;
          margin: 0;
          padding: 0;
        }

        .timeline-view > .persistent-city-map,
        .me-view > .persistent-city-map {
          margin: 0;
        }

        .me-view > .persistent-city-map .friends-map {
          height: calc(100svh - 197px);
          min-height: 520px;
        }

        .timeline-view > .persistent-city-map .friends-map {
          height: clamp(210px, 27svh, 235px);
          min-height: 210px;
          max-height: 235px;
          border-bottom-right-radius: 20px;
          border-bottom-left-radius: 20px;
        }

        .timeline-compose-card {
          position: fixed;
          top: calc(90px + env(safe-area-inset-top));
          right: 14px;
          left: 14px;
          width: auto;
        max-height: calc(100svh - 110px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
          overflow: hidden;
          padding: 11px;
          border-radius: 17px;
          transform: none;
        }

        .persistent-city-map.composer-active .map-page-header {
          visibility: visible;
          pointer-events: auto;
        }

        .persistent-city-map.composer-active .timeline-compose-card {
          top: calc(90px + env(safe-area-inset-top));
          transform: none;
        }

        .timeline-heading-plus {
          width: 40px;
          height: 40px;
          font-size: 28px;
        }

        .timeline-heading-keep-ups:not([hidden]) {
          min-height: 24px;
          display: inline-flex;
          align-items: center;
          justify-content: center;
          padding: 0 9px;
          border: 1px solid rgba(33, 103, 245, 0.18);
          border-radius: 999px;
          color: var(--blue);
          background: rgba(255, 255, 255, 0.92);
          box-shadow: 0 6px 16px rgba(25, 73, 165, 0.14);
          font-size: 8px;
          font-weight: 700;
          cursor: pointer;
        }

        .profile-settings-button {
          min-height: 40px;
          padding: 0 11px;
        }

        .profile-settings-panel {
          top: 86px;
          right: 10px;
          bottom: calc(92px + env(safe-area-inset-bottom));
          width: min(330px, calc(100% - 20px));
          max-height: none;
        }

        .profile-settings-panel.profile-invite-detail-panel {
          left: 10px;
          width: auto;
        }

        .profile-menu-panel {
          top: 86px;
          right: 10px;
          bottom: calc(92px + env(safe-area-inset-bottom));
          width: min(330px, calc(100% - 20px));
          border-radius: 18px;
        }

        body.is-logged-in .home-profile-popover {
          position: fixed;
          z-index: 70;
          inset: 0;
        }

        body.is-logged-in .home-profile-popover[hidden] {
          display: none;
        }

        body.is-logged-in .home-profile-backdrop {
          position: absolute;
          inset: 0;
          border: 0;
          background: rgba(8, 28, 62, 0.08);
          backdrop-filter: blur(2px);
        }

        body.is-logged-in .home-profile-popover-content {
          position: absolute;
          top: auto;
          right: 10px;
          bottom: calc(88px + env(safe-area-inset-bottom));
          left: 10px;
          max-height: calc(100svh - 112px - env(safe-area-inset-bottom));
        }

        body.is-logged-in .home-profile-popover-content .profile-menu-panel,
        body.is-logged-in .home-profile-popover-content .profile-settings-panel {
          position: static;
          width: 100%;
          height: auto;
          max-height: 100%;
          border-radius: 18px;
        }

        .profile-summary-card {
          top: 86px;
          left: 10px;
          width: calc(100% - 20px);
          padding: 9px 11px;
        }

        .me-view .friends-map-search {
          top: 166px;
          right: 10px;
          left: 10px;
          width: auto;
        }

        .me-view > .persistent-city-map:not(.live-map-mode) .friends-map-search {
          top: 166px;
        }

        .profile-social-panel {
          right: 10px;
          bottom: calc(92px + env(safe-area-inset-bottom));
          left: 10px;
          grid-template-columns: 1fr;
          gap: 9px;
          padding: 10px;
          border-radius: 18px;
        }

        .profile-social-tabs {
          grid-template-columns: repeat(3, minmax(0, 1fr));
          gap: 4px;
        }

        .profile-social-person {
          grid-template-columns: 48px minmax(0, 1fr);
          gap: 9px;
        }

        .profile-social-avatar {
          width: 48px;
          height: 48px;
          border-radius: 13px;
        }

        .profile-social-actions {
          grid-column: 1 / -1;
          display: grid;
          grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .profile-social-actions button:only-child {
          grid-column: 1 / -1;
        }

        .timeline-keep-up {
          min-height: 29px;
          padding: 0 9px;
          font-size: 8px;
        }

        .timeline-composer textarea {
          min-height: 76px;
        }

        .timeline-composer-footer {
          align-items: flex-end;
        }

        /* Phone width keeps the words (Media, SpossityCam), as in the apps. */
        .timeline-composer-media-button {
          justify-content: center;
        }

        .timeline-composer-media-preview {
          grid-template-columns: minmax(0, 1fr);
          max-height: clamp(72px, calc(100svh - 265px), 164px);
        }

        .timeline-composer-media-frame {
          width: 72px;
          height: 56px;
        }
      }

      @media (max-height: 500px) {
        .timeline-compose-card { max-height: calc(100svh - 16px); }
        .timeline-composer textarea { min-height: 56px; }
        .timeline-composer-media-preview { max-height: 72px; }
        .timeline-composer-footer { gap: 6px; }
      }

      /* Authentication overlays the current landing page without a second template. */
      body.account-open {
        overflow: hidden;
      }

      .account-screen {
        position: fixed;
        z-index: 100;
        inset: 0;
        display: grid;
        place-items: center;
        padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
        background: transparent;
      }

      .account-screen[hidden] {
        display: none;
      }

      .account-dialog {
        position: relative;
        width: min(560px, 100%);
        min-width: 0;
        max-height: 100%;
        overflow-y: auto;
        overscroll-behavior: contain;
        border: 1px solid rgba(255, 255, 255, 0.86);
        border-radius: 28px;
        background: #fff;
        box-shadow: 0 28px 80px rgba(8, 35, 80, 0.22);
      }

      .account-header {
        position: sticky;
        z-index: 5;
        top: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        padding: 20px 24px 12px;
        background: inherit;
      }

      .account-wordmark {
        width: 170px;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
      }

      .account-wordmark img {
        display: block;
        width: 100%;
        height: auto;
        mix-blend-mode: multiply;
      }

      .account-close {
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        display: grid;
        place-items: center;
        padding: 0;
        border: 1px solid rgba(29, 75, 153, 0.12);
        border-radius: 50%;
        color: #52698f;
        background: rgba(255, 255, 255, 0.88);
        box-shadow: 0 8px 24px rgba(8, 35, 80, 0.12);
        font-size: 24px;
        line-height: 1;
        cursor: pointer;
      }

      .account-card {
        position: relative;
        z-index: 3;
        width: 100%;
        min-width: 0;
        margin: 0;
        padding: 12px 24px 24px;
      }

      .account-card > p,
      .account-card h2 {
        margin: 0;
      }

      .account-card > p {
        color: #52698f;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.13em;
        text-transform: uppercase;
      }

      .account-card h2 {
        margin-top: 6px;
        color: var(--ink);
        font-size: clamp(32px, 3.2vw, 46px);
        font-weight: 700;
        letter-spacing: -0.06em;
        line-height: 0.98;
      }

      .account-card h2 span {
        color: var(--blue);
      }

      .account-fields {
        display: grid;
        gap: 14px;
        margin-top: 28px;
      }

      .account-name-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
      }

      .account-address-row {
        grid-template-columns: minmax(0, 1.45fr) minmax(112px, 0.55fr);
      }

      .account-step[hidden] {
        display: none;
      }

      .account-field {
        display: grid;
        gap: 7px;
      }

      .account-field > span,
      .account-field > label {
        color: #52698f;
        font-size: 11px;
        font-weight: 700;
      }

      .account-field :is(input, select) {
        width: 100%;
        height: 50px;
        padding: 0 15px;
        border: 1px solid rgba(29, 75, 153, 0.14);
        border-radius: 14px;
        color: var(--ink);
        background: rgba(247, 250, 255, 0.92);
        font: inherit;
        font-size: 14px;
        outline: none;
        -webkit-user-select: text !important;
        user-select: text !important;
        touch-action: manipulation;
        transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
      }

      .account-field input::placeholder {
        color: #52698f;
      }

      .account-field :is(input, select):focus {
        border-color: rgba(33, 103, 245, 0.4);
        background: #fff;
        box-shadow: 0 0 0 4px rgba(33, 103, 245, 0.08);
      }

      /* Month and year of birth: a month list and a year box side by side (web/signup-form.js). */
      .account-birth-control { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 10px; }
      .account-birth-control select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, #8a6a2f 50%), linear-gradient(135deg, #8a6a2f 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 34px; }
      /* Email confirmation (step 4): the code box, the status line and the two small links. */
      .account-confirm-intro { margin: 0 2px 4px; color: #0b285b; font-size: 13px; line-height: 1.45; }
      .account-confirm-intro strong { overflow-wrap: anywhere; }
      .account-code-input { font-size: 22px !important; font-weight: 800; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
      .account-confirm-status { min-height: 1em; margin: 0 2px; color: #1f7a4d; font-size: 11px; font-weight: 700; }
      .account-confirm-links { display: flex; gap: 8px; }
      .account-confirm-links .auth-switch { margin-top: 0; }
      .account-confirm-change[hidden], .account-confirm-signout[hidden] { display: none; }
      html[data-theme="dark"] .account-confirm-intro { color: #f5f8ff; }

      .account-password-note {
        margin: -2px 2px 0;
        color: #52698f;
        font-size: 10px;
      }

      .account-handle-control { position: relative; }
      .account-handle-control > span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; }
      .account-field .account-handle-control input { padding-left: 36px; }
      .account-password-control {
        position: relative;
      }

      .account-password-control input {
        padding-right: 50px;
      }

      .account-password-toggle {
        position: absolute;
        right: 5px;
        bottom: 5px;
        width: 40px;
        height: 40px;
        display: grid;
        place-items: center;
        padding: 0;
        border: 0;
        border-radius: 11px;
        color: #52698f;
        background: transparent;
        cursor: pointer;
      }

      .account-password-toggle:hover,
      .account-password-toggle:focus-visible,
      .account-password-toggle[aria-pressed="true"] {
        color: var(--blue);
        background: rgba(33, 103, 245, 0.07);
      }

      .account-password-toggle svg {
        width: 20px;
        height: 20px;
      }

      .account-password-toggle .password-slash {
        display: none;
      }

      .account-password-toggle[aria-pressed="true"] .password-slash {
        display: block;
      }

      .account-consent-summary {
        display: grid;
        gap: 9px;
        padding: 12px;
        border: 1px solid rgba(33, 103, 245, 0.16);
        border-radius: 16px;
        background: #f5f8ff;
      }

      .account-consent-preview {
        width: 100%;
        min-height: 58px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 12px;
        padding: 11px 13px;
        border: 1px solid rgba(33, 103, 245, 0.18);
        border-radius: 13px;
        color: var(--ink);
        background: #fff;
        text-align: left;
        cursor: pointer;
      }

      .account-consent-preview strong,
      .account-consent-preview small {
        display: block;
      }

      .account-consent-preview strong {
        font-size: 13px;
      }

      .account-consent-preview small {
        margin-top: 3px;
        color: #52698f;
        font-size: 10px;
        line-height: 1.35;
      }

      .account-consent-preview > b {
        color: var(--blue);
        font-size: 24px;
        font-weight: 500;
      }

      .account-consent-summary.is-accepted {
        border-color: rgba(16, 164, 112, 0.28);
        background: #f0fbf7;
      }

      .account-consent-summary.is-accepted .account-consent-preview small {
        color: #08784f;
        font-weight: 700;
      }

      .account-consent-record {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
      }

      .account-consent-modal {
        position: fixed;
        z-index: 140;
        inset: 0;
        display: grid;
        place-items: center;
        padding: 24px;
      }

      .account-consent-modal[hidden] {
        display: none !important;
      }

      .account-consent-backdrop {
        position: absolute;
        inset: 0;
        border: 0;
        background: rgba(3, 14, 34, 0.6);
        backdrop-filter: blur(6px);
        cursor: pointer;
      }

      .account-consent-sheet {
        position: relative;
        width: min(620px, 100%);
        max-height: min(760px, calc(100dvh - 48px));
        display: grid;
        grid-template-rows: auto minmax(0, 1fr) auto;
        overflow: hidden;
        border: 1px solid rgba(29, 75, 153, 0.14);
        border-radius: 28px;
        color: var(--ink);
        background: #fff;
        box-shadow: 0 28px 80px rgba(3, 20, 51, 0.3);
      }

      .account-consent-header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 18px;
        padding: 22px 24px 18px;
        border-bottom: 1px solid var(--line);
      }

      .account-consent-header p,
      .account-consent-header h3,
      .account-consent-body p,
      .account-consent-body h4 {
        margin: 0;
      }

      .account-consent-header p {
        color: #52698f;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
      }

      .account-consent-header h3 {
        margin-top: 5px;
        font-size: 28px;
        letter-spacing: -0.04em;
      }

      .account-consent-header h3 span {
        color: var(--blue);
      }

      .account-consent-close {
        width: 42px;
        height: 42px;
        flex: 0 0 auto;
        display: grid;
        place-items: center;
        padding: 0;
        border: 1px solid var(--line);
        border-radius: 50%;
        color: #52698f;
        background: #f6f9fe;
        font-size: 24px;
        line-height: 1;
        cursor: pointer;
      }

      .account-consent-body {
        display: grid;
        gap: 15px;
        overflow-y: auto;
        padding: 22px 24px;
        color: #52698f;
        font-size: 16px;
        line-height: 1.55;
      }

      .account-consent-body > p:first-child {
        color: var(--ink);
        font-weight: 700;
      }

      .account-consent-dignity {
        display: grid;
        gap: 7px;
        padding: 15px 16px;
        border-radius: 15px;
        background: #f5f8ff;
      }

      .account-consent-dignity h4 {
        color: var(--ink);
        font-size: 17px;
      }

      .account-consent-choice {
        display: grid;
        grid-template-columns: 22px minmax(0, 1fr);
        align-items: start;
        gap: 11px;
        padding: 13px 14px;
        border: 1px solid rgba(29, 75, 153, 0.14);
        border-radius: 14px;
        color: #52698f;
        background: #fff;
        font-size: 15px;
        font-weight: 600;
        line-height: 1.45;
        cursor: pointer;
      }

      .account-consent-choice input {
        width: 20px;
        height: 20px;
        margin: 1px 0 0;
        accent-color: var(--blue);
      }

      .account-consent-guardian {
        display: grid;
        gap: 4px;
        padding: 14px 15px;
        border: 1px solid rgba(16, 164, 112, 0.2);
        border-radius: 14px;
        color: #52698f;
        background: #f0fbf7;
      }

      .account-consent-guardian[hidden] {
        display: none;
      }

      .account-consent-guardian strong,
      .account-consent-guardian span {
        display: block;
      }

      .account-consent-guardian strong {
        color: #08784f;
        font-size: 15px;
      }

      .account-consent-guardian span {
        font-size: 14px;
        line-height: 1.45;
      }

      .account-age-sheet {
        width: min(560px, 100%);
      }

      .account-age-body {
        gap: 18px;
        font-size: 18px;
      }

      .account-age-body > strong {
        color: var(--ink);
        font-size: 19px;
      }

      .account-age-sheet .account-consent-footer {
        grid-template-columns: 1fr;
      }

      .account-consent-footer {
        display: grid;
        grid-template-columns: minmax(110px, 0.7fr) minmax(180px, 1.3fr);
        gap: 10px;
        padding: 16px 24px 22px;
        border-top: 1px solid var(--line);
        background: #fff;
      }

      .account-consent-later,
      .account-consent-accept {
        min-height: 50px;
        padding: 0 17px;
        border-radius: 14px;
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
      }

      .account-consent-later {
        border: 1px solid var(--line);
        color: #52698f;
        background: #f3f6fb;
      }

      .account-consent-accept {
        border: 0;
        color: #fff;
        background: linear-gradient(135deg, var(--blue-bright), #1559e7);
        box-shadow: 0 10px 24px rgba(33, 103, 245, 0.22);
      }

      .account-consent-accept:disabled {
        cursor: not-allowed;
        opacity: 0.46;
        box-shadow: none;
      }

      .account-actions {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-top: 22px;
      }

      .account-submit {
        flex: 1;
        min-height: 52px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin: 0;
        padding: 0 20px;
        border: 0;
        border-radius: 15px;
        color: #fff;
        background: linear-gradient(135deg, var(--blue-bright), #1559e7);
        box-shadow: 0 12px 28px rgba(33, 103, 245, 0.24);
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
      }

      .account-submit svg {
        width: 18px;
        height: 18px;
      }

      .account-submit[hidden],
      .account-back[hidden] {
        display: none;
      }

      .account-back {
        min-width: 96px;
        min-height: 52px;
        padding: 0 18px;
        border: 1px solid rgba(29, 75, 153, 0.14);
        border-radius: 15px;
        color: #52698f;
        background: #f3f6fb;
        font-size: 13px;
        font-weight: 700;
        cursor: pointer;
      }

      .account-error {
        min-height: 16px;
        margin: 10px 0 0;
        color: #d33f5b;
        font-size: 11px;
        text-align: center;
      }

      .auth-card[hidden] {
        display: none;
      }

      .auth-switch {
        width: 100%;
        min-height: 44px;
        margin-top: 12px;
        padding: 5px;
        border: 0;
        color: var(--blue);
        background: transparent;
        font-size: 11px;
        font-weight: 700;
        cursor: pointer;
      }

      .auth-card > .account-submit {
        width: 100%;
        margin-top: 22px;
      }

      .account-submit:disabled {
        cursor: wait;
        opacity: 0.68;
      }

      @media (max-width: 1100px) {
        html {
          -webkit-text-size-adjust: 100%;
          text-size-adjust: 100%;
        }

        input,
        select,
        textarea {
          font-size: 16px !important;
        }

        .auth-card .account-field :is(input, select),
        .account-card:not(.auth-card) .account-field :is(input, select) {
          font-size: 17px !important;
        }

        .account-screen {
          height: 100dvh;
        }

        .account-header {
          padding: 16px 16px 8px;
        }

        .account-wordmark {
          width: 145px;
        }

        .account-card {
          padding: 12px 16px 20px;
        }

        .account-card:not(.auth-card) .account-actions {
          margin-top: 12px;
          padding-top: 10px;
          border-top: 1px solid var(--line);
        }

        .account-card:not(.auth-card) > .account-error {
          min-height: 0;
          margin-top: 4px;
        }

        .account-card h2 {
          max-width: 100%;
          margin-top: 4px;
          font-size: clamp(28px, 8.4vw, 34px);
          line-height: 1;
        }

        .account-fields {
          min-width: 0;
          gap: 10px;
          margin-top: 16px;
          padding-bottom: 8px;
        }

        .account-step,
        .account-field,
        .account-password-control,
        .account-name-row,
        .account-address-row {
          min-width: 0;
          max-width: 100%;
        }

        .account-field {
          gap: 5px;
        }

        .account-field :is(input, select) {
          min-width: 0;
          max-width: 100%;
          height: 46px;
          padding-right: 13px;
          padding-left: 13px;
        }

        .account-password-control input {
          padding-right: 48px;
        }

        .auth-card > .account-submit {
          min-height: 48px;
          margin-top: 16px;
        }

        .auth-switch {
          min-height: 44px;
          margin-top: 4px;
          padding: 6px;
        }

        .account-consent-modal {
          align-items: end;
          padding: 0;
        }

        .account-consent-sheet {
          width: 100%;
          max-height: min(86dvh, 760px);
          border-right: 0;
          border-bottom: 0;
          border-left: 0;
          border-radius: 26px 26px 0 0;
        }

        .account-consent-header {
          padding: 19px 18px 15px;
        }

        .account-consent-header h3 {
          font-size: 25px;
        }

        .account-consent-body {
          gap: 13px;
          padding: 18px;
          font-size: 16px !important;
          line-height: 1.5;
        }

        .account-consent-choice {
          font-size: 16px;
        }

        .account-consent-footer {
          padding: 14px 18px calc(16px + env(safe-area-inset-bottom));
        }
      }

      @media (max-width: 400px) {
        .account-card {
          padding-right: 14px;
          padding-left: 14px;
        }

        .account-name-row {
          grid-template-columns: repeat(2, minmax(0, 1fr));
          gap: 8px;
        }

        .account-address-row {
          grid-template-columns: 1fr;
        }

        .account-card h2 {
          font-size: clamp(27px, 8.2vw, 32px);
        }

        .account-field :is(input, select) {
          height: 44px;
        }
      }
    