        /* ---- App shell / header ---- */
        /* The shell is the viewport: header, tabs and footer are fixed rows and only the
           active panel scrolls (see .panel below). */
        .app { position: relative; z-index: 2; display: flex; flex-direction: column; height: 100%; }
        /* ---- Compact title bar: name + subtitle on a single tight block ---- */
        header {
            text-align: center; padding: 8px 14px 2px; max-width: 600px; margin: 0 auto;
            display: flex; align-items: baseline; justify-content: center; gap: 10px; flex-wrap: wrap;
            flex: none; width: 100%;
        }
        h1 {
            font-family: var(--font-display); font-size: 1.5rem; font-weight: 900;
            text-transform: uppercase; letter-spacing: 3px; color: var(--header-accent); line-height: 1;
        }
        /* The .uk rides on the wordmark: smaller, staying lowercase (the h1 is uppercased, so
           this opts out). All header text now shares the scheme's reddish --header-accent. */
        h1 .tld {
            font-size: 0.5em; font-weight: 700; text-transform: none;
            letter-spacing: 1px; color: var(--header-accent); margin-left: 1px;
        }
        .subtitle {
            font-family: var(--font-display); font-size: 0.72rem; color: var(--header-accent);
            letter-spacing: 2px; text-transform: uppercase;
        }
        .byline {
            flex-basis: 100%; text-align: center; font-size: 0.62rem; color: var(--text-secondary);
            letter-spacing: 1.5px; opacity: 0.7; margin-top: 3px;
        }

        /* ---- Pager: enlarged 3-way column chooser (segmented tabs) ---- */
        .pager-tabs {
            display: flex; max-width: 600px; margin: 8px auto 14px; padding: 5px; gap: 5px;
            background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 12px;
            /* width:100% because an auto cross-axis margin opts a flex item out of stretch,
               which would otherwise shrink these tabs to their content. */
            flex: none; width: 100%;
        }
        .pager-tab {
            flex: 1; text-align: center; padding: 12px 6px; border-radius: 8px; cursor: pointer;
            font-family: var(--font-display); font-size: 0.92rem; font-weight: 700;
            text-transform: uppercase; letter-spacing: 2px; color: var(--text-secondary);
            transition: all 0.2s ease; user-select: none; white-space: nowrap;
        }
        .pager-tab:hover:not(.active) { color: var(--accent-primary); }
        .pager-tab.active { background: var(--accent-primary); color: var(--bg-primary); box-shadow: 0 2px 10px rgba(0,0,0,0.35); }

        /* The viewport takes whatever height the fixed rows leave; min-height:0 is what lets a
           flex item actually shrink below its content instead of pushing the footer off-screen. */
        .pager-viewport { overflow: hidden; flex: 1 1 auto; min-height: 0; }
        .pager-track {
            display: flex; width: 300%; height: 100%; align-items: stretch;
            transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
        }
        .pager-track.dragging { transition: none; }
        /* Each column scrolls on its own, so the header and the column chooser stay put. */
        /* Flush left like .pager-tabs; the 14px that was on the left moves to the right, so
           the content keeps its width and only the right-hand gap grows. */
        .panel { width: 33.333%; padding: 4px 28px 6px 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
        /* No visible scrollbar — you scroll by dragging or wheel. The strip still claims its
           10px so the column never changes width between a scrolling and a short panel. */
        .panel::-webkit-scrollbar { width: 10px; }
        .panel::-webkit-scrollbar-track { background: transparent; }
        .panel::-webkit-scrollbar-thumb { background: transparent; }
        .panel-inner { max-width: 600px; margin: 0 auto; }

        /* ---- Cards ---- */
        .card {
            background: var(--bg-card); border: 2px solid var(--border-color); border-radius: 12px;
            padding: 16px; margin-bottom: 16px; box-shadow: 0 4px 15px rgba(0,0,0,0.4);
        }
        .card.accent-primary { border-color: var(--accent-primary); }
        .card.accent-green { border-color: var(--accent-green); }
        .card-title {
            font-family: var(--font-display); font-size: 0.85rem; text-transform: uppercase;
            letter-spacing: 2px; color: var(--accent-primary); margin-bottom: 12px; text-align: center;
        }
        .card-title.green { color: var(--accent-green); }

