/**
 * Forms and Entries list screens, styled over the WP_List_Table markup.
 *
 * Scoped to .hf-list-screen so nothing here reaches other admin screens.
 */

.hf-list-screen {
    margin: 0 0 0 -20px;
    min-height: calc(100vh - 32px);
    padding: 0 0 var(--hf-space-6, 32px);
    background: none;
}

.hf-list-screen * {
    box-sizing: border-box;
}

.hf-list-screen .wrap {
    margin: 40px auto 0;
    max-width: 1400px;
    padding: 0 var(--hf-space-6, 32px);
}

/* WP prints admin notices into this empty h1; keep it out of the layout until
   it has something in it. */
.hf-list-screen .wrap > h1:empty {
    display: none;
}

/* A direct child of #wpcontent. clear:none so it does not clear the floated
   admin menu; the negative margin cancels #wpcontent's 20px offset. */
#wpcontent > .hf-list-header {
    clear: none;
    margin-left: -20px;
    width: calc(100% + 20px);
}

/* ---------- Core CPT list (style templates) ---------- */

/* Flatten the .wrap core prints inside ours on the style templates list. */
.hf-list-wrap .wrap {
    margin: 0;
    max-width: none;
    padding: 0;
}

body.hf-styles-list .wrap > h1.wp-heading-inline,
body.hf-styles-list .wrap > a.page-title-action,
body.hf-styles-list .wrap > .wp-header-end {
    display: none;
}

/* ---------- Header ---------- */

/* Take the Screen Options tab out of flow so the header bar starts at the top
   and spans the full width; the tab hangs over its top right corner. */
#wpbody-content:has(.hf-list-screen) {
    position: relative;
}

#wpbody-content:has(.hf-list-screen) > #screen-meta-links {
    float: none;
    margin: 0;
    position: absolute;
    right: 20px;
    top: 0;
    z-index: 100;
}

/* Edge to edge: the bar sits outside .wrap. */
.hf-list-header {
    background: var(--hf-surface, #fff);
    border-bottom: 1px solid var(--hf-border, #e2e5ea);
    clear: both;
    padding: 0;
}

/* The padding lines the title and Add New up with the table. Everything in the
   bar is scoped to .hf-list-header: it is printed outside .hf-list-screen. */
.hf-list-header-inner {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: var(--hf-space-3, 12px);
    justify-content: space-between;
    margin: 0 auto;
    min-height: 34px;
    padding: var(--hf-space-4, 16px) var(--hf-space-6, 32px);
    width: 100%;
}

.hf-list-header .hf-list-title {
    color: var(--hf-text, #1e2327);
    font-size: var(--hf-font-xl, 20px);
    font-weight: 600;
    letter-spacing: -.01em;
    margin: 0;
    padding: 0;
}

/* A screen that edits one thing names it here, so the input wears the title's
   own type and stays quiet until it is reached for. */
.hf-list-header .hf-list-title-field {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
}

.hf-list-header input.hf-list-title {
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--hf-radius-sm, 4px);
    box-shadow: none;
    height: auto;
    line-height: 1.3;
    min-height: 0;
    padding: 2px var(--hf-space-2, 8px);
    width: 100%;
}

.hf-list-header input.hf-list-title:hover {
    border-color: var(--hf-border, #e2e5ea);
}

.hf-list-header input.hf-list-title:focus {
    background: var(--hf-surface, #fff);
    border-color: var(--hf-accent, #2271b1);
    box-shadow: 0 0 0 1px var(--hf-accent, #2271b1);
    outline: none;
}

/* Destructive, so it does not wear the accent the primary action does. */
.hf-list-header .hf-add-new-form .button.hf-list-action-trash {
    background: transparent;
    border-color: var(--hf-border, #e2e5ea);
    color: var(--hf-text-muted, #646970);
}

.hf-list-header .hf-add-new-form .button.hf-list-action-trash:hover {
    background: #fcf0f1;
    border-color: #b32d2e;
    color: #b32d2e;
}

.hf-list-header .hf-add-new-form {
    margin: 0;
}

.hf-list-header .hf-add-new-form .button {
    background: var(--hf-accent, #2271b1);
    border: 1px solid var(--hf-accent, #2271b1);
    border-radius: var(--hf-radius-sm, 4px);
    color: var(--hf-text-inverse, #fff);
    font-size: var(--hf-font-base, 13px);
    font-weight: 500;
    height: auto;
    line-height: 1.4;
    min-height: 34px;
    padding: var(--hf-space-2, 8px) var(--hf-space-4, 16px);
    text-shadow: none;
    transition: background-color var(--hf-transition, .15s ease);
}

.hf-list-header .hf-add-new-form .button:hover,
.hf-list-header .hf-add-new-form .button:focus {
    background: var(--hf-accent-hover, #135e96);
    border-color: var(--hf-accent-hover, #135e96);
    color: var(--hf-text-inverse, #fff);
}

/* ---------- Documentation link ---------- */

/*
 * The documentation link in the shared page bar, matching the Modules screen's
 * (.hf-version a in Pro's modules-ui.css). margin-left:auto groups it with the
 * action button on the right.
 */
.hf-list-header .hf-list-docs {
    margin: 0 0 0 auto;
}

.hf-list-header .hf-list-docs a {
    align-items: center;
    border: 1px solid var(--hf-border-strong, #d3d8e0);
    border-radius: var(--hf-radius-sm, 4px);
    color: var(--hf-text, #1e2327);
    display: inline-flex;
    font-size: var(--hf-font-base, 13px);
    gap: var(--hf-space-2, 8px);
    min-height: 32px;
    padding: 0 var(--hf-space-3, 12px);
    text-decoration: none;
    transition: background-color var(--hf-transition, .15s ease), border-color var(--hf-transition, .15s ease);
}

.hf-list-header .hf-list-docs a:hover,
.hf-list-header .hf-list-docs a:focus {
    background: var(--hf-surface-sunken, #fafbfc);
    border-color: var(--hf-text-faint, #8c9196);
    color: var(--hf-text, #1e2327);
}

.hf-list-header .hf-list-docs a:focus-visible {
    outline: 2px solid var(--hf-accent, #dd823b);
    outline-offset: 1px;
}

/* ---------- Header stats ---------- */

.hf-list-header .hf-list-stats {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: var(--hf-space-2, 8px);
    /* Sits with the title rather than adrift in the middle of a wide bar;
       Add New stays pinned to the right. */
    margin: 0 auto 0 var(--hf-space-4, 16px);
}

.hf-list-header .hf-stat {
    align-items: baseline;
    background: var(--hf-surface-sunken, #fafbfc);
    border: 1px solid var(--hf-border, #e2e5ea);
    border-radius: var(--hf-radius-pill, 999px);
    display: inline-flex;
    gap: var(--hf-space-2, 8px);
    line-height: 1;
    padding: 5px var(--hf-space-3, 12px);
    text-decoration: none;
    transition: background-color var(--hf-transition, .15s ease), border-color var(--hf-transition, .15s ease);
    white-space: nowrap;
}

.hf-list-header a.hf-stat:hover,
.hf-list-header a.hf-stat:focus {
    background: var(--hf-surface, #fff);
    border-color: var(--hf-border-strong, #d3d8e0);
}

.hf-list-header a.hf-stat:focus-visible {
    outline: 2px solid var(--hf-accent, #2271b1);
    outline-offset: 1px;
}

.hf-list-header .hf-stat-value {
    color: var(--hf-text, #1e2327);
    font-size: var(--hf-font-md, 14px);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.01em;
}

.hf-list-header .hf-stat-label {
    color: var(--hf-text-muted, #646970);
    font-size: var(--hf-font-sm, 12px);
    font-weight: 500;
}

/* Below the breakpoint the bar wraps; the chips go with the title. */
@media only screen and (max-width: 782px) {

    .hf-list-header .hf-list-stats {
        margin: 0;
        width: 100%;
    }
}

/* ---------- Status links and filters ----------
 *
 * Selectors are paired for the plugin's .hf-view-tab links and core's
 * <ul class="subsubsub"> markup.
 */

/* Status tabs and the search box share one row above the table. */
.hf-list-screen .hf-list-toolbar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: var(--hf-space-3, 12px);
    justify-content: space-between;
    margin: 0 0 var(--hf-space-3, 12px);
}

.hf-list-screen .hf-view-tabs,
.hf-list-screen .subsubsub {
    display: flex;
    flex-wrap: wrap;
    /* Floated like core, so the search box in a different parent can wrap alongside. */
    float: left;
    gap: 2px;
    margin: 0;
    padding: 0;
}

/* Core puts a pipe between the links; it is hidden rather than removed so
   the markup stays as core wrote it. */
.hf-list-screen .subsubsub li {
    color: transparent;
    margin: 0;
}

.hf-list-screen .hf-view-tab,
.hf-list-screen .subsubsub li a {
    align-items: center;
    border-radius: 3px;
    color: var(--hf-text-muted, #646970);
    display: inline-flex;
    font-size: var(--hf-font-base, 13px);
    font-weight: 500;
    gap: var(--hf-space-2, 8px);
    line-height: 1;
    padding: var(--hf-space-2, 8px) var(--hf-space-3, 12px);
    text-decoration: none;
    transition: background-color var(--hf-transition, .15s ease), color var(--hf-transition, .15s ease);
}

.hf-list-screen .hf-view-tab:hover,
.hf-list-screen .subsubsub li a:hover {
    background: var(--hf-surface-sunken, #fafbfc);
    color: var(--hf-text, #1e2327);
}

.hf-list-screen .hf-view-tab:focus-visible,
.hf-list-screen .subsubsub li a:focus-visible {
    outline: 2px solid var(--hf-accent, #2271b1);
    outline-offset: -1px;
}

.hf-list-screen .hf-view-tab.current,
.hf-list-screen .subsubsub li a.current {
    background: var(--hf-accent-soft, #f0f6fc);
    color: var(--hf-accent-text, #a3591b);
}

.hf-list-screen .hf-view-tab .count,
.hf-list-screen .subsubsub .count {
    background: #f0f1f3;
    border-radius: var(--hf-radius-pill, 999px);
    color: var(--hf-text-faint, #8c9196);
    font-size: var(--hf-font-xs, 11px);
    font-weight: 600;
    line-height: 1.6;
    min-width: 20px;
    padding: 0 5px;
    text-align: center;
}

.hf-list-screen .hf-view-tab.current .count,
.hf-list-screen .subsubsub li a.current .count {
    background: var(--hf-accent, #2271b1);
    color: var(--hf-text-inverse, #fff);
}

.hf-list-screen .tablenav {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: var(--hf-space-2, 8px);
    height: auto;
    margin: 0 0 var(--hf-space-3, 12px);
    padding: 0;
}

.hf-list-screen .tablenav.bottom {
    margin: var(--hf-space-3, 12px) 0 0;
}

.hf-list-screen .tablenav .actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: var(--hf-space-2, 8px);
    padding: 0;
}

.hf-list-screen .tablenav br,
.hf-list-screen .tablenav .clear {
    display: none;
}

/* Restore core's display:none on the hidden bulk-actions block and the no-pages pager. */
.hf-list-screen .tablenav .actions.hidden,
.hf-list-screen .tablenav .hidden,
.hf-list-screen .tablenav .no-pages {
    display: none;
}

/* The flex gap spaces these controls, so core's own margins are removed. */
.hf-list-screen .tablenav .actions > select,
.hf-list-screen .tablenav .actions > input,
.hf-list-screen .tablenav .actions > .button,
.hf-list-screen .tablenav .actions > .button-secondary {
    margin: 0;
}

/* Undo the token sheet's 100% width so a control stays on a line with its
   button. Not on the Settings screen, which is a stack of settings panels, and
   not the Modules sidebar search, which fills its column. */
.hf-list-screen:not(.hf-settings-screen) select,
.hf-list-screen:not(.hf-settings-screen) input[type="search"]:not(.hf-modules-search-input),
.hf-list-screen:not(.hf-settings-screen) input[type="text"] {
    border: 1px solid var(--hf-border-strong, #d3d8e0);
    border-radius: var(--hf-radius-sm, 4px);
    box-shadow: none;
    color: var(--hf-text, #1e2327);
    font-size: var(--hf-font-base, 13px);
    min-height: 34px;
    width: auto;
}

.hf-list-screen:not(.hf-settings-screen) select:focus,
.hf-list-screen:not(.hf-settings-screen) input[type="search"]:focus,
.hf-list-screen:not(.hf-settings-screen) input[type="text"]:focus {
    border-color: var(--hf-accent, #2271b1);
    box-shadow: 0 0 0 1px var(--hf-accent, #2271b1);
    outline: 0;
}

/* The secondary buttons around the table: Bulk actions, Apply, Search. Scoped
   to .wrap to keep the header's Add New and the Settings Save button out, and
   primary buttons with them: they are white on the accent colour, and this rule
   would repaint that label in the body text colour. */
.hf-list-screen:not(.hf-settings-screen) .wrap .button:not(.hf-trigger-modal):not(.button-primary) {
    border-color: var(--hf-border-strong, #d3d8e0);
    border-radius: var(--hf-radius-sm, 4px);
    color: var(--hf-text, #1e2327);
    font-size: var(--hf-font-base, 13px);
    min-height: 34px;
}

.hf-list-screen:not(.hf-settings-screen) .wrap .button:not(.hf-trigger-modal):not(.button-primary):hover {
    background: var(--hf-surface-sunken, #fafbfc);
    border-color: var(--hf-text-faint, #8c9196);
    color: var(--hf-text, #1e2327);
}

.hf-list-screen .search-box {
    align-items: center;
    display: flex;
    gap: var(--hf-space-2, 8px);
    margin: 0 0 var(--hf-space-3, 12px);
    justify-content: flex-end;
}

/* Core floats this input, which a flex parent ignores everywhere except in
   the margin it also sets. */
.hf-list-screen .search-box input[type="search"] {
    float: none;
    margin: 0;
}

.hf-list-screen .search-box input[type="search"] {
    min-width: 220px;
}

/* ---------- The table itself ---------- */

.hf-list-screen .wp-list-table {
    background: var(--hf-surface, #fff);
    border: 1px solid var(--hf-border, #e2e5ea);
    border-radius: var(--hf-radius, 8px);
    border-collapse: separate;
    border-spacing: 0;
    box-shadow: var(--hf-shadow-sm, 0 1px 2px rgba(16, 24, 40, .05));
    overflow: hidden;
}

.hf-list-screen .wp-list-table thead th,
.hf-list-screen .wp-list-table tfoot th {
    background: var(--hf-surface-sunken, #fafbfc);
    border-bottom: 1px solid var(--hf-border, #e2e5ea);
    color: var(--hf-text-muted, #646970);
    font-size: var(--hf-font-xs, 11px);
    font-weight: 700;
    letter-spacing: .04em;
    padding: var(--hf-space-3, 12px) var(--hf-space-4, 16px);
    text-transform: uppercase;
    white-space: nowrap;
}

/* Keeps the sort arrow on the same line as the label it belongs to. */
.hf-list-screen .wp-list-table thead th a,
.hf-list-screen .wp-list-table tfoot th a {
    align-items: center;
    display: inline-flex;
    gap: var(--hf-space-1, 4px);
}

.hf-list-screen .wp-list-table tfoot th {
    border-bottom: 0;
    border-top: 1px solid var(--hf-border, #e2e5ea);
}

.hf-list-screen .wp-list-table thead th a,
.hf-list-screen .wp-list-table tfoot th a {
    color: inherit;
}

.hf-list-screen .wp-list-table tbody td,
.hf-list-screen .wp-list-table tbody th {
    border-bottom: 1px solid var(--hf-border, #e2e5ea);
    color: var(--hf-text, #1e2327);
    font-size: var(--hf-font-base, 13px);
    padding: var(--hf-space-3, 12px) var(--hf-space-4, 16px);
    vertical-align: top;
    float: none;
}

.hf-list-screen .wp-list-table tbody tr:last-child td,
.hf-list-screen .wp-list-table tbody tr:last-child th {
    border-bottom: 0;
}

.hf-list-screen .wp-list-table tbody tr:hover {
    background: var(--hf-surface-sunken, #fafbfc);
}

.hf-list-screen .wp-list-table .no-items td {
    color: var(--hf-text-muted, #646970);
    padding: var(--hf-space-7, 48px) var(--hf-space-4, 16px);
    text-align: center;
}

/* WP's own striping fights the hover state. */
.hf-list-screen .wp-list-table.striped > tbody > :nth-child(odd) {
    background: transparent;
}

.hf-list-screen .wp-list-table .row-title,
.hf-list-screen .wp-list-table .column-form_title a {
    color: var(--hf-text, #1e2327);
    font-weight: 600;
    text-decoration: none;
}

.hf-list-screen .wp-list-table .row-title:hover,
.hf-list-screen .wp-list-table .column-form_title a:hover {
    color: var(--hf-accent-text, #a3591b);
}

/* Row actions stay out of the way until the row is hovered, as in core. */
.hf-list-screen .wp-list-table .row-actions {
    color: var(--hf-text-faint, #8c9196);
    font-size: var(--hf-font-sm, 12px);
    padding: 2px 0 0;
}

.hf-list-screen .wp-list-table .check-column {
    padding-left: var(--hf-space-4, 16px);
    width: 64px;
}

/* Nudge the checkbox down a pixel to sit level with the top-aligned text. */
.hf-list-screen .wp-list-table tbody .check-column {
    padding-top: 13px;
}

/* ---------- Entry count badge ---------- */

.hf-list-screen .hf-entry-badge {
    background: var(--hf-accent-soft, #f0f6fc);
    border-radius: var(--hf-radius-pill, 999px);
    color: var(--hf-accent-text, #a3591b);
    display: inline-block;
    font-size: var(--hf-font-sm, 12px);
    font-weight: 600;
    line-height: 1.7;
    min-width: 36px;
    padding: 1px var(--hf-space-2, 8px);
    text-align: center;
    text-decoration: none;
    transition: background-color var(--hf-transition, .15s ease), color var(--hf-transition, .15s ease);
}

.hf-list-screen .hf-entry-badge:hover,
.hf-list-screen .hf-entry-badge:focus {
    background: var(--hf-accent, #2271b1);
    color: var(--hf-text-inverse, #fff);
}

/* Nothing submitted yet: present, but not competing for attention with the
   rows that do have entries. */
.hf-list-screen .hf-entry-badge.is-empty {
    background: #f0f1f3;
    color: var(--hf-text-faint, #8c9196);
}

.hf-list-screen .hf-entry-badge.is-empty:hover,
.hf-list-screen .hf-entry-badge.is-empty:focus {
    background: var(--hf-border, #e2e5ea);
    color: var(--hf-text-muted, #646970);
}

/* ---------- Shortcode chip ---------- */

.hf-list-screen .hf-shortcode-chip {
    align-items: center;
    background: var(--hf-surface-sunken, #fafbfc);
    border: 1px solid var(--hf-border, #e2e5ea);
    border-radius: var(--hf-radius-sm, 4px);
    color: var(--hf-text-muted, #646970);
    cursor: pointer;
    display: inline-flex;
    gap: var(--hf-space-2, 8px);
    max-width: 100%;
    padding: 3px var(--hf-space-2, 8px);
    transition: border-color var(--hf-transition, .15s ease), color var(--hf-transition, .15s ease);
}

.hf-list-screen .hf-shortcode-chip code {
    background: none;
    color: inherit;
    font-size: var(--hf-font-sm, 12px);
    padding: 0;
    white-space: nowrap;
}

.hf-list-screen .hf-shortcode-chip .dashicons {
    color: var(--hf-text-faint, #8c9196);
    font-size: 15px;
    height: 15px;
    width: 15px;
}

.hf-list-screen .hf-shortcode-chip:hover,
.hf-list-screen .hf-shortcode-chip:focus-visible {
    border-color: var(--hf-accent, #2271b1);
    color: var(--hf-text, #1e2327);
}

.hf-list-screen .hf-shortcode-chip:hover .dashicons {
    color: var(--hf-accent-text, #a3591b);
}

/* Copy confirmation. The icon becomes a tick rather than moving anything, so
   the row does not reflow under the pointer. */
.hf-list-screen .hf-shortcode-chip.is-copied {
    border-color: var(--hf-success, #2e9e5b);
    color: var(--hf-success, #2e9e5b);
}

.hf-list-screen .hf-shortcode-chip.is-copied .dashicons {
    color: var(--hf-success, #2e9e5b);
}

.hf-list-screen .hf-shortcode-chip.is-copied .dashicons:before {
    content: "\f147";
}

/* ---------- Empty states ---------- */

.hf-list-screen .hf-empty-state {
    background: var(--hf-surface, #fff);
    border: 1px solid var(--hf-border, #e2e5ea);
    border-radius: var(--hf-radius, 8px);
    box-shadow: var(--hf-shadow-sm, 0 1px 2px rgba(16, 24, 40, .05));
    padding: var(--hf-space-7, 48px) var(--hf-space-5, 24px);
    text-align: center;
}

.hf-list-screen .hf-empty-icon {
    align-items: center;
    background: var(--hf-accent-soft, #f0f6fc);
    border-radius: var(--hf-radius-pill, 999px);
    color: var(--hf-accent-text, #a3591b);
    display: inline-flex;
    height: 64px;
    justify-content: center;
    width: 64px;
}

.hf-list-screen .hf-empty-icon:before {
    font-size: 30px;
}

.hf-list-screen .hf-empty-title {
    color: var(--hf-text, #1e2327);
    font-size: var(--hf-font-lg, 16px);
    font-weight: 600;
    margin: var(--hf-space-4, 16px) 0 var(--hf-space-2, 8px);
}

.hf-list-screen .hf-empty-text {
    color: var(--hf-text-muted, #646970);
    font-size: var(--hf-font-md, 14px);
    line-height: 1.6;
    margin: 0 auto var(--hf-space-5, 24px);
    max-width: 420px;
}

.hf-list-screen .hf-empty-upsell {
    color: var(--hf-text-muted, #646970);
    font-size: var(--hf-font-sm, 12px);
    margin: var(--hf-space-5, 24px) 0 0;
}

/* ---------- Pagination ----------
 *
 * One flex row, placed after the button rules it ties with on specificity. */

.hf-list-screen .tablenav-pages {
    align-items: center;
    display: flex;
    float: none;
    gap: var(--hf-space-3, 12px);
    /* Trails the bulk actions to the far end of the row. */
    margin: 0 0 0 auto;
}

.hf-list-screen .tablenav-pages .displaying-num {
    color: var(--hf-text-muted, #646970);
    font-size: var(--hf-font-sm, 12px);
    margin: 0;
}

.hf-list-screen .pagination-links {
    align-items: center;
    display: flex;
    gap: var(--hf-space-1, 4px);
}

/* Arrows and the disabled spans core swaps in for them share one square
   footprint, so the group keeps its shape on the first and last page. */
.hf-list-screen .pagination-links .button,
.hf-list-screen .pagination-links .tablenav-pages-navspan {
    align-items: center;
    background: var(--hf-surface, #fff);
    border: 1px solid var(--hf-border-strong, #d3d8e0);
    border-radius: var(--hf-radius-sm, 4px);
    color: var(--hf-text, #1e2327);
    display: inline-flex;
    font-size: var(--hf-font-md, 14px);
    height: 32px;
    justify-content: center;
    line-height: 1;
    margin: 0;
    min-height: 0;
    min-width: 32px;
    padding: 0;
    transition: background-color var(--hf-transition, .15s ease), border-color var(--hf-transition, .15s ease), color var(--hf-transition, .15s ease);
}

.hf-list-screen .pagination-links a.button:hover,
.hf-list-screen .pagination-links a.button:focus {
    background: var(--hf-surface-sunken, #fafbfc);
    border-color: var(--hf-accent, #2271b1);
    color: var(--hf-accent-text, #a3591b);
}

.hf-list-screen .pagination-links a.button:focus-visible {
    outline: 2px solid var(--hf-accent, #2271b1);
    outline-offset: 1px;
}

/* No page to go to: present, so the row does not shift, but clearly inert. */
.hf-list-screen .pagination-links .tablenav-pages-navspan,
.hf-list-screen .pagination-links .button.disabled {
    background: var(--hf-surface-sunken, #fafbfc);
    border-color: var(--hf-border, #e2e5ea);
    color: var(--hf-text-faint, #8c9196);
    cursor: default;
}

.hf-list-screen .paging-input {
    align-items: center;
    color: var(--hf-text-muted, #646970);
    display: flex;
    font-size: var(--hf-font-base, 13px);
    gap: var(--hf-space-2, 8px);
    margin: 0 var(--hf-space-1, 4px);
}

.hf-list-screen .paging-input .current-page {
    height: 32px;
    min-height: 0;
    padding: 0 var(--hf-space-1, 4px);
    text-align: center;
    width: 44px;
}

.hf-list-screen .paging-input .tablenav-paging-text {
    white-space: nowrap;
}

/* One page of results: core keeps the count and drops the arrows. */
.hf-list-screen .tablenav-pages.one-page .pagination-links {
    display: none;
}

@media only screen and (max-width: 782px) {
    .hf-list-screen {
        margin-left: -10px;
    }

    .hf-list-screen .wrap {
        padding-left: var(--hf-space-3, 12px);
        padding-right: var(--hf-space-3, 12px);
    }

    /* On a phone there is no width to spare for the tab to hang over, so put
       it back in the flow and let the bar clear it as WP intends. */
    #wpbody-content:has(.hf-list-screen) > #screen-meta-links {
        float: right;
        margin: 0 20px 0 0;
        position: static;
    }

    .hf-list-screen .search-box {
        justify-content: flex-start;
    }

    /* Its own row rather than crammed beside the bulk actions. */
    .hf-list-screen .tablenav-pages {
        justify-content: space-between;
        margin-left: 0;
        width: 100%;
    }

    /* Two per row rather than one wide tile each. */
    .hf-list-screen .hf-stat {
        flex: 1 1 calc(50% - var(--hf-space-3, 12px));
        min-width: 0;
    }

    .hf-list-screen .hf-empty-state {
        padding: var(--hf-space-6, 32px) var(--hf-space-4, 16px);
    }
}
