

/* ---------------------------------------------------------
   Look & Feel settings page (ubie-admin only)
   --------------------------------------------------------- */
.ubie-look-grid {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.ubie-look-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 22px;
    background: #ffffff;
    border: 1px solid #dcdcde;
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ubie-look-card:hover {
    border-color: #c3c4c7;
}

.ubie-look-card.is-on {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1, 0 12px 28px rgba(34, 113, 177, 0.12);
}

.ubie-look-card-icon {
    flex: 0 0 46px;
    width: 46px !important;
    height: 46px !important;
    border-radius: 12px;
    background: #1d2327;
    color: #72aee6;
    font-size: 24px !important;
    line-height: 46px !important;
    text-align: center;
}

.ubie-look-card-body {
    flex: 1 1 auto;
    min-width: 0;
}

.ubie-look-card-body strong {
    display: block;
    margin-bottom: 4px;
    color: #1d2327;
    font-size: 16px;
}

.ubie-look-card-body span {
    display: block;
    color: #50575e;
    font-size: 13px;
    line-height: 1.5;
}

.ubie-look-switch {
    position: relative;
    flex: 0 0 52px;
    width: 52px;
    height: 30px;
}

.ubie-look-switch input {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.ubie-look-switch-track {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #dcdcde;
    transition: background 0.15s ease;
}

.ubie-look-switch-track::after {
    content:"";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease;
}

.ubie-look-switch input:checked + .ubie-look-switch-track {
    background: #1d2327;
}

.ubie-look-switch input:checked + .ubie-look-switch-track::after {
    transform: translateX(22px);
    background: #2271b1;
}

.ubie-look-switch input:focus-visible + .ubie-look-switch-track {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

.ubie-look-support-card {
    margin-top: 18px;
}

/* ---------------------------------------------------------
   Clean dashboard header (dashboard_hero)
   --------------------------------------------------------- */
.ubie-hero {
    clear: both;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin: 8px 20px 0 2px;
    padding: 18px 0 22px;
    border-bottom: 1px solid #e4e4e7;
}

.ubie-hero-text {
    min-width: 0;
}

.ubie-hero-greeting {
    margin: 0;
    color: #1d2327;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.ubie-hero-sub {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin: 6px 0 0;
    color: #646970;
    font-size: 14px;
}

.ubie-hero-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #2271b1;
}

.ubie-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ubie-hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 10px;
    border: 1px solid #d4d4d8;
    background: #ffffff;
    color: #1d2327;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ubie-hero-button:hover,
.ubie-hero-button:focus {
    border-color: #1d2327;
    color: #1d2327;
}

.ubie-hero-button:focus-visible {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
    box-shadow: none;
}

.ubie-hero-button--primary {
    background: #2271b1;
    border-color: #1d2327;
    color: #ffffff;
}

.ubie-hero-button--primary:hover,
.ubie-hero-button--primary:focus {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
}

/* The header carries the greeting, so the original heading is kept for
   screen readers only. */
body.index-php.ubie-has-hero #wpbody-content .wrap > h1:first-child {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

body.index-php.ubie-has-hero #dashboard-widgets-wrap {
    margin-top: 22px;
}

@media (max-width: 782px) {
    .ubie-hero {
        margin: 4px 10px 0 0;
        padding: 14px 0 18px;
    }

    .ubie-hero-greeting {
        font-size: 24px;
    }

    .ubie-hero-actions {
        width: 100%;
    }

    .ubie-hero-button {
        flex: 1 1 0;
        min-height: 44px;
    }
}

/* ---------------------------------------------------------
   Quick-action tiles (quick_tiles)
   --------------------------------------------------------- */
.ubie-tiles-widget {
    padding: 4px 0;
}

/* Recent edits in their own dashboard box */
#ubie_recent_edits .ubie-recent {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.ubie-recent-empty {
    margin: 4px 0;
    color: #646970;
}

.ubie-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.ubie-tile {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 118px;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid #e4e4e7;
    background: #fafafa;
    color: #1d2327;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.ubie-tile:hover,
.ubie-tile:focus {
    background: #1d2327;
    border-color: #1d2327;
    color: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.ubie-tile:focus-visible {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

.ubie-tile-icon {
    width: 40px !important;
    height: 40px !important;
    margin-bottom: 8px;
    border-radius: 10px;
    background: #1d2327;
    color: #72aee6;
    font-size: 22px !important;
    line-height: 40px !important;
    text-align: center;
}

.ubie-tile:hover .ubie-tile-icon,
.ubie-tile:focus .ubie-tile-icon {
    background: #2271b1;
    color: #fff;
}

.ubie-tile-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.ubie-tile-meta {
    font-size: 12px;
    opacity: 0.7;
}

.ubie-recent {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eeeeee;
}

.ubie-recent-title {
    margin: 0 0 8px !important;
    padding: 0 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #1d2327;
}

.ubie-recent-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ubie-recent-item {
    margin: 0;
}

.ubie-recent-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    margin: 0 -12px;
    border-radius: 10px;
    color: #1d2327;
    text-decoration: none;
}

.ubie-recent-link:hover,
.ubie-recent-link:focus {
    background: #f6f6f6;
    color: #1d2327;
    box-shadow: none;
}

.ubie-recent-name {
    font-weight: 600;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ubie-recent-link:hover .ubie-recent-name {
    text-decoration: underline;
    text-decoration-color: #2271b1;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.ubie-recent-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    color: #646970;
    font-size: 12px;
}

.ubie-recent-type,
.ubie-recent-status {
    padding: 2px 8px;
    border-radius: 999px;
    background: #f0f0f1;
    color: #3c434a;
    font-weight: 600;
}

.ubie-recent-status {
    background: #d8eaf8;
    color: #113a5a;
}

@media (max-width: 600px) {
    .ubie-tiles {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .ubie-tile {
        display: grid;
        grid-template-columns: 40px 1fr;
        grid-template-rows: auto auto;
        column-gap: 14px;
        row-gap: 2px;
        align-items: center;
        min-height: 0;
        padding: 12px 14px;
    }

    .ubie-tile-icon {
        grid-row: 1 / span 2;
        margin-bottom: 0;
    }

    .ubie-tile:hover,
    .ubie-tile:focus {
        transform: none;
    }
}

@media (max-width: 480px) {

    .ubie-recent-link {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* ---------------------------------------------------------
   Branded footer (branded_footer)
   --------------------------------------------------------- */
.ubie-footer a {
    color: #1d2327;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: #2271b1;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.ubie-footer a:hover,
.ubie-footer a:focus {
    color: #fff;
    background: #2271b1;
}

/* ---------------------------------------------------------
   Modern admin style (modern_style)
   Everything below starts with body.ubie-modern
   --------------------------------------------------------- */
body.ubie-modern,
body.ubie-modern #wpwrap {
    background: #f5f5f4;
}


body.ubie-modern #wpadminbar #wp-admin-bar-site-name > .ab-item::before {
    content:"" !important;
    background-image: url("https://www.thecutterinn.co.uk/wp-content/uploads/2021/10/favicon.png");
    width: 20px;
    height: 20px;
    margin-top: 0;
    top: 0;
    padding: 0;
    border-radius: 4px;
}

/* Page headings */
:where(body.ubie-modern) .wrap h1.wp-heading-inline,
:where(body.ubie-modern) .wrap > h1 {
    font-weight: 700;
    letter-spacing: -0.01em;
}

:where(body.ubie-modern) .wrap .page-title-action {
    border-radius: 10px;
    border: 1px solid #1d2327;
    background: #1d2327;
    color: #f5f5f5;
    padding: 6px 14px;
    font-weight: 600;
    top: -2px;
}

:where(body.ubie-modern) .wrap .page-title-action:hover,
:where(body.ubie-modern) .wrap .page-title-action:focus {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
    box-shadow: none;
}

/* Cards / dashboard widgets */
:where(body.ubie-modern) .postbox {
    border: 1px solid #e4e4e7;
    border-radius: 16px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

:where(body.ubie-modern) .postbox .postbox-header {
    border-bottom-color: #efefef;
}

:where(body.ubie-modern) .postbox .postbox-header .hndle {
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 700;
}

:where(body.ubie-modern) .postbox .inside {
    padding: 4px 18px 18px;
}

:where(body.ubie-modern) #dashboard-widgets .postbox .inside {
    margin-top: 14px;
}

:where(body.ubie-modern) #dashboard-widgets .postbox-container .empty-container {
    border-radius: 16px;
}

/* Existing quick-actions list gets the same rounding */
:where(body.ubie-modern) .ubie-dashboard-link {
    border-radius: 12px;
    padding: 12px 16px;
}

/* Buttons */
:where(body.ubie-modern).wp-core-ui .button {
    border-radius: 10px;
}

:where(body.ubie-modern).wp-core-ui .button-primary {
    font-weight: 600;
}

:where(body.ubie-modern).wp-core-ui .button:where(:not(.button-primary):not(.button-link)) {
    border-color: #c9c9c9;
    color: #1d2327;
    background: #ffffff;
}

:where(body.ubie-modern).wp-core-ui .button:where(:not(.button-primary):not(.button-link)):hover {
    border-color: #1d2327;
    background: #ffffff;
    color: #1d2327;
}

/* Form fields */
:where(body.ubie-modern) input[type="text"],
:where(body.ubie-modern) input[type="search"],
:where(body.ubie-modern) input[type="email"],
:where(body.ubie-modern) input[type="url"],
:where(body.ubie-modern) input[type="password"],
:where(body.ubie-modern) input[type="number"],
:where(body.ubie-modern) input[type="tel"],
:where(body.ubie-modern) input[type="date"],
:where(body.ubie-modern) select,
:where(body.ubie-modern) textarea {
    border-radius: 10px;
    border-color: #c9c9c9;
}

:where(body.ubie-modern) input[type="text"]:focus,
:where(body.ubie-modern) input[type="search"]:focus,
:where(body.ubie-modern) input[type="email"]:focus,
:where(body.ubie-modern) input[type="url"]:focus,
:where(body.ubie-modern) input[type="password"]:focus,
:where(body.ubie-modern) input[type="number"]:focus,
:where(body.ubie-modern) input[type="tel"]:focus,
:where(body.ubie-modern) input[type="date"]:focus,
:where(body.ubie-modern) select:focus,
:where(body.ubie-modern) textarea:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

/* 1.9.10: only WordPress core screens, never other plugins' switches */
:where(body.ubie-modern) :is(.check-column, #screen-options-wrap, .metabox-prefs, .inline-edit-row, .forgetmenot, .pw-weak, .ubie-look-card) input[type="checkbox"]:checked::before,
:where(body.ubie-modern:is(.options-general-php, .options-writing-php, .options-reading-php, .options-discussion-php, .options-media-php, .options-privacy-php, .profile-php, .user-edit-php, .user-new-php, .edit-php, .upload-php, .users-php, .edit-tags-php, .post-php, .post-new-php, .nav-menus-php, .widgets-php, .index-php)) :is(.form-table, .media-item, #post-body, .menu-settings, #dashboard-widgets, .wp-list-table, #ubie-welcome) input[type="checkbox"]:checked::before {
    filter: grayscale(1) brightness(0);
}

:where(body.ubie-modern).wp-core-ui select {
    border-radius: 10px;
    border-color: #c9c9c9;
}

:where(body.ubie-modern).wp-core-ui select:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

/* List tables (Pages, Posts, Media list, etc.) */
:where(body.ubie-modern) .wp-list-table.widefat {
    border: 1px solid #e4e4e7;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.04);
}

:where(body.ubie-modern) .wp-list-table thead th,
:where(body.ubie-modern) .wp-list-table thead td,
:where(body.ubie-modern) .wp-list-table tfoot th,
:where(body.ubie-modern) .wp-list-table tfoot td {
    background: #fafafa;
    border-color: #ececec;
}

:where(body.ubie-modern) .wp-list-table thead th,
:where(body.ubie-modern) .wp-list-table thead th a {
    color: #3c434a;
    font-weight: 600;
}

:where(body.ubie-modern) .wp-list-table td,
:where(body.ubie-modern) .wp-list-table th {
    padding-top: 12px;
    padding-bottom: 12px;
}

:where(body.ubie-modern) .striped > tbody > :nth-child(odd) {
    background-color: #fcfcfc;
}

:where(body.ubie-modern) .wp-list-table tbody tr:hover {
    background-color: #eef6fc;
}

:where(body.ubie-modern) .wp-list-table .row-title {
    color: #1d2327;
    font-weight: 700;
}

:where(body.ubie-modern) .wp-list-table .row-title:hover {
    text-decoration: underline;
    text-decoration-color: #2271b1;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

:where(body.ubie-modern) .subsubsub a.current {
    color: #1d2327;
    font-weight: 700;
}

/* Row actions under each page/post name: no WordPress blue */
:where(body.ubie-modern) .row-actions .button-link,
:where(body.ubie-modern) .row-actions a {
    color: #3c434a;
}

:where(body.ubie-modern) .row-actions .button-link:hover,
:where(body.ubie-modern) .row-actions a:hover {
    color: #000000;
}

:where(body.ubie-modern) .row-actions .trash a,
:where(body.ubie-modern) .row-actions .delete a {
    color: #b32d2e;
}

.row-actions .ubie-row-action--primary {
    font-weight: 600;
}

/* Copy notices: buttons on their own line */
.ubie-copy-notice .ubie-copy-notice-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Notices */
:where(body.ubie-modern) .notice,
:where(body.ubie-modern) div.updated,
:where(body.ubie-modern) div.error {
    border-radius: 12px;
    border-top: 1px solid #e4e4e7;
    border-right: 1px solid #e4e4e7;
    border-bottom: 1px solid #e4e4e7;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

/* Screen Options / Help tabs */
:where(body.ubie-modern) #screen-meta-links .show-settings {
    border-radius: 0 0 10px 10px;
}


body.ubie-modern #adminmenu li.menu-top,
body.ubie-modern #adminmenu li.menu-top:hover,
body.ubie-modern #adminmenu li.opensub,
body.ubie-modern #adminmenu li.menu-top:focus-within {
    background-color: transparent !important;
}

body.ubie-modern #adminmenu .wp-menu-arrow,
body.ubie-modern #adminmenu .wp-menu-arrow div {
    display: none !important;
}

body.ubie-modern #adminmenu li.menu-top > a.menu-top {
    transition: background-color 0.15s ease, color 0.15s ease;
}


body.ubie-modern #adminmenu li.menu-top > a.menu-top,
body.ubie-modern #adminmenu li.menu-top > a.menu-top:hover,
body.ubie-modern #adminmenu li.menu-top > a.menu-top:focus {
    box-shadow: none !important;
}

body.ubie-modern #adminmenu li.menu-top > a.menu-top:focus-visible {
    outline: 2px solid #2271b1;
    outline-offset: 1px;
}

/* No pointer triangles on menu items or flyouts */
body.ubie-modern ul#adminmenu a.wp-has-current-submenu:after,
body.ubie-modern ul#adminmenu > li.current > a.current:after,
body.ubie-modern #adminmenu li.wp-has-submenu.wp-not-current-submenu:hover:after,
body.ubie-modern #adminmenu li.wp-has-submenu.wp-not-current-submenu:focus-within:after,
body.ubie-modern #adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after {
    display: none !important;
    border: 0 !important;
}

body.ubie-modern #adminmenu div.separator {
    height: 1px;
    margin: 8px 14px;
    padding: 0;
    background: #1f1f1f;
}


body.ubie-modern #adminmenu .wp-submenu a {
    border-radius: 8px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

body.ubie-modern #adminmenu .wp-submenu a:focus {
    box-shadow: none;
    outline: 2px solid #2271b1;
    outline-offset: -2px;
}

body.ubie-modern #adminmenu .wp-submenu .wp-submenu-head {
    display: none;
}

/* Rounded pill items only when the menu is fully open (WordPress folds it
   to icons by itself between 783px and 960px). */
@media screen and (min-width: 961px) {
    body.ubie-modern:not(.folded) #adminmenu {
        margin-top: 10px;
    }

    body.ubie-modern:not(.folded) #adminmenu > li.menu-top > a.menu-top {
        margin: 2px 8px;
        border-radius: 10px;
    }
}

@media screen and (min-width: 783px) {

    /* Open section (the page you are on): indent under the label */
    body.ubie-modern:not(.folded) #adminmenu .wp-has-current-submenu .wp-submenu {
        padding: 4px 8px 10px;
        background: transparent !important;
    }

    body.ubie-modern:not(.folded) #adminmenu .wp-has-current-submenu .wp-submenu a {
        padding: 7px 12px 7px 28px;
        font-size: 13px;
    }

    body.ubie-modern #adminmenu .wp-has-current-submenu .wp-submenu a:hover {
        background: #1c1c1c !important;
    }

    /* Flyout menus (hover over a closed section) */
    body.ubie-modern #adminmenu .wp-not-current-submenu .wp-submenu,
    body.ubie-modern.folded #adminmenu .wp-has-current-submenu .wp-submenu {
        min-width: 190px;
        padding: 8px !important;
        margin-left: 6px;
        border: 1px solid #262626 !important;
        border-radius: 12px;
        background: #121212 !important;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    }

    /* Invisible bridge so the flyout doesn't close while moving the mouse across the gap */
    body.ubie-modern #adminmenu .wp-not-current-submenu .wp-submenu::before,
    body.ubie-modern.folded #adminmenu .wp-has-current-submenu .wp-submenu::before {
        content:"";
        position: absolute;
        top: 0;
        bottom: 0;
        left: -14px;
        width: 14px;
    }

    body.ubie-modern #adminmenu .wp-not-current-submenu .wp-submenu a,
    body.ubie-modern.folded #adminmenu .wp-has-current-submenu .wp-submenu a {
        padding: 8px 12px !important;
        font-size: 13px;
    }

    body.ubie-modern #adminmenu .wp-not-current-submenu .wp-submenu a:hover,
    body.ubie-modern #adminmenu .wp-not-current-submenu .wp-submenu a:focus,
    body.ubie-modern.folded #adminmenu .wp-has-current-submenu .wp-submenu a:hover {
        background: #1f1f1f !important;
        color: #72aee6 !important;
    }
}

/* Admin bar icons (including the mobile menu button) follow the hover colour
   instead of WordPress blue. */
body.ubie-modern #wpadminbar li:hover .ab-icon:before,
body.ubie-modern #wpadminbar li.hover .ab-icon:before,
body.ubie-modern #wpadminbar li:hover .ab-item:before,
body.ubie-modern #wpadminbar li.hover .ab-item:before,
body.ubie-modern #wpadminbar .ab-item:focus .ab-icon:before,
body.ubie-modern #wpadminbar #wp-admin-bar-menu-toggle .ab-item:focus .ab-icon:before,
body.ubie-modern.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before {
    color: #1d2327 !important;
}

body.ubie-modern.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a {
    background: #2271b1 !important;
}


:where(body.ubie-modern #wpbody-content) a {
    color: #1d2327;
    text-decoration-color: rgba(34, 113, 177, 0.9);
    text-underline-offset: 2px;
}

:where(body.ubie-modern #wpbody-content) a:hover,
:where(body.ubie-modern #wpbody-content) a:active {
    color: #000000;
}

:where(body.ubie-modern) a:focus,
:where(body.ubie-modern) :is(.check-column, #screen-options-wrap, .metabox-prefs, .inline-edit-row, .forgetmenot, .pw-weak, .ubie-look-card) input[type="checkbox"]:focus,
:where(body.ubie-modern:is(.options-general-php, .options-writing-php, .options-reading-php, .options-discussion-php, .options-media-php, .options-privacy-php, .profile-php, .user-edit-php, .user-new-php, .edit-php, .upload-php, .users-php, .edit-tags-php, .post-php, .post-new-php, .nav-menus-php, .widgets-php, .index-php)) :is(.form-table, .media-item, #post-body, .menu-settings, #dashboard-widgets, .wp-list-table, #ubie-welcome) input[type="checkbox"]:focus,
:where(body.ubie-modern) :is(.check-column, #screen-options-wrap, .metabox-prefs, .inline-edit-row, .forgetmenot, .pw-weak, .ubie-look-card) input[type="radio"]:focus,
:where(body.ubie-modern:is(.options-general-php, .options-writing-php, .options-reading-php, .options-discussion-php, .options-media-php, .options-privacy-php, .profile-php, .user-edit-php, .user-new-php, .edit-php, .upload-php, .users-php, .edit-tags-php, .post-php, .post-new-php, .nav-menus-php, .widgets-php, .index-php)) :is(.form-table, .media-item, #post-body, .menu-settings, #dashboard-widgets, .wp-list-table, #ubie-welcome) input[type="radio"]:focus {
    box-shadow: 0 0 0 2px #2271b1;
    outline: 2px solid transparent;
}

:where(body.ubie-modern) :is(.check-column, #screen-options-wrap, .metabox-prefs, .inline-edit-row, .forgetmenot, .pw-weak, .ubie-look-card) input[type="radio"]:checked::before,
:where(body.ubie-modern:is(.options-general-php, .options-writing-php, .options-reading-php, .options-discussion-php, .options-media-php, .options-privacy-php, .profile-php, .user-edit-php, .user-new-php, .edit-php, .upload-php, .users-php, .edit-tags-php, .post-php, .post-new-php, .nav-menus-php, .widgets-php, .index-php)) :is(.form-table, .media-item, #post-body, .menu-settings, #dashboard-widgets, .wp-list-table, #ubie-welcome) input[type="radio"]:checked::before {
    background-color: #1d2327;
}

:where(body.ubie-modern) :is(.check-column, #screen-options-wrap, .metabox-prefs, .inline-edit-row, .forgetmenot, .pw-weak, .ubie-look-card) input[type="checkbox"]:checked,
:where(body.ubie-modern:is(.options-general-php, .options-writing-php, .options-reading-php, .options-discussion-php, .options-media-php, .options-privacy-php, .profile-php, .user-edit-php, .user-new-php, .edit-php, .upload-php, .users-php, .edit-tags-php, .post-php, .post-new-php, .nav-menus-php, .widgets-php, .index-php)) :is(.form-table, .media-item, #post-body, .menu-settings, #dashboard-widgets, .wp-list-table, #ubie-welcome) input[type="checkbox"]:checked,
:where(body.ubie-modern) :is(.check-column, #screen-options-wrap, .metabox-prefs, .inline-edit-row, .forgetmenot, .pw-weak, .ubie-look-card) input[type="radio"]:checked,
:where(body.ubie-modern:is(.options-general-php, .options-writing-php, .options-reading-php, .options-discussion-php, .options-media-php, .options-privacy-php, .profile-php, .user-edit-php, .user-new-php, .edit-php, .upload-php, .users-php, .edit-tags-php, .post-php, .post-new-php, .nav-menus-php, .widgets-php, .index-php)) :is(.form-table, .media-item, #post-body, .menu-settings, #dashboard-widgets, .wp-list-table, #ubie-welcome) input[type="radio"]:checked {
    border-color: #1d2327;
    background-color: #fff; /* WordPress 7 fills these black, hiding the black tick */
}

:where(body.ubie-modern) .wp-list-table .row-actions a {
    text-decoration: none;
}

:where(body.ubie-modern) .wp-list-table .row-actions a:hover {
    text-decoration: underline;
}

/* Footer */
body.ubie-modern #wpfooter {
    color: #646970;
}

/* ---------------------------------------------------------
   Friendlier login & password pages (friendly_login)
   --------------------------------------------------------- */
body.login.ubie-friendly-login #backtoblog {
    margin: 22px 0 0;
    padding: 0 24px;
    text-align: center;
}

body.login.ubie-friendly-login #backtoblog a.ubie-login-site-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 22px;
    border: 1px solid #333333;
    border-radius: 10px;
    color: #f5f5f5 !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

body.login.ubie-friendly-login #backtoblog a.ubie-login-site-button:hover,
body.login.ubie-friendly-login #backtoblog a.ubie-login-site-button:focus {
    border-color: #2271b1;
    background: #2271b1;
    color: #fff !important;
    box-shadow: none;
}

body.login.ubie-friendly-login #backtoblog a.ubie-login-site-button:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.ubie-login-site-arrow {
    font-size: 16px;
    line-height: 1;
}

body.login.ubie-friendly-login #nav {
    text-align: center;
}

/* Messages */
body.login.ubie-friendly-login .message,
body.login.ubie-friendly-login .notice {
    line-height: 1.5;
}

/* Set-password screen */
/* The set-password form gets the same dark card as the login form */
body.login.ubie-friendly-login #resetpassform {
    background: #111111 !important;
    border-radius: 8px !important;
    border: 1px solid #1f1f1f !important;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6) !important;
    padding: 22px 26px 26px !important;
}

body.login.ubie-friendly-login #resetpassform label {
    color: #f5f5f5 !important;
}

body.login.ubie-friendly-login #resetpassform .reset-pass-submit #wp-submit:disabled {
    background: #2a2a2a !important;
    border-color: #2a2a2a !important;
    color: #777777 !important;
}

body.login.ubie-friendly-login .wp-pwd .button.wp-hide-pw {
    background: transparent !important;
    border: 0 !important;
    color: #a7a7a7 !important;
    box-shadow: none !important;
}

body.login.ubie-friendly-login .wp-pwd .button.wp-hide-pw:hover,
body.login.ubie-friendly-login .wp-pwd .button.wp-hide-pw:focus {
    color: #2271b1 !important;
}

body.login.ubie-friendly-login .ubie-rp-username {
    margin: 0 0 20px;
    padding: 14px 16px;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    background: #1d2327;
}

body.login.ubie-friendly-login .ubie-rp-username span {
    display: block;
    margin-bottom: 2px;
    color: #a7a7a7;
    font-size: 12px;
}

body.login.ubie-friendly-login .ubie-rp-username strong {
    display: block;
    color: #2271b1;
    font-size: 18px;
    word-break: break-all;
}

body.login.ubie-friendly-login .ubie-rp-username em {
    display: block;
    margin-top: 6px;
    color: #a7a7a7;
    font-size: 12px;
    font-style: normal;
}

body.login.ubie-friendly-login #resetpassform .wp-pwd {
    position: relative;
}

body.login.ubie-friendly-login #resetpassform .wp-pwd .button.wp-hide-pw {
    background: transparent !important;
    border: 0 !important;
    color: #a7a7a7 !important;
    box-shadow: none !important;
}

body.login.ubie-friendly-login #resetpassform .wp-pwd .button.wp-hide-pw:hover,
body.login.ubie-friendly-login #resetpassform .wp-pwd .button.wp-hide-pw:focus {
    color: #2271b1 !important;
}

body.login.ubie-friendly-login #pass-strength-result {
    margin-top: 8px;
    border-radius: 8px;
    font-weight: 600;
}

body.login.ubie-friendly-login .pw-weak label {
    color: #f5f5f5;
}

body.login.ubie-friendly-login #resetpassform .indicator-hint {
    margin: 14px 0 18px;
    color: #a7a7a7;
    font-size: 13px;
    line-height: 1.5;
}

body.login.ubie-friendly-login #resetpassform .indicator-hint em {
    color: #f5f5f5;
    font-style: normal;
}

body.login.ubie-friendly-login #resetpassform .reset-pass-submit {
    display: flex;
    flex-direction: column-reverse;
    gap: 12px;
}

body.login.ubie-friendly-login #resetpassform .reset-pass-submit .button {
    float: none;
    width: 100%;
    min-height: 44px;
    margin: 0;
    border-radius: 10px;
    font-size: 15px;
}

body.login.ubie-friendly-login #resetpassform .reset-pass-submit .wp-generate-pw {
    min-height: 0;
    padding: 6px 0;
    border: 0 !important;
    background: transparent !important;
    color: #2271b1 !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    box-shadow: none !important;
}

body.login.ubie-friendly-login #resetpassform .reset-pass-submit .wp-generate-pw:hover,
body.login.ubie-friendly-login #resetpassform .reset-pass-submit .wp-generate-pw:focus {
    color: #ffffff !important;
}

/* Login form: a little more room and rounder fields */
body.login.ubie-friendly-login #loginform .input,
body.login.ubie-friendly-login #lostpasswordform .input,
body.login.ubie-friendly-login #resetpassform .input {
    min-height: 44px;
    border-radius: 10px;
}

body.login.ubie-friendly-login #loginform #wp-submit,
body.login.ubie-friendly-login #lostpasswordform #wp-submit {
    min-height: 40px;
    padding: 0 20px;
    border-radius: 10px;
    font-weight: 600;
}

/* ---------------------------------------------------------
   Step-by-step guide (welcome_guide)
   --------------------------------------------------------- */
.ubie-steps {
    display: flex;
    justify-content: space-between;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
}

.ubie-step {
    position: relative;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin: 0;
    text-align: center;
}

/* Connecting line between dots */
.ubie-step + .ubie-step::before {
    content:"";
    position: absolute;
    top: 13px;
    right: calc(50% + 18px);
    left: calc(-50% + 18px);
    height: 2px;
    border-radius: 2px;
    background: #333333;
}

.ubie-step.is-done + .ubie-step::before,
.ubie-step.is-current::before {
    background: #2271b1;
}

.ubie-step-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #333333;
    background: #111111;
    color: #8a8a8a;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    box-sizing: border-box;
}

.ubie-step.is-current .ubie-step-dot {
    border-color: #2271b1;
    color: #2271b1;
    box-shadow: 0 0 0 4px rgba(34, 113, 177, 0.18);
}

.ubie-step.is-done .ubie-step-dot {
    border-color: #2271b1;
    background: #2271b1;
    color: #fff;
}

.ubie-step-label {
    color: #8a8a8a;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
}

.ubie-step.is-current .ubie-step-label,
.ubie-step.is-done .ubie-step-label {
    color: #f5f5f5;
}

/* On the login screens */
.ubie-steps-wrap {
    margin: 0 0 20px;
}

.ubie-steps-title {
    margin: 0 0 14px !important;
    color: #f5f5f5;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
}

/* Dashboard welcome (light background) */
.ubie-welcome {
    clear: both;
    margin: 22px 20px 0 2px;
    padding: 22px 24px 24px;
    background: #1d2327;
    border-radius: 16px;
    color: #f5f5f5;
}

.ubie-welcome-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.ubie-welcome-head > div {
    flex: 1 1 auto;
    max-width: 520px;
}

.ubie-welcome-title {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

a.ubie-welcome-close {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 18px;
    border-radius: 10px;
    background: #2271b1;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

a.ubie-welcome-close:hover,
a.ubie-welcome-close:focus {
    background: #ffffff;
    color: #1d2327;
    box-shadow: none;
}

.ubie-welcome-tips {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.ubie-welcome-tips li {
    display: flex;
    gap: 12px;
    margin: 0;
    padding: 16px;
    border: 1px solid #262626;
    border-radius: 12px;
    background: #121212;
}

.ubie-welcome-num {
    flex: 0 0 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #2271b1;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.ubie-welcome-tips strong {
    display: block;
    margin-bottom: 4px;
    color: #ffffff;
    font-size: 14px;
}

.ubie-welcome-tips span:not(.ubie-welcome-num) {
    display: block;
    color: #bdbdbd;
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 960px) {
    .ubie-welcome-tips {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 782px) {
    .ubie-welcome {
        margin: 16px 10px 0 0;
        padding: 18px;
    }

    .ubie-welcome-head {
        flex-direction: column;
        gap: 4px;
    }

    .ubie-welcome-head > div {
        width: 100%;
    }

    a.ubie-welcome-close {
        order: 2;
        align-self: stretch;
        justify-content: center;
        min-height: 44px;
    }

    .ubie-welcome-tips {
        margin-top: 14px;
    }
}

/* ---------------------------------------------------------
   Phones and tablets (1.9.9)
   --------------------------------------------------------- */


:where(body.ubie-modern) .view-switch a.current:before {
    color: #1d2327;
}

:where(body.ubie-modern) .view-switch a:hover:before {
    color: #164b74;
}

:where(body.ubie-modern) .media-toolbar.wp-filter,
:where(body.ubie-modern) .wp-filter {
    border-radius: 14px;
    border-color: #e4e4e7;
}

/* Look & Feel page: keep the Save bar in the normal flow on small screens
   so it never sits on top of a switch. */
@media (max-width: 782px) {
    .ubie-look-admin-wrap .ubie-elements-actions {
        position: static;
    }

    .ubie-look-card {
        gap: 14px;
        padding: 16px;
    }

    .ubie-look-card-icon {
        flex-basis: 40px;
        width: 40px !important;
        height: 40px !important;
        line-height: 40px !important;
        font-size: 20px !important;
    }

    /* Page title + "Add New" button sit neatly together */
    :where(body.ubie-modern) .wrap .page-title-action {
        top: 0;
        padding: 6px 12px;
    }

    /* List tables on phones: a little less padding per row */
    :where(body.ubie-modern) .wp-list-table td,
    :where(body.ubie-modern) .wp-list-table th {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    /* Dashboard boxes use the full width with even side spacing */
    body.ubie-modern #dashboard-widgets .postbox {
        border-radius: 14px;
    }
}

/* Tablets in portrait: two tiles per row reads better than four tiny ones */
@media (min-width: 601px) and (max-width: 960px) {
    .ubie-tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ubie-tile {
        min-height: 104px;
    }
}

/* ---------------------------------------------------------
 * "How do I…?" help box (1.9.11)
 * --------------------------------------------------------- */

#ubie_help .inside {
    margin: 0;
    padding: 4px 0 0;
}

.ubie-help-item {
    border-bottom: 1px solid #ececec;
}

.ubie-help-item summary {
    position: relative;
    display: block;
    padding: 13px 44px 13px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
    cursor: pointer;
    list-style: none;
}

.ubie-help-item summary::-webkit-details-marker {
    display: none;
}

.ubie-help-item summary::after {
    content:"";
    position: absolute;
    right: 18px;
    top: 50%;
    width: 8px;
    height: 8px;
    margin-top: -6px;
    border-right: 2px solid #1d2327;
    border-bottom: 2px solid #1d2327;
    transform: rotate(45deg);
    transition: transform .15s ease;
}

.ubie-help-item[open] summary::after {
    margin-top: -2px;
    transform: rotate(-135deg);
}

.ubie-help-item summary:hover {
    background: #fafafa;
}

.ubie-help-item summary:focus-visible {
    outline: 2px solid #2271b1;
    outline-offset: -2px;
}

.ubie-help-item[open] summary {
    background: #e9f3fb;
}

.ubie-help-item ol {
    margin: 0;
    padding: 6px 16px 14px 36px;
    background: #e9f3fb;
    font-size: 13px;
    line-height: 1.55;
    color: #2a2a2a;
}

.ubie-help-item li {
    margin: 0 0 6px;
}

.ubie-help-more {
    margin: 0;
    padding: 14px 16px 16px;
    font-size: 13px;
    color: #555;
}

.ubie-help-more a {
    font-weight: 600;
    color: #1d2327;
}

/* =========================================================
   Calmer layout on every screen size (1.9.14)
   Styling and spacing only: nothing is hidden or removed.
   ========================================================= */

/* Screen Options / Help tabs: quieter, so they don't compete with the page */
body.ubie-modern #screen-meta-links .show-settings {
    font-size: 12px;
    color: #6b6b6b;
}

body.ubie-modern #screen-meta-links .show-settings:hover,
body.ubie-modern #screen-meta-links .show-settings:focus {
    color: #1d2327;
}

/* Dashboard box move/collapse arrows: soft grey until you need them */
:where(body.ubie-modern) .postbox .handle-actions button .order-higher-indicator::before,
:where(body.ubie-modern) .postbox .handle-actions button .order-lower-indicator::before,
:where(body.ubie-modern) .postbox .handle-actions button .toggle-indicator::before {
    color: #b0b0b0;
}

:where(body.ubie-modern) .postbox .handle-actions button:hover .order-higher-indicator::before,
:where(body.ubie-modern) .postbox .handle-actions button:hover .order-lower-indicator::before,
:where(body.ubie-modern) .postbox .handle-actions button:hover .toggle-indicator::before,
:where(body.ubie-modern) .postbox .handle-actions button:focus .order-higher-indicator::before,
:where(body.ubie-modern) .postbox .handle-actions button:focus .order-lower-indicator::before,
:where(body.ubie-modern) .postbox .handle-actions button:focus .toggle-indicator::before {
    color: #1d2327;
}


.ubie-hero:has(+ #ubie-ai-card) {
    border-bottom: 0;
    padding-bottom: 6px;
}

body.ubie-has-hero #ubie-ai-card {
    margin-left: 2px;
}

/* ---------- Tablets and phones ---------- */
@media (max-width: 782px) {
    /* Screen Options / Help become small pills tucked to the right */
    body.ubie-modern #screen-meta-links {
        margin: 0 10px 0 0;
    }

    body.ubie-modern #screen-meta-links .screen-meta-toggle {
        margin: 0 0 0 6px;
    }

    body.ubie-modern #screen-meta-links .show-settings {
        padding: 2px 10px 4px;
        border-radius: 0 0 10px 10px;
        line-height: 1.6;
    }

    body.ubie-has-hero #ubie-ai-card {
        margin-left: 0;
    }

    /* List screens: tidy filters and compact row buttons */
    :where(body.ubie-modern) .subsubsub {
        text-align: left;
        font-size: 14px;
        line-height: 2;
        margin: 8px 0 4px;
    }

    body.ubie-modern .tablenav.top {
        margin: 0;
        height: auto;
        min-height: 0;
        padding: 0;
    }

    body.ubie-modern #posts-filter .search-box,
    body.ubie-modern #comments-form .search-box {
        margin-bottom: 10px;
    }

    body.ubie-modern #screen-meta-links .show-settings {
        font-size: 13px;
        padding: 3px 10px 5px;
    }

    :where(body.ubie-modern) .wp-list-table .row-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        padding-top: 6px;
    }

    :where(body.ubie-modern) .wp-list-table .row-actions > span {
        padding: 0;
    }

    :where(body.ubie-modern) .wp-list-table .row-actions > span > a,
    :where(body.ubie-modern) .wp-list-table .row-actions > span > button.button-link {
        display: inline-block;
        padding: 6px 12px;
        border-radius: 999px;
        background: #f3f3f3;
        font-size: 13px;
        line-height: 1.3;
        color: #1d2327;
        text-decoration: none;
    }

    :where(body.ubie-modern) .wp-list-table .row-actions > span.trash > a,
    :where(body.ubie-modern) .wp-list-table .row-actions > span.delete > a {
        background: #fdecec;
        color: #b32d2e;
    }

    :where(body.ubie-modern) .wp-list-table .row-actions > span.ubie_replace > a {
        background: #2271b1;
        font-weight: 600;
    }

    :where(body.ubie-modern) .wp-list-table tr:not(.inline-edit-row) td.column-primary {
        padding-right: 44px;
    }

    :where(body.ubie-modern) .wp-list-table .toggle-row {
        top: 8px;
    }
}

/* ---------- Phones ---------- */
@media (max-width: 600px) {
    /* Quick tiles: two per row, so the dashboard isn't one long list */
    .ubie-tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .ubie-tile {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        min-height: 0;
        padding: 14px;
    }

    .ubie-tile-icon {
        margin-bottom: 8px;
    }

    .ubie-tile-title {
        font-size: 14px;
        line-height: 1.3;
    }

    .ubie-tile-meta {
        font-size: 12px;
    }

    /* A lone last tile spans the row instead of leaving a gap */
    .ubie-tile:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    body.ubie-modern #dashboard-widgets .postbox .hndle {
        font-size: 15px;
    }

    .ubie-hero-greeting {
        font-size: 22px;
    }
}


.ubie-login-kicker {
    margin: 18px 0 0;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9a9a9a;
}

.ubie-login-kicker + .ubie-login-heading {
    padding-top: 4px;
}

.ubie-login-ai {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: max-content;
    max-width: 100%;
    margin: -10px auto 22px;
    padding: 6px 14px 6px 10px;
    border: 1px solid rgba(34, 113, 177, 0.45);
    border-radius: 999px;
    background: rgba(34, 113, 177, 0.08);
    color: #f5f5f5;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    box-sizing: border-box;
}

.ubie-login-ai svg {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    color: #2271b1;
}

.ubie-login-ai-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: -10px 0 22px;
}

.ubie-login-ai-wrap .ubie-login-ai {
    margin: 0;
}

.ubie-login-ai-amp {
    color: #9a9a9a;
    font-size: 18px;
    font-weight: 400;
}

@media (max-width: 480px) {
    .ubie-login-heading {
        font-size: 21px;
    }

    .ubie-login-ai {
        font-size: 13px;
    }
}

/* Settings and My Account: each group of fields sits in a soft white card
   (WordPress's own screens only, so plugin settings pages are untouched). */
:where(body.ubie-modern:is(.profile-php, .user-edit-php, .user-new-php, .options-general-php, .options-writing-php, .options-reading-php, .options-discussion-php, .options-media-php, .options-permalink-php, .options-privacy-php)) .wrap .form-table {
    background: #ffffff;
    border: 1px solid #e4e4e7;
    border-radius: 16px;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 8px;
}

:where(body.ubie-modern:is(.profile-php, .user-edit-php, .user-new-php, .options-general-php, .options-writing-php, .options-reading-php, .options-discussion-php, .options-media-php, .options-permalink-php, .options-privacy-php)) .wrap .form-table th {
    padding-left: 20px;
}

:where(body.ubie-modern:is(.profile-php, .user-edit-php, .user-new-php, .options-general-php, .options-writing-php, .options-reading-php, .options-discussion-php, .options-media-php, .options-permalink-php, .options-privacy-php)) .wrap .form-table td {
    padding-right: 20px;
}

@media (max-width: 782px) {
    :where(body.ubie-modern:is(.profile-php, .user-edit-php, .user-new-php, .options-general-php, .options-writing-php, .options-reading-php, .options-discussion-php, .options-media-php, .options-permalink-php, .options-privacy-php)) .wrap .form-table th,
    :where(body.ubie-modern:is(.profile-php, .user-edit-php, .user-new-php, .options-general-php, .options-writing-php, .options-reading-php, .options-discussion-php, .options-media-php, .options-permalink-php, .options-privacy-php)) .wrap .form-table td {
        padding-left: 16px;
        padding-right: 16px;
    }

    :where(body.ubie-modern:is(.profile-php, .user-edit-php, .user-new-php, .options-general-php, .options-writing-php, .options-reading-php, .options-discussion-php, .options-media-php, .options-permalink-php, .options-privacy-php)) .wrap .form-table tr:first-child th {
        padding-top: 16px;
    }

    :where(body.ubie-modern:is(.profile-php, .user-edit-php, .user-new-php, .options-general-php, .options-writing-php, .options-reading-php, .options-discussion-php, .options-media-php, .options-permalink-php, .options-privacy-php)) .wrap .form-table tr:last-child td {
        padding-bottom: 18px;
    }

    :where(body.ubie-modern:is(.profile-php, .user-edit-php)) .wrap h2 {
        margin-top: 28px;
    }
}

/* My Account: colour scheme choices in a neat grid instead of uneven floats */
:where(body.ubie-modern:is(.profile-php, .user-edit-php)) #color-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 6px 10px;
}

:where(body.ubie-modern:is(.profile-php, .user-edit-php)) #color-picker .color-option {
    float: none;
    width: auto;
    margin: 0;
    padding: 6px 8px 8px;
    border-radius: 10px;
}

:where(body.ubie-modern:is(.profile-php, .user-edit-php)) #color-picker .color-option label {
    white-space: nowrap;
}

/* Radio and name on one line, colour strip underneath */
:where(body.ubie-modern:is(.profile-php, .user-edit-php)) #color-picker .color-option {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

:where(body.ubie-modern:is(.profile-php, .user-edit-php)) #color-picker .color-option label {
    flex: 1 1 0;
    min-width: 0;
    white-space: normal;
    line-height: 1.25;
}

:where(body.ubie-modern:is(.profile-php, .user-edit-php)) #color-picker .color-option input[type="radio"] {
    margin: 0;
    flex: 0 0 auto;
}

:where(body.ubie-modern:is(.profile-php, .user-edit-php)) #color-picker .color-option table {
    flex: 1 0 100%;
}

/* =========================================================
   Phones (1.9.19): calm, premium layout with real breathing room.
   Even 16px side gutters on every screen, 44px tap targets, and
   secondary controls made small. Styling only, nothing removed.
   ========================================================= */
@media screen and (max-width: 782px) {

    /* ---------- Even side gutters on every wp-admin screen ---------- */
    body.ubie-modern:not(.block-editor-page):not(.site-editor-php):not(.wp-customizer) #wpcontent {
        margin-left: 0 !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        box-sizing: border-box;
    }

    body.ubie-modern #wpbody-content .wrap {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body.ubie-modern .ubie-hero {
        margin: 4px 0 0 !important;
        padding: 12px 0 20px !important;
    }

    body.ubie-modern #ubie-ai-card {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body.ubie-modern #dashboard-widgets-wrap {
        margin-left: 0 !important;
        margin-right: 0 !important;
        overflow: visible;
    }

    body.ubie-modern #dashboard-widgets .meta-box-sortables {
        margin: 0 !important;
    }

    body.ubie-modern #dashboard-widgets .postbox {
        margin-bottom: 16px;
    }

    body.ubie-modern #wpbody-content {
        padding-bottom: 40px;
    }

    body.ubie-modern #wpfooter {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* ---------- Screen Options and Help: two small round icons ---------- */
    body.ubie-modern #screen-meta-links {
        float: right;
        display: flex;
        gap: 8px;
        margin: 10px 0 0 12px !important;
        position: relative;
        z-index: 2;
    }

    body.ubie-modern #screen-meta-links .screen-meta-toggle {
        float: none;
        position: static;
        margin: 0 !important;
        height: auto;
    }

    body.ubie-modern #screen-meta-links .show-settings {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 0 !important;
        border: 1px solid #e4e4e7 !important;
        border-radius: 999px !important;
        background: #ffffff !important;
        color: #555555;
        font-size: 0 !important;
        line-height: 0 !important;
        box-shadow: none;
    }

    body.ubie-modern #screen-meta-links .show-settings::after {
        position: static;
        padding: 0 !important;
        margin: 0;
        font: normal 20px/1 dashicons !important;
        color: #555555;
        bottom: auto;
    }

    body.ubie-modern #screen-meta-links #show-settings-link::after {
        content:"\f111" !important; /* cog */
    }

    body.ubie-modern #screen-meta-links #contextual-help-link::after {
        content:"\f223" !important; /* question mark */
    }

    body.ubie-modern #screen-meta-links .show-settings:focus-visible {
        outline: 2px solid #2271b1;
        outline-offset: 2px;
    }

    body.ubie-modern #screen-meta-links .screen-meta-active {
        background: #1d2327 !important;
        border-color: #1d2327 !important;
    }

    body.ubie-modern #screen-meta-links .screen-meta-active::after {
        color: #2271b1 !important;
    }

    body.ubie-modern #screen-meta {
        margin: 10px 0 0;
        border-radius: 14px;
    }

    /* Page title row: generous and tidy */
    body.ubie-modern .wrap h1.wp-heading-inline,
    body.ubie-modern .wrap > h1 {
        padding-top: 12px;
        font-size: 24px;
        line-height: 1.25;
    }

    body.ubie-modern .wrap .page-title-action {
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        margin-top: 10px;
    }

    /* ---------- Top bar: lighter icons with even spacing ---------- */
    body.ubie-modern #wpadminbar .quicklinks > ul > li > .ab-item .ab-icon::before,
    body.ubie-modern #wpadminbar .quicklinks > ul > li > .ab-item::before {
        color: #e8e8e8 !important;
    }

    body.ubie-modern #wpadminbar #wp-admin-bar-menu-toggle .ab-icon::before {
        color: #2271b1 !important;
    }

    /* Every top-bar icon drawn the same way: one size, centred in
       WordPress's own 52 x 46 tap area. Only the icons are restyled; the
       bar, its height and its items are WordPress's own. */
    body.ubie-modern #wpadminbar .quicklinks > ul > li > .ab-item > .ab-icon {
        width: 52px !important;
        height: 46px !important;
        margin: 0 !important;
        padding: 0 !important;
        top: 0 !important;
        float: none;
        display: block;
    }

    body.ubie-modern #wpadminbar .quicklinks > ul > li > .ab-item > .ab-icon::before,
    body.ubie-modern #wpadminbar :is(#wp-admin-bar-edit, #wp-admin-bar-my-sites, #wp-admin-bar-site-editor, #wp-admin-bar-customize) > .ab-item::before {
        display: block !important;
        position: relative;
        top: 0 !important;
        width: 52px !important;
        height: 46px !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 26px !important;
        line-height: 46px !important;
        text-align: center;
    }

    
    body.ubie-modern #wpadminbar #wp-admin-bar-site-name > .ab-item {
        background: transparent !important;
    }

    body.ubie-modern #wpadminbar #wp-admin-bar-site-name:not(.has-site-icon) > .ab-item::before {
        display: block !important;
        position: relative;
        top: 0 !important;
        width: 52px !important;
        height: 46px !important;
        margin: 0 !important;
        padding: 0 !important;
        flex-shrink: 0;
        border-radius: 0;
        background-image: url("https://www.thecutterinn.co.uk/wp-content/uploads/2021/10/favicon.png") !important;
        background-position: center !important;
        background-size: 24px 24px !important;
        background-repeat: no-repeat !important;
    }

    body.ubie-modern #wpadminbar #wp-admin-bar-site-name.has-site-icon > .ab-item::before {
        content: none !important;
    }

    /* Your photo: a neat circle on every WordPress version */
    body.ubie-modern #wpadminbar #wp-admin-bar-my-account > .ab-item img.avatar {
        border-radius: 50%;
    }

    body.ubie-modern #wpadminbar .quicklinks > ul > li > .ab-item:hover,
    body.ubie-modern #wpadminbar .quicklinks > ul > li > .ab-item:focus {
        background: #1c1c1c !important;
    }

    body.ubie-modern #wpadminbar .quicklinks > ul > li > .ab-item:hover .ab-icon::before,
    body.ubie-modern #wpadminbar .quicklinks > ul > li > .ab-item:focus .ab-icon::before {
        color: #2271b1 !important;
    }

    /* ---------- Dashboard boxes ---------- */
    body.ubie-modern #dashboard-widgets .postbox-header {
        min-height: 56px;
    }

    body.ubie-modern #dashboard-widgets .postbox-header .hndle {
        padding: 14px 8px 14px 18px;
    }

    body.ubie-modern .postbox .handle-actions button {
        width: 40px;
        height: 44px;
    }

    body.ubie-modern .postbox .handle-actions .order-higher-indicator::before,
    body.ubie-modern .postbox .handle-actions .order-lower-indicator::before,
    body.ubie-modern .postbox .handle-actions .toggle-indicator::before {
        top: 0;
    }

    body.ubie-modern #dashboard-widgets .postbox .inside {
        padding-left: 18px;
        padding-right: 18px;
    }

    body.ubie-modern #dashboard-widgets #ubie_help .inside {
        padding: 4px 0 0;
    }

    .ubie-hero-actions {
        gap: 10px;
    }

    .ubie-hero-button {
        min-height: 48px;
    }

    /* ---------- Lists (Pages, Posts, Comments, Users) ---------- */
    body.ubie-modern .wp-list-table {
        border-radius: 16px;
    }

    body.ubie-modern .wp-list-table .row-actions > span > a,
    body.ubie-modern .wp-list-table .row-actions > span > button.button-link {
        display: inline-flex;
        align-items: center;
        min-height: 36px;
        padding: 0 14px;
        box-sizing: border-box;
        line-height: 1;
        vertical-align: middle;
    }

    /* Search: field and button side by side */
    body.ubie-modern p.search-box {
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 8px;
        width: 100%;
        float: none;
        position: static;
        margin: 8px 0 12px;
    }

    body.ubie-modern p.search-box input[name="s"] {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
        margin: 0;
    }

    body.ubie-modern p.search-box .button {
        flex: 0 0 auto;
        margin: 0;
    }

    body.ubie-modern .wp-list-table .row-actions {
        gap: 8px;
        padding-top: 10px;
    }

    body.ubie-modern .search-box input[name="s"],
    body.ubie-modern .search-box .button,
    body.ubie-modern .tablenav .button,
    body.ubie-modern .tablenav select {
        min-height: 44px;
    }

    body.ubie-modern .subsubsub {
        font-size: 14px;
    }

    body.ubie-modern .subsubsub a {
        display: inline-block;
        padding: 4px 0;
    }

    
    body.ubie-modern .wrap input[type="text"],
    body.ubie-modern .wrap input[type="email"],
    body.ubie-modern .wrap input[type="url"],
    body.ubie-modern .wrap input[type="password"],
    body.ubie-modern .wrap input[type="search"],
    body.ubie-modern .wrap select {
        min-height: 44px;
    }

    body.ubie-modern .wrap .button,
    body.ubie-modern .wrap .button-primary {
        min-height: 44px;
    }

    .ubie-elements-admin-hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 22px 20px;
        margin: 12px 0 16px;
        border-radius: 16px;
    }

    .ubie-elements-admin-hero h1 {
        font-size: 26px;
    }

    .ubie-element-card,
    .ubie-look-card {
        border-radius: 16px;
    }

    .ubie-element-grid {
        grid-template-columns: 1fr;
    }
}

/* Phones (1.9.19): Look & Feel switches. Icon, name and switch on one
   line, the description underneath at full width so it is easy to read. */
@media screen and (max-width: 600px) {
    .ubie-look-card {
        display: grid;
        grid-template-columns: 40px minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px 14px;
        padding: 18px;
    }

    .ubie-look-card-icon {
        grid-column: 1;
        grid-row: 1;
        width: 40px !important;
        height: 40px !important;
        line-height: 40px !important;
        font-size: 20px !important;
        border-radius: 10px;
    }

    .ubie-look-card-body {
        display: contents;
    }

    .ubie-look-card-body strong {
        grid-column: 2;
        grid-row: 1;
        margin: 0;
        line-height: 1.3;
    }

    .ubie-look-card-body span {
        grid-column: 1 / -1;
        grid-row: 2;
        font-size: 14px;
    }

    .ubie-look-switch {
        grid-column: 3;
        grid-row: 1;
    }
}


.ubie-hero-greeting {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.ubie-hero-name {
    background-image: linear-gradient(transparent 62%, rgba(34, 113, 177, 0.55) 62%, rgba(34, 113, 177, 0.55) 92%, transparent 92%);
    padding: 0 2px;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.ubie-hero-sub {
    margin-top: 10px;
    font-size: 16px;
}

@media screen and (max-width: 782px) {
    .ubie-hero-greeting {
        font-size: 32px;
    }

    .ubie-hero-sub {
        margin-top: 8px;
        font-size: 15px;
    }
}

@media screen and (max-width: 380px) {
    .ubie-hero-greeting {
        font-size: 29px;
    }
}


:root {
    --ubie-space-1: 4px;
    --ubie-space-2: 8px;
    --ubie-space-3: 12px;
    --ubie-space-4: 16px;
    --ubie-space-5: 24px;
    --ubie-space-6: 32px;
    --ubie-radius: 18px;
    --ubie-radius-sm: 12px;
    --ubie-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.05);
    --ubie-ink: #1d2327;
    --ubie-body: #50575e;
    --ubie-muted: #646970;
    --ubie-line: #e4e4e7;
    --ubie-yellow: #2271b1;
    --ubie-good: #1a7f37;
    --ubie-good-bg: #e8f5ec;
    --ubie-warn: #164b74;
    --ubie-warn-bg: #ddecf8;
    --ubie-bad: #b32d2e;
    --ubie-bad-bg: #fcebec;
    --ubie-icon: 20px;
}


body.ubie-modern #dashboard-widgets :is(#ubie_health, #ubie_todo, #ubie_quick_actions, #ubie_recent_edits, #ubie_help).postbox,
.ubie-element-card,
.ubie-look-card {
    border-radius: var(--ubie-radius);
    box-shadow: var(--ubie-shadow);
}

body.ubie-modern #dashboard-widgets :is(#ubie_health, #ubie_todo) .inside {
    padding: var(--ubie-space-4) var(--ubie-space-5) var(--ubie-space-5);
    margin: 0;
}

/* Clear type: one size per level, calmer body text */
.ubie-look-card-body span,
.ubie-health-label,
.ubie-todo-text,
.ubie-last-edit,
.ubie-empty p,
.ubie-help-tab p {
    color: var(--ubie-body);
}

/* One icon size */
:is(.ubie-look-card-icon, .ubie-tile-icon, .ubie-todo-empty, .ubie-notice-tray summary) .dashicons,
.ubie-tile-icon.dashicons {
    width: var(--ubie-icon);
    height: var(--ubie-icon);
    font-size: var(--ubie-icon);
}


@media (prefers-reduced-motion: no-preference) {
    @keyframes ubie-fade-in {
        from { opacity: 0; transform: translateY(4px); }
        to { opacity: 1; transform: none; }
    }

    body.ubie-modern #dashboard-widgets :is(#ubie_health, #ubie_todo, #ubie_quick_actions, #ubie_recent_edits) .inside,
    .ubie-notice-tray[open] .ubie-notice-tray-list,
    .ubie-toast {
        animation: ubie-fade-in 0.25s ease-out both;
    }
}


:is(.ubie-health, .ubie-todo, .ubie-empty, .ubie-help-tab, .ubie-notice-tray, .ubie-tour, .ubie-look-card, .ubie-hero, .ubie-tile) :is(a, button, summary, input):focus-visible,
.ubie-notice-tray summary:focus-visible,
.ubie-tile:focus-visible {
    outline: 2px solid var(--ubie-ink);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px var(--ubie-yellow);
}

/* ---------- Website health ---------- */
.ubie-health {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ubie-health-row {
    display: grid;
    grid-template-columns: 12px 92px minmax(0, 1fr);
    align-items: center;
    gap: var(--ubie-space-3);
    margin: 0;
    padding: var(--ubie-space-3) 0;
    border-bottom: 1px solid #f0f0f1;
    font-size: 14px;
}

.ubie-health-row:last-child {
    border-bottom: 0;
}

.ubie-health-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #c3c4c7;
}

.ubie-health-row.is-good .ubie-health-dot { background: var(--ubie-good); }
.ubie-health-row.is-warning .ubie-health-dot { background: #dba617; }
.ubie-health-row.is-critical .ubie-health-dot { background: var(--ubie-bad); }

.ubie-health-label {
    font-weight: 600;
    color: var(--ubie-ink);
}

.ubie-health-value {
    color: var(--ubie-ink);
    text-decoration: none;
}

a.ubie-health-value:hover,
a.ubie-health-value:focus {
    text-decoration: underline;
    text-decoration-color: var(--ubie-yellow);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

/* ---------- To do ---------- */
.ubie-todo {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ubie-todo-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--ubie-space-2) var(--ubie-space-4);
    margin: 0;
    padding: var(--ubie-space-3) 0;
    border-bottom: 1px solid #f0f0f1;
}

.ubie-todo-item:last-child {
    border-bottom: 0;
}

.ubie-todo-text {
    flex: 1 1 220px;
    font-size: 14px;
    line-height: 1.5;
}

.ubie-todo .ubie-todo-button {
    flex: 0 0 auto;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    border-radius: 10px;
}

.ubie-todo-empty {
    display: flex;
    align-items: center;
    gap: var(--ubie-space-2);
    margin: 0;
    padding: var(--ubie-space-2) 0;
    font-size: 14px;
}

.ubie-todo-empty .dashicons {
    color: var(--ubie-good);
}

/* ---------- Grouped client menu ---------- */
#adminmenu li.ubie-menu-group {
    height: auto;
    margin: 14px 0 2px;
    padding: 0;
}

#adminmenu li.ubie-menu-group .separator {
    display: none;
}

#adminmenu li.ubie-menu-group::after {
    display: block;
    padding: 6px 12px 4px 14px;
    color: #8c8f94;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.4;
    text-transform: uppercase;
}

.folded #adminmenu li.ubie-menu-group::after {
    content:"" !important;
    height: 1px;
    margin: 0 8px;
    padding: 0;
    background: #2c3338;
}

/* Tablets: WordPress folds the menu to icons, so the group names become thin lines */
@media screen and (min-width: 783px) and (max-width: 960px) {
    .auto-fold #adminmenu li.ubie-menu-group::after {
        content:"" !important;
        height: 1px;
        margin: 0 8px;
        padding: 0;
        background: #2c3338;
    }
}

/* ---------- "More" in the top bar ---------- */
#wpadminbar #wp-admin-bar-ubie-more > .ab-item .ab-icon::before {
    content:"\f11c";
    top: 2px;
}

#wpadminbar #wp-admin-bar-ubie-more .ab-sub-wrapper {
    min-width: 200px;
}

/* Newer WordPress lays the right-hand side out in order: keep "More" to the left of it */
#wpadminbar #wp-admin-bar-ubie-more {
    order: -1;
}

@media screen and (max-width: 782px) {
    #wpadminbar #wp-admin-bar-ubie-more {
        display: block;
    }

    #wpadminbar #wp-admin-bar-ubie-more > .ab-item {
        width: 52px;
        padding: 0;
        text-align: center;
    }

    #wpadminbar #wp-admin-bar-ubie-more > .ab-item .ab-label {
        display: none;
    }

    #wpadminbar #wp-admin-bar-ubie-more .ab-sub-wrapper li {
        display: block;
    }

    #wpadminbar #wp-admin-bar-ubie-more .ab-sub-wrapper {
        position: fixed;
        top: 46px;
        right: 8px;
        left: auto;
        min-width: 220px;
        max-width: calc(100vw - 16px);
        border-radius: 0 0 12px 12px;
    }

    #wpadminbar #wp-admin-bar-ubie-more .ab-sub-wrapper .ab-sub-wrapper {
        position: static;
        display: block !important;
        margin: 0 !important;
        box-shadow: none;
        min-width: 0;
        background: transparent !important;
    }

    #wpadminbar #wp-admin-bar-ubie-more .ab-sub-wrapper .menupop > .ab-item {
        font-weight: 600;
    }

    #wpadminbar #wp-admin-bar-ubie-more .ab-sub-wrapper .ab-sub-wrapper .ab-item {
        padding-left: 30px !important;
    }

    #wpadminbar #wp-admin-bar-ubie-more .ab-sub-wrapper .wp-admin-bar-arrow,
    #wpadminbar #wp-admin-bar-ubie-more .ab-sub-wrapper .menupop > .ab-item::before {
        display: none !important;
    }

    #wpadminbar #wp-admin-bar-ubie-more .ab-submenu .ab-item {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    #wpadminbar #wp-admin-bar-ubie-more .ab-sub-wrapper .ab-icon,
    #wpadminbar #wp-admin-bar-ubie-more .ab-sub-wrapper .ab-item::before {
        display: none !important;
    }

    #wpadminbar #wp-admin-bar-ubie-more .ab-sub-wrapper .ab-label {
        position: static;
        width: auto;
        height: auto;
        clip: auto;
        overflow: visible;
    }
}

/* ---------- Need help tab ---------- */
.ubie-help-tab-lead {
    font-size: 15px;
}

.ubie-help-tab-links {
    margin: var(--ubie-space-3) 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: var(--ubie-space-2);
}

.ubie-help-tab .ubie-help-tab-links li {
    margin: 0;
    list-style: none;
}

.ubie-help-tab-links a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid var(--ubie-line);
    border-radius: 999px;
    background: #fff;
    color: var(--ubie-ink);
    text-decoration: none;
}

.ubie-help-tab-links a:hover {
    border-color: var(--ubie-ink);
}

/* ---------- Notices tray ---------- */
.ubie-notice-tray {
    margin: var(--ubie-space-3) 0 var(--ubie-space-4);
    border: 1px solid var(--ubie-line);
    border-radius: var(--ubie-radius-sm);
    background: #fff;
    box-shadow: var(--ubie-shadow);
}

.ubie-notice-tray summary {
    display: flex;
    align-items: center;
    gap: var(--ubie-space-2);
    min-height: 44px;
    padding: 0 var(--ubie-space-4);
    color: var(--ubie-ink);
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.ubie-notice-tray summary::-webkit-details-marker {
    display: none;
}

.ubie-notice-tray summary::after {
    content:"\f347";
    margin-left: auto;
    font: normal 18px/1 dashicons;
    color: var(--ubie-muted);
    transition: transform 0.15s ease;
}

.ubie-notice-tray[open] summary::after {
    transform: rotate(180deg);
}

.ubie-notice-tray-list {
    padding: 0 var(--ubie-space-3) var(--ubie-space-2);
}

.ubie-notice-tray-list > * {
    margin: 0 0 var(--ubie-space-2) !important;
}

/* ---------- Undo toast (WordPress's own message, shown as a pop-up) ---------- */
.ubie-toast {
    position: fixed !important;
    left: 50%;
    bottom: 24px;
    z-index: 9989;
    width: min(560px, calc(100vw - 32px));
    margin: 0 !important;
    transform: translateX(-50%);
    border: 0 !important;
    border-radius: 14px;
    background: #1d2327 !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.ubie-toast p,
.ubie-toast p * {
    color: #f5f5f5 !important;
}

.ubie-toast a {
    color: #2271b1 !important;
    font-weight: 700;
}

.ubie-toast .notice-dismiss::before {
    color: #bdbdbd;
}

.ubie-toast--gone {
    opacity: 0;
    pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
    .ubie-toast {
        animation: ubie-toast-in 0.3s ease-out both;
    }

    @keyframes ubie-toast-in {
        from { opacity: 0; transform: translate(-50%, 12px); }
        to { opacity: 1; transform: translate(-50%, 0); }
    }
}

body:has(.ubie-ai-fab) .ubie-toast {
    bottom: 88px;
}

/* ---------- Page status column ---------- */
.fixed .column-ubie_status {
    width: 14em;
}

.ubie-badge {
    display: inline-block;
    margin: 0 4px 4px 0;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
    white-space: nowrap;
    background: #f0f0f1;
    color: #3c434a;
}

.ubie-badge--live { background: var(--ubie-good-bg); color: var(--ubie-good); }
.ubie-badge--scheduled { background: #eaf2fa; color: #0a4b78; }
.ubie-badge--private { background: #f0f0f1; color: #3c434a; }
.ubie-badge--stale { background: var(--ubie-warn-bg); color: var(--ubie-warn); }

.ubie-last-edit {
    display: block;
    font-size: 12px;
    line-height: 1.5;
}

/* ---------- Friendly empty lists ---------- */
.ubie-empty {
    padding: var(--ubie-space-6) var(--ubie-space-4);
    text-align: center;
}

.ubie-empty p {
    max-width: 420px;
    margin: 0 auto var(--ubie-space-4);
    font-size: 15px;
    line-height: 1.5;
}

/* ---------- Guided first login (WordPress pointers) ---------- */
.ubie-tour.wp-pointer {
    max-width: calc(100vw - 32px);
    z-index: 100000 !important; 
}

/* The Assistant button steps aside while the tour is open */
body.ubie-tour-open .ubie-ai-fab {
    visibility: hidden;
}

.ubie-tour .wp-pointer-content {
    border-radius: 14px;
    overflow: hidden;
}

.ubie-tour .wp-pointer-content h3 {
    background: #1d2327;
    border-color: #1d2327;
    color: #fff;
    font-size: 15px;
}

.ubie-tour .wp-pointer-content h3::before {
    content:"\f155"; /* friendly star, not a warning sign */
    background: #2271b1;
    color: #fff;
}

.ubie-tour .wp-pointer-content p {
    color: var(--ubie-body);
    font-size: 14px;
    line-height: 1.5;
}

.ubie-tour .ubie-tour-step {
    padding-top: 0 !important;
    color: var(--ubie-muted) !important;
    font-size: 12px !important;
}

.ubie-tour .wp-pointer-buttons {
    display: flex;
    justify-content: flex-end;
}

.ubie-tour-buttons {
    display: flex;
    align-items: center;
    gap: var(--ubie-space-3);
}

.ubie-tour .wp-pointer-arrow {
    border-bottom-color: #1d2327;
}

.ubie-tour .wp-pointer-arrow-inner {
    border-bottom-color: #1d2327;
}

/* ---------- Monthly report preview link ---------- */
.ubie-report-preview {
    margin: var(--ubie-space-3) 0 0;
    color: var(--ubie-muted);
}

/* ---------- Phones ---------- */
@media screen and (max-width: 782px) {
    .ubie-health-row {
        grid-template-columns: 12px 76px minmax(0, 1fr);
        gap: var(--ubie-space-2) var(--ubie-space-3);
    }

    .ubie-todo .ubie-todo-button {
        width: 100%;
        justify-content: center;
        min-height: 44px;
    }

    /* Settings pages: the Save bar stays in reach */
    .ubie-elements-admin-wrap .ubie-elements-actions {
        position: sticky;
        bottom: 0;
        z-index: 5;
    }
}

/* =========================================================
   1.10.3 Easy "Customise dashboard"
   WordPress's own Screen Options, just clearer. Same checkboxes,
   same saving; only the look changes.
   ========================================================= */
body.ubie-easy-customise #screen-meta-links .show-settings#show-settings-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: auto;
    padding: 6px 14px !important;
    border: 1px solid #1d2327 !important;
    border-radius: 999px !important;
    background: #1d2327 !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 600;
    line-height: 1.4 !important;
}

body.ubie-easy-customise #screen-meta-links #show-settings-link::after {
    content:"\f111" !important; /* cog, in front of the words */
    order: -1;
    position: static;
    padding: 0 !important;
    margin: 0;
    font: normal 16px/1 dashicons !important;
    color: #2271b1 !important;
}

body.ubie-easy-customise #screen-meta-links .show-settings#show-settings-link:hover,
body.ubie-easy-customise #screen-meta-links .show-settings#show-settings-link:focus {
    background: #262626 !important;
    color: #ffffff !important;
}

body.ubie-easy-customise #screen-meta-links #show-settings-link.screen-meta-active {
    background: #2271b1 !important;
    border-color: #2271b1 !important;
    color: #fff !important;
}

body.ubie-easy-customise #screen-meta-links #show-settings-link.screen-meta-active::after {
    color: #1d2327 !important;
}

body.ubie-easy-customise #screen-meta-links #contextual-help-link {
    border-radius: 999px !important;
}

body.ubie-easy-customise #screen-meta-links #screen-options-link-wrap {
    border: 0;
    background: transparent;
}

/* The list of boxes: one per line, with on/off switches */
body.ubie-easy-customise #screen-options-wrap {
    padding: 16px 20px 20px;
}

body.ubie-easy-customise #screen-options-wrap legend {
    font-size: 15px;
    font-weight: 700;
    color: #1d2327;
    padding: 0 0 4px;
}

body.ubie-easy-customise #screen-options-wrap .metabox-prefs-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 6px 16px;
    margin-top: 10px;
}

body.ubie-easy-customise #screen-options-wrap .metabox-prefs label {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin: 0 !important;
    padding: 10px 12px;
    border: 1px solid #e4e4e7;
    border-radius: 10px;
    background: #ffffff;
    font-size: 14px;
    line-height: 1.3;
    cursor: pointer;
}

body.ubie-easy-customise #screen-options-wrap .metabox-prefs label:has(input:checked) {
    border-color: #1d2327;
}

body.ubie-easy-customise #screen-options-wrap .metabox-prefs input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    flex: 0 0 auto;
    width: 38px !important;
    height: 22px !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0;
    border: 0 !important;
    border-radius: 999px !important;
    background: #d4d4d8 !important;
    box-shadow: none;
    transition: background-color 0.15s ease;
    cursor: pointer;
}

body.ubie-easy-customise #screen-options-wrap .metabox-prefs input[type="checkbox"]::before {
    content:"" !important;
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    border-radius: 50%;
    background: #ffffff !important;
    filter: none !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    transition: left 0.15s ease;
}

body.ubie-easy-customise #screen-options-wrap .metabox-prefs input[type="checkbox"]:checked {
    background: #1d2327 !important;
}

body.ubie-easy-customise #screen-options-wrap .metabox-prefs input[type="checkbox"]:checked::before {
    left: 19px;
    background: #2271b1 !important;
}

body.ubie-easy-customise #screen-options-wrap .metabox-prefs input[type="checkbox"]:focus-visible {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

/* "Hide" on each box */
body.ubie-easy-customise #dashboard-widgets .postbox-header .handle-actions {
    display: flex;
    align-items: center;
}

body.ubie-easy-customise #dashboard-widgets .postbox .ubie-box-hide {
    flex: 0 0 auto;
    width: auto !important;
    min-width: 0;
    height: 26px;
    margin: 0 4px 0 0;
    padding: 0 10px;
    border: 1px solid #e4e4e7;
    border-radius: 999px;
    background: #ffffff;
    color: #6b6b6b;
    font-size: 12px;
    font-weight: 600;
    line-height: 24px;
    cursor: pointer;
}

body.ubie-easy-customise #dashboard-widgets .postbox .ubie-box-hide:hover,
body.ubie-easy-customise #dashboard-widgets .postbox .ubie-box-hide:focus {
    border-color: #1d2327;
    color: #1d2327;
}

body.ubie-easy-customise #dashboard-widgets .postbox .ubie-box-hide:focus-visible {
    outline: 2px solid #2271b1;
    outline-offset: 1px;
}

/* "Customise dashboard" under the boxes */
.ubie-customise-bar {
    clear: both;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin: 4px 0 24px;
}

.wp-core-ui .button.ubie-customise-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 16px;
    border: 1px solid #1d2327;
    border-radius: 999px;
    background: #ffffff;
    color: #1d2327;
    font-weight: 600;
}

.wp-core-ui .button.ubie-customise-button:hover,
.wp-core-ui .button.ubie-customise-button:focus {
    background: #2271b1;
    border-color: #1d2327;
    color: #ffffff;
}

.wp-core-ui .button.ubie-customise-button .dashicons {
    margin: 0 !important;
    vertical-align: middle;
    font-size: 18px;
    line-height: 1;
    width: 18px;
    height: 18px;
}

.ubie-customise-hint {
    color: #6b6b6b;
    font-size: 13px;
}

/* Phones: keep the words on the dashboard button so it is obvious */
@media screen and (max-width: 782px) {
    body.ubie-easy-customise.ubie-modern #screen-meta-links .show-settings#show-settings-link {
        width: auto;
        height: 40px;
        padding: 0 14px !important;
        font-size: 14px !important;
        line-height: 1 !important;
    }

    body.ubie-easy-customise #screen-options-wrap {
        padding: 14px;
    }

    body.ubie-easy-customise #screen-options-wrap .metabox-prefs-container {
        grid-template-columns: 1fr;
    }

    body.ubie-easy-customise #screen-options-wrap .metabox-prefs label {
        min-height: 28px;
    }

    body.ubie-easy-customise #dashboard-widgets .postbox .ubie-box-hide {
        height: 30px;
        line-height: 28px;
        padding: 0 12px;
    }
}

/* =========================================================
   1.10.3 Useful top bar
   WordPress's own top-bar items; only spacing, icons and the
   drop-down menus are styled.
   ========================================================= */
#wpadminbar #wp-admin-bar-site-name.ubie-site-link > .ab-item {
    display: flex !important;
    align-items: center;
    gap: 8px;
}

#wpadminbar #wp-admin-bar-site-name.ubie-site-link > .ab-item::before {
    content: none !important;
    display: none !important;
}

#wpadminbar #wp-admin-bar-site-name > .ab-item img.ubie-site-icon {
    position: static !important;
    flex: 0 0 auto;
    width: 22px !important;
    height: 22px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 6px;
    object-fit: cover;
    background: #2271b1;
}

#wpadminbar #wp-admin-bar-site-name .ubie-site-label {
    font-weight: 600;
}

#wpadminbar #wp-admin-bar-site-name .ubie-site-newtab {
    width: 14px;
    height: 14px;
    font-size: 14px;
    line-height: 1;
    color: #9a9a9a;
}

#wpadminbar #wp-admin-bar-site-name .ubie-site-newtab {
    font-family: dashicons !important;
}


@media screen and (min-width: 783px) {
    body.ubie-modern #wpadminbar :is(#wp-admin-bar-site-name, #wp-admin-bar-ubie-more, #wp-admin-bar-ubie-help, #wp-admin-bar-my-account):is(.hover, :hover) > .ab-item,
    body.ubie-modern #wpadminbar :is(#wp-admin-bar-site-name, #wp-admin-bar-ubie-more, #wp-admin-bar-ubie-help, #wp-admin-bar-my-account) > .ab-item:focus,
    body.ubie-modern #wpadminbar :is(#wp-admin-bar-site-name, #wp-admin-bar-ubie-more, #wp-admin-bar-ubie-help, #wp-admin-bar-my-account):is(.hover, :hover) > .ab-item :is(.ab-label, .ab-icon, .ubie-site-label, .ubie-site-newtab, .display-name),
    body.ubie-modern #wpadminbar :is(#wp-admin-bar-site-name, #wp-admin-bar-ubie-more, #wp-admin-bar-ubie-help, #wp-admin-bar-my-account):is(.hover, :hover) > .ab-item .ab-icon::before {
        color: #1d2327 !important;
    }
}


#wpadminbar #wp-admin-bar-ubie-assistant > .ab-item {
    display: flex !important;
    align-items: center;
    gap: 6px;
    height: 24px !important;
    margin: 4px 0 4px 8px;
    padding: 0 12px !important;
    border-radius: 999px;
    background: #2271b1 !important;
    color: #fff !important;
    font-weight: 600;
    line-height: 24px !important;
}

#wpadminbar #wp-admin-bar-ubie-assistant > .ab-item .ab-icon {
    display: flex !important;
    align-items: center;
    float: none;
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    top: 0 !important;
    color: #1d2327 !important;
}

#wpadminbar #wp-admin-bar-ubie-assistant > .ab-item .ab-icon::before {
    content: none !important;
    display: none !important;
}

#wpadminbar #wp-admin-bar-ubie-assistant > .ab-item .ab-label {
    color: #1d2327 !important;
}

#wpadminbar #wp-admin-bar-ubie-assistant > .ab-item:hover,
#wpadminbar #wp-admin-bar-ubie-assistant > .ab-item:focus {
    background: #69aee3 !important;
    color: #1d2327 !important;
}

#wpadminbar #wp-admin-bar-ubie-assistant > .ab-item:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* ---------- Tidy drop-down menus (desktop and tablet) ---------- */
@media screen and (min-width: 783px) {
    body.ubie-modern #wpadminbar .quicklinks .ab-top-menu > .menupop > .ab-sub-wrapper {
        padding: 6px 0;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
        min-width: 200px;
    }

    body.ubie-modern #wpadminbar .quicklinks .ab-top-menu > .menupop > .ab-sub-wrapper .ab-submenu > li > .ab-item {
        height: auto;
        min-height: 34px;
        padding: 0 18px;
        line-height: 34px;
        font-size: 13px;
    }

    body.ubie-modern #wpadminbar .quicklinks .ab-top-menu > .menupop > .ab-sub-wrapper .ab-submenu > li > .ab-item:hover,
    body.ubie-modern #wpadminbar .quicklinks .ab-top-menu > .menupop > .ab-sub-wrapper .ab-submenu > li > .ab-item:focus {
        background: #1c1c1c !important;
        color: #72aee6 !important;
    }

    /* "More": one neat column. Items that have their own list (such as
       "Add new") show it underneath, indented, instead of flying out. */
    body.ubie-modern #wpadminbar #wp-admin-bar-ubie-more .ab-sub-wrapper {
        min-width: 230px;
        right: 0;
        left: auto;
    }

    body.ubie-modern #wpadminbar #wp-admin-bar-ubie-more .ab-sub-wrapper .menupop > .ab-sub-wrapper {
        position: static !important;
        display: block !important;
        margin: 0 !important;
        padding: 0 0 4px;
        border-radius: 0;
        box-shadow: none !important;
        min-width: 0;
        background: transparent !important;
    }

    body.ubie-modern #wpadminbar #wp-admin-bar-ubie-more .ab-sub-wrapper .menupop > .ab-item {
        font-weight: 600;
        color: #ffffff;
    }

    body.ubie-modern #wpadminbar #wp-admin-bar-ubie-more .ab-sub-wrapper .menupop .ab-sub-wrapper .ab-item {
        padding-left: 30px !important;
        color: #cfcfcf;
    }

    body.ubie-modern #wpadminbar #wp-admin-bar-ubie-more .ab-sub-wrapper .menupop > .ab-item::before,
    body.ubie-modern #wpadminbar #wp-admin-bar-ubie-more .ab-sub-wrapper .wp-admin-bar-arrow {
        display: none !important;
    }

    body.ubie-modern #wpadminbar #wp-admin-bar-ubie-more .ab-sub-wrapper .ab-submenu > li + li {
        border-top: 1px solid #1f1f1f;
    }

    /* Your account menu */
    body.ubie-modern #wpadminbar #wp-admin-bar-user-info .avatar {
        border-radius: 50%;
    }

    body.ubie-modern #wpadminbar #wp-admin-bar-my-account > .ab-sub-wrapper {
        min-width: 240px;
    }
}

/* ---------- Phones ---------- */
@media screen and (max-width: 782px) {
    body.ubie-modern #wpadminbar #wp-admin-bar-site-name.ubie-site-link > .ab-item {
        justify-content: center;
        width: 52px !important;
        padding: 0 !important;
        text-indent: 0 !important;
        overflow: hidden;
    }

    body.ubie-modern #wpadminbar #wp-admin-bar-site-name > .ab-item img.ubie-site-icon {
        width: 28px !important;
        height: 28px !important;
        border-radius: 8px;
    }

    #wpadminbar #wp-admin-bar-site-name .ubie-site-label,
    #wpadminbar #wp-admin-bar-site-name .ubie-site-newtab {
        display: none !important;
    }

    #wpadminbar #wp-admin-bar-ubie-assistant {
        display: block !important;
    }

    #wpadminbar #wp-admin-bar-ubie-assistant > .ab-item {
        justify-content: center;
        width: 36px !important;
        height: 36px !important;
        margin: 5px 8px !important;
        padding: 0 !important;
        border-radius: 50%;
        text-indent: 0 !important;
        overflow: hidden;
    }

    #wpadminbar #wp-admin-bar-ubie-assistant > .ab-item .ab-icon,
    #wpadminbar #wp-admin-bar-ubie-assistant > .ab-item .ab-icon svg {
        width: 20px !important;
        height: 20px !important;
    }

    #wpadminbar #wp-admin-bar-ubie-assistant > .ab-item .ab-label {
        display: none !important;
    }
}

/* Right-hand side in a fixed order on every WordPress version:
   anything else, then Need help?, More, and your account last. */
body.ubie-modern #wpadminbar #wp-admin-bar-top-secondary {
    display: flex;
    align-items: stretch;
}

body.ubie-modern #wpadminbar #wp-admin-bar-top-secondary > li {
    float: none;
}

body.ubie-modern #wpadminbar #wp-admin-bar-top-secondary > #wp-admin-bar-ubie-help {
    order: 10;
}

body.ubie-modern #wpadminbar #wp-admin-bar-top-secondary > #wp-admin-bar-ubie-more {
    order: 20;
}

body.ubie-modern #wpadminbar #wp-admin-bar-top-secondary > #wp-admin-bar-my-account {
    order: 30;
}

/* =========================================================
   1.10.3 Calm dashboard on phones and tablets
   Secondary boxes start as one tidy line and open with a tap.
   Desktop is unchanged.
   ========================================================= */
@media screen and (max-width: 1024px) {
    body.ubie-calm-dashboard #dashboard-widgets .postbox.ubie-folded .inside {
        display: none;
    }

    body.ubie-calm-dashboard #dashboard-widgets .postbox.ubie-folded {
        margin-bottom: 10px;
    }

    body.ubie-calm-dashboard #dashboard-widgets .postbox.ubie-folded .postbox-header {
        border-bottom: 0;
        cursor: pointer;
        min-height: 52px;
    }

    body.ubie-calm-dashboard #dashboard-widgets .postbox.ubie-folded .postbox-header h2 {
        font-size: 15px;
    }

    /* While folded, only "Open" shows; the other box buttons come back once it is open. */
    body.ubie-calm-dashboard #dashboard-widgets .postbox.ubie-folded .handle-actions > :not(.ubie-unfold) {
        display: none !important;
    }

    body.ubie-calm-dashboard #dashboard-widgets .postbox .ubie-unfold {
        display: inline-flex;
        flex: 0 0 auto;
        width: auto !important;
        min-width: 0;
        align-items: center;
        gap: 2px;
        height: 32px;
        margin: 0 8px 0 0;
        padding: 0 8px 0 12px;
        border: 1px solid #e4e4e7;
        border-radius: 999px;
        background: #ffffff;
        color: #1d2327;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
    }

    body.ubie-calm-dashboard #dashboard-widgets .postbox .ubie-unfold .dashicons {
        font-size: 16px;
        width: 16px;
        height: 16px;
        line-height: 1;
    }

    body.ubie-calm-dashboard #dashboard-widgets .postbox .ubie-unfold:focus-visible {
        outline: 2px solid #2271b1;
        outline-offset: 1px;
    }
}

@media screen and (min-width: 1025px) {
    body.ubie-calm-dashboard .ubie-unfold {
        display: none !important;
    }
}

@media screen and (max-width: 782px) {
    #wpadminbar #wp-admin-bar-ubie-more .ab-submenu .ab-item {
        min-height: 44px;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        line-height: 1.3 !important;
    }
}


body.ubie-modern #dashboard-widgets :is(.uwcb-status__icon, .ubie-smtp-status__icon) {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 32px !important;
    height: 32px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: #8c8f94 !important;
    color: #ffffff !important;
    font: 700 16px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    box-shadow: none !important;
}

body.ubie-modern #dashboard-widgets .uwcb-status__icon.is-ok,
body.ubie-modern #dashboard-widgets .ubie-smtp-status--ok .ubie-smtp-status__icon {
    background: #1a7f37 !important;
}

body.ubie-modern #dashboard-widgets .uwcb-status__icon.is-warn {
    background: #dba617 !important;
    color: #090909 !important;
}

body.ubie-modern #dashboard-widgets .ubie-smtp-status--error .ubie-smtp-status__icon {
    background: #d63638 !important;
}

body.ubie-modern #dashboard-widgets .ubie-todo-empty .dashicons {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1a7f37;
    color: #ffffff;
    font-size: 20px;
}

/* Website health: the same round icons, a little smaller for a list */
body.ubie-modern .ubie-health-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: #ffffff;
    font: 700 11px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body.ubie-modern .ubie-health-dot::after {
    content:"\2013";
}

body.ubie-modern .ubie-health-row.is-good .ubie-health-dot::after {
    content:"\2713";
}

body.ubie-modern .ubie-health-row:is(.is-warning, .is-critical) .ubie-health-dot::after {
    content:"!";
}

body.ubie-modern .ubie-health-row.is-warning .ubie-health-dot {
    color: #090909;
}

/* Phones: the move up/down arrows crowd box titles; clients can still drag
   boxes or use Customise dashboard. ubie-admin keeps them. */
@media screen and (max-width: 782px) {
    body.ubie-modern.ubie-calm-dashboard.ubie-client-view #dashboard-widgets .postbox .handle-actions :is(.handle-order-higher, .handle-order-lower) {
        display: none !important;
    }
}

/* =========================================================
   1.10.4 Tidy lists (Pages, Blog Posts, Images, Comments...)
   WordPress's own tables and buttons; spacing and phone layout only.
   ========================================================= */

/* Title row: heading and its "Add ..." button sit on one centred line */
body.ubie-tidy-lists .wrap > h1.wp-heading-inline {
    margin-right: 10px;
    vertical-align: middle;
}

body.ubie-tidy-lists .wrap > .page-title-action {
    vertical-align: middle;
    top: 0;
    margin-left: 0;
}

/* Columns that read on one line on laptops and desktops */
@media screen and (min-width: 1100px) {
    body.ubie-tidy-lists .wp-list-table.fixed .column-date {
        width: 11.5em;
    }

    body.ubie-tidy-lists .wp-list-table.fixed .column-ubie_status {
        width: 12em;
    }

    body.ubie-tidy-lists .wp-list-table.fixed :is(.column-author, .column-categories, .column-tags) {
        width: 9em;
    }
}

body.ubie-tidy-lists .wp-list-table td.column-date {
    color: #50575e;
}

/* Media grid: "Search media" sits beside its box, not on top of it */
body.ubie-tidy-lists .media-toolbar-primary.search-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

body.ubie-tidy-lists .media-toolbar-primary.search-form .media-search-input-label {
    position: static;
    margin: 0;
    white-space: nowrap;
}

body.ubie-tidy-lists .media-toolbar-primary.search-form .search {
    margin: 0;
}

/* Phones: one calm line per row. Details and the Edit / View / Trash
   buttons appear when the row's round arrow is tapped (WordPress's own
   "show more details" button). */
@media screen and (max-width: 782px) {
    body.ubie-tidy-lists .wp-list-table tbody tr:not(.is-expanded):not(.inline-edit-row) .row-actions {
        display: none !important;
    }

    body.ubie-tidy-lists .wp-list-table tbody tr.is-expanded .row-actions {
        display: flex !important;
    }

    body.ubie-tidy-lists .wp-list-table .toggle-row {
        top: 10px !important;
        right: 8px;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: #f2f2f2;
    }

    body.ubie-tidy-lists .wp-list-table .toggle-row::before {
        top: 6px;
        left: 8px;
        color: #1d2327;
    }

    body.ubie-tidy-lists .wp-list-table tr.is-expanded .toggle-row {
        background: #1d2327;
    }

    body.ubie-tidy-lists .wp-list-table tr.is-expanded .toggle-row::before {
        color: #2271b1;
    }

    body.ubie-tidy-lists .wp-list-table tbody td.column-primary {
        padding-top: 14px;
        padding-bottom: 14px;
    }

    /* Status badge stays in view under the title */
    body.ubie-tidy-lists .wp-list-table tbody tr:not(.is-expanded) td.column-ubie_status {
        display: block !important;
        padding: 0 50px 12px 52px !important;
    }

    body.ubie-tidy-lists .wp-list-table tbody tr:not(.is-expanded) td.column-ubie_status::before {
        display: none;
    }

    body.ubie-tidy-lists .wp-list-table tbody tr:not(.is-expanded) td.column-ubie_status .ubie-status-meta {
        display: none;
    }

    body.ubie-modern #wpbody-content #screen-meta {
        margin: 14px 0 4px !important;
    }
}

/* =========================================================
   1.10.4 Breathing room under the top bar
   "Customise dashboard", "View options" and "Help" become rounded
   buttons with space above them instead of tabs hanging off the bar.
   ========================================================= */
@media screen and (min-width: 783px) {
    body.ubie-modern #screen-meta-links {
        margin: 12px 20px 0 0;
        display: flex;
        justify-content: flex-end;
        gap: 8px;
        float: right;
        position: relative;
        z-index: 2;
    }

    body.ubie-modern #screen-meta-links .screen-meta-toggle {
        float: none;
        position: static;
        margin: 0 !important;
        height: auto;
        border: 0;
        background: transparent;
    }

    body.ubie-modern #screen-meta-links .show-settings {
        height: 34px;
        padding: 0 14px !important;
        border: 1px solid #dcdcde !important;
        border-radius: 999px !important;
        background: #ffffff;
        line-height: 32px !important;
        font-size: 13px !important;
    }

    body.ubie-modern #screen-meta-links .show-settings::after {
        top: 0;
    }

    body.ubie-modern #screen-meta {
        margin: 12px 20px 0 0;
        border: 1px solid #e4e4e7;
        border-radius: 14px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    }

    body.ubie-modern #screen-meta + #screen-meta-links {
        margin-top: 10px;
    }

    body.ubie-easy-customise #screen-meta-links .show-settings#show-settings-link {
        height: 34px;
        padding: 0 16px !important;
        line-height: 1 !important;
    }
}


#wpadminbar :is(#wp-admin-bar-ubie-site-status, #wp-admin-bar-ubie-lp-status) > .ab-item {
    display: flex !important;
    align-items: center;
    gap: 6px;
    height: 24px !important;
    margin: 4px 0 4px 8px;
    padding: 0 12px !important;
    border-radius: 999px;
    background: #d63638 !important;
    color: #ffffff !important;
    font-weight: 600;
    line-height: 24px !important;
}

#wpadminbar :is(#wp-admin-bar-ubie-site-status, #wp-admin-bar-ubie-lp-status) > .ab-item::before {
    content:"" !important;
    display: block !important;
    flex: 0 0 auto;
    width: 8px !important;
    height: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 50%;
    background: #ffffff !important;
    top: 0 !important;
}

#wpadminbar #wp-admin-bar-ubie-site-status.ubie-status-coming-soon > .ab-item {
    background: #2271b1 !important;
    color: #fff !important;
}

#wpadminbar #wp-admin-bar-ubie-site-status.ubie-status-coming-soon > .ab-item::before {
    background: #1d2327 !important;
}

#wpadminbar :is(#wp-admin-bar-ubie-site-status, #wp-admin-bar-ubie-lp-status) > .ab-item :is(.ab-label, .ab-icon, span) {
    color: inherit !important;
}

#wpadminbar :is(#wp-admin-bar-ubie-site-status, #wp-admin-bar-ubie-lp-status) > .ab-item:hover,
#wpadminbar :is(#wp-admin-bar-ubie-site-status, #wp-admin-bar-ubie-lp-status) > .ab-item:focus {
    filter: brightness(1.08);
}

/* Phones and small tablets: a slim full-width strip just under the top bar,
   so nobody can miss it, without crowding the icons. */
@media screen and (max-width: 782px) {
    #wpadminbar :is(#wp-admin-bar-ubie-site-status, #wp-admin-bar-ubie-lp-status) {
        display: block !important;
        position: absolute !important;
        top: 46px;
        left: 0;
        right: 0;
        width: auto;
        margin: 0;
    }

    #wpadminbar :is(#wp-admin-bar-ubie-site-status, #wp-admin-bar-ubie-lp-status) > .ab-item {
        justify-content: center;
        box-sizing: border-box;
        width: 100% !important;
        height: 30px !important;
        margin: 0 !important;
        padding: 0 16px !important;
        border-radius: 0;
        font-size: 14px !important;
        line-height: 30px !important;
        text-indent: 0 !important;
        white-space: nowrap;
    }

    #wpadminbar :is(#wp-admin-bar-ubie-site-status, #wp-admin-bar-ubie-lp-status) .ab-label,
    #wpadminbar :is(#wp-admin-bar-ubie-site-status, #wp-admin-bar-ubie-lp-status) .ubie-status-long {
        display: inline !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
        clip: auto !important;
        clip-path: none !important;
        line-height: 30px !important;
        overflow: visible !important;
    }

    body:has(#wp-admin-bar-ubie-site-status, #wp-admin-bar-ubie-lp-status) #wpbody,
    body:has(#wp-admin-bar-ubie-site-status, #wp-admin-bar-ubie-lp-status) #adminmenuwrap {
        padding-top: 30px;
    }

    body:has(#wp-admin-bar-ubie-site-status, #wp-admin-bar-ubie-lp-status) #wpwrap.wp-responsive-open #adminmenu {
        margin-top: 42px !important;
    }
}

/* 1.10.6: below 600px WordPress itself pads #wpbody by the 46px top bar,
   so the strip's 30px is added on top of that, not instead of it. */
@media screen and (max-width: 600px) {
    body:has(#wp-admin-bar-ubie-site-status, #wp-admin-bar-ubie-lp-status) #wpbody {
        padding-top: 76px;
    }
}

/* 1.10.4: tour bubbles on phones share the page's 16px gutters */
@media screen and (max-width: 599px) {
    .ubie-tour.wp-pointer {
        left: 16px !important;
        width: calc(100vw - 32px) !important;
        max-width: calc(100vw - 32px) !important;
        box-sizing: border-box;
    }
}


#wpadminbar #wp-admin-bar-ubie-lp-status > .ab-item {
    background: #2271b1 !important;
    color: #fff !important;
}

#wpadminbar #wp-admin-bar-ubie-lp-status > .ab-item::before {
    content: none !important;
    display: none !important;
}

#wpadminbar #wp-admin-bar-ubie-lp-status .ubie-lp-ab-dot {
    display: inline-block !important;
    flex: 0 0 auto;
    width: 8px !important;
    height: 8px !important;
    border-radius: 50%;
    background: #1d2327 !important;
    box-shadow: none !important;
}

/* 1.10.5: tablets and small laptops keep the top bar on one line. The
   right-hand items show just their icons (names are still read out and
   shown on hover). */
@media screen and (min-width: 783px) and (max-width: 1100px) {
    body.ubie-modern #wpadminbar :is(#wp-admin-bar-ubie-help, #wp-admin-bar-ubie-more) > .ab-item .ab-label {
        position: absolute !important;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    body.ubie-modern #wpadminbar #wp-admin-bar-my-account > .ab-item {
        font-size: 0 !important;
    }

    body.ubie-modern #wpadminbar #wp-admin-bar-my-account > .ab-item .display-name {
        position: absolute !important;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    body.ubie-modern #wpadminbar #wp-admin-bar-my-account > .ab-item img.avatar {
        margin-left: 0 !important;
        float: none;
        vertical-align: middle;
    }
}
