    :root {
      --bg: #0f0f12;
      --panel: #15151a;
      --text: #e7e7ea;
      --muted: #a5a5b2;
      --pill: #1d1d25;
      --accent: #ff2ea3;
      --divider: #262631;
      --glow: 0 0 0 1px rgba(255, 46, 163, .85), 0 0 12px rgba(255, 46, 163, .35), 0 0 24px rgba(255, 46, 163, .25);
      --rowGlow: 0 0 0 1px rgba(255, 46, 163, .6), 0 0 18px rgba(255, 46, 163, .35), 0 0 36px rgba(255, 46, 163, .25);
      --shadow: 0 0 0 1px rgba(255, 255, 255, .02), 0 8px 22px rgba(0, 0, 0, .35);
      --venue: #8b8b96;
    }

    * {
      box-sizing: border-box
    }

    html,
    body {
      height: 100%
    }

    body {
      margin: 0;
      background: var(--bg);
      color: var(--text);
      font: 15px/1.45 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      -webkit-text-size-adjust: 100%;
      text-size-adjust: 100%;
    }

    .wrap {
      max-width: 980px;
      margin: 22px auto;
      padding: 0 10px
    }

    /* controls */
    .controls {
      display: flex;
      gap: 10px;
      align-items: center;
      flex-wrap: wrap;
      margin: 0 0 14px
    }

    .search {
      position: relative;
      flex: 1 1 520px;
      min-width: 260px;
      display: flex;
      align-items: center
    }

    .search input {
      width: 100%;
      padding: 10px 38px;
      border-radius: 12px;
      border: 1px solid var(--divider);
      background: #0f0f14;
      color: #e7e7ea;
      box-shadow: var(--shadow);
      outline: 0;
    }

    .search svg {
      position: absolute;
      left: 12px;
      top: 50%;
      transform: translateY(-50%);
      width: 18px;
      height: 18px;
      opacity: .7;
    }

    .pills {
      display: flex;
      gap: 8px;
      align-items: center
    }

    .pill {
      padding: 7px 11px;
      border-radius: 999px;
      background: var(--pill);
      color: #ddd;
      border: 1px solid var(--divider);
      cursor: pointer;
      font-weight: 600
    }

    .pill.active {
      border-color: var(--accent);
      box-shadow: var(--glow);
      color: #fff
    }

    .fav-toggle {
      display: inline-grid;
      place-items: center;
      width: 34px;
      height: 34px;
      border-radius: 50%;
      background: var(--pill);
      box-shadow: var(--glow);
      border: 0;
      cursor: pointer;
      margin-left: 4px;
      color: #fff;
      transition: box-shadow .15s, color .15s;
    }

    .fav-toggle.active {
      color: var(--accent)
    }

    .fav-toggle:hover {
      box-shadow: 0 0 8px rgba(255, 46, 163, .7)
    }

    .calendar-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      height: 42px;
      padding: 8px 12px;
      box-sizing: border-box;
      background: transparent;
      border: none;
      cursor: pointer;
      transition: all .15s;
      margin-right: 4px;
      text-decoration: none;
      color: var(--accent);
    }

    .calendar-btn:hover {
      transform: scale(1.1);
      filter: drop-shadow(0 0 8px rgba(255, 46, 163, .8))
    }

    /* Auth bar */
    .auth-bar {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 12px;
      padding: 8px 14px;
      border-radius: 12px;
      background: var(--panel);
      border: 1px solid var(--divider);
      box-shadow: var(--shadow);
      font-size: 13px;
    }

    .auth-bar .user-email {
      color: var(--accent);
      font-weight: 700
    }

    .auth-bar .user-type {
      padding: 2px 8px;
      border-radius: 999px;
      font-size: 11px;
      font-weight: 700;
      background: rgba(255, 46, 163, .15);
      color: var(--accent);
      border: 1px solid rgba(255, 46, 163, .3);
      text-transform: uppercase;
      letter-spacing: .5px;
    }

    .auth-bar .sign-out-btn {
      margin-left: auto;
      padding: 5px 12px;
      border-radius: 999px;
      background: var(--pill);
      border: 1px solid var(--divider);
      color: var(--muted);
      cursor: pointer;
      font-size: 12px;
      font-weight: 600;
      transition: all .15s;
    }

    .auth-bar .sign-out-btn:hover {
      border-color: var(--accent);
      color: #fff;
      box-shadow: var(--glow)
    }

    /* list rows */
    .list {
      margin-top: 2px
    }

    .row {
      display: grid;
      grid-template-columns: minmax(120px, 160px) 1fr auto;
      gap: 8px;
      align-items: center;
      padding: 9px 12px;
      min-height: 40px;
      background: var(--panel);
      border: 1px solid var(--divider);
      border-radius: 14px;
      box-shadow: var(--shadow);
      transition: box-shadow .18s, border-color .18s;
    }

    .row+.row {
      margin-top: 8px
    }

    .row.fav-row {
      border-color: rgba(255, 46, 163, .65);
      box-shadow: var(--rowGlow)
    }

    .date {
      font-weight: 800;
      cursor: pointer;
      transition: color .15s
    }

    .date:hover {
      color: var(--accent)
    }

    .event-time {
      opacity: .95
    }

    .title {
      font-weight: 800;
      cursor: pointer;
      transition: color .15s;
      text-decoration: none;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .title:hover {
      color: var(--accent)
    }

    .title-line {
      display: flex;
      gap: 8px;
      align-items: center;
      min-width: 0
    }

    .venue {
      color: var(--venue);
      font-weight: 800;
      cursor: pointer;
      transition: color .15s, text-shadow .15s
    }

    .venue:hover {
      color: var(--accent)
    }

    .venue.active {
      color: var(--accent);
      text-shadow: 0 0 6px rgba(255, 46, 163, .8)
    }

    .star {
      display: inline-grid;
      place-items: center;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: var(--pill);
      border: none;
      color: #fff;
      cursor: pointer;
      transition: color .15s, box-shadow .15s;
    }

    .star:hover {
      box-shadow: 0 0 10px rgba(255, 46, 163, .35)
    }

    .star.active {
      color: var(--accent)
    }

    .share-btn {
      display: inline-grid;
      place-items: center;
      width: 28px;
      height: 28px;
      border-radius: 50%;
      background: transparent;
      border: 1px solid var(--divider);
      color: var(--muted);
      cursor: pointer;
      font-size: 14px;
      transition: all .15s;
      margin-right: 4px;
      animation: sparkleTwinkle 2.5s ease-in-out infinite;
    }

    .share-btn:hover {
      background: var(--pill);
      color: #ffd700;
      border-color: var(--accent);
      box-shadow: 0 0 12px rgba(255, 215, 0, .6);
      animation: sparkleTwinkleGlow 1s ease-in-out infinite;
      transform: scale(1.1);
    }

    .share-tooltip {
      position: absolute;
      bottom: 100%;
      left: 50%;
      transform: translateX(-50%);
      margin-bottom: 6px;
      padding: 4px 8px;
      border-radius: 6px;
      background: var(--panel);
      color: var(--text);
      font-size: 11px;
      font-weight: 600;
      white-space: nowrap;
      pointer-events: none;
      z-index: 1000;
      border: 1px solid var(--divider);
      box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
      opacity: 0;
      transition: opacity .2s ease-in-out;
    }

    .share-tooltip.visible {
      opacity: 1
    }

    @keyframes sparkleTwinkle {

      0%,
      100% {
        opacity: .7;
        transform: scale(1);
        filter: brightness(1);
      }

      25% {
        opacity: 1;
        transform: scale(1.08);
        filter: brightness(1.3);
      }

      50% {
        opacity: .9;
        transform: scale(1.05);
        filter: brightness(1.1);
      }

      75% {
        opacity: 1;
        transform: scale(1.08);
        filter: brightness(1.4);
      }
    }

    @keyframes sparkleTwinkleGlow {

      0%,
      100% {
        opacity: 1;
        transform: scale(1.1);
        box-shadow: 0 0 12px rgba(255, 215, 0, .6);
        filter: brightness(1.2);
      }

      25% {
        transform: scale(1.15);
        box-shadow: 0 0 20px rgba(255, 215, 0, .9), 0 0 30px rgba(255, 215, 0, .4);
        filter: brightness(1.5);
      }

      50% {
        transform: scale(1.12);
        box-shadow: 0 0 18px rgba(255, 215, 0, .8), 0 0 25px rgba(255, 215, 0, .5);
        filter: brightness(1.3);
      }

      75% {
        transform: scale(1.15);
        box-shadow: 0 0 22px rgba(255, 215, 0, 1), 0 0 35px rgba(255, 215, 0, .6);
        filter: brightness(1.6);
      }
    }

    .empty {
      margin: 18px 4px;
      color: var(--muted);
      padding: 14px 16px;
      border: 1px dashed var(--divider);
      border-radius: 12px
    }

    /* Sign In modal */
    .modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, .7);
      z-index: 1000;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      visibility: hidden;
      transition: opacity .2s, visibility .2s;
    }

    .modal-overlay.show {
      opacity: 1;
      visibility: visible
    }

    .modal-content {
      max-width: 420px;
      width: 90%;
      transform: scale(.9);
      transition: transform .2s
    }

    .modal-overlay.show .modal-content {
      transform: scale(1)
    }

    .card {
      background: var(--panel);
      border: 1px solid var(--divider);
      border-radius: 14px;
      box-shadow: var(--shadow);
      padding: 20px;
      position: relative;
    }

    .card h2 {
      margin: 0 0 16px;
      font-size: 20px;
      font-weight: 800;
      color: var(--text)
    }

    .card p {
      margin: 0 0 16px;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.5
    }

    .form-group {
      margin-bottom: 16px
    }

    .form-group label {
      display: block;
      margin-bottom: 6px;
      color: var(--text);
      font-weight: 600;
      font-size: 13px
    }

    .form-group input {
      width: 100%;
      padding: 10px 14px;
      border-radius: 12px;
      border: 1px solid var(--divider);
      background: #0f0f14;
      color: #e7e7ea;
      box-shadow: var(--shadow);
      outline: 0;
      font: 15px/1.45 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
      transition: border-color .15s, box-shadow .15s;
    }

    .form-group input:focus {
      border-color: var(--accent);
      box-shadow: var(--glow);
    }

    .btn {
      padding: 7px 11px;
      border-radius: 999px;
      border: 1px solid var(--divider);
      background: var(--pill);
      color: #ddd;
      font-weight: 600;
      cursor: pointer;
      transition: all .15s;
      font-size: 14px;
      display: inline-block;
      text-decoration: none;
    }

    .btn:hover {
      border-color: var(--accent);
      box-shadow: var(--glow);
      color: #fff;
    }

    .btn-primary {
      background: var(--pill);
      color: #fff;
      border-color: var(--accent);
      box-shadow: var(--glow);
    }

    .btn-primary:hover {
      box-shadow: var(--rowGlow);
      transform: scale(1.02);
    }

    .btn-group {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      margin-top: 12px
    }

    .message {
      padding: 12px 16px;
      border-radius: 12px;
      margin-top: 12px;
      border: 1px solid var(--divider);
      font-size: 14px;
      line-height: 1.5
    }

    .message.success {
      background: rgba(46, 255, 46, .1);
      border-color: rgba(46, 255, 46, .3);
      color: #4ade80;
    }

    .message.error {
      background: rgba(255, 46, 46, .1);
      border-color: rgba(255, 46, 46, .3);
      color: #ff6b6b;
    }

    .message.info {
      background: rgba(255, 46, 163, .1);
      border-color: rgba(255, 46, 163, .3);
      color: var(--accent);
    }

    .modal-close {
      position: absolute;
      top: 16px;
      right: 16px;
      width: 24px;
      height: 24px;
      background: none;
      border: 0;
      color: #a5a5b2;
      cursor: pointer;
      font-size: 18px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      transition: background .15s, color .15s;
    }

    .modal-close:hover {
      background: #262631;
      color: #e7e7ea
    }

    /* MOBILE */
    @media (max-width:880px) {
      .row {
        grid-template-columns: 1fr 72px;
        grid-template-areas:
          "date buttons"
          "text buttons";
        grid-auto-rows: minmax(20px, auto);
        padding: 10px 12px;
      }

      .row .date {
        grid-area: date
      }

      .row .text {
        grid-area: text;
        min-width: 0
      }

      .row>div:last-child {
        grid-area: buttons;
        justify-self: end
      }

      .date {
        font-weight: 700;
        font-size: 12px;
        line-height: 1.15;
        margin-bottom: 4px
      }

      .title {
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
        line-height: 1.25
      }

      .title-line {
        min-width: 0
      }
    }

    /* Paid nav buttons (in auth bar) */
    #paid-nav {
      gap: 6px;
      align-items: center;
    }

    .paid-nav-btn {
      padding: 4px 10px;
      border-radius: 999px;
      background: var(--pill);
      border: 1px solid var(--divider);
      color: var(--muted);
      cursor: pointer;
      font-size: 12px;
      font-weight: 600;
      transition: all .15s;
      white-space: nowrap;
    }

    .paid-nav-btn:hover,
    .paid-nav-btn.active {
      border-color: var(--accent);
      color: #fff;
      box-shadow: var(--glow);
    }

    /* Business panel */
    .biz-panel {
      margin-bottom: 12px;
      padding: 12px 14px;
      border-radius: 12px;
      background: var(--panel);
      border: 1px solid var(--divider);
      box-shadow: var(--shadow);
    }

    .biz-panel-header {
      padding: 16px;
      padding-bottom: 8px;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .biz-panel-title-container {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .biz-panel-label {
      font-size: 16px;
      font-weight: 600;
      color: var(--fg);
    }

    .anchor-context {
      font-size: 13px;
      color: var(--muted);
      cursor: pointer;
      padding: 4px 8px;
      border-radius: 6px;
      background: rgba(255, 255, 255, 0.05);
      transition: all 0.2s;
    }

    .anchor-context:hover {
      background: rgba(255, 255, 255, 0.1);
      color: var(--brand);
    }

    .anchor-dropdown {
      position: absolute;
      background: #1a1a1a;
      border: 1px solid #333;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
      z-index: 1000;
      padding: 4px;
      display: none;
    }

    .anchor-option {
      padding: 8px 12px;
      font-size: 13px;
      color: #ccc;
      cursor: pointer;
      border-radius: 4px;
    }

    .anchor-option:hover {
      background: #333;
      color: #fff;
    }

    .biz-list {
      display: flex;
      flex-direction: column;
      gap: 6px;
      max-height: 380px;
      overflow-y: auto;
    }

    .biz-row {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 8px;
      align-items: center;
      padding: 8px 10px;
      border-radius: 10px;
      background: #0f0f14;
      border: 1px solid var(--divider);
      font-size: 13px;
      transition: border-color .15s, transform .2s ease-out, box-shadow .15s;
    }

    .biz-row:hover {
      border-color: rgba(255, 46, 163, .4);
      transform: translateX(4px);
    }

    .biz-row.biz-fav {
      border-color: rgba(255, 46, 163, .65);
      box-shadow: var(--rowGlow);
    }

    .biz-name {
      font-weight: 700;
      color: var(--text);
    }

    .biz-meta {
      color: var(--muted);
      font-size: 11px;
      margin-top: 2px;
    }

    .biz-hours {
      color: var(--venue);
      font-size: 11px;
      margin-top: 2px;
    }

    .biz-hours.open-late {
      color: var(--accent);
      font-weight: 600
    }

    .biz-hours .source-link {
      margin-left: 8px;
      color: var(--muted);
      text-decoration: underline;
      font-size: 11px;
      opacity: .8;
      transition: opacity .15s, color .15s;
    }

    .biz-hours .source-link:hover {
      opacity: 1;
      color: var(--accent);
    }

    .biz-actions {
      display: flex;
      gap: 6px;
      align-items: center;
    }

    .biz-star {
      display: inline-grid;
      place-items: center;
      width: 28px;
      height: 28px;
      border-radius: 50%;
      background: var(--pill);
      border: none;
      color: #fff;
      cursor: pointer;
      transition: color .15s, box-shadow .15s;
      font-size: 14px;
    }

    .biz-star.active {
      color: var(--accent);
    }

