    /* =================== SAVED ===================
       A bookmark under the menu button, carrying a count. It appears
       only once there is something in it, so an empty app stays quiet,
       and it sits under the menu scrim the way the other floating
       controls do. */
    /* It rides in the header beside the day/night pill, one step to its
       left, and matches its height so the two read as a pair. Like the
       pill, a copy is built for every header and one floats over the
       destination hub. */
    .saved-fab {
      display: none;
      position: relative;
      align-items: center;
      justify-content: center;
      gap: 5px;
      flex-shrink: 0;
      width: 34px;
      height: 34px;
      padding: 0;
      border: none;
      border-radius: 17px;
      background: var(--surface);
      color: var(--ink);
      cursor: pointer;
      box-shadow: 0 4px 14px rgba(var(--shade-rgb), 0.18),
                  inset 0 0 0 1px var(--hairline);
      transition: transform 0.15s ease, background 0.4s ease, box-shadow 0.4s ease;
      -webkit-tap-highlight-color: transparent;
    }

    .saved-fab.on { display: inline-flex; }

    .saved-fab:active { transform: scale(0.92); }

    /* The saved button now leads the cluster, so it takes over the two
       jobs the pill used to do: pinning the group to the right edge, and
       the nudge that lines it up with the screen title. That keeps the
       three controls in the same place on every screen. */
    .screen-head .saved-fab {
      margin-left: auto;
      margin-top: 8px;
    }

    .screen-head .saved-fab + .theme-toggle { margin-left: 0; }

    .home-topbar .saved-fab {
      margin-left: auto;
      margin-right: 10px;
    }

    .home-topbar .saved-fab + .theme-toggle { margin-left: 0; }

    /* The hub has no header bar, so this one floats with the pill and the
       menu button, one step further left again. */
    .saved-fab.saved-floating {
      position: fixed;
      top: max(16px, env(safe-area-inset-top));
      right: 138px;
      z-index: 70;
      margin: 4px 0 0;
      opacity: 0;
      transform: scale(0.65) translateY(-6px);
      pointer-events: none;
      transition: opacity 0.38s cubic-bezier(0.2, 0.8, 0.2, 1),
                  transform 0.42s cubic-bezier(0.34, 1.56, 0.64, 1),
                  background 0.4s ease, box-shadow 0.4s ease;
    }

    .saved-fab.saved-floating.nav-btn-visible {
      opacity: 1;
      transform: scale(1) translateY(0);
      pointer-events: auto;
    }

    .saved-fab.saved-floating:active { transform: scale(0.92) translateY(0); }

    /* The count rides the edge of the circle, the way a badge does: near
       enough to belong to the button, far enough not to crowd the mark. */
    .saved-fab-count[hidden] { display: none; }

    .saved-fab-count {
      position: absolute;
      top: -4px;
      right: -4px;
      min-width: 17px;
      height: 17px;
      padding: 0 4px;
      border-radius: 9px;
      background: #e0322e;
      color: #fff;
      font-family: var(--sans);
      font-size: 10.5px;
      font-weight: 800;
      line-height: 17px;
      text-align: center;
      flex-shrink: 0;
      box-shadow: 0 0 0 2px var(--surface);
    }


    /* A quick look, not a screen. It drops from under the button and
       covers only as much as it needs. */
    .saved-pop-scrim {
      position: absolute;
      inset: 0;
      background: var(--scrim);
      z-index: 84;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.22s ease;
    }

    .saved-pop-scrim.on { opacity: 1; pointer-events: auto; }

    .saved-pop {
      position: fixed;
      top: calc(max(16px, env(safe-area-inset-top)) + 48px);
      right: 14px;
      width: min(310px, calc(100% - 28px));
      max-height: 56%;
      display: flex;
      flex-direction: column;
      background: var(--surface);
      border-radius: 22px;
      padding: 14px 16px 16px;
      box-shadow: 0 16px 40px rgba(var(--shade-rgb), 0.34);
      z-index: 85;
      transform-origin: top right;
      opacity: 0;
      transform: scale(0.9) translateY(-8px);
      pointer-events: none;
      transition: opacity 0.18s ease, transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .saved-pop.on {
      opacity: 1;
      transform: none;
      pointer-events: auto;
    }

    .saved-pop-head {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 2px;
    }

    .saved-pop-title {
      flex: 1;
      font-family: var(--sans);
      font-size: 14px;
      font-weight: 800;
      letter-spacing: -0.3px;
      color: var(--ink);
    }

    .saved-pop-close {
      flex-shrink: 0;
      width: 26px;
      height: 26px;
      border: none;
      border-radius: 50%;
      background: rgba(var(--ink-rgb), 0.07);
      color: var(--ink-3);
      font-size: 16px;
      line-height: 1;
      cursor: pointer;
    }

    .saved-pop-list {
      flex: 1;
      overflow-y: auto;
      scrollbar-width: none;
      margin: 4px 0 12px;
    }

    .saved-pop-list::-webkit-scrollbar { display: none; }

    .saved-pop .book-btn {
      flex: none;
      height: 44px;
      font-size: 13.5px;
    }

    .saved-pop-empty {
      padding: 14px 0;
      font-size: 12.5px;
      font-weight: 600;
      color: var(--ink-3);
    }

    .saved-row {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 7px 0;
      border-top: 1px solid var(--hairline);
    }

    .saved-pop-list .saved-row:first-child { border-top: none; }

    .saved-row-main {
      flex: 1;
      min-width: 0;
      font-size: 13.5px;
      font-weight: 700;
      color: var(--ink);
    }

    .saved-row-meta {
      font-size: 11.5px;
      font-weight: 600;
      color: var(--ink-3);
      margin-top: 1px;
    }

    .saved-drop {
      flex-shrink: 0;
      width: 26px;
      height: 26px;
      border: none;
      border-radius: 50%;
      background: rgba(var(--ink-rgb), 0.07);
      color: var(--ink-3);
      font-size: 15px;
      line-height: 1;
      cursor: pointer;
    }


    /* =================== HEADER MENU ===================
       The header menu: six rows, one per destination of the app.
       Everything here is scoped to #menuSheet, because .sheet-row is
       also the row that opens a tour PDF and the one that says "see all".
       ================================================================= */

    /* --- base row parts --- */
    #menuSheet .sheet-rows { display: block; }

    #menuSheet .sheet-row {
      position: relative;
      gap: 12px;
      justify-content: flex-start;
      transition: background 0.18s ease, transform 0.18s ease, padding 0.2s ease;
    }

    #menuSheet .sheet-row:active { transform: scale(0.985); }

    #menuSheet .mrow-num {
      display: none;
      font-family: var(--sans);
      font-size: 10.5px;
      font-weight: 800;
      letter-spacing: 0.6px;
      color: var(--ink-4);
      flex-shrink: 0;
    }

    #menuSheet .mrow-ico {
      display: none;
      flex-shrink: 0;
      align-items: center;
      justify-content: center;
      color: var(--accent);
    }

    #menuSheet .mrow-ico svg { width: 19px; height: 19px; display: block; }

    #menuSheet .mrow-label { flex: 1; min-width: 0; }

    #menuSheet .mrow-chev {
      flex-shrink: 0;
      color: var(--ink-4);
      font-size: 17px;
      line-height: 1;
    }

    /* ---------- The menu rows ----------
       Each row lifts off the sheet as its own card with the icon in a
       chip: the most tactile of the five layouts tried, and the easiest
       to hit. */
    #menuSheet .sheet-rows {
      display: flex;
      flex-direction: column;
      gap: 9px;
      padding: 4px 0 2px;
    }

    #menuSheet .sheet-row {
      border-bottom: none;
      border-radius: 18px;
      padding: 12px 14px 12px 12px;
      background: var(--surface);
      box-shadow: 0 3px 12px rgba(var(--shade-rgb), 0.16),
                  inset 0 0 0 1px var(--hairline);
    }

    #menuSheet .mrow-ico {
      display: flex;
      width: 38px;
      height: 38px;
      border-radius: 13px;
      background: var(--accent-soft);
    }

    #menuSheet .mrow-label {
      font-size: 15px;
      font-weight: 800;
      letter-spacing: -0.3px;
    }

