/* US Lottery history (/winning-numbers/us-lottery/history; views in Views/History, behaviour in
   lottery-history.js). Design: the "Winning Numbers History" canvas, on the design system's current
   rules: red marks where you are (red ink and a 3px underline in the page body, never a red fill),
   gold is the one action (Sign up signed out, Play signed in), navy is the quieter option (Search),
   Share is a white button, product blue is the lotto ball. Phone first; desktop from 992px, where
   the site's bottom bar goes away and Share and Play move up beside the number. */

/* The tokens also go on the phone action bar, which sits outside .pglh (it is fixed to the viewport). */
.pglh, .pglh-actionbar {
    --pglh-navy: #00263E;
    --pglh-navy-hover: #0A3550;
    --pglh-red: #E1251B;
    --pglh-red-ink: #C21E15;
    --pglh-red-wash: #FDECEA;
    --pglh-gold: #E6BC75;
    --pglh-gold-hover: #EDCB8F;
    --pglh-gold-ink: #032A44;
    --pglh-blue: #0A4C8F;
    --pglh-body: #3C3E41;
    --pglh-muted: #6E7075;
    --pglh-faint: #93959A;
    --pglh-accent: #7C5C29;
    --pglh-line: rgba(0, 38, 62, .12);
    --pglh-line-strong: rgba(0, 38, 62, .24);
    --pglh-card: #F7F7F8;
    --pglh-inset: #EDEEEF;
    --pglh-tint: rgba(12, 66, 121, .045);
}

.pglh {
    max-width: 1240px;
    margin: 0 auto;
    padding: 16px 12px 32px;
    box-sizing: border-box;
    font-family: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    color: var(--pglh-body);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

    .pglh *, .pglh *::before, .pglh *::after { box-sizing: border-box; }
    /* Links to #draws, #digits and #dates land below the fixed site header (taller on a phone,
       where the product pills sit under it). */
    .pglh [id] { scroll-margin-top: 140px; }
    .pglh [hidden] { display: none !important; }
    .pglh a { color: var(--pglh-red-ink); }
    .pglh a:focus-visible, .pglh button:focus-visible, .pglh input:focus-visible, .pglh select:focus-visible {
        outline: 1px solid #A87F3C;
        outline-offset: 0;
        box-shadow: 0 0 0 3px rgba(168, 127, 60, .22);
    }

.pglh-h1 { margin: 0; font-family: inherit; font-size: 24px; font-weight: 700; line-height: 1.2; color: var(--pglh-navy); }
.pglh-h2 { margin: 0; font-family: inherit; font-size: 20px; font-weight: 700; line-height: 1.25; color: var(--pglh-navy); }
.pglh-h3 { margin: 0; font-family: inherit; font-size: 18px; font-weight: 700; line-height: 1.25; color: var(--pglh-navy); }
.pglh-lede { margin: 4px 0 0; font-size: 14px; line-height: 1.45; color: var(--pglh-body); }
.pglh-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--pglh-accent); }
.pglh-label { display: block; margin: 0 0 4px; padding: 0; font-size: 13px; font-weight: 600; color: var(--pglh-body); }
.pglh-help, .pglh-note { margin: 0; font-size: 12px; line-height: 1.45; color: var(--pglh-muted); }
.pglh-error { margin: 0; font-size: 13px; font-weight: 600; color: #B3261E; }
.pglh-empty-line { margin: 0; padding: 16px 0; font-size: 14px; color: var(--pglh-body); }
.pglh-foot { margin: 0; font-size: 12px; line-height: 1.5; color: var(--pglh-muted); }
.pglh-random { margin: 0; display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.4; color: var(--pglh-body); }
    .pglh-random i { margin-top: 2px; color: var(--pglh-blue); }

/* Breadcrumbs: the full trail on desktop; on a phone only the way back. */
.pglh-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--pglh-muted); }
    .pglh-crumbs a { font-weight: 600; }
.pglh-back { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; }
    .pglh-back i { font-size: 12px; }
.pglh-crumb-first { display: none; }

/* Buttons */
.pglh-btn {
    min-height: 46px;
    padding: 0 18px;
    border: 0;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}
.pglh .pglh-btn-navy, .pglh .pglh-btn-navy:hover { background: var(--pglh-navy); color: #ffffff; }
    .pglh .pglh-btn-navy:hover { background: var(--pglh-navy-hover); }
.pglh-btn-gold, .pglh-btn-gold:hover, .pglh-actionbar .pglh-btn-gold { background: var(--pglh-gold); color: var(--pglh-gold-ink); }
    .pglh-btn-gold:hover { background: var(--pglh-gold-hover); color: var(--pglh-gold-ink); }
.pglh-btn-white, .pglh .pglh-btn-white { background: #ffffff; color: var(--pglh-navy); border: 1px solid var(--pglh-line-strong); }
    .pglh-btn-white:hover { background: var(--pglh-card); color: var(--pglh-navy); }
.pglh-textbtn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; font-size: 14px; font-weight: 600; }

/* Inputs */
.pglh-input, .pglh-select {
    min-height: 46px;
    width: 100%;
    padding: 9px 14px;
    border: 1px solid var(--pglh-line-strong);
    border-radius: 6px;
    background: #ffffff;
    font-family: inherit;
    font-size: 16px;
    color: var(--pglh-navy);
}
.pglh-input-num { font-weight: 600; font-variant-numeric: tabular-nums; }
.pglh-select.is-on { border-color: var(--pglh-red); font-weight: 600; }
.pglh-field { display: flex; flex-direction: column; min-width: 0; border: 0; margin: 0; padding: 0; }

/* Segmented switch: grey track, white thumb, red ink. Links and radios share the look. */
.pglh-seg { display: flex; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid var(--pglh-line-strong); background: var(--pglh-inset); }
    .pglh-seg a, .pglh-seg label {
        flex: 1 1 0;
        min-height: 42px;
        margin: 0;
        padding: 8px 12px;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        font-weight: 600;
        white-space: nowrap;
        color: var(--pglh-muted);
        text-decoration: none;
        cursor: pointer;
    }
    .pglh-seg a[aria-current="true"], .pglh-seg label:has(input:checked) { background: #ffffff; color: var(--pglh-red-ink); box-shadow: 0 1px 2px rgba(0, 38, 62, .08); }
    .pglh-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
    .pglh-seg label:has(input:focus-visible) { outline: 1px solid #A87F3C; box-shadow: 0 0 0 3px rgba(168, 127, 60, .22); }

/* Tabs: red ink and a 3px underline. */
.pglh-tabs { display: flex; gap: 22px; border-bottom: 1px solid rgba(0, 38, 62, .14); }
    .pglh-tabs a {
        min-height: 40px;
        margin-bottom: -1px;
        padding: 0 2px;
        display: inline-flex;
        align-items: center;
        border-bottom: 3px solid transparent;
        font-size: 15px;
        font-weight: 600;
        color: var(--pglh-muted);
        text-decoration: none;
    }
    .pglh-tabs a[aria-current="true"] { color: var(--pglh-red-ink); border-bottom-color: var(--pglh-red); }

/* Panels */
.pglh-sheet, .pglh-panel { border-radius: 10px; border: 1px solid var(--pglh-line); background: #ffffff; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.pglh-sheet { background: rgba(12, 66, 121, .03); }
.pglh-sheet-head, .pglh-panel-head { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-end; justify-content: space-between; }
.pglh-sheet-row { display: flex; flex-direction: column; gap: 12px; }

/* Lookup form */
.pglh-lookup { display: flex; flex-direction: column; gap: 12px; }
.pglh-lookup .pglh-btn { width: 100%; }

/* House list */
.pglh-picker { border: 1px solid var(--pglh-line-strong); border-radius: 6px; overflow: hidden; background: #ffffff; }
.pglh-picker-search { position: relative; display: flex; align-items: center; border-bottom: 1px solid var(--pglh-line); }
    .pglh-picker-search i { position: absolute; left: 14px; color: var(--pglh-muted); font-size: 15px; }
    .pglh-picker-search .pglh-input { border: 0; border-radius: 0; padding-left: 40px; }
.pglh-house-list { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow-y: auto; }
    .pglh-house-list li + li { border-top: 1px solid var(--pglh-line); }
    .pglh-house-list a { display: grid; grid-template-columns: 58px 1fr auto auto; gap: 10px; align-items: center; min-height: 54px; padding: 4px 12px; text-decoration: none; color: var(--pglh-body); }
    .pglh-house-list a:hover { background: rgba(10, 76, 143, .05); }
.pglh-code { font-size: 15px; font-weight: 700; color: var(--pglh-navy); }
.pglh-house-name { display: flex; flex-direction: column; gap: 2px; font-size: 16px; color: var(--pglh-navy); }
    .pglh-house-name small { font-size: 12px; color: var(--pglh-muted); }
.pglh-badge { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 999px; background: rgba(10, 76, 143, .10); color: var(--pglh-blue); font-size: 11px; font-weight: 700; }
.pglh-fav { color: var(--pglh-navy); font-size: 14px; }

/* Hot and cold */
.pglh-hc-controls { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.pglh-hc { display: grid; grid-template-columns: 1fr; gap: 12px; }
.pglh-hc-card { border-radius: 10px; border: 1px solid var(--pglh-line); background: var(--pglh-card); padding: 12px 12px 6px; min-width: 0; }
.pglh-hc-head { display: flex; align-items: center; gap: 10px; padding-bottom: 8px; font-size: 20px; }
    .pglh-hc-head span { display: flex; flex-direction: column; gap: 1px; }
    .pglh-hc-head strong { font-size: 16px; font-weight: 800; }
    .pglh-hc-head small { font-size: 12px; color: var(--pglh-muted); }
.pglh-hot, .pglh-hot strong { color: var(--pglh-red-ink); }
.pglh-cold, .pglh-cold strong { color: var(--pglh-blue); }
.pglh-hc-list { list-style: none; margin: 0; padding: 0; }
    .pglh-hc-list a { display: grid; grid-template-columns: 20px 58px 1fr 44px; gap: 8px; align-items: center; min-height: 44px; border-top: 1px solid var(--pglh-line); text-decoration: none; color: var(--pglh-body); }
.pglh-rank { font-size: 12px; color: var(--pglh-muted); text-align: right; }
.pglh-num { font-size: 18px; font-weight: 700; color: var(--pglh-navy); font-variant-numeric: tabular-nums; }
.pglh-count { font-size: 14px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.pglh-days { font-size: 14px; text-align: right; grid-column: 3 / 5; }
    .pglh-days strong { color: var(--pglh-blue); }
.pglh-bar { display: block; height: 8px; border-radius: 3px; background: rgba(0, 38, 62, .08); }
    .pglh-bar span { display: block; height: 8px; border-radius: 3px; background: var(--pglh-red); }

/* Explainer cards (desktop) */
.pglh-cards { display: none; }
.pglh-card-link { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: 10px; border: 1px solid var(--pglh-line); background: #ffffff; text-decoration: none; }
    .pglh .pglh-card-link strong { font-size: 16px; color: var(--pglh-navy); }
    .pglh .pglh-card-link span { font-size: 14px; line-height: 1.45; color: var(--pglh-body); }

/* Number page head */
.pglh-toprow { display: flex; flex-direction: column; gap: 12px; }
.pglh-search { display: flex; gap: 8px; }
    .pglh-search .pglh-input { flex: 1 1 auto; min-width: 0; }
.pglh-search-house { flex-direction: column; gap: 4px; margin-top: 8px; }
.pglh-search-row { display: flex; gap: 8px; }
    .pglh-search-row .pglh-input { flex: 1 1 auto; min-width: 0; }
.pglh-numhead { display: flex; flex-direction: column; gap: 16px; }
.pglh-numhead-main { display: flex; flex-direction: column; gap: 10px; }
.pglh-balls { margin: 0; display: flex; gap: 8px; }
.pglh-ball {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--pglh-blue);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
}
.pglh-ball-sm { width: 30px; height: 30px; font-size: 15px; font-weight: 700; flex-shrink: 0; }
.pglh-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
    .pglh-controls .pglh-seg { width: 100%; }
.pglh-housefilter { flex: 1 1 auto; display: flex; gap: 8px; }
.pglh-hint { width: 100%; font-size: 13px; color: var(--pglh-body); }
.pglh-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pglh-chips-label { font-size: 13px; font-weight: 600; color: var(--pglh-body); }
.pglh-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--pglh-line-strong); background: #ffffff; font-size: 14px; text-decoration: none; }
    .pglh .pglh-chip { color: var(--pglh-navy); }
    .pglh-chip[aria-current="true"] { border-color: var(--pglh-red); }
.pglh-actions-inline { display: none; }

/* Summary */
.pglh-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pglh-stat { border-radius: 10px; border: 1px solid var(--pglh-line); background: #ffffff; padding: 11px 12px; display: flex; flex-direction: column; gap: 3px; font-size: 12px; }
.pglh-stat-label { font-size: 13px; font-weight: 600; color: var(--pglh-body); }
.pglh-stat-value { font-size: 24px; font-weight: 700; line-height: 1.15; color: var(--pglh-navy); font-variant-numeric: tabular-nums; }

/* Sign-up card: the light card, its one button gold when signed out. */
.pglh-signup { border-radius: 10px; border: 1px solid var(--pglh-line); border-top: 3px solid var(--pglh-blue); background: var(--pglh-card); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
    .pglh-signup p { margin: 4px 0 0; font-size: 14px; line-height: 1.45; }
.pglh-signup-actions { display: flex; flex-direction: column; gap: 8px; }
.pglh-signup-links { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 600; }
    .pglh-signup-links a { min-height: 32px; display: inline-flex; align-items: center; }

/* Year by year */
.pglh-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.pglh-bars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; align-items: end; height: 120px; border-bottom: 1px solid var(--pglh-line-strong); }
.pglh-bar-col { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; }
.pglh-bar-n { font-size: 11px; font-weight: 600; color: var(--pglh-body); font-variant-numeric: tabular-nums; }
.pglh-bar-fill { display: block; width: 100%; max-width: 40px; max-height: calc(100% - 18px); border-radius: 4px 4px 0 0; background: var(--pglh-blue); }
.pglh-bar-labels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
    .pglh-bar-labels span { font-size: 11px; color: var(--pglh-muted); text-align: center; }
.pglh-dots { display: flex; flex-direction: column; gap: 8px; }
.pglh-dots-row { display: grid; grid-template-columns: 132px 1fr 28px; gap: 10px; align-items: center; min-height: 28px; border-bottom: 1px solid var(--pglh-line); font-size: 14px; }
    .pglh-dots-row b { color: var(--pglh-navy); text-align: right; }
.pglh-dots-set { display: flex; gap: 6px; }
    .pglh-dots-set i { width: 14px; height: 14px; border-radius: 50%; background: var(--pglh-blue); display: block; }

/* Drawn most in */
.pglh-mi-head { display: none; }
.pglh-mi { list-style: none; margin: 0; padding: 0; }
    .pglh-mi li { display: grid; grid-template-columns: 1fr 44px; align-items: center; border-bottom: 1px solid var(--pglh-line); }
    .pglh-mi li.is-on { background: var(--pglh-red-wash); }
.pglh-mi-row { display: grid; grid-template-columns: 1fr 30px 84px; gap: 8px; align-items: center; min-height: 44px; padding: 0 4px; text-decoration: none; }
    .pglh .pglh-mi-row { color: var(--pglh-body); }
    .pglh-mi-row b { color: var(--pglh-navy); }
.pglh-mi-count { font-size: 16px; font-weight: 700; color: var(--pglh-blue); text-align: right; }
.pglh-mi-last { font-size: 12px; text-align: right; }
.pglh-mi-house { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; font-size: 13px; font-weight: 600; text-decoration: none; }
.pglh-mi-house-text { display: none; }

/* Draws: a table on desktop, cards on a phone. */
.pglh-table-panel { padding: 0; gap: 0; overflow: hidden; }
    .pglh-table-panel .pglh-panel-head { padding: 16px 16px 10px; }
.pglh-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
    .pglh-table thead { display: none; }
    .pglh-table tr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 12px 16px; border-top: 1px solid var(--pglh-line); }
    .pglh-table td { padding: 0; }
.pglh-td-date, .pglh-td-house { grid-column: 1 / -1; }
.pglh-td-date b { color: var(--pglh-navy); font-size: 13px; margin-right: 7px; }
.pglh-td-date span { font-size: 12px; }
.pglh-td-house { font-size: 15px; }
    .pglh-td-house a { text-decoration: none; }
    .pglh-td-house b { color: var(--pglh-navy); }
.pglh-td-ball { background: var(--pglh-tint); border-radius: 6px; padding: 6px 2px 8px !important; text-align: center; }
    .pglh-td-ball::before { content: attr(data-label); display: block; font-size: 11px; color: var(--pglh-muted); }
    .pglh-td-ball a { font-size: 19px; font-weight: 600; color: var(--pglh-navy); text-decoration: none; }
    .pglh-td-ball.pglh-hit { background: rgba(10, 76, 143, .10); box-shadow: inset 0 0 0 1.5px var(--pglh-blue); }
    .pglh-td-ball.pglh-hit a { color: var(--pglh-blue); font-weight: 700; }
.pglh-dash { color: var(--pglh-faint); }
.pglh-count { margin: 0; padding: 12px 16px; background: var(--pglh-tint); font-size: 13px; color: var(--pglh-body); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.pglh-pager { display: flex; gap: 16px; font-weight: 600; }

/* Never drawn */
.pglh-never { flex-direction: row; gap: 16px; align-items: flex-start; }
    .pglh-never p { margin: 8px 0 0; font-size: 14px; line-height: 1.45; }
.pglh-never-icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; background: var(--pglh-card); border: 1px solid var(--pglh-line); color: var(--pglh-blue); display: inline-flex; align-items: center; justify-content: center; }
.pglh-never-links { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }

/* House page */
.pglh-househead { display: flex; flex-direction: column; gap: 12px; }
.pglh-house-title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pglh-code-blue { color: var(--pglh-blue); }
.pglh-favtag { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--pglh-line-strong); font-size: 13px; font-weight: 600; color: var(--pglh-navy); }
.pglh-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .pglh-dates .pglh-btn, .pglh-dates .pglh-help { grid-column: 1 / -1; }
.pglh-seg-fill a { padding: 8px 4px; }
/* Most drawn digits (house page): on a phone a row per place, each digit with its count; from 992px a
   column per place with bars. --pglh-places is set on the element (2 to 5). */
.pglh-digits-head { display: flex; flex-direction: column; gap: 10px; }
.pglh-digits-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 12px; border-radius: 10px; border: 1px solid var(--pglh-line); background: var(--pglh-card); }
    .pglh-digits-top .pglh-balls { gap: 5px; }
.pglh-digits-top-label { font-size: 13px; font-weight: 600; color: var(--pglh-body); }
.pglh-digits-top-note { flex-basis: 100%; font-size: 12px; line-height: 1.45; color: var(--pglh-body); }
    .pglh-digits-top-note a { font-weight: 600; }
.pglh-positions { display: flex; flex-direction: column; }
.pglh-place { display: grid; grid-template-columns: 72px 1fr; align-items: center; gap: 8px; min-height: 48px; border-top: 1px solid var(--pglh-line); }
    .pglh-place .pglh-label { margin: 0; }
.pglh-place-digits { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.pglh-pos-row { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
    .pglh-pos-row .pglh-bar { display: none; }
    .pglh-pos-row .pglh-bar span { background: var(--pglh-blue); }
    .pglh-pos-row b { color: var(--pglh-navy); font-variant-numeric: tabular-nums; }
.pglh-hide-phone { display: none; }

/* Share and Play on a phone: a bar above the site's bottom navigation (64px), clear of its raised
   Sign up button. */
.pglh-actionbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    z-index: 1040;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 8px;
    padding: 10px 12px 28px;
    background: #ffffff;
    border-top: 1px solid var(--pglh-line);
    font-family: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
    .pglh-actionbar .pglh-btn { min-height: 50px; }
    .pglh-actionbar:has(.pglh-btn-gold) { grid-template-columns: 2fr 3fr; padding-bottom: 12px; }
.pglh-has-bar { padding-bottom: 120px; }

@media (min-width: 576px) {
    .pglh-hc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 992px) {
    .pglh { padding: 18px 20px 64px; gap: 20px; }
    .pglh [id] { scroll-margin-top: 88px; }
    .pglh-has-bar { padding-bottom: 64px; }
    .pglh-actionbar { display: none; }
    .pglh-crumb-first { display: inline; }
    .pglh-back i { display: none; }
    .pglh-h1 { font-size: 30px; }
    .pglh-h2 { font-size: 24px; }

    .pglh-sheet { padding: 20px 22px; }
    .pglh-sheet-row { flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 14px 16px; }
    .pglh-sheet-row .pglh-select { min-width: 260px; }
    .pglh-hide-phone { display: flex; }
    .pglh-sheet-head .pglh-seg { min-width: 240px; }
    .pglh-lookup { flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 14px 16px; }
    .pglh-lookup .pglh-input { width: 200px; }
    .pglh-lookup .pglh-btn { width: auto; padding: 0 28px; }
    .pglh-lookup .pglh-seg { min-width: 220px; }

    .pglh-hc-controls { flex-direction: row; align-items: flex-end; width: auto; gap: 16px; }
    .pglh-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

    .pglh-toprow { flex-direction: row; align-items: center; justify-content: space-between; }
    .pglh-search .pglh-input { width: 130px; }
    .pglh-numhead, .pglh-househead { flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 28px; }
    .pglh-ball { width: 56px; height: 56px; font-size: 26px; }
    .pglh-ball-sm { width: 30px; height: 30px; font-size: 15px; }
    .pglh-controls .pglh-seg { width: auto; min-width: 200px; }
    .pglh-housefilter { flex: 0 1 auto; }
    .pglh-housefilter .pglh-select { min-width: 220px; }
    .pglh-hint { width: auto; }
    .pglh-actions-inline { display: flex; gap: 10px; align-items: center; }
    .pglh-search-house { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; }
    .pglh-search-house .pglh-input { width: 120px; }

    .pglh-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
    .pglh-stat { padding: 16px 18px; font-size: 14px; }
    .pglh-signup { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 18px 22px; }
    .pglh-signup-actions { flex-direction: row-reverse; align-items: center; gap: 20px; }
    .pglh-signup-links { gap: 20px; font-size: 14px; }

    .pglh-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
    .pglh-digits-head { flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; }
    .pglh-digits-seg { flex: 0 0 auto; min-width: 380px; }
    .pglh-digits-top { justify-content: flex-start; padding: 12px 14px; }
    .pglh-digits-top-note { flex-basis: auto; font-size: 13px; }
    .pglh-positions { display: grid; grid-template-columns: repeat(var(--pglh-places, 3), minmax(0, 1fr)); gap: 16px 24px; }
    .pglh-place { display: flex; flex-direction: column; align-items: stretch; gap: 0; min-height: 0; border-top: 0; }
    .pglh-place-digits { flex-direction: column; gap: 8px; margin-top: 8px; }
    .pglh-pos-row { display: grid; grid-template-columns: 30px 1fr 40px; gap: 8px; }
    .pglh-pos-row .pglh-bar { display: block; }
    .pglh-pos-row b { text-align: right; }
    .pglh-panel { padding: 20px 22px; }
    .pglh-bars { height: 170px; }
    .pglh-bar-fill { max-width: 34px; }
    .pglh-mi-head { display: grid; grid-template-columns: 1fr 56px 104px 100px; gap: 8px; padding: 0 6px 6px; border-bottom: 1px solid var(--pglh-line); font-size: 13px; font-weight: 600; }
    .pglh-mi li { grid-template-columns: 1fr 100px; }
    .pglh-mi-row { grid-template-columns: 1fr 56px 104px; padding: 0 6px; min-height: 40px; }
    .pglh-mi-house-text { display: inline; }
    .pglh-mi-house i { display: none; }

    .pglh-table thead { display: table-header-group; }
    .pglh-table tr { display: table-row; padding: 0; }
    .pglh-table th { background: var(--pglh-tint); color: var(--pglh-navy); font-size: 13px; font-weight: 600; text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--pglh-line); white-space: nowrap; }
    .pglh-table td { display: table-cell; padding: 12px 16px; border-bottom: 1px solid var(--pglh-line); vertical-align: middle; }
    .pglh-td-date b, .pglh-td-date span { display: block; margin: 0; }
    .pglh-td-ball, .pglh-td-ball.pglh-hit { background: none; box-shadow: none; padding: 12px 16px !important; text-align: left; }
    .pglh-td-ball::before { display: none; }
    .pglh-td-ball.pglh-hit a { display: inline-block; padding: 3px 8px; margin: -3px -8px; border-radius: 8px; background: rgba(10, 76, 143, .10); box-shadow: inset 0 0 0 1.5px var(--pglh-blue); }

    .pglh-never { padding: 28px; gap: 22px; }
    .pglh-never-links { flex-direction: row; }
    .pglh-dates { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 16px; }
    .pglh-dates .pglh-input { width: 180px; }
}
