
      .landing-footer {
        position: absolute;
        z-index: 14;
        right: clamp(24px, 4vw, 64px);
        bottom: 14px;
      }

      .landing-footer-nav {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 58px;
        padding: 6px 12px;
        border: 1px solid rgba(255, 255, 255, 0.92);
        border-radius: 24px;
        background: rgba(248, 250, 253, 0.94);
        box-shadow: 0 12px 34px rgba(10, 36, 78, 0.16);
        backdrop-filter: blur(16px);
      }

      .landing-header-nav {
        justify-self: center;
      }

      .landing-footer-nav a,
      .landing-footer-nav button {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        padding: 0 17px;
        border: 0;
        border-radius: 9px;
        color: #52698f;
        background: transparent;
        font: inherit;
        font-size: 15px;
        font-weight: 700;
        text-decoration: none;
        cursor: pointer;
      }

      .landing-footer-nav a:hover,
      .landing-footer-nav button:hover,
      .landing-footer-nav a:focus-visible,
      .landing-footer-nav button:focus-visible {
        color: var(--blue);
      }

      .landing-footer-nav .landing-language-toggle {
        border: 2px solid var(--blue);
        color: var(--blue);
        background: #fff;
        box-shadow: 0 0 0 2px rgba(33, 103, 245, 0.08);
      }

      .landing-language {
        position: relative;
      }

      .landing-language-toggle::after {
        content: none;
      }

      .landing-language-toggle svg {
        width: 18px;
        height: 18px;
      }

      .landing-language-options {
        position: absolute;
        right: 0;
        bottom: calc(100% + 8px);
        width: 184px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3px;
        padding: 8px;
        border: 1px solid rgba(255, 255, 255, 0.82);
        border-radius: 15px;
        background: rgba(255, 255, 255, 0.92);
        box-shadow: 0 14px 34px rgba(10, 36, 78, 0.18);
        backdrop-filter: blur(16px);
      }

      .landing-header-nav .landing-language-options {
        top: calc(100% + 8px);
        bottom: auto;
      }

      .landing-language-options button {
        min-height: 32px;
        justify-content: flex-start;
        border-radius: 9px;
        font-size: 9px;
      }

      .landing-language-options button[aria-pressed="true"] {
        color: var(--blue);
        background: #edf3ff;
      }

      .hero .social-proof {
        bottom: 80px;
      }

      .site-copyright {
        position: absolute;
        z-index: 14;
        bottom: 14px;
        left: 50%;
        margin: 0;
        color: #52698f;
        font-size: 9px;
        font-weight: 700;
        letter-spacing: 0.08em;
        transform: translateX(-50%);
        white-space: nowrap;
      }

      .landing-theme-toggle {
        min-width: 0;
        min-height: 30px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 0 9px;
        border: 1px solid rgba(52, 85, 139, 0.24);
        border-radius: 999px;
        color: #52698f;
        background: rgba(255, 255, 255, 0.5);
        box-shadow: none;
        backdrop-filter: blur(8px);
        font: inherit;
        font-size: 10px;
        font-weight: 700;
        cursor: pointer;
        transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
      }

      .landing-theme-toggle:hover,
      .landing-theme-toggle:focus-visible {
        border-color: rgba(33, 103, 245, 0.52);
        color: var(--blue);
        background: rgba(255, 255, 255, 0.8);
        outline: none;
      }

      .landing-theme-toggle svg {
        width: 14px;
        height: 14px;
        flex: 0 0 auto;
      }

      .landing-theme-toggle .landing-theme-sun {
        display: none;
      }

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

      html[data-theme="dark"] body:not(.is-logged-in) .site-shell {
        background: #050b14;
      }

      html[data-theme="dark"] body:not(.is-logged-in) .site-header {
        background: rgba(5, 14, 29, 0.9);
        box-shadow: 0 1px 0 rgba(144, 180, 234, 0.14);
      }

      html[data-theme="dark"] body:not(.is-logged-in) .brand img {
        filter:
          drop-shadow(1px 0 rgba(238, 245, 255, 0.72))
          drop-shadow(-1px 0 rgba(238, 245, 255, 0.72))
          drop-shadow(0 1px rgba(238, 245, 255, 0.72))
          drop-shadow(0 -1px rgba(238, 245, 255, 0.72));
        mix-blend-mode: normal;
      }

      html[data-theme="dark"] body:not(.is-logged-in) .hero {
        background-color: #071426;
      }

      html[data-theme="dark"] body:not(.is-logged-in) .hero::before {
        background:
          linear-gradient(90deg, rgba(3, 12, 27, 0.9) 0%, rgba(4, 18, 40, 0.72) 38%, rgba(5, 20, 44, 0.28) 64%, rgba(3, 12, 27, 0.16) 100%),
          linear-gradient(0deg, rgba(2, 10, 24, 0.82) 0%, rgba(3, 13, 30, 0.08) 34%);
      }

      html[data-theme="dark"] body:not(.is-logged-in) h1,
      html[data-theme="dark"] body:not(.is-logged-in) .float-card strong,
      html[data-theme="dark"] body:not(.is-logged-in) .proof-copy strong {
        color: #f5f8ff;
      }

      html[data-theme="dark"] body:not(.is-logged-in) .eyebrow,
      html[data-theme="dark"] body:not(.is-logged-in) .proof-copy,
      html[data-theme="dark"] body:not(.is-logged-in) .float-card span,
      html[data-theme="dark"] body:not(.is-logged-in) .site-copyright {
        color: #9fb4d2;
      }

      html[data-theme="dark"] body:not(.is-logged-in) .secondary-cta,
      html[data-theme="dark"] body:not(.is-logged-in) .float-card,
      html[data-theme="dark"] body:not(.is-logged-in) .landing-footer-nav,
      html[data-theme="dark"] body:not(.is-logged-in) .landing-language-options {
        border-color: rgba(145, 190, 255, 0.34);
        color: #f5f8ff;
        background: rgba(7, 24, 49, 0.88);
        box-shadow: 0 14px 34px rgba(0, 6, 19, 0.32);
      }

      html[data-theme="dark"] body:not(.is-logged-in) .nav-links a,
      html[data-theme="dark"] body:not(.is-logged-in) .landing-footer-nav a,
      html[data-theme="dark"] body:not(.is-logged-in) .landing-footer-nav button {
        color: #9fb4d2;
      }

      html[data-theme="dark"] body:not(.is-logged-in) .landing-footer-nav .landing-language-toggle {
        border-color: #78aaff;
        color: #f5f8ff;
        background: rgba(12, 35, 70, 0.96);
        box-shadow: 0 0 0 2px rgba(75, 137, 255, 0.12);
      }

      html[data-theme="dark"] body:not(.is-logged-in) .landing-language-options button[aria-pressed="true"] {
        color: #8bb6ff;
        background: rgba(54, 111, 205, 0.22);
      }

      html[data-theme="dark"] body:not(.is-logged-in) .landing-theme-toggle {
        border-color: rgba(145, 190, 255, 0.3);
        color: #9fb4d2;
        background: rgba(7, 24, 49, 0.5);
      }

      html[data-theme="dark"] body:not(.is-logged-in) .landing-theme-toggle:hover,
      html[data-theme="dark"] body:not(.is-logged-in) .landing-theme-toggle:focus-visible {
        border-color: rgba(145, 190, 255, 0.62);
        color: #ffffff;
        background: rgba(12, 39, 78, 0.82);
      }

      html[data-theme="dark"] .landing-theme-toggle .landing-theme-moon {
        display: none;
      }

      html[data-theme="dark"] .landing-theme-toggle .landing-theme-sun {
        display: block;
      }

      /* One stable desktop frame: shared gutter, no page-entry jump, and
         map-led views sized to the visible screen below the wordmark row. */
      body.is-logged-in.timeline-open .timeline-feed {
        align-content: start;
        grid-auto-rows: max-content;
      }

      .timeline-keep-map {
        display: none;
      }

      .app-sidebar-wordmark {
        display: none;
      }

      @media (min-width: 1101px) {
        body.is-logged-in.timeline-open {
          overflow: hidden;
        }

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

        body.is-logged-in .app-sidebar {
          align-items: stretch;
          padding: 22px 14px;
        }

        body.is-logged-in .app-sidebar-wordmark {
          width: 142px;
          height: 44px;
          display: flex;
          align-items: center;
          justify-content: center;
          flex: 0 0 auto;
          padding: 0;
          border: 0;
          background: transparent;
          cursor: pointer;
        }

        body.is-logged-in .app-sidebar-wordmark img {
          width: 100%;
          height: auto;
          display: block;
        }

        body.is-logged-in .app-sidebar .app-nav {
          gap: 8px;
          margin-top: 22px;
        }

        body.is-logged-in .app-sidebar .app-nav-button {
          min-height: 58px;
          grid-template-columns: 28px minmax(0, 1fr);
          justify-items: start;
          align-items: center;
          gap: 12px;
          padding: 0 14px;
          text-align: left;
        }

        body.is-logged-in .app-topbar {
          height: 64px;
          justify-content: flex-end;
        }

        body.is-logged-in .app-topbar .topbar-actions {
          position: fixed;
          z-index: 52;
          top: 356px;
          bottom: 22px;
          left: 14px;
          width: 142px;
          flex-direction: column;
          justify-content: center;
          gap: 0;
        }

        body.is-logged-in .app-topbar .topbar-actions {
          display: none;
        }

        body.is-logged-in .app-topbar .topbar-actions .icon-button {
          width: 100%;
          height: 58px;
          min-height: 58px;
          flex: 0 0 auto;
          grid-template-columns: 28px minmax(0, 1fr);
          justify-items: start;
          align-items: center;
          gap: 12px;
          padding: 0 14px;
          border: 0;
          border-radius: 17px;
          color: #52698f;
          background: transparent;
          font-size: 10px;
          font-weight: 600;
        }

        body.is-logged-in .app-topbar .topbar-actions .icon-button svg {
          width: 23px;
          height: 23px;
        }

        body.is-logged-in .app-topbar .topbar-actions .notification-dot {
          top: 12px;
          right: auto;
          left: 30px;
        }

        body.is-logged-in .desktop-control-label {
          display: inline;
        }

        body.is-logged-in .app-topbar .topbar-actions .top-profile {
          width: 100%;
          height: 58px;
          display: none;
          flex: 0 0 58px;
          align-items: center;
          justify-content: flex-start;
          align-self: stretch;
          margin-top: auto;
          padding: 0 12px 0 60px;
          border: 0;
          border-radius: 17px;
          overflow: visible;
          color: transparent;
          background: transparent;
          box-shadow: none;
          font-size: 0;
          text-align: left;
        }

        body.is-logged-in .app-topbar .topbar-actions .top-profile::before {
          content: "";
          position: absolute;
          left: 14px;
          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);
        }

        body.is-logged-in .app-topbar .topbar-actions .top-profile::after {
          content: attr(data-profile-name);
          display: block;
          color: #0b285b;
          font-size: 12.5px;
          font-weight: 700;
          line-height: 1.2;
          white-space: nowrap;
        }

        body.is-logged-in .app-topbar .topbar-actions .top-profile .profile-status {
          right: auto;
          bottom: 9px;
          left: 43px;
          z-index: 1;
        }

        body.is-logged-in .notification-panel {
          position: fixed;
          z-index: 45; /* above the Vibe "people selected" bar (30, or 42 on phones) */
          top: 354px;
          right: auto;
          left: 184px;
        }

        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);
          cursor: default;
        }

        body.is-logged-in .home-profile-popover-content {
          position: absolute;
          bottom: 22px;
          left: 184px;
          width: min(365px, calc(100vw - 208px));
          max-height: calc(100svh - 44px);
        }

        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%;
          max-height: calc(100svh - 44px);
          min-height: 0;
        }

        body.is-logged-in[data-app-view="home"] .app-main,
        body.is-logged-in[data-app-view="vibe"] .app-main,
        body.is-logged-in[data-app-view="live"] .app-main,
        body.is-logged-in[data-app-view="avatar"] .app-main,
        body.is-logged-in[data-app-view="event-studio"] .app-main {
          position: relative;
        }

        body.is-logged-in[data-app-view="home"] .app-topbar,
        body.is-logged-in[data-app-view="vibe"] .app-topbar,
        body.is-logged-in[data-app-view="live"] .app-topbar,
        body.is-logged-in[data-app-view="avatar"] .app-topbar,
        body.is-logged-in[data-app-view="event-studio"] .app-topbar {
          position: absolute;
          top: 0;
          right: 0;
          z-index: 50;
          width: auto;
          height: 64px;
        }

        body.is-logged-in[data-app-view="event-studio"] .event-studio-view {
          height: 100svh;
          min-height: 100svh;
          display: flex;
          flex-direction: column;
          overflow: hidden;
          padding-bottom: 24px;
        }

        body.is-logged-in[data-app-view="event-studio"] .event-studio-entry {
          min-height: 0;
          flex: 1;
        }

        body.is-logged-in .app-topbar .app-wordmark {
          display: none;
        }

        body.is-logged-in.timeline-open .app-main {
          position: relative;
        }

        body.is-logged-in.timeline-open .app-topbar {
          position: absolute;
          top: 0;
          right: 0;
          z-index: 50;
          width: auto;
        }

        body.is-logged-in .home-view,
        body.is-logged-in .vibe-view,
        body.is-logged-in .live-view,
        body.is-logged-in .timeline-view,
        body.is-logged-in .me-view {
          animation: none;
        }

        /* Fill the remaining Home frame instead of subtracting a guessed
           header height. Keep the wallpaper and avatar on the same stage. */
        body.is-logged-in .home-view:not([hidden]) {
          height: calc(100svh - 12px);
          display: flex;
          flex-direction: column;
          min-height: 0;
        }

        body.is-logged-in .home-view > .app-heading-row {
          flex: 0 0 auto;
        }

        body.is-logged-in .home-view > .home-layout {
          flex: 1 1 auto;
          min-height: 0;
          align-items: stretch;
        }

        body.is-logged-in .home-view .world-panel {
          min-height: 0;
        }

        body.is-logged-in .home-view .world-map {
          height: 100%;
          min-height: 0;
        }

        body.is-logged-in .vibe-view {
          min-height: 0;
          padding-bottom: 0;
        }

        body.is-logged-in .vibe-view > .persistent-city-map .friends-map {
          height: max(500px, calc(100svh - 123px));
          min-height: 0;
        }

        body.is-logged-in .live-view {
          min-height: 0;
          padding-bottom: 0;
        }

        body.is-logged-in .live-view > .persistent-city-map {
          margin-bottom: 0;
        }

        body.is-logged-in .live-view > .persistent-city-map .friends-map {
          height: max(560px, calc(100svh - 24px));
          min-height: 0;
        }

        body.is-logged-in .timeline-view,
        body.is-logged-in .me-view {
          padding-top: 12px;
        }

        body.is-logged-in .timeline-view {
          width: 100%;
          height: 100svh;
          min-height: 0;
          display: grid;
          grid-template-columns: minmax(0, 620px) minmax(280px, 1fr);
          grid-template-rows: auto minmax(0, 1fr);
          column-gap: 18px;
          overflow: hidden;
          padding-bottom: 0;
        }

        body.is-logged-in .timeline-view > .persistent-city-map,
        body.is-logged-in .timeline-view .timeline-feed {
          width: 100%;
          margin-right: 0;
          margin-left: 0;
        }

        body.is-logged-in .timeline-view > .persistent-city-map {
          grid-column: 1;
          grid-row: 1;
        }

        body.is-logged-in .timeline-view > .persistent-city-map .friends-map {
          height: clamp(280px, 38svh, 380px);
          min-height: 0;
        }

        body.is-logged-in .timeline-view > .persistent-city-map.composer-active .friends-map {
          height: clamp(310px, 42svh, 380px);
        }

        body.is-logged-in .timeline-view .timeline-feed {
          grid-column: 1;
          grid-row: 2;
          min-height: 0;
          overflow-x: hidden;
          overflow-y: auto;
          overscroll-behavior: contain;
          scrollbar-width: thin;
        }

        body.is-logged-in .timeline-view .timeline-post .timeline-media,
        body.is-logged-in .timeline-view .timeline-user-post.has-media .timeline-user-media {
          height: clamp(300px, 42svh, 380px);
          aspect-ratio: auto;
        }

        body.is-logged-in .timeline-view .timeline-post-footer {
          position: relative;
          min-height: 39px;
          padding: 8px 12px 10px;
        }

        body.is-logged-in .timeline-view .timeline-presence {
          margin-bottom: 0;
          font-size: 10px;
        }

        body.is-logged-in .timeline-view .timeline-actions {
          gap: 6px;
        }

        body.is-logged-in .timeline-view .timeline-post:not(.timeline-user-post) .timeline-actions,
        body.is-logged-in .timeline-view .timeline-user-post.has-media .timeline-actions {
          position: absolute;
          z-index: 4;
          right: 12px;
          bottom: calc(100% + 10px);
          left: 12px;
        }

        body.is-logged-in .timeline-view .timeline-post:not(.timeline-user-post) .timeline-post-footer,
        body.is-logged-in .timeline-view .timeline-user-post.has-media .timeline-post-footer {
          min-height: 0;
          padding: 0;
          border-top: 0;
        }

        body.is-logged-in .timeline-view .timeline-action {
          min-height: 42px;
          gap: 5px;
          border-radius: 11px;
          box-shadow: 0 6px 16px rgba(6, 28, 68, 0.15);
          font-size: 10px;
        }

        body.is-logged-in .timeline-view .timeline-action svg {
          width: 18px;
          height: 18px;
        }

        body.is-logged-in .timeline-view .timeline-share svg {
          width: 34px;
        }

        body.is-logged-in .timeline-view .timeline-keeping-up {
          display: none !important;
        }

        body.is-logged-in .timeline-keep-map {
          position: relative;
          grid-column: 2;
          grid-row: 1 / 3;
          min-width: 0;
          display: grid;
          grid-template-rows: repeat(2, minmax(0, 1fr));
          gap: 10px;
          overflow: hidden;
          border: 0;
          border-radius: 0;
          background: transparent;
          box-shadow: none;
        }

        body.is-logged-in .timeline-keep-map-scene {
          display: none;
          position: relative;
          min-height: 0;
          overflow: hidden;
          background: #dceaf7;
        }

        body.is-logged-in .timeline-real-map {
          position: absolute;
          z-index: 0;
          top: 52px;
          right: 0;
          left: 0;
          width: 100%;
          height: calc(100% - 18px);
          border: 0;
          pointer-events: auto;
        }

        body.is-logged-in .timeline-keep-map-header {
          position: absolute;
          z-index: 3;
          top: 16px;
          right: 112px;
          left: 16px;
          padding: 0;
          border: 0;
          background: transparent;
          box-shadow: none;
        }

        body.is-logged-in .timeline-keep-map-header p,
        body.is-logged-in .timeline-keep-map-header h3,
        body.is-logged-in .timeline-keep-map-header small {
          margin: 0;
        }

        body.is-logged-in .timeline-keep-map-header p {
          color: #52698f;
          font-size: 9px;
          font-weight: 700;
          letter-spacing: 0.12em;
          text-transform: uppercase;
        }

        body.is-logged-in .timeline-keep-map-header h3 {
          margin-top: 3px;
          color: var(--ink);
          font-size: 28px;
          line-height: 1;
          letter-spacing: -0.05em;
        }

        body.is-logged-in .timeline-keep-map-header h3 span,
        body.is-logged-in .timeline-keep-map-header small strong {
          color: var(--blue);
        }

        body.is-logged-in .timeline-keep-map-header small {
          display: block;
          margin-top: 7px;
          color: #52698f;
          font-size: 9px;
        }

        body.is-logged-in .timeline-keep-map-markers {
          position: absolute;
          z-index: 4;
          inset: 0;
          pointer-events: none;
        }

        body.is-logged-in .timeline-keep-map-marker {
          position: absolute;
          top: var(--marker-y);
          left: var(--marker-x);
          display: flex;
          align-items: center;
          gap: 9px;
          max-width: calc(100% - 28px);
          padding: 7px 11px 7px 7px;
          border: 1px solid rgba(255, 255, 255, 0.9);
          border-radius: 999px;
          color: var(--ink);
          background: rgba(255, 255, 255, 0.9);
          box-shadow: 0 12px 28px rgba(8, 34, 78, 0.2);
          backdrop-filter: blur(12px);
          cursor: pointer;
          pointer-events: auto;
          transform: translate(-50%, -50%);
        }

        body.is-logged-in .timeline-keep-map-avatar {
          width: 38px;
          height: 38px;
          flex: 0 0 38px;
          display: grid;
          place-items: center;
          overflow: hidden;
          border: 2px solid #fff;
          border-radius: 50%;
          color: #fff;
          background: linear-gradient(145deg, #4c8aff, #173a7c);
          font-size: 10px;
          font-weight: 700;
        }

        body.is-logged-in .timeline-keep-map-avatar.sarah {
          color: transparent;
          background: #dfe9f5 url("assets/sarah-avatar.png") center / cover no-repeat;
        }

        body.is-logged-in .timeline-keep-map-copy {
          min-width: 0;
          display: grid;
          gap: 2px;
          text-align: left;
        }

        body.is-logged-in .timeline-keep-map-copy strong,
        body.is-logged-in .timeline-keep-map-copy small {
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
        }

        body.is-logged-in .timeline-keep-map-copy strong {
          font-size: 10px;
        }

        body.is-logged-in .timeline-keep-map-copy small {
          color: #52698f;
          font-size: 8px;
        }

        body.is-logged-in .timeline-keep-map-empty {
          position: absolute;
          z-index: 4;
          top: 54%;
          left: 50%;
          margin: 0;
          padding: 10px 13px;
          border-radius: 999px;
          color: #52698f;
          background: rgba(255, 255, 255, 0.88);
          font-size: 9px;
          transform: translate(-50%, -50%);
          white-space: nowrap;
        }

        body.is-logged-in .timeline-map-event-group {
          display: flex;
          flex-direction: column;
          min-height: 0;
          min-width: 0;
          overflow: hidden;
          padding: 10px 12px 12px;
          border: 1px solid rgba(31, 80, 158, 0.1);
          border-radius: 17px;
          background: rgba(255, 255, 255, 0.94);
        }

        body.is-logged-in .timeline-map-event-heading {
          display: flex;
          align-items: center;
          justify-content: space-between;
          gap: 12px;
          margin-bottom: 8px;
        }

        body.is-logged-in .timeline-map-event-heading h4 {
          margin: 0;
          color: var(--ink);
          font-size: 14px;
          letter-spacing: -0.025em;
        }

        body.is-logged-in .timeline-map-see-all {
          padding: 0;
          border: 0;
          color: var(--blue);
          background: transparent;
          font-size: 9px;
          font-weight: 700;
          cursor: pointer;
        }



        body.is-logged-in .timeline-map-live-event,
        body.is-logged-in .timeline-map-upcoming-event {
          min-width: 0;
          padding: 0;
          border: 0;
          color: var(--ink);
          background: transparent;
          text-align: left;
          cursor: pointer;
        }

        body.is-logged-in .timeline-map-live-visual {
          position: relative;
          display: block;
          height: clamp(120px, 17vh, 190px);
          overflow: hidden;
          border-radius: 10px;
          background-color: #dce5f5;
          background-position: center;
          background-size: cover;
        }

        body.is-logged-in .timeline-map-live-badge {
          position: absolute;
          top: 7px;
          left: 7px;
          padding: 3px 6px;
          border-radius: 999px;
          color: #fff;
          background: #ff315b;
          font-size: 12px;
          font-weight: 700;
          letter-spacing: 0.05em;
        }

        body.is-logged-in .timeline-map-live-copy {
          display: grid;
          grid-template-columns: minmax(0, 1fr) auto;
          align-items: center;
          gap: 10px;
          margin-top: 6px;
        }

        body.is-logged-in .timeline-map-live-copy > span,
        body.is-logged-in .timeline-map-upcoming-copy {
          min-width: 0;
          display: grid;
          gap: 1px;
        }

        body.is-logged-in .timeline-map-live-copy strong,
        body.is-logged-in .timeline-map-live-copy small,
        body.is-logged-in .timeline-map-upcoming-copy strong,
        body.is-logged-in .timeline-map-upcoming-copy small {
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: normal;
          overflow-wrap: anywhere;
        }

        body.is-logged-in .timeline-map-live-copy strong,
        body.is-logged-in .timeline-map-upcoming-copy strong {
          font-size: 13px;
        }

        body.is-logged-in .timeline-map-live-copy small,
        body.is-logged-in .timeline-map-upcoming-copy small {
          color: #52698f;
          font-size: 12px;
        }

        body.is-logged-in .timeline-map-join {
          display: inline-flex;
          align-items: center;
          justify-content: center;
          min-width: 58px;
          min-height: 28px;
          padding: 0 12px;
          border-radius: 999px;
          color: #fff;
          background: var(--blue);
          box-shadow: 0 7px 15px rgba(33, 103, 245, 0.2);
          font-size: 13px;
          font-weight: 700;
          white-space: nowrap;
        }

        body.is-logged-in .timeline-map-empty { margin: 4px 2px; font-size: 13px; opacity: .75; }
        body.is-logged-in .timeline-map-upcoming-list {
          min-height: 0;
          overflow-y: auto;
          overscroll-behavior: contain;
          align-content: start;
          display: grid;
          grid-template-columns: minmax(0, 1fr);
          gap: 14px;
        }

        body.is-logged-in .timeline-map-open-offices {
          display: grid;
          gap: 10px;
          color: var(--muted);
          font-size: 13px;
        }

        body.is-logged-in .timeline-map-open-offices.is-expanded {
          max-height: 320px;
          overflow-y: auto;
          overscroll-behavior: contain;
          scrollbar-width: thin;
          padding-right: 4px;
        }

        body.is-logged-in .timeline-open-office {
          display: flex;
          align-items: center;
          justify-content: space-between;
          gap: 12px;
          padding: 12px;
          border: 1px solid var(--line);
          border-radius: 16px;
          background: rgba(255, 255, 255, .72);
        }

        body.is-logged-in .timeline-open-office .timeline-map-upcoming-copy {
          min-width: 0;
          display: grid;
          gap: 4px;
        }

        body.is-logged-in .timeline-open-office .timeline-map-upcoming-copy strong,
        body.is-logged-in .timeline-open-office .timeline-map-upcoming-copy small {
          overflow-wrap: anywhere;
        }

        html[data-theme="dark"] body.is-logged-in .timeline-open-office {
          border-color: rgba(176, 199, 236, .2);
          background: rgba(8, 24, 49, .72);
        }

        body.is-logged-in .timeline-map-upcoming-event {
          display: grid;
          grid-template-columns: 64px minmax(0, 1fr);
          align-items: center;
          gap: 10px;
        }

        body.is-logged-in .timeline-map-upcoming-visual {
          width: 64px;
          height: 64px;
          display: block;
          border-radius: 8px;
          background-color: #dce5f5;
          background-position: center;
          background-size: cover;
        }

        body.is-logged-in .me-view {
          min-height: 0;
          padding-bottom: 0;
        }

        body.is-logged-in .me-view > .persistent-city-map {
          margin-bottom: 0;
        }

        body.is-logged-in .me-view > .persistent-city-map .friends-map {
          height: max(520px, calc(100svh - 88px));
          min-height: 0;
        }
      }

      /* Mobile signed-in views use the screen itself, not an outer card shell. */
      @media (max-width: 1100px) {
        html,
        body {
          width: 100%;
          height: 100%;
          min-height: 100%;
          overflow: hidden;
          overscroll-behavior: none;
        }

        body {
          position: fixed;
          inset: 0;
        }

        body:not(.is-logged-in) .site-shell {
          width: 100%;
          height: 100svh;
          min-height: 100svh;
          overflow: hidden;
          overscroll-behavior: none;
        }

        body.is-logged-in .app-home {
          width: 100%;
          height: 100svh;
          min-height: 100svh;
          overflow: hidden;
          padding-bottom: 0;
          background: #f5f8fd;
        }

        body.is-logged-in .app-main {
          height: 100svh;
          min-height: 100svh;
          overflow: hidden;
          padding: 0;
          overscroll-behavior: none;
          scroll-padding-bottom: 0;
        }

        body.is-logged-in .home-view,
        body.is-logged-in .vibe-view,
        body.is-logged-in .live-view,
        body.is-logged-in .timeline-view {
          min-width: 0;
          max-width: 100%;
          overflow-x: hidden;
          overscroll-behavior: contain;
        }

        body.is-logged-in .home-view,
        body.is-logged-in .live-view,
        body.is-logged-in .timeline-view,
        body.is-logged-in .vibe-view:not(.hosting-event-active) {
          overflow-y: hidden;
        }

        body.is-logged-in .vibe-view.hosting-event-active {
          height: calc(100svh - 78px - env(safe-area-inset-top));
          overflow-y: auto;
          -webkit-overflow-scrolling: touch;
        }

        body.is-logged-in.timeline-open .app-main {
          overflow-y: hidden;
        }

        body.is-logged-in.timeline-open .timeline-view {
          position: relative;
          height: calc(100svh - 78px - env(safe-area-inset-top));
          min-height: 0;
          flex: 1 1 auto;
          display: grid;
          grid-template-rows: auto minmax(0, 1fr);
          overflow: hidden;
        }

        body.is-logged-in.timeline-open .timeline-feed {
          min-height: 0;
          overflow-x: hidden;
          overflow-y: auto;
          gap: 8px;
          padding: 8px 8px calc(96px + env(safe-area-inset-bottom));
          background: #f5f8fd;
          overscroll-behavior: contain;
          scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom));
        }

        body.is-logged-in.timeline-open .map-page-header {
          top: 8px;
          right: 8px;
          left: 8px;
          min-height: 54px;
          gap: 8px;
          padding: 8px 10px;
          border-radius: 15px;
        }

        body.is-logged-in.timeline-open .map-page-header p {
          margin-bottom: 2px;
          font-size: 7.5px;
        }

        body.is-logged-in.timeline-open .map-page-header h4 {
          font-size: 24px;
        }

        body.is-logged-in.timeline-open .timeline-heading-actions {
          gap: 3px;
        }

        body.is-logged-in.timeline-open .timeline-heading-plus {
          width: 34px;
          height: 34px;
          font-size: 24px;
        }

        body.is-logged-in.timeline-open .timeline-heading-keep-ups:not([hidden]) {
          min-height: 22px;
          padding: 0 8px;
          font-size: 7px;
        }

        body.is-logged-in.timeline-open .timeline-keeping-up {
          padding: 1px 2px 0;
        }

        body.is-logged-in.timeline-open .timeline-keeping-up > strong {
          margin: 0 0 6px;
          font-size: 11px;
        }

        body.is-logged-in.timeline-open .timeline-keeping-up-people {
          gap: 9px;
          padding: 0 1px 4px;
        }

        body.is-logged-in.timeline-open .timeline-followed-person {
          width: 50px;
          flex-basis: 50px;
          gap: 4px;
          font-size: 8px;
        }

        body.is-logged-in.timeline-open .timeline-followed-avatar {
          width: 40px;
          height: 40px;
        }

        body.is-logged-in.timeline-open .timeline-post {
          border-radius: 15px;
        }

        body.is-logged-in.timeline-open .timeline-post-header {
          gap: 7px;
          padding: 8px 8px 7px;
        }

        body.is-logged-in.timeline-open .timeline-avatar {
          width: 28px;
          height: 28px;
        }

        body.is-logged-in.timeline-open .timeline-author strong {
          font-size: 11px;
        }

        body.is-logged-in.timeline-open .timeline-author span {
          margin-top: 1px;
          font-size: 7.5px;
        }

        body.is-logged-in.timeline-open .timeline-keep-up {
          min-height: 26px;
          padding: 0 7px;
          font-size: 7px;
        }

        body.is-logged-in.timeline-open .timeline-more {
          width: 26px;
          height: 26px;
          font-size: 16px;
        }

        body.is-logged-in.timeline-open .timeline-copy {
          padding: 0 8px 8px;
          font-size: 10px;
          line-height: 1.34;
        }

        body.is-logged-in.timeline-open .timeline-media {
          height: clamp(190px, 24svh, 215px);
          max-height: 215px;
          aspect-ratio: auto;
        }

        body.is-logged-in.timeline-open .timeline-post-footer {
          padding: 7px 7px 8px;
        }

        body.is-logged-in.timeline-open .timeline-actions {
          gap: 5px;
        }

        body.is-logged-in.timeline-open .timeline-action {
          min-height: 40px;
          gap: 2px;
          padding: 2px 1px;
          border-radius: 10px;
          font-size: 7px;
        }

        body.is-logged-in.timeline-open .timeline-action svg {
          width: 16px;
          height: 16px;
        }

        body.is-logged-in.timeline-open .timeline-share svg {
          width: 28px;
        }

        body.is-logged-in.timeline-open .timeline-action small {
          display: inline;
          margin: 0 0 0 2px;
          font-size: 7px;
        }

        body.is-logged-in .timeline-keep-map.mobile-open {
          position: absolute;
          z-index: 18;
          top: 0;
          right: 0;
          left: 0;
          width: 100%;
          height: clamp(210px, 27svh, 235px);
          min-height: 210px;
          max-height: 235px;
          display: block;
          overflow: hidden;
          border-bottom-right-radius: 20px;
          border-bottom-left-radius: 20px;
          background: #dceaf7;
        }

        body.is-logged-in .timeline-keep-map.mobile-open .timeline-keep-map-scene {
          width: 100%;
          height: 100%;
        }

        body.is-logged-in .timeline-keep-map.mobile-open .timeline-real-map {
          top: 0;
          width: 100%;
          height: 100%;
        }

        body.is-logged-in .timeline-keep-map.mobile-open .timeline-keep-map-header {
          position: absolute;
          z-index: 5;
          top: 14px;
          right: 14px;
          left: 14px;
          min-height: 42px;
          display: flex;
          align-items: center;
          justify-content: space-between;
          gap: 12px;
          padding: 0;
        }

        body.is-logged-in .timeline-keep-map.mobile-open .timeline-keep-map-header h3 {
          margin: 0;
          color: var(--ink);
          font-size: 24px;
          line-height: 1;
          letter-spacing: -0.05em;
        }

        body.is-logged-in .timeline-keep-map.mobile-open .timeline-keep-map-header h3 span {
          color: var(--blue);
        }

        body.is-logged-in .timeline-keep-map.mobile-open .timeline-keep-map-markers {
          position: absolute;
          z-index: 4;
          inset: 0;
          pointer-events: none;
        }

        body.is-logged-in .timeline-keep-map.mobile-open .timeline-keep-map-marker {
          position: absolute;
          top: var(--marker-y);
          left: var(--marker-x);
          display: flex;
          align-items: center;
          gap: 7px;
          max-width: calc(100% - 24px);
          padding: 6px 10px 6px 6px;
          border: 1px solid rgba(255, 255, 255, 0.9);
          border-radius: 999px;
          color: var(--ink);
          background: rgba(255, 255, 255, 0.92);
          box-shadow: 0 10px 24px rgba(8, 34, 78, 0.2);
          backdrop-filter: blur(12px);
          cursor: pointer;
          pointer-events: auto;
          transform: translate(-50%, -50%);
        }

        body.is-logged-in .timeline-keep-map.mobile-open .timeline-keep-map-avatar {
          width: 34px;
          height: 34px;
          flex: 0 0 34px;
          display: grid;
          place-items: center;
          overflow: hidden;
          border: 2px solid #fff;
          border-radius: 50%;
          color: #fff;
          background: linear-gradient(145deg, #4c8aff, #173a7c);
          font-size: 9px;
          font-weight: 700;
        }

        body.is-logged-in .timeline-keep-map.mobile-open .timeline-keep-map-avatar.sarah {
          color: transparent;
          background: #dfe9f5 url("assets/sarah-avatar.png") center / cover no-repeat;
        }

        body.is-logged-in .timeline-keep-map.mobile-open .timeline-keep-map-copy {
          min-width: 0;
          display: grid;
          gap: 1px;
          text-align: left;
        }

        body.is-logged-in .timeline-keep-map.mobile-open .timeline-keep-map-copy strong,
        body.is-logged-in .timeline-keep-map.mobile-open .timeline-keep-map-copy small {
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
        }

        body.is-logged-in .timeline-keep-map.mobile-open .timeline-keep-map-copy strong {
          font-size: 9px;
        }

        body.is-logged-in .timeline-keep-map.mobile-open .timeline-keep-map-copy small {
          color: #52698f;
          font-size: 7px;
        }

        body.is-logged-in .timeline-keep-map.mobile-open .timeline-mobile-map-back {
          min-height: 34px;
          display: inline-flex;
          align-items: center;
          padding: 0 12px;
          border: 1px solid rgba(33, 103, 245, 0.18);
          border-radius: 999px;
          color: var(--blue);
          background: rgba(255, 255, 255, 0.94);
          box-shadow: 0 8px 20px rgba(8, 34, 78, 0.14);
          font-size: 9px;
          font-weight: 700;
          cursor: pointer;
        }

        body.is-logged-in .timeline-keep-map.mobile-open .timeline-map-event-group {
          display: none;
        }

        body.is-logged-in .app-topbar {
          height: calc(78px + env(safe-area-inset-top));
          flex: 0 0 calc(78px + env(safe-area-inset-top));
          padding-top: env(safe-area-inset-top);
          padding-right: 16px;
          padding-left: 16px;
        }

        body.is-logged-in .app-heading-row {
          margin-right: 16px;
          margin-left: 16px;
        }

        body.is-logged-in .home-layout,
        body.is-logged-in .world-panel,
        body.is-logged-in .friends-preview,
        body.is-logged-in .attended-preview {
          width: 100%;
          margin-right: 0;
          margin-left: 0;
          border: 0;
          border-radius: 0;
          background-color: transparent;
          box-shadow: none;
          backdrop-filter: none;
        }

        body.is-logged-in .world-map,
        body.is-logged-in .friends-map,
        body.is-logged-in .attended-map {
          border-radius: 0;
        }

        body.is-logged-in .map-person,
        body.is-logged-in .home-bg-card {
          bottom: calc(94px + env(safe-area-inset-bottom));
        }

        body.is-logged-in .world-toolbar {
          margin-left: 16px;
        }

        body.is-logged-in .vibe-view {
          padding-right: 0;
          padding-left: 0;
        }

        body.is-logged-in .vibe-view > .persistent-city-map .friends-map {
          height: calc(100svh - 161px - env(safe-area-inset-top));
          min-height: 0;
        }

        body.is-logged-in .vibe-view.hosting-event-active > .persistent-city-map .friends-map {
          height: auto;
          min-height: 470px;
        }

        body.is-logged-in .vibe-view .vibe-panel {
          border: 0;
          border-radius: 0;
          background: transparent;
          box-shadow: none;
          backdrop-filter: none;
        }

        body.is-logged-in .live-view > .persistent-city-map,
        body.is-logged-in .timeline-view > .persistent-city-map,
        body.is-logged-in .me-view > .persistent-city-map {
          margin-right: 0;
          margin-left: 0;
          border-radius: 0;
        }

        body.is-logged-in .friends-map > .map-page-header {
          border: 0;
          background: transparent;
          box-shadow: none;
          backdrop-filter: none;
        }

        body.is-logged-in .mobile-bottom-nav {
          right: 12px;
          bottom: max(10px, env(safe-area-inset-bottom));
          left: 12px;
          min-height: 64px;
          padding: 6px 8px;
          border: 0;
          border-radius: 0;
          background: transparent;
          box-shadow: none;
          backdrop-filter: none;
          text-shadow: none;
        }
      }

      @media (max-width: 560px) {
        .landing-header-nav {
          position: fixed;
          z-index: 14;
          right: 16px;
          bottom: max(27px, calc(19px + env(safe-area-inset-bottom)));
          left: 16px;
          display: flex;
        }

        .landing-footer-nav {
          justify-content: center;
          gap: 22px;
          padding: 5px 9px;
          border-radius: 17px;
        }

        .landing-footer-nav a,
        .landing-footer-nav button {
          min-height: 36px;
          padding: 0 9px;
          font-size: 11px;
        }

        .landing-header-nav .landing-language-options {
          top: auto;
          right: -34px;
          bottom: calc(100% + 58px);
          width: 172px;
        }

        .hero .social-proof {
          bottom: calc(124px + env(safe-area-inset-bottom));
        }

        .landing-footer {
          position: fixed;
          right: 16px;
          bottom: max(78px, calc(70px + env(safe-area-inset-bottom)));
        }

        .landing-theme-toggle {
          min-height: 28px;
          padding: 0 8px;
          font-size: 9px;
        }

        .site-copyright {
          bottom: max(7px, env(safe-area-inset-bottom));
          font-size: 7px;
        }
      }

      /* My Digital Studio is a dedicated workspace reached from Profile. */
      .avatar-studio-view {
        --text-secondary: #0b285b;
        --text-muted: #0b285b;
        width: min(1240px, 100%);
        min-height: calc(100svh - 92px);
        margin: 0 auto;
        padding: 10px 0 44px;
        animation: sp-screen-in var(--sp-dur-glide) var(--sp-ease-glide) backwards;
      }

      .avatar-studio-view[hidden],
      .avatar-studio-consent[hidden],
      .avatar-studio-setup[hidden],
      .avatar-studio-workspace[hidden],
      .avatar-studio-panel[hidden],
      .avatar-upload-preview[hidden],
      .avatar-clothing-ready[hidden],
      .avatar-order-modal[hidden] {
        display: none !important;
      }

      .avatar-studio-view .studio-copy-hidden {
        display: none !important;
      }

      .avatar-studio-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
        margin-bottom: 16px;
        padding: 18px 20px;
        border: 1px solid rgba(29, 75, 153, 0.11);
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.94);
        box-shadow: 0 18px 46px rgba(16, 50, 103, 0.11);
      }

      .avatar-studio-heading {
        min-width: 0;
        flex: 1;
      }

      .avatar-studio-heading p,
      .avatar-studio-heading h2 {
        margin: 0;
      }

      .avatar-studio-heading p {
        margin-bottom: 5px;
        color: var(--text-muted);
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.14em;
        text-transform: uppercase;
      }

      .avatar-studio-heading h2 {
        color: var(--text-primary);
        font-size: clamp(30px, 4vw, 48px);
        letter-spacing: -0.055em;
        line-height: 0.98;
      }

      .avatar-studio-heading h2 span {
        color: var(--text-brand);
      }

      .avatar-studio-back,
      .avatar-studio-status {
        flex: 0 0 auto;
        border: 0;
        border-radius: 15px;
        color: var(--text-brand);
        background: #edf4ff;
        font-size: 11px;
        font-weight: 700;
      }

      .avatar-studio-back {
        min-height: 44px;
        padding: 0 16px;
        cursor: pointer;
      }

      .avatar-studio-status {
        display: inline-flex;
        align-items: center;
        min-height: 38px;
        padding: 0 13px;
      }

      .avatar-studio-consent {
        width: min(700px, 100%);
        display: grid;
        gap: 16px;
        margin: 0px auto 0;
        padding: clamp(20px, 4vw, 34px);
        border: 1px solid rgba(29, 75, 153, 0.13);
        border-radius: 26px;
        background: rgba(255, 255, 255, 0.97);
        box-shadow: 0 24px 60px rgba(16, 50, 103, 0.15);
      }

      .avatar-studio-setup h3 {
        margin: 0;
        color: var(--text-primary);
        font-size: 18px;
      }

      .avatar-studio-setup p {
        margin: 0;
        color: var(--text-secondary);
        font-size: 12px;
        line-height: 1.5;
      }

      .avatar-setup-choices {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
      }

      .avatar-setup-choice {
        min-height: 58px;
        font-size: 14px;
      }

      .avatar-setup-choice[aria-pressed="true"] {
        border-color: var(--blue);
        color: #fff;
        background: var(--blue);
      }

      .avatar-setup-actions {
        display: flex;
        justify-content: flex-end;
        gap: 10px;
      }

      .avatar-setup-error {
        min-height: 1.3em;
        color: var(--text-danger);
      }

      .avatar-consent-intro {
        display: grid;
        grid-template-columns: 58px minmax(0, 1fr);
        align-items: center;
        gap: 14px;
      }

      .avatar-consent-photo {
        width: 58px;
        height: 58px;
        border: 3px solid #fff;
        border-radius: 50%;
        background: #fff url("assets/user-avatar.png") center / 145% no-repeat;
        box-shadow: 0 9px 24px rgba(18, 50, 101, 0.16);
      }

      .avatar-consent-intro strong,
      .avatar-consent-intro span {
        display: block;
      }

      .avatar-consent-intro strong {
        color: var(--text-primary);
        font-size: 18px;
      }

      .avatar-consent-intro span {
        margin-top: 3px;
        color: var(--text-secondary);
        font-size: 11px;
        line-height: 1.45;
      }

      .avatar-consent-copy {
        display: grid;
        gap: 10px;
        color: var(--text-secondary);
        font-size: 12px;
        line-height: 1.6;
      }

      .avatar-consent-copy p {
        margin: 0;
      }

      .avatar-consent-dignity {
        padding: 15px;
        border: 1px solid rgba(33, 103, 245, 0.15);
        border-radius: 16px;
        background: #f1f6ff;
      }

      .avatar-consent-dignity h3 {
        margin: 0 0 6px;
        color: var(--text-primary);
        font-size: 15px;
      }

      .avatar-consent-choice {
        display: grid;
        grid-template-columns: 20px minmax(0, 1fr);
        align-items: start;
        gap: 10px;
        padding: 12px;
        border-radius: 14px;
        color: var(--text-secondary);
        background: #f5f8fd;
        font-size: 11px;
        font-weight: 500;
        line-height: 1.45;
      }

      .avatar-consent-choice input {
        width: 18px;
        height: 18px;
        margin: 0;
        accent-color: var(--blue);
      }

      .avatar-consent-actions {
        display: flex;
        justify-content: flex-end;
        gap: 9px;
      }

      .avatar-consent-actions button,
      .avatar-studio-primary,
      .avatar-studio-secondary {
        min-height: 44px;
        padding: 0 16px;
        border-radius: 14px;
        font-size: 11px;
        font-weight: 700;
        cursor: pointer;
      }

      .avatar-consent-not-now,
      .avatar-studio-secondary {
        border: 1px solid rgba(33, 103, 245, 0.17);
        color: var(--text-brand);
        background: #fff;
      }

      .avatar-consent-accept,
      .avatar-studio-primary {
        border: 0;
        color: var(--text-on-brand);
        background: var(--blue);
        box-shadow: 0 10px 24px rgba(33, 103, 245, 0.2);
      }

      .avatar-consent-accept:disabled,
      .avatar-studio-primary:disabled {
        cursor: not-allowed;
        opacity: 0.45;
        box-shadow: none;
      }

      .avatar-studio-workspace {
        display: grid;
        grid-template-columns: 210px minmax(0, 1fr);
        align-items: start;
        gap: 16px;
      }

      .avatar-studio-menu {
        position: sticky;
        top: 16px;
        display: grid;
        gap: 7px;
        padding: 12px;
        border: 1px solid rgba(29, 75, 153, 0.11);
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 16px 38px rgba(16, 50, 103, 0.1);
      }

      .avatar-studio-tab {
        min-height: 52px;
        display: grid;
        grid-template-columns: 34px minmax(0, 1fr);
        align-items: center;
        gap: 10px;
        padding: 7px 10px;
        border: 0;
        border-radius: 14px;
        color: var(--text-muted);
        background: transparent;
        font-size: 11px;
        font-weight: 700;
        text-align: left;
        cursor: pointer;
      }

      .avatar-studio-tab i {
        width: 34px;
        height: 34px;
        display: grid;
        place-items: center;
        border-radius: 11px;
        color: var(--text-brand);
        background: #edf4ff;
        font-style: normal;
      }

      .avatar-studio-tab svg {
        width: 18px;
        height: 18px;
      }

      .avatar-studio-tab.active {
        color: var(--text-brand);
        background: #edf4ff;
      }

      .avatar-studio-panels {
        min-width: 0;
      }

      .avatar-studio-panel {
        padding: clamp(16px, 3vw, 26px);
        border: 1px solid rgba(29, 75, 153, 0.11);
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 18px 46px rgba(16, 50, 103, 0.1);
      }

      .avatar-panel-heading {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 14px;
        margin-bottom: 18px;
      }

      .avatar-panel-heading h3,
      .avatar-panel-heading p {
        margin: 0;
      }

      .avatar-panel-heading h3 {
        color: var(--text-primary);
        font-size: clamp(22px, 3vw, 32px);
        letter-spacing: -0.04em;
      }

      .avatar-panel-heading h3 span {
        color: var(--text-brand);
      }

      .avatar-panel-heading p {
        margin-top: 5px;
        color: var(--text-secondary);
        font-size: 11px;
        font-weight: 500;
        line-height: 1.45;
      }

      .avatar-included-badge {
        flex: 0 0 auto;
        padding: 8px 11px;
        border-radius: 999px;
        color: var(--text-success);
        background: #eaf8f1;
        font-size: 9px;
        font-weight: 700;
      }

      .avatar-main-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
      }

      .avatar-dressing-room {
        --studio-color: 255, 244, 220;
        --studio-radiance: 0.45;
        position: relative;
        width: 100%;
        min-height: 0;
        aspect-ratio: 1584 / 993;
        overflow: hidden;
        border-radius: 22px;
        background: #e9dfd1;
        box-shadow: inset 0 0 0 1px rgba(29, 75, 153, 0.08);
        cursor: grab;
        perspective: 1100px;
        touch-action: none;
      }

      .avatar-dressing-room.is-dragging,
      .avatar-dressing-room.is-spatial-dragging { cursor: grabbing; }

      .avatar-studio-world {
        --spatial-pan-x: 0px;
        --spatial-pan-y: 0px;
        --spatial-zoom: 1.05;
        --spatial-rotate-x: 0deg;
        --spatial-rotate-y: 0deg;
        position: absolute;
        z-index: 0;
        inset: -4%;
        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;
      }

      .avatar-dressing-room.is-spatial-dragging .avatar-studio-world { transition: none; }

      .avatar-dressing-room::after {
        content: "";
        position: absolute;
        z-index: 1;
        inset: 0;
        pointer-events: none;
        background:
          radial-gradient(circle at 72% 30%, rgb(var(--studio-color) / calc(var(--studio-radiance) * 0.36)), transparent 54%),
          linear-gradient(140deg, rgb(var(--studio-color) / calc(var(--studio-radiance) * 0.13)), transparent 58%);
        mix-blend-mode: soft-light;
        transition: background 280ms ease;
      }

      .avatar-dressing-room.engine-backed {
        background: #090b0f;
        cursor: default;
        touch-action: auto;
      }

      .avatar-dressing-room.engine-backed::before,
      .avatar-dressing-room.engine-backed::after {
        display: none;
      }

      .avatar-studio-engine-frame {
        position: absolute;
        z-index: 0;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        border: 0;
        background: #090b0f;
      }

      .avatar-studio-engine-frame[hidden],
      .avatar-engine-status[hidden] { display: none !important; }

      .avatar-engine-status {
        position: absolute;
        inset: 0;
        display: grid;
        place-items: center;
        margin: 0;
        color: var(--text-primary);
        background: var(--surface, #07111f);
        font-size: 14px;
        font-weight: 700;
      }

      .avatar-studio-room-image {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: translateZ(-34px) scale(1.045);
        transition: filter 280ms ease, opacity 180ms ease;
      }

      .avatar-studio-world.is-webgl-studio .avatar-studio-room-image {
        opacity: 0;
      }

      .avatar-studio-person,
      .avatar-studio-reflection {
        position: absolute;
        z-index: 2;
        width: auto;
        height: 90%;
        left: 18%;
        bottom: 1%;
        pointer-events: none;
        filter: drop-shadow(0 13px 10px rgba(43, 31, 24, 0.18));
        transform-origin: center bottom;
        transition: left 620ms var(--sp-ease-glide), bottom 620ms var(--sp-ease-glide), height 620ms var(--sp-ease-glide), transform var(--sp-dur-glide) var(--sp-ease-glide), opacity 260ms ease;
      }

      .avatar-studio-person {
        z-index: 5;
        pointer-events: auto;
        cursor: move;
        touch-action: none;
        user-select: none;
        -webkit-user-drag: none;
        filter:
          drop-shadow(0 3px 2px rgba(43, 31, 24, 0.16))
          drop-shadow(0 16px 14px rgba(43, 31, 24, 0.22));
        transform: translateZ(54px);
      }

      .avatar-studio-person.is-dragging {
        transition: none;
      }

      .avatar-dressing-room[data-avatar-position="sofa"] .avatar-studio-person {
        width: auto;
        height: 66%;
        left: 31%;
        bottom: 7%;
      }

      .avatar-dressing-room[data-avatar-position="clothes"] .avatar-studio-person {
        width: auto;
        height: 84%;
        left: 43%;
        bottom: 1%;
      }

      .avatar-dressing-room[data-avatar-position="mirror"] .avatar-studio-person {
        width: auto;
        height: 82%;
        left: 13%;
        bottom: 1%;
      }

      .avatar-studio-reflection {
        z-index: 2;
        width: auto;
        height: 43%;
        left: 7%;
        bottom: 40%;
        opacity: 0;
        filter: saturate(0.75) brightness(0.82);
        transform: translateZ(18px) scaleX(-1);
      }

      .avatar-dressing-room[data-avatar-position="mirror"] .avatar-studio-reflection {
        opacity: 0.58;
      }

      .avatar-studio-hotspot {
        position: absolute;
        z-index: 4;
        padding: 0;
        border: 0;
        border-radius: 20px;
        color: transparent;
        background: transparent;
        cursor: pointer;
        transform: translateZ(30px);
      }

      .avatar-studio-hotspot:hover,
      .avatar-studio-hotspot:focus:not(:focus-visible) {
        outline: 0;
        background: transparent;
      }

      .avatar-studio-hotspot:focus-visible {
        outline: 2px solid rgba(57, 124, 255, 0.86);
        outline-offset: 3px;
        background: transparent;
      }

      .avatar-studio-hotspot.sofa { left: 34%; top: 43%; width: 17%; height: 23%; }
      .avatar-studio-hotspot.mirror { left: 3%; top: 1%; width: 18%; height: 52%; }
      .avatar-studio-hotspot.clothes-everyday { left: 61%; top: 9%; width: 11%; height: 65%; }
      .avatar-studio-hotspot.clothes-formal { left: 72%; top: 9%; width: 12%; height: 65%; }
      .avatar-studio-hotspot.clothes-relaxed { left: 84%; top: 9%; width: 13%; height: 65%; }

      @media (prefers-reduced-motion: reduce) {
        .avatar-studio-person,
        .avatar-studio-reflection { transition: none; }
      }

      .avatar-dressing-room[data-style-direction="neutral"] .avatar-studio-room-image {
        filter: saturate(0.96);
      }

      .avatar-dressing-room[data-style-direction="masculine"] .avatar-studio-room-image {
        filter: contrast(1.025) saturate(0.94);
      }

      .avatar-dressing-room[data-style-direction="feminine"] .avatar-studio-room-image {
        filter: brightness(1.025) saturate(1.03);
      }

      .avatar-clothing-ready {
        position: absolute;
        z-index: 4;
        top: 14px;
        right: 14px;
        max-width: 190px;
        padding: 9px 12px;
        border-radius: 999px;
        color: var(--text-success);
        background: rgba(234, 248, 241, 0.94);
        box-shadow: 0 9px 22px rgba(9, 65, 39, 0.16);
        font-size: 9px;
        font-weight: 700;
      }

      .avatar-order-modal {
        position: fixed;
        z-index: 1200;
        inset: 0;
        display: grid;
        place-items: center;
        padding: 18px;
      }

      body.avatar-order-open .mobile-bottom-nav {
        visibility: hidden;
      }

      .avatar-order-backdrop {
        position: absolute;
        inset: 0;
        border: 0;
        background: rgba(7, 24, 54, 0.5);
        backdrop-filter: blur(6px);
      }

      .avatar-order-dialog {
        position: relative;
        z-index: 1;
        width: min(510px, 100%);
        max-height: min(720px, calc(100svh - 36px));
        overflow-y: auto;
        padding: clamp(20px, 4vw, 30px);
        border: 1px solid rgba(255, 255, 255, 0.8);
        border-radius: 25px;
        background: #fff;
        box-shadow: 0 30px 80px rgba(7, 24, 54, 0.28);
      }

      .avatar-order-heading {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 18px;
      }

      .avatar-order-icon {
        flex-shrink: 0;
        width: 48px;
        height: 48px;
        display: grid;
        place-items: center;
        border-radius: 15px;
        color: var(--text-on-brand);
        background: var(--blue);
        font-size: 22px;
      }

      .avatar-order-dialog h3 {
        margin: 0;
        color: var(--text-primary);
        font-size: clamp(23px, 4vw, 32px);
        letter-spacing: -0.04em;
      }

      .avatar-order-dialog > p {
        margin: 0 0 14px;
        color: var(--text-secondary);
        font-size: 11px;
        font-weight: 500;
        line-height: 1.5;
      }

      .avatar-order-times {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin: 18px 0 14px;
        padding: 0;
        border: 0;
      }

      .avatar-order-times legend {
        width: 100%;
        margin-bottom: 8px;
        color: var(--text-muted);
        font-size: 9px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.12em;
      }

      .avatar-order-times label {
        position: relative;
        min-height: 46px;
        display: grid;
        place-items: center;
        border: 1px solid rgba(29, 75, 153, 0.16);
        border-radius: 13px;
        color: var(--text-muted);
        background: #f7f9fd;
        font-size: 10px;
        font-weight: 700;
        text-align: center;
        cursor: pointer;
      }

      .avatar-order-times input {
        position: absolute;
        opacity: 0;
      }

      .avatar-order-times label:has(input:checked) {
        border-color: var(--blue);
        color: var(--text-brand);
        background: #edf4ff;
        box-shadow: 0 0 0 2px rgba(33, 103, 245, 0.08);
      }

      .avatar-order-details {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-bottom: 14px;
      }

      .avatar-order-details .full {
        grid-column: 1 / -1;
      }

      .avatar-order-details .avatar-studio-field textarea {
        min-height: 86px;
      }

      .avatar-order-details .avatar-studio-field input {
        width: 100%;
        height: 48px;
        min-width: 0;
        padding: 0 12px;
        border: 1px solid rgba(29, 75, 153, 0.16);
        border-radius: 14px;
        color: var(--text-primary);
        background: #fff;
        font: inherit;
        font-size: 16px;
        outline: none;
      }

      .avatar-order-details .avatar-studio-field input:focus {
        border-color: rgba(33, 103, 245, 0.42);
        box-shadow: 0 0 0 4px rgba(33, 103, 245, 0.08);
      }

      .avatar-order-dialog .avatar-order-notice {
        padding: 12px;
        border-radius: 14px;
        color: var(--text-secondary);
        background: #edf4ff;
        font-weight: 700;
      }

      .avatar-order-actions {
        display: flex;
        justify-content: flex-end;
        gap: 8px;
        margin-top: 16px;
      }

      .avatar-stage {
        position: relative;
        min-height: 590px;
        display: grid;
        place-items: center;
        overflow: hidden;
        border-radius: 22px;
        background:
          radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.98), transparent 42%),
          linear-gradient(145deg, #edf4ff, #dbe7f8);
      }

      .avatar-stage::after {
        content: "";
        position: absolute;
        right: 12%;
        bottom: 6%;
        left: 12%;
        height: 34px;
        border-radius: 50%;
        background: rgba(19, 52, 103, 0.12);
        filter: blur(18px);
      }

      .avatar-stage img {
        position: relative;
        z-index: 1;
        width: 100%;
        height: 590px;
        object-fit: contain;
      }

      .avatar-stage-label {
        position: absolute;
        z-index: 2;
        top: 15px;
        left: 15px;
        padding: 8px 11px;
        border-radius: 999px;
        color: var(--text-primary);
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 8px 20px rgba(16, 50, 103, 0.1);
        font-size: 9px;
        font-weight: 700;
      }

      .avatar-studio-controls {
        display: grid;
        align-content: start;
        gap: 13px;
      }

      .avatar-source-card {
        display: grid;
        grid-template-columns: 46px minmax(0, 1fr);
        align-items: center;
        gap: 11px;
        padding: 12px;
        border-radius: 16px;
        background: #f5f8fd;
      }

      .avatar-source-photo {
        width: 46px;
        height: 46px;
        border: 2px solid #fff;
        border-radius: 50%;
        background: #fff url("assets/user-avatar.png") center / 145% no-repeat;
        box-shadow: 0 6px 16px rgba(18, 50, 101, 0.14);
      }

      .avatar-source-card strong,
      .avatar-source-card span {
        display: block;
      }

      .avatar-source-card strong {
        color: var(--text-primary);
        font-size: 12px;
      }

      .avatar-source-card span {
        margin-top: 2px;
        color: var(--text-secondary);
        font-size: 10px;
        font-weight: 500;
        line-height: 1.4;
      }

      .avatar-room-personalizer {
        display: grid;
        gap: 11px;
        padding: 13px;
        border: 1px solid rgba(33, 103, 245, 0.13);
        border-radius: 17px;
        background: #f7faff;
      }

      .avatar-room-personalizer-heading {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 8px;
      }

      .avatar-room-personalizer-heading strong,
      .avatar-room-personalizer-heading small {
        display: block;
      }

      .avatar-room-personalizer-heading strong {
        color: var(--text-primary);
        font-size: 12px;
      }

      .avatar-room-personalizer-heading small {
        margin-top: 3px;
        color: var(--text-secondary);
        font-size: 8px;
        line-height: 1.35;
      }

      .avatar-room-personalizer-heading em {
        flex: 0 0 auto;
        padding: 6px 8px;
        border-radius: 999px;
        color: var(--text-brand);
        background: #eaf2ff;
        font-size: 8px;
        font-style: normal;
        font-weight: 700;
      }

      .avatar-radiance-colors {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        margin: 0;
        padding: 0;
        border: 0;
      }

      .avatar-radiance-colors legend {
        width: 100%;
        margin-bottom: 6px;
        color: var(--text-muted);
        font-size: 10px;
        font-weight: 700;
      }

      .avatar-radiance-colors button {
        min-width: 0;
        min-height: 38px;
        display: grid;
        grid-template-columns: 14px minmax(0, 1fr);
        align-items: center;
        gap: 5px;
        padding: 5px 6px;
        border: 1px solid rgba(29, 75, 153, 0.14);
        border-radius: 11px;
        color: var(--text-muted);
        background: #fff;
        font-size: 8px;
        font-weight: 700;
        cursor: pointer;
      }

      .avatar-radiance-colors button.active {
        border-color: var(--blue);
        color: var(--text-brand);
        box-shadow: 0 0 0 2px rgba(33, 103, 245, 0.07);
      }

      .avatar-radiance-colors i {
        width: 14px;
        height: 14px;
        border: 1px solid rgba(9, 40, 87, 0.1);
        border-radius: 50%;
        background: var(--swatch);
        box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.48);
      }

      .avatar-radiance-level {
        display: grid;
        gap: 6px;
      }

      .avatar-radiance-level span {
        display: flex;
        justify-content: space-between;
        color: var(--text-muted);
        font-size: 10px;
        font-weight: 700;
      }

      .avatar-radiance-level output {
        color: var(--text-brand);
      }

      .avatar-radiance-level input {
        width: 100%;
        accent-color: var(--blue);
      }

      .avatar-room-personalizer-note {
        margin: 0;
        color: var(--text-muted);
        font-size: 8px;
        line-height: 1.45;
      }

      .avatar-studio-field {
        display: grid;
        gap: 6px;
        color: var(--text-muted);
        font-size: 11px;
        font-weight: 700;
      }

      .avatar-studio-field textarea,
      .avatar-studio-field select {
        width: 100%;
        min-width: 0;
        border: 1px solid rgba(29, 75, 153, 0.16);
        border-radius: 14px;
        color: var(--text-primary);
        background: #fff;
        font: inherit;
        font-size: 16px;
        outline: none;
      }

      .avatar-studio-field textarea {
        min-height: 118px;
        resize: vertical;
        padding: 12px;
        line-height: 1.45;
      }

      .avatar-studio-field select {
        height: 48px;
        padding: 0 12px;
      }

      .avatar-studio-field textarea:focus,
      .avatar-studio-field select:focus {
        border-color: rgba(33, 103, 245, 0.42);
        box-shadow: 0 0 0 4px rgba(33, 103, 245, 0.08);
      }

      .avatar-studio-note,
      .avatar-studio-live-status {
        margin: 0;
        padding: 11px 12px;
        border-radius: 13px;
        color: var(--text-secondary);
        background: #f5f8fd;
        font-size: 11px;
        font-weight: 500;
        line-height: 1.45;
      }

      .avatar-studio-live-status {
        color: var(--text-success);
        background: #eaf8f1;
        font-weight: 700;
      }

      .avatar-studio-live-status:empty {
        display: none;
      }

      .avatar-makeover-layout {
        display: grid;
        grid-template-columns: minmax(260px, 0.75fr) minmax(360px, 1.25fr);
        gap: 18px;
      }

      .avatar-makeover-preview {
        display: grid;
        gap: 12px;
      }

      .avatar-makeover-preview .avatar-stage {
        min-height: 520px;
      }

      .avatar-makeover-preview .avatar-stage img {
        height: 520px;
      }

      .avatar-occasion-type {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
      }

      .avatar-occasion-type button {
        min-height: 44px;
        border: 1px solid rgba(33, 103, 245, 0.16);
        border-radius: 13px;
        color: var(--text-muted);
        background: #fff;
        font-size: 10px;
        font-weight: 700;
        cursor: pointer;
      }

      .avatar-occasion-type button.active {
        border-color: var(--blue);
        color: var(--text-brand);
        background: #edf4ff;
      }

      .avatar-upload-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 9px;
      }

      .avatar-upload-card {
        position: relative;
        min-height: 146px;
        display: grid;
        place-items: center;
        overflow: hidden;
        padding: 12px;
        border: 1px dashed rgba(33, 103, 245, 0.35);
        border-radius: 16px;
        color: var(--text-brand);
        background: #f7faff;
        text-align: center;
        cursor: pointer;
      }

      .avatar-upload-card input {
        position: absolute;
        width: 1px;
        height: 1px;
        opacity: 0;
        pointer-events: none;
      }

      .avatar-upload-card strong,
      .avatar-upload-card small {
        display: block;
      }

      .avatar-upload-card strong {
        font-size: 11px;
      }

      .avatar-upload-card small {
        margin-top: 5px;
        color: var(--text-secondary);
        font-size: 9px;
        font-weight: 500;
        line-height: 1.35;
      }

      .avatar-upload-preview {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
      }

      .avatar-upload-card.has-image::after {
        content: attr(data-upload-label);
        position: absolute;
        right: 8px;
        bottom: 8px;
        left: 8px;
        padding: 7px;
        border-radius: 10px;
        color: var(--text-on-brand);
        background: rgba(8, 30, 67, 0.72);
        font-size: 8px;
        font-weight: 700;
      }

      .avatar-privacy-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
      }

      .avatar-privacy-card {
        padding: 16px;
        border-radius: 16px;
        background: #f5f8fd;
      }

      .avatar-privacy-card strong,
      .avatar-privacy-card span {
        display: block;
      }

      .avatar-privacy-card strong {
        color: var(--text-primary);
        font-size: 13px;
      }

      .avatar-privacy-card span {
        margin-top: 5px;
        color: var(--text-secondary);
        font-size: 11px;
        font-weight: 500;
        line-height: 1.5;
      }

      @media (max-width: 900px) {
        .avatar-studio-workspace {
          grid-template-columns: 170px minmax(0, 1fr);
        }

        .avatar-main-layout,
        .avatar-makeover-layout {
          grid-template-columns: 1fr;
        }

        .avatar-dressing-room {
          min-height: 0;
        }

        .avatar-stage,
        .avatar-stage img {
          min-height: 500px;
          height: 500px;
        }
      }

      @media (max-width: 1100px) {
        .avatar-studio-view {
          width: 100%;
          height: calc(100svh - 78px);
          min-height: 0;
          overflow-x: hidden;
          overflow-y: auto;
          padding: 10px 10px calc(94px + env(safe-area-inset-bottom));
          -webkit-overflow-scrolling: touch;
        }

        .avatar-studio-header {
          align-items: flex-start;
          margin-bottom: 10px;
          padding: 14px;
          border-radius: 19px;
        }

        .avatar-studio-heading p {
          font-size: 8px;
        }

        .avatar-studio-heading h2 {
          font-size: 29px;
        }

        .avatar-studio-status {
          display: none;
        }

        .avatar-studio-back {
          min-height: 40px;
          padding: 0 12px;
          font-size: 9px;
        }

        .avatar-studio-consent {
          gap: 12px;
          padding: 16px;
          border-radius: 19px;
        }

        .avatar-consent-copy {
          font-size: 11px;
          line-height: 1.5;
        }

        .avatar-consent-actions {
          display: grid;
          grid-template-columns: 0.7fr 1.3fr;
        }

        .avatar-consent-actions button {
          padding: 0 10px;
          font-size: 9px;
        }

        .avatar-studio-workspace {
          grid-template-columns: 1fr;
          gap: 10px;
        }

        .avatar-studio-menu {
          position: static;
          grid-template-columns: repeat(2, minmax(0, 1fr));
          gap: 5px;
          padding: 6px;
          border-radius: 16px;
        }

        .avatar-studio-tab {
          min-width: 0;
          min-height: 54px;
          grid-template-columns: 1fr;
          justify-items: center;
          gap: 2px;
          padding: 5px 3px;
          font-size: 8px;
          text-align: center;
        }

        .avatar-studio-tab i {
          width: 30px;
          height: 30px;
        }

        .avatar-studio-panel {
          padding: 14px;
          border-radius: 19px;
        }

        .avatar-panel-heading {
          margin-bottom: 13px;
        }

        .avatar-panel-heading h3 {
          font-size: 23px;
        }

        .avatar-included-badge {
          padding: 6px 8px;
          font-size: 7px;
        }

        .avatar-main-layout,
        .avatar-makeover-layout {
          gap: 12px;
        }

        .avatar-dressing-room {
          min-height: 0;
        }

        .avatar-studio-room-image {
          object-position: center;
        }

        .avatar-order-times {
          grid-template-columns: 1fr;
        }

        .avatar-order-details {
          grid-template-columns: 1fr;
        }

        .avatar-order-details .full {
          grid-column: auto;
        }

        .avatar-order-actions {
          display: grid;
          grid-template-columns: 0.75fr 1.25fr;
        }

        .avatar-stage,
        .avatar-stage img,
        .avatar-makeover-preview .avatar-stage,
        .avatar-makeover-preview .avatar-stage img {
          min-height: 420px;
          height: 420px;
        }

        .avatar-upload-grid,
        .avatar-privacy-grid {
          grid-template-columns: 1fr;
        }

        .avatar-upload-card {
          min-height: 118px;
        }
      }

      @media (max-width: 390px) {
        .avatar-studio-view {
          padding-right: 8px;
          padding-left: 8px;
        }

        .avatar-studio-header,
        .avatar-studio-panel,
        .avatar-studio-consent {
          border-radius: 17px;
        }

        .avatar-stage,
        .avatar-stage img,
        .avatar-makeover-preview .avatar-stage,
        .avatar-makeover-preview .avatar-stage img {
          min-height: 360px;
          height: 360px;
        }

        .avatar-dressing-room {
          min-height: 0;
        }
      }

      @media (min-width: 901px) and (max-height: 900px) {
        .avatar-studio-view {
          height: 100svh;
          min-height: 0;
          overflow: hidden;
          padding: 8px 0 12px;
        }

        .avatar-studio-header {
          min-height: 66px;
          margin-bottom: 8px;
          padding: 10px 16px;
        }

        .avatar-studio-heading p {
          margin-bottom: 3px;
          font-size: 8px;
        }

        .avatar-studio-heading h2 {
          font-size: 36px;
        }

        .avatar-studio-workspace {
          grid-template-columns: 190px minmax(0, 1fr);
          gap: 12px;
        }

        .avatar-studio-menu {
          top: 8px;
          gap: 5px;
          padding: 9px;
        }

        .avatar-studio-tab {
          min-height: 46px;
          padding: 5px 8px;
        }

        .avatar-studio-panel {
          padding: 16px;
        }

        .avatar-panel-heading {
          margin-bottom: 10px;
        }

        .avatar-panel-heading h3 {
          font-size: 27px;
        }

        .avatar-main-layout {
          gap: 12px;
        }

        .avatar-dressing-room {
          min-height: 0;
        }

        .avatar-studio-controls {
          gap: 8px;
        }

        .avatar-source-card {
          grid-template-columns: 40px minmax(0, 1fr);
          gap: 9px;
          padding: 8px 10px;
        }

        .avatar-source-photo {
          width: 40px;
          height: 40px;
        }

        .avatar-room-personalizer {
          gap: 8px;
          padding: 10px;
        }

        .avatar-studio-field select {
          height: 40px;
        }

        .avatar-radiance-colors button {
          min-height: 32px;
        }

        .avatar-studio-field textarea {
          min-height: 78px;
          max-height: 78px;
          padding: 9px 11px;
        }

        .avatar-studio-primary {
          min-height: 40px;
        }
      }

      @media (min-width: 901px) {
        .avatar-main-layout {
          align-items: stretch;
        }

        .avatar-dressing-room {
          container-type: inline-size;
          height: 100%;
          min-height: 100%;
          aspect-ratio: auto;
          background:
            radial-gradient(ellipse at 40% 0%, rgba(255, 255, 255, 0.64), transparent 56%),
            linear-gradient(180deg, #eee7de 0%, #e7ddd2 58%, #dcd1c5 100%);
        }

        .avatar-dressing-room::before {
          content: "";
          position: absolute;
          z-index: 0;
          inset: 0;
          pointer-events: none;
          background: url("assets/avatar-dressing-room-floor-extension.png") top center / 100% auto no-repeat;
        }

        .avatar-studio-room-image {
          inset: 0 0 auto;
          height: auto;
          aspect-ratio: 1584 / 993;
          object-fit: contain;
          object-position: top center;
          -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 88%, rgba(0, 0, 0, 0.96) 92%, rgba(0, 0, 0, 0.6) 97%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 88%, rgba(0, 0, 0, 0.96) 92%, rgba(0, 0, 0, 0.6) 97%, transparent 100%);
        }

        .avatar-studio-person {
          height: 56.45cqw;
          bottom: calc(100% - 62.05cqw);
        }

        .avatar-dressing-room[data-avatar-position="sofa"] .avatar-studio-person {
          height: 41.38cqw;
          bottom: calc(100% - 58.3cqw);
        }

        .avatar-dressing-room[data-avatar-position="clothes"] .avatar-studio-person {
          height: 52.66cqw;
          bottom: calc(100% - 62.05cqw);
        }

        .avatar-dressing-room[data-avatar-position="mirror"] .avatar-studio-person {
          height: 51.41cqw;
          bottom: calc(100% - 62.05cqw);
        }

        .avatar-studio-reflection {
          height: 26.96cqw;
          bottom: calc(100% - 37.62cqw);
        }

        .avatar-studio-hotspot.sofa { top: 26.96cqw; height: 14.42cqw; }
        .avatar-studio-hotspot.mirror { top: 0.63cqw; height: 32.6cqw; }
        .avatar-studio-hotspot.clothes-everyday,
        .avatar-studio-hotspot.clothes-formal,
        .avatar-studio-hotspot.clothes-relaxed { top: 5.64cqw; height: 40.75cqw; }

        .avatar-studio-panel[data-avatar-panel="main"] .avatar-dressing-room {
          height: auto;
          min-height: 0;
          aspect-ratio: 1584 / 993;
        }
      }

      /* A live full-body scene needs vertical room for the person and camera
         controls; the old photo's landscape ratio clipped Avery on phones. */
      @media (max-width: 900px) {
        .avatar-studio-view { padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
        .avatar-studio-panel[data-avatar-panel="main"] .avatar-dressing-room.engine-backed {
          height: clamp(28rem, 65svh, 44rem);
          min-height: 28rem;
          aspect-ratio: auto;
        }
      }

      html[data-theme="dark"] body.is-logged-in .avatar-studio-view {
        --text-primary: #ffffff;
        --text-secondary: #ffffff;
        --text-muted: #ffffff;
        --text-brand: #397cff;
        --text-on-brand: #ffffff;
        --text-success: #73e2ad;
        --text-danger: #ff8298;
      }

      html[data-theme="dark"] body.is-logged-in .avatar-studio-header,
      html[data-theme="dark"] body.is-logged-in .avatar-studio-menu,
      html[data-theme="dark"] body.is-logged-in .avatar-studio-panel,
      html[data-theme="dark"] body.is-logged-in .avatar-studio-consent {
        border-color: rgba(150, 181, 226, 0.18);
        background: rgba(10, 27, 52, 0.97);
        box-shadow: 0 18px 46px rgba(0, 5, 15, 0.32);
      }

      html[data-theme="dark"] body.is-logged-in .avatar-studio-back,
      html[data-theme="dark"] body.is-logged-in .avatar-studio-status,
      html[data-theme="dark"] body.is-logged-in .avatar-studio-tab.active,
      html[data-theme="dark"] body.is-logged-in .avatar-studio-tab i,
      html[data-theme="dark"] body.is-logged-in .avatar-room-personalizer-heading em {
        color: var(--text-brand);
        background: #163765;
      }

      html[data-theme="dark"] body.is-logged-in .avatar-consent-dignity,
      html[data-theme="dark"] body.is-logged-in .avatar-consent-choice,
      html[data-theme="dark"] body.is-logged-in .avatar-source-card,
      html[data-theme="dark"] body.is-logged-in .avatar-room-personalizer,
      html[data-theme="dark"] body.is-logged-in .avatar-studio-note,
      html[data-theme="dark"] body.is-logged-in .avatar-privacy-card {
        border-color: rgba(150, 181, 226, 0.14);
        background: #10294e;
      }

      html[data-theme="dark"] body.is-logged-in .avatar-studio-field textarea,
      html[data-theme="dark"] body.is-logged-in .avatar-studio-field select,
      html[data-theme="dark"] body.is-logged-in .avatar-order-details .avatar-studio-field input,
      html[data-theme="dark"] body.is-logged-in .avatar-order-times label,
      html[data-theme="dark"] body.is-logged-in .avatar-radiance-colors button,
      html[data-theme="dark"] body.is-logged-in .avatar-occasion-type button,
      html[data-theme="dark"] body.is-logged-in .avatar-upload-card {
        border-color: rgba(150, 181, 226, 0.2);
        color: var(--text-secondary);
        background: #0c213f;
      }

      html[data-theme="dark"] body.is-logged-in .avatar-studio-field textarea::placeholder,
      html[data-theme="dark"] body.is-logged-in .avatar-order-details .avatar-studio-field input::placeholder {
        color: #9fb4d2;
        opacity: 1;
      }

      html[data-theme="dark"] body.is-logged-in .avatar-radiance-colors button.active,
      html[data-theme="dark"] body.is-logged-in .avatar-occasion-type button.active {
        border-color: var(--text-brand);
        color: var(--text-brand);
        background: #183d70;
      }

      html[data-theme="dark"] body.is-logged-in .avatar-included-badge,
      html[data-theme="dark"] body.is-logged-in .avatar-clothing-ready,
      html[data-theme="dark"] body.is-logged-in .avatar-studio-live-status {
        color: var(--text-success);
        background: #103e33;
      }

      html[data-theme="dark"] body.is-logged-in .avatar-stage,
      html[data-theme="dark"] body.is-logged-in .avatar-makeover-preview .avatar-stage {
        background:
          radial-gradient(circle at 50% 28%, rgba(47, 77, 121, 0.72), transparent 42%),
          linear-gradient(145deg, #142d50, #091a33);
      }

      html[data-theme="dark"] body.is-logged-in .avatar-stage-label {
        border-color: #203c64;
        background: rgba(10, 28, 54, 0.94);
      }

      html[data-theme="dark"] body.is-logged-in .avatar-order-dialog {
        border-color: rgba(150, 181, 226, 0.22);
        background: #0a1b34;
        box-shadow: 0 30px 80px rgba(0, 4, 12, 0.56);
      }

      html[data-theme="dark"] body.is-logged-in .avatar-order-dialog .avatar-order-notice {
        color: var(--text-secondary);
        background: #163765;
      }

      html[data-theme="dark"] body.is-logged-in .avatar-order-times label:has(input:checked) {
        border-color: var(--text-brand);
        color: var(--text-brand);
        background: #183d70;
      }

      html[data-theme="dark"] body.is-logged-in .avatar-consent-not-now,
      html[data-theme="dark"] body.is-logged-in .avatar-studio-secondary {
        border-color: rgba(120, 166, 255, 0.34);
        color: var(--text-brand);
        background: #0c213f;
      }

      /* Signed-in dark palette. Palette and depth only: no layout changes. */
      html[data-theme="dark"] body.is-logged-in {
        --ink: #ffffff;
        --ink-soft: #ffffff;
        --blue: #397cff;
        --blue-bright: #397cff;
        --line: rgba(151, 181, 226, 0.2);
        --white: #0c1c33;
        --text-primary: #ffffff;
        --text-secondary: #ffffff;
        --text-muted: #ffffff;
        --text-brand: #397cff;
        --text-on-brand: #ffffff;
        --text-success: #6ee7aa;
        --text-danger: #ff8da1;
        --dark-canvas: #050b14;
        --dark-shell: #071426;
        --dark-surface: #0c1c33;
        --dark-surface-raised: #112542;
        --dark-surface-soft: #162e50;
        --dark-border: rgba(151, 181, 226, 0.2);
        --dark-text: #ffffff;
        --dark-text-secondary: #ffffff;
        --dark-text-muted: #ffffff;
        --dark-brand: #397cff;
        color: var(--dark-text);
        background: var(--dark-canvas);
      }

      html[data-theme="dark"] body.is-logged-in .app-home {
        color: var(--dark-text);
        background:
          radial-gradient(circle at 82% 2%, rgba(54, 116, 222, 0.18), transparent 31%),
          linear-gradient(155deg, #071426 0%, #050b14 72%);
      }

      html[data-theme="dark"] body.is-logged-in .app-wordmark img,
      html[data-theme="dark"] body.is-logged-in .app-sidebar-wordmark img {
        filter:
          drop-shadow(1px 0 rgba(238, 245, 255, 0.76))
          drop-shadow(-1px 0 rgba(238, 245, 255, 0.76))
          drop-shadow(0 1px rgba(238, 245, 255, 0.76))
          drop-shadow(0 -1px rgba(238, 245, 255, 0.76))
          drop-shadow(0 6px 14px rgba(0, 4, 13, 0.34));
        opacity: 1;
      }

      html[data-theme="dark"] body.is-logged-in .app-wordmark,
      html[data-theme="dark"] body.is-logged-in .app-sidebar-wordmark {
        border: 0;
        background: transparent;
        box-shadow: none;
      }

      html[data-theme="dark"] body.is-logged-in .app-topbar,
      html[data-theme="dark"] body.is-logged-in .app-sidebar {
        border-color: var(--dark-border);
        background: rgba(6, 16, 30, 0.92);
        box-shadow: 0 18px 46px rgba(0, 4, 12, 0.34);
        backdrop-filter: blur(24px) saturate(135%);
      }

      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 .app-nav-button,
      html[data-theme="dark"] body.is-logged-in .mobile-tab,
      html[data-theme="dark"] body.is-logged-in .app-header-nav button,
      html[data-theme="dark"] body.is-logged-in .app-topbar .topbar-actions .icon-button {
        color: #ffffff;
      }

      html[data-theme="dark"] body.is-logged-in .app-sidebar-profile-copy strong {
        color: #ffffff;
      }

      html[data-theme="dark"] body.is-logged-in .app-sidebar-profile-copy > span {
        color: #9fb4d2;
      }

      html[data-theme="dark"] body.is-logged-in .app-sidebar-profile-copy > small {
        color: #9b6cff;
      }

      html[data-theme="dark"] body.is-logged-in .app-sidebar-notifications {
        color: #ffffff;
      }

      html[data-theme="dark"] body.is-logged-in .app-nav-button.active,
      html[data-theme="dark"] body.is-logged-in .mobile-tab.active,
      html[data-theme="dark"] body.is-logged-in .app-header-nav button.active {
        color: var(--dark-brand);
        background: transparent;
        box-shadow: none;
      }

      html[data-theme="dark"] body.is-logged-in .icon-button {
        border-color: var(--dark-border);
        color: #ffffff;
        background: linear-gradient(145deg, rgba(22, 46, 80, 0.96), rgba(10, 27, 50, 0.96));
        box-shadow: 0 10px 26px rgba(0, 4, 14, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
      }

      html[data-theme="dark"] body.is-logged-in .notification-dot,
      html[data-theme="dark"] body.is-logged-in .profile-status,
      html[data-theme="dark"] body.is-logged-in .timeline-avatar,
      html[data-theme="dark"] body.is-logged-in .timeline-followed-avatar,
      html[data-theme="dark"] body.is-logged-in .presence-avatar,
      html[data-theme="dark"] body.is-logged-in .top-profile,
      html[data-theme="dark"] body.is-logged-in .app-sidebar-profile {
        border-color: #142a49;
      }

      html[data-theme="dark"] body.is-logged-in .world-panel,
      html[data-theme="dark"] body.is-logged-in .vibe-panel,
      html[data-theme="dark"] body.is-logged-in .desktop-activity,
      html[data-theme="dark"] body.is-logged-in .home-assistant-card,
      html[data-theme="dark"] body.is-logged-in .map-card,
      html[data-theme="dark"] body.is-logged-in .home-family-cluster,
      html[data-theme="dark"] body.is-logged-in .home-family-profile,
      html[data-theme="dark"] body.is-logged-in .friend-discovery,
      html[data-theme="dark"] body.is-logged-in .friend-discovery-card,
      html[data-theme="dark"] body.is-logged-in .attended-preview,
      html[data-theme="dark"] body.is-logged-in .attended-map-label,
      html[data-theme="dark"] body.is-logged-in .attended-event-card,
      html[data-theme="dark"] body.is-logged-in .friends-preview,
      html[data-theme="dark"] body.is-logged-in .friends-preview-header,
      html[data-theme="dark"] body.is-logged-in .map-page-header,
      html[data-theme="dark"] body.is-logged-in .friends-map-label,
      html[data-theme="dark"] body.is-logged-in .friends-map-search,
      html[data-theme="dark"] body.is-logged-in .friends-no-results,
      html[data-theme="dark"] body.is-logged-in .vibe-map-idle,
      html[data-theme="dark"] body.is-logged-in .host-map-preview-card,
      html[data-theme="dark"] body.is-logged-in .friend-card,
      html[data-theme="dark"] body.is-logged-in .people-picker-tabs,
      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 .host-event-preview,
      html[data-theme="dark"] body.is-logged-in .live-event-filters,
      html[data-theme="dark"] body.is-logged-in .friends-map > .live-view-header,
      html[data-theme="dark"] body.is-logged-in .live-map-event-panel,
      html[data-theme="dark"] body.is-logged-in .live-event-card,
      html[data-theme="dark"] body.is-logged-in .timeline-post,
      html[data-theme="dark"] body.is-logged-in .timeline-feed,
      html[data-theme="dark"] body.is-logged-in .timeline-keep-map,
      html[data-theme="dark"] body.is-logged-in .timeline-keep-map-header,
      html[data-theme="dark"] body.is-logged-in .timeline-compose-card,
      html[data-theme="dark"] body.is-logged-in .timeline-heading-plus,
      html[data-theme="dark"] body.is-logged-in .timeline-heading-keep-ups,
      html[data-theme="dark"] body.is-logged-in .timeline-keep-map-marker,
      html[data-theme="dark"] body.is-logged-in .timeline-keep-map-empty,
      html[data-theme="dark"] body.is-logged-in .timeline-map-event-group,
      html[data-theme="dark"] body.is-logged-in .timeline-mobile-map-back,
      html[data-theme="dark"] body.is-logged-in .profile-summary-card,
      html[data-theme="dark"] body.is-logged-in .profile-social-panel,
      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-menu-identity,
      html[data-theme="dark"] body.is-logged-in .profile-invite-person,
      html[data-theme="dark"] body.is-logged-in .profile-invite-new-form,
      html[data-theme="dark"] body.is-logged-in .notification-panel,
      html[data-theme="dark"] body.is-logged-in .notification-connect,
      html[data-theme="dark"] body.is-logged-in .comments-sheet,
      html[data-theme="dark"] body.is-logged-in .location-picker-sheet,
      html[data-theme="dark"] body.is-logged-in .sam-chat-panel {
        border-color: var(--dark-border);
        color: var(--dark-text);
        background: rgba(11, 28, 52, 0.94);
        box-shadow: 0 20px 52px rgba(0, 4, 13, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.045);
        backdrop-filter: blur(22px) saturate(125%);
      }

      html[data-theme="dark"] body.is-logged-in .friends-map > .friends-preview-header,
      html[data-theme="dark"] body.is-logged-in .friends-map > .map-page-header,
      html[data-theme="dark"] body.is-logged-in .friends-map > .live-view-header {
        border-color: var(--dark-border);
        background: rgba(10, 27, 50, 0.92);
        box-shadow: 0 16px 38px rgba(0, 4, 13, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.055);
        backdrop-filter: blur(20px) saturate(130%);
      }

      html[data-theme="dark"] body.is-logged-in .vibe-view .vibe-panel {
        border-color: var(--dark-border);
        background:
          radial-gradient(circle at 8% 0%, rgba(71, 129, 226, 0.16), transparent 33%),
          linear-gradient(135deg, rgba(14, 34, 62, 0.98), rgba(9, 24, 46, 0.98));
        box-shadow: 0 18px 48px rgba(0, 4, 13, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.07);
      }

      html[data-theme="dark"] body.is-logged-in .home-ff-browser,
      html[data-theme="dark"] body.is-logged-in .group-chat-bar,
      html[data-theme="dark"] body.is-logged-in .friends-preview > .group-chat-bar:not([hidden]) {
        border-color: var(--dark-border);
        background: rgba(10, 27, 50, 0.94);
        box-shadow: 0 16px 38px rgba(0, 4, 13, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.06);
      }

      html[data-theme="dark"] body.is-logged-in .home-ff-switch,
      html[data-theme="dark"] body.is-logged-in .friend-discovery-tabs,
      html[data-theme="dark"] body.is-logged-in .profile-social-tabs,
      html[data-theme="dark"] body.is-logged-in .activity-item,
      html[data-theme="dark"] body.is-logged-in .attended-empty,
      html[data-theme="dark"] body.is-logged-in .profile-stat,
      html[data-theme="dark"] body.is-logged-in .profile-setting-row,
      html[data-theme="dark"] body.is-logged-in .profile-security-action,
      html[data-theme="dark"] body.is-logged-in .profile-choice-grid button,
      html[data-theme="dark"] body.is-logged-in .host-choice label,
      html[data-theme="dark"] body.is-logged-in .notification-panel > header button,
      html[data-theme="dark"] body.is-logged-in .timeline-more,
      html[data-theme="dark"] body.is-logged-in .comments-close,
      html[data-theme="dark"] body.is-logged-in .location-picker-close {
        border-color: var(--dark-border);
        color: var(--dark-text-secondary);
        background: var(--dark-surface-raised);
      }

      html[data-theme="dark"] body.is-logged-in .friend-discovery-tabs button.active,
      html[data-theme="dark"] body.is-logged-in .people-picker-tabs button.active,
      html[data-theme="dark"] body.is-logged-in .profile-social-tabs button.active,
      html[data-theme="dark"] body.is-logged-in .profile-choice-grid button[aria-pressed="true"],
      html[data-theme="dark"] body.is-logged-in .live-filter-button.active,
      html[data-theme="dark"] body.is-logged-in .home-ff-open.active {
        border-color: rgba(120, 166, 255, 0.48);
        color: #ffffff;
        background: linear-gradient(145deg, #397cff, #2167f5);
        box-shadow: 0 10px 24px rgba(22, 89, 211, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.18);
      }

      html[data-theme="dark"] body.is-logged-in .friend-discovery-tabs button:not(.active),
      html[data-theme="dark"] body.is-logged-in .people-picker-tabs button:not(.active),
      html[data-theme="dark"] body.is-logged-in .profile-social-tabs button:not(.active),
      html[data-theme="dark"] body.is-logged-in .live-filter-button:not(.active),
      html[data-theme="dark"] body.is-logged-in .home-ff-open:not(.active) {
        color: #ffffff;
        background: transparent;
      }

      html[data-theme="dark"] body.is-logged-in .host-choice label:has(input:checked) {
        border-color: rgba(120, 166, 255, 0.48);
        color: var(--dark-brand);
        background: #183d70;
        box-shadow: 0 9px 22px rgba(0, 4, 13, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.08);
      }

      html[data-theme="dark"] body.is-logged-in .host-event-type-description {
        border-color: rgba(156, 111, 255, 0.46);
        color: #9fb4d2 !important;
        background: #191331;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
      }

      html[data-theme="dark"] body.is-logged-in .host-event-category-trigger,
      html[data-theme="dark"] body.is-logged-in .host-event-category-panel,
      html[data-theme="dark"] body.is-logged-in .host-event-category-option,
      html[data-theme="dark"] body.is-logged-in .host-event-category-close {
        border-color: rgba(145, 190, 255, 0.28);
        color: #f5f8ff;
        background: #07111f;
      }

      html[data-theme="dark"] body.is-logged-in .host-event-category-panel > header {
        border-color: rgba(145, 190, 255, 0.18);
      }

      html[data-theme="dark"] body.is-logged-in .host-event-category-panel h5 {
        color: #ffffff;
      }

      html[data-theme="dark"] body.is-logged-in .host-event-category-trigger small,
      html[data-theme="dark"] body.is-logged-in .host-event-category-panel p,
      html[data-theme="dark"] body.is-logged-in .host-event-category-option small {
        color: #9fb4d2;
      }

      html[data-theme="dark"] body.is-logged-in .host-event-category-option[aria-checked="true"] {
        border-color: rgba(182, 156, 255, 0.74);
        color: #f5f8ff;
        background: #281d4e;
      }

      html[data-theme="dark"] body.is-logged-in .round-action i,
      html[data-theme="dark"] body.is-logged-in .home-bg-icon,
      html[data-theme="dark"] body.is-logged-in .activity-icon,
      html[data-theme="dark"] body.is-logged-in .profile-menu-icon,
      html[data-theme="dark"] body.is-logged-in :is(.vibe-view, .spot-host-actions) .vibe-action i,
      html[data-theme="dark"] body.is-logged-in .avatar-studio-tab i,
      html[data-theme="dark"] body.is-logged-in .avatar-order-icon {
        position: relative;
        overflow: hidden;
        border: 1px solid rgba(148, 184, 255, 0.2);
        color: var(--dark-brand);
        background:
          radial-gradient(circle at 32% 22%, rgba(129, 174, 255, 0.28), transparent 34%),
          linear-gradient(155deg, #245695, #112d53 72%);
        box-shadow:
          0 10px 22px rgba(0, 4, 13, 0.34),
          inset 0 1px 0 rgba(255, 255, 255, 0.24),
          inset 0 -8px 14px rgba(0, 7, 22, 0.2);
      }

      html[data-theme="dark"] body.is-logged-in .round-action i::after,
      html[data-theme="dark"] body.is-logged-in .home-bg-icon::after,
      html[data-theme="dark"] body.is-logged-in .activity-icon::after,
      html[data-theme="dark"] body.is-logged-in .profile-menu-icon::after,
      html[data-theme="dark"] body.is-logged-in :is(.vibe-view, .spot-host-actions) .vibe-action i::after,
      html[data-theme="dark"] body.is-logged-in .avatar-studio-tab i::after,
      html[data-theme="dark"] body.is-logged-in .avatar-order-icon::after {
        content: "";
        position: absolute;
        top: 5%;
        right: 18%;
        left: 18%;
        height: 28%;
        border-radius: 999px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent);
        pointer-events: none;
      }

      html[data-theme="dark"] body.is-logged-in .round-action i svg,
      html[data-theme="dark"] body.is-logged-in .home-bg-icon svg,
      html[data-theme="dark"] body.is-logged-in .activity-icon svg,
      html[data-theme="dark"] body.is-logged-in .profile-menu-icon svg,
      html[data-theme="dark"] body.is-logged-in :is(.vibe-view, .spot-host-actions) .vibe-action i svg,
      html[data-theme="dark"] body.is-logged-in .avatar-studio-tab i svg,
      html[data-theme="dark"] body.is-logged-in .avatar-order-icon svg {
        position: relative;
        z-index: 1;
        stroke-width: 2.35;
        filter: drop-shadow(0 2px 3px rgba(0, 5, 16, 0.42));
      }

      html[data-theme="dark"] body.is-logged-in :is(.vibe-view, .spot-host-actions) .vibe-action:nth-child(2) i,
      html[data-theme="dark"] body.is-logged-in :is(.vibe-view, .spot-host-actions) .vibe-action:nth-child(3) i,
      html[data-theme="dark"] body.is-logged-in :is(.vibe-view, .spot-host-actions) .vibe-action:nth-child(4) i {
        color: #6ee7bd;
        border-color: rgba(110, 231, 189, 0.2);
        background:
          radial-gradient(circle at 32% 22%, rgba(132, 255, 215, 0.24), transparent 34%),
          linear-gradient(155deg, #176451, #0c352f 72%);
        box-shadow: 0 10px 22px rgba(3, 73, 57, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -8px 14px rgba(0, 25, 21, 0.2);
      }

      html[data-theme="dark"] body.is-logged-in :is(.vibe-view, .spot-host-actions) .vibe-action:nth-child(5) i {
        color: #ffb078;
        border-color: rgba(255, 176, 120, 0.22);
        background:
          radial-gradient(circle at 32% 22%, rgba(255, 194, 149, 0.25), transparent 34%),
          linear-gradient(155deg, #80462d, #48271f 72%);
        box-shadow: 0 10px 22px rgba(83, 38, 20, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -8px 14px rgba(35, 8, 2, 0.2);
      }

      html[data-theme="dark"] body.is-logged-in :is(.vibe-view, .spot-host-actions) .vibe-action:is(:nth-child(6), [data-spot-host-event]) i {
        color: #c3a4ff;
        border-color: rgba(195, 164, 255, 0.22);
        background:
          radial-gradient(circle at 32% 22%, rgba(208, 184, 255, 0.26), transparent 34%),
          linear-gradient(155deg, #6346a9, #342665 72%);
        box-shadow: 0 10px 22px rgba(44, 26, 91, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -8px 14px rgba(16, 5, 40, 0.22);
      }

      html[data-theme="dark"] body.is-logged-in :is(.vibe-view, .spot-host-actions) .vibe-action {
        color: #ffffff;
        background: rgba(17, 38, 68, 0.8);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
        font-weight: 700;
      }

      html[data-theme="dark"] body.is-logged-in :is(.vibe-view, .spot-host-actions) .vibe-action:hover {
        color: #ffffff;
        background: #19365d;
        box-shadow: 0 12px 28px rgba(0, 4, 13, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.09);
      }

      html[data-theme="dark"] body.is-logged-in :is(.vibe-view, .spot-host-actions) .vibe-action:hover i,
      html[data-theme="dark"] body.is-logged-in .round-action:hover i,
      html[data-theme="dark"] body.is-logged-in .home-bg-card:hover .home-bg-icon {
        transform: translateY(-2px) scale(1.04);
      }

      html[data-theme="dark"] body.is-logged-in :is(.vibe-view, .spot-host-actions) .vibe-action:active i,
      html[data-theme="dark"] body.is-logged-in .round-action:active i,
      html[data-theme="dark"] body.is-logged-in .home-bg-card:active .home-bg-icon {
        transform: translateY(0) scale(0.96);
      }

      html[data-theme="dark"] body.is-logged-in :is(.vibe-view, .spot-host-actions) .vibe-action i,
      html[data-theme="dark"] body.is-logged-in .round-action i,
      html[data-theme="dark"] body.is-logged-in .home-bg-icon {
        transition: transform var(--sp-dur-glide) var(--sp-ease-glide), box-shadow 160ms ease, filter 160ms ease;
      }

      html[data-theme="dark"] body.is-logged-in .mobile-tab svg,
      html[data-theme="dark"] body.is-logged-in .app-nav-button svg,
      html[data-theme="dark"] body.is-logged-in .icon-button svg {
        stroke-width: 2.25;
        filter: drop-shadow(0 2px 3px rgba(0, 4, 13, 0.34));
      }

      html[data-theme="dark"] body.is-logged-in .mobile-tab.active svg,
      html[data-theme="dark"] body.is-logged-in .app-nav-button.active svg {
        filter: drop-shadow(0 0 7px rgba(120, 166, 255, 0.38));
      }

      html[data-theme="dark"] body.is-logged-in .event-action,
      html[data-theme="dark"] body.is-logged-in .timeline-action,
      html[data-theme="dark"] body.is-logged-in .group-chat-bar button,
      html[data-theme="dark"] body.is-logged-in .attended-empty button,
      html[data-theme="dark"] body.is-logged-in .friend-request-button.requested,
      html[data-theme="dark"] body.is-logged-in .profile-invite-select,
      html[data-theme="dark"] body.is-logged-in .profile-invite-new-toggle {
        border-color: var(--dark-border);
        color: #ffffff;
        background: linear-gradient(145deg, #142d4e, #0e223d);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
      }

      html[data-theme="dark"] body.is-logged-in .profile-invite-new-toggle { color: #b794ff; }

      html[data-theme="dark"] body.is-logged-in .event-action:hover,
      html[data-theme="dark"] body.is-logged-in .timeline-action:hover,
      html[data-theme="dark"] body.is-logged-in .group-chat-bar button:hover {
        border-color: rgba(120, 166, 255, 0.48);
        color: #ffffff;
        background: #19385f;
      }

      html[data-theme="dark"] body.is-logged-in .event-action.liked,
      html[data-theme="dark"] body.is-logged-in .event-like,
      html[data-theme="dark"] body.is-logged-in .timeline-action.liked,
      html[data-theme="dark"] body.is-logged-in .timeline-like {
        border-color: rgba(120, 166, 255, 0.4);
        color: var(--dark-brand);
        background: #153765;
      }

      html[data-theme="dark"] body.is-logged-in .event-action.kept,
      html[data-theme="dark"] body.is-logged-in .timeline-action.kept,
      html[data-theme="dark"] body.is-logged-in .event-keep,
      html[data-theme="dark"] body.is-logged-in .timeline-keep {
        border-color: rgba(110, 231, 170, 0.32);
        color: #6ee7aa;
        background: #103e33;
      }

      html[data-theme="dark"] body.is-logged-in .event-share,
      html[data-theme="dark"] body.is-logged-in .timeline-share {
        border-color: rgba(195, 164, 255, 0.3);
        color: #c3a4ff;
        background: #30245e;
      }

      html[data-theme="dark"] body.is-logged-in .event-action.attending,
      html[data-theme="dark"] body.is-logged-in .event-watch,
      html[data-theme="dark"] body.is-logged-in .mini-primary,
      html[data-theme="dark"] body.is-logged-in .profile-invite-send {
        border-color: var(--dark-brand);
        color: #ffffff;
        background: linear-gradient(145deg, #397cff, #2167f5);
        box-shadow: 0 10px 24px rgba(22, 89, 211, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.16);
      }

      html[data-theme="dark"] body.is-logged-in input,
      html[data-theme="dark"] body.is-logged-in textarea,
      html[data-theme="dark"] body.is-logged-in select,
      html[data-theme="dark"] body.is-logged-in .friend-discovery-search,
      html[data-theme="dark"] body.is-logged-in .location-picker-search,
      html[data-theme="dark"] body.is-logged-in .comments-form,
      html[data-theme="dark"] body.is-logged-in .comments-form input,
      html[data-theme="dark"] body.is-logged-in .profile-invite-search input,
      html[data-theme="dark"] body.is-logged-in .profile-invite-field input,
      html[data-theme="dark"] body.is-logged-in .host-field input,
      html[data-theme="dark"] body.is-logged-in .host-field select,
      html[data-theme="dark"] body.is-logged-in .host-field textarea,
      html[data-theme="dark"] body.is-logged-in .host-period-choice,
      html[data-theme="dark"] body.is-logged-in .vibe-chat-form textarea {
        border-color: var(--dark-border);
        color: var(--dark-text);
        background-color: #091b32;
        color-scheme: dark;
      }

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

      html[data-theme="dark"] body.is-logged-in .host-location-part + .host-location-part {
        border-left-color: var(--dark-border);
      }

      html[data-theme="dark"] body.is-logged-in .location-picker-trigger {
        color: var(--dark-text);
      }

      html[data-theme="dark"] body.is-logged-in .location-picker-trigger svg {
        color: var(--dark-text-secondary);
      }

      html[data-theme="dark"] body.is-logged-in input::placeholder,
      html[data-theme="dark"] body.is-logged-in textarea::placeholder {
        color: #ffffff;
        opacity: 1;
      }

      html[data-theme="dark"] body.is-logged-in .welcome-copy h2,
      html[data-theme="dark"] body.is-logged-in .panel-title h3,
      html[data-theme="dark"] body.is-logged-in .home-assistant-card strong,
      html[data-theme="dark"] body.is-logged-in .friend-discovery header strong,
      html[data-theme="dark"] body.is-logged-in .friend-discovery-copy strong,
      html[data-theme="dark"] body.is-logged-in .attended-preview-header h4,
      html[data-theme="dark"] body.is-logged-in .attended-event-copy strong,
      html[data-theme="dark"] body.is-logged-in .friends-preview-header h4,
      html[data-theme="dark"] body.is-logged-in .friend-copy strong,
      html[data-theme="dark"] body.is-logged-in .vibe-chat-heading strong,
      html[data-theme="dark"] body.is-logged-in .vibe-call-heading strong,
      html[data-theme="dark"] body.is-logged-in .host-event-header h4,
      html[data-theme="dark"] body.is-logged-in .live-view-header h2,
      html[data-theme="dark"] body.is-logged-in .live-map-event-copy > strong,
      html[data-theme="dark"] body.is-logged-in .live-event-host strong,
      html[data-theme="dark"] body.is-logged-in .timeline-header h2,
      html[data-theme="dark"] body.is-logged-in .timeline-keep-map-header h3,
      html[data-theme="dark"] body.is-logged-in .timeline-keeping-up > strong,
      html[data-theme="dark"] body.is-logged-in .timeline-author strong,
      html[data-theme="dark"] body.is-logged-in .timeline-presence strong,
      html[data-theme="dark"] body.is-logged-in .map-page-header h2,
      html[data-theme="dark"] body.is-logged-in .map-page-header h4,
      html[data-theme="dark"] body.is-logged-in .profile-summary-copy strong,
      html[data-theme="dark"] body.is-logged-in .profile-social-copy strong,
      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 .comments-header h3,
      html[data-theme="dark"] body.is-logged-in .location-picker-header h3,
      html[data-theme="dark"] body.is-logged-in .comment-copy strong {
        color: var(--dark-text);
      }

      html[data-theme="dark"] body.is-logged-in .welcome-copy p,
      html[data-theme="dark"] body.is-logged-in .home-assistant-card span,
      html[data-theme="dark"] body.is-logged-in .home-assistant-card small,
      html[data-theme="dark"] body.is-logged-in .toolbar-note,
      html[data-theme="dark"] body.is-logged-in .location-pill span,
      html[data-theme="dark"] body.is-logged-in .home-ff-position,
      html[data-theme="dark"] body.is-logged-in .friend-discovery-copy span,
      html[data-theme="dark"] body.is-logged-in .friend-discovery-copy small,
      html[data-theme="dark"] body.is-logged-in .person-line small,
      html[data-theme="dark"] body.is-logged-in .round-action,
      html[data-theme="dark"] body.is-logged-in .home-bg-card small,
      html[data-theme="dark"] body.is-logged-in .permission-strip,
      html[data-theme="dark"] body.is-logged-in .vibe-quote,
      html[data-theme="dark"] body.is-logged-in .activity-item small,
      html[data-theme="dark"] body.is-logged-in .attended-preview-header p,
      html[data-theme="dark"] body.is-logged-in .attended-event-copy span,
      html[data-theme="dark"] body.is-logged-in .attended-event-copy small,
      html[data-theme="dark"] body.is-logged-in .friends-preview-header p,
      html[data-theme="dark"] body.is-logged-in .friend-copy span,
      html[data-theme="dark"] body.is-logged-in .vibe-message small,
      html[data-theme="dark"] body.is-logged-in .vibe-chat-heading span,
      html[data-theme="dark"] body.is-logged-in .vibe-call-heading span,
      html[data-theme="dark"] body.is-logged-in .host-event-header p,
      html[data-theme="dark"] body.is-logged-in .host-field > span,
      html[data-theme="dark"] body.is-logged-in .host-location-part > span,
      html[data-theme="dark"] body.is-logged-in .live-view-header p,
      html[data-theme="dark"] body.is-logged-in .live-map-event-copy > small,
      html[data-theme="dark"] body.is-logged-in .live-event-host,
      html[data-theme="dark"] body.is-logged-in .timeline-header p,
      html[data-theme="dark"] body.is-logged-in .timeline-keep-map-header p,
      html[data-theme="dark"] body.is-logged-in .timeline-keep-map-header small,
      html[data-theme="dark"] body.is-logged-in .timeline-keep-map-copy small,
      html[data-theme="dark"] body.is-logged-in .timeline-author span,
      html[data-theme="dark"] body.is-logged-in .timeline-copy,
      html[data-theme="dark"] body.is-logged-in .timeline-presence,
      html[data-theme="dark"] body.is-logged-in .map-page-header p,
      html[data-theme="dark"] body.is-logged-in .profile-summary-copy span,
      html[data-theme="dark"] body.is-logged-in .profile-social-copy span,
      html[data-theme="dark"] body.is-logged-in .profile-social-copy small,
      html[data-theme="dark"] body.is-logged-in .profile-menu-copy small,
      html[data-theme="dark"] body.is-logged-in .profile-menu-identity span,
      html[data-theme="dark"] body.is-logged-in .profile-menu-identity small,
      html[data-theme="dark"] body.is-logged-in .profile-setting-row small,
      html[data-theme="dark"] body.is-logged-in .profile-settings-status,
      html[data-theme="dark"] body.is-logged-in .comments-header p,
      html[data-theme="dark"] body.is-logged-in .comment-copy p,
      html[data-theme="dark"] body.is-logged-in .comment-copy small,
      html[data-theme="dark"] body.is-logged-in .location-picker-header p,
      html[data-theme="dark"] body.is-logged-in .notification-empty {
        color: var(--dark-text-secondary);
        font-weight: 500;
      }

      html[data-theme="dark"] body.is-logged-in .profile-menu-label,
      html[data-theme="dark"] body.is-logged-in .profile-detail-intro,
      html[data-theme="dark"] body.is-logged-in .profile-stat span,
      html[data-theme="dark"] body.is-logged-in .timeline-map-event-heading,
      html[data-theme="dark"] body.is-logged-in .live-map-event-copy > span {
        color: var(--dark-text-muted);
      }

      html[data-theme="dark"] body.is-logged-in .location-picker-option {
        color: var(--dark-text-secondary);
      }

      html[data-theme="dark"] body.is-logged-in .location-picker-option:hover,
      html[data-theme="dark"] body.is-logged-in .location-picker-option.selected,
      html[data-theme="dark"] body.is-logged-in .home-ff-arrow:hover,
      html[data-theme="dark"] body.is-logged-in .home-ff-arrow:focus-visible,
      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 {
        color: var(--dark-brand);
        background: var(--dark-surface-soft);
      }

      html[data-theme="dark"] body.is-logged-in .relationship-pill {
        color: var(--dark-brand);
        background: #153765;
      }

      html[data-theme="dark"] body.is-logged-in .vibe-message {
        color: #ffffff;
        background: #163253;
      }

      html[data-theme="dark"] body.is-logged-in .vibe-message.mine {
        color: #ffffff;
        background: linear-gradient(145deg, #397cff, #2167f5);
      }

      html[data-theme="dark"] body.is-logged-in .event-seat-count,
      html[data-theme="dark"] body.is-logged-in .live-map-event-attending {
        color: #6ee7aa;
      }

      html[data-theme="dark"] body.is-logged-in .event-seat-count.sold-out,
      html[data-theme="dark"] body.is-logged-in .profile-menu-item.logout,
      html[data-theme="dark"] body.is-logged-in .profile-invite-age-warning {
        color: #ff8da1;
      }

      /* In light mode, supporting copy uses the same dark-navy signature instead of gray. */
      html:not([data-theme="dark"]) body.is-logged-in .welcome-copy p,
      html:not([data-theme="dark"]) body.is-logged-in .home-assistant-card span,
      html:not([data-theme="dark"]) body.is-logged-in .home-assistant-card small,
      html:not([data-theme="dark"]) body.is-logged-in .toolbar-note,
      html:not([data-theme="dark"]) body.is-logged-in .location-pill span,
      html:not([data-theme="dark"]) body.is-logged-in .home-ff-position,
      html:not([data-theme="dark"]) body.is-logged-in .friend-discovery-copy span,
      html:not([data-theme="dark"]) body.is-logged-in .friend-discovery-copy small,
      html:not([data-theme="dark"]) body.is-logged-in .person-line small,
      html:not([data-theme="dark"]) body.is-logged-in .round-action,
      html:not([data-theme="dark"]) body.is-logged-in .home-bg-card small,
      html:not([data-theme="dark"]) body.is-logged-in .permission-strip,
      html:not([data-theme="dark"]) body.is-logged-in .vibe-quote,
      html:not([data-theme="dark"]) body.is-logged-in .activity-item small,
      html:not([data-theme="dark"]) body.is-logged-in .attended-preview-header p,
      html:not([data-theme="dark"]) body.is-logged-in .attended-event-copy span,
      html:not([data-theme="dark"]) body.is-logged-in .attended-event-copy small,
      html:not([data-theme="dark"]) body.is-logged-in .friends-preview-header p,
      html:not([data-theme="dark"]) body.is-logged-in .friend-copy span,
      html:not([data-theme="dark"]) body.is-logged-in .vibe-message small,
      html:not([data-theme="dark"]) body.is-logged-in .vibe-chat-heading span,
      html:not([data-theme="dark"]) body.is-logged-in .vibe-call-heading span,
      html:not([data-theme="dark"]) body.is-logged-in .host-event-header p,
      html:not([data-theme="dark"]) body.is-logged-in .host-field > span,
      html:not([data-theme="dark"]) body.is-logged-in .host-location-part > span,
      html:not([data-theme="dark"]) body.is-logged-in .live-view-header p,
      html:not([data-theme="dark"]) body.is-logged-in .live-map-event-copy > small,
      html:not([data-theme="dark"]) body.is-logged-in .live-event-host,
      html:not([data-theme="dark"]) body.is-logged-in .timeline-header p,
      html:not([data-theme="dark"]) body.is-logged-in .timeline-keep-map-header p,
      html:not([data-theme="dark"]) body.is-logged-in .timeline-keep-map-header small,
      html:not([data-theme="dark"]) body.is-logged-in .timeline-keep-map-copy small,
      html:not([data-theme="dark"]) body.is-logged-in .timeline-author span,
      html:not([data-theme="dark"]) body.is-logged-in .timeline-copy,
      html:not([data-theme="dark"]) body.is-logged-in .timeline-presence,
      html:not([data-theme="dark"]) body.is-logged-in .map-page-header p,
      html:not([data-theme="dark"]) body.is-logged-in .profile-summary-copy span,
      html:not([data-theme="dark"]) body.is-logged-in .profile-social-copy span,
      html:not([data-theme="dark"]) body.is-logged-in .profile-social-copy small,
      html:not([data-theme="dark"]) body.is-logged-in .profile-menu-copy small,
      html:not([data-theme="dark"]) body.is-logged-in .profile-menu-identity span,
      html:not([data-theme="dark"]) body.is-logged-in .profile-menu-identity small,
      html:not([data-theme="dark"]) body.is-logged-in .profile-setting-row small,
      html:not([data-theme="dark"]) body.is-logged-in .profile-settings-status,
      html:not([data-theme="dark"]) body.is-logged-in .comments-header p,
      html:not([data-theme="dark"]) body.is-logged-in .comment-copy p,
      html:not([data-theme="dark"]) body.is-logged-in .comment-copy small,
      html:not([data-theme="dark"]) body.is-logged-in .location-picker-header p,
      html:not([data-theme="dark"]) body.is-logged-in .notification-empty,
      html:not([data-theme="dark"]) body.is-logged-in .profile-menu-label,
      html:not([data-theme="dark"]) body.is-logged-in .profile-detail-intro,
      html:not([data-theme="dark"]) body.is-logged-in .profile-stat span,
      html:not([data-theme="dark"]) body.is-logged-in .timeline-map-event-heading,
      html:not([data-theme="dark"]) body.is-logged-in .live-map-event-copy > span,
      html:not([data-theme="dark"]) body.is-logged-in .app-nav-button,
      html:not([data-theme="dark"]) body.is-logged-in .mobile-tab,
      html:not([data-theme="dark"]) body.is-logged-in .app-header-nav button,
      html:not([data-theme="dark"]) body.is-logged-in .home-ff-open:not(.active),
      html:not([data-theme="dark"]) body.is-logged-in .vibe-action,
      html:not([data-theme="dark"]) body.is-logged-in .vibe-map-idle,
      html:not([data-theme="dark"]) body.is-logged-in .live-filter-button:not(.active) {
        color: #0b285b;
      }

      /* A single refined navigation icon language, without icon cards. */
      body.is-logged-in .app-nav-button,
      body.is-logged-in .mobile-tab {
        letter-spacing: 0.01em;
      }

      body.is-logged-in .app-nav-button svg,
      body.is-logged-in .mobile-tab svg {
        overflow: visible;
        transform-origin: center;
        filter: drop-shadow(0 2px 3px rgba(5, 22, 49, 0.18));
        transition: transform var(--sp-dur-glide) var(--sp-ease-glide), filter 160ms ease, color 160ms ease;
      }

      body.is-logged-in .app-nav-button .nav-icon-accent,
      body.is-logged-in .mobile-tab .nav-icon-accent {
        opacity: 0.38;
        transition: opacity 160ms ease;
      }

      body.is-logged-in .app-nav-button.active,
      body.is-logged-in .mobile-tab.active {
        color: var(--blue);
        background: transparent;
        box-shadow: none;
        font-weight: 700;
      }

      body.is-logged-in .app-nav-button.active svg,
      body.is-logged-in .mobile-tab.active svg {
        transform: translateY(-1px) scale(1.08);
        filter: drop-shadow(0 0 6px rgba(57, 124, 255, 0.34)) drop-shadow(0 3px 4px rgba(5, 22, 49, 0.2));
      }

      body.is-logged-in .app-nav-button.active .nav-icon-accent,
      body.is-logged-in .mobile-tab.active .nav-icon-accent {
        opacity: 1;
      }

      body.is-logged-in .app-nav-button:active svg,
      body.is-logged-in .mobile-tab:active svg {
        transform: scale(0.94);
      }

      /* Page headings stay open on the scene instead of sitting in cards. */
      body.is-logged-in .app-heading-row,
      body.is-logged-in .map-page-header,
      body.is-logged-in .friends-preview-header,
      body.is-logged-in .friends-map > .friends-preview-header,
      body.is-logged-in .live-view-header,
      body.is-logged-in .friends-map > .live-view-header,
      body.is-logged-in .timeline-header,
      body.is-logged-in .avatar-studio-header,
      html[data-theme="dark"] body.is-logged-in .app-heading-row,
      html[data-theme="dark"] body.is-logged-in .map-page-header,
      html[data-theme="dark"] body.is-logged-in .friends-preview-header,
      html[data-theme="dark"] body.is-logged-in .friends-map > .friends-preview-header,
      html[data-theme="dark"] body.is-logged-in .live-view-header,
      html[data-theme="dark"] body.is-logged-in .friends-map > .live-view-header,
      html[data-theme="dark"] body.is-logged-in .timeline-header,
      html[data-theme="dark"] body.is-logged-in .avatar-studio-header {
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none !important;
        backdrop-filter: none;
      }

      body.is-logged-in .friends-map > .map-page-header h2,
      body.is-logged-in .friends-map > .map-page-header h4,
      body.is-logged-in .friends-map > .map-page-header p {
        text-shadow: 0 2px 12px rgba(3, 15, 36, 0.34);
      }

      /* One typography signature for every primary page title. */
      body.is-logged-in .page-heading-title,
      body.is-logged-in .map-page-header h2.page-heading-title,
      body.is-logged-in .map-page-header h4.page-heading-title {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
        font-size: clamp(36px, 3.4vw, 48px);
        font-style: normal;
        font-weight: 700;
        font-synthesis: none;
        letter-spacing: -0.055em;
        line-height: 0.98;
        text-rendering: optimizeLegibility;
      }

      @media (max-width: 1100px) {
        body.is-logged-in .mobile-bottom-nav,
        html[data-theme="dark"] body.is-logged-in .mobile-bottom-nav {
          border: 0;
          border-radius: 0;
          background: transparent;
          box-shadow: none;
          backdrop-filter: none;
        }

        body.is-logged-in .page-heading-title,
        body.is-logged-in .map-page-header h2.page-heading-title,
        body.is-logged-in .map-page-header h4.page-heading-title {
          font-size: 34px;
        }
      }

      body.is-logged-in .friends-preview > .group-chat-bar:not([hidden]) {
        position: absolute;
        z-index: 30;
        right: 18px;
        bottom: 16px;
        left: 18px;
        border: 1px solid rgba(255, 255, 255, 0.82);
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.94);
        box-shadow: 0 12px 30px rgba(9, 37, 80, 0.18);
        backdrop-filter: blur(16px);
      }

      @media (max-width: 1100px) {
        .people-picker-tabs {
          top: 88px;
        }

        body.is-logged-in .friends-preview > .group-chat-bar:not([hidden]) {
          position: fixed;
          z-index: 42;
          right: 12px;
          bottom: calc(144px + env(safe-area-inset-bottom));
          left: 12px;
        }
      }

      /* Vibe picker on phones: one-line "Your vibe!", compact Family/Friends switch, selection bar just above the tab bar (matches the app). */
      @media (max-width: 600px) {
        body.is-logged-in[data-app-view="vibe"] .vibe-view > .friends-preview { min-width: 0; max-width: 100%; }
        body.is-logged-in[data-app-view="vibe"] .friends-preview-header > div:first-child { min-width: 0; flex: 0 1 auto; }
        body.is-logged-in[data-app-view="vibe"] .friends-preview-header #friends-preview-title { white-space: nowrap; font-size: clamp(20px, 7.4vw, 34px); }
        html:root body.is-logged-in[data-app-view="vibe"] .vibe-people-filters { flex: 0 1 52%; width: 52%; max-width: calc(100% - 144px); min-width: 0; min-height: 0; padding: 6px 4px; gap: 2px; }
        html:root body.is-logged-in[data-app-view="vibe"] .vibe-people-filters .sp-seg-item { min-height: 36px; padding: 0 10px; font-size: 12px; }
        html:root body.is-logged-in[data-app-view="vibe"] .vibe-people-filters [data-vibe-page] { font-size: 22px; padding: 0 4px; min-width: 22px; }
        body.is-logged-in .friends-preview > .group-chat-bar:not([hidden]) { bottom: calc(84px + env(safe-area-inset-bottom)); }
        body.is-logged-in[data-app-view="vibe"] .vibe-view .friends-map > .friends-no-results:not([hidden]) { top: 67px; transform: translateX(-50%); }
      }

      /* Vibe person card on phones (matches the app): one card across the width under History and search, not a
         small card pinned to a spot on the picture; no map pin or status dot; a plus to choose; app-sized text. */
      @media (max-width: 600px) {
        html:root body.is-logged-in[data-app-view="vibe"] .vibe-view .friend-card,
        html:root body.is-logged-in[data-app-view="vibe"] .vibe-view .friend-card.selected {
          left: 16px; right: 16px; top: 70px; width: auto; max-width: none; transform: none;
          grid-template-columns: 58px minmax(0, 1fr) 34px; column-gap: 12px; min-height: 92px; padding: 6px 12px 6px 8px;
          border-width: 2px; border-radius: 18px;
        }
        html:root body.is-logged-in[data-app-view="vibe"] .vibe-view .friend-card::after,
        html:root body.is-logged-in[data-app-view="vibe"] .vibe-view .friend-card .friend-presence::before { display: none; }
        html:root body.is-logged-in[data-app-view="vibe"] .vibe-view .friend-card .friend-copy strong { font-size: 15px; }
        html:root body.is-logged-in[data-app-view="vibe"] .vibe-view .friend-card .friend-copy .friend-presence,
        html:root body.is-logged-in[data-app-view="vibe"] .vibe-view .friend-card .friend-place { font-size: 12px; }
        html:root body.is-logged-in[data-app-view="vibe"] .vibe-view .friend-card .friend-place .spossity-location-pin { width: 12px; height: 15px; }
        html:root body.is-logged-in[data-app-view="vibe"] .vibe-view .friend-card .friend-text-button { width: 34px; height: 34px; }
        html:root body.is-logged-in[data-app-view="vibe"] .vibe-view .friend-card .friend-text-button svg { width: 20px; height: 20px; }
        html:root body.is-logged-in .friends-preview > .group-chat-bar { min-height: 64px; padding: 10px 10px 10px 16px; border-radius: 17px; }
        html:root body.is-logged-in .friends-preview > .group-chat-bar > span { color: inherit; font-size: 14px; font-weight: 800; }
        html:root[data-theme="dark"] body.is-logged-in .friends-preview > .group-chat-bar { background: #050b14; border-color: rgba(145, 190, 255, 0.28); color: #ffffff; }
        html:root body.is-logged-in .friends-preview > .group-chat-bar [data-start-group] {
          min-height: 44px; padding: 0 17px; border: 1.5px solid rgba(161, 204, 255, 0.9); border-radius: 13px;
          background: #2167f5; color: #ffffff; font-size: 15px; font-weight: 800; box-shadow: 0 4px 8px rgba(11, 62, 138, 0.3);
        }
        html:root body.is-logged-in .friends-preview > .group-chat-bar [data-start-group]:disabled { opacity: 0.45; }
      }

      /* Vibe person card on iPad (matches the app): under History, about half the width; search no wider than
         300; no map pin or status dot; the selection bar appears once someone is chosen. Sizes are the app's
         (the page is already scaled to the app's tablet scale). */
      html[data-tablet-scale]:not([data-tablet-scale=""]) body.is-logged-in[data-app-view="vibe"] .vibe-view .friend-card,
      html[data-tablet-scale]:not([data-tablet-scale=""]) body.is-logged-in[data-app-view="vibe"] .vibe-view .friend-card.selected {
        left: 14px; top: 70px; width: calc((100% - 28px) * 0.48); max-width: 480px; transform: none;
        grid-template-columns: 66px minmax(0, 1fr) 36px; column-gap: 12px; min-height: 92px; padding: 6px 14px 6px 8px;
        border-width: 2px; border-radius: 18px;
      }
      html[data-tablet-scale]:not([data-tablet-scale=""]) body.is-logged-in[data-app-view="vibe"] .vibe-view .friend-card::after,
      html[data-tablet-scale]:not([data-tablet-scale=""]) body.is-logged-in[data-app-view="vibe"] .vibe-view .friend-card .friend-presence::before { display: none; }
      html[data-tablet-scale]:not([data-tablet-scale=""]) body.is-logged-in[data-app-view="vibe"] .vibe-view .friend-card .friend-copy strong { font-size: 15px; }
      html[data-tablet-scale]:not([data-tablet-scale=""]) body.is-logged-in[data-app-view="vibe"] .vibe-view .friend-card .friend-copy .friend-presence,
      html[data-tablet-scale]:not([data-tablet-scale=""]) body.is-logged-in[data-app-view="vibe"] .vibe-view .friend-card .friend-place { font-size: 12px; }
      html[data-tablet-scale]:not([data-tablet-scale=""]) body.is-logged-in[data-app-view="vibe"] .vibe-view .friend-card .friend-text-button { width: 36px; height: 36px; }
      html[data-tablet-scale]:not([data-tablet-scale=""]) body.is-logged-in[data-app-view="vibe"] .vibe-view .friend-card .friend-text-button svg { width: 21px; height: 21px; }
      html[data-tablet-scale]:not([data-tablet-scale=""]) body.is-logged-in[data-app-view="vibe"] .vibe-view .friends-map-search { max-width: 300px; }
      html[data-tablet-scale]:not([data-tablet-scale=""]) body.is-logged-in .friends-preview > .group-chat-bar[data-empty="true"] { display: none; }
      html[data-tablet-scale]:not([data-tablet-scale=""]) body.is-logged-in .friends-preview > .group-chat-bar { left: auto; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); width: auto; max-width: 300px; min-height: 76px; padding: 12px 12px 12px 16px; gap: 10px; border-radius: 18px; transform: none; }
      html[data-tablet-scale]:not([data-tablet-scale=""]) body.is-logged-in .friends-preview > .group-chat-bar > span { color: inherit; font-size: 14px; font-weight: 800; }
      html[data-tablet-scale]:not([data-tablet-scale=""])[data-theme="dark"] body.is-logged-in .friends-preview > .group-chat-bar { background: #050b14; border-color: rgba(145, 190, 255, 0.28); color: #ffffff; }
      html[data-tablet-scale]:not([data-tablet-scale=""]) body.is-logged-in .friends-preview > .group-chat-bar [data-start-group] {
        min-height: 44px; padding: 0 12px; border: 1.5px solid rgba(161, 204, 255, 0.9); border-radius: 12px;
        background: #2167f5; color: #ffffff; font-size: 15px; font-weight: 800; box-shadow: 0 4px 8px rgba(11, 62, 138, 0.3);
      }

      @media (max-width: 360px) {
        html:root body.is-logged-in[data-app-view="vibe"] .vibe-people-filters .sp-seg-item { padding: 0 7px; font-size: 11px; }
        html:root body.is-logged-in[data-app-view="vibe"] .vibe-people-filters [data-vibe-page] { padding: 0 2px; min-width: 16px; }
      }

      /* Live filters on phones: Live Now, Upcoming, Calendar and Host Live stay on one row, like the app. */
      @media (max-width: 600px) {
        html:root body.is-logged-in .live-view-controls .live-event-filters { flex-wrap: nowrap; gap: 6px; width: 100%; box-sizing: border-box; }
        html:root body.is-logged-in .live-view-controls .live-event-filters .live-filter-button { flex: 1 1 0; min-width: 0; padding: 10px 6px; white-space: nowrap; }
      }

      @media (max-width: 360px) {
        html:root body.is-logged-in .live-view-controls .live-event-filters { gap: 4px; }
        html:root body.is-logged-in .live-view-controls .live-event-filters .live-filter-button { padding: 10px 3px; font-size: 11px; letter-spacing: -0.1px; }
      }

      /* Timeline media is the post card; post details sit directly on the scene. */
      body.is-logged-in .timeline-view .timeline-post:not(.timeline-user-post),
      body.is-logged-in .timeline-view .timeline-user-post.has-media {
        position: relative;
        min-height: clamp(330px, 48svh, 440px);
        isolation: isolate;
        color: #fff;
        background: #07152e;
      }

      body.is-logged-in .timeline-view .timeline-post:not(.timeline-user-post) .timeline-media,
      body.is-logged-in .timeline-view .timeline-user-post.has-media .timeline-user-media {
        position: absolute;
        z-index: 0;
        inset: 0;
        width: 100%;
        height: 100%;
        max-height: none;
        aspect-ratio: auto;
        object-fit: cover;
      }

      body.is-logged-in .timeline-view .timeline-post:not(.timeline-user-post) .timeline-media::after {
        background: linear-gradient(180deg, rgba(3, 15, 36, 0.82) 0%, rgba(3, 15, 36, 0.16) 46%, rgba(3, 15, 36, 0.88) 100%);
      }

      body.is-logged-in .timeline-view .timeline-user-post.has-media::before {
        content: "";
        position: absolute;
        z-index: 1;
        inset: 0;
        pointer-events: none;
        background: linear-gradient(180deg, rgba(3, 15, 36, 0.82) 0%, rgba(3, 15, 36, 0.16) 46%, rgba(3, 15, 36, 0.88) 100%);
      }

      body.is-logged-in .timeline-view .timeline-post:not(.timeline-user-post) .timeline-post-header,
      body.is-logged-in .timeline-view .timeline-user-post.has-media .timeline-post-header,
      body.is-logged-in .timeline-view .timeline-post:not(.timeline-user-post) .timeline-copy,
      body.is-logged-in .timeline-view .timeline-user-post.has-media .timeline-copy {
        position: relative;
        z-index: 2;
      }

      body.is-logged-in .timeline-view .timeline-post:not(.timeline-user-post) .timeline-author strong,
      body.is-logged-in .timeline-view .timeline-user-post.has-media .timeline-author strong,
      body.is-logged-in .timeline-view .timeline-post:not(.timeline-user-post) .timeline-copy,
      body.is-logged-in .timeline-view .timeline-user-post.has-media .timeline-copy {
        color: #fff;
        text-shadow: 0 2px 10px rgba(0, 7, 20, 0.72);
      }

      body.is-logged-in .timeline-view .timeline-post:not(.timeline-user-post) .timeline-author span,
      body.is-logged-in .timeline-view .timeline-user-post.has-media .timeline-author span {
        color: #fff;
        text-shadow: 0 2px 8px rgba(0, 7, 20, 0.68);
      }

      body.is-logged-in .timeline-view .timeline-post:not(.timeline-user-post) .timeline-more,
      body.is-logged-in .timeline-view .timeline-user-post.has-media .timeline-more {
        color: #fff;
        background: rgba(5, 21, 48, 0.64);
        backdrop-filter: blur(10px);
      }

      body.is-logged-in .timeline-view .timeline-post:not(.timeline-user-post) .timeline-post-footer,
      body.is-logged-in .timeline-view .timeline-user-post.has-media .timeline-post-footer {
        position: absolute !important;
        z-index: 3;
        right: 0;
        bottom: 0;
        left: 0;
        min-height: 0;
        padding: 12px !important;
        border-top: 0;
      }

      body.is-logged-in .timeline-view .timeline-post:not(.timeline-user-post) .timeline-actions,
      body.is-logged-in .timeline-view .timeline-user-post.has-media .timeline-actions {
        position: static !important;
      }

      body.is-logged-in .timeline-view .timeline-post:not(.timeline-user-post) .timeline-duration {
        top: auto;
        right: 14px;
        bottom: 72px;
      }

      @media (max-width: 1100px) {
        body.is-logged-in .timeline-view .timeline-post:not(.timeline-user-post),
        body.is-logged-in .timeline-view .timeline-user-post.has-media {
          min-height: clamp(300px, 46svh, 360px);
        }

        body.is-logged-in .timeline-view .timeline-post:not(.timeline-user-post) .timeline-post-footer,
        body.is-logged-in .timeline-view .timeline-user-post.has-media .timeline-post-footer {
          padding: 8px !important;
        }

        body.is-logged-in .timeline-view .timeline-post:not(.timeline-user-post) .timeline-duration {
          right: 10px;
          bottom: 62px;
        }
      }

      /* The feed is only a transparent track; the rounded media remains the post. */
      body.is-logged-in .timeline-view .timeline-feed,
      html[data-theme="dark"] body.is-logged-in .timeline-view .timeline-feed {
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
      }

      /* Keep Ups regional search stays on the map and never requests an address. */
      body.is-logged-in .timeline-keep-map-heading-row {
        width: max-content;
        display: flex;
        align-items: center;
        gap: 8px;
      }

      body.is-logged-in .timeline-keep-map-search-toggle {
        width: 32px;
        height: 32px;
        flex: 0 0 32px;
        display: grid;
        place-items: center;
        padding: 0;
        border: 1px solid rgba(255, 255, 255, 0.88);
        border-radius: 50%;
        color: #0b285b;
        background: rgba(255, 255, 255, 0.92);
        box-shadow: 0 8px 20px rgba(8, 34, 78, 0.2);
        cursor: pointer;
        backdrop-filter: blur(12px);
      }

      body.is-logged-in .timeline-keep-map-search-toggle svg {
        width: 16px;
        height: 16px;
      }

      body.is-logged-in .timeline-keep-map-search-toggle[aria-expanded="true"] {
        color: #fff;
        border-color: #2167f5;
        background: #2167f5;
      }

      body.is-logged-in .timeline-keep-map-search {
        position: absolute;
        top: 43px;
        left: 0;
        width: min(280px, calc(100vw - 230px));
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 4px;
        padding: 4px;
        border: 1px solid rgba(255, 255, 255, 0.9);
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.94);
        box-shadow: 0 14px 34px rgba(8, 34, 78, 0.24);
        backdrop-filter: blur(16px);
      }

      body.is-logged-in .timeline-keep-map-search[hidden] {
        display: none;
      }

      body.is-logged-in .timeline-keep-map-search input {
        width: 100%;
        min-width: 0;
        height: 30px;
        padding: 0 8px;
        border: 1px solid rgba(31, 80, 158, 0.16);
        border-radius: 12px;
        outline: 0;
        color: #0b285b;
        background: #f8fbff;
        font-size: 9px;
      }

      body.is-logged-in .timeline-keep-map-search input:focus {
        border-color: #2167f5;
        box-shadow: 0 0 0 3px rgba(33, 103, 245, 0.12);
      }

      body.is-logged-in .timeline-keep-map-search button {
        min-width: 42px;
        height: 30px;
        padding: 0 8px;
        border: 0;
        border-radius: 12px;
        color: #fff;
        background: #2167f5;
        font-size: 9px;
        font-weight: 800;
        cursor: pointer;
      }

      body.is-logged-in .timeline-keep-map-search button:disabled {
        opacity: 0.6;
      }

      body.is-logged-in .timeline-keep-map-search p {
        grid-column: 1 / -1;
        margin: 0;
        padding: 0 4px 1px;
        color: #0b285b;
        font-size: 8px;
        font-weight: 700;
        line-height: 1.3;
      }

      body.is-logged-in .timeline-keep-map-search p[hidden] {
        display: none;
      }

      body.is-logged-in .timeline-keep-map-search p.error {
        color: #b42318;
      }

      body.is-logged-in .timeline-keep-map-copy small b {
        color: #2167f5;
        font-weight: 800;
      }

      body.is-logged-in .timeline-keep-map.regional-results .timeline-keep-map-markers {
        inset: auto 12px 29px;
        display: flex;
        align-items: center;
        gap: 8px;
        overflow-x: auto;
        padding: 4px;
        pointer-events: auto;
        scrollbar-width: none;
      }

      body.is-logged-in .timeline-keep-map.regional-results .timeline-keep-map-markers::-webkit-scrollbar {
        display: none;
      }

      body.is-logged-in .timeline-keep-map.regional-results .timeline-keep-map-marker {
        position: static;
        flex: 0 0 auto;
        transform: none;
      }

      body.is-logged-in .timeline-keep-map-empty {
        max-width: calc(100% - 28px);
        text-align: center;
        white-space: normal;
      }

      html[data-theme="dark"] body.is-logged-in .timeline-keep-map-search-toggle {
        color: #fff;
        border-color: rgba(255, 255, 255, 0.22);
        background: rgba(8, 24, 49, 0.94);
      }

      html[data-theme="dark"] body.is-logged-in .timeline-keep-map-search-toggle[aria-expanded="true"] {
        border-color: #397cff;
        background: #2167f5;
      }

      html[data-theme="dark"] body.is-logged-in .timeline-keep-map-search {
        border-color: rgba(176, 199, 236, 0.2);
        background: rgba(8, 24, 49, 0.96);
      }

      html[data-theme="dark"] body.is-logged-in .timeline-keep-map-search input {
        border-color: rgba(176, 199, 236, 0.2);
        color: #fff;
        background: #10294e;
      }

      html[data-theme="dark"] body.is-logged-in .timeline-keep-map-search p {
        color: #fff;
      }

      html[data-theme="dark"] body.is-logged-in .timeline-keep-map-search p.error {
        color: #ff9f95;
      }

      @media (max-width: 1100px) {
        body.is-logged-in .timeline-keep-map.mobile-open .timeline-keep-map-heading-row {
          gap: 6px;
        }

        body.is-logged-in .timeline-keep-map.mobile-open .timeline-keep-map-search-toggle {
          width: 30px;
          height: 30px;
          flex-basis: 30px;
        }

        body.is-logged-in .timeline-keep-map.mobile-open .timeline-keep-map-search {
          top: 42px;
          right: auto;
          width: min(250px, calc(100vw - 28px));
        }

        body.is-logged-in .timeline-keep-map.mobile-open .timeline-keep-map-search input {
          font-size: 10px;
        }

        body.is-logged-in .timeline-keep-map.mobile-open.regional-results .timeline-keep-map-markers {
          inset: auto 8px 25px;
          gap: 6px;
          padding: 3px;
        }

        body.is-logged-in .timeline-keep-map.mobile-open.regional-results .timeline-keep-map-marker {
          max-width: none;
          padding-right: 9px;
        }

        body.is-logged-in .timeline-keep-map.mobile-open.regional-results .timeline-keep-map-copy small {
          display: block;
        }

        body.is-logged-in .timeline-keep-map.mobile-open.regional-results .timeline-keep-map-location {
          display: none;
        }
      }

      body.is-logged-in .timeline-view > .persistent-city-map,
      html[data-theme="dark"] body.is-logged-in .timeline-view > .persistent-city-map {
        overflow: hidden;
        border: 0;
        border-radius: 22px;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
      }

      body.is-logged-in .timeline-view > .persistent-city-map .friends-map,
      html[data-theme="dark"] body.is-logged-in .timeline-view > .persistent-city-map .friends-map {
        border-radius: 0;
      }

      body.is-logged-in .timeline-view .timeline-post,
      body.is-logged-in .timeline-view .timeline-keep-map-scene,
      body.is-logged-in .timeline-view .timeline-map-event-group,
      html[data-theme="dark"] body.is-logged-in .timeline-view .timeline-post,
      html[data-theme="dark"] body.is-logged-in .timeline-view .timeline-keep-map-scene,
      html[data-theme="dark"] body.is-logged-in .timeline-view .timeline-map-event-group {
        border-radius: 22px;
        overflow: hidden;
      }

      body.is-logged-in .timeline-view .timeline-keep-map,
      html[data-theme="dark"] body.is-logged-in .timeline-view .timeline-keep-map {
        overflow: visible;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
      }

      body.is-logged-in .timeline-view .timeline-keep-map-header,
      html[data-theme="dark"] body.is-logged-in .timeline-view .timeline-keep-map-header {
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
      }

      body.is-logged-in .timeline-view .timeline-keep-map-header h3 {
        text-shadow: 0 2px 12px rgba(3, 15, 36, 0.42);
      }

      body.is-logged-in .timeline-view .timeline-real-map {
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        pointer-events: none;
      }

      body.is-logged-in .timeline-view .timeline-keep-map-scene::after {
        content: "";
        position: absolute;
        z-index: 1;
        inset: 0;
        background: linear-gradient(180deg, rgba(3, 19, 43, 0.12), transparent 42%, rgba(3, 19, 43, 0.42));
        pointer-events: none;
      }

      body.is-logged-in .timeline-place-fallback {
        position: absolute;
        z-index: 0;
        inset: 0;
        display: grid;
        place-items: center;
        padding: 72px 24px 54px;
        color: #0b285b;
        background:
          radial-gradient(circle at 72% 28%, rgba(33, 103, 245, 0.2), transparent 34%),
          linear-gradient(145deg, #edf5fd, #c7dced);
        text-align: center;
        font-size: 12px;
        font-weight: 800;
      }

      body.is-logged-in .timeline-place-fallback[hidden] {
        display: none;
      }

      body.is-logged-in .timeline-place-identity {
        position: absolute;
        z-index: 2;
        right: 16px;
        bottom: 78px;
        max-width: calc(100% - 32px);
        color: #fff;
        text-align: right;
        text-shadow: 0 2px 12px rgba(2, 16, 38, 0.82);
        pointer-events: none;
      }

      body.is-logged-in .timeline-place-identity small,
      body.is-logged-in .timeline-place-identity strong {
        display: block;
      }

      body.is-logged-in .timeline-place-identity small {
        margin-bottom: 2px;
        font-size: 8px;
        font-weight: 900;
        letter-spacing: 0.14em;
        text-transform: uppercase;
      }

      body.is-logged-in .timeline-place-identity strong {
        font-size: clamp(16px, 2vw, 24px);
        line-height: 1.05;
        letter-spacing: -0.035em;
      }

      body.is-logged-in .timeline-place-credit {
        position: absolute;
        z-index: 5;
        right: 8px;
        bottom: 5px;
        max-width: calc(100% - 16px);
        overflow: hidden;
        color: rgba(255, 255, 255, 0.92);
        text-overflow: ellipsis;
        text-shadow: 0 1px 5px rgba(1, 12, 29, 0.9);
        white-space: nowrap;
        font-size: 7px;
        font-weight: 700;
        text-decoration: none;
      }

      @media (max-width: 1100px) {
        body.is-logged-in .timeline-view > .persistent-city-map,
        body.is-logged-in .timeline-view .timeline-post,
        body.is-logged-in .timeline-view .timeline-keep-map-scene,
        body.is-logged-in .timeline-view .timeline-map-event-group,
        html[data-theme="dark"] body.is-logged-in .timeline-view > .persistent-city-map,
        html[data-theme="dark"] body.is-logged-in .timeline-view .timeline-post,
        html[data-theme="dark"] body.is-logged-in .timeline-view .timeline-keep-map-scene,
        html[data-theme="dark"] body.is-logged-in .timeline-view .timeline-map-event-group {
          border-radius: 20px;
        }

        body.is-logged-in .timeline-place-identity {
          right: 10px;
          bottom: 78px;
          max-width: calc(100% - 20px);
        }

        body.is-logged-in .timeline-place-identity strong {
          font-size: 17px;
        }

        body.is-logged-in .timeline-view .timeline-keep-map.mobile-open,
        html[data-theme="dark"] body.is-logged-in .timeline-view .timeline-keep-map.mobile-open {
          overflow: hidden;
          border-radius: 20px;
        }
      }

      body.is-logged-in.timeline-open .app-main,
      html[data-theme="dark"] body.is-logged-in.timeline-open .app-main {
        background: transparent;
      }

      body.is-logged-in .profile-menu-item.events-primary,
      html[data-theme="dark"] body.is-logged-in .profile-menu-item.events-primary {
        min-height: 52px;
        margin: 4px 0;
        padding: 7px 8px;
        border: 1px solid rgba(33, 103, 245, 0.5);
        border-radius: 13px;
        background: rgba(33, 103, 245, 0.1);
      }

      /* Host Live is one aligned broadcast canvas, separate from the 3D Event Studio. */
      .event-studio-view.host-live-camera-mode .event-studio-live-topline {
        right: 50%;
        flex-wrap: nowrap;
      }

      .event-studio-view.host-live-camera-mode .event-studio-live-topline strong {
        width: auto;
        min-width: 0;
        flex: 1;
      }

      .event-studio-view.host-live-camera-mode .event-studio-permissions {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
      }

      .event-studio-view.host-live-camera-mode .event-studio-permissions button {
        min-width: 0;
        white-space: nowrap;
      }

      .event-studio-view.host-live-camera-mode [data-event-studio-host-controls] {
        width: min(600px, 100%);
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
      }

      .event-studio-view.host-live-camera-mode .event-studio-live-controls button {
        width: 100%;
        min-width: 0;
      }

      html:not([data-theme="dark"]) body.is-logged-in .home-ff-browser {
        border-color: rgba(255, 255, 255, 0.92);
        color: #0b285b;
        background:
          radial-gradient(ellipse at 50% -20%, rgba(255, 255, 255, 0.98), transparent 52%),
          linear-gradient(155deg, rgba(250, 252, 255, 0.97), rgba(229, 239, 255, 0.96) 76%);
        box-shadow:
          0 14px 30px rgba(23, 58, 115, 0.2),
          inset 0 1px 0 rgba(255, 255, 255, 0.96),
          inset 0 -8px 16px rgba(92, 136, 210, 0.1);
      }

      html[data-theme="dark"] body.is-logged-in .home-ff-browser {
        border-color: rgba(145, 190, 255, 0.5);
        color: #ffffff;
        background:
          radial-gradient(ellipse at 50% -20%, rgba(255, 255, 255, 0.2), transparent 50%),
          linear-gradient(155deg, rgba(24, 61, 105, 0.98), rgba(7, 25, 50, 0.98) 74%);
        box-shadow:
          0 14px 30px rgba(0, 7, 24, 0.36),
          inset 0 1px 0 rgba(255, 255, 255, 0.2),
          inset 0 -10px 18px rgba(0, 7, 26, 0.24);
      }

      html:not([data-theme="dark"]) body.is-logged-in .home-ff-switch {
        border: 1px solid rgba(33, 103, 245, 0.12);
        background: rgba(231, 240, 255, 0.88);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94);
      }

      html[data-theme="dark"] body.is-logged-in .home-ff-switch {
        border: 1px solid rgba(120, 166, 255, 0.18);
        background: rgba(5, 22, 45, 0.74);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
      }

      html:not([data-theme="dark"]) body.is-logged-in .home-ff-open.active,
      html[data-theme="dark"] body.is-logged-in .home-ff-open.active {
        border: 1px solid rgba(161, 204, 255, 0.86);
        color: #ffffff;
        background:
          radial-gradient(ellipse at 50% -20%, rgba(255, 255, 255, 0.3), transparent 50%),
          linear-gradient(155deg, #397cff, #1a55bd 74%);
        box-shadow: 0 8px 18px rgba(13, 64, 158, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.28);
      }

      html:not([data-theme="dark"]) body.is-logged-in .home-ff-open:not(.active) {
        color: #0b285b;
        background: rgba(255, 255, 255, 0.72);
      }

      html[data-theme="dark"] body.is-logged-in .home-ff-open:not(.active) {
        color: #ffffff;
        background: rgba(13, 38, 73, 0.5);
      }

      html:not([data-theme="dark"]) body.is-logged-in .home-ff-arrow {
        color: #2167f5;
        background: rgba(231, 240, 255, 0.84);
      }

      html[data-theme="dark"] body.is-logged-in .home-ff-arrow {
        color: #6fa6ff;
        background: rgba(7, 28, 57, 0.42);
      }

      html:not([data-theme="dark"]) body.is-logged-in .home-ff-position {
        color: #0b285b;
      }

      html[data-theme="dark"] body.is-logged-in .home-ff-position {
        color: rgba(255, 255, 255, 0.88);
      }

      /* Live timing controls use the same coated shell as event action buttons. */
      html:not([data-theme="dark"]) body.is-logged-in .live-event-filters {
        overflow: hidden;
        border-color: rgba(255, 255, 255, 0.94);
        background:
          radial-gradient(ellipse at 50% -24%, rgba(255, 255, 255, 0.99), transparent 54%),
          linear-gradient(155deg, rgba(250, 252, 255, 0.98), rgba(229, 239, 255, 0.97) 76%);
        box-shadow:
          0 12px 26px rgba(23, 58, 115, 0.2),
          inset 0 1px 0 rgba(255, 255, 255, 0.98),
          inset 0 -8px 15px rgba(92, 136, 210, 0.1);
      }

      html[data-theme="dark"] body.is-logged-in .live-event-filters {
        overflow: hidden;
        border-color: rgba(145, 190, 255, 0.46);
        background:
          radial-gradient(ellipse at 50% -26%, rgba(255, 255, 255, 0.21), transparent 52%),
          linear-gradient(155deg, rgba(24, 61, 105, 0.98), rgba(7, 25, 50, 0.98) 76%);
        box-shadow:
          0 12px 26px rgba(0, 7, 24, 0.32),
          inset 0 1px 0 rgba(255, 255, 255, 0.22),
          inset 0 -8px 15px rgba(0, 7, 26, 0.24);
      }

      html:not([data-theme="dark"]) body.is-logged-in .live-filter-button:not(.active) {
        color: #0b285b;
        background: rgba(255, 255, 255, 0.58);
        text-shadow: none;
      }

      html[data-theme="dark"] body.is-logged-in .live-filter-button:not(.active) {
        color: rgba(255, 255, 255, 0.92);
        background: rgba(8, 29, 57, 0.34);
        text-shadow: 0 2px 5px rgba(0, 5, 18, 0.44);
      }

      body.is-logged-in .live-filter-button.active,
      html[data-theme="dark"] body.is-logged-in .live-filter-button.active {
        border: 1px solid rgba(161, 204, 255, 0.9);
        background:
          radial-gradient(ellipse at 50% -24%, rgba(255, 255, 255, 0.32), transparent 52%),
          linear-gradient(155deg, #3f80ff, #1b58c5 76%);
        box-shadow:
          0 8px 17px rgba(13, 64, 158, 0.4),
          inset 0 1px 0 rgba(255, 255, 255, 0.32),
          inset 0 -6px 11px rgba(8, 47, 125, 0.25);
        text-shadow: 0 2px 5px rgba(0, 25, 76, 0.42);
      }

      @media (min-width: 721px) and (max-width: 900px) {
        body.is-logged-in .live-map-event-panel {
          grid-template-columns: 1fr;
          gap: 10px;
        }

        body.is-logged-in .live-map-event-actions {
          grid-template-columns: repeat(4, minmax(0, 1fr));
        }
      }

      body.is-logged-in .live-view .event-action,
      body.is-logged-in .live-map-event-actions .event-action,
      html[data-theme="dark"] body.is-logged-in .live-view .event-action,
      html[data-theme="dark"] body.is-logged-in .live-map-event-actions .event-action {
        position: relative;
        overflow: hidden;
        border-color: rgba(145, 190, 255, 0.68);
        color: #ffffff;
        background:
          radial-gradient(ellipse at 50% -22%, rgba(255, 255, 255, 0.28), transparent 50%),
          linear-gradient(155deg, #183f72, #091d39 74%);
        box-shadow:
          0 9px 20px rgba(0, 9, 28, 0.28),
          inset 0 1px 0 rgba(255, 255, 255, 0.28),
          inset 0 -8px 14px rgba(0, 7, 26, 0.24);
        text-shadow: 0 2px 4px rgba(0, 5, 18, 0.48);
        backdrop-filter: blur(12px) saturate(1.15);
        -webkit-backdrop-filter: blur(12px) saturate(1.15);
        transition: transform var(--sp-dur-glide) var(--sp-ease-glide), border-color 150ms ease, box-shadow 150ms ease, filter 150ms ease;
      }

      body.is-logged-in .live-view .event-like,
      body.is-logged-in .live-map-event-actions .event-like,
      html[data-theme="dark"] body.is-logged-in .live-view .event-like,
      html[data-theme="dark"] body.is-logged-in .live-map-event-actions .event-like {
        border-color: rgba(127, 181, 255, 0.82);
        background:
          radial-gradient(ellipse at 50% -22%, rgba(255, 255, 255, 0.32), transparent 50%),
          linear-gradient(155deg, #2464ad, #12376b 74%);
      }

      body.is-logged-in .live-view .event-keep,
      body.is-logged-in .live-map-event-actions .event-keep,
      html[data-theme="dark"] body.is-logged-in .live-view .event-keep,
      html[data-theme="dark"] body.is-logged-in .live-map-event-actions .event-keep {
        border-color: rgba(99, 219, 168, 0.72);
        background:
          radial-gradient(ellipse at 50% -22%, rgba(255, 255, 255, 0.28), transparent 50%),
          linear-gradient(155deg, #187354, #0b3f34 74%);
      }

      body.is-logged-in .live-view .event-share,
      body.is-logged-in .live-map-event-actions .event-share,
      html[data-theme="dark"] body.is-logged-in .live-view .event-share,
      html[data-theme="dark"] body.is-logged-in .live-map-event-actions .event-share {
        border-color: rgba(194, 155, 255, 0.72);
        background:
          radial-gradient(ellipse at 50% -22%, rgba(255, 255, 255, 0.28), transparent 50%),
          linear-gradient(155deg, #62439a, #37245f 74%);
      }

      body.is-logged-in .live-view .event-attend,
      body.is-logged-in .live-map-event-actions .event-attend,
      html[data-theme="dark"] body.is-logged-in .live-view .event-attend,
      html[data-theme="dark"] body.is-logged-in .live-map-event-actions .event-attend {
        border-color: rgba(141, 190, 255, 0.94);
        background:
          radial-gradient(ellipse at 50% -22%, rgba(255, 255, 255, 0.34), transparent 50%),
          linear-gradient(155deg, #3479d0, #174681 74%);
      }

      body.is-logged-in .live-view .event-watch,
      body.is-logged-in .live-map-event-actions .event-watch,
      html[data-theme="dark"] body.is-logged-in .live-view .event-watch,
      html[data-theme="dark"] body.is-logged-in .live-map-event-actions .event-watch {
        border-color: rgba(156, 202, 255, 0.86);
        color: #ffffff;
        background:
          radial-gradient(ellipse at 50% -22%, rgba(255, 255, 255, 0.3), transparent 50%),
          linear-gradient(155deg, #205a9e, #0b2c59 74%);
      }

      body.is-logged-in .live-view .event-action:hover,
      body.is-logged-in .live-map-event-actions .event-action:hover,
      html[data-theme="dark"] body.is-logged-in .live-view .event-action:hover,
      html[data-theme="dark"] body.is-logged-in .live-map-event-actions .event-action:hover {
        border-color: rgba(205, 226, 255, 0.94);
        color: #ffffff;
        filter: brightness(1.09);
        transform: translateY(-1px);
      }

      body.is-logged-in .live-view .event-action:active,
      body.is-logged-in .live-map-event-actions .event-action:active {
        filter: brightness(0.98);
        transform: translateY(1px) scale(0.985);
      }

      body.is-logged-in .live-view .event-action.attending,
      body.is-logged-in .live-map-event-actions .event-action.attending {
        border-color: rgba(255, 255, 255, 0.94);
        box-shadow:
          0 10px 24px rgba(19, 77, 171, 0.38),
          inset 0 1px 0 #ffffff,
          inset 0 -8px 14px rgba(20, 72, 148, 0.2);
      }

      /* Spossity coated silk: a shared, theme-aware finish for interactive surfaces. */
      body.is-logged-in .friend-discovery-tabs,
      body.is-logged-in .people-picker-tabs,
      body.is-logged-in .profile-social-tabs,
      body.is-logged-in .profile-choice-grid button,
      body.is-logged-in .host-choice label,
      body.is-logged-in .timeline-action,
      body.is-logged-in :is(.vibe-view, .spot-host-actions) .vibe-action,
      body.is-logged-in .round-action i {
        background-image: radial-gradient(ellipse at 50% -24%, rgba(255, 255, 255, 0.94), transparent 54%);
        box-shadow:
          0 8px 18px rgba(23, 58, 115, 0.14),
          inset 0 1px 0 rgba(255, 255, 255, 0.94),
          inset 0 -6px 12px rgba(92, 136, 210, 0.08);
      }

      html[data-theme="dark"] body.is-logged-in .friend-discovery-tabs,
      html[data-theme="dark"] body.is-logged-in .people-picker-tabs,
      html[data-theme="dark"] body.is-logged-in .profile-social-tabs,
      html[data-theme="dark"] body.is-logged-in .profile-choice-grid button,
      html[data-theme="dark"] body.is-logged-in .host-choice label,
      html[data-theme="dark"] body.is-logged-in .timeline-action,
      html[data-theme="dark"] body.is-logged-in :is(.vibe-view, .spot-host-actions) .vibe-action,
      html[data-theme="dark"] body.is-logged-in .round-action i {
        background-image: radial-gradient(ellipse at 50% -24%, rgba(255, 255, 255, 0.16), transparent 54%);
        box-shadow:
          0 9px 20px rgba(0, 7, 24, 0.3),
          inset 0 1px 0 rgba(255, 255, 255, 0.16),
          inset 0 -7px 13px rgba(0, 7, 26, 0.2);
      }

      /* Keep Timeline controls opaque and legible when they sit on photography. */
      html:not([data-theme="dark"]) body.is-logged-in .timeline-action {
        border-color: rgba(39, 82, 145, 0.28);
        color: #0b285b;
        background:
          radial-gradient(ellipse at 50% -24%, rgba(255, 255, 255, 0.98), transparent 54%),
          linear-gradient(155deg, #ffffff, #e7eef8 78%);
        box-shadow:
          0 9px 20px rgba(8, 35, 79, 0.24),
          inset 0 1px 0 #ffffff,
          inset 0 -7px 13px rgba(77, 112, 170, 0.12);
        text-shadow: none;
      }

      html:not([data-theme="dark"]) body.is-logged-in .timeline-like,
      html:not([data-theme="dark"]) body.is-logged-in .timeline-action.liked {
        border-color: rgba(33, 103, 245, 0.5);
        color: #1258cc;
        background:
          radial-gradient(ellipse at 50% -24%, rgba(255, 255, 255, 0.98), transparent 54%),
          linear-gradient(155deg, #f7fbff, #cfe1ff 78%);
      }

      html:not([data-theme="dark"]) body.is-logged-in .timeline-comment {
        border-color: rgba(16, 42, 92, 0.34);
        color: #0b285b;
        background:
          radial-gradient(ellipse at 50% -24%, rgba(255, 255, 255, 0.98), transparent 54%),
          linear-gradient(155deg, #ffffff, #dfe8f5 78%);
      }

      html:not([data-theme="dark"]) body.is-logged-in .timeline-keep,
      html:not([data-theme="dark"]) body.is-logged-in .timeline-action.kept {
        border-color: rgba(8, 117, 63, 0.4);
        color: #08753f;
        background:
          radial-gradient(ellipse at 50% -24%, rgba(255, 255, 255, 0.98), transparent 54%),
          linear-gradient(155deg, #f8fffb, #d7f0e3 78%);
      }

      html:not([data-theme="dark"]) body.is-logged-in .timeline-share {
        border-color: rgba(79, 36, 189, 0.4);
        color: #5425ad;
        background:
          radial-gradient(ellipse at 50% -24%, rgba(255, 255, 255, 0.98), transparent 54%),
          linear-gradient(155deg, #fdfbff, #e7dcfa 78%);
      }

      html:not([data-theme="dark"]) body.is-logged-in .timeline-action small {
        color: currentColor;
        opacity: 0.88;
      }

      /* The Profile menu uses the same light coated-silk signature as the rest of Spossity. */
      html:not([data-theme="dark"]) body.is-logged-in .profile-menu-panel {
        border-color: rgba(255, 255, 255, 0.96);
        background:
          radial-gradient(ellipse at 42% -8%, rgba(255, 255, 255, 1), transparent 40%),
          linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(237, 243, 252, 0.97));
        box-shadow:
          0 22px 54px rgba(8, 34, 78, 0.25),
          inset 0 1px 0 #ffffff,
          inset 0 -10px 22px rgba(74, 112, 177, 0.08);
      }

      html:not([data-theme="dark"]) body.is-logged-in .profile-menu-list {
        gap: 0;
      }

      html:not([data-theme="dark"]) body.is-logged-in .profile-menu-item {
        border: 0;
        border-bottom: 1px solid rgba(26, 67, 130, 0.1);
        border-radius: 0;
        background: transparent;
        box-shadow: none;
      }

      html:not([data-theme="dark"]) body.is-logged-in .profile-menu-item:hover,
      html:not([data-theme="dark"]) body.is-logged-in .profile-menu-item:focus-visible {
        border-color: rgba(33, 103, 245, 0.4);
        background:
          radial-gradient(ellipse at 50% -28%, #ffffff, transparent 56%),
          linear-gradient(155deg, #f8fbff, #dbe8fc);
      }

      html:not([data-theme="dark"]) body.is-logged-in .profile-menu-item.events-primary {
        border-color: rgba(33, 103, 245, 0.5);
        background:
          radial-gradient(ellipse at 50% -26%, rgba(255, 255, 255, 0.96), transparent 56%),
          linear-gradient(155deg, #f3f8ff, #d6e4ff 78%);
        box-shadow:
          0 8px 18px rgba(21, 83, 185, 0.18),
          inset 0 1px 0 #ffffff,
          inset 0 -6px 12px rgba(33, 103, 245, 0.1);
      }

      html:not([data-theme="dark"]) body.is-logged-in .profile-menu-icon {
        border: 1px solid rgba(33, 103, 245, 0.15);
        background:
          radial-gradient(circle at 50% 8%, #ffffff, transparent 48%),
          linear-gradient(155deg, #f6f9ff, #e2ecfc);
        box-shadow:
          0 5px 11px rgba(32, 82, 164, 0.13),
          inset 0 1px 0 #ffffff;
      }

      html:not([data-theme="dark"]) body.is-logged-in .round-action i {
        border: 1px solid rgba(33, 103, 245, 0.18);
        background:
          radial-gradient(circle at 50% 8%, #ffffff, transparent 48%),
          linear-gradient(155deg, #f7faff, #dce9ff);
        transition: transform var(--sp-dur-glide) var(--sp-ease-glide), box-shadow 160ms ease;
      }

      html:not([data-theme="dark"]) body.is-logged-in .round-action:hover i,
      html:not([data-theme="dark"]) body.is-logged-in .round-action:focus-visible i {
        transform: translateY(-2px) scale(1.04);
      }

      html:not([data-theme="dark"]) body.is-logged-in .round-action:focus-visible {
        outline: none;
      }

      html:not([data-theme="dark"]) body.is-logged-in .home-bg-card {
        border-color: rgba(37, 79, 145, 0.22);
        background:
          radial-gradient(ellipse at 50% -30%, rgba(255, 255, 255, 1), transparent 56%),
          linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(226, 236, 250, 0.97));
        box-shadow:
          0 12px 26px rgba(8, 35, 79, 0.22),
          inset 0 1px 0 #ffffff,
          inset 0 -8px 15px rgba(75, 115, 181, 0.1);
      }

      html:not([data-theme="dark"]) body.is-logged-in .home-bg-card:hover,
      html:not([data-theme="dark"]) body.is-logged-in .home-bg-card:focus-visible {
        border-color: rgba(33, 103, 245, 0.45);
        outline: none;
        transform: translateY(-1px);
      }

      html:not([data-theme="dark"]) body.is-logged-in .home-bg-icon {
        border: 1px solid rgba(33, 103, 245, 0.18);
        background:
          radial-gradient(circle at 50% 8%, #ffffff, transparent 48%),
          linear-gradient(155deg, #f7faff, #dce9ff);
        box-shadow:
          0 7px 15px rgba(33, 85, 170, 0.15),
          inset 0 1px 0 #ffffff;
      }

      html:not([data-theme="dark"]) body.is-logged-in .map-person {
        border-color: rgba(255, 255, 255, 0.92);
        background:
          radial-gradient(ellipse at 50% -20%, rgba(255, 255, 255, 0.98), transparent 52%),
          linear-gradient(155deg, rgba(250, 252, 255, 0.97), rgba(229, 239, 255, 0.96) 76%);
        box-shadow:
          0 14px 30px rgba(23, 58, 115, 0.2),
          inset 0 1px 0 rgba(255, 255, 255, 0.96),
          inset 0 -8px 16px rgba(92, 136, 210, 0.1);
      }

      html:not([data-theme="dark"]) body.is-logged-in :is(.vibe-view, .spot-host-actions) .vibe-action {
        border: 1px solid rgba(255, 255, 255, 0.92);
        color: #0b285b;
        background:
          radial-gradient(ellipse at 50% -20%, rgba(255, 255, 255, 0.98), transparent 52%),
          linear-gradient(155deg, rgba(250, 252, 255, 0.98), rgba(229, 239, 255, 0.97) 76%);
        box-shadow:
          0 10px 22px rgba(23, 58, 115, 0.17),
          inset 0 1px 0 rgba(255, 255, 255, 0.96),
          inset 0 -7px 14px rgba(92, 136, 210, 0.09);
      }

      html:not([data-theme="dark"]) body.is-logged-in :is(.vibe-view, .spot-host-actions) .vibe-action:hover,
      html:not([data-theme="dark"]) body.is-logged-in :is(.vibe-view, .spot-host-actions) .vibe-action:focus-visible {
        border-color: rgba(115, 169, 255, 0.7);
        background:
          radial-gradient(ellipse at 50% -20%, #ffffff, transparent 52%),
          linear-gradient(155deg, #f9fbff, #d9e8ff 76%);
        box-shadow:
          0 12px 25px rgba(20, 70, 153, 0.22),
          inset 0 1px 0 #ffffff,
          inset 0 -7px 14px rgba(70, 117, 190, 0.1);
      }

      html:not([data-theme="dark"]) body.is-logged-in .vibe-people-filters,
      html:not([data-theme="dark"]) body.is-logged-in .friends-map-search,
      html:not([data-theme="dark"]) body.is-logged-in .friend-card {
        border-color: rgba(255, 255, 255, 0.94);
        background:
          radial-gradient(ellipse at 50% -20%, rgba(255, 255, 255, 0.99), transparent 52%),
          linear-gradient(155deg, rgba(250, 252, 255, 0.98), rgba(229, 239, 255, 0.97) 76%);
        box-shadow:
          0 14px 30px rgba(23, 58, 115, 0.2),
          inset 0 1px 0 rgba(255, 255, 255, 0.98),
          inset 0 -8px 16px rgba(92, 136, 210, 0.1);
      }

      html:not([data-theme="dark"]) body.is-logged-in .vibe-people-filters button.active {
        border: 1px solid rgba(191, 169, 255, 0.88);
        background:
          radial-gradient(ellipse at 50% -22%, rgba(255, 255, 255, 0.28), transparent 50%),
          linear-gradient(155deg, #8b5cff, #6939df 78%);
        box-shadow:
          0 7px 15px rgba(80, 38, 181, 0.27),
          inset 0 1px 0 rgba(255, 255, 255, 0.3);
      }

      html[data-theme="dark"] body.is-logged-in[data-app-view="vibe"] .vibe-people-filters {
        border-color: rgba(126, 171, 239, 0.3);
        background: #07182f;
      }

      html[data-theme="dark"] body.is-logged-in[data-app-view="vibe"] .vibe-people-filters button:not(.active) {
        color: #9fb4d2;
        background: transparent;
      }

      html[data-theme="dark"] body.is-logged-in[data-app-view="vibe"] .friend-text-button {
        border: 1px solid rgba(126, 171, 239, 0.3);
        color: #74a8ff;
        background: #0b2546;
      }

      html[data-theme="dark"] body.is-logged-in[data-app-view="vibe"] .friend-text-button.selected {
        border-color: #78a7f5;
        color: #ffffff;
        background: #2167f5;
      }

      html:not([data-theme="dark"]) body.is-logged-in .friend-card.selected {
        border-color: rgba(33, 103, 245, 0.58);
        background:
          radial-gradient(ellipse at 50% -20%, #ffffff, transparent 52%),
          linear-gradient(155deg, #f7faff, #d9e7ff 76%);
        box-shadow:
          0 16px 34px rgba(24, 77, 166, 0.24),
          inset 0 1px 0 #ffffff,
          inset 0 -8px 16px rgba(69, 116, 190, 0.12);
      }

      body.is-logged-in .friend-discovery-tabs button.active,
      body.is-logged-in .people-picker-tabs button.active,
      body.is-logged-in .profile-social-tabs button.active,
      body.is-logged-in .profile-choice-grid button[aria-pressed="true"],
      body.is-logged-in .host-choice label:has(input:checked) {
        border-color: rgba(161, 204, 255, 0.9);
        color: #ffffff;
        background:
          radial-gradient(ellipse at 50% -24%, rgba(255, 255, 255, 0.32), transparent 52%),
          linear-gradient(155deg, #3f80ff, #1b58c5 76%);
        box-shadow:
          0 9px 20px rgba(13, 64, 158, 0.34),
          inset 0 1px 0 rgba(255, 255, 255, 0.34),
          inset 0 -7px 13px rgba(8, 47, 125, 0.22);
      }

      .event-studio-view.host-live-camera-mode .event-studio-permissions button,
      .event-studio-view.host-live-camera-mode .event-studio-live-controls button {
        position: relative;
        overflow: hidden;
        border-color: rgba(145, 190, 255, 0.58);
        background:
          radial-gradient(ellipse at 50% -18%, rgba(255, 255, 255, 0.30), transparent 48%),
          linear-gradient(155deg, rgba(25, 70, 126, 0.96), rgba(5, 23, 52, 0.96) 72%);
        box-shadow:
          0 12px 26px rgba(0, 6, 20, 0.42),
          inset 0 1px 0 rgba(255, 255, 255, 0.32),
          inset 0 -9px 16px rgba(0, 8, 28, 0.28);
        text-shadow: 0 2px 4px rgba(0, 5, 18, 0.48);
        backdrop-filter: blur(14px) saturate(1.15);
        -webkit-backdrop-filter: blur(14px) saturate(1.15);
        transition: transform var(--sp-dur-glide) var(--sp-ease-glide), border-color 150ms ease, box-shadow 150ms ease, filter 150ms ease;
      }

      .event-studio-view.host-live-camera-mode .event-studio-permissions button[aria-pressed="true"] {
        border-color: rgba(139, 190, 255, 0.88);
        background:
          radial-gradient(ellipse at 50% -18%, rgba(255, 255, 255, 0.34), transparent 48%),
          linear-gradient(155deg, #2869bc, #123c78 72%);
      }

      .event-studio-view.host-live-camera-mode .event-studio-live-controls button[aria-pressed="true"] {
        border-color: rgba(255, 255, 255, 0.92);
        color: #0b285b;
        background:
          radial-gradient(ellipse at 50% -20%, #ffffff, transparent 48%),
          linear-gradient(155deg, #f8fbff, #bdd6ff 72%);
        box-shadow:
          0 12px 28px rgba(19, 77, 171, 0.38),
          inset 0 1px 0 #ffffff,
          inset 0 -9px 16px rgba(63, 121, 210, 0.16);
        text-shadow: none;
      }

      .event-studio-view.host-live-camera-mode .event-studio-live-controls .event-studio-end {
        border-color: rgba(255, 159, 177, 0.9);
        background:
          radial-gradient(ellipse at 50% -18%, rgba(255, 255, 255, 0.38), transparent 48%),
          linear-gradient(155deg, #f44d70, #bd173d 72%);
        box-shadow:
          0 12px 28px rgba(124, 8, 39, 0.42),
          inset 0 1px 0 rgba(255, 255, 255, 0.38),
          inset 0 -9px 16px rgba(87, 0, 24, 0.24);
      }

      .event-studio-view.host-live-camera-mode .event-studio-permissions button:hover,
      .event-studio-view.host-live-camera-mode .event-studio-live-controls button:hover {
        border-color: rgba(190, 217, 255, 0.88);
        filter: brightness(1.08);
        transform: translateY(-1px);
      }

      .event-studio-view.host-live-camera-mode .event-studio-permissions button:active,
      .event-studio-view.host-live-camera-mode .event-studio-live-controls button:active {
        filter: brightness(0.98);
        transform: translateY(1px) scale(0.985);
      }

      @media (max-width: 1100px) {
        .event-studio-view.host-live-camera-mode .event-studio-header {
          min-height: 52px;
          margin-bottom: 10px;
        }

        .event-studio-view.host-live-camera-mode .event-studio-live-session {
          height: clamp(460px, 64svh, 540px);
          min-height: 0;
        }

        .event-studio-view.host-live-camera-mode .event-studio-live-topline {
          top: 16px;
          right: 16px;
          left: 16px;
          gap: 8px;
        }

        .event-studio-view.host-live-camera-mode .event-studio-live-topline strong {
          width: auto;
          font-size: 15px;
        }

        .event-studio-view.host-live-camera-mode .event-studio-permissions {
          top: 62px;
          right: 16px;
          left: 16px;
          grid-template-columns: repeat(2, minmax(0, 1fr));
          gap: 8px;
        }

        .event-studio-view.host-live-camera-mode .event-studio-permissions button {
          width: 100%;
          padding: 0 5px;
          text-align: center;
        }

        .event-studio-view.host-live-camera-mode .event-studio-live-controls {
          right: 16px;
          bottom: 16px;
          left: 16px;
        }

        .event-studio-view.host-live-camera-mode [data-event-studio-host-controls] {
          gap: 8px;
        }

        .event-studio-view.host-live-camera-mode .event-studio-live-controls button {
          min-height: 48px;
          padding: 0 5px;
          font-size: 9px;
        }
      }
    