← sghadimi.com · All projects · Demonstration. Every person, email address and flight here is invented. Free: how to use it, the skill and the code ↓

Sample event · Riverbend Team Summit · Denver · March 8–9, 2027

Who is coming to Denver

— of us from — offices will be in Denver for the summit. Let us use the time to make a new friend or catch up with an old one. — land at DEN on Monday and — fly home Tuesday, so there is plenty of chance to share a ride.

Demonstration built by Shahrouz Ghadimi. Every person, email address, office and flight on this page is invented, so the Teams, email and flight links lead nowhere real.

—AttendingConfirmed on the sign-up sheet —Offices representedDistinct office codes listed —Landing MondayFlights into DEN on Mar 8 —Flying home TuesdayFlights out of DEN on Mar 9 —At the hotel MondayRoom booked for Mar 8 —Staying Tuesday nightRoom booked for Mar 9

Rides

Find your ride

Pick your name to see who lands up to an hour after you on Monday, so nobody who landed earlier is left waiting, and who flies out within an hour of you. Tap a flight for its live status, or message the group on Teams with a note that is already written for you.

Flight status last checked: —. Sample statuses for the demonstration.

Landing up to an hour after you

—

Flying out within an hour of you

—

Monday arrivals

Share a ride from DEN on Monday

Everyone landing in the same hour is grouped together. If you see a name beside yours, send a note and split the car to the hotel.

On time or earlyDelayed up to an hourDelayed over an hour or cancelledNo dot: not checked yet, tap the flight in Find your ride for live status

Flight status last checked: —

—

Departures

Share a ride back to DEN

Departures grouped by the hour the flight leaves. Plan to head out together about two hours ahead.

—

Shared flights

Who is on your flight

Flights that two or more of us share. Same flight, same gate, so you can sit together or split the ride.

—

New faces

Meet someone new

Find a new friend or catch up with an old one. Tap for someone to say hello to at the next break.

—

Meals

Around the table

For anyone booking a group dinner or ordering for a table: what the group needs, and who is still in town on Tuesday night.

Dietary needs across the group

    Still in Denver Tuesday night

      —

      Directory

      Everyone attending

      The full list of people at the event. Type a name to find someone, or pick an office to see who else is coming from it. Tap a name to email them.

      The Teams button follows the list below: leave the filters empty to message everyone, or search, pick an office or a travel plan to message just that group. Nothing is sent until you press send in Teams.

      NameOfficeArrivesDeparts
      Top ↑
      About this demonstration
      • This is a working copy of a page I built for a company team event: it turns a travel sign-up sheet into ride-share matches, hour-by-hour arrival groups, flight status and one-tap Teams messages.
      • All names, email addresses, offices and flights here are invented. The real page used the attendees' own sign-up sheet and looked up flight status every hour.
      • Pick any name under Find your ride to see who lands up to an hour after that person and who flies out within an hour of them.
      • Dietary needs are shown as group totals only, without names.

      How to use it

      1. Open the demonstration. Every person, flight and email in it is invented.
      2. Pick a name under Find your ride to see who lands up to an hour after that person and who flies out within an hour of them.
      3. Scroll the Monday and Tuesday groups to see who can share a car, with a flight-status dot beside each flight.
      4. Use the directory filters, then the Teams button, to message just that group.

      Where it helps most

      • Company off-sites, conferences, weddings and reunions: anything with a travel sign-up sheet.
      • Organizers who are tired of answering "who else lands around 3?"
      • Any event where people would share a ride if they only knew who was on the same flight.

      Free to take

      Build your own.

      Copy the skill, paste it into your own AI, and say what you want different. How to use a skill, step by step ›

      Get the skillThe instructions your AI follows. Works in Claude, ChatGPT, Gemini or any other

      ---
      name: event-travel-hub
      description: Build one web page from an event's travel sign-up sheet that shows who arrives when, matches people who can share a ride, and writes the group message for them. Use when someone is organizing travel for an off-site, conference, wedding or reunion.
      ---
      
      # Event travel hub
      
      ## What you need from the organizer
      A sign-up sheet with one row per person: name, where they are coming from, arrival day and time, flight number if flying, departure day and time and flight, and whether they are staying each night. Optional: dietary needs, contact (email or phone).
      Also: the event name, dates, the airport, and how the group messages each other (Teams, Slack, WhatsApp, email).
      
      ## Build
      One self-contained page, readable on a phone, that redraws itself from the sheet:
      1. At a glance: how many are coming, from how many places, how many land and leave on each day.
      2. Find your ride: pick your name; see who lands up to an hour after you (so the person who landed first is not left waiting) and who leaves within an hour of you.
      3. Arrivals and departures grouped by the hour, so shared rides are obvious.
      4. A message button on every group that opens the group's chat or email with a note already written ("We all land around 3 pm on Monday, share a car?"). Nothing is sent until the person presses send.
      5. On your flight: people on the same flight number.
      6. A directory with search and filters, and a message button that follows the filters.
      7. Dietary needs as totals only, never beside a name.
      
      ## Flight status (optional)
      If you can run on a schedule and look flights up, check each flight once an hour on travel days and show: on time, delayed up to an hour, delayed more or cancelled, with the time it was last checked. If you cannot, link each flight number to a public flight-status page and say on the page that status is not live.
      
      ## Rules
      - Use only what people put on the sheet. Add nothing about them from anywhere else.
      - Show the page to the organizer before anyone else, and share it only with the people on the sheet.
      - No phone numbers or home addresses on the page unless the organizer says each person agreed.
      - Test the matching with three made-up people before using real names: one early, one within the hour, one outside it.
      - When the sheet changes, the page changes. Never keep a second copy of the list.
      Get the code3 files, exactly as they run on this site

      This is the demonstration, with invented people and flights. The hourly flight check ran separately and is described in the skill.

      index.html144 lines

      Raw file

      <!doctype html>
      <html lang="en">
      <head>
      <meta charset="utf-8">
      <meta name="viewport" content="width=device-width, initial-scale=1">
      <title>Event attendee hub · demonstration</title>
      <link rel="icon" href="../../favicon.svg" type="image/svg+xml">
      <meta name="description" content="A working demonstration of an event travel hub: who lands when, who can share a ride, one-tap team messages and live flight status. All people and flights are invented.">
      <meta property="og:type" content="website">
      <meta property="og:site_name" content="Shahrouz Ghadimi">
      <meta property="og:title" content="Event attendee hub · demonstration">
      <meta property="og:description" content="A working demonstration of an event travel hub: who lands when, who can share a ride, one-tap team messages and live flight status. All people and flights are invented.">
      <meta property="og:url" content="https://sghadimi.com/work/event-travel-hub/">
      <meta property="og:image" content="https://sghadimi.com/og.jpg">
      <meta property="og:image:width" content="1200">
      <meta property="og:image:height" content="630">
      <meta name="twitter:card" content="summary_large_image">
      <link rel="stylesheet" href="./hub.css">
      <link rel="stylesheet" href="./take.css">
      </head>
      <body>
      <p class="la-demo"><a href="../../">← sghadimi.com</a> · <a href="../../all/#ai">All projects</a> · <strong>Demonstration.</strong> Every person, email address and flight here is invented. <a href="#build-your-own">Free: how to use it, the skill and the code ↓</a></p>
      <div id="dash-root">
      <div class="la">
        <header class="la-hero" id="top">
          <p class="la-eyebrow">Sample event · Riverbend Team Summit · Denver · March 8–9, 2027</p>
          <h1 id="title">Who is coming to Denver</h1>
          <p class="la-lede"><b data-draw="stat" data-source="summary" data-field="attending" data-row="0">—</b> of us from <b data-draw="stat" data-source="summary" data-field="offices" data-row="0">—</b> offices will be in Denver for the summit. Let us use the time to make a new friend or catch up with an old one. <b data-draw="stat" data-source="summary" data-field="flying_mon" data-row="0">—</b> land at DEN on Monday and <b data-draw="stat" data-source="summary" data-field="leaving_tue" data-row="0">—</b> fly home Tuesday, so there is plenty of chance to share a ride.</p>
          <p class="la-by">Demonstration built by Shahrouz Ghadimi. Every person, email address, office and flight on this page is invented, so the Teams, email and flight links lead nowhere real.</p>
          <nav class="la-nav" aria-label="Sections">
            <a href="#my-ride">Find your ride</a><a href="#rides-in">Rides from DEN</a><a href="#rides-out">Rides to DEN</a><a href="#flights">On your flight</a><a href="#meet">Meet someone new</a><a href="#table">Meals</a><a href="#people">Directory</a>
          </nav>
          <svg class="la-waves" viewBox="0 0 1200 64" preserveAspectRatio="none" aria-hidden="true"><path d="M-60 30 C 120 4 260 56 440 30 S 760 4 940 30 S 1180 56 1260 30 V64 H-60 Z"/><path d="M-60 40 C 100 20 280 60 460 40 S 780 18 960 40 S 1190 60 1260 40 V64 H-60 Z"/><path d="M0 52 C 160 40 300 62 480 52 S 800 40 980 52 S 1140 60 1200 52 V64 H0 Z"/></svg>
        </header>
      
        <section class="la-tiles" id="at-a-glance" aria-label="At a glance">
          <a class="la-tile" id="tile-attending" href="#people" data-plan=""><span class="la-n" data-draw="stat" data-source="summary" data-field="attending" data-row="0">—</span><span class="la-l">Attending</span><span class="la-s">Confirmed on the sign-up sheet</span></a>
          <a class="la-tile" id="tile-offices" href="#people" data-plan=""><span class="la-n" data-draw="stat" data-source="summary" data-field="offices" data-row="0">—</span><span class="la-l">Offices represented</span><span class="la-s">Distinct office codes listed</span></a>
          <a class="la-tile" id="tile-flying" href="#rides-in"><span class="la-n" data-draw="stat" data-source="summary" data-field="flying_mon" data-row="0">—</span><span class="la-l">Landing Monday</span><span class="la-s">Flights into DEN on Mar 8</span></a>
          <a class="la-tile" id="tile-leaving" href="#rides-out"><span class="la-n" data-draw="stat" data-source="summary" data-field="leaving_tue" data-row="0">—</span><span class="la-l">Flying home Tuesday</span><span class="la-s">Flights out of DEN on Mar 9</span></a>
          <a class="la-tile" id="tile-hotel-mon" href="#people" data-plan="hotel_mon"><span class="la-n" data-draw="stat" data-source="summary" data-field="hotel_mon" data-row="0">—</span><span class="la-l">At the hotel Monday</span><span class="la-s">Room booked for Mar 8</span></a>
          <a class="la-tile" id="tile-hotel-tue" href="#people" data-plan="tue_night"><span class="la-n" data-draw="stat" data-source="summary" data-field="hotel_tue" data-row="0">—</span><span class="la-l">Staying Tuesday night</span><span class="la-s">Room booked for Mar 9</span></a>
        </section>
      
        <section class="la-sec" id="my-ride">
          <p class="la-eyebrow">Rides</p>
          <h2>Find your ride</h2>
          <p>Pick your name to see who lands up to an hour after you on Monday, so nobody who landed earlier is left waiting, and who flies out within an hour of you. Tap a flight for its live status, or message the group on Teams with a note that is already written for you.</p>
          <p class="la-updated">Flight status last checked: <b data-draw="checked" data-source="flight_status" data-field="checked" data-row="0">—</b>. Sample statuses for the demonstration.</p>
          <div class="la-controls js-only"><select class="dash-select" data-draw="me-select" aria-label="Your name" data-source="roster"></select></div>
          <div class="la-two js-only">
            <div class="la-card" id="match-in-card"><h3>Landing up to an hour after you</h3><div class="la-match" data-draw="match-in" data-source="roster flight_status">—</div></div>
            <div class="la-card" id="match-out-card"><h3>Flying out within an hour of you</h3><div class="la-match" data-draw="match-out" data-source="roster flight_status">—</div></div>
          </div>
        </section>
      
        <section class="la-sec" id="rides-in">
          <p class="la-eyebrow">Monday arrivals</p>
          <h2>Share a ride from DEN on Monday</h2>
          <p>Everyone landing in the same hour is grouped together. If you see a name beside yours, send a note and split the car to the hotel.</p>
          <div class="la-card"><p class="la-legend"><span><span class="la-dot la-dot-ok"></span>On time or early</span><span><span class="la-dot la-dot-warn"></span>Delayed up to an hour</span><span><span class="la-dot la-dot-bad"></span>Delayed over an hour or cancelled</span><span>No dot: not checked yet, tap the flight in Find your ride for live status</span></p><p class="la-updated">Flight status last checked: <b data-draw="checked" data-source="flight_status" data-field="checked" data-row="0">—</b></p><div class="la-groups" data-draw="rides-in" data-source="ride_groups roster flight_status">—</div></div>
        </section>
      
        <section class="la-sec" id="rides-out">
          <p class="la-eyebrow">Departures</p>
          <h2>Share a ride back to DEN</h2>
          <p>Departures grouped by the hour the flight leaves. Plan to head out together about two hours ahead.</p>
          <div class="la-card"><div class="la-groups" data-draw="rides-out" data-source="ride_groups roster flight_status">—</div></div>
        </section>
      
        <section class="la-sec" id="flights">
          <p class="la-eyebrow">Shared flights</p>
          <h2>Who is on your flight</h2>
          <p>Flights that two or more of us share. Same flight, same gate, so you can sit together or split the ride.</p>
          <div class="la-flights" data-draw="flights" data-source="shared_flights roster">—</div>
        </section>
      
        <section class="la-sec" id="meet">
          <p class="la-eyebrow">New faces</p>
          <h2>Meet someone new</h2>
          <p>Find a new friend or catch up with an old one. Tap for someone to say hello to at the next break.</p>
          <div class="la-card la-meet">
            <div class="la-meet-card" data-draw="meet" data-source="roster">—</div>
            <button type="button" class="la-btn js-only" id="meet-btn">Introduce me to someone else</button>
          </div>
        </section>
      
        <section class="la-sec" id="table">
          <p class="la-eyebrow">Meals</p>
          <h2>Around the table</h2>
          <p>For anyone booking a group dinner or ordering for a table: what the group needs, and who is still in town on Tuesday night.</p>
          <div class="la-two">
            <div class="la-card"><h3>Dietary needs across the group</h3><ul class="la-diet" data-draw="diet" data-source="dietary"></ul></div>
            <div class="la-card"><h3>Still in Denver Tuesday night</h3><ul class="la-chips" data-draw="tue-night" data-source="roster"></ul><a class="la-tmg" data-draw="tue-teams" target="_blank" rel="noopener">—</a></div>
          </div>
        </section>
      
        <section class="la-sec" id="people">
          <p class="la-eyebrow">Directory</p>
          <h2>Everyone attending</h2>
          <p>The full list of people at the event. Type a name to find someone, or pick an office to see who else is coming from it. Tap a name to email them.</p>
          <div class="la-controls js-only">
            <input type="search" class="la-search" id="la-q" placeholder="Search a name or flight" aria-label="Search a name or flight">
            <select class="dash-select" data-draw="office-select" aria-label="Office" data-source="roster"></select>
            <select class="dash-select" id="la-plan" aria-label="Travel plan">
              <option value="">Everyone</option>
              <option value="fly_mon">Landing Monday</option>
              <option value="fly_tue">Flying home Tuesday</option>
              <option value="hotel_mon">At the hotel Monday</option>
              <option value="tue_night">Staying Tuesday night</option>
              <option value="driving">Driving</option>
            </select>
          </div>
          <div class="la-actions"><a class="la-btn" data-draw="dir-teams" target="_blank" rel="noopener">—</a></div>
          <p class="la-updated js-only">The Teams button follows the list below: leave the filters empty to message everyone, or search, pick an office or a travel plan to message just that group. Nothing is sent until you press send in Teams.</p>
          <div class="la-tablewrap">
            <table class="la-table" data-source="roster" data-row-key="email">
              <thead><tr><th data-field="name">Name</th><th data-field="office">Office</th><th data-field="arrives">Arrives</th><th data-field="departs">Departs</th></tr></thead>
              <tbody data-draw="dir-body"></tbody>
            </table>
          </div>
        </section>
      
        <a class="la-btn la-top" href="#top">Top ↑</a>
      
        <details class="la-notes" id="notes">
          <summary>About this demonstration</summary>
          <ul>
            <li>This is a working copy of a page I built for a company team event: it turns a travel sign-up sheet into ride-share matches, hour-by-hour arrival groups, flight status and one-tap Teams messages.</li>
            <li>All names, email addresses, offices and flights here are invented. The real page used the attendees' own sign-up sheet and looked up flight status every hour.</li>
            <li>Pick any name under Find your ride to see who lands up to an hour after that person and who flies out within an hour of them.</li>
            <li>Dietary needs are shown as group totals only, without names.</li>
          </ul>
        </details>
      </div>
      <div class="la-kit">
        <!--kit-->
      </div>
      </div>
      <script src="../../hub/case.js" defer></script>
      <script src="./hub.js" defer></script>
      </body>
      </html>
      
      hub.js (matching, groups, messages, sample data)348 lines

      Raw file

      'use strict';
      /* Attendee hub demonstration. All people and flights below are invented. */
      const CSV={
      roster:`name,email,office,lodging,n16,n17,arr_mode,arr_day,arr_time,arr_hour,arr_flight,arrives,dep_mode,dep_day,dep_time,dep_hour,dep_flight,departs
      Maya Lindqvist,maya.lindqvist@riverbend.example,110,Hotel,1,0,Flying,2027-03-08,10:20,10,XA 214,Mon 10:20 AM · XA 214,Flying,2027-03-09,16:30,16,XB 78,Tue 4:30 PM · XB 78
      Owen Okafor,owen.okafor@riverbend.example,110,Hotel,1,0,Flying,2027-03-08,10:55,10,XB 77,Mon 10:55 AM · XB 77,Flying,2027-03-09,17:20,17,XA 215,Tue 5:20 PM · XA 215
      Priya Raman,priya.raman@riverbend.example,125,Hotel,1,0,Flying,2027-03-08,10:55,10,XB 77,Mon 10:55 AM · XB 77,Flying,2027-03-09,17:20,17,XA 215,Tue 5:20 PM · XA 215
      Lucas Whitlock,lucas.whitlock@riverbend.example,140,Hotel,1,0,Flying,2027-03-08,12:10,12,XC 1402,Mon 12:10 PM · XC 1402,Flying,2027-03-09,18:05,18,XC 1403,Tue 6:05 PM · XC 1403
      Elena Marchetti,elena.marchetti@riverbend.example,140,Hotel,1,0,Flying,2027-03-08,13:35,13,XA 530,Mon 1:35 PM · XA 530,Flying,2027-03-09,18:05,18,XC 1403,Tue 6:05 PM · XC 1403
      Marcus Dunmore,marcus.dunmore@riverbend.example,210,Hotel,1,0,Flying,2027-03-08,13:35,13,XA 530,Mon 1:35 PM · XA 530,Flying,2027-03-09,18:05,18,XC 1403,Tue 6:05 PM · XC 1403
      Hannah Feldt,hannah.feldt@riverbend.example,210,Hotel,1,0,Flying,2027-03-08,14:05,14,XD 918,Mon 2:05 PM · XD 918,Flying,2027-03-09,18:40,18,XD 919,Tue 6:40 PM · XD 919
      Diego Castellan,diego.castellan@riverbend.example,210,Hotel,1,0,Flying,2027-03-08,14:05,14,XD 918,Mon 2:05 PM · XD 918,Flying,2027-03-09,18:40,18,XD 919,Tue 6:40 PM · XD 919
      Naomi Abiodun,naomi.abiodun@riverbend.example,305,Hotel,1,0,Flying,2027-03-08,14:40,14,XB 261,Mon 2:40 PM · XB 261,Flying,2027-03-09,19:15,19,XB 262,Tue 7:15 PM · XB 262
      Felix Thornbury,felix.thornbury@riverbend.example,305,Hotel,1,0,Flying,2027-03-08,14:40,14,XB 261,Mon 2:40 PM · XB 261,Flying,2027-03-09,19:15,19,XB 262,Tue 7:15 PM · XB 262
      Ingrid Halvorsen,ingrid.halvorsen@riverbend.example,320,Hotel,1,0,Flying,2027-03-08,14:40,14,XB 261,Mon 2:40 PM · XB 261,Flying,2027-03-09,19:15,19,XB 262,Tue 7:15 PM · XB 262
      Tobias Reyes-Park,tobias.reyespark@riverbend.example,410,Hotel,1,0,Flying,2027-03-08,15:15,15,XC 88,Mon 3:15 PM · XC 88,Flying,2027-03-09,19:50,19,XA 531,Tue 7:50 PM · XA 531
      Leila Nasser,leila.nasser@riverbend.example,410,Hotel,1,0,Flying,2027-03-08,15:15,15,XC 88,Mon 3:15 PM · XC 88,Flying,2027-03-09,19:50,19,XA 531,Tue 7:50 PM · XA 531
      Grant Ellery,grant.ellery@riverbend.example,455,Hotel,1,1,Flying,2027-03-08,15:50,15,XA 1177,Mon 3:50 PM · XA 1177,Flying,2027-03-10,08:10,8,XC 89,Wed 8:10 AM · XC 89
      Sofia Varga,sofia.varga@riverbend.example,455,Hotel,1,1,Flying,2027-03-08,15:50,15,XA 1177,Mon 3:50 PM · XA 1177,Flying,2027-03-10,08:10,8,XC 89,Wed 8:10 AM · XC 89
      Henrik Stromberg,henrik.stromberg@riverbend.example,510,Hotel,1,1,Flying,2027-03-08,16:25,16,XD 45,Mon 4:25 PM · XD 45,Flying,2027-03-10,10:30,10,XD 46,Wed 10:30 AM · XD 46
      Amara Chukwu,amara.chukwu@riverbend.example,510,Hotel,1,1,Flying,2027-03-08,16:25,16,XD 45,Mon 4:25 PM · XD 45,Flying,2027-03-10,10:30,10,XD 46,Wed 10:30 AM · XD 46
      Julian Ashcombe,julian.ashcombe@riverbend.example,510,Hotel,1,1,Flying,2027-03-08,16:25,16,XD 45,Mon 4:25 PM · XD 45,Flying,2027-03-10,12:45,12,XA 1178,Wed 12:45 PM · XA 1178
      Keiko Tanaka,keiko.tanaka@riverbend.example,620,Hotel,1,0,Flying,2027-03-08,17:05,17,XB 602,Mon 5:05 PM · XB 602,Flying,2027-03-09,18:40,18,XD 919,Tue 6:40 PM · XD 919
      Rafael Montoya,rafael.montoya@riverbend.example,620,Hotel,1,0,Flying,2027-03-08,17:05,17,XB 602,Mon 5:05 PM · XB 602,Flying,2027-03-09,18:05,18,XC 1403,Tue 6:05 PM · XC 1403
      Tessa Brightwell,tessa.brightwell@riverbend.example,700,Hotel,1,0,Flying,2027-03-08,17:40,17,XC 319,Mon 5:40 PM · XC 319,Flying,2027-03-09,17:20,17,XA 215,Tue 5:20 PM · XA 215
      Dmitri Volkov,dmitri.volkov@riverbend.example,700,Hotel,1,0,Flying,2027-03-08,12:10,12,XC 1402,Mon 12:10 PM · XC 1402,Flying,2027-03-09,19:15,19,XB 262,Tue 7:15 PM · XB 262
      Nora Hadley,nora.hadley@riverbend.example,715,Hotel,1,0,Flying,2027-03-08,15:15,15,XC 88,Mon 3:15 PM · XC 88,Flying,2027-03-09,19:50,19,XA 531,Tue 7:50 PM · XA 531
      Caleb Pruitt,caleb.pruitt@riverbend.example,,Hotel,1,0,Flying,2027-03-08,14:05,14,XD 918,Mon 2:05 PM · XD 918,Flying,2027-03-09,16:30,16,XB 78,Tue 4:30 PM · XB 78
      Yara Mansour,yara.mansour@riverbend.example,810,Hotel,1,0,Driving,,,,,Driving,Driving,,,,,Driving
      Simon Everhart,simon.everhart@riverbend.example,810,Hotel,1,0,Driving,,,,,Driving,Driving,,,,,Driving
      Bianca Lombardi,bianca.lombardi@riverbend.example,905,Hotel,1,0,Driving,,,,,Driving,Driving,,,,,Driving
      Arjun Sethi,arjun.sethi@riverbend.example,905,No room needed,0,0,Not listed,,,,,Not listed,Not listed,,,,,Not listed
      Greta Aalto,greta.aalto@riverbend.example,,No room needed,0,0,Not listed,,,,,Not listed,Not listed,,,,,Not listed
      Malik Greaves,malik.greaves@riverbend.example,140,No room needed,0,0,Not listed,,,,,Not listed,Not listed,,,,,Not listed
      `,
      dietary:`need,count
      Vegetarian,3
      Vegan,1
      Gluten-free,2
      No shellfish,1
      No restrictions,22
      Not stated,1
      `,
      flight_status:`flight,leg,day,origin,level,status_text,delay_min,checked
      XA 214,arr,2027-03-08,BOS,ok,In the air · 12 min early · due 10:08 AM,-12,Mon 9:30 AM MT
      XB 77,arr,2027-03-08,ORD,ok,On time · due 10:55 AM,0,Mon 9:30 AM MT
      XC 1402,arr,2027-03-08,ATL,ok,On time · due 12:10 PM,0,Mon 9:30 AM MT
      XA 530,arr,2027-03-08,DEN,warn,Delayed 35 min · now due 2:10 PM,35,Mon 9:30 AM MT
      XD 918,arr,2027-03-08,DFW,ok,On time · due 2:05 PM,0,Mon 9:30 AM MT
      XB 261,arr,2027-03-08,LGA,ok,On time · due 2:36 PM,-4,Mon 9:30 AM MT
      XC 88,arr,2027-03-08,MCO,ok,On time · due 3:15 PM,0,Mon 9:30 AM MT
      XA 1177,arr,2027-03-08,PHL,bad,Delayed 1 h 40 min · now due 5:30 PM,100,Mon 9:30 AM MT
      XD 45,arr,2027-03-08,BNA,ok,On time · due 4:25 PM,0,Mon 9:30 AM MT
      XB 602,arr,2027-03-08,MSP,ok,On time · due 5:01 PM,-4,Mon 9:30 AM MT
      XC 319,arr,2027-03-08,LAX,bad,Cancelled,,Mon 9:30 AM MT
      XB 78,dep,2027-03-09,DEN,ok,On time · departs 4:30 PM,0,Mon 9:30 AM MT
      XA 215,dep,2027-03-09,DEN,ok,On time · departs 5:20 PM,0,Mon 9:30 AM MT
      XC 1403,dep,2027-03-09,DEN,ok,On time · departs 6:05 PM,0,Mon 9:30 AM MT
      XD 919,dep,2027-03-09,DEN,ok,On time · departs 6:40 PM,0,Mon 9:30 AM MT
      XB 262,dep,2027-03-09,DEN,ok,On time · departs 7:15 PM,0,Mon 9:30 AM MT
      XA 531,dep,2027-03-09,DEN,ok,On time · departs 7:50 PM,0,Mon 9:30 AM MT
      XC 89,dep,2027-03-10,DEN,ok,On time · departs 8:10 AM,0,Mon 9:30 AM MT
      XD 46,dep,2027-03-10,DEN,ok,On time · departs 10:30 AM,0,Mon 9:30 AM MT
      XA 1178,dep,2027-03-10,DEN,ok,On time · departs 12:45 PM,0,Mon 9:30 AM MT
      `};
      /* Stand-in for the dashboard runtime: serves the saved data and runs the page's drawings. */
      (function(){
        const parse=(id)=>{
          const text=CSV[id];if(!text)return null;
          const lines=text.split('\n').map((l)=>l.replace(/\r$/,'')).filter((l)=>l.length);
          const cols=lines[0].split(',');
          const rows=lines.slice(1).map((l)=>{const c=l.split(',');const o={};cols.forEach((k,i)=>{o[k]=c[i]===undefined||c[i]===''?null:c[i];});return o;});
          rows.columns=cols;return rows;
        };
        const DATA={roster:parse('roster'),dietary:parse('dietary'),flight_status:parse('flight_status')};
        const calcs={},cache={},draws={},watchers=[];
        const dash={
          colors:['#1f6fb5'],
          data(id){
            if(calcs[id]){
              if(!(id in cache)){try{cache[id]=calcs[id].fn(...calcs[id].inputs.map((i)=>dash.data(i).data||[]));}catch(e){return {status:'error',data:null,message:String(e)};}}
              return {status:'ok',data:cache[id]};
            }
            return DATA[id]?{status:'ok',data:DATA[id]}:{status:'missing',data:[]};
          },
          calc(id,def){calcs[id]=def;},
          onData(fn){watchers.push(fn);},
          draw(name,fn){
            if(typeof fn==='function'){draws[name]=fn;return;}
            if(draws[name])document.querySelectorAll('[data-draw="'+name+'"]').forEach((e)=>{try{draws[name](e);}catch(err){console.error(name,err);}});
          },
          params(){return {};},setParams(){},resetParams(){},setLink(){},refresh(){}
        };
        window.dash=dash;
        window.addEventListener('DOMContentLoaded',()=>{
          watchers.forEach((fn)=>{try{fn();}catch(e){console.error(e);}});
          Object.keys(draws).forEach((n)=>dash.draw(n));
        });
      })();
      
      document.querySelectorAll('#dash-root .la').forEach((e)=>e.classList.add('js'));
      const MON='2027-03-08', TUE='2027-03-09';
      const DAYS={'2027-03-08':'Monday, Mar 8','2027-03-09':'Tuesday, Mar 9','2027-03-10':'Wednesday, Mar 10'};
      const SHORT={'2027-03-05':'Fri 11/13','2027-03-06':'Sat 11/14','2027-03-07':'Sun 11/15','2027-03-08':'Mon','2027-03-09':'Tue','2027-03-10':'Wed'};
      const s=(x)=>x==null?'':String(x);
      const hr=(h)=>((h+11)%12+1)+' '+(h%24<12?'AM':'PM');
      const t12=(t)=>{const [h,m]=s(t).split(':').map(Number);return ((h+11)%12+1)+':'+String(m).padStart(2,'0')+' '+(h<12?'AM':'PM');};
      const el=(tag,cls,text)=>{const e=document.createElement(tag);if(cls)e.className=cls;if(text!=null)e.textContent=text;return e;};
      const state={q:'',office:'',plan:'',pick:null,me:''};
      const WINDOW_MIN=60;
      const DEN_UTC_OFFSET_H=5;
      const teamsUrl=(emails,topic,msg)=>'https://teams.microsoft.com/l/chat/0/0?users='+emails.map(encodeURIComponent).join(',')+(emails.length>1?'&topicName='+encodeURIComponent(topic):'')+'&message='+encodeURIComponent(msg);
      const teamsBtn=(emails,topic,msg)=>{const a=el('a','la-tmg','Message this group on Teams');a.href=teamsUrl(emails,topic,msg);a.target='_blank';a.rel='noopener';return a;};
      const live=(flight,day,leg)=>{const fs=dash.data('flight_status');const f=s(flight).split(' / ')[0];return fs.status==='ok'&&Array.isArray(fs.data)?fs.data.find((x)=>x.flight===f&&x.day===day&&x.leg===leg):null;};
      const mins=(t)=>{const [h,m]=s(t).split(':').map(Number);return h*60+m;};
      
      dash.calc('summary',{inputs:['roster'],title:'Headline counts',description:'Counts of attendees, offices, hotel nights and flights, worked out from the roster.',
        fn:(roster)=>[{
          attending:roster.length,
          offices:new Set(roster.map((r)=>r.office).filter(Boolean)).size,
          hotel_mon:roster.filter((r)=>String(r.n16)==='1').length,
          hotel_tue:roster.filter((r)=>String(r.n17)==='1').length,
          flying_mon:roster.filter((r)=>r.arr_mode==='Flying'&&r.arr_day==='2027-03-08').length,
          leaving_tue:roster.filter((r)=>r.dep_mode==='Flying'&&r.dep_day==='2027-03-09').length
        }]});
      
      dash.calc('ride_groups',{inputs:['roster'],title:'Ride-share groups by hour',description:'People per flight hour: Monday arrivals, and departures on each day.',
        fn:(roster)=>{
          const m=new Map();
          const add=(leg,day,hour)=>{const key=leg+'|'+day+'|'+hour;const g=m.get(key)||{key,leg,day,hour:+hour,count:0};g.count++;m.set(key,g);};
          for(const r of roster){
            if(r.arr_mode==='Flying'&&r.arr_day==='2027-03-08')add('arr',r.arr_day,r.arr_hour);
            if(r.dep_mode==='Flying'&&r.dep_day)add('dep',r.dep_day,r.dep_hour);
          }
          return [...m.values()].sort((a,b)=>a.leg.localeCompare(b.leg)||a.day.localeCompare(b.day)||a.hour-b.hour);
        }});
      
      dash.calc('shared_flights',{inputs:['roster'],title:'Flights shared by two or more',description:'Flight numbers that at least two attendees listed for the same day.',
        fn:(roster)=>{
          const m=new Map();
          const add=(leg,day,time,flight)=>{if(!flight||!/\d/.test(String(flight)))return;const key=leg+'|'+day+'|'+flight;const g=m.get(key)||{key,leg,day,time,flight,count:0};g.count++;m.set(key,g);};
          for(const r of roster){
            if(r.arr_mode==='Flying')add('arr',r.arr_day,r.arr_time,r.arr_flight);
            if(r.dep_mode==='Flying')add('dep',r.dep_day,r.dep_time,r.dep_flight);
          }
          return [...m.values()].filter((g)=>g.count>1).sort((a,b)=>(a.day+a.time).localeCompare(b.day+b.time));
        }});
      
      dash.onData(()=>{document.querySelectorAll('#dash-root .la').forEach((e)=>e.style.setProperty('--la-accent',dash.colors[0]));});
      
      dash.draw('stat',(e)=>{const d=dash.data('summary');e.textContent=d.status==='ok'&&d.data&&d.data[0]?d.data[0][e.dataset.field]:'—';});
      
      function drawGroups(box,leg){
        const g=dash.data('ride_groups'),r=dash.data('roster');
        if(g.status!=='ok'||r.status!=='ok'||!g.data){box.textContent='—';return;}
        const groups=g.data.filter((x)=>x.leg===leg);
        box.replaceChildren();
        if(!groups.length){box.append(el('div','la-cnt','No flights listed.'));return;}
        const max=Math.max(...groups.map((x)=>x.count));
        const P=leg==='arr'?{mode:'arr_mode',day:'arr_day',hour:'arr_hour',time:'arr_time',flight:'arr_flight'}:{mode:'dep_mode',day:'dep_day',hour:'dep_hour',time:'dep_time',flight:'dep_flight'};
        let last=null;
        for(const grp of groups){
          if(leg==='dep'&&grp.day!==last){box.append(el('div','la-day',DAYS[grp.day]||grp.day));last=grp.day;}
          const wrap=el('div','la-grp'),head=el('div','la-grp-head');
          head.append(el('span',null,hr(grp.hour)+' – '+hr(grp.hour+1)));
          const track=el('span','la-track'),bar=el('span','la-bar');bar.style.width=(grp.count/max*100)+'%';track.append(bar);head.append(track);
          const cnt=el('span','la-cnt');const n=el('span',null,grp.count);
          cnt.append(n,document.createTextNode(grp.count===1?' person':' people'));head.append(cnt);
          const ul=el('ul','la-chips');
          const ppl=r.data.filter((p)=>p[P.mode]==='Flying'&&p[P.day]===grp.day&&+p[P.hour]===grp.hour)
            .sort((a,b)=>s(a[P.time]).localeCompare(s(b[P.time])));
          ppl.forEach((p)=>{const li=el('li','la-chip');li.dataset.name=s(p.name);const lv=live(p[P.flight],p[P.day],leg);if(lv)li.append(el('span','la-dot la-dot-'+s(lv.level)));li.append(document.createTextNode(s(p.name)));li.append(el('small',null,t12(p[P.time])+' · '+s(p[P.flight])+(lv?' · '+s(lv.status_text):'')));ul.append(li);});
          wrap.append(head,ul);
          if(ppl.length>1){const when=hr(grp.hour)+' – '+hr(grp.hour+1)+' '+(SHORT[grp.day]||'');wrap.append(teamsBtn(ppl.map((p)=>s(p.email)),leg==='arr'?'DEN arrivals '+when:'Ride to DEN '+when,leg==='arr'?'Hi all! Looks like we land at DEN around the same time ('+when+'). Want to share a ride to the hotel?':'Hi all! Looks like we fly out of DEN around the same time ('+when+'). Want to share a ride to the airport?'));}
          box.append(wrap);
        }
      }
      dash.draw('checked',(e)=>{const fs=dash.data('flight_status');e.textContent=fs.status==='ok'&&Array.isArray(fs.data)&&fs.data[0]?s(fs.data[0].checked):'—';});
      dash.draw('me-select',(sel)=>{
        const r=dash.data('roster');
        const people=r.status==='ok'?[...r.data].sort((a,b)=>s(a.name).localeCompare(s(b.name))):[];
        sel.replaceChildren(new Option('Pick your name',''),...people.map((p)=>new Option(p.name,p.email)));
        sel.value=state.me;
        sel.onchange=()=>{state.me=sel.value;dash.draw('match-in');dash.draw('match-out');dash.draw('dir-teams');dash.draw('tue-teams');};
      });
      function drawMatch(box,leg){
        const r=dash.data('roster');
        if(r.status!=='ok'){box.textContent='—';return;}
        box.replaceChildren();
        if(!state.me){box.append(el('div','la-you','Pick your name above to see your options.'));return;}
        const P=leg==='arr'?{mode:'arr_mode',day:'arr_day',time:'arr_time',label:'arrives',flight:'arr_flight'}:{mode:'dep_mode',day:'dep_day',time:'dep_time',label:'departs',flight:'dep_flight'};
        const status=(p)=>{
          const f=s(p[P.flight]).split(' / ')[0];if(!/\d/.test(f)||!p[P.day]||!p[P.time])return null;
          const [y,mo,d]=s(p[P.day]).split('-').map(Number),[hh,mm]=s(p[P.time]).split(':').map(Number);
          const left=Math.round((Date.UTC(y,mo-1,d,hh+DEN_UTC_OFFSET_H,mm)-Date.now())/60000);
          const dur=(n)=>n>=60?Math.floor(n/60)+' h '+String(n%60).padStart(2,'0')+' min':n+' min';
          const verb=leg==='arr'?'lands':'departs';
          let cls,text;const lv=live(p[P.flight],p[P.day],leg);
          if(lv){cls='la-st-'+s(lv.level);text=s(lv.status_text)+' · checked '+s(lv.checked);}
          else if(window.__static){cls='la-st-sched';text='Scheduled time only';}
          else if(left>60){cls='la-st-sched';text='Scheduled: '+verb+' in '+dur(left);}
          else if(left>=0){cls='la-st-soon';text='Due soon: '+verb+' in '+dur(left)+' by schedule';}
          else{cls='la-st-past';text=(leg==='arr'?'Scheduled landing':'Scheduled departure')+' was '+dur(-left)+' ago';}
          const a=el('a','la-status '+cls);a.href='https://www.google.com/search?q='+encodeURIComponent(f+' flight status');a.target='_blank';a.rel='noopener';
          a.append(el('span','la-st-bar'),el('span','la-st-text',f+' · '+text),el('span','la-st-go','Live status ›'));
          return a;};
        const me=r.data.find((p)=>p.email===state.me);
        if(!me)return;
        if(me[P.mode]!=='Flying'||!me[P.time]){box.append(el('div','la-you','The sheet has no flight for you here ('+s(me[P.label])+').'));return;}
        box.append(el('div','la-you','You: '+s(me[P.label])));const ms=status(me);if(ms)box.append(ms);
        const t0=mins(me[P.time]);
        const near=r.data.filter((p)=>p.email!==me.email&&p[P.mode]==='Flying'&&p[P.day]===me[P.day]&&p[P.time]&&(leg==='arr'?(mins(p[P.time])-t0>=0&&mins(p[P.time])-t0<=WINDOW_MIN):Math.abs(mins(p[P.time])-t0)<=WINDOW_MIN))
          .map((p)=>({p,d:mins(p[P.time])-t0})).sort((a,b)=>Math.abs(a.d)-Math.abs(b.d));
        if(!near.length){box.append(el('div',null,leg==='arr'?'No one is listed landing in the hour after you. Check the hour-by-hour groups below.':'No one else is listed within an hour of you. Check the hour-by-hour groups below.'));return;}
        const myF=s(me[P.flight]).split(' / ')[0];
        const msg=(leg==='arr'?'Hi! I land at DEN '+s(me.arrives)+'. Want to share a ride to the hotel?':'Hi! I fly out of DEN '+s(me.departs)+'. Want to share a ride to the airport?')
          +(/\d/.test(myF)?' My live flight status: https://www.google.com/search?q='+myF.replace(/[^A-Za-z0-9]/g,''):'');
        const teams=(emails)=>'https://teams.microsoft.com/l/chat/0/0?users='+emails.map(encodeURIComponent).join(',')+(emails.length>1?'&topicName='+encodeURIComponent(leg==='arr'?'DEN ride share Monday':'Ride share to DEN'):'')+'&message='+encodeURIComponent(msg);
        const ul=el('ul','la-mlist');
        for(const {p,d} of near){
          const li=el('li'),a=el('a',null,p.name);a.href='mailto:'+s(p.email);li.append(a);
          const tm=el('a','la-tm','Message on Teams');tm.href=teams([s(p.email)]);tm.target='_blank';tm.rel='noopener';li.append(tm);
          li.append(el('small',null,s(p.email)));const sm=el('small',null,s(p[P.label])+' · '+(d===0?'same time as you':Math.abs(d)+' min '+(d<0?'before':'after')+' you'));li.append(sm);const st=status(p);if(st)li.append(st);
          ul.append(li);
        }
        box.append(ul);
        const list=near.map((x)=>s(x.p.email)).join('; ');
        const row=el('div','la-actions');
        const all=el('a','la-btn','Email this group');
        all.href='mailto:'+near.map((x)=>s(x.p.email)).join(',')+'?subject='+encodeURIComponent(leg==='arr'?'Share a ride from DEN on Monday?':'Share a ride to DEN?');
        all.target='_blank';all.rel='noopener';
        const addr=el('div','la-emails',list);
        const copy=el('button','la-btn la-btn2','Copy emails');copy.type='button';
        const pick=()=>{const rg=document.createRange();rg.selectNodeContents(addr);const sel=window.getSelection();sel.removeAllRanges();sel.addRange(rg);};
        copy.onclick=()=>{pick();let ok=false;try{ok=document.execCommand('copy');}catch(e){}
          const done=()=>{copy.textContent='Copied';};
          if(ok)done();else if(navigator.clipboard&&navigator.clipboard.writeText)navigator.clipboard.writeText(list).then(done,()=>{copy.textContent='Selected below, press copy';});
          else copy.textContent='Selected below, press copy';};
        all.className='la-btn la-btn2';
        const tg=el('a','la-btn','Message this group on Teams');tg.href=teams(near.map((x)=>s(x.p.email)));tg.target='_blank';tg.rel='noopener';
        row.append(tg,all,copy);
        box.append(row,el('div','la-you','Teams opens with this message ready to send:'),el('div','la-emails',msg),el('div','la-you','Or copy the addresses:'),addr);
      }
      dash.draw('match-in',(b)=>drawMatch(b,'arr'));
      dash.draw('match-out',(b)=>drawMatch(b,'dep'));
      dash.draw('rides-in',(b)=>drawGroups(b,'arr'));
      dash.draw('rides-out',(b)=>drawGroups(b,'dep'));
      
      dash.draw('flights',(box)=>{
        const f=dash.data('shared_flights'),r=dash.data('roster');
        if(f.status!=='ok'||r.status!=='ok'||!f.data){box.textContent='—';return;}
        box.replaceChildren();
        for(const g of f.data){
          const card=el('div','la-fl'),top=el('div','la-fl-top');
          top.append(el('span','la-fl-no',g.flight),el('span','la-fl-tag',g.leg==='arr'?'Into DEN':'Out of DEN'));
          const when=el('div','la-fl-when',(SHORT[g.day]||g.day)+' '+t12(g.time)+' · ');
          const n=el('span',null,g.count);
          when.append(n,document.createTextNode(' of us'));
          const ul=el('ul','la-chips');
          const fp=r.data.filter((p)=>g.leg==='arr'?(p.arr_flight===g.flight&&p.arr_day===g.day):(p.dep_flight===g.flight&&p.dep_day===g.day));
          fp.forEach((p)=>{const li=el('li','la-chip',p.name);li.dataset.name=s(p.name);ul.append(li);});
          card.append(top,when,ul,teamsBtn(fp.map((p)=>s(p.email)),g.flight+' '+(SHORT[g.day]||''),'Hi all! Looks like we are on the same flight, '+g.flight+' ('+(SHORT[g.day]||'')+' '+t12(g.time)+'). Want to share a ride?'));box.append(card);
        }
      });
      
      dash.draw('meet',(box)=>{
        const r=dash.data('roster');
        if(r.status!=='ok'||!r.data.length){box.textContent='—';return;}
        if(state.pick==null||state.pick>=r.data.length)state.pick=Math.floor(Math.random()*r.data.length);
        const p=r.data[state.pick];
        box.replaceChildren();
        box.append(el('div','la-meet-name',p.name));
        const sub=el('div','la-meet-sub',(p.office?'Office '+p.office+' · ':'')+'Arrives: '+s(p.arrives)+' · ');
        const a=el('a',null,'Say hello');a.href='mailto:'+s(p.email)+'?subject='+encodeURIComponent('Hello from the Team Summit');sub.append(a);
        box.append(sub);
      });
      
      dash.draw('diet',(ul)=>{
        const d=dash.data('dietary');ul.replaceChildren();
        if(d.status!=='ok')return;
        d.data.forEach((row)=>{const li=el('li',null);li.append(el('span',null,row.need));li.append(el('b',null,row.count));ul.append(li);});
      });
      
      dash.draw('tue-night',(ul)=>{
        const r=dash.data('roster');ul.replaceChildren();
        if(r.status!=='ok')return;
        r.data.filter((p)=>String(p.n17)==='1'||p.dep_day==='2027-03-10').forEach((p)=>{const li=el('li','la-chip',p.name);li.dataset.name=s(p.name);li.append(el('small',null,'Leaves '+s(p.departs)));ul.append(li);});
      });
      
      dash.draw('office-select',(sel)=>{
        const r=dash.data('roster');
        const codes=r.status==='ok'?[...new Set(r.data.map((p)=>p.office).filter(Boolean).map(String))].sort():[];
        sel.replaceChildren(new Option('All offices',''),...codes.map((c)=>new Option('Office '+c,c)));
        sel.value=state.office;
        sel.onchange=()=>{state.office=sel.value;dash.draw('dir-body');};
      });
      
      const PLAN_LABEL={fly_mon:'landing Monday',fly_tue:'flying home Tuesday',hotel_mon:'at the hotel Monday',tue_night:'staying Tuesday night',driving:'driving'};
      const dirRows=()=>{
        const r=dash.data('roster');if(r.status!=='ok')return [];
        const q=state.q.trim().toLowerCase();
        const plan={fly_mon:(p)=>p.arr_mode==='Flying'&&p.arr_day===MON,fly_tue:(p)=>p.dep_mode==='Flying'&&p.dep_day===TUE,hotel_mon:(p)=>String(p.n16)==='1',tue_night:(p)=>String(p.n17)==='1',driving:(p)=>p.arr_mode==='Driving'}[state.plan];
        return r.data.filter((p)=>(!q||(s(p.name)+' '+s(p.arrives)+' '+s(p.departs)).toLowerCase().includes(q))&&(!state.office||s(p.office)===state.office)&&(!plan||plan(p)))
          .sort((a,b)=>s(a.name).localeCompare(s(b.name)));
      };
      dash.draw('dir-teams',(a)=>{
        const rows=dirRows().filter((p)=>p.email&&p.email!==state.me);
        const filtered=!!(state.q.trim()||state.office||state.plan);
        a.hidden=!rows.length;if(!rows.length)return;
        const who=[state.office?'office '+state.office:'',state.plan?PLAN_LABEL[state.plan]:''].filter(Boolean).join(', ');
        a.textContent=rows.length===1?'Message '+s(rows[0].name)+' on Teams':(filtered?'Message these '+rows.length+' people on Teams':'Message everyone ('+rows.length+') on Teams');
        a.href=teamsUrl(rows.map((p)=>s(p.email)),'Team Summit Denver'+(who?' · '+who:''),rows.length===1?'Hi! Looking forward to seeing you at the Team Summit in Denver.':'Hi all! Looking forward to seeing everyone at the Team Summit in Denver.');
      });
      dash.draw('tue-teams',(a)=>{
        const r=dash.data('roster');
        const rows=r.status==='ok'?r.data.filter((p)=>(String(p.n17)==='1'||p.dep_day==='2027-03-10')&&p.email!==state.me):[];
        a.hidden=rows.length<2;if(rows.length<2)return;
        a.textContent='Message this group on Teams';
        a.href=teamsUrl(rows.map((p)=>s(p.email)),'Denver Tuesday night','Hi all! Looks like we are all still in Denver on Tuesday night. Want to get dinner together?');
      });
      dash.draw('dir-body',(tb)=>{
        const r=dash.data('roster');tb.replaceChildren();
        if(r.status!=='ok')return;
        const rows=dirRows();
        dash.draw('dir-teams');
        if(!rows.length){const tr=el('tr'),td=el('td',null,'No one matches. Clear a filter to see everyone.');td.colSpan=4;tr.append(td);tb.append(tr);return;}
        for(const p of rows){
          const tr=el('tr');
          const td=el('td'),a=el('a',null,p.name);a.href='mailto:'+s(p.email);td.append(a);
          tr.append(td,el('td',null,s(p.office)),el('td',null,s(p.arrives)),el('td',null,s(p.departs)));
          tb.append(tr);
        }
      });
      
      document.querySelectorAll('#dash-root .la-search').forEach((i)=>i.addEventListener('input',()=>{state.q=i.value;dash.draw('dir-body');}));
      document.querySelectorAll('#dash-root #la-plan').forEach((i)=>i.addEventListener('change',()=>{state.plan=i.value;dash.draw('dir-body');}));
      const goTo=(id)=>{const t=document.getElementById(id);if(t)t.scrollIntoView({behavior:window.matchMedia('(prefers-reduced-motion: reduce)').matches?'auto':'smooth',block:'start'});};
      const setDir=(o)=>{if('q' in o){state.q=o.q;document.querySelectorAll('#dash-root .la-search').forEach((i)=>{i.value=o.q;});}
        if('plan' in o){state.plan=o.plan;document.querySelectorAll('#dash-root #la-plan').forEach((i)=>{i.value=o.plan;});}
        dash.draw('dir-body');};
      document.querySelectorAll('#dash-root .la').forEach((root)=>root.addEventListener('click',(ev)=>{
        const chip=ev.target.closest('.la-chip[data-name]');
        if(chip&&root.contains(chip)){setDir({q:chip.dataset.name,plan:''});goTo('people');return;}
        const a=ev.target.closest('a[href^="#"]');
        if(a&&root.contains(a)){ev.preventDefault();if(a.dataset.plan!==undefined)setDir({q:'',plan:a.dataset.plan});goTo(a.getAttribute('href').slice(1));}
      }));
      document.querySelectorAll('#dash-root #meet-btn').forEach((b)=>b.addEventListener('click',()=>{const r=dash.data('roster');if(r.status!=='ok'||r.data.length<2)return;let n;do{n=Math.floor(Math.random()*r.data.length);}while(n===state.pick);state.pick=n;dash.draw('meet');}));
      
      hub.css162 lines

      Raw file

      :root{--color-fg:#1c1b19;--color-fg-muted:#6a675f;--color-panel:#ffffff;--color-bg:#f6f4ef;--color-border-line:#e2ded5;--color-ok:#2e8b57;--color-warn:#d99a1b;--color-bad:#c8452f;--font-anthropic-sans:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;--font-anthropic-serif:Georgia,"Times New Roman",serif}
      @media (prefers-color-scheme:dark){:root{--color-fg:#f1efe9;--color-fg-muted:#a9a59b;--color-panel:#24231f;--color-bg:#181714;--color-border-line:#3a3832;--color-ok:#4fb37d;--color-warn:#e3b04b;--color-bad:#e0705c}}
      html{scroll-behavior:smooth}
      body{margin:0;padding:16px;background:var(--color-bg);color:var(--color-fg);-webkit-text-size-adjust:100%}
      .dash-select{font:inherit;font-size:14px;padding:8px 12px;border-radius:10px;border:1px solid var(--color-border-line);background-color:var(--color-panel);color:var(--color-fg);max-width:100%}
      .la{--la-accent:var(--color-fg);--la-tint:color-mix(in srgb,var(--la-accent) 10%,var(--color-panel));display:flex;flex-direction:column;gap:var(--cds-gap-xl,28px);font-family:var(--font-anthropic-sans);color:var(--color-fg);max-width:1100px;margin:0 auto}
      .la *{box-sizing:border-box}
      .la{--la-navy:color-mix(in srgb,var(--la-accent) 62%,#000);--la-deep:color-mix(in srgb,var(--la-accent) 38%,#000)}
      .la-hero{position:relative;overflow:hidden;border-radius:calc(var(--cds-radius,10px) * 2);padding:34px 24px 74px;color:#fff;background:radial-gradient(120% 90% at 85% 0%,color-mix(in srgb,var(--la-accent) 85%,#fff) 0%,transparent 55%),linear-gradient(160deg,var(--la-navy),var(--la-deep));box-shadow:0 18px 40px -22px var(--la-deep)}
      .la-hero .la-eyebrow{color:rgba(255,255,255,.78)}
      .la-hero .la-by{color:rgba(255,255,255,.72)}
      .la .la-hero a{color:#fff;text-decoration:underline}
      .la .la-hero .la-nav a{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.28);color:#fff;text-decoration:none;backdrop-filter:blur(4px)}
      .la-hero .la-lede b{font-family:var(--font-anthropic-serif);font-weight:400;font-size:1.25em}
      .la-waves{position:absolute;left:0;right:0;bottom:-1px;width:100%;height:64px;display:block;pointer-events:none}
      .la-waves path:nth-child(1){fill:rgba(255,255,255,.10)}
      .la-waves path:nth-child(2){fill:rgba(255,255,255,.16)}
      .la-waves path:nth-child(3){fill:var(--color-bg)}
      .la-hero>*:not(.la-waves){position:relative;z-index:1}
      .la-sec h2{position:relative;padding-bottom:10px}
      .la-sec h2::after{content:"";position:absolute;left:0;bottom:0;width:44px;height:3px;border-radius:3px;background:var(--la-accent)}
      .la-card,.la-tile,.la-fl,.la-tablewrap{box-shadow:0 10px 28px -22px var(--la-deep)}
      .la-tile .la-n{color:var(--la-accent)}
      .la-table thead th{background:var(--la-tint)}
      .la-table tbody tr:nth-child(even) td{background:color-mix(in srgb,var(--la-accent) 4%,transparent)}
      @media (prefers-reduced-motion:no-preference){
      .la-hero,.la-tile,.la-sec{animation:la-rise var(--cds-dur-slow,.5s) var(--cds-ease-out,ease-out) both}
      .la-tile:nth-child(2){animation-delay:.05s}.la-tile:nth-child(3){animation-delay:.1s}.la-tile:nth-child(4){animation-delay:.15s}.la-tile:nth-child(5){animation-delay:.2s}.la-tile:nth-child(6){animation-delay:.25s}
      .la-waves path:nth-child(1){animation:la-drift 14s ease-in-out infinite alternate}
      .la-waves path:nth-child(2){animation:la-drift 10s ease-in-out infinite alternate-reverse}
      .la-tile,.la-fl{transition:transform .2s ease}.la-tile:hover,.la-fl:hover{transform:translateY(-2px)}
      }
      @keyframes la-rise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
      @keyframes la-drift{from{transform:translateX(-3%)}to{transform:translateX(3%)}}
      .la-eyebrow{margin:0 0 6px;font-size:var(--cds-font-size-caption,12px);letter-spacing:.12em;text-transform:uppercase;color:var(--la-accent);font-weight:600}
      .la-hero h1{margin:0 0 12px;font-family:var(--font-anthropic-serif);font-weight:400;font-size:clamp(30px,7vw,48px);line-height:1.05}
      .la-lede{margin:0 0 14px;font-size:clamp(15px,2.6vw,18px);line-height:1.5;max-width:60ch}
      .la-lede b{font-variant-numeric:tabular-nums}
      .la-by{margin:0;font-size:var(--cds-font-size-caption,12px);color:var(--color-fg-muted)}
      .la a{color:var(--la-accent);text-decoration:none}
      .la a:hover{text-decoration:underline}
      .la-nav{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
      .la-nav a{padding:7px 12px;border-radius:999px;border:1px solid var(--color-border-line);background:var(--color-panel);font-size:13px;color:var(--color-fg)}
      .la-tiles{margin-top:-52px;padding:0 12px;position:relative;z-index:2;display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px}
      .la-tile{background:linear-gradient(180deg,var(--la-tint),var(--color-panel) 60%);border:1px solid var(--color-border-line);border-radius:calc(var(--cds-radius,10px) * 1.4);padding:18px 16px}
      .la-tile .la-n{display:block;font-family:var(--font-anthropic-serif);font-weight:400;font-size:44px;line-height:1;font-variant-numeric:tabular-nums;min-height:44px}
      .la-tile .la-l{display:block;margin-top:8px;font-size:13px;font-weight:600}
      .la-tile .la-s{display:block;margin-top:2px;font-size:12px;color:var(--color-fg-muted)}
      .la-sec{display:flex;flex-direction:column;gap:12px}
      .la-sec h2{margin:0;font-family:var(--font-anthropic-serif);font-weight:400;font-size:26px;line-height:1.15}
      .la-sec>p{margin:0;color:var(--color-fg-muted);font-size:14px;line-height:1.5;max-width:70ch}
      .la-card{background:var(--color-panel);border:1px solid var(--color-border-line);border-radius:var(--cds-radius,10px);padding:16px}
      .la-two{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:14px}
      .la-card h3{margin:0 0 10px;font-size:15px;font-weight:600}
      .la-groups{display:flex;flex-direction:column;gap:14px;min-height:120px}
      .la-day{font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:var(--color-fg-muted);font-weight:600;margin-top:4px}
      .la-grp-head{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;font-size:13px;font-weight:600}
      .la-track{height:8px;border-radius:99px;background:var(--la-tint);overflow:hidden}
      .la-bar{display:block;height:100%;border-radius:99px;background:var(--la-accent)}
      .la-cnt{font-variant-numeric:tabular-nums;color:var(--color-fg-muted);font-weight:500;white-space:nowrap}
      .la-chips{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 0;padding:0;list-style:none}
      .la-chip{background:var(--la-tint);border-radius:8px;padding:5px 9px;font-size:13px;line-height:1.3}
      .la-chip{max-width:100%;overflow-wrap:anywhere}
      .la-chip small{display:block;color:var(--color-fg-muted);font-size:12px;margin:1px 0 0;white-space:normal}
      .la-status,.la-st-text,.la-mlist li,.la-you{min-width:0;overflow-wrap:anywhere}
      .la-flights{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px;min-height:80px}
      .la-fl{background:var(--color-panel);border:1px solid var(--color-border-line);border-radius:var(--cds-radius,10px);padding:14px}
      .la-fl-top{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
      .la-fl-no{font-family:var(--font-anthropic-serif);font-size:22px}
      .la-fl-tag{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--la-accent);font-weight:600}
      .la-fl-when{font-size:13px;color:var(--color-fg-muted);margin-top:2px}
      .la-diet{display:flex;flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;min-height:60px}
      .la-diet li{display:flex;justify-content:space-between;gap:12px;font-size:14px;border-bottom:1px dashed var(--color-border-line);padding-bottom:6px}
      .la-diet b{font-variant-numeric:tabular-nums}
      .la-meet{display:flex;flex-direction:column;gap:12px;align-items:flex-start}
      .la-meet-card{min-height:64px}
      .la-meet-name{font-family:var(--font-anthropic-serif);font-size:26px;line-height:1.1}
      .la-meet-sub{font-size:13px;color:var(--color-fg-muted);margin-top:4px}
      .la a.la-btn{color:#fff;display:inline-block}
      .la a.la-btn:hover{text-decoration:none}
      .la-btn{font:inherit;font-size:14px;font-weight:600;padding:10px 18px;border-radius:999px;border:0;background:linear-gradient(160deg,var(--la-accent),var(--la-navy));color:#fff;cursor:pointer}
      .la-controls{display:flex;flex-wrap:wrap;gap:8px}
      .la-search{font:inherit;font-size:14px;flex:1 1 180px;min-width:0;padding:8px 12px;border-radius:var(--cds-radius,10px);border:1px solid var(--color-border-line);background-color:var(--color-panel);color:var(--color-fg)}
      .la-tablewrap{overflow-x:auto;border:1px solid var(--color-border-line);border-radius:var(--cds-radius,10px);background:var(--color-panel)}
      .la-table{width:100%;border-collapse:collapse;font-size:13.5px;min-width:520px}
      .la-table th{text-align:left;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--color-fg-muted);padding:10px 12px;border-bottom:1px solid var(--color-border-line);white-space:nowrap}
      .la-table td{padding:9px 12px;border-bottom:1px solid var(--color-border-line);vertical-align:top}
      .la-table tr:last-child td{border-bottom:0}
      .la-table td:nth-child(2){font-variant-numeric:tabular-nums;color:var(--color-fg-muted)}
      .la-match{min-height:70px;font-size:14px}
      .la-you{font-size:13px;color:var(--color-fg-muted);margin-bottom:10px}
      .la-mlist{list-style:none;margin:0 0 12px;padding:0;display:flex;flex-direction:column;gap:8px}
      .la-mlist li{background:var(--la-tint);border-radius:8px;padding:8px 10px}
      .la-mlist small{display:block;color:var(--color-fg-muted);font-size:12px;margin-top:2px}
      .la-status{display:grid;grid-template-columns:1fr auto;gap:2px 10px;align-items:center;margin:8px 0 10px;padding:8px 10px 8px 14px;border-radius:8px;background:var(--color-panel);border:1px solid var(--color-border-line);position:relative;overflow:hidden;font-size:12.5px;color:var(--color-fg);text-decoration:none}
      .la a.la-status{color:var(--color-fg)}.la a.la-status:hover{text-decoration:none}
      .la-mlist .la-status{margin:8px 0 0}
      .la-st-bar{position:absolute;left:0;top:0;bottom:0;width:5px;background:var(--la-accent)}
      .la-st-soon .la-st-bar{background:var(--color-warn)}
      .la-st-past .la-st-bar{background:var(--color-fg-muted)}
      .la-st-ok .la-st-bar,.la-dot-ok{background:var(--color-ok)}
      .la-st-warn .la-st-bar,.la-dot-warn{background:var(--color-warn)}
      .la-st-bad .la-st-bar,.la-dot-bad{background:var(--color-bad)}
      .la-dot{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:6px}
      .la-legend{display:flex;flex-wrap:wrap;gap:12px;font-size:12px;color:var(--color-fg-muted);margin:0 0 12px}
      .la-st-go{color:var(--la-accent);font-weight:600;white-space:nowrap}
      .la-tm{float:right;font-size:12px;font-weight:600;padding:3px 9px;border-radius:999px;border:1px solid var(--la-accent);background:var(--color-panel)}
      .la a.la-btn.la-btn2{color:var(--la-accent)}
      .la-tmg{display:inline-flex;align-items:center;min-height:36px;margin-top:8px;padding:4px 12px;font-size:12.5px;font-weight:600;border-radius:999px;border:1px solid var(--la-accent);background:var(--color-panel)}
      .la-updated{margin:0 0 10px;font-size:12.5px;color:var(--color-fg-muted)}
      .la-sec>p.la-updated{font-size:12.5px}
      .la-updated b{color:var(--color-fg)}
      .la-actions{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}
      .la-btn.la-btn2{background:var(--color-panel);color:var(--la-accent);border:1px solid var(--la-accent)}
      .la-emails{font-size:12.5px;line-height:1.5;padding:10px;border:1px dashed var(--color-border-line);border-radius:8px;background:var(--color-bg);user-select:all;-webkit-user-select:all;overflow-wrap:anywhere}
      .la{container-type:inline-size}
      .la-hero{order:0}#my-ride{order:1}.la-tiles{order:2;margin-top:0;padding:0}.la-sec,.la-notes{order:3}
      .la-hero{padding-bottom:64px}
      .la a.la-tile{color:var(--color-fg);text-decoration:none;display:block;position:relative;cursor:pointer}
      .la a.la-tile:hover{text-decoration:none}
      .la a.la-tile::after{content:"›";position:absolute;right:12px;top:10px;color:var(--la-accent);font-size:18px}
      .la a.la-tile:active{transform:scale(.97)}
      .la-chip[data-name]{cursor:pointer}
      .la-btn,.la-tm,.la-nav a,.dash-select,.la-search{min-height:40px;display:inline-flex;align-items:center}
      .la-tm{min-height:32px}
      .la-top{position:sticky;bottom:12px;align-self:flex-end;order:4;z-index:5;box-shadow:0 8px 20px -8px var(--la-deep)}
      @container (max-width:560px){
      .la-tiles{grid-template-columns:repeat(3,1fr);gap:8px}
      .la-tile{padding:12px 10px}
      .la-tile .la-n{font-size:28px;min-height:28px}
      .la-tile .la-l{font-size:11.5px;margin-top:4px}
      .la-tile .la-s{display:none}
      .la a.la-tile::after{right:8px;top:6px;font-size:14px}
      .la-hero{padding:24px 18px 60px}
      .la-nav{flex-wrap:nowrap;overflow-x:auto;margin-right:-18px;padding-right:18px;scrollbar-width:none}
      .la-nav a{white-space:nowrap;flex:0 0 auto}
      .la-controls .dash-select,.la-controls .la-search{flex:1 1 100%;width:100%}
      .la-actions .la-btn{flex:1 1 100%;justify-content:center}
      .la-grp-head>span:first-child{white-space:nowrap;min-width:104px}
      .la-table{min-width:0}
      .la-table thead{display:none}
      .la-table tr{display:block;padding:10px 12px;border-bottom:1px solid var(--color-border-line)}
      .la-table td{display:block;padding:1px 0;border:0}
      .la-table td:first-child{font-size:15px;font-weight:600}
      .la-table td:nth-child(2):not(:empty)::before{content:"Office "}
      .la-table td:nth-child(3)::before{content:"Arrives: ";color:var(--color-fg-muted)}
      .la-table td:nth-child(4)::before{content:"Departs: ";color:var(--color-fg-muted)}
      }
      .la-notes{font-size:13px;color:var(--color-fg-muted);line-height:1.55}
      .la-notes summary{cursor:pointer;font-weight:600;color:var(--color-fg)}
      .la-notes li{margin:6px 0}
      .la [hidden]{display:none!important}
      .la:not(.js) .js-only{display:none!important}
      .la.js .nojs-only{display:none!important}
      .la-person{background:var(--color-panel);border:1px solid var(--color-border-line);border-radius:10px;padding:10px 14px}
      .la-person summary{cursor:pointer;font-weight:600;font-size:15px;min-height:28px}
      .la-person h4{margin:14px 0 8px;font-size:13px;letter-spacing:.06em;text-transform:uppercase;color:var(--color-fg-muted)}
      .la-people{display:flex;flex-direction:column;gap:8px}
      
      .la-demo{margin:0 auto 14px;max-width:1100px;padding:10px 14px;border-radius:10px;border:1px dashed var(--color-border-line);background:var(--color-panel);font:14px/1.45 var(--font-anthropic-sans);color:var(--color-fg)}
      .la-demo a{color:inherit;font-weight:600}
      

      Have an idea of your own?

      Look around your day, find the thing that wastes your time, and build the fix. Everything here is free to help you start. If you would rather I built it, or you just want to talk an idea through, write to me.

      Write to me Email meHow to use what is here