    /* The page behind an open menu stays where it is (the script also pins
       the body, which is what stops Safari on an iPhone from scrolling it). */
    html.tv-sheet-open { overflow: hidden; }

    .tvm-sheet {
        --g: #ffffff; --ink: #020617; --body: #475569; --muted: #64748b; --soft: #64748b; --soft-line: #94a3b8;
        --line: rgba(15, 23, 42, .07); --card: #f8fafc; --sunk: #f1f5f9; --hover: rgba(15, 23, 42, .04);
        --acc: #2563eb; --acc-ink: #2563eb; --ok: #059669; --warn: #d97706; --bad: #dc2626;
        position: fixed; inset: 0; z-index: 9999; display: flex; flex-direction: column;
        background: var(--g); color: var(--ink); overflow: hidden;
        font-family: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; -webkit-font-smoothing: antialiased;
    }
    html.dark .tvm-sheet {
        --g: #0b0f19; --ink: #f8fafc; --body: #cbd5e1; --muted: #94a3b8; --soft: #94a3b8; --soft-line: #64748b;
        --line: rgba(255, 255, 255, .07); --card: rgba(255, 255, 255, .035); --sunk: rgba(255, 255, 255, .06); --hover: rgba(255, 255, 255, .05);
        --acc-ink: #60a5fa; --ok: #34d399; --warn: #fbbf24; --bad: #f87171;
    }
    .tvm-backdrop { position: fixed; inset: 0; z-index: 9998; background: rgba(15, 23, 42, .4); }
    html.dark .tvm-backdrop { background: rgba(0, 0, 0, .6); }
    @media (max-width: 599px) { .tvm-backdrop { display: none !important; } }
    /* A tablet keeps the page beside it: a panel from the right, as wide as a phone. */
    @media (min-width: 600px) { .tvm-sheet { left: auto; width: 26rem; border-left: 1px solid var(--line); box-shadow: -24px 0 48px -24px rgba(0, 0, 0, .25); } }

    /* In: the whole screen settles into place; a panel slides in from its edge. Out: the reverse, quicker. */
    .tvm-enter { transition: transform .42s cubic-bezier(.16, 1, .3, 1), opacity .28s ease; }
    .tvm-leave { transition: transform .22s ease-in, opacity .18s ease-in; }
    .tvm-away { opacity: 0; transform: translateY(14px) scale(.985); }
    .tvm-here { opacity: 1; transform: none; }
    @media (min-width: 600px) { .tvm-away { opacity: 1; transform: translateX(100%); } }
    .tvm-fade { transition: opacity .24s ease; }
    .tvm-fade-out { opacity: 0; }
    .tvm-fade-in { opacity: 1; }

    /* Everything in the menu arrives in order, once, each time it opens:
       display none to flex restarts the animations. */
    @keyframes tvmIn { from { opacity: 0; transform: translateY(10px); } }
    .tvm-in { animation: tvmIn .55s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(60ms + var(--i, 0) * 45ms); }

    .tvm-main { position: absolute; inset: 0; display: flex; flex-direction: column; transition: transform .38s cubic-bezier(.16, 1, .3, 1), opacity .3s ease; }
    .tvm-sheet.has-layer .tvm-main { transform: translateX(-14%); opacity: .35; }
    .tvm-layer { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; background: var(--g); transform: translateX(100%); visibility: hidden;
        transition: transform .38s cubic-bezier(.16, 1, .3, 1), visibility 0s linear .38s; }
    .tvm-layer.is-open { transform: none; visibility: visible; transition-delay: 0s; }

    @media (prefers-reduced-motion: reduce) {
        .tvm-sheet, .tvm-sheet *, .tvm-backdrop { animation: none !important; transition: none !important; }
    }

    /* The top row: the search field and the way out. */
    .tvm-top { display: flex; flex-shrink: 0; align-items: center; gap: 8px; padding: calc(10px + env(safe-area-inset-top)) 12px 10px 16px; }
    .tvm-search { position: relative; flex: 1; min-width: 0; }
    .tvm-search > svg { position: absolute; left: 14px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--soft); pointer-events: none; }
    .tvm-search input { width: 100%; height: 44px; padding: 0 40px 0 40px; border: 0; border-radius: 999px; background: var(--sunk); color: var(--ink);
        font: inherit; font-size: 16px; -webkit-appearance: none; appearance: none; outline: none; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow 150ms, background-color 150ms; }
    .tvm-search input::placeholder { color: var(--muted); }
    .tvm-search input:focus { background: var(--g); box-shadow: inset 0 0 0 1.5px var(--acc); }
    .tvm-search input::-webkit-search-cancel-button, .tvm-search input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
    .tvm-clear { position: absolute; right: 6px; top: 50%; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-top: -16px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; }
    .tvm-clear:hover { color: var(--ink); background: var(--hover); }

    .tvm-icon-btn { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--body); cursor: pointer; transition: background-color 150ms, color 150ms; }
    .tvm-icon-btn:hover { background: var(--hover); color: var(--ink); }

    .tvm-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 4px 16px 24px; scrollbar-width: none; }
    .tvm-scroll::-webkit-scrollbar { display: none; }

    /* A section's heading: small, with a link at the end when it has one. */
    .tvm-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: -.005em; color: var(--ink); }
    .tvm-h a { font-weight: 500; font-size: 13px; color: var(--acc-ink); text-decoration: none; }

    /* The four lines as tiles: a picture, the name, where the price starts.
       Five columns so the two rows do not line up, 3:2 then 2:3. */
    .tvm-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 6px; }
    .tvm-tile { position: relative; display: flex; flex-direction: column; min-width: 0; height: 206px; border-radius: 20px; overflow: hidden; background: var(--card);
        box-shadow: inset 0 0 0 1px var(--line); color: inherit; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform 200ms cubic-bezier(.16, 1, .3, 1), background-color 150ms; }
    .tvm-tile:active { transform: scale(.98); }
    .tvm-tile.is-games { grid-column: span 3; }
    .tvm-tile.is-vps { grid-column: span 2; }
    .tvm-tile.is-web { grid-column: span 2; height: 190px; }
    .tvm-tile.is-bots { grid-column: span 3; height: 190px; }
    .tvm-tile-text { display: flex; flex-direction: column; gap: 2px; margin-top: auto; padding: 0 14px 13px; }
    .tvm-tile-name { font-size: 15px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
    .tvm-tile-from { font-size: 12.5px; line-height: 1.35; color: var(--muted); }
    .tvm-tile-from b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
    .tvm-tile-fx { font-size: 11px; color: var(--soft); font-variant-numeric: tabular-nums; }
    .tvm-tile-sub { font-size: 12px; line-height: 1.35; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

    /* The pictures: the real covers, and the panels drawn as the homepage draws them. */
    .tvm-art { position: relative; display: block; flex: none; overflow: hidden;
        --hs-card: #ffffff; --hs-line: #e2e8f0; --hs-div: #f1f5f9; --hs-sunk: #f1f5f9; --hs-ink: #0f172a; --hs-body: #64748b; --hs-soft: #94a3b8;
        --hs-acc: #2563eb; --hs-acc-ink: #2563eb; --hs-acc-soft: #eff6ff; --hs-ok: #059669; --hs-ok-soft: #ecfdf5; --hs-ok-line: #a7f3d0; }
    html.dark .tvm-art { --hs-card: #0f172a; --hs-line: #1e293b; --hs-div: #1e293b; --hs-sunk: #1e293b; --hs-ink: #ffffff; --hs-body: #9ca3af; --hs-soft: #6b7280;
        --hs-acc-ink: #60a5fa; --hs-acc-soft: rgba(59, 130, 246, .12); --hs-ok: #34d399; --hs-ok-soft: rgba(16, 185, 129, .1); --hs-ok-line: rgba(16, 185, 129, .25); }
    .tvm-win { display: flex; flex-direction: column; border-radius: 10px; background: var(--hs-card); color: var(--hs-ink); box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 0 0 1px var(--hs-line); overflow: hidden; }
    html.dark .tvm-win { box-shadow: 0 0 0 1px var(--hs-line); }

    .tvm-art-games { height: 130px; }
    .tvm-art-games img { position: absolute; left: 50%; top: 16px; width: 86px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; transform-origin: 50% 100%;
        box-shadow: 0 12px 28px -10px rgba(2, 6, 23, .5), 0 0 0 1px rgba(255, 255, 255, .06); }
    .tvm-fan-0 { transform: translateX(-50%); z-index: 2; }
    .tvm-fan-1 { transform: translateX(-128%) translateY(12px) rotate(-11deg); }
    .tvm-fan-2 { transform: translateX(28%) translateY(12px) rotate(11deg); }
    .tvm-fan-1, .tvm-fan-2 { filter: brightness(.92); }

    .tvm-art-vps { height: 128px; padding: 14px 0 0 14px; }
    .tvm-art-vps .tvm-win { position: absolute; left: 14px; right: -8px; top: 14px; padding: 10px 10px 9px; gap: 6px; }
    .tvm-win-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
    .tvm-win-row { overflow: hidden; }
    .tvm-win-row b { font-size: 11.5px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
    .tvm-win-ok { flex: none; }
    .tvm-win-ok { display: inline-flex; align-items: center; height: 15px; padding: 0 5px; border-radius: 4px; border: 1px solid var(--hs-ok-line); background: var(--hs-ok-soft); color: var(--hs-ok); font-size: 7.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-style: normal; }
    .tvm-win svg { display: block; width: 100%; height: 38px; }
    .tvm-win-meters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .tvm-win-meters span { display: flex; flex-direction: column; gap: 3px; font-size: 8px; font-weight: 600; color: var(--hs-soft); letter-spacing: .04em; }
    .tvm-win-meters i { display: block; height: 4px; border-radius: 999px; background: var(--hs-sunk); overflow: hidden; }
    .tvm-win-meters i::after { content: ""; display: block; width: var(--v); height: 100%; border-radius: inherit; background: var(--hs-acc); transform-origin: left; animation: tvmFill .9s cubic-bezier(.16, 1, .3, 1) .5s both; }
    @keyframes tvmFill { from { transform: scaleX(0); } }

    .tvm-art-web { height: 112px; padding: 14px 0 0 14px; }
    .tvm-art-web .tvm-win { position: absolute; left: 14px; right: -10px; top: 14px; bottom: -10px; border-radius: 10px 0 0 0; }
    .tvm-chrome { display: flex; align-items: center; gap: 4px; height: 18px; padding: 0 7px; border-bottom: 1px solid var(--hs-div); }
    .tvm-chrome i { width: 5px; height: 5px; border-radius: 50%; background: var(--hs-line); }
    .tvm-chrome span { display: inline-flex; align-items: center; gap: 3px; flex: 1; height: 11px; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: var(--hs-sunk); font-size: 6.5px; color: var(--hs-ink); }
    .tvm-chrome span svg { width: 6px; height: 6px; stroke: var(--hs-body); }
    .tvm-site { display: block; flex: 1; --s-bg: #f6f1ea; --s-ink: #2a211b; --s-body: #6b5d52; --s-line: rgba(42, 33, 27, .12); background: var(--s-bg); color: var(--s-ink); font-size: 4.6px; overflow: hidden; }
    html.dark .tvm-site { --s-bg: #1b1714; --s-ink: #f3ece4; --s-body: #b3a597; --s-line: rgba(243, 236, 228, .12); }
    .tvm-site .hsx-nav { display: flex; align-items: center; gap: 1.5em; padding: 1.5em 2.2em; border-bottom: 1px solid var(--s-line); font-size: 1em; color: var(--s-body); }
    .tvm-site .hsx-nav b { margin-right: auto; font: 600 1.7em/1 Georgia, 'Times New Roman', serif; color: var(--s-ink); letter-spacing: -.01em; }
    .tvm-site .hsx-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.6em; padding: 2.2em 2.2em 0; }
    .tvm-site .hsx-hero h4 { margin: 0; font: 400 2.4em/1.04 Georgia, 'Times New Roman', serif; letter-spacing: -.02em; }
    .tvm-site .hsx-hero p { margin: .9em 0 0; font-size: 1em; line-height: 1.5; color: var(--s-body); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .tvm-site .hsx-cta { display: inline-flex; align-items: center; height: 2.8em; margin-top: 1.3em; padding: 0 1.3em; border-radius: 999px; background: var(--s-ink); color: var(--s-bg); font-size: 1.05em; font-weight: 600; }
    .tvm-site .hsx-art { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: .9em; height: 24em; }
    .tvm-site .hsx-art div { display: grid; place-items: center; border-radius: 1em; overflow: hidden; }
    .tvm-site .hsx-art div:first-child { grid-row: span 2; }
    .tvm-site .hsx-art svg { width: 62%; height: auto; max-height: 80%; }
    .tvm-site .hsx-art div:first-child svg { width: 56%; }

    .tvm-art-bots { height: 112px; padding: 14px 14px 0; }
    .tvm-art-bots .tvm-win { position: absolute; left: 14px; right: 14px; top: 14px; padding: 9px 10px 0; gap: 7px; }
    .tvm-bot-head { display: flex; align-items: center; gap: 7px; padding-bottom: 7px; border-bottom: 1px solid var(--hs-div); }
    .tvm-bot-av { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: #2563eb; color: #fff; font-size: 10px; font-weight: 700; font-style: normal; }
    .tvm-bot-head b { display: block; font-size: 11px; font-weight: 600; letter-spacing: -.01em; line-height: 1.1; }
    .tvm-bot-head em { display: inline-flex; align-items: center; gap: 3px; margin-top: 2px; font-size: 7.5px; font-weight: 600; font-style: normal; color: var(--hs-ok); }
    .tvm-bot-head em::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
    .tvm-bot-mod { display: flex; align-items: center; gap: 7px; font-size: 9.5px; font-weight: 500; color: var(--hs-ink); }
    .tvm-bot-mod i { display: grid; flex: none; place-items: center; width: 18px; height: 18px; border-radius: 6px; background: var(--hs-acc-soft); color: var(--hs-acc-ink); font-style: normal; }
    .tvm-bot-mod i svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
    .tvm-bot-mod span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tvm-bot-mod .tvm-switch { position: relative; display: block; flex: none; width: 22px; height: 13px; border-radius: 999px; background: var(--hs-acc); }
    .tvm-switch::after { content: ""; position: absolute; top: 1.5px; left: 1.5px; width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, .25); transform: translateX(9px); }
    .tvm-switch.is-flip { animation: tvmTrack .3s ease 1.1s both; }
    .tvm-switch.is-flip::after { animation: tvmKnob .34s cubic-bezier(.34, 1.4, .64, 1) 1.1s both; }
    @keyframes tvmTrack { from { background: #cbd5e1; } }
    @keyframes tvmKnob { from { transform: none; } }

    /* The person's own servers, when signed in: the state, the name, one tap to the panel or the console. */
    .tvm-servers { margin: 4px 0 18px; }
    .tvm-rows { margin: 0; padding: 0; list-style: none; }
    .tvm-rows li { display: flex; align-items: stretch; gap: 6px; }
    .tvm-row { display: flex; flex: 1; min-width: 0; align-items: center; gap: 12px; min-height: 56px; padding: 7px 10px 7px 8px; margin: 0 -8px; border-radius: 14px; color: inherit; text-decoration: none; transition: background-color 150ms; }
    .tvm-row:hover { background: var(--hover); }
    div.tvm-row:hover { background: none; }
    .tvm-row-text { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 1px; }
    .tvm-row-text b { font-size: 15px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tvm-row-text small { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tvm-row-price { flex: none; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
    .tvm-row-price em { display: block; font-size: 11px; font-weight: 400; font-style: normal; color: var(--muted); }
    .tvm-row-price small { display: block; font-size: 11px; font-weight: 400; color: var(--soft); }
    .tvm-row > .tvm-go { flex: none; width: 16px; height: 16px; color: var(--soft); }
    .tvm-dot { flex: none; width: 10px; height: 10px; margin: 0 4px; border-radius: 50%; background: var(--soft-line, var(--soft)); box-shadow: 0 0 0 3px var(--sunk); }
    .tvm-dot[data-state="online"] { background: var(--ok); }
    .tvm-dot[data-state="starting"] { background: var(--warn); }
    .tvm-dot[data-state="offline"], .tvm-dot[data-state="suspended"] { background: var(--bad); }
    .tvm-row-state { flex: none; font-size: 12.5px; color: var(--muted); }
    .tvm-row-state[data-state="online"] { color: var(--ok); }
    .tvm-row-state[data-state="starting"] { color: var(--warn); }
    .tvm-row-state[data-state="suspended"] { color: var(--bad); }
    .tvm-console { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 44px; margin: 6px 0; border-radius: 12px; color: var(--body); background: var(--sunk); text-decoration: none; }
    .tvm-console:hover { color: var(--ink); }

    /* Covers and marks in a list: 2:3 for a game, a square for the rest. */
    .tvm-cover { position: relative; display: grid; flex: none; place-items: center; width: 40px; height: 56px; border-radius: 7px; overflow: hidden;
        background: color-mix(in srgb, var(--acc) 16%, transparent); color: var(--acc-ink); font-size: 17px; font-weight: 700; box-shadow: inset 0 0 0 1px var(--line); }
    .tvm-cover.is-sq { height: 40px; border-radius: 10px; font-size: 15px; }
    .tvm-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
    .tvm-cover svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
    .tvm-cover.is-plan { background: rgba(139, 92, 246, .14); color: #7c3aed; font-size: 13px; letter-spacing: -.02em; }
    html.dark .tvm-cover.is-plan { color: #a78bfa; }

    /* The first row of a layer: where the whole line lives. */
    .tvm-lead { display: flex; align-items: center; gap: 12px; margin: 4px 0 10px; padding: 14px 14px 14px 16px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: inherit; text-decoration: none; transition: background-color 150ms; }
    .tvm-lead:hover { background: var(--sunk); }
    .tvm-lead b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
    .tvm-lead small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
    .tvm-lead > span { flex: 1; min-width: 0; }
    .tvm-lead svg { flex: none; width: 18px; height: 18px; color: var(--acc-ink); }

    .tvm-layer-head { display: flex; flex-shrink: 0; align-items: center; gap: 4px; padding: calc(10px + env(safe-area-inset-top)) 12px 10px 8px; }
    .tvm-layer-title { flex: 1; margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.015em; }

    /* Recently viewed: a row of small pictures, scrolled sideways. */
    .tvm-recent { margin-top: 22px; }
    .tvm-recent-list { display: flex; gap: 12px; margin: 0 -16px; padding: 2px 16px 4px; list-style: none; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
    .tvm-recent-list::-webkit-scrollbar { display: none; }
    .tvm-recent-list li { flex: none; width: 72px; scroll-snap-align: start; }
    .tvm-recent-list a { display: flex; flex-direction: column; gap: 6px; color: inherit; text-decoration: none; }
    .tvm-recent-img { position: relative; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 14px; overflow: hidden; background: var(--sunk); color: var(--muted); font-size: 20px; font-weight: 700; box-shadow: inset 0 0 0 1px var(--line); }
    .tvm-recent-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
    .tvm-recent-list a span:last-child { font-size: 11.5px; line-height: 1.3; color: var(--body); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

    /* What the search finds, in place of the menu while there is a query. */
    .tvm-results section + section { margin-top: 20px; }
    .tvm-empty { padding: 28px 4px 8px; }
    .tvm-empty p { margin: 0; font-size: 15px; font-weight: 500; }
    .tvm-empty p + p { margin-top: 4px; font-size: 13.5px; font-weight: 400; color: var(--muted); }
    .tvm-empty a { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 14px; font-weight: 500; color: var(--acc-ink); text-decoration: none; }
    .tvm-empty a svg { width: 15px; height: 15px; }

    /* The links that live in the utility bar on a wide screen. */
    .tvm-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
    .tvm-links a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 0; color: var(--body); font-size: 15px; font-weight: 500; text-decoration: none; transition: color 150ms; }
    .tvm-links a:hover { color: var(--ink); }
    .tvm-badge { flex-shrink: 0; padding: 1px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 600; color: var(--body); box-shadow: inset 0 0 0 1px var(--line); }

    /* Language, country and currency, theme, status: label left, control right. */
    .tvm-prefs { display: grid; gap: 4px; margin-top: 14px; }
    .tvm-pref { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; }
    .tvm-pref-label { color: var(--muted); font-size: 13px; }
    .tvm-pref-link { text-decoration: none; }
    .tvm-status-now { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: 13px; font-weight: 500; white-space: nowrap; }
    .tvm-status-now svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--soft); }
    .tvm-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--sunk); }
    .tvm-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 28px; padding: 0 11px; border: 0; border-radius: 999px; background: transparent; color: var(--body); font: inherit; font-size: 12.5px; font-weight: 500; text-decoration: none; cursor: pointer; transition: background-color 150ms, color 150ms; }
    .tvm-pill:hover { color: var(--ink); }
    .tvm-pill .tv-flag { margin-right: 6px; }
    .tvm-pill[aria-current="true"], .tvm-pill[aria-pressed="true"] { background: #ffffff; color: #020617; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
    html.dark .tvm-pill[aria-current="true"], html.dark .tvm-pill[aria-pressed="true"] { background: rgba(255, 255, 255, .12); color: #f8fafc; box-shadow: none; }

    /* The foot: in for a guest, the account and the dashboard for anyone signed in. */
    .tvm-foot { display: flex; flex-shrink: 0; align-items: center; gap: 8px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--g); }
    .tvm-btn { display: flex; flex: 1; align-items: center; justify-content: center; gap: 8px; min-width: 0; height: 46px; padding: 0 18px; border: 0; border-radius: 999px; font: inherit; font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer; transition: background-color 150ms, color 150ms; }
    .tvm-btn-primary { background: #020617; color: #ffffff; }
    .tvm-btn-primary:hover { background: #1e293b; }
    html.dark .tvm-btn-primary { background: #f8fafc; color: #020617; }
    html.dark .tvm-btn-primary:hover { background: #e2e8f0; }
    .tvm-btn-secondary { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .12); }
    .tvm-btn-secondary:hover { background: var(--hover); }
    html.dark .tvm-btn-secondary { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
    .tvm-btn-sm { flex: none; height: 40px; padding: 0 16px; font-size: 14px; }
    .tvm-me { display: flex; flex: 1; min-width: 0; align-items: center; gap: 10px; }
    .tvm-me-text { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 1px; }
    .tvm-me-text b { font-size: 14px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tvm-me-links { display: flex; gap: 10px; font-size: 12px; }
    .tvm-me-links a, .tvm-me-links button { padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 12px; text-decoration: none; cursor: pointer; }
    .tvm-me-links a:hover, .tvm-me-links button:hover { color: var(--ink); }
    .tvm-me-links form { display: contents; }

    /* The site's one focus mark (resources/css/app.css: --tv-focus); the fallback is for jobs and support, which print this menu without that stylesheet. */
    .tvm-sheet :focus-visible { outline: 2px solid var(--tv-focus, #2563eb); outline-offset: 2px; }
    html.dark .tvm-sheet :focus-visible { outline-color: var(--tv-focus, #60a5fa); }
    .tvm-sheet [x-cloak] { display: none !important; }
