/* ==========================================================================
   Muted text is #64748b, not #94a3b8
   --------------------------------------------------------------------------
   Measured on white: #94a3b8 is 2.56:1, #8a97ad 2.95, #b6c0ce 1.84 and
   #cbd5e1 1.48. WCAG AA asks 4.5 for normal text, so every one of those was
   a secondary label nobody with less than perfect sight could read --
   column headings, counts, dates, "Still missing", a channel handle.

   #64748b measures 4.76 and passes. Hierarchy comes from size and weight
   instead of from washing the colour out, which is where it should have
   come from anyway.

   Found by extending the contrast probe from :hover to the resting state.
   None of these four is used as a background or a border in this file, so
   the change is colour and nothing else.
   ========================================================================== */

/* ============================================================
   WizBrand — Orgs Dashboard Shell UI
   Fresh navy theme for the dashboard sidebar (Step 1).
   Reskins the existing .mdc-drawer markup WITHOUT changing
   any routes / accordion JS hooks / active-state classes.
   ============================================================ */

:root {
    --wz-navy-1: #0b2350;
    --wz-navy-2: #0a1c40;
    --wz-blue: #1d4ed8;
    --wz-blue-soft: rgba(59, 130, 246, .18);
    --wz-side-line: rgba(255, 255, 255, .08);
    --wz-side-text: #c7d3ea;
    --wz-side-dim: #8ea2c8;
    --wz-side-icon: #7f9bd1;
}

/* ---------- Sidebar shell ---------- */
#sidebar.mdc-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    margin-top: 0;
    height: auto;          /* top + bottom span exactly the viewport, in ANY layout */
    display: flex;
    flex-direction: column;
    width: 260px;
    z-index: 7;
    background: linear-gradient(180deg, var(--wz-navy-1) 0%, var(--wz-navy-2) 100%) !important;
    border-right: 1px solid rgba(255, 255, 255, .06);
    box-shadow: 4px 0 26px rgba(8, 17, 38, .22);
    color: var(--wz-side-text);
}

/* ---------- Header: brand + breadcrumb + role pill ---------- */
#sidebar .mdc-drawer__header {
    flex: 0 0 auto;
    padding: 16px 16px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.wz-side-top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.wz-side-brand {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.wz-side-logo {
    height: 30px;
    width: auto;
    max-width: 110px;
    object-fit: contain;
}

.wz-side-crumb {
    min-width: 0;
}

#sidebar .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: .82rem;
}

#sidebar .breadcrumb-item a {
    color: var(--wz-side-dim);
    text-decoration: none;
}

#sidebar .breadcrumb-item a:hover {
    color: #fff;
}

#sidebar .breadcrumb-item.active {
    color: #fff;
    font-weight: 600;
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#sidebar .breadcrumb-item + .breadcrumb-item::before {
    color: var(--wz-side-dim);
}

.wz-role-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 0;
    padding: 4px 11px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: #dbe6ff;
    background: var(--wz-blue-soft);
    border: 1px solid rgba(99, 145, 255, .35);
    border-radius: 999px;
}

.wz-role-pill i {
    font-size: .8rem;
    color: #7fb0ff;
}

/* ---------- Menu wrapper ---------- */
/* The WHOLE content (menu + Logout + WizBrand card) scrolls together as ONE
   area. Header stays fixed on top; everything below scrolls — so no accordion
   can overlap the Logout, and on short screens nothing is cut off (you can
   always scroll down to the card). */
#sidebar .mdc-drawer__content {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .18) transparent;
}

/* Direct children must NOT compress: when an accordion (e.g. Task Manager)
   expands and the content gets taller than the drawer, the container scrolls
   instead of shrinking the menu — otherwise the expanded items would overlap
   the bottom-pinned Logout + WizBrand card. */
#sidebar .mdc-drawer__content > * {
    flex-shrink: 0;
}

#sidebar .mdc-drawer__content::-webkit-scrollbar {
    width: 6px;
}

#sidebar .mdc-drawer__content::-webkit-scrollbar-button {
    display: none;
    height: 0;
    width: 0;
}

#sidebar .mdc-drawer__content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .16);
    border-radius: 4px;
}

#sidebar .mdc-drawer__content::-webkit-scrollbar-track {
    background: transparent;
}

#sidebar .mdc-list-group {
    min-height: 0;
}

#sidebar .scrollable-menu,
#sidebar .mdc-drawer-menu {
    max-height: none;
    overflow: visible;
    padding: 6px 10px 10px;
}

/* ---------- Reset the boxy mdc list items ---------- */
#sidebar .mdc-list-item,
#sidebar .mdc-drawer-item {
    display: block;
    background: transparent !important;
    border: 0;
    padding: 0;
    margin: 2px 0;
    min-height: 0;
}

#sidebar .accordion {
    margin: 2px 0;
}

/* ---------- Links (top-level + sub-items) ---------- */
#sidebar .mdc-drawer-link {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    padding: 9px 12px;
    font-size: .9rem;
    font-weight: 500;
    color: var(--wz-side-text);
    text-decoration: none;
    border-radius: 10px;
    border: 0;
    background: transparent;
    transition: background .16s, color .16s;
}

#sidebar .mdc-drawer-link:hover,
#sidebar .mdc-drawer-link:focus {
    background: rgba(255, 255, 255, .07);
    color: #fff;
    text-decoration: none;
}

/* accordion toggle buttons reuse .btn-link.mdc-drawer-link */
#sidebar .btn-link.mdc-drawer-link {
    text-align: left;
    box-shadow: none;
    cursor: pointer;
}

#sidebar .btn-link.mdc-drawer-link:focus {
    text-decoration: none;
    box-shadow: none;
}

#sidebar .btn-link[aria-expanded="true"] {
    background: rgba(255, 255, 255, .05);
    color: #fff;
    font-weight: 600;
}

/* ---------- Icons ---------- */
#sidebar .mdc-drawer-item-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    color: var(--wz-side-icon);
    flex: 0 0 auto;
}

#sidebar .mdc-drawer-link:hover .mdc-drawer-item-icon,
#sidebar .btn-link[aria-expanded="true"] .mdc-drawer-item-icon {
    color: #9ec1ff;
}

/* chevron pushed to the right, rotates when open */
#sidebar .mdc-drawer-arrow {
    margin-left: auto;
    font-size: 1.1rem;
    color: var(--wz-side-icon);
    transition: transform .3s ease;
}

#sidebar .collapse.show .mdc-drawer-arrow,
#sidebar [aria-expanded="true"] .mdc-drawer-arrow {
    transform: rotate(90deg);
}

/* ---------- Submenu (collapsed groups) ---------- */
#sidebar .collapse .mdc-drawer-item .mdc-drawer-link,
#sidebar .collapse .mdc-drawer-link {
    padding: 8px 12px 8px 44px;
    font-size: .86rem;
    color: var(--wz-side-dim);
}

#sidebar .collapse .mdc-drawer-link:hover {
    color: #fff;
}

/* nested audio submenu deeper indent */
#sidebar #audioManageSubmenu .mdc-drawer-link {
    padding-left: 58px;
}

/* ---------- Active state ---------- */
#sidebar .mdc-drawer-item.active,
#sidebar .mdc-drawer-item.active > .mdc-drawer-link,
#sidebar .mdc-drawer-link.active {
    background: linear-gradient(90deg, rgba(59, 130, 246, .28), rgba(59, 130, 246, .12)) !important;
    color: #fff !important;
    font-weight: 600;
}

#sidebar .mdc-drawer-item.active {
    border-radius: 10px;
    box-shadow: inset 3px 0 0 #3b82f6;
}

#sidebar .mdc-drawer-item.active .mdc-drawer-item-icon {
    color: #9ec1ff;
}

/* ---------- Logout ---------- */
/* margin-top:auto pins the Logout + WizBrand card group to the bottom of the
   drawer so short menus (advertiser / influencer) don't leave a dark gap below
   the card; on long menus it collapses to 0 and everything scrolls normally. */
#sidebar .wz-logout {
    margin: 6px 12px 4px;
    margin-top: auto;
}

#sidebar .wz-logout a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 14px;
    color: #ffd9d9 !important;
    font-weight: 600;
    font-size: .9rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 120, 120, .25);
    background: rgba(255, 80, 80, .08);
    text-decoration: none;
    transition: background .16s, color .16s;
}

#sidebar .wz-logout a:hover {
    background: rgba(255, 80, 80, .18);
    color: #fff !important;
}

#sidebar .wz-logout a i {
    font-size: 1rem;
}

/* ---------- Premium card ---------- */
#sidebar .premium-card {
    margin: 8px 12px 16px;
    padding: 14px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 14px;
    box-shadow: none;
}

#sidebar .premium-card .icon-card {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    color: #fff;
    box-shadow: none;
}

#sidebar .premium-card .icon-card i {
    font-size: 1.1rem;
}

#sidebar .premium-card p {
    color: var(--wz-side-text);
}

#sidebar .premium-card .mdc-button--white {
    display: inline-block;
    margin-top: 4px;
    padding: 7px 16px;
    background: #fff;
    color: #0b2350 !important;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
}

#sidebar .premium-card .mdc-button--white:hover {
    background: #e8efff;
}

/* ---------- Sidebar close button (mobile) ---------- */
#sidebar .sidebar-close-btn {
    display: none;
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: 0;
    cursor: pointer;
}

#sidebar .sidebar-close-btn i {
    font-size: 22px;
    color: #fff;
}

/* ---------- Responsive ---------- */
@media (max-width: 999px) {
    #sidebar.mdc-drawer {
        left: -300px;
        top: 0;
        margin-top: 0;
        width: 280px;
        height: 100%;
        z-index: 1200;
        transition: left .3s ease;
    }

    #sidebar.mdc-drawer.mdc-drawer--open,
    #sidebar.mdc-drawer.active {
        left: 0;
    }

    #sidebar .sidebar-close-btn {
        display: block;
    }
}

/* Backend DataTable layout (#main-wrapper) — offset its .page-wrapper content
   for the fixed 260px navy sidebar + fixed navy topbar, and give it the same
   light themed surface as the dashboard so every page matches. */
#main-wrapper {
    background: #f4f7fc;
}

/* Sticky-footer layout: content fills, footer pinned to the viewport bottom. */
#main-wrapper .page-wrapper {
    margin-left: 260px;
    padding-top: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: transparent;
    transition: margin-left .3s ease;
}

#main-wrapper .page-wrapper > .container-fluid {
    flex: 1 0 auto;
}

/* Hide the legacy top-gap <br><br> spacers used across all backend pages */
#main-wrapper .page-wrapper > br,
#main-wrapper .container-fluid > br {
    display: none;
}

/* Empty-state shown by DataTables when there are no rows */
#main-wrapper .wz-empty {
    padding: 44px 20px;
    text-align: center;
    color: #64748b;
}

#main-wrapper .wz-empty .wz-empty__ic {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #eef4ff;
    color: #1d4ed8;
    font-size: 1.8rem;
}

#main-wrapper .wz-empty h5 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0b2350;
    margin: 0 0 6px;
}

#main-wrapper .wz-empty p {
    font-size: .88rem;
    color: #64748b;
    margin: 0;
}

#main-wrapper table.dataTable td.dataTables_empty {
    padding: 0 !important;
}

@media (max-width: 999px) {
    #main-wrapper .page-wrapper {
        margin-left: 0 !important;
    }
    /* legacy page <style> blocks force a white page-wrapper + odd margins on
       mobile — keep the themed surface and full width so content never sits in
       a narrow left column with empty space beside it. */
    #main-wrapper .page-wrapper > .container-fluid { width: 100%; max-width: 100%; }
    #main-wrapper { overflow-x: hidden; }
}

/* ---- Page header (Projects / etc.) ---- */
/* footer flows right after the content (no sticky gap); inside the offset area */
#main-wrapper .page-wrapper > .wz-footer {
    flex: 0 0 auto;
    margin-left: 0;
}

#main-wrapper .wz-pagewrap {
    padding: 4px 26px 18px;
}

.wz-pagehead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.wz-pagehead__title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0b2350;
    margin: 0;
}

.wz-pagehead__sub {
    margin: 4px 0 0;
    font-size: .88rem;
    color: #64748b;
}

.wz-pagehead__sub strong {
    color: #1d4ed8;
}

/* ---- Cards ---- */
#main-wrapper .card,
#main-wrapper .wz-card {
    background: #fff;
    border: 1px solid #e6ecf5;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(15, 27, 52, .05);
    margin-bottom: 18px;
}

#main-wrapper .card-body {
    padding: 22px;
}

/* ---- Tables (DataTables) ---- */
#main-wrapper table.table {
    width: 100% !important;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 0;
}

#main-wrapper table.table thead th {
    background: #f4f7fc;
    color: #0b2350;
    font-size: .74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    border: 0;
    border-bottom: 1px solid #e6ecf5;
    padding: 12px 14px;
    white-space: nowrap;
}

#main-wrapper table.table tbody td {
    padding: 12px 14px;
    font-size: .88rem;
    color: #334155;
    border: 0;
    border-bottom: 1px solid #f2f5fa;
    vertical-align: middle;
}

#main-wrapper table.table tbody tr:hover td {
    background: #f9fbff;
}

/* ---- DataTable controls ---- */
#main-wrapper .dataTables_wrapper .dataTables_length select,
#main-wrapper .dataTables_wrapper .dataTables_filter input {
    border: 1px solid #e6ecf5;
    border-radius: 8px;
    padding: 6px 10px;
    outline: none;
}

#main-wrapper .dataTables_wrapper .dataTables_filter input:focus,
#main-wrapper .dataTables_wrapper .dataTables_length select:focus {
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, .12);
}

#main-wrapper .dataTables_wrapper .dataTables_info {
    color: #64748b;
    font-size: .82rem;
    padding-top: 14px;
}

#main-wrapper .dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 8px !important;
    border: 1px solid #e6ecf5 !important;
    padding: 5px 12px !important;
    margin-left: 4px;
    color: #334155 !important;
    background: #fff !important;
}

#main-wrapper .dataTables_wrapper .dataTables_paginate .paginate_button.current,
#main-wrapper .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    color: #fff !important;
}

/* ============================================================
   ENTERPRISE BUTTON SYSTEM  (project-wide)
   One consistent, professional look for every Bootstrap button
   variant. Scoped to #main-wrapper (backend) and .wz-dash
   (dashboard) so it upgrades all existing .btn markup at once
   without touching individual blades.
   ============================================================ */
#main-wrapper .btn,
.wz-dash .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45em;
    border-radius: 8px;
    font-weight: 600;
    font-size: .875rem;
    line-height: 1.3;
    letter-spacing: .01em;
    padding: .5rem 1.05rem;
    border: 1px solid transparent;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
    transition: background-color .15s ease, border-color .15s ease,
                color .15s ease, box-shadow .15s ease, transform .1s ease;
    white-space: nowrap;
}
#main-wrapper .btn:hover,
.wz-dash .btn:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(15, 23, 42, .12); }
#main-wrapper .btn:active,
.wz-dash .btn:active { transform: translateY(0); box-shadow: 0 1px 2px rgba(15, 23, 42, .1); }
#main-wrapper .btn:focus,
#main-wrapper .btn:focus-visible,
.wz-dash .btn:focus,
.wz-dash .btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(29, 78, 216, .25); }
#main-wrapper .btn.disabled,
#main-wrapper .btn:disabled,
.wz-dash .btn.disabled,
.wz-dash .btn:disabled { opacity: .6; box-shadow: none; transform: none; cursor: not-allowed; }
#main-wrapper .btn > i,
.wz-dash .btn > i { font-size: .9em; line-height: 1; }

/* icon-only / round action buttons stay square-ish */
#main-wrapper .btn.btn-circle,
.wz-dash .btn.btn-circle { border-radius: 999px; padding: .45rem; }

/* ---- Solid variants ---- */
#main-wrapper .btn-primary,   .wz-dash .btn-primary   { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
#main-wrapper .btn-primary:hover, .wz-dash .btn-primary:hover { background: #1741b8; border-color: #1741b8; color: #fff; }

#main-wrapper .btn-success,   .wz-dash .btn-success   { background: #16a34a; border-color: #16a34a; color: #fff; }
#main-wrapper .btn-success:hover, .wz-dash .btn-success:hover { background: #128a3e; border-color: #128a3e; color: #fff; }

#main-wrapper .btn-info,      .wz-dash .btn-info      { background: #0d8a8a; border-color: #0d8a8a; color: #fff; }
#main-wrapper .btn-info:hover,    .wz-dash .btn-info:hover    { background: #0b7373; border-color: #0b7373; color: #fff; }

#main-wrapper .btn-warning,   .wz-dash .btn-warning   { background: #f59e0b; border-color: #f59e0b; color: #3b2a06; }
#main-wrapper .btn-warning:hover, .wz-dash .btn-warning:hover { background: #d97706; border-color: #d97706; color: #fff; }

/* White on #ef4444 measures 3.76:1, which clears AA only for large text --
   and "Yes, Delete" is not large. Found by sweeping every modal on the
   project screen and reading the computed colours. #dc2626 measures 4.83 and
   is the shade this file already uses for danger text. */
#main-wrapper .btn-danger,    .wz-dash .btn-danger    { background: #dc2626; border-color: #dc2626; color: #fff; }
#main-wrapper .btn-danger:hover,  .wz-dash .btn-danger:hover  { background: #b91c1c; border-color: #b91c1c; color: #fff; }

#main-wrapper .btn-secondary, .wz-dash .btn-secondary { background: #64748b; border-color: #64748b; color: #fff; }
#main-wrapper .btn-secondary:hover, .wz-dash .btn-secondary:hover { background: #475569; border-color: #475569; color: #fff; }

#main-wrapper .btn-dark,      .wz-dash .btn-dark      { background: #1e293b; border-color: #1e293b; color: #fff; }
#main-wrapper .btn-dark:hover,    .wz-dash .btn-dark:hover    { background: #0f172a; border-color: #0f172a; color: #fff; }

/* light & default = neutral secondary actions (Cancel / Close) */
#main-wrapper .btn-light,     .wz-dash .btn-light,
#main-wrapper .btn-default,   .wz-dash .btn-default   { background: #f1f5f9; border-color: #e2e8f0; color: #334155; }
#main-wrapper .btn-light:hover, .wz-dash .btn-light:hover,
#main-wrapper .btn-default:hover, .wz-dash .btn-default:hover { background: #e2e8f0; border-color: #cbd5e1; color: #1e293b; }

/* link */
#main-wrapper .btn-link,      .wz-dash .btn-link      { background: transparent; border-color: transparent; box-shadow: none; color: #1d4ed8; }
#main-wrapper .btn-link:hover,    .wz-dash .btn-link:hover    { background: transparent; box-shadow: none; text-decoration: underline; transform: none; color: #1741b8; }

/* Sidebar accordion toggles reuse .btn-link but must keep the sidebar's own
   LIGHT text (not the enterprise .btn-link blue) — matches the dashboard sidebar.
   Higher specificity (#sidebar + 2 classes) wins over #main-wrapper .btn-link. */
#sidebar .btn-link.mdc-drawer-link { color: var(--wz-side-text); text-decoration: none; }
#sidebar .btn-link.mdc-drawer-link:hover,
#sidebar .btn-link.mdc-drawer-link:focus,
#sidebar .btn-link.mdc-drawer-link[aria-expanded="true"] { color: #fff; text-decoration: none; }

/* ---- Outline variants (fill on hover) ---- */
#main-wrapper .btn-outline-primary,   .wz-dash .btn-outline-primary   { background: transparent; border-color: #1d4ed8; color: #1d4ed8; }
#main-wrapper .btn-outline-primary:hover, .wz-dash .btn-outline-primary:hover { background: #1d4ed8; color: #fff; }

#main-wrapper .btn-outline-success,   .wz-dash .btn-outline-success   { background: transparent; border-color: #16a34a; color: #16a34a; }
#main-wrapper .btn-outline-success:hover, .wz-dash .btn-outline-success:hover { background: #16a34a; color: #fff; }

#main-wrapper .btn-outline-info,      .wz-dash .btn-outline-info      { background: transparent; border-color: #0d8a8a; color: #0d8a8a; }
#main-wrapper .btn-outline-info:hover,    .wz-dash .btn-outline-info:hover    { background: #0d8a8a; color: #fff; }

#main-wrapper .btn-outline-warning,   .wz-dash .btn-outline-warning   { background: transparent; border-color: #f59e0b; color: #b45309; }
#main-wrapper .btn-outline-warning:hover, .wz-dash .btn-outline-warning:hover { background: #f59e0b; color: #3b2a06; }

#main-wrapper .btn-outline-danger,    .wz-dash .btn-outline-danger    { background: transparent; border-color: #ef4444; color: #dc2626; }
#main-wrapper .btn-outline-danger:hover,  .wz-dash .btn-outline-danger:hover  { background: #ef4444; color: #fff; }

#main-wrapper .btn-outline-secondary, .wz-dash .btn-outline-secondary,
#main-wrapper .btn-outline-dark,      .wz-dash .btn-outline-dark      { background: transparent; border-color: #cbd5e1; color: #475569; }
#main-wrapper .btn-outline-secondary:hover, .wz-dash .btn-outline-secondary:hover,
#main-wrapper .btn-outline-dark:hover, .wz-dash .btn-outline-dark:hover { background: #475569; border-color: #475569; color: #fff; }

/* ---- Sizes ---- */
#main-wrapper .btn-sm, .wz-dash .btn-sm { padding: .3rem .7rem; font-size: .78rem; border-radius: 6px; }
#main-wrapper .btn-lg, .wz-dash .btn-lg { padding: .7rem 1.5rem; font-size: 1rem; border-radius: 10px; }
#main-wrapper .btn-block, .wz-dash .btn-block { width: 100%; }

/* ============================================================
   DASHBOARD CONTENT — fresh navy/blue theme (wz-dash)
   ============================================================ */
.wz-dash {
    padding: 26px 26px 40px;
    background: #f4f7fc;
    min-height: 100vh;
}

.wz-dash__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.wz-dash__title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0b2350;
    margin: 0;
}

.wz-dash__crumb {
    margin: 4px 0 0;
    font-size: .9rem;
    color: #64748b;
}

.wz-dash__crumb strong {
    color: #1d4ed8;
}

/* ---------- Stat cards ---------- */
.wz-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.wz-stat {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: #fff;
    border: 1px solid #e6ecf5;
    border-radius: 16px;
    padding: 20px 22px;
    box-shadow: 0 6px 20px rgba(15, 27, 52, .05);
    transition: transform .18s, box-shadow .18s, border-color .18s;
    text-decoration: none;
    color: inherit;
}

.wz-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(15, 27, 52, .12);
    border-color: #cdddfb;
    text-decoration: none;
    color: inherit;
}

.wz-stat__go {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: .72rem;
    color: #b8c4d8;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity .18s, transform .18s;
}

.wz-stat:hover .wz-stat__go {
    opacity: 1;
    transform: translateX(0);
    color: #1d4ed8;
}

.wz-stat__label {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.wz-stat__value {
    display: block;
    margin-top: 8px;
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1;
    color: #0b2350;
}

.wz-stat__icon {
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.35rem;
}

.wz-stat__icon--blue   { background: #e8f0ff; color: #1d4ed8; }
.wz-stat__icon--green  { background: #e3f7ee; color: #0f9d63; }
.wz-stat__icon--orange { background: #fff1e2; color: #e8740c; }
.wz-stat__icon--red    { background: #fdeaea; color: #e2433b; }
.wz-stat__icon--purple { background: #f0eafe; color: #7a3ff0; }
.wz-stat__icon--sky    { background: #e4f5fd; color: #0d9bd4; }
.wz-stat__icon--amber  { background: #fef3e0; color: #d97706; }

/* ---------- Panels ---------- */
.wz-panel {
    background: #fff;
    border: 1px solid #e6ecf5;
    border-radius: 16px;
    padding: 20px 22px;
    box-shadow: 0 6px 20px rgba(15, 27, 52, .05);
}

.wz-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 18px;
    margin-top: 18px;
    /* Grid items stretch by default, so the shorter card grew to match the taller
       one and carried a block of empty space. Each card keeps its own height. */
    align-items: start;
}

.wz-row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 18px;
}

.wz-mt {
    margin-top: 18px;
}

.wz-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.wz-panel__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0b2350;
    margin: 0;
}

.wz-panel__sub {
    margin: 4px 0 0;
    font-size: .82rem;
    color: #64748b;
}

.wz-panel__sub strong {
    color: #1d4ed8;
}

.wz-panel__badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    font-size: .76rem;
    font-weight: 700;
    color: #0f9d63;
    background: #e3f7ee;
    border-radius: 999px;
    white-space: nowrap;
}

.wz-pill-soft {
    flex: 0 0 auto;
    padding: 6px 14px;
    font-size: .78rem;
    font-weight: 600;
    color: #1d4ed8;
    background: #eef4ff;
    border-radius: 999px;
}

/* ---------- Tabs (Work Flow) ---------- */
.wz-tabs {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    background: #f1f5fb;
    border-radius: 11px;
    margin-bottom: 8px;
}

.wz-tab {
    border: 0;
    background: transparent;
    padding: 6px 14px;
    font-size: .8rem;
    font-weight: 700;
    color: #64748b;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.wz-tab:hover {
    color: #1d4ed8;
}

.wz-tab.is-active {
    background: #fff;
    color: #1d4ed8;
    box-shadow: 0 2px 8px rgba(15, 27, 52, .1);
}

.wz-chart {
    margin-top: 14px;
}

/* ---------- Members pie ---------- */
.wz-pie {
    max-width: 230px;
    margin: 6px auto 14px;
}

.wz-pie__legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wz-pie__legend p {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: .86rem;
    color: #475569;
}

.wz-pie__legend b {
    margin-left: auto;
    color: #0b2350;
}

.wz-dot {
    width: 11px;
    height: 11px;
    border-radius: 3px;
    display: inline-block;
}

.wz-dot--mgr { background: rgba(255, 99, 132, .9); }
.wz-dot--usr { background: rgba(54, 162, 235, .9); }
.wz-dot--adm { background: rgba(75, 192, 192, .9); }

/* ---------- Location table + map ---------- */
.wz-loc {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    align-items: center;
}

.wz-table {
    width: 100%;
    border-collapse: collapse;
}

.wz-table th {
    text-align: left;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #64748b;
    padding: 0 10px 10px;
    border-bottom: 1px solid #eef2f8;
}

.wz-table td {
    padding: 11px 10px;
    font-size: .88rem;
    color: #334155;
    border-bottom: 1px solid #f2f5fa;
    vertical-align: middle;
}

.wz-table tr:last-child td {
    border-bottom: 0;
}

.wz-share {
    white-space: nowrap;
    font-weight: 600;
    color: #0b2350;
}

.wz-bar {
    display: inline-block;
    width: 70px;
    height: 6px;
    border-radius: 4px;
    background: #eef2f8;
    margin-right: 8px;
    vertical-align: middle;
    overflow: hidden;
}

.wz-bar > span {
    display: block;
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #1d4ed8, #3b82f6);
}

.wz-loc__map .revenue-world-map {
    height: 260px;
    width: 100%;
}

/* ---------- Impressions / Traffic accent cards ---------- */
.wz-accent {
    border: 0;
    color: #fff;
}

.wz-accent .wz-panel__title {
    color: #fff;
}

.wz-accent--green {
    background: linear-gradient(135deg, #10b981, #0f9d63);
}

.wz-accent--blue {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
}

.wz-mini {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.wz-mini__sub {
    display: block;
    font-size: .9rem;
    opacity: .92;
}

.wz-mini__big {
    display: block;
    margin-top: 6px;
    font-size: 1.7rem;
    font-weight: 800;
}

.wz-mini__chart {
    flex: 1 1 auto;
    max-width: 60%;
}

/* ---------- Dashboard responsive ---------- */
@media (max-width: 1100px) {
    .wz-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
    .wz-row,
    .wz-row2,
    .wz-loc { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .wz-dash { padding: 18px 16px 32px; }
    .wz-stats { grid-template-columns: 1fr; }
    .wz-mini__chart { max-width: 50%; }
}

/* ============================================================
   TOPBAR — clean custom white bar (old MDC template removed)
   ============================================================ */
header.mdc-top-app-bar.wz-topbar {
    background: #fff !important;
    color: #0b2350 !important;
    box-shadow: 0 2px 14px rgba(15, 27, 52, .06);
    border-bottom: 1px solid #e6ecf5;
    z-index: 4;
}

/* Backend pages only (inside #main-wrapper): topbar flows + sticks so the
   in-topbar heading sits at the very top with no gap. The dashboard uses a
   different layout and keeps its original topbar. */
#main-wrapper header.mdc-top-app-bar.wz-topbar {
    position: sticky !important;
    top: 0;
}

/* The in-topbar heading (breadcrumb + title + description) is backend-only. */
.wz-topbar__head {
    display: none;
}

#main-wrapper .wz-topbar__head {
    display: flex;
}

.wz-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    gap: 16px;
    /* clear the fixed 260px sidebar + 26px to align with the content padding */
    padding: 10px 24px 10px calc(260px + 26px);
}

/* Enterprise heading inside the topbar (breadcrumb + title + description) */
.wz-topbar__head {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    gap: 1px;
}

.wz-topbar__pagetitle {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0b2350;
    line-height: 1.2;
}

.wz-topbar__pagedesc {
    font-size: .8rem;
    color: #64748b;
    line-height: 1.25;
}

.wz-topbar__left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.wz-topbar__toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #e6ecf5;
    background: #fff;
    border-radius: 10px;
    color: #0b2350;
    cursor: pointer;
    font-size: 1.05rem;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    transition: background .15s, border-color .15s, box-shadow .15s;
}

/* Kill any stray ripple / pseudo "blob" some legacy MDC styles draw behind it */
.wz-topbar__toggle::before,
.wz-topbar__toggle::after {
    content: none !important;
    display: none !important;
}

.wz-topbar__toggle:hover {
    background: #f1f5fb;
    border-color: #cdddfb;
    color: #1d4ed8;
}

.wz-topbar__toggle:active {
    background: #e8f0ff;
}

.wz-topbar__toggle:focus {
    outline: none;
}

.wz-topbar__toggle:focus-visible {
    box-shadow: 0 0 0 3px rgba(29, 78, 216, .18);
}

.wz-topbar__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0b2350;
}

.wz-topbar__right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ---------- Role badge (Admin / Manager / User) ---------- */
.wz-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .02em;
    border-radius: 999px;
    white-space: nowrap;
    line-height: 1;
}

.wz-role-badge i {
    font-size: .85rem;
}

.wz-role-badge--admin {
    background: #e8f0ff;
    color: #1d4ed8;
    border: 1px solid #bcd3ff;
}

.wz-role-badge--manager {
    background: #e0f7f4;
    color: #0d9488;
    border: 1px solid #b3eee7;
}

.wz-role-badge--user {
    background: #eef2f8;
    color: #475569;
    border: 1px solid #dde5f0;
}

/* visually hidden but kept for the accessible name (WCAG 2.5.3 / S7927) */
.wz-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Icon button (bell) ---------- */
.wz-iconbtn {
    position: relative;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid #e6ecf5;
    background: #fff;
    border-radius: 12px;
    color: #475569;
    font-size: 1.05rem;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}

.wz-iconbtn:hover {
    background: #f3f7fd;
    border-color: #cdddfb;
    color: #1d4ed8;
}

.wz-iconbtn__badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    display: grid;
    place-items: center;
    font-size: .68rem;
    font-weight: 700;
    color: #fff;
    background: #ef4444;
    border-radius: 999px;
    border: 2px solid #fff;
}

/* ---------- Profile button ---------- */
.wz-profile {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 12px 5px 5px;
    border: 1px solid #e6ecf5;
    background: #fff;
    border-radius: 999px;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}

.wz-profile:hover {
    background: #f3f7fd;
    border-color: #cdddfb;
}

.wz-profile__img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.wz-profile__name {
    font-size: .9rem;
    font-weight: 600;
    color: #0b2350;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wz-profile__caret {
    font-size: .7rem;
    color: #64748b;
    transition: transform .2s;
}

.wz-dd.is-open .wz-profile__caret {
    transform: rotate(180deg);
}

/* ---------- Dropdown ---------- */
.wz-dd {
    position: relative;
}

.wz-dd__menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 250px;
    background: #fff;
    border: 1px solid #e6ecf5;
    border-radius: 14px;
    box-shadow: 0 18px 44px rgba(15, 27, 52, .16);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .16s, transform .16s, visibility .16s;
    z-index: 60;
}

.wz-dd.is-open .wz-dd__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.wz-dd__menu--wide {
    min-width: 340px;
}

.wz-dd__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px 10px;
    font-size: .92rem;
    font-weight: 700;
    color: #0b2350;
    border-bottom: 1px solid #eef2f8;
}

.wz-dd__headlink {
    font-size: .76rem;
    font-weight: 600;
    color: #1d4ed8;
    text-decoration: none;
}

.wz-dd__body {
    max-height: 320px;
    overflow-y: auto;
    padding: 6px 2px;
}

.wz-dd__foot {
    border-top: 1px solid #eef2f8;
    padding: 8px 4px 4px;
    text-align: center;
}

.wz-dd__foot a {
    font-size: .82rem;
    font-weight: 700;
    color: #1d4ed8;
    text-decoration: none;
}

.wz-dd__item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: .88rem;
    font-weight: 500;
    color: #334155;
    text-decoration: none;
    transition: background .14s, color .14s;
}

.wz-dd__item:hover {
    background: #f3f7fd;
    color: #1d4ed8;
    text-decoration: none;
}

.wz-dd__item i {
    width: 18px;
    text-align: center;
    color: #7f9bd1;
}

.wz-dd__item:hover i {
    color: #1d4ed8;
}

.wz-dd__item--danger {
    color: #dc2626;
}

.wz-dd__item--danger i {
    color: #dc2626;
}

.wz-dd__item--danger:hover {
    background: #fdecec;
    color: #dc2626;
}

.wz-dd__item--active {
    background: #eef4ff;
    color: #1d4ed8;
    cursor: default;
}

.wz-dd__item--active i {
    color: #1d4ed8;
}

.wz-dd__sep {
    height: 1px;
    background: #eef2f8;
    margin: 6px 4px;
}

.wz-dd__label {
    display: block;
    padding: 8px 12px 4px;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #64748b;
}

.wz-dd__tag {
    margin-left: auto;
    font-size: .66rem;
    font-weight: 700;
    color: #0f9d63;
    background: #e3f7ee;
    padding: 2px 8px;
    border-radius: 999px;
}

/* ---------- Notification items ---------- */
.wz-noti {
    display: flex;
    gap: 11px;
    padding: 11px 10px;
    border-radius: 10px;
    transition: background .14s;
}

.wz-noti:hover {
    background: #f7faff;
}

.wz-noti__ic {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    font-size: .9rem;
}

.wz-noti--org .wz-noti__ic { background: #e3f7ee; color: #0f9d63; }
.wz-noti--task .wz-noti__ic { background: #e8f0ff; color: #1d4ed8; }
.wz-noti--inf .wz-noti__ic { background: #fff4e0; color: #d97706; }

.wz-noti__body {
    min-width: 0;
}

.wz-noti__body p {
    margin: 0 0 3px;
    font-size: .82rem;
    color: #334155;
    line-height: 1.35;
}

.wz-noti__action {
    font-size: .76rem;
    font-weight: 600;
    color: #1d4ed8;
    text-decoration: none;
}

.wz-noti__action:hover {
    text-decoration: underline;
}

.wz-noti-empty {
    padding: 26px 14px;
    text-align: center;
    color: #64748b;
    font-size: .85rem;
}

.wz-noti-empty i {
    display: block;
    font-size: 1.4rem;
    margin-bottom: 8px;
    opacity: .6;
}

/* ---------- Profile photo lightbox ---------- */
.wz-profile__img {
    cursor: zoom-in;
}

.wz-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(8, 17, 38, .78);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(2px);
}

.wz-lightbox.is-open {
    display: flex;
}

.wz-lightbox__box {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.wz-lightbox__box img {
    display: block;
    max-width: 340px;
    max-height: 80vh;
    border-radius: 18px;
    border: 4px solid #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
}

.wz-lightbox__close {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 0;
    background: #fff;
    color: #0b2350;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
    transition: transform .15s;
}

.wz-lightbox__close:hover {
    transform: scale(1.08);
}

/* ---------- Topbar responsive ---------- */
@media (max-width: 999px) {
    .wz-topbar__inner { padding: 0 12px 0 10px; }
    .wz-topbar__toggle { display: inline-flex; }
}

/* ===== Topbar mobile responsiveness (no overlap on small screens) =====
   Unscoped so it works on BOTH the #main-wrapper backend pages and the
   .main-wrapper dashboard. These classes only exist inside the topbar. */
@media (max-width: 860px) {
    .wz-topbar__inner { gap: 8px; min-height: 58px; flex-wrap: nowrap; }
    .wz-topbar__head .wz-breadcrumb { display: none !important; }
    .wz-topbar__pagedesc { display: none !important; }
    .wz-topbar__icon { width: 38px !important; height: 38px !important; font-size: 1rem !important; flex: 0 0 38px !important; }
    .wz-topbar__pagetitle { font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .wz-topbar__textcol { min-width: 0; }
    .wz-topbar__left { min-width: 0; flex: 1 1 auto; }
    .wz-topbar__right { gap: 8px; flex: 0 0 auto; }
    .wz-refresh-btn span { display: none; }
    .wz-refresh-btn { padding: 8px 10px; }
}
@media (max-width: 520px) {
    .wz-topbar__icon { display: none !important; }
    .wz-topbar__pagetitle { font-size: 1rem; max-width: 42vw; }
    .wz-topbar__left { gap: 8px; }
    .wz-topbar__right { gap: 6px; }
}

@media (max-width: 600px) {
    .wz-profile__name { display: none; }
    .wz-topbar__title { font-size: 1rem; }
    /* dropdowns span the viewport width so they never spill off-screen */
    .wz-dd__menu {
        position: fixed;
        top: 60px;
        left: 10px;
        right: 10px;
        min-width: 0;
        width: auto;
    }
    .wz-dd__menu--wide { min-width: 0; }
}

/* ============================================================
   DASHBOARD — buttons, members, quick actions
   ============================================================ */
.wz-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: .88rem;
    font-weight: 700;
    border-radius: 10px;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: filter .15s, box-shadow .15s;
}

.wz-btn--primary {
    background: #1d4ed8;
    color: #fff;
    box-shadow: 0 6px 16px rgba(29, 78, 216, .28);
}

.wz-btn--primary:hover {
    filter: brightness(1.06);
    color: #fff;
    text-decoration: none;
}

/* Members: pie + legend side by side */
.wz-members {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.wz-members .wz-pie {
    flex: 0 0 auto;
    width: 210px;
    max-width: 210px;
    margin: 0;
}

.wz-members .wz-pie__legend {
    flex: 1 1 180px;
}

.wz-pie__total {
    margin-top: 6px !important;
    padding-top: 10px;
    border-top: 1px solid #eef2f8;
    font-weight: 600;
    color: #0b2350;
}

/* Quick actions grid */
/*
 * Quick actions: every button the same width, always.
 *
 * repeat(2, 1fr) did NOT give equal columns. Grid items default to
 * min-width:auto, which is their min-content width, so the longer labels
 * ("Manage Users", "Add Keyword") pushed their column out and 1fr could not
 * shrink it back -- measured 133.6px against 160.3px. min-width:0 is what makes
 * 1fr mean a fair share.
 *
 * auto-fit sizes against THIS PANEL, not the viewport, which matters because the
 * panel sits in a side column and stays ~306px wide even on a 1280px screen -- so
 * a viewport media query never fires for it. Below the 160px floor it drops to a
 * single full-width column, which is also the only way the labels stop wrapping
 * onto two lines.
 *
 * The 190px floor is measured, not guessed: icon 38 + gap 12 + padding 30 +
 * the longest label ("Website Ranking", ~110px at this weight) = ~190. At a
 * 160px floor a 348px panel fitted two 168px columns and that label wrapped.
 */
.wz-actions {
    display: grid;
    /* Always two. auto-fit dropped to a single column at 1600px and below --
       measured: 1 column, 612px tall, and the card beside it stretched to 717px
       with 423px of empty space under its chart. minmax(0,1fr) lets the items
       shrink instead of forcing a column break. */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.wz-actions > * { min-width: 0; }

.wz-action {
    display: flex;
    align-items: center;
    /* measured: "Website Ranking" needs icon + gap + padding + 107px of text.
       At 12px gap / 15px padding / 38px icon that came to 189px and would not fit
       two-up on a 1600px screen; this trims it to ~179px. */
    gap: 10px;
    padding: 13px 13px;
    background: #f7faff;
    border: 1px solid #eaf0fa;
    border-radius: 12px;
    text-decoration: none;
    color: #0b2350;
    font-weight: 600;
    font-size: .88rem;
    transition: background .15s, border-color .15s, transform .15s;
}

.wz-action:hover {
    background: #eef4ff;
    border-color: #cdddfb;
    transform: translateY(-2px);
    text-decoration: none;
    color: #1d4ed8;
}

.wz-action__ic {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #fff;
    color: #1d4ed8;
    border: 1px solid #e6ecf5;
    font-size: 1rem;
}

@media (max-width: 480px) {
    .wz-actions { grid-template-columns: 1fr; }
}

/* ============================================================
   FOOTER — clean navy theme (aligned with the sidebar offset)
   ============================================================ */
.wz-footer {
    margin-left: 260px;
    background: #fff;
    border-top: 1px solid #e6ecf5;
    padding: 16px 26px;
}

.wz-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
}

.wz-footer__brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    color: #0b2350;
}

.wz-footer__brand i {
    color: #1d4ed8;
    font-size: 1.15rem;
}

.wz-footer__copy {
    margin: 0;
    font-size: .82rem;
    color: #64748b;
}

.wz-footer__links {
    display: flex;
    flex-wrap: wrap;            /* 7 links (Help/Terms/Privacy/Status added 2026-12-02) must wrap on phones */
    justify-content: center;
    gap: 8px 18px;
}

.wz-footer__links a {
    font-size: .82rem;
    font-weight: 600;
    color: #1d4ed8;
    text-decoration: none;
}

.wz-footer__links a:hover {
    text-decoration: underline;
}

@media (max-width: 999px) {
    .wz-footer {
        margin-left: 0;
    }
}

@media (max-width: 600px) {
    .wz-footer__inner {
        flex-direction: column;
        text-align: center;
    }
    .wz-footer__copy {
        max-width: 100%;
    }
}

/* ============================================================
   MOBILE — center the dashboard content cleanly
   ============================================================ */
@media (max-width: 768px) {
    /* Team members: stack + center the doughnut and legend */
    .wz-members {
        flex-direction: column;
        align-items: center;
        text-align: left;
    }

    .wz-members .wz-pie {
        width: 200px;
        max-width: 200px;
        margin: 0 auto 6px;
    }

    .wz-members .wz-pie__legend {
        width: 100%;
        flex: 1 1 auto;
    }

    /* Welcome header: stack + center, full-width action button */
    .wz-dash__head {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .wz-dash__head .wz-btn {
        justify-content: center;
    }

    /* Panel headers stack neatly */
    .wz-panel__head {
        flex-wrap: wrap;
    }
}

/* ============================================================
   MODALS — attractive navy theme (backend DataTable pages)
   CSS-only reskin; markup & Bootstrap modal JS untouched.
   ============================================================ */
#main-wrapper .modal-content {
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(8, 17, 38, .35);
}

#main-wrapper .modal-header {
    border: 0;
    padding: 16px 24px;
    align-items: center;
}

#main-wrapper .modal-header.bg-primary {
    background: linear-gradient(135deg, #0b2350 0%, #1d4ed8 100%) !important;
}

#main-wrapper .modal-header.bg-light {
    background: #f4f7fc !important;
}

/* A modal title is dark, because most headers here are white.

   This said `color: #fff` for every header there is. That is right for the
   ones carrying .bg-primary and wrong for every other, and of the 194 modal
   headers in this application 116 carry no background class at all -- so
   116 titles were white text on a white bar. Measured on /task-board: the
   Submit work dialog reported colour rgb(255,255,255) on rgb(255,255,255),
   a contrast of 1:1, and the heading was only ever visible if you happened
   to drag-select it.

   It looked right to whoever wrote it because wizbrand-profile.css paints
   EVERY .modal-header with a dark gradient and !important -- but that sheet
   is only loaded on the profile screens, and nothing here is.

   White is restored below for the headers that actually are dark. */
#main-wrapper .modal-header .modal-title,
#main-wrapper .modal-header .mymodal-title,
#main-wrapper .modal-header h4,
#main-wrapper .modal-header h5 {
    font-weight: 700;
    color: #0b2350;
    margin: 0;
}

#main-wrapper .modal-header.bg-primary .modal-title,
#main-wrapper .modal-header.bg-primary .mymodal-title,
#main-wrapper .modal-header.bg-primary h4,
#main-wrapper .modal-header.bg-primary h5,
#main-wrapper .modal-header.bg-dark .modal-title,
#main-wrapper .modal-header.bg-dark .mymodal-title,
#main-wrapper .modal-header.bg-dark h4,
#main-wrapper .modal-header.bg-dark h5,
#main-wrapper .modal-header.bg-info .modal-title,
#main-wrapper .modal-header.bg-success .modal-title,
#main-wrapper .modal-header.bg-danger .modal-title,
#main-wrapper .modal-header.bg-secondary .modal-title {
    color: #fff;
}

/* The close cross has the same problem and the same answer. */
#main-wrapper .modal-header .close {
    color: #334155;
    opacity: .92;
    text-shadow: none;
    font-size: 1.5rem;
    transition: transform .15s, opacity .15s;
}

#main-wrapper .modal-header.bg-primary .close,
#main-wrapper .modal-header.bg-dark .close,
#main-wrapper .modal-header.bg-info .close,
#main-wrapper .modal-header.bg-success .close,
#main-wrapper .modal-header.bg-danger .close,
#main-wrapper .modal-header.bg-secondary .close {
    color: #fff;
}

#main-wrapper .modal-header .close:hover {
    opacity: 1;
    transform: scale(1.12);
}

#main-wrapper .modal-body {
    padding: 22px 24px;
    background: #fff;
}

/* Inputs */
#main-wrapper .modal-body .form-control {
    border: 1px solid #e6ecf5;
    border-radius: 10px;
    padding: 9px 14px;
    font-size: .9rem;
    color: #0b2350;
}

#main-wrapper .modal-body .form-control:focus {
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, .12);
    outline: none;
}

#main-wrapper .modal-body .control-label {
    font-weight: 600;
    color: #0b2350;
    font-size: .85rem;
    margin-bottom: 6px;
}

/* readonly project-name field on top of the wizard */
#main-wrapper .modal-body input[readonly] {
    background: #f4f7fc;
    color: #64748b;
}

/* Social URL input groups (icon + input) */
#main-wrapper .modal-body .input-group {
    border-radius: 10px;
}

#main-wrapper .modal-body .input-group .input-group-text {
    border: 1px solid #e6ecf5;
    border-right: 0;
    background: #f4f7fc !important;
    border-radius: 10px 0 0 10px;
    min-width: 48px;
    justify-content: center;
}

#main-wrapper .modal-body .input-group .form-control {
    border-radius: 0 10px 10px 0;
    border-left: 0;
}

/* Footer + submit buttons */
#main-wrapper .modal-footer {
    border-top: 1px solid #eef2f8;
    padding: 16px 24px;
}

#main-wrapper .modal-body .btn-warning,
#main-wrapper .modal-footer .btn-warning,
#main-wrapper .modal-content .btn-warning {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    border: 0;
    color: #fff;
    border-radius: 10px;
    padding: 10px 30px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(29, 78, 216, .3);
}

#main-wrapper .modal-body .btn-warning:hover,
#main-wrapper .modal-footer .btn-warning:hover,
#main-wrapper .modal-content .btn-warning:hover {
    filter: brightness(1.07);
    color: #fff;
}

#main-wrapper .modal-content .btn-danger {
    border-radius: 10px;
    font-weight: 600;
}

#main-wrapper .modal-content .btn-default {
    border-radius: 10px;
    font-weight: 600;
    border: 1px solid #e6ecf5;
    background: #fff;
    color: #475569;
}

/* Wizard details table inside modal */
#main-wrapper .modal-body table.table-bordered th {
    background: #f4f7fc;
    color: #0b2350;
    border-color: #e6ecf5;
    font-size: .8rem;
}

#main-wrapper .modal-body table.table-bordered td {
    border-color: #eef2f8;
    font-size: .85rem;
    color: #334155;
}

/* Select dropdowns inside modals (e.g. Project Manager) — match the inputs */
#main-wrapper .modal-body select {
    width: 100%;
    border: 1px solid #e6ecf5;
    border-radius: 10px;
    padding: 9px 14px;
    font-size: .9rem;
    color: #0b2350;
    background-color: #fff;
    height: auto;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}

#main-wrapper .modal-body select:focus {
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, .12);
    outline: none;
}

/* Invite-member modal hint */
#main-wrapper .modal-body .wz-invite-hint {
    font-size: .86rem;
    color: #64748b;
    background: #f4f7fc;
    border: 1px solid #eef2f8;
    border-radius: 10px;
    padding: 10px 14px;
    margin: 0 0 16px;
}

/* ============================================================
   Livewire data-tables — themed toolbar (search + per-page),
   clean footer and a friendly empty state. Matches the polished
   DataTables look used on the Projects page. The old grey bar
   (.card-header.bg-dark with inline #8292a7) is replaced by
   .wz-dt-bar; the rest is styled via :has() so no per-row markup
   changes are needed.
   ============================================================ */
#main-wrapper .wz-dt-bar {
    background: #fff !important;
    border-bottom: 1px solid #e9eef6;
    padding: 16px 18px;
}

/* Search + per-page controls */
#main-wrapper .wz-dt-bar .form-control {
    height: 44px;
    border: 1px solid #dbe3ef;
    border-radius: 10px;
    background-color: #f8fafc;
    color: #1f2d4d;
    font-size: .9rem;
    box-shadow: none;
    transition: border-color .15s, box-shadow .15s, background-color .15s;
}

#main-wrapper .wz-dt-bar .form-control::placeholder {
    color: #64748b;
}

#main-wrapper .wz-dt-bar .form-control:focus {
    border-color: #1d4ed8;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, .12);
}

/* Magnifier icon on the search box (no markup needed) */
#main-wrapper .wz-dt-bar input[type="text"] {
    padding-left: 42px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 15px center;
    background-size: 16px 16px;
}

#main-wrapper .wz-dt-bar select.form-control {
    cursor: pointer;
}

/* Card / footer polish for these Livewire tables */
#main-wrapper .card:has(.wz-dt-bar) {
    border: 1px solid #e9eef6;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(15, 27, 52, .05);
    overflow: hidden;
}

#main-wrapper .card:has(.wz-dt-bar) .card-footer {
    background: #fff;
    border-top: 1px solid #eef2f8;
    color: #64748b;
    font-size: .85rem;
    padding: 14px 18px;
}

/* Header cells */
#main-wrapper .card:has(.wz-dt-bar) table thead th {
    background: #f4f7fc;
    color: #334d77;
    font-size: .76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-top: 0;
    border-bottom: 1px solid #e9eef6;
    padding: 14px 16px;
}

#main-wrapper .card:has(.wz-dt-bar) table tbody td {
    padding: 13px 16px;
    vertical-align: middle;
    color: #334155;
}

/* Friendly empty state — the only tbody cell using colspan is the
   "No X found" row, so target it directly and add an icon. */
#main-wrapper .card:has(.wz-dt-bar) tbody td[colspan] {
    text-align: center;
    padding: 52px 16px;
    color: #64748b;
    font-size: .98rem;
    font-weight: 600;
    background: #fff;
}

#main-wrapper .card:has(.wz-dt-bar) tbody td[colspan]::before {
    content: "\f07b";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    display: block;
    font-size: 2.4rem;
    color: #c3d0e8;
    margin-bottom: 12px;
}

/* Pagination buttons inside the footer */
#main-wrapper .card:has(.wz-dt-bar) .pagination {
    margin: 0;
}

#main-wrapper .card:has(.wz-dt-bar) .pagination .page-link {
    color: #1d4ed8;
    border-color: #e3e9f3;
    border-radius: 8px;
    margin: 0 2px;
    min-width: 36px;
    text-align: center;
}

#main-wrapper .card:has(.wz-dt-bar) .pagination .page-item.active .page-link {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff;
}

/* Responsive: stack search + per-page on small screens */
@media (max-width: 575px) {
    #main-wrapper .wz-dt-bar .col-md-8,
    #main-wrapper .wz-dt-bar .col-md-4 {
        margin-bottom: 10px;
    }

    #main-wrapper .wz-dt-bar .col-md-4:last-child {
        margin-bottom: 0;
    }
}

/* ============================================================
   SEO Assets legacy tables — Keys Manager (#WebmyTokenTable) and
   Website & Access (#WebAccessTable). These pages carry heavy
   inline JS, so they are re-themed via CSS only (no markup change).
   Overrides the old purple (#5c4ac7) header and the plain DataTable.
   ============================================================ */

/* ---- Keys Manager table ---- */
#main-wrapper #WebmyTokenTable {
    border-collapse: separate !important;
    border-spacing: 0;
    border: 1px solid #e9eef6;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 8px !important;
}

#main-wrapper #WebmyTokenTable thead th {
    background: #f4f7fc !important;
    color: #334d77 !important;
    font-size: .76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    border: 0 !important;
    border-bottom: 1px solid #e9eef6 !important;
    padding: 14px 16px !important;
}

#main-wrapper #WebmyTokenTable tbody td {
    padding: 13px 16px !important;
    color: #334155;
    border: 0 !important;
    border-top: 1px solid #eef2f8 !important;
}

#main-wrapper #WebmyTokenTable tbody tr:nth-child(even) {
    background: #f8fafc !important;
}

#main-wrapper #WebmyTokenTable tbody tr:hover {
    background: #eef4ff !important;
}

/* ---- Website & Access DataTable ---- */
#main-wrapper #WebAccessTable {
    border: 1px solid #e9eef6 !important;
    border-radius: 12px;
    overflow: hidden;
    border-collapse: separate !important;
    border-spacing: 0;
}

#main-wrapper #WebAccessTable thead th {
    background: #f4f7fc !important;
    color: #334d77 !important;
    font-size: .76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    border: 0 !important;
    border-bottom: 1px solid #e9eef6 !important;
    padding: 14px 16px !important;
    vertical-align: middle;
}

#main-wrapper #WebAccessTable tbody td {
    border: 0 !important;
    border-top: 1px solid #eef2f8 !important;
    padding: 13px 16px !important;
    vertical-align: middle;
    color: #334155;
}

#main-wrapper #WebAccessTable tbody tr:hover {
    background: #eef4ff !important;
}

/* DataTables controls (search box, length select, pagination) */
#main-wrapper #WebAccessTable_wrapper .dataTables_filter input,
#main-wrapper #WebAccessTable_wrapper .dataTables_length select {
    border: 1px solid #dbe3ef;
    border-radius: 9px;
    padding: 8px 12px;
    background: #f8fafc;
    color: #1f2d4d;
    outline: none;
    transition: border-color .15s, box-shadow .15s, background-color .15s;
}

#main-wrapper #WebAccessTable_wrapper .dataTables_filter input:focus,
#main-wrapper #WebAccessTable_wrapper .dataTables_length select:focus {
    border-color: #1d4ed8;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, .12);
}

#main-wrapper #WebAccessTable_wrapper .dataTables_paginate .paginate_button {
    border-radius: 8px !important;
    border-color: #e3e9f3 !important;
    color: #1d4ed8 !important;
    margin: 0 2px;
}

#main-wrapper #WebAccessTable_wrapper .dataTables_paginate .paginate_button.current,
#main-wrapper #WebAccessTable_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    color: #fff !important;
}

#main-wrapper #WebAccessTable_wrapper .dataTables_info {
    color: #64748b;
    font-size: .85rem;
}

/* ============================================================
   Friendly empty state for AJAX / DataTables tables — matches the
   Projects-page "No projects yet" look (folder icon + message).
   Used by Keys Manager (.wz-table-empty injected via JS) and the
   Website & Access DataTable (its default .dataTables_empty cell).
   ============================================================ */
#main-wrapper .wz-table-empty,
#main-wrapper #WebAccessTable td.dataTables_empty {
    text-align: center !important;
    padding: 28px 16px !important;
    color: #64748b !important;
    background: #fff !important;
    border: 0 !important;
    font-weight: 600;
}

/* Keep the DataTables scroll body from reserving big empty height when there
   are no rows, so the table doesn't push content off-screen. */
#main-wrapper #WebAccessTable_wrapper .dataTables_scrollBody {
    min-height: 0 !important;
}

#main-wrapper .wz-table-empty i {
    display: block;
    font-size: 2.4rem;
    color: #c3d0e8;
    margin-bottom: 12px;
}

#main-wrapper .wz-table-empty span {
    display: block;
    font-weight: 700;
    font-size: 1.02rem;
    color: #334d77;
    margin-bottom: 4px;
}

#main-wrapper .wz-table-empty small {
    display: block;
    color: #64748b;
    font-size: .85rem;
    font-weight: 500;
}

/* The DataTables default empty message already renders the .wz-empty block
   (inbox icon + text), so DON'T add a second folder icon here. */
#main-wrapper #WebAccessTable td.dataTables_empty::before {
    content: none;
}

/* Compact empty cell so the table doesn't push content off-screen. */
#main-wrapper #WebAccessTable td.dataTables_empty {
    padding: 8px 16px !important;
}

#main-wrapper .wz-empty {
    padding: 22px 16px !important;
}

/* ------------------------------------------------------------
   Website & Access rows: the values are wrapped in <p class="label
   label-light-warning"> badges whose default <p> margins make each
   row tall with an empty grey band on top (looked like a blank row).
   Collapse those margins, vertically center, and re-skin the badges
   into clean themed pills. Scoped to #WebAccessTable only.
   ------------------------------------------------------------ */
#main-wrapper #WebAccessTable tbody td {
    vertical-align: middle !important;
}

#main-wrapper #WebAccessTable thead th {
    white-space: nowrap;
}

#main-wrapper #WebAccessTable td p.label,
#main-wrapper #WebAccessTable td .label {
    margin: 0 !important;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
}

/* Re-skin the yellow "label-light-warning" badges to the navy theme */
#main-wrapper #WebAccessTable td .label-light-warning {
    background: #eef4ff !important;
    color: #1d4ed8 !important;
}

#main-wrapper #WebAccessTable td .label-light-info {
    background: #e7f6ef !important;
    color: #0d9488 !important;
}

/* Action buttons (view / edit) — consistent rounded squares */
#main-wrapper #WebAccessTable td .btn {
    border-radius: 9px;
    margin: 2px;
}

/* ============================================================
   ENTERPRISE POLISH (Phase 1) — global backend theming inside
   #main-wrapper .page-wrapper. This stylesheet loads LAST, so it
   supersedes the legacy admin template and gives every backend
   page a consistent enterprise look. No per-page markup needed.
   ============================================================ */

/* --- Cards --- */
#main-wrapper .page-wrapper .card {
    border: 1px solid #e9eef6;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(15, 27, 52, .05);
}

/* --- Generic tables (Bootstrap .table + DataTables) --- */
#main-wrapper .page-wrapper table.table thead th,
#main-wrapper .page-wrapper table.dataTable thead th {
    background: #f4f7fc;
    color: #334d77;
    font-size: .76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-top: 0;
    border-bottom: 1px solid #e9eef6;
    padding: 14px 16px;
    vertical-align: middle;
}

#main-wrapper .page-wrapper table.table tbody td {
    padding: 12px 16px;
    vertical-align: middle;
    color: #334155;
    border-top: 1px solid #eef2f8;
}

#main-wrapper .page-wrapper table.table tbody tr:hover {
    background: #f8fafc;
}

/* Sticky header so column labels stay visible while scrolling.

   top MUST be 0, not 64px. These tables live inside .table-responsive, and
   Bootstrap gives that overflow-x:auto — which makes it the scroll container
   sticky resolves against, not the page. With top:64px the header was pushed
   64px down from the container's own top and landed on the first data row,
   painting over it (z-index:2). On the Competitors screen that read as a row
   that had vanished: it was there, underneath its own header.

   Plain tables only — DataTables scrollX wraps its own header, so this is a
   no-op there. */
#main-wrapper .page-wrapper table.table:not(.dataTable) thead th {
    position: sticky;
    top: 0;
    z-index: 2;
}

/* --- Buttons: unify shape/weight, keep semantic colors --- */
#main-wrapper .page-wrapper .btn {
    border-radius: 10px;
    font-weight: 600;
    transition: transform .12s ease, box-shadow .15s ease, background-color .15s ease;
}

#main-wrapper .page-wrapper .btn:hover {
    transform: translateY(-1px);
}

#main-wrapper .page-wrapper .btn-primary {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

#main-wrapper .page-wrapper .btn-primary:hover {
    background-color: #1640b8;
    border-color: #1640b8;
}

/* --- Form controls --- */
#main-wrapper .page-wrapper .form-control,
#main-wrapper .page-wrapper .custom-select {
    border-radius: 10px;
    border-color: #dbe3ef;
    transition: border-color .15s, box-shadow .15s;
}

#main-wrapper .page-wrapper .form-control:focus,
#main-wrapper .page-wrapper .custom-select:focus {
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, .12);
}

/* --- Badges / status labels: clean pills --- */
#main-wrapper .page-wrapper .badge,
#main-wrapper .page-wrapper .label {
    border-radius: 999px;
    padding: 4px 12px;
    font-weight: 600;
    font-size: .76rem;
    letter-spacing: .01em;
}

/* --- Modal headers (modals render in-page within wrapper here) --- */
#main-wrapper .modal-content {
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 27, 52, .22);
}

#main-wrapper .modal-header.bg-primary {
    background: linear-gradient(135deg, #0b2350, #1d4ed8) !important;
}

/* --- Page content breathing room (gap below the in-topbar header) --- */
#main-wrapper .page-wrapper .container-fluid {
    padding: 48px 26px 18px;
}

/* Dashboard content uses the legacy MDC wrapper (.main-wrapper class, not the
   #main-wrapper id) whose margin-left (243px) didn't match the 260px sidebar.
   Align it to the sidebar so the content lines up with the topbar heading. */
.main-wrapper.mdc-drawer-app-content {
    margin-left: 260px !important;
}
/* Mobile: sidebar becomes an off-canvas drawer, so the dashboard content must
   not keep the 260px offset (otherwise it sits in a narrow right column).
   The legacy MDC rule `.mdc-drawer--open + .mdc-drawer-app-content` has high
   specificity, so match it exactly here to guarantee the reset wins. */
@media (max-width: 999px) {
    /* content wrapper — beat EVERY possible offset source (legacy adjacent-sibling
       rule, theme rule, drawer open/closed) with html body + !important */
    html body .main-wrapper.mdc-drawer-app-content,
    html body .mdc-drawer.mdc-drawer--open:not(.mdc-drawer--closing) + .mdc-drawer-app-content,
    html body .mdc-drawer + .mdc-drawer-app-content,
    html body .mdc-drawer-app-content {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    /* page-wrapper inside it (both dashboard .main-wrapper and backend #main-wrapper) */
    html body .main-wrapper .page-wrapper,
    html body #main-wrapper .page-wrapper {
        margin-left: 0 !important;
    }
    /* topbar: drop the sidebar-clearing left padding so it isn't pushed right */
    html body header.wz-topbar .wz-topbar__inner,
    html body header.mdc-top-app-bar.wz-topbar .wz-topbar__inner {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
    /* On mobile the sidebar must be an OFF-CANVAS overlay. The markup hard-codes
       `mdc-drawer--open`, and the ☰ toggle flips an `active` class on/off — so we
       drive visibility off `active`: hidden by default (even though --open is
       present), slides in only when the user opens it. This frees the full width
       for the content. */
    html body #sidebar.mdc-drawer,
    html body .mdc-drawer.mdc-drawer--open {
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        height: 100% !important;
        transform: translateX(-110%) !important;
        transition: transform .25s ease !important;
        z-index: 1200 !important;
    }
    html body #sidebar.mdc-drawer.active,
    html body .mdc-drawer.mdc-drawer--open.active {
        transform: translateX(0) !important;
    }
}

/* ============================================================
   ENTERPRISE PAGE HEADER — breadcrumb + title + description +
   refresh. Rendered once (layout/page-header) at the top of every
   backend list page. Central, no per-page markup.
   ============================================================ */
#main-wrapper .wz-pagehead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 12px 24px 6px;
}

#main-wrapper .wz-pagehead__main {
    min-width: 0;
}

#main-wrapper .wz-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .78rem;
    color: #64748b;
    margin-bottom: 4px;
}

#main-wrapper .wz-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #64748b;
    text-decoration: none;
    transition: color .15s;
}

#main-wrapper .wz-breadcrumb a:hover {
    color: #1d4ed8;
}

#main-wrapper .wz-breadcrumb__sep {
    font-size: .6rem;
    color: #64748b;
}

#main-wrapper .wz-breadcrumb__current {
    color: #334d77;
    font-weight: 600;
}

#main-wrapper .wz-pagehead__title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0b2350;
    margin: 0;
    line-height: 1.2;
}

#main-wrapper .wz-pagehead__desc {
    margin: 2px 0 0;
    color: #64748b;
    font-size: .84rem;
    max-width: 720px;
}

#main-wrapper .wz-refresh-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1px solid #dbe3ef;
    background: #fff;
    color: #334d77;
    border-radius: 10px;
    font-weight: 600;
    font-size: .88rem;
    cursor: pointer;
    transition: border-color .15s, color .15s, background-color .15s;
}

#main-wrapper .wz-refresh-btn:hover {
    border-color: #1d4ed8;
    color: #1d4ed8;
    background: #eff5ff;
}

#main-wrapper .wz-refresh-btn.is-spinning i {
    animation: wz-spin .6s linear infinite;
}

@keyframes wz-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 575px) {
    #main-wrapper .wz-pagehead {
        padding: 16px 16px 4px;
    }
    #main-wrapper .wz-pagehead__title {
        font-size: 1.3rem;
    }
    #main-wrapper .wz-refresh-btn span {
        display: none;
    }
}

/* The page title now lives in the enterprise page-header. Hide the duplicate
   topbar title on desktop; keep a compact copy on mobile where the fixed
   topbar is the only always-visible place to show the current page. */
#main-wrapper .wz-topbar__title--compact {
    display: none !important;
}

@media (max-width: 768px) {
    #main-wrapper .wz-topbar__title--compact {
        display: inline !important;
        font-size: 1rem;
    }
}

/* ============================================================
   In-card toolbar + Refresh button (pages that put Refresh next to
   their Add buttons instead of in the page header).
   ============================================================ */
#main-wrapper .wz-card-toolbar {
    margin-bottom: 6px;
}

#main-wrapper .wz-card-refresh {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1px solid #dbe3ef;
    background: #fff;
    color: #334d77;
    border-radius: 10px;
    font-weight: 600;
    font-size: .88rem;
    cursor: pointer;
    transition: border-color .15s, color .15s, background-color .15s;
}

#main-wrapper .wz-card-refresh:hover {
    border-color: #1d4ed8;
    color: #1d4ed8;
    background: #eff5ff;
}

#main-wrapper .wz-card-refresh.is-spinning i {
    animation: wz-spin .6s linear infinite;
}

/* ============================================================
   Status / role badges (enterprise pills) — used in table cells.
   ============================================================ */
#main-wrapper .wz-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
}

#main-wrapper .wz-badge i {
    font-size: .72rem;
}

#main-wrapper .wz-badge--success { background: #e7f6ef; color: #0d8a52; }
#main-wrapper .wz-badge--danger  { background: #fdecec; color: #d63b3b; }
#main-wrapper .wz-badge--warning { background: #fff4e0; color: #b9770a; }
#main-wrapper .wz-badge--info    { background: #eaf2ff; color: #1d6fd8; }
#main-wrapper .wz-badge--primary { background: #e8eeff; color: #1d4ed8; }
#main-wrapper .wz-badge--soft    { background: #eef2f8; color: #475569; }

/* ============================================================
   Quick-filter chips (role tabs with counts)
   ============================================================ */
#main-wrapper .wz-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    border-bottom: 1px solid #eef2f8;
    background: #fff;
}

#main-wrapper .wz-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border: 1px solid #e3e9f3;
    background: #f8fafc;
    color: #475569;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .15s, border-color .15s, color .15s;
}

#main-wrapper .wz-chip:hover {
    border-color: #cdddfb;
    color: #1d4ed8;
}

#main-wrapper .wz-chip.is-active {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff;
}

#main-wrapper .wz-chip__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: rgba(15, 27, 52, .08);
    color: inherit;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
}

#main-wrapper .wz-chip.is-active .wz-chip__count {
    background: rgba(255, 255, 255, .25);
}

#main-wrapper .wz-chip-clear {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    margin-left: auto;
    border: 0;
    background: transparent;
    color: #d63b3b;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 999px;
}

#main-wrapper .wz-chip-clear:hover {
    background: #fdecec;
}

/* ============================================================
   User cell (avatar initials + name + email)
   ============================================================ */
#main-wrapper .wz-user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

#main-wrapper .wz-user-avatar {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    color: #fff;
    font-weight: 700;
    font-size: .85rem;
    border-radius: 50%;
}

#main-wrapper .wz-user-cell__info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

#main-wrapper .wz-user-cell__name {
    font-weight: 600;
    color: #1f2d4d;
    font-size: .9rem;
}

#main-wrapper .wz-user-cell__email {
    color: #64748b;
    font-size: .8rem;
}

/* ============================================================
   Row action icon buttons
   ============================================================ */
#main-wrapper .wz-row-actions {
    display: inline-flex;
    gap: 6px;
    justify-content: flex-end;
}

#main-wrapper .wz-act-btn {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e3e9f3;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: .8rem;
    transition: background-color .15s, border-color .15s;
}

#main-wrapper .wz-act-btn--success { color: #0d8a52; }
#main-wrapper .wz-act-btn--success:hover { background: #e7f6ef; border-color: #b6e6cf; }
#main-wrapper .wz-act-btn--warn { color: #b9770a; }
#main-wrapper .wz-act-btn--warn:hover { background: #fff4e0; border-color: #f3d79a; }
#main-wrapper .wz-act-btn--danger { color: #d63b3b; }
#main-wrapper .wz-act-btn--danger:hover { background: #fdecec; border-color: #f3b6b6; }

/* Spacing between the "Invite User" button and the members table card.
   Replaces a Bootstrap .row whose negative margin pushed the button out. */
#main-wrapper .wz-invite-bar {
    margin-bottom: 18px;
}

/* ============================================================
   Mockup layout — toolbar (filters left / clear-all right),
   count+per-page bar, and the top-right invite/export action bar.
   ============================================================ */
#main-wrapper .wz-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
#main-wrapper .wz-toolbar__filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
    flex-wrap: wrap;
}
#main-wrapper .wz-toolbar__search {
    flex: 1 1 280px;
    min-width: 200px;
}
#main-wrapper .wz-toolbar__select {
    flex: 0 0 auto;
    width: auto;
    min-width: 150px;
}
#main-wrapper .wz-clear-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border: 1px solid #f3b6b6;
    background: #fff;
    color: #d63b3b;
    border-radius: 10px;
    font-weight: 600;
    font-size: .85rem;
    cursor: pointer;
    white-space: nowrap;
}
#main-wrapper .wz-clear-btn:hover { background: #fdecec; }

#main-wrapper .wz-tablebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 18px;
    border-bottom: 1px solid #eef2f8;
}
#main-wrapper .wz-tablebar__count {
    color: #64748b;
    font-size: .85rem;
    font-weight: 600;
}
#main-wrapper .wz-tablebar__perpage {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: .85rem;
}
#main-wrapper .wz-tablebar__perpage select {
    width: auto;
    min-width: 72px;
    height: 36px;
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid #dbe3ef;
    background: #f8fafc;
}

#main-wrapper .wz-invite-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 18px;
}
#main-wrapper .wz-export-btn,
#main-wrapper .wz-refresh-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1px solid #dbe3ef;
    background: #fff;
    color: #334d77;
    border-radius: 10px;
    font-weight: 600;
    font-size: .88rem;
    cursor: pointer;
    transition: border-color .15s, color .15s, background-color .15s;
}
#main-wrapper .wz-export-btn:hover,
#main-wrapper .wz-refresh-btn:hover {
    border-color: #1d4ed8;
    color: #1d4ed8;
    background: #eff5ff;
}
#main-wrapper .wz-refresh-btn:disabled { opacity: .6; cursor: progress; }

/* Projects table: fit the container without ugly mid-word wrapping — long
   cells truncate cleanly (see .wz-trunc); SSL/Status stay compact on one line. */
#main-wrapper #projectTable { width: 100% !important; table-layout: auto; }
#main-wrapper #projectTable th,
#main-wrapper #projectTable td { vertical-align: middle; }
#main-wrapper #projectTable .wz-ssl-cell,
#main-wrapper #projectTable .wz-status-cell { white-space: nowrap; }

/* ---- Reusable truncated text + hover copy (project-wide) ---- */
.wz-trunc { display: inline-flex; align-items: center; gap: 6px; max-width: 230px; vertical-align: middle; }
.wz-trunc__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wz-copy-btn {
    flex: none; border: 0; background: transparent; padding: 2px 5px; cursor: pointer;
    color: #9aa6b8; border-radius: 6px; font-size: .8rem; line-height: 1;
    opacity: 0; transition: opacity .15s, color .15s, background .15s;
}
.wz-trunc:hover .wz-copy-btn,
td:hover > .wz-trunc .wz-copy-btn,
.wz-copy-btn:focus { opacity: 1; }
.wz-copy-btn:hover { color: #1d4ed8; background: #eff5ff; }

/* compact SSL expiry cell */
.wz-ssl-cell { display: inline-flex; align-items: center; gap: .4rem; }

/* ---- Suggested keyword chips (Add Keyword modal) ----
   Selectors are ID/element-qualified with !important so they win over the
   legacy admin template's #formModal / .modal-body button rules. */
.wz-suggest-loading { font-size: .85rem; color: #1d4ed8; margin-bottom: .5rem; display: flex; align-items: center; gap: .4rem; }

.wz-suggest-panel {
    border: 1px solid #e3ebf7; background: #f7faff;
    border-radius: 12px; padding: 12px 14px; margin-bottom: 1rem;
}
.wz-suggest-panel__head {
    display: flex; align-items: center; justify-content: space-between; gap: 6px;
    font-size: .8rem; font-weight: 700; color: #334155;
    text-transform: uppercase; letter-spacing: .03em; margin-bottom: 10px;
}
.wz-suggest-panel__head .wz-suggest-hint { font-weight: 500; text-transform: none; letter-spacing: 0; color: #64748b; }
.wz-suggest-toggle {
    flex: 0 0 auto; width: 26px; height: 26px; border: 0; border-radius: 7px;
    background: #eef2f8; color: #475569; cursor: pointer; display: inline-flex;
    align-items: center; justify-content: center; font-size: .78rem; transition: background .15s, color .15s;
}
.wz-suggest-toggle:hover { background: #1d4ed8; color: #fff; }

.wz-suggest-chips { display: flex; flex-wrap: wrap; gap: 8px; max-height: 190px; overflow-y: auto; padding: 2px; }
.wz-suggest-chips::-webkit-scrollbar { width: 6px; }
.wz-suggest-chips::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }

button.wz-suggest-chip,
.wz-suggest-chips button.wz-suggest-chip {
    display: inline-flex !important; align-items: center; gap: 6px;
    border: 1px solid #cfe0ff !important; background: #ffffff !important; color: #1d4ed8 !important;
    border-radius: 999px !important; padding: 6px 14px !important; margin: 0 !important;
    font-size: .82rem !important; font-weight: 600 !important; line-height: 1.2 !important;
    box-shadow: 0 1px 2px rgba(29, 78, 216, .06); text-transform: none !important;
    cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s, transform .1s;
}
button.wz-suggest-chip:hover,
.wz-suggest-chips button.wz-suggest-chip:hover {
    background: #1d4ed8 !important; border-color: #1d4ed8 !important; color: #ffffff !important;
    box-shadow: 0 3px 8px rgba(29, 78, 216, .22); transform: translateY(-1px);
}
button.wz-suggest-chip:active { transform: translateY(0) scale(.98); }
.wz-suggest-chip i {
    font-size: .68rem; opacity: .85;
    background: #eff5ff; color: #1d4ed8; border-radius: 999px;
    width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center;
    transition: background .15s, color .15s;
}
.wz-suggest-chip:hover i { background: rgba(255,255,255,.25); color: #ffffff; }

/* URL table column widths — replaces deprecated <th width="…"> attributes (SonarCloud) */
.wz-th-w5  { width: 5%; }
.wz-th-w15 { width: 15%; }
.wz-th-w18 { width: 18%; }
.wz-th-w50 { width: 50%; }

/* ===== Competitor Analysis modal ===== */
.wz-cba-loading { display: flex; align-items: center; gap: 10px; justify-content: center; padding: 48px 16px; color: #1d4ed8; font-weight: 600; }
.wz-cba-summary { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.wz-cba-stat { flex: 1 1 120px; background: #f4f7fc; border: 1px solid #e3ebf7; border-radius: 12px; padding: 12px 14px; text-align: center; }
.wz-cba-stat__n { font-size: 1.4rem; font-weight: 800; color: #0b2350; line-height: 1.1; }
.wz-cba-stat__l { font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: #64748b; margin-top: 4px; }

.wz-cba-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .86rem; }
.wz-cba-table th, .wz-cba-table td { padding: 10px 12px; border-bottom: 1px solid #eef2f8; vertical-align: top; text-align: left; }
.wz-cba-table thead th { background: #0b2350; color: #fff; position: sticky; top: 0; z-index: 2; font-weight: 700; }
.wz-cba-table thead th a { color: #fff; text-decoration: none; }
.wz-cba-table thead th a:hover { text-decoration: underline; }
.wz-cba-table td.wz-cba-metric, .wz-cba-table th.wz-cba-metric { background: #f7faff; font-weight: 700; color: #334155; white-space: nowrap; position: sticky; left: 0; z-index: 1; }
.wz-cba-host { font-size: .72rem; font-weight: 500; color: #b8c6e6; }
.wz-cba-sub { font-size: .72rem; color: #64748b; margin-top: 2px; }
.wz-cba-txt { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.wz-cba-win { color: #16a34a !important; }
.wz-cba-table td .wz-cba-win, .wz-cba-table b.wz-cba-win { position: relative; }
.wz-cba-table .wz-cba-win::after { content: " \2605"; font-size: .7em; color: #16a34a; }
.wz-cba-score { display: inline-block; font-weight: 800; padding: 2px 10px; border-radius: 999px; background: #eff5ff; color: #1d4ed8; }
.wz-cba-score.wz-cba-win { background: #dcfce7; color: #16a34a; }

.wz-cba-badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.wz-cba-badge.ok { background: #dcfce7; color: #16a34a; }
.wz-cba-badge.danger { background: #fee2e2; color: #dc2626; }
.wz-cba-badge.muted { background: #eef2f8; color: #64748b; }
.wz-cba-badge.warn { background: #fef3c7; color: #b45309; }
.wz-cba-link { color: #1d4ed8; text-decoration: none; font-weight: 700; }
.wz-cba-link:hover { text-decoration: underline; }
.wz-cba-link i { font-size: .7em; opacity: .75; }

/* ================= Website Audit (Ahrefs-style) ================= */
/* score pill + Core Web Vitals badge (shared, colour-banded) */
.wz-score { display:inline-flex; align-items:center; justify-content:center; min-width:42px; height:42px; padding:0 8px; border-radius:50%; font-weight:800; font-size:.95rem; border:3px solid #e6ecf5; color:#334155; background:#fff; }
.wz-score--good { border-color:#16a34a; color:#16a34a; }
.wz-score--ok   { border-color:#f59e0b; color:#b45309; }
.wz-score--poor { border-color:#ef4444; color:#dc2626; }
.wz-score--na   { border-color:#e6ecf5; color:#64748b; }
.wz-cwv { display:inline-flex; flex-direction:column; align-items:center; gap:2px; min-width:74px; padding:8px 10px; border-radius:10px; background:#f7faff; border:1px solid #e6ecf5; }
.wz-cwv b { font-size:.9rem; color:#0f1b34; }
.wz-cwv span { font-size:.7rem; color:#64748b; font-weight:700; letter-spacing:.04em; }
.wz-cwv--good { background:#dcfce7; border-color:#bbf7d0; } .wz-cwv--good b { color:#15803d; }
.wz-cwv--ok   { background:#fef3c7; border-color:#fde68a; } .wz-cwv--ok b { color:#b45309; }
.wz-cwv--poor { background:#fee2e2; border-color:#fecaca; } .wz-cwv--poor b { color:#dc2626; }
.wz-cwv--na   { background:#f1f5f9; border-color:#e2e8f0; } .wz-cwv--na b { color:#64748b; }

.wz-audit-modal-sub { color:rgba(255,255,255,.92); font-size:.82rem; display:block; margin-top:2px; }
.wz-audit-hero { background:#f7faff; border:1px solid #e6ecf5; border-radius:12px; padding:14px 16px; margin-bottom:14px; }
.wz-audit-hint { margin-top:10px; font-size:.82rem; color:#475569; }
.wz-audit-hint i, .wz-audit-note i { color:#1d4ed8; }
.wz-audit-loading { display:flex; align-items:center; gap:10px; padding:22px; color:#1d4ed8; font-weight:600; }
.wz-audit-spin { width:20px; height:20px; border:3px solid #cfe0ff; border-top-color:#1d4ed8; border-radius:50%; animation:wzspin .7s linear infinite; }
@keyframes wzspin { to { transform:rotate(360deg); } }
.wz-audit-report { margin-top:6px; }
.wz-audit-scores { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:8px; }
.wz-audit-scorecard { border:1px solid #e6ecf5; border-radius:12px; padding:14px; text-align:center; background:#fff; }
.wz-audit-scorecard__num { display:block; font-size:1.8rem; font-weight:800; color:#0f1b34; line-height:1; }
.wz-audit-scorecard__lbl { display:block; margin-top:6px; font-size:.76rem; color:#64748b; font-weight:700; }
.wz-audit-scorecard.wz-score--good { border-color:#bbf7d0; background:#f0fdf4; } .wz-audit-scorecard.wz-score--good .wz-audit-scorecard__num { color:#15803d; }
.wz-audit-scorecard.wz-score--ok   { border-color:#fde68a; background:#fffbeb; } .wz-audit-scorecard.wz-score--ok .wz-audit-scorecard__num { color:#b45309; }
.wz-audit-scorecard.wz-score--poor { border-color:#fecaca; background:#fef2f2; } .wz-audit-scorecard.wz-score--poor .wz-audit-scorecard__num { color:#dc2626; }
.wz-audit-sect { font-weight:800; color:#0b2350; font-size:.9rem; margin:16px 0 8px; display:flex; align-items:center; gap:8px; }
.wz-audit-sect i { color:#1d4ed8; }
.wz-audit-pills, .wz-audit-cwv, .wz-audit-chips { display:flex; flex-wrap:wrap; gap:12px; }
.wz-audit-pill { display:flex; align-items:center; gap:8px; font-size:.85rem; color:#334155; font-weight:600; }
button.wz-audit-pill { background:none; border:none; cursor:pointer; padding:0; }
button.wz-audit-pill.wz-links-trigger:hover .wz-score { border-color:#1d4ed8; color:#1d4ed8; }
button.wz-audit-pill.wz-links-trigger:hover { color:#1d4ed8; text-decoration:underline; }
/* clickable-links popup */
.wz-links-pop { display:none; position:fixed; inset:0; z-index:20000; background:rgba(15,27,52,.55); align-items:center; justify-content:center; padding:20px; }
.wz-links-pop.is-open { display:flex; }
.wz-links-pop__box { background:#fff; border-radius:14px; width:100%; max-width:640px; max-height:80vh; display:flex; flex-direction:column; box-shadow:0 30px 70px rgba(15,27,52,.35); overflow:hidden; }
.wz-links-pop__head { display:flex; align-items:center; justify-content:space-between; padding:14px 18px; background:#0b2350; color:#fff; }
.wz-links-pop__head span { font-weight:800; font-size:.95rem; }
.wz-links-pop__close { background:rgba(255,255,255,.15); border:none; color:#fff; width:30px; height:30px; border-radius:8px; font-size:1.2rem; line-height:1; cursor:pointer; }
.wz-links-pop__close:hover { background:rgba(255,255,255,.3); }
.wz-links-pop__list { list-style:none; margin:0; padding:10px 0; overflow-y:auto; }
.wz-links-pop__list li { padding:7px 18px; border-bottom:1px solid #f1f5f9; }
.wz-links-pop__list a { color:#1d4ed8; text-decoration:none; font-size:.84rem; word-break:break-all; }
.wz-links-pop__list a:hover { text-decoration:underline; }
.wz-links-pop__empty { color:#64748b; font-size:.85rem; }
/* Where a number came from. The audit report mixes figures WizBrand crawled,
   figures read from a connected account, and figures a person typed in; they
   used to look identical, so a self-reported rank carried the same weight as a
   measured one. Quiet by design -- it labels the data, it is not the data. */
.wz-src { display:inline-block; margin-left:8px; padding:1px 7px; border-radius:999px;
    font-size:.64rem; font-weight:700; letter-spacing:.02em; text-transform:uppercase;
    vertical-align:middle; white-space:nowrap; cursor:help; }
.wz-src--measured  { background:#f1f5f9; color:#475569; border:1px solid #e2e8f0; }
.wz-src--connected { background:#eff6ff; color:#1d4ed8; border:1px solid #dbeafe; }
/* Self-reported is the one worth noticing: nothing has verified it. */
.wz-src--reported  { background:#fffbeb; color:#b45309; border:1px solid #fde68a; }
/* On a score card the tag sits under the label rather than beside it.
   It must be allowed to wrap here: the report lives inside a modal that is
   only ~300px wide on a phone, and a nowrap badge reading "FROM GOOGLE
   PAGESPEED INSIGHTS" set the grid column to 234px, pushing the cards clean
   out of the modal. Measured at a true 375px viewport: 234px/176px columns
   before, 146px/146px after. */
.wz-audit-scorecard .wz-src { display:block; margin:4px auto 0; white-space:normal;
    width:-moz-fit-content; width:fit-content; max-width:100%; }
/* 1fr only behaves as a fair share when the item is allowed to shrink; grid
   items default to min-width:auto, which is their content width. */
.wz-audit-scores > * { min-width:0; }
@media (max-width:575px) { .wz-src { font-size:.6rem; margin-left:5px; } }

.wz-audit-checks { display:grid; grid-template-columns:repeat(2,1fr); gap:6px 18px; }
.wz-audit-check { display:flex; align-items:center; gap:8px; font-size:.85rem; padding:4px 0; }
.wz-audit-check__lbl { flex:1; color:#1e293b; font-weight:700; }
.wz-audit-check__val { color:#64748b; font-size:.8rem; font-weight:600; }
/* "Create task" on a failing audit check. Always visible -- turning an issue
   into work is the point of the screen, and hiding it behind hover left it
   undiscoverable and unusable on touch. Muted at rest so eleven of them do not
   shout over the results; it fills in on hover and on keyboard focus. */
.wz-audit-check__task { flex:none; white-space:nowrap; color:#64748b;
    border:1px solid transparent; border-radius:999px;
    padding:2px 9px; font-size:.72rem; font-weight:700; text-decoration:none;
    transition:color .15s ease, background .15s ease, border-color .15s ease; }
.wz-audit-check:hover .wz-audit-check__task { color:#1d4ed8; }
.wz-audit-check__task:hover,
.wz-audit-check__task:focus-visible { color:#1d4ed8; background:#eff6ff;
    border-color:#bfdbfe; text-decoration:none; outline:none; }
.wz-audit-check__task:focus-visible { box-shadow:0 0 0 2px rgba(29,78,216,.35); }

.wz-audit-check--pass i { color:#16a34a; } .wz-audit-check--warn i { color:#f59e0b; } .wz-audit-check--fail i { color:#ef4444; }
.wz-audit-chip { background:#eef2ff; color:#3730a3; border:1px solid #e0e7ff; border-radius:999px; padding:3px 11px; font-size:.78rem; font-weight:600; }
.wz-audit-chip--kw { background:#f1f5f9; color:#334155; border-color:#e2e8f0; }
.wz-audit-na { color:#64748b; font-size:.82rem; }
.wz-audit-meta { display:grid; gap:6px; }
.wz-audit-meta > div { display:flex; justify-content:space-between; gap:12px; font-size:.84rem; border-bottom:1px dashed #eef2f8; padding-bottom:5px; }
.wz-audit-meta span { color:#64748b; } .wz-audit-meta b { color:#0f1b34; text-align:right; }
/* security headers grid (clear Yes/No per header) */
.wz-audit-hdrs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px 14px; }
.wz-audit-hdr { display:flex; align-items:center; justify-content:space-between; gap:8px; background:#f7faff; border:1px solid #e6ecf5; border-radius:8px; padding:7px 10px; font-size:.82rem; }
.wz-audit-hdr > span:first-child { color:#334155; font-weight:600; }
.wz-audit-yn { font-weight:700; font-size:.74rem; padding:2px 9px; border-radius:999px; }
.wz-audit-yn--ok { background:#dcfce7; color:#16a34a; }
.wz-audit-yn--no { background:#fee2e2; color:#dc2626; }
@media (max-width:640px){ .wz-audit-hdrs { grid-template-columns:1fr 1fr; } }
.wz-audit-meta--wide { grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px 14px; margin-top:8px; }
.wz-audit-meta--wide > div { flex-direction:column; align-items:flex-start; gap:3px; border-bottom:none; background:#f7faff; border:1px solid #e6ecf5; border-radius:8px; padding:8px 12px; }
.wz-audit-meta--wide span { font-size:.7rem; color:#64748b; font-weight:700; text-transform:uppercase; letter-spacing:.03em; }
.wz-audit-meta--wide b { text-align:left; color:#0f1b34; font-size:.86rem; }
.wz-audit-note { margin-top:12px; font-size:.8rem; color:#64748b; }
@media (max-width:768px){ .wz-audit-scores { grid-template-columns:repeat(2,1fr); } .wz-audit-checks { grid-template-columns:1fr; } }

/* history table */
.wz-audit-table th { font-size:.74rem; text-transform:uppercase; letter-spacing:.04em; color:#64748b; white-space:nowrap; }
.wz-audit-table td { vertical-align:middle; }
.wz-audit-table .wz-score { min-width:38px; height:38px; font-size:.85rem; border-width:2px; }
.wz-audit-table .wz-cwv { min-width:auto; padding:4px 8px; background:transparent; border:none; }
.wz-audit-sub { font-size:.74rem; color:#64748b; }
.wz-wr-url { color:#1d4ed8; text-decoration:none; font-weight:600; }
.wz-wr-url:hover { text-decoration:underline; }
.wz-audit-empty { text-align:center; padding:36px 20px; color:#64748b; max-width:560px; margin:0 auto; position:sticky; left:0; }
.wz-audit-empty i { font-size:2.6rem; color:#64748b; display:block; }
.wz-audit-empty h5 { margin:14px 0 6px; color:#334155; font-weight:800; }
.wz-audit-empty p { margin:6px auto 0; max-width:480px; font-size:.88rem; white-space:normal; line-height:1.6; }

.wz-cba-chip { display: inline-block; margin: 2px 3px 2px 0; padding: 2px 9px; border-radius: 6px; font-size: .74rem; font-weight: 600; background: #eef2f8; color: #334155; }
.wz-cba-chip.tech { background: #eef5ff; color: #1d4ed8; }
.wz-cba-chip.soc { background: #f0e9ff; color: #6d28d9; text-transform: capitalize; }
.wz-cba-chip.kw { background: #ecfdf5; color: #0f766e; }

.wz-cba-kwbox { margin-top: 16px; padding: 14px 16px; background: #f7faff; border: 1px solid #e3ebf7; border-radius: 12px; }
.wz-cba-kwbox h6 { font-size: .82rem; font-weight: 800; color: #0b2350; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 8px; }

/* toolbar hint + analysis legend */
.wz-comp-hint { flex-basis: 100%; margin-top: 4px; font-size: .8rem; color: #64748b; display: flex; align-items: center; gap: 6px; }
.wz-comp-hint i { color: #1d4ed8; }
.wz-comp-hint b { color: #334155; font-weight: 700; }
.wz-cba-legend { display: flex; flex-wrap: wrap; gap: 16px; margin: 0 0 14px; padding: 8px 12px; background: #f7faff; border: 1px solid #e3ebf7; border-radius: 10px; font-size: .78rem; color: #64748b; }
.wz-cba-legend i { color: #1d4ed8; margin-right: 4px; }
.wz-cba-legend .fa-star { color: #16a34a; }

/* ===== Competitor Analysis — redesigned versus comparison ===== */
.wz-cba-winner { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 12px 16px; border-radius: 12px; background: linear-gradient(135deg, #ecfdf5, #dcfce7); border: 1px solid #bbf7d0; color: #166534; font-size: .9rem; }
.wz-cba-winner i { color: #eab308; font-size: 1.15rem; }
/* You-centric verdict banner */
.wz-cba-verdict { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; padding: 14px 18px; border-radius: 14px; }
.wz-cba-verdict.win { background: linear-gradient(135deg, #ecfdf5, #dcfce7); border: 1px solid #bbf7d0; }
.wz-cba-verdict.lose { background: linear-gradient(135deg, #eff6ff, #eef2ff); border: 1px solid #c7d7fe; }
.wz-cba-verdict__ic { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 12px; display: grid; place-items: center; font-size: 1.25rem; color: #fff; }
.wz-cba-verdict.win .wz-cba-verdict__ic { background: linear-gradient(135deg, #16a34a, #0b7a37); }
.wz-cba-verdict.lose .wz-cba-verdict__ic { background: linear-gradient(135deg, #1d4ed8, #6d28d9); }
.wz-cba-verdict__t { font-size: 1.02rem; font-weight: 800; color: #0f1b34; letter-spacing: -.01em; }
.wz-cba-verdict__s { margin-top: 2px; font-size: .84rem; color: #475569; line-height: 1.5; }
.wz-cba-tablewrap { border: 1px solid #e6ecf5; border-radius: 14px; overflow: auto; max-height: 58vh; }
.wz-cba-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .86rem; table-layout: fixed; }
.wz-cba-table th, .wz-cba-table td { padding: 11px 14px; border-bottom: 1px solid #eef2f8; vertical-align: top; text-align: left; word-break: break-word; overflow-wrap: anywhere; }
.wz-cba-table thead th { background: #0b2350; color: #fff; position: sticky; top: 0; z-index: 3; font-weight: 700; }
.wz-cba-table thead th.wz-cba-colh { vertical-align: bottom; }
.wz-cba-table thead th.wz-cba-colh.wz-cba-leader { background: linear-gradient(135deg, #16a34a, #0b7a37); }
/* "You" / your-site reference column */
.wz-cba-table thead th.wz-cba-colh.wz-cba-you { background: linear-gradient(135deg, #1d4ed8, #6d28d9); }
.wz-cba-table thead th.wz-cba-colh.wz-cba-you.wz-cba-leader { background: linear-gradient(135deg, #16a34a, #1d4ed8); }
.wz-cba-youtag { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 8px; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; background: rgba(255,255,255,.22); padding: 3px 9px; border-radius: 999px; }
.wz-cba-youtag i { color: #fde047; }
.wz-cba-avatar--you { background: rgba(255,255,255,.28); }
.wz-cba-table td.wz-cba-metric, .wz-cba-table th.wz-cba-metric { background: #f7faff; font-weight: 700; color: #334155; position: sticky; left: 0; z-index: 2; width: 208px; white-space: normal; }
.wz-cba-table thead th.wz-cba-metric { background: #0b2350; color: #fff; z-index: 4; }
/* Metric name + plain-language hint (so each row is self-explanatory) */
.wz-cba-mlabel { display: block; font-weight: 700; color: #0f1b34; font-size: .86rem; }
.wz-cba-mhint { display: block; margin-top: 2px; font-weight: 500; font-size: .72rem; line-height: 1.35; color: #7a8aa3; }
.wz-cba-sectdesc { display: block; margin-top: 2px; font-weight: 500; text-transform: none; letter-spacing: 0; font-size: .72rem; color: #64748b; }
/* Explicit "Best" tag on the winning cell — not just a background */
.wz-cba-besttag { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 5px; padding: 2px 8px; border-radius: 999px; background: #16a34a; color: #fff; font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.wz-cba-besttag i { color: #fff; }
.wz-cba-greenword { color: #16a34a !important; }
.wz-cba-ch { display: flex; align-items: center; gap: 10px; }
.wz-cba-avatar { width: 34px; height: 34px; border-radius: 9px; background: rgba(255,255,255,.2); display: grid; place-items: center; font-weight: 800; font-size: 1rem; flex: 0 0 auto; }
.wz-cba-chinfo { min-width: 0; display: flex; flex-direction: column; }
.wz-cba-chinfo a { color: #fff; font-weight: 700; font-size: .95rem; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.wz-cba-chinfo a:hover { text-decoration: underline; }
.wz-cba-host { font-size: .72rem; font-weight: 500; color: #b8c6e6; }
.wz-cba-leader .wz-cba-host { color: #d1fae5; }
.wz-cba-winbadge { margin-top: 8px; font-size: .72rem; font-weight: 700; background: rgba(255,255,255,.16); display: inline-block; padding: 3px 9px; border-radius: 999px; }
.wz-cba-winbadge i { color: #fde047; }
.wz-cba-sect td { background: #eef2f8 !important; color: #0b2350; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: .72rem; padding: 8px 14px !important; }
.wz-cba-sect i { color: #1d4ed8; margin-right: 6px; }
.wz-cba-cell-win { background: #f0fdf4; box-shadow: inset 3px 0 0 #16a34a; }
.wz-cba-cell-win b, .wz-cba-cell-win .wz-cba-score { color: #16a34a !important; }
.wz-cba-dash { color: #64748b; }
.wz-cba-scorewrap { display: flex; flex-direction: column; gap: 5px; }
.wz-cba-bar { height: 6px; background: #eef2f8; border-radius: 999px; overflow: hidden; width: 100%; max-width: 140px; }
.wz-cba-bar__f { display: block; height: 100%; border-radius: 999px; }
.wz-cba-bar__f.ok { background: #16a34a; }
.wz-cba-bar__f.warn { background: #f59e0b; }
.wz-cba-bar__f.low { background: #ef4444; }
.wz-cba-badge i { font-size: .7em; }
#competitorAnalysisModal .modal-header .btn-light { font-weight: 600; }
/* Flexible analysis modal — width is set by JS to the number of competitors (max-width inline);
   this just centres it and gives a sane fallback. */
#competitorAnalysisModal .modal-dialog { width: 95vw; margin: 1.6rem auto; }
@media (max-width: 1024px) { #competitorAnalysisModal .modal-dialog { width: 98vw; margin: .8rem auto; } }
.wz-cba-hactions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.wz-cba-close { width: 34px; height: 34px; border-radius: 9px; border: 0; background: rgba(255, 255, 255, .22); color: #fff; font-size: 1.05rem; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s; flex: 0 0 auto; }
.wz-cba-close:hover { background: rgba(255, 255, 255, .4); color: #fff; }

/* ===== Competitors list toolbar (clean, replaces the old floating buttons) ===== */
.wz-comp-card { border: 1px solid #e6ecf5; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 3px rgba(15, 23, 42, .05); }
.wz-comp-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border-bottom: 1px solid #eef2f8; padding: 14px 16px; }
.wz-comp-toolbar__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.wz-comp-toolbar__filters { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.wz-comp-search { position: relative; display: inline-flex; }
.wz-comp-search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #64748b; font-size: .85rem; }
.wz-comp-search input { width: 260px; max-width: 60vw; padding: 8px 12px 8px 34px; border: 1px solid #e2e8f0; border-radius: 9px; font-size: .88rem; background: #f8fafc; }
.wz-comp-search input:focus { outline: none; border-color: #1d4ed8; background: #fff; box-shadow: 0 0 0 3px rgba(29, 78, 216, .12); }
.wz-comp-perpage { padding: 8px 10px; border: 1px solid #e2e8f0; border-radius: 9px; font-size: .85rem; background: #f8fafc; color: #334155; }
.wz-comp-perpage:focus { outline: none; border-color: #1d4ed8; box-shadow: 0 0 0 3px rgba(29, 78, 216, .12); }
@media (max-width: 660px) {
    .wz-comp-toolbar__filters { margin-left: 0; width: 100%; }
    .wz-comp-search { flex: 1; }
    .wz-comp-search input { width: 100%; max-width: none; }
}

/* ===== Competitor add/edit form — clean sectioned layout ===== */
.wz-fsec { margin-bottom: 18px; }
.wz-fsec__title { display: flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: #0b2350; padding-bottom: 8px; margin-bottom: 12px; border-bottom: 1px solid #eef2f8; }
.wz-fsec__title i { color: #1d4ed8; }
.wz-fsec__hint { font-weight: 500; text-transform: none; letter-spacing: 0; color: #64748b; }
.wz-f-ic { width: 16px; text-align: center; color: #64748b; margin-right: 3px; }
.wz-fsec__footer { display: flex; justify-content: flex-end; gap: 10px; padding-top: 12px; margin-top: 4px; border-top: 1px solid #eef2f8; }
/* "Your site" reference — auto-filled from the selected project's URL */
.wz-yoursite { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 2px 0 14px; padding: 10px 14px; background: #f0f7ff; border: 1px solid #d6e6ff; border-left: 3px solid #1d4ed8; border-radius: 10px; }
.wz-yoursite__badge { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: #1d4ed8; }
.wz-yoursite__url { font-size: .9rem; font-weight: 600; color: #0b2350; word-break: break-all; }
.wz-yoursite__url:hover { color: #1d4ed8; text-decoration: underline; }
.wz-yoursite__hint { font-size: .78rem; color: #64748b; }
#formModal .modal-header { align-items: flex-start; }
#formModal .form-group label { font-size: .82rem; font-weight: 600; color: #475569; margin-bottom: 4px; }

/* ===== Global modal polish (project-wide) — every Bootstrap modal ===== */
#main-wrapper .modal-content, .wz-dash .modal-content { border: 0; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 60px rgba(11, 35, 80, .26); }
#main-wrapper .modal-header .close, .wz-dash .modal-header .close {
    background: rgba(255, 255, 255, .18); color: #fff; opacity: 1; text-shadow: none;
    width: 32px; height: 32px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.3rem; line-height: 1; transition: background .15s;
}
#main-wrapper .modal-header .close:hover, .wz-dash .modal-header .close:hover { background: rgba(255, 255, 255, .34); color: #fff; }
/* Modal-header subtitles: crisp white on the coloured header — no faded 50% text */
.modal-header .text-white-50 { color: #fff !important; opacity: 1 !important; }
/* Whole coloured modal header → all label text crisp white (project-wide).
   Buttons keep their own colours (btn-light stays dark-on-light, etc.). */
.modal-header.bg-primary, .modal-header.bg-dark, .modal-header.bg-info, .modal-header.bg-success, .modal-header.bg-secondary { color: #fff !important; }
.modal-header.bg-primary .modal-title, .modal-header.bg-dark .modal-title, .modal-header.bg-info .modal-title, .modal-header.bg-success .modal-title, .modal-header.bg-secondary .modal-title,
.modal-header.bg-primary small, .modal-header.bg-dark small, .modal-header.bg-info small, .modal-header.bg-success small, .modal-header.bg-secondary small,
.modal-header.bg-primary p, .modal-header.bg-dark p, .modal-header.bg-info p, .modal-header.bg-success p, .modal-header.bg-secondary p,
.modal-header.bg-primary label, .modal-header.bg-primary .text-muted, .modal-header.bg-dark .text-muted, .modal-header.bg-info .text-muted { color: #fff !important; opacity: 1 !important; }

/* View / detail modals — clean stacked "LABEL / value" rows (used by most detail modals) */
#main-wrapper .modal-body .card-body { padding: 0; }
#main-wrapper .modal-body .card-body .row { margin: 0; }
#main-wrapper .modal-body .card-body .row > [class*="col-"] { padding: 9px 14px; min-width: 0; }
#main-wrapper .modal-body .card-body span b,
#main-wrapper .modal-body .card-body > .row b,
#main-wrapper .modal-body .card-body div > span > b {
    display: block; font-size: .7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .04em; color: #64748b; margin-bottom: 3px;
}
#main-wrapper .modal-body .card-body .row > [class*="col-"] > span:last-child,
#main-wrapper .modal-body .card-body .row a { font-size: .92rem; color: #1e293b; word-break: break-word; }
#main-wrapper .modal-body .card-body .row a { color: #1d4ed8; font-weight: 600; }
#main-wrapper .modal-body hr { margin: 2px 0; border: 0; border-top: 1px solid #f1f5f9; }

/* View-modal read-only fields — match the sectioned Add-competitor form */
.wz-vfield { display: flex; flex-direction: column; padding: 8px 0; min-width: 0; }
.wz-vfield__k { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: #64748b; margin-bottom: 3px; display: flex; align-items: center; gap: 6px; }
.wz-vfield__v { font-size: .9rem; color: #1e293b; font-weight: 600; word-break: break-word; }
a.wz-vfield__v { color: #1d4ed8; text-decoration: none; }
a.wz-vfield__v:hover { text-decoration: underline; }
.wz-vfield__na { color: #64748b; font-weight: 500; font-style: italic; }
.wz-cba-score small { font-size: .7em; opacity: .7; font-weight: 600; }

/* Page icon next to the title in the topbar — scoped to the topbar element so
   it works on BOTH the backend (#main-wrapper) and dashboard layouts. */
header.wz-topbar .wz-topbar__headmain {
    display: flex;
    align-items: center;
    gap: 12px;
}
header.wz-topbar .wz-topbar__icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    color: #fff;
    font-size: 1.1rem;
    border-radius: 12px;
    box-shadow: 0 6px 14px rgba(29, 78, 216, .25);
}
header.wz-topbar .wz-topbar__textcol {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Sortable column headers (click to sort, arrow indicates direction) */
#main-wrapper .wz-th-sort {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    transition: color .15s;
}
#main-wrapper .wz-th-sort:hover { color: #1d4ed8; }
#main-wrapper .wz-sort-ic {
    font-size: .72rem;
    color: #c3d0e8;
    margin-left: 4px;
}
#main-wrapper .wz-sort-ic.is-active { color: #1d4ed8; }

/* ============================================================
   Modal close button — position it properly INSIDE the modal
   (the enterprise overflow:hidden + rounded corners were clipping
   Bootstrap's default negative-margin .close). Works for BS4 .close
   and BS5 .btn-close.
   ============================================================ */
#main-wrapper .modal-content {
    position: relative;
}
#main-wrapper .modal-content > .close,
#main-wrapper .modal-content .modal-header .close,
#main-wrapper .modal-content .modal-header .closenig,
#main-wrapper .modal-content .modal-header .btn-close {
    position: absolute;
    top: 14px;
    right: 16px;
    margin: 0;
    z-index: 5;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: rgba(15, 27, 52, .06);
    color: #334155;
    font-size: 1.4rem;
    line-height: 1;
    opacity: 1;
    text-shadow: none;
    cursor: pointer;
    transition: background-color .15s, color .15s;
}
#main-wrapper .modal-content .modal-header .close:hover,
#main-wrapper .modal-content .modal-header .closenig:hover,
#main-wrapper .modal-content .modal-header .btn-close:hover {
    background: rgba(15, 27, 52, .12);
    color: #0b2350;
}
/* On a gradient (bg-primary) header, make the close light so it stays visible */
#main-wrapper .modal-header.bg-primary .close,
#main-wrapper .modal-header.bg-primary .closenig {
    background: rgba(255, 255, 255, .16);
    color: #fff;
}
#main-wrapper .modal-header.bg-primary .close:hover,
#main-wrapper .modal-header.bg-primary .closenig:hover {
    background: rgba(255, 255, 255, .3);
    color: #fff;
}

/* ============================================================
   MODALS — enterprise redesign (applies to every modal)
   ============================================================ */
#main-wrapper .modal-content {
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 27, 52, .22);
}
#main-wrapper .modal-header {
    border-bottom: 1px solid #eef2f8;
    padding: 18px 22px;
    align-items: center;
}
#main-wrapper .modal-header.bg-primary,
#main-wrapper .modal-header.bg-dark,
#main-wrapper .modal-header.bg-info,
#main-wrapper .modal-header.bg-success {
    background: linear-gradient(135deg, #0b2350, #1d4ed8) !important;
    border-bottom: 0;
}
#main-wrapper .modal-header.bg-primary .modal-title,
#main-wrapper .modal-header.bg-dark .modal-title { color: #fff !important; }
#main-wrapper .modal-title {
    font-weight: 700;
    font-size: 1.08rem;
    color: #0b2350;
}
#main-wrapper .modal-body {
    padding: 22px;
}
#main-wrapper .modal-body label,
#main-wrapper .modal-body .control-label {
    font-weight: 600;
    font-size: .84rem;
    color: #334d77;
    margin-bottom: 6px;
}
#main-wrapper .modal-footer {
    border-top: 1px solid #eef2f8;
    padding: 14px 22px;
    gap: 8px;
}
#main-wrapper .modal-footer .btn { border-radius: 10px; font-weight: 600; }
#main-wrapper .modal .modal-dialog { margin-top: 5vh; }

/* ============================================================
   ACTION BUTTONS — compact icon buttons with colour-coded hover
   (use title="..." for the hover tooltip). Variants: view/edit/delete.
   ============================================================ */
#main-wrapper .wz-action-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    border: 1px solid #e3e9f3;
    background: #fff;
    color: #64748b;
    font-size: .9rem;
    margin: 0 2px;
    cursor: pointer;
    transition: background-color .15s, color .15s, border-color .15s, transform .12s;
}
#main-wrapper .wz-action-btn:hover { transform: translateY(-1px); }
#main-wrapper .wz-action-btn--view:hover   { background: #eef4ff; color: #1d4ed8; border-color: #cdddfb; }
#main-wrapper .wz-action-btn--edit:hover   { background: #e7f6ef; color: #0d8a52; border-color: #b6e6cf; }
#main-wrapper .wz-action-btn--delete:hover { background: #fdecec; color: #d63b3b; border-color: #f3b6b6; }

/* Action cell wrapper (used by JS-built DataTable rows on webaccess/keymanager) */
#main-wrapper .wz-action-cell { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }

/* ============================================================
   Influencer dashboard — enterprise layout (KPI cards, hero, panels)
   ============================================================ */
.wz-dash { padding: 8px 28px 30px; }
@media (max-width: 600px) { .wz-dash { padding: 6px 14px 22px; } }
.wz-dash-hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: linear-gradient(135deg, #0b2350, #1d4ed8); color: #fff; border-radius: 18px; padding: 24px 28px; margin-bottom: 22px; box-shadow: 0 16px 40px rgba(13, 35, 80, .25); }
.wz-dash-hero__title { font-size: 1.6rem; font-weight: 800; margin: 0 0 4px; color: #fff; }
.wz-dash-hero__sub { margin: 0; opacity: .85; font-size: .95rem; color: #fff; }
.wz-dash-hero__btn { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .16); color: #fff; border: 1px solid rgba(255, 255, 255, .28); padding: 10px 18px; border-radius: 10px; font-weight: 600; text-decoration: none; transition: background-color .15s; }
.wz-dash-hero__btn:hover { background: rgba(255, 255, 255, .3); color: #fff; }

.wz-kpi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 22px; }
@media (min-width: 768px) { .wz-kpi-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .wz-kpi-grid { grid-template-columns: repeat(6, 1fr); } }
.wz-kpi { position: relative; display: flex; flex-direction: column; gap: 14px; background: #fff; border: 1px solid #eef2f8; border-radius: 16px; padding: 18px 20px; box-shadow: 0 6px 18px rgba(15, 27, 52, .05); overflow: hidden; transition: transform .15s, box-shadow .15s, border-color .15s; }
.wz-kpi::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--wz-kpi-accent, #1d4ed8); }
.wz-kpi:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(15, 27, 52, .12); border-color: #dde6f6; }
.wz-kpi__top { display: flex; align-items: center; gap: 10px; }
.wz-kpi__icon { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; }
.wz-kpi__label { font-size: .76rem; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .03em; line-height: 1.2; }
.wz-kpi__value { font-size: 2.1rem; font-weight: 800; line-height: 1; color: var(--wz-kpi-accent, #0f1b34); word-break: break-word; }
.wz-kpi--blue { --wz-kpi-accent: #1d4ed8; } .wz-kpi--blue .wz-kpi__icon { background: #e8f0ff; color: #1d4ed8; }
.wz-kpi--green { --wz-kpi-accent: #0d8a52; } .wz-kpi--green .wz-kpi__icon { background: #e7f6ef; color: #0d8a52; }
.wz-kpi--amber { --wz-kpi-accent: #c77700; } .wz-kpi--amber .wz-kpi__icon { background: #fef4e6; color: #c77700; }
.wz-kpi--indigo { --wz-kpi-accent: #5b4bdb; } .wz-kpi--indigo .wz-kpi__icon { background: #eceaff; color: #5b4bdb; }
.wz-kpi--red { --wz-kpi-accent: #d63b3b; } .wz-kpi--red .wz-kpi__icon { background: #fdecec; color: #d63b3b; }
.wz-kpi--teal { --wz-kpi-accent: #0d8a8a; } .wz-kpi--teal .wz-kpi__icon { background: #e3f6f4; color: #0d8a8a; }
.wz-kpi--sky { --wz-kpi-accent: #0284c7; } .wz-kpi--sky .wz-kpi__icon { background: #e0f2fe; color: #0284c7; }

/* clickable panel (Profile Completeness card links to profile setup) */
.wz-panel--link { display: block; text-decoration: none; color: inherit; cursor: pointer; }
.wz-panel--link:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(15, 27, 52, .12); color: inherit; text-decoration: none; }
.wz-panel-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; background: #1d4ed8; color: #fff; padding: 9px 16px; border-radius: 10px; font-weight: 600; font-size: .9rem; text-decoration: none; transition: background-color .15s; }
.wz-panel--link:hover .wz-panel-cta { background: #163bb0; }

/* Keep the label white when the pointer is on it.
   --------------------------------------------------------------------------
   This is a white-on-blue button written as an <a>, and the theme carries a
   global `a:hover { color: #0056b3 }`. With no hover colour of its own the
   button inherited that -- blue text on a blue button -- and the label
   disappeared under the pointer. Measured contrast on hover: 1.05, where
   1.0 is literally the same colour.

   It rendered correctly, screenshotted correctly and passed every markup
   assertion, because none of those ever leave the resting state. It was
   found by tests/browser/probe-hover-contrast.js, which is now part of the
   recorded run for exactly this reason.

   The class beats the bare element selector on specificity, so the global
   rule cannot win here again. */
.wz-panel-cta:hover,
.wz-panel-cta:focus,
.wz-panel-cta:focus-visible {
    background: #163bb0;
    color: #fff;
}

.wz-panel-cta:focus-visible {
    outline: 2px solid #163bb0;
    outline-offset: 2px;
}
/* The count belongs BESIDE the title it counts, not shoved to the far edge.
   margin-left:auto here pushed it into the middle of the header, because the
   collapse button carries an auto margin too and flex split the free space
   between them -- measured at 236px of gap after the words 'My Posts'.
   Only the collapse button pushes right now. */
.wz-count-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 22px; padding: 0 8px; border-radius: 999px; background: #e8f0ff; color: #1d4ed8; font-size: .78rem; font-weight: 700; }

.wz-dash-panels { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 991px) { .wz-dash-panels { grid-template-columns: 1fr; } }
.wz-panel { background: #fff; border: 1px solid #eef2f8; border-radius: 16px; padding: 20px; box-shadow: 0 6px 18px rgba(15, 27, 52, .05); }
.wz-panel__head { display: flex; align-items: center; justify-content: flex-start; gap: 10px; font-weight: 700; color: #0f1b34; margin-bottom: 14px; font-size: 1.05rem; }
.wz-panel__head i { color: #1d4ed8; }
.wz-progress { height: 10px; background: #eef2f8; border-radius: 999px; overflow: hidden; margin-top: 12px; }
.wz-progress__bar { height: 100%; background: linear-gradient(90deg, #1d4ed8, #0d8a8a); border-radius: 999px; transition: width .4s; }
.wz-empty-soft { color: #64748b; font-size: .92rem; padding: 8px 2px; }

/* Become Influencer — step wizard */
#main-wrapper .wz-stepper { display: flex; flex-wrap: nowrap; align-items: stretch; gap: 12px; padding: 4px 0 6px; }
#main-wrapper .wz-step { flex: 1 1 0; position: relative; display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid #e7edf6; border-radius: 14px; padding: 16px 18px; color: #0f1b34; cursor: pointer; text-decoration: none; overflow: hidden; transition: border-color .15s, box-shadow .15s, transform .15s, background-color .15s; }
#main-wrapper .wz-step::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--wz-step-accent, #1d4ed8); opacity: 0; transition: opacity .15s; }
#main-wrapper .wz-step:hover { border-color: #cdddfb; box-shadow: 0 12px 26px rgba(29, 78, 216, .12); transform: translateY(-2px); background: #fbfdff; color: #0f1b34; text-decoration: none; }
#main-wrapper .wz-step:hover::before { opacity: 1; }
#main-wrapper .wz-step__num { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, #1d4ed8, #0b2350); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 800; box-shadow: 0 6px 14px rgba(29, 78, 216, .3); }
#main-wrapper .wz-step__text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
#main-wrapper .wz-step__kicker { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #64748b; }
#main-wrapper .wz-step__label { font-size: .98rem; font-weight: 700; color: #0f1b34; white-space: normal; overflow-wrap: anywhere; }
#main-wrapper .wz-step__go { margin-left: auto; color: #c2cdde; font-size: .8rem; transition: transform .15s, color .15s; }
#main-wrapper .wz-step:hover .wz-step__go { color: #1d4ed8; transform: translateX(3px); }
#main-wrapper .wz-step--link { --wz-step-accent: #0d8a52; }
#main-wrapper .wz-step--link .wz-step__num { background: linear-gradient(135deg, #0d8a52, #0a6e42); box-shadow: 0 6px 14px rgba(13, 138, 82, .3); }
#main-wrapper .wz-step--link:hover { border-color: #b6e6cf; box-shadow: 0 12px 26px rgba(13, 138, 82, .12); }
#main-wrapper .wz-step--link:hover .wz-step__go { color: #0d8a52; }
@media (max-width: 992px) {
    #main-wrapper .wz-stepper { flex-direction: column; align-items: stretch; }
    #main-wrapper .wz-step { flex: 1 1 auto; }
}

/* Become Influencer — summary + platform cards (restructured) */
#main-wrapper .wz-infl-kpis { margin-bottom: 18px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 991px) { #main-wrapper .wz-infl-kpis { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { #main-wrapper .wz-infl-kpis { grid-template-columns: 1fr; } }
#main-wrapper .wz-infl-kpis .wz-kpi__value { white-space: nowrap; }
#main-wrapper .wz-infl-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); gap: 16px; }
#main-wrapper .wz-infl-card { border: 1px solid #eef2f8; border-radius: 14px; padding: 16px; background: #fff; transition: box-shadow .15s, transform .15s, border-color .15s; }
#main-wrapper .wz-infl-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(15, 27, 52, .1); }
#main-wrapper .wz-infl-card.is-connected { border-color: #cfe0fb; box-shadow: 0 4px 14px rgba(29, 78, 216, .06); }
#main-wrapper .wz-infl-card__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
#main-wrapper .wz-infl-card__ic { width: 42px; height: 42px; border-radius: 11px; background: #f3f6fb; display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; flex: 0 0 42px; }
#main-wrapper .wz-infl-card__name { font-weight: 700; color: #0f1b34; font-size: 1rem; text-decoration: none; }
#main-wrapper .wz-infl-card__name:hover { color: #1d4ed8; text-decoration: underline; }
#main-wrapper .wz-infl-card__name--off { color: #64748b; }
#main-wrapper .wz-infl-card__status { margin-left: auto; font-weight: 700; }
#main-wrapper .wz-infl-card__status.is-on { color: #0d8a52; font-size: 1.15rem; }
#main-wrapper .wz-infl-card__status.is-off { color: #b3bccc; font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; }
#main-wrapper .wz-infl-card__stats { display: flex; gap: 10px; margin-bottom: 14px; }
#main-wrapper .wz-infl-card__stats > div { flex: 1; background: #f7f9fc; border: 1px solid #eef2f8; border-radius: 10px; padding: 10px 6px; text-align: center; }
#main-wrapper .wz-infl-card__stats .num { display: block; font-weight: 800; color: #0f1b34; font-size: 1.05rem; word-break: break-word; }
#main-wrapper .wz-infl-card__stats .lbl { display: block; font-size: .68rem; color: #64748b; text-transform: uppercase; letter-spacing: .03em; margin-top: 3px; }
#main-wrapper .wz-infl-card__foot { display: flex; align-items: center; justify-content: space-between; }
/* dynamic per-platform icon colour is passed in as the --wz-ic custom property */
#main-wrapper .wz-infl-card__ic { color: var(--wz-ic, inherit); }
.wz-kpi__frac { font-size: 1.1rem; color: #64748b; font-weight: 700; }
.wz-infl-price__per { color: #64748b; font-weight: 600; }
.wz-panel--gap { margin-bottom: 18px; }

/* ===== Professional empty-state / onboarding template (TaskBoard etc.) ===== */
#main-wrapper .wz-empty-pro { text-align: center; padding: 28px 16px 36px; }
#main-wrapper .wz-empty-pro-card { padding: 16px; }
#main-wrapper .wz-empty-pro-card .wz-ep-card { background: #f8fafd; }
#main-wrapper .wz-empty-pro-card .wz-ep-card:hover { background: #fff; }
@media (max-width: 600px) {
    #main-wrapper .wz-empty-pro { padding: 18px 6px 22px; }
    #main-wrapper .wz-empty-pro-card { padding: 8px; }
    #main-wrapper .wz-empty-pro__ic { width: 62px; height: 62px; font-size: 1.6rem; border-radius: 18px; margin-bottom: 14px; }
    #main-wrapper .wz-empty-pro__title { font-size: 1.2rem; word-break: break-word; }
    #main-wrapper .wz-empty-pro__sub { font-size: .88rem; line-height: 1.5; margin-bottom: 18px; }
    /* single full-width column — the minmax(240px) base would overflow narrow phones */
    #main-wrapper .wz-empty-pro__cards { gap: 12px; grid-template-columns: 1fr !important; max-width: 100%; }
    #main-wrapper .wz-ep-card { padding: 15px; min-width: 0; }
    #main-wrapper .wz-ep-card__title,
    #main-wrapper .wz-ep-card__desc { word-break: break-word; overflow-wrap: anywhere; }
}
#main-wrapper .wz-empty-pro__ic { width: 88px; height: 88px; margin: 0 auto 18px; border-radius: 24px; background: linear-gradient(135deg, #eef4ff, #e0f2fe); color: #1d4ed8; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; box-shadow: 0 10px 26px rgba(29, 78, 216, .14); }
#main-wrapper .wz-empty-pro__title { font-size: 1.5rem; font-weight: 800; color: #0f1b34; margin: 0 0 8px; }
#main-wrapper .wz-empty-pro__sub { color: #64748b; max-width: 580px; margin: 0 auto 28px; font-size: .98rem; line-height: 1.6; }
#main-wrapper .wz-empty-pro__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; max-width: 920px; margin: 0 auto; }
#main-wrapper .wz-ep-card { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 7px; background: #fff; border: 1px solid #eef2f8; border-radius: 16px; padding: 22px; text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; }
#main-wrapper .wz-ep-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(15, 27, 52, .1); border-color: #cdddfb; text-decoration: none; }
#main-wrapper .wz-ep-card__ic { width: 48px; height: 48px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 4px; }
#main-wrapper .wz-ep-card__ic--blue { background: #e8f0ff; color: #1d4ed8; }
#main-wrapper .wz-ep-card__ic--green { background: #e7f6ef; color: #0d8a52; }
#main-wrapper .wz-ep-card__ic--amber { background: #fef4e6; color: #c77700; }
#main-wrapper .wz-ep-card__title { font-weight: 700; color: #0f1b34; font-size: 1.05rem; }
#main-wrapper .wz-ep-card__desc { color: #64748b; font-size: .88rem; line-height: 1.5; }
#main-wrapper .wz-ep-card__go { margin-top: 6px; color: #1d4ed8; font-weight: 700; font-size: .88rem; display: inline-flex; align-items: center; gap: 6px; }
#main-wrapper .wz-ep-card__go i { transition: transform .15s; }
#main-wrapper .wz-ep-card:hover .wz-ep-card__go i { transform: translateX(3px); }

/* ===== Work Status (task tracking timeline) — enterprise ===== */
#main-wrapper .wz-workstatus .card { border: 1px solid #eef2f8 !important; border-radius: 16px; box-shadow: 0 6px 18px rgba(15, 27, 52, .06); overflow: hidden; margin-bottom: 18px; }
#main-wrapper .wz-workstatus .card-header.bg-primary { background: linear-gradient(135deg, #0b2350, #1d4ed8) !important; border: 0; font-weight: 700; padding: 14px 20px; letter-spacing: .01em; }
#main-wrapper .wz-workstatus .card-body { padding: 18px 20px; }
#main-wrapper .wz-workstatus .card-body .card-header.bg-light { background: #f7f9fc !important; border: 1px solid #eef2f8 !important; border-radius: 12px !important; box-shadow: none; }
#main-wrapper .wz-workstatus .card-body > .d-flex strong { color: #64748b; font-weight: 600; }
#main-wrapper .wz-workstatus .card-body > .d-flex > div { padding: 2px 0; }
#main-wrapper .wz-workstatus .btn { border-radius: 10px; font-weight: 600; }
#main-wrapper .wz-workstatus .btn-primary { background: linear-gradient(135deg, #1d4ed8, #0b2350); border: 0; }
#main-wrapper .wz-workstatus .btn-info { background: #0d8a8a; border: 0; }

/* ===== Influencer Wallet — enterprise ===== */
#main-wrapper .wz-wallet-kpis { grid-template-columns: repeat(4, 1fr); margin-bottom: 18px; }
@media (max-width: 991px) { #main-wrapper .wz-wallet-kpis { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { #main-wrapper .wz-wallet-kpis { grid-template-columns: 1fr; } }
#main-wrapper .wz-wallet-kpis .wz-kpi__value { white-space: nowrap; }
#main-wrapper .wz-wallet-filters { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
#main-wrapper .wz-wallet-chips { display: inline-flex; gap: 8px; flex-wrap: wrap; }
#main-wrapper .wz-wallet-chip { border: 1px solid #e3e9f3; background: #fff; color: #475569; border-radius: 999px; padding: 7px 16px; font-weight: 600; font-size: .88rem; cursor: pointer; transition: border-color .15s, color .15s, background-color .15s; }
#main-wrapper .wz-wallet-chip:hover { border-color: #1d4ed8; color: #1d4ed8; background: #eef4ff; }
#main-wrapper .wz-wallet-fields { display: flex; flex-wrap: wrap; gap: 10px; }
#main-wrapper .wz-wallet-field { display: flex; flex-direction: column; }
#main-wrapper .wz-field-label { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: #64748b; margin-bottom: 4px; }
#main-wrapper .wz-wallet-field .form-control { border: 1px solid #e3e9f3; border-radius: 10px; min-width: 150px; }
#main-wrapper .wz-wallet-field .form-control:focus { border-color: #1d4ed8; box-shadow: 0 0 0 3px rgba(29, 78, 216, .12); }

/* Become Influencer — social sites table */
#main-wrapper .wz-infl-table th { font-weight: 700; color: #475569; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; border-top: 0; }
#main-wrapper .wz-infl-table td { vertical-align: middle; padding-top: 14px; padding-bottom: 14px; }
#main-wrapper .wz-infl-social { display: inline-flex; align-items: center; gap: 12px; }
#main-wrapper .wz-infl-social__ic { width: 38px; height: 38px; border-radius: 10px; background: #f3f6fb; display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem; flex: 0 0 38px; }
#main-wrapper .wz-infl-social__name { font-weight: 700; color: #0f1b34; text-decoration: none; }
#main-wrapper .wz-infl-social__name:hover { color: #1d4ed8; text-decoration: underline; }
#main-wrapper .wz-infl-social__name--off { color: #64748b; }
#main-wrapper .wz-infl-stat { font-weight: 700; color: #0f1b34; font-size: 1.05rem; }
#main-wrapper .wz-infl-muted { color: #64748b; font-style: italic; font-size: .9rem; }
#main-wrapper .wz-infl-price { font-weight: 800; color: #0d8a52; font-size: 1.05rem; }
#main-wrapper .wz-badge--muted { background: #eef2f8; color: #64748b; }

/* Right-aligned toolbar (filter + refresh + export + add) like the Projects page */
#main-wrapper .wz-dt-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; margin-bottom: 16px; }
#main-wrapper .wz-dt-toolbar .mr-2 { margin-right: 0 !important; }

/* ===== DataTables controls styled like the Livewire toolbar (search/filter/per-page/sort) ===== */
#main-wrapper .dataTables_wrapper .dataTables_filter input,
#main-wrapper .wz-dt-filter,
#main-wrapper .dataTables_wrapper .dataTables_length select {
    border: 1px solid #e3e9f3;
    border-radius: 10px;
    padding: 8px 12px;
    background: #fff;
    color: #1e293b;
    font-size: .9rem;
    line-height: 1.2;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
#main-wrapper .wz-dt-filter { height: 38px; min-width: 160px; cursor: pointer; }
#main-wrapper .dataTables_wrapper .dataTables_filter input { min-width: 220px; margin-left: 8px; }
#main-wrapper .dataTables_wrapper .dataTables_filter input:focus,
#main-wrapper .wz-dt-filter:focus,
#main-wrapper .dataTables_wrapper .dataTables_length select:focus {
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, .12);
}
#main-wrapper .dataTables_wrapper .dataTables_length,
#main-wrapper .dataTables_wrapper .dataTables_filter { margin-bottom: 12px; }
#main-wrapper .dataTables_wrapper .dataTables_length label,
#main-wrapper .dataTables_wrapper .dataTables_filter label { font-weight: 600; color: #64748b; }

/* SSL / status badges on the Projects table (version-safe, not Bootstrap-dependent) */
.wz-badge {
    display: inline-block;
    padding: .26em .7em;
    font-size: .74rem;
    font-weight: 700;
    line-height: 1.2;
    border-radius: 999px;
    white-space: nowrap;
}
.wz-badge i { font-size: .72rem; margin-right: .25rem; }
.wz-badge--ok     { background: #e6f6ec; color: #1e7e34; }
.wz-badge--warn   { background: #fff4e0; color: #b76e00; }
.wz-badge--danger { background: #fdeaed; color: #c0303f; }
.wz-badge--muted  { background: #eef2f8; color: #6b7280; }
.wz-ssl-date { font-size: .82rem; font-weight: 600; color: #334155; margin-left: .4rem; }
.wz-status-cell { display: inline-flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.wz-down-reason { font-size: .78rem; font-weight: 600; color: #c0303f; margin-left: .35rem; }
.wz-up-note { font-size: .74rem; font-weight: 500; color: #64748b; margin-left: .35rem; max-width: 14rem; }

/* Sortable header arrows (match the Livewire wz-sort-ic look) */
#main-wrapper table.dataTable thead th.sorting,
#main-wrapper table.dataTable thead th.sorting_asc,
#main-wrapper table.dataTable thead th.sorting_desc { cursor: pointer; position: relative; }
#main-wrapper table.dataTable thead th.sorting:after,
#main-wrapper table.dataTable thead th.sorting_asc:after,
#main-wrapper table.dataTable thead th.sorting_desc:after {
    /* force the loaded Font Awesome 5 font — beats the global style.css
       rule that hardcodes FA4 ("fontawesome !important"), which isn't loaded here */
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    margin-left: 6px;
    font-size: .72rem;
}
#main-wrapper table.dataTable thead th.sorting:after { content: "\f0dc" !important; opacity: .4; }
#main-wrapper table.dataTable thead th.sorting_asc:after { content: "\f0de" !important; color: #1d4ed8; }
#main-wrapper table.dataTable thead th.sorting_desc:after { content: "\f0dd" !important; color: #1d4ed8; }

/* ===== View-details modal (read-only key/value list) ===== */
.wz-view-list { display: flex; flex-direction: column; gap: 2px; }
.wz-view-row { display: flex; align-items: flex-start; gap: 14px; padding: 12px 4px; border-bottom: 1px solid #eef2f8; }
.wz-view-row:last-child { border-bottom: 0; }
.wz-view-label { flex: 0 0 120px; font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #8a97ab; padding-top: 2px; }
.wz-view-value { flex: 1 1 auto; font-size: .95rem; font-weight: 600; color: #1e293b; word-break: break-word; overflow-wrap: anywhere; }
.wz-view-link { color: #1d4ed8; text-decoration: none; }
.wz-view-link:hover { text-decoration: underline; }

/* ============================================================
   GLOBAL MOBILE RESPONSIVENESS — applies to BOTH the #main-wrapper
   backend pages and the .main-wrapper dashboard. Loads last so it
   wins over legacy template + per-page <style> rules.
   ============================================================ */
@media (max-width: 991px) {
    /* No horizontal scroll / no empty side gaps */
    html, body { overflow-x: hidden; max-width: 100%; }
    #main-wrapper, .main-wrapper.mdc-drawer-app-content { max-width: 100%; overflow-x: hidden; }
    #main-wrapper .page-wrapper, .main-wrapper .page-wrapper { max-width: 100%; }
    #main-wrapper .page-wrapper > .container-fluid,
    .main-wrapper .page-wrapper > .container-fluid { max-width: 100%; }

    /* Right-aligned toolbars → stack full width (no empty left/right) */
    .wz-invite-bar, .wz-dt-toolbar {
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 10px !important;
    }
    .wz-invite-bar > *, .wz-dt-toolbar > * { width: 100%; margin: 0 !important; }
    .wz-invite-bar .btn, .wz-dt-toolbar .btn,
    .wz-export-btn, .wz-dt-filter, .wz-card-refresh,
    .wz-invite-bar > div { width: 100% !important; justify-content: center; }

    /* DataTables native controls → stack + full width */
    #main-wrapper .dataTables_wrapper .dataTables_length,
    #main-wrapper .dataTables_wrapper .dataTables_filter {
        float: none !important; text-align: left !important; width: 100%; margin-bottom: 10px;
    }
    #main-wrapper .dataTables_wrapper .dataTables_filter input { width: 100%; margin-left: 0; display: block; margin-top: 4px; }
    #main-wrapper .dataTables_wrapper .dataTables_paginate { float: none !important; text-align: center !important; margin-top: 10px; }
    #main-wrapper .dataTables_wrapper .dataTables_info { text-align: center; }

    /* Tables never blow out the layout — scroll inside their container */
    #main-wrapper .table-responsive, .main-wrapper .table-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

@media (max-width: 600px) {
    /* tighter side padding so content uses the full width on phones */
    #main-wrapper .page-wrapper > .container-fluid { padding-left: 14px !important; padding-right: 14px !important; }
    #main-wrapper .container-fluid { padding-left: 14px; padding-right: 14px; }
    .wz-dash { padding-left: 14px; padding-right: 14px; }
}

/* ===== Keys Manager — how-it-works guide + modal hint ===== */
.wz-km-guide {
    background: #f4f8fa;
    border: 1px solid #dce7ec;
    border-radius: 12px;
    padding: 20px 22px;
    margin-top: 32px;
    margin-bottom: 18px;
}
.wz-km-guide__head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}
.wz-km-guide__icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #1d6b87;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}
.wz-km-guide__title {
    font-size: 18px;
    font-weight: 700;
    color: #1d6b87;
    margin: 2px 0 4px;
}
.wz-km-guide__sub {
    font-size: 14px;
    color: #4a5c66;
    margin: 0;
    line-height: 21px;
}
.wz-km-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.wz-km-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fff;
    border: 1px solid #e3ecf0;
    border-radius: 10px;
    padding: 14px 15px;
}
.wz-km-step__n {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #1d6b87;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wz-km-step__body {
    font-size: 13.5px;
    color: #33454f;
    line-height: 20px;
}
.wz-km-code {
    background: #eef3f6;
    border: 1px solid #d7e2e8;
    border-radius: 4px;
    padding: 1px 6px;
    font-family: "SFMono-Regular", Consolas, Menlo, monospace;
    font-size: 12.5px;
    color: #1d6b87;
}
.wz-km-warn {
    margin: 14px 0 0;
    font-size: 13px;
    color: #8a2b21;
    background: #fdf3f2;
    border: 1px solid #f3c9c4;
    border-radius: 8px;
    padding: 10px 14px;
}
.wz-km-warn i { margin-right: 6px; }
.wz-km-modalhint {
    font-size: 13.5px;
    color: #4a5c66;
    background: #f4f8fa;
    border: 1px solid #dce7ec;
    border-radius: 8px;
    padding: 11px 14px;
    line-height: 20px;
    margin-bottom: 16px;
}
@media (max-width: 767px) {
    .wz-km-steps { grid-template-columns: 1fr; }
}

/* ===================== WizBrand Vault (POC) ===================== */
.wz-vault { padding: 4px 0 24px; }

/* Lock / create screen */
.wz-vault-lock {
    max-width: 420px;
    margin: 40px auto;
    background: #fff;
    border: 1px solid #e3ecf0;
    border-radius: 14px;
    padding: 34px 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.wz-vault-lock__icon {
    width: 62px; height: 62px; margin: 0 auto 16px;
    border-radius: 50%; background: #1d6b87; color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.wz-vault-lock__title { font-size: 22px; font-weight: 700; color: #1d6b87; margin: 0 0 8px; }
.wz-vault-lock__sub { font-size: 14px; color: #5a6b74; margin: 0 0 22px; line-height: 21px; }
.wz-vault-lock__form { text-align: left; }
.wz-vault-err { color: #c0392b; font-size: 13px; margin-top: 5px; }

/* Toolbar */
.wz-vault-bar {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 10px; margin-bottom: 18px;
}
.wz-vault-bar__status { color: #1e824c; font-weight: 600; font-size: 14px; }
.wz-vault-bar__status i { margin-right: 6px; }

/* Item grid + cards */
.wz-vault-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.wz-vault-card {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    background: #fff; border: 1px solid #e3ecf0; border-radius: 12px; padding: 12px 16px;
    transition: box-shadow .15s ease, border-color .15s ease;
}
.wz-vault-card:hover { box-shadow: 0 3px 12px rgba(0,0,0,0.07); border-color: #cfe0e8; }
.wz-vault-card__icon {
    flex: 0 0 auto; width: 42px; height: 42px; border-radius: 10px;
    background: #eef3f6; color: #1d6b87; display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.wz-vault-card__body { flex: 1 1 160px; min-width: 140px; }
.wz-vault-card__name { font-weight: 600; color: #26343c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wz-vault-card__type { font-size: 12px; color: #8ba0aa; }
.wz-vault-card__sub { font-size: 12.5px; color: #6b7d86; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wz-vault-card__sub i { margin-right: 4px; opacity: .65; font-size: 11px; }
.wz-vault-card__dot { margin: 0 7px; color: #cbd5da; }
.wz-vault-card__actions { flex: 0 0 auto; display: flex; gap: 4px; margin-left: auto; }
.wz-vault-ibtn { color: #4a6b78; padding: 7px 10px; border-radius: 8px; border: 1px solid transparent; line-height: 1; }
.wz-vault-ibtn:hover { background: #eef3f6; border-color: #dbe7ec; color: #14495c; }
.wz-vault-ibtn--danger { color: #c0392b; }
.wz-vault-ibtn--danger:hover { background: #fdecea; border-color: #f5cfc9; }
.wz-vault-ibtn.wz-fav { color: #c3ccd2; }
.wz-vault-ibtn.wz-fav:hover { color: #f1c40f; }

/* Empty state */
.wz-vault-empty { text-align: center; padding: 50px 20px; color: #8ba0aa; }
.wz-vault-empty i { font-size: 40px; margin-bottom: 12px; }
.wz-vault-empty h3 { color: #5a6b74; font-size: 18px; margin: 0 0 6px; }
.wz-vault-empty p { margin: 0; font-size: 14px; }

/* Add form password row */
.wz-vault-pwrow { display: flex; gap: 8px; }
.wz-vault-pwrow .form-control { flex: 1 1 auto; }

/* View fields */
.wz-vault-field { margin-bottom: 14px; }
.wz-vault-field__label { display: block; font-size: 12px; font-weight: 600; color: #8ba0aa; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 4px; }
.wz-vault-field__val { display: flex; align-items: center; gap: 8px; background: #f4f8fa; border: 1px solid #e3ecf0; border-radius: 8px; padding: 9px 12px; }
.wz-vault-copytext { flex: 1 1 auto; word-break: break-all; color: #26343c; font-size: 14px; }
.wz-vault-secret { font-family: "SFMono-Regular", Consolas, Menlo, monospace; letter-spacing: .05em; }
.wz-vault-copy { flex: 0 0 auto; color: #1d6b87; padding: 4px 8px; }
.wz-vault-copy:hover { color: #14495c; }

@media (max-width: 575px) {
    .wz-vault-grid { grid-template-columns: 1fr; }
    .wz-vault-bar { flex-direction: column; align-items: stretch; }
}

/* Vault filter bar (search + category) */
.wz-vault-bar__filters { display: flex; gap: 10px; flex: 1 1 auto; max-width: 560px; }
.wz-vault-search { flex: 1 1 auto; }
.wz-vault-catfilter { flex: 0 0 auto; width: 190px; }
.wz-vault-card__icon .fab { font-size: 19px; }
@media (max-width: 767px) {
    .wz-vault-bar__filters { flex-direction: column; max-width: none; width: 100%; }
    .wz-vault-catfilter { width: 100%; }
}

/* Vault: dual-unlock (.pem) + status header + enable panel */
.wz-vault-or { display: flex; align-items: center; text-align: center; color: #9aa9b2; margin: 18px 0 12px; font-size: 13px; }
.wz-vault-or::before, .wz-vault-or::after { content: ""; flex: 1; height: 1px; background: #e3ecf0; }
.wz-vault-or span { padding: 0 12px; }
.wz-vault-filelabel { display: block; text-align: left; font-size: 13px; font-weight: 600; color: #4a5c66; margin-bottom: 6px; }
.wz-vault-hint { font-size: 12px; color: #8ba0aa; margin-top: 6px; }

.wz-vault-head {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
    background: #fff; border: 1px solid #e3ecf0; border-radius: 12px; padding: 14px 18px; margin-bottom: 14px;
}
.wz-vault-head__left { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.wz-vault-head__badge { color: #1e824c; font-weight: 700; font-size: 14px; }
.wz-vault-head__badge i { margin-right: 6px; }
.wz-vault-head__count { color: #6b7c85; font-size: 13px; background: #eef3f6; border-radius: 20px; padding: 3px 12px; }
.wz-vault-head__pem { color: #1d6b87; font-size: 12.5px; }
.wz-vault-head__pem i { margin-right: 4px; }
.wz-vault-linkbtn { background: none; border: none; color: #c0392b; font-size: 12.5px; padding: 0 0 0 4px; cursor: pointer; text-decoration: underline; }

.wz-vault-pempanel {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
    background: #f4f8fa; border: 1px dashed #bcd3dd; border-radius: 10px; padding: 12px 16px; margin-bottom: 14px;
}
.wz-vault-pempanel__text { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #47606c; max-width: 70%; }
.wz-vault-pempanel__text i { color: #1d6b87; font-size: 16px; flex: 0 0 auto; }
.wz-vault-pempanel__form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
@media (max-width: 767px) {
    .wz-vault-pempanel__text { max-width: 100%; }
}

/* Vault gate: two-column (info panel + unlock card) */
.wz-vault-gate {
    display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 26px; align-items: center;
    max-width: 940px; margin: 34px auto; min-height: 60vh;
}
.wz-vault-gate__info { padding: 10px 6px; }
.wz-vault-gate__title { font-size: 24px; font-weight: 800; color: #1d6b87; margin: 0 0 12px; }
.wz-vault-gate__title i { margin-right: 8px; }
.wz-vault-gate__lead { font-size: 15px; color: #47606c; line-height: 23px; margin: 0 0 18px; }
.wz-vault-points { list-style: none; margin: 0 0 16px; padding: 0; }
.wz-vault-points li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 13px; font-size: 14px; color: #33454f; line-height: 20px; }
.wz-vault-points li i { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 8px; background: #eef3f6; color: #1d6b87; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.wz-vault-gate__note { font-size: 13px; color: #47606c; background: #f4f8fa; border: 1px solid #dce7ec; border-radius: 8px; padding: 11px 14px; margin: 0; }
.wz-vault-gate__note i { color: #1d6b87; margin-right: 6px; }
.wz-vault-gate .wz-vault-lock { margin: 0; }
@media (max-width: 860px) {
    .wz-vault-gate { grid-template-columns: 1fr; gap: 18px; min-height: 0; margin-top: 20px; }
    .wz-vault-gate__info { order: 2; text-align: left; }
    .wz-vault-gate .wz-vault-lock { order: 1; }
}

/* Vault: filter bar (search + category chips) + grouped sections */
.wz-vault-filterbar { margin-bottom: 20px; }
.wz-vault-searchwrap { position: relative; max-width: 420px; margin-bottom: 14px; }
.wz-vault-searchwrap i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #9aa9b2; font-size: 14px; }
.wz-vault-searchwrap .wz-vault-search { padding-left: 38px; border-radius: 22px; }
.wz-vault-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wz-vault-chip {
    display: inline-flex; align-items: center; gap: 7px;
    background: #fff; border: 1px solid #dce7ec; color: #47606c;
    border-radius: 22px; padding: 6px 14px; font-size: 13px; font-weight: 600; cursor: pointer;
    transition: all .15s ease;
}
.wz-vault-chip:hover { border-color: #1d6b87; color: #1d6b87; }
.wz-vault-chip.is-active { background: #1d6b87; border-color: #1d6b87; color: #fff; }
.wz-vault-chip i { font-size: 13px; }
.wz-vault-chip__n { background: rgba(0,0,0,0.08); border-radius: 12px; padding: 0 7px; font-size: 11px; min-width: 18px; text-align: center; }
.wz-vault-chip.is-active .wz-vault-chip__n { background: rgba(255,255,255,0.25); }

.wz-vault-group { margin-bottom: 24px; }
.wz-vault-group__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid #eef3f6; }
.wz-vault-group__icon { width: 30px; height: 30px; border-radius: 8px; background: #eef3f6; color: #1d6b87; display: flex; align-items: center; justify-content: center; font-size: 14px; flex: 0 0 auto; }
.wz-vault-group__title { font-size: 16px; font-weight: 700; color: #26343c; margin: 0; }
.wz-vault-group__count { background: #eef3f6; color: #5a6b74; border-radius: 20px; padding: 2px 10px; font-size: 12px; font-weight: 600; }

/* Zero-knowledge vault: loading + recovery-code screens */
.wz-vault-loading { text-align: center; padding: 60px 20px; color: #6b7c85; font-size: 15px; }
.wz-vault-recovery {
    font-family: "SFMono-Regular", Consolas, Menlo, monospace; font-size: 20px; font-weight: 700;
    letter-spacing: 2px; color: #1d6b87; background: #f4f8fa; border: 2px dashed #bcd3dd;
    border-radius: 10px; padding: 16px; text-align: center; margin: 6px 0; word-break: break-all;
}
.wz-vault-reccheck { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #47606c; text-align: left; }
.wz-vault-reccheck input { width: 16px; height: 16px; }

/* Small inline spinner */
.wz-spin { display: inline-block; width: 15px; height: 15px; border: 2px solid #cdd9df; border-top-color: #1d6b87; border-radius: 50%; animation: wzspin 0.7s linear infinite; vertical-align: middle; }
@keyframes wzspin { to { transform: rotate(360deg); } }

/* ============ Zero-knowledge vault — enterprise gate (setup / unlock) ============ */
.wz-zk { padding: 12px 0 34px; }
.wz-zk__grid {
    display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 0;
    max-width: 1040px; margin: 26px auto; background: #fff; border-radius: 20px; overflow: hidden;
    border: 1px solid #e6eef2; box-shadow: 0 24px 64px -22px rgba(16,49,61,0.35), 0 4px 14px rgba(16,49,61,0.07);
}

/* LEFT — deep brand gradient intro */
.wz-zk__intro { position: relative; overflow: hidden; padding: 46px 44px; color: #eaf4f8;
    background: linear-gradient(160deg, #1d6b87 0%, #133f50 100%); }
.wz-zk__intro::after { content: ""; position: absolute; right: -70px; top: -70px; width: 220px; height: 220px; background: rgba(255,255,255,0.05); border-radius: 50%; }
.wz-zk__intro::before { content: ""; position: absolute; left: -50px; bottom: -60px; width: 160px; height: 160px; background: rgba(255,255,255,0.04); border-radius: 50%; }
.wz-zk__badge { position: relative; display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #c7e6f0; background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.20); padding: 6px 14px; border-radius: 30px; }
.wz-zk__title { position: relative; font-size: 33px; line-height: 1.14; font-weight: 800; color: #fff; margin: 20px 0 14px; }
.wz-zk__title span { color: #82d4ec; }
.wz-zk__lead { position: relative; font-size: 14.5px; line-height: 23px; color: #cfe6ee; margin: 0 0 28px; max-width: 430px; }
.wz-zk__feats { position: relative; list-style: none; margin: 0 0 26px; padding: 0; }
.wz-zk__feat { display: flex; gap: 13px; margin-bottom: 17px; align-items: flex-start; }
.wz-zk__fic { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 11px; background: rgba(255,255,255,0.12); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.wz-zk__ftxt { display: flex; flex-direction: column; }
.wz-zk__ftxt b { font-size: 14.5px; color: #fff; font-weight: 700; }
.wz-zk__ftxt span { font-size: 12.5px; color: #b8d8e2; line-height: 18px; margin-top: 1px; }
.wz-zk__trust { position: relative; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #d7ecf3; border-top: 1px solid rgba(255,255,255,0.14); padding-top: 18px; }

/* RIGHT — auth card */
.wz-zk__card { padding: 44px 42px; display: flex; flex-direction: column; }
.wz-zk__chead { text-align: center; margin-bottom: 26px; }
.wz-zk__clock { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 18px; background: linear-gradient(160deg, #1d6b87, #12586f); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px; box-shadow: 0 12px 26px -8px rgba(29,107,135,0.6); }
.wz-zk__ctitle { font-size: 23px; font-weight: 800; color: #1b3843; margin: 0 0 8px; }
.wz-zk__csub { font-size: 13.5px; color: #6a808b; line-height: 20px; margin: 0 auto; max-width: 340px; }
.wz-zk__cbody { display: flex; flex-direction: column; }
.wz-zk__field { margin-bottom: 16px; text-align: left; }
.wz-zk__field > label { display: block; font-size: 13px; font-weight: 600; color: #3a525d; margin-bottom: 6px; }
.wz-zk__field > label i { color: #1d6b87; margin-right: 4px; }
.wz-zk__input { width: 100%; height: 46px; border: 1.5px solid #dbe6ec; border-radius: 11px; padding: 0 14px; font-size: 14.5px; transition: border-color .15s, box-shadow .15s; }
.wz-zk__input:focus { border-color: #1d6b87; box-shadow: 0 0 0 3px rgba(29,107,135,0.14); outline: none; }
.wz-zk__rec, .wz-zk__req { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 2px 8px; border-radius: 20px; margin-left: 6px; vertical-align: middle; }
.wz-zk__rec { background: #e6f4ea; color: #1e824c; }
.wz-zk__req { background: #fdeceb; color: #c0392b; }
.wz-zk__file { border: 1.5px dashed #c4d7df; border-radius: 11px; padding: 11px 13px; background: #f6fafb; }
.wz-zk__file input[type=file] { font-size: 13px; color: #5a727d; width: 100%; }
.wz-zk__file input[type=file]::file-selector-button { border: none; background: #1d6b87; color: #fff; padding: 7px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; margin-right: 12px; }
.wz-zk__file input[type=file]::file-selector-button:hover { background: #155268; }
.wz-zk__hint { display: block; font-size: 12px; color: #8ba0aa; margin-top: 6px; }
.wz-zk__cta { height: 50px; width: 100%; border: none; border-radius: 12px; margin-top: 8px; background: linear-gradient(135deg, #1d6b87, #14586f); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; transition: transform .1s, box-shadow .15s; box-shadow: 0 12px 24px -8px rgba(29,107,135,0.6); }
.wz-zk__cta:hover { box-shadow: 0 16px 30px -8px rgba(29,107,135,0.72); transform: translateY(-1px); }
.wz-zk__cta:disabled { opacity: .6; cursor: default; transform: none; box-shadow: none; }
.wz-zk__cta i { margin-right: 7px; }
.wz-zk__link { background: none; border: none; color: #1d6b87; font-size: 13px; margin-top: 15px; cursor: pointer; text-decoration: underline; padding: 0; align-self: center; }
.wz-zk__cfoot { margin-top: 26px; padding-top: 16px; border-top: 1px solid #eef3f6; font-size: 12px; color: #8ba0aa; text-align: center; }
.wz-zk__cfoot i { color: #1e824c; margin-right: 5px; }

@media (max-width: 860px) {
    .wz-zk__grid { grid-template-columns: 1fr; margin: 12px; }
    .wz-zk__intro { padding: 34px 26px; }
    .wz-zk__card { padding: 32px 24px; }
    .wz-zk__title { font-size: 27px; }
}

/* Compact the ZK gate so it fits on one screen (no scroll) */
.wz-zk { padding: 4px 0 10px; }
.wz-zk__grid { margin: 8px auto; max-width: 970px; border-radius: 16px; }
.wz-zk__intro { padding: 26px 32px; }
.wz-zk__title { font-size: 25px; margin: 12px 0 9px; }
.wz-zk__lead { font-size: 13px; line-height: 19px; margin: 0 0 15px; max-width: 400px; }
.wz-zk__feats { margin: 0 0 13px; }
.wz-zk__feat { margin-bottom: 10px; gap: 11px; }
.wz-zk__fic { width: 31px; height: 31px; font-size: 13px; border-radius: 9px; }
.wz-zk__ftxt b { font-size: 13px; }
.wz-zk__ftxt span { font-size: 11.5px; line-height: 16px; }
.wz-zk__trust { padding-top: 13px; font-size: 12px; }
.wz-zk__badge { font-size: 10.5px; padding: 5px 12px; }
.wz-zk__card { padding: 26px 34px; justify-content: center; }
.wz-zk__chead { margin-bottom: 15px; }
.wz-zk__clock { width: 50px; height: 50px; font-size: 21px; border-radius: 14px; margin-bottom: 11px; }
.wz-zk__ctitle { font-size: 20px; margin-bottom: 5px; }
.wz-zk__csub { font-size: 12.5px; line-height: 18px; }
.wz-zk__field { margin-bottom: 11px; }
.wz-zk__field > label { font-size: 12.5px; margin-bottom: 4px; }
.wz-zk__input { height: 42px; font-size: 14px; }
.wz-zk__file { padding: 8px 12px; }
.wz-zk__hint { font-size: 11.5px; margin-top: 4px; }
.wz-zk__cta { height: 46px; font-size: 14.5px; margin-top: 6px; }
.wz-zk__cfoot { margin-top: 14px; padding-top: 11px; font-size: 11.5px; }
@media (max-height: 760px) {
    .wz-zk__intro { padding: 20px 28px; }
    .wz-zk__card { padding: 20px 30px; }
    .wz-zk__title { font-size: 22px; }
    .wz-zk__feat { margin-bottom: 8px; }
    .wz-zk__lead { margin-bottom: 12px; }
}

/* White spinner for dark/gradient buttons (busy state) */
.wz-spin--btn { border-color: rgba(255,255,255,0.4); border-top-color: #ffffff; width: 14px; height: 14px; margin-right: 4px; }

/* Password show/hide (eye) toggle */
.wz-pw-wrap { position: relative; }
.wz-pw-input { padding-right: 44px; }
.wz-pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: none; color: #8ba0aa; cursor: pointer; padding: 6px 9px; font-size: 15px; line-height: 1; }
.wz-pw-eye:hover { color: #1d6b87; }

/* Recovery card field label */
.wz-zk__filelabel { display: block; font-size: 13px; font-weight: 600; color: #3a525d; margin-bottom: 6px; }
.wz-zk__filelabel i { color: #1d6b87; margin-right: 4px; }

/* Org vault UX — password strength meter + favorite star */
.wz-vault-strength { margin-top: 8px; font-size: 11px; color: #7b8a95; }
.wz-vault-strength > i { display: block; height: 6px; border-radius: 4px; background: #e9eef2; position: relative; }
.wz-vault-strength > i::after { content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 0; border-radius: 4px; transition: width .2s ease; }
.wz-vault-strength.lvl-1 > i::after { width: 25%; background: #e74c3c; }
.wz-vault-strength.lvl-2 > i::after { width: 50%; background: #e67e22; }
.wz-vault-strength.lvl-3 > i::after { width: 75%; background: #f1c40f; }
.wz-vault-strength.lvl-4 > i::after { width: 100%; background: #2ecc71; }
.wz-vault-strength > span { display: inline-block; margin-top: 4px; font-weight: 600; }
.wz-vault-ibtn.wz-fav.is-on, .wz-vault-ibtn.is-on { color: #f1c40f; }
.wz-vault-ibtn.wz-fav:hover { color: #f1c40f; }
/* inline eye toggle inside the add/edit password row (not the absolute auth-card one) */
.wz-vault-pwrow .wz-pw-eye { position: static; transform: none; }

/* Security-check report */
.wz-sec-summary { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.wz-sec-stat { display: flex; flex-direction: column; align-items: center; min-width: 68px; }
.wz-sec-stat .badge { font-size: 15px; padding: 6px 10px; margin-bottom: 3px; }
.wz-sec-sub { font-size: 12px; color: #7b8a95; margin: 2px 0 6px; }
.wz-sec-list { margin: 0; padding-left: 18px; font-size: 13px; line-height: 22px; }
.wz-sec-foot { font-size: 11.5px; color: #9aa9b2; border-top: 1px solid #eef3f6; padding-top: 8px; margin-top: 12px; }

/* Activity log — scrollable table with a pinned header (so rows scroll cleanly under it) */
.wz-audit-wrap { max-height: 230px; overflow: auto; border: 1px solid #e3ecf0; border-radius: 8px; }
.wz-audit-table { margin-bottom: 0; font-size: 13px; }
.wz-audit-table thead th { position: sticky; top: 0; background: #eef3f6; z-index: 2; border-bottom: 2px solid #d7e3e9; box-shadow: 0 1px 0 #d7e3e9; }
.wz-audit-table td, .wz-audit-table th { padding: 7px 10px; }

/* Help ("how it works") modal — compact, capped height, scrollable body */
#wzVaultHelpModal .modal-dialog { max-width: 540px; }
#wzVaultHelpModal .modal-content { max-height: 80vh; }
#wzVaultHelpModal .modal-body { padding: 16px 20px; }
.wz-help-sec { margin-bottom: 11px; }
.wz-help-sec h6 { color: #1d6b87; font-size: 13.5px; font-weight: 700; margin-bottom: 4px; }
.wz-help-sec h6 i { margin-right: 5px; }
.wz-help-sec > p { font-size: 12.5px; color: #47606c; margin: 0; line-height: 1.45; }
.wz-help-row { display: flex; gap: 10px; align-items: flex-start; padding: 3px 0; }
.wz-help-ic { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 7px; background: #eef3f6; color: #1d6b87; display: flex; align-items: center; justify-content: center; font-size: 12px; margin-top: 1px; }
.wz-help-row > div { display: flex; flex-direction: column; }
.wz-help-row b { font-size: 12.5px; color: #26343c; }
.wz-help-row span { font-size: 12px; color: #6b7d86; line-height: 1.35; }

/* "What is this?" explainer box — shown at the top of Security / Backup / Members */
.wz-explain { background: #eef7fb; border: 1px solid #cfe6f2; border-radius: 8px; padding: 10px 12px; font-size: 12.5px; color: #365a68; line-height: 1.5; margin-bottom: 14px; }
.wz-explain b { color: #1d6b87; }

/* Activity log — clean card list (no header overlap) */
.wz-log-list { max-height: 240px; overflow: auto; border: 1px solid #e3ecf0; border-radius: 8px; }
.wz-log-row { padding: 8px 12px; border-bottom: 1px solid #eef3f6; }
.wz-log-row:last-child { border-bottom: 0; }
.wz-log-main { font-size: 13px; color: #26343c; }
.wz-log-detail { margin-left: 4px; }
.wz-log-meta { font-size: 11.5px; color: #8ba0aa; margin-top: 3px; }
.wz-log-meta i { margin-right: 3px; }

/* Searchable asset-type dropdown (custom combobox with icons) */
.wz-combo { position: relative; }
.wz-combo__btn { text-align: left; display: flex; align-items: center; justify-content: space-between; cursor: pointer; background: #fff; }
.wz-combo__btn .wz-combo__caret { color: #8ba0aa; margin-left: 8px; font-size: 12px; }
.wz-combo__btn > span i { margin-right: 6px; color: #1d6b87; }
.wz-combo__ph { color: #99a7b0; }
.wz-combo__panel { position: absolute; z-index: 1060; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid #d7e3e9; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,0.14); overflow: hidden; }
.wz-combo__search { display: flex; align-items: center; gap: 8px; padding: 8px 11px; border-bottom: 1px solid #eef3f6; color: #8ba0aa; }
.wz-combo__search input { border: 0; outline: 0; flex: 1 1 auto; font-size: 14px; background: transparent; }
.wz-combo__list { max-height: 244px; overflow: auto; padding: 4px; }
.wz-combo__grphead { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: #9aa9b2; padding: 8px 10px 3px; font-weight: 700; }
.wz-combo__opt { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 8px 10px; border-radius: 8px; font-size: 13.5px; color: #26343c; cursor: pointer; }
.wz-combo__opt:hover { background: #eef7fb; }
.wz-combo__opt i { width: 18px; margin-right: 8px; color: #1d6b87; text-align: center; }

/* Responsive header — buttons wrap cleanly on small screens */
@media (max-width: 991px) {
    .wz-vault-head { flex-wrap: wrap; gap: 10px; }
    .wz-vault-head__right { flex-wrap: wrap; }
    .wz-vault-head__right .btn { margin-left: 0 !important; margin-right: 6px; margin-bottom: 6px; }
    .wz-vault-filterbar { flex-direction: column; align-items: stretch; }
}

/* ============================================================
   "Your Social Wizard Details" — connected social channels modal
   (responsive card grid; JS fills #<key>_get link + #<key>_count)
   ============================================================ */
.wz-sw-modal .modal-dialog { max-width: 900px; }
.wz-sw-modal .modal-header { align-items: flex-start; }
.wz-sw-proj:not(:empty)::before { content: " · "; }
.wz-sw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); gap: 12px; }
.wz-sw-card { border: 1px solid #e6ecf5; border-radius: 12px; padding: 14px; background: #fff; transition: box-shadow .15s ease, border-color .15s ease; }
.wz-sw-card:hover { box-shadow: 0 8px 22px rgba(11, 35, 80, .10); border-color: #cddcf5; }
.wz-sw-card__top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.wz-sw-ic { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 10px; display: grid; place-items: center; font-size: 1.05rem; color: #fff; background: #64748b; }
.wz-sw-name { font-weight: 700; font-size: .92rem; color: #0f1b34; }
.wz-sw-url { font-size: .82rem; margin-bottom: 8px; min-height: 20px; }
.wz-sw-url a { color: #1d4ed8; text-decoration: none; display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.wz-sw-url a:hover { text-decoration: underline; }
.wz-sw-url:empty::after { content: "Not connected"; color: #b6c0d0; font-style: italic; }
.wz-sw-count { font-size: .82rem; color: #334155; }
.wz-sw-count:empty::after { content: "\2014"; color: #64748b; }
/* Graceful "couldn't fetch" state — neutral, not an alarming red error */
.wz-sw-na { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-style: italic; color: #64748b; cursor: help; }
.wz-sw-na::before { content: "\f071"; font-family: "Font Awesome 5 Free", "FontAwesome"; font-weight: 900; font-style: normal; font-size: .72rem; color: #64748b; }
.wz-sw-count p { margin: 0; font-weight: 600; }
/* followers + posts stat lines (compact numbers) */
.wz-sw-stat { font-size: .82rem; color: #64748b; line-height: 1.55; }
.wz-sw-stat b { color: #0f1b34; font-weight: 800; margin-right: 3px; }
/* JS-rendered "Api Failed" lines are red + smaller */
.wz-sw-count p[style*="red"] { font-weight: 500; font-size: .78rem; }
/* Brand colours */
.wz-brandic[data-brand="twitter"] { background: #1d9bf0; }
.wz-brandic[data-brand="linkedin"] { background: #0a66c2; }
.wz-brandic[data-brand="facebook_page"], .wz-brandic[data-brand="facebooks"] { background: #1877f2; }
.wz-brandic[data-brand="instagram"] { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.wz-brandic[data-brand="youtube"] { background: #ff0000; }
.wz-brandic[data-brand="tiktok"] { background: #010101; }
.wz-brandic[data-brand="pinterest"] { background: #e60023; }
.wz-brandic[data-brand="reddit"] { background: #ff4500; }
.wz-brandic[data-brand="tumblr"] { background: #36465d; }
.wz-brandic[data-brand="wordpress"] { background: #21759b; }
.wz-brandic[data-brand="blogger"] { background: #ff5722; }
.wz-brandic[data-brand="medium"] { background: #000000; }
.wz-brandic[data-brand="quora"] { background: #b92b27; }
.wz-brandic[data-brand="github"] { background: #24292e; }
.wz-brandic[data-brand="slideshare"] { background: #0077b5; }
.wz-brandic[data-brand="dailymotion"] { background: #0d0d0d; }
.wz-brandic[data-brand="plurk"] { background: #ff574d; }
.wz-brandic[data-brand="debugschool"] { background: #ef4444; }
.wz-brandic[data-brand="professnow"] { background: #6d28d9; }
.wz-brandic[data-brand="hubpages"] { background: #2e7d32; }
.wz-brandic[data-brand="gurukulgalaxy"] { background: #0ea5e9; }
.wz-brandic[data-brand="mymedicplus"] { background: #16a34a; }
.wz-brandic[data-brand="holidaylandmark"] { background: #f59e0b; }
@media (max-width: 575.98px) {
    .wz-sw-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   "Add Social Wizard" — connect-channels form modal
   (JS: FormData by name; validation reads #<id>, writes #<id>_error;
    #fb_url_error = global "fill at least one" message)
   ============================================================ */
.wz-swf-modal .modal-dialog { max-width: 920px; }
/* Keep the tall wizard within the viewport: header stays, field area scrolls
   (Bootstrap 4.0 has no .modal-dialog-scrollable, so we do it here). */
.wz-swf-modal .modal-content { max-height: calc(100vh - 3.5rem); }
.wz-swf-modal .modal-body { overflow-y: auto; }
/* Invalid field highlight on Save Wizard validation */
.wz-swf-field .form-control.is-invalid { border-color: #e0344b; box-shadow: 0 0 0 .16rem rgba(224, 52, 75, .16); }
.wz-swf-field .form-control.is-invalid:focus { border-color: #e0344b; box-shadow: 0 0 0 .2rem rgba(224, 52, 75, .22); }
.wz-swf-intro { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 16px; padding: 13px 16px; background: #f0f7ff; border: 1px solid #d6e6ff; border-left: 3px solid #1d4ed8; border-radius: 12px; font-size: .86rem; color: #334155; line-height: 1.55; }
.wz-swf-intro__ic { flex: 0 0 auto; color: #1d4ed8; font-size: 1.1rem; margin-top: 1px; }
.wz-swf-intro__hint { margin-top: 5px; font-size: .8rem; color: #64748b; }
.wz-swf-intro__hint i { color: #f59e0b; margin-right: 3px; }
.wz-swf-project { margin-bottom: 16px; }
.wz-swf-project__lbl { display: block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: #64748b; margin-bottom: 4px; }
.wz-swf-project input { font-weight: 700; color: #0f1b34; background: #f7faff; border-color: #e3ebf7; max-width: 420px; }
.wz-swf-formerr { color: #e0344b; font-weight: 700; font-size: .9rem; margin-bottom: 10px; }
.wz-swf-formerr:not(:empty) { padding: 9px 14px; background: #fdeaec; border: 1px solid #f6c9cf; border-radius: 9px; }
.wz-swf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px 18px; }
.wz-swf-field { min-width: 0; }
.wz-swf-label { display: flex; align-items: center; gap: 8px; font-size: .83rem; font-weight: 600; color: #334155; margin-bottom: 5px; }
.wz-swf-ic { width: 26px; height: 26px; flex: 0 0 auto; border-radius: 7px; display: grid; place-items: center; color: #fff; font-size: .78rem; background: #64748b; }
.wz-swf-field .form-control { border-radius: 9px; }
.wz-swf-field .form-control:focus { border-color: #1d4ed8; box-shadow: 0 0 0 .18rem rgba(29, 78, 216, .14); }
.wz-swf-err { display: block; margin-top: 4px; font-size: .76rem; color: #e0344b; }
/* Sticky action bar — always visible at the bottom of the scrolling wizard,
   Save Wizard centred & prominent, Cancel / Reset subtle on the sides. */
.wz-swf-actions {
    position: sticky;
    bottom: 0;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 20px -16px -16px;
    padding: 14px 18px;
    background: #fff;
    border-top: 1px solid #eef2f8;
    box-shadow: 0 -8px 20px rgba(11, 35, 80, .07);
}
.wz-swf-actions .btn { border-radius: 10px; }
.wz-swf-actions [data-dismiss] { order: 1; color: #64748b; }
#exampleModal_getting #action_add_profile_button { order: 2; min-width: 210px; padding: 11px 32px; font-weight: 700; font-size: 1rem; box-shadow: 0 8px 20px rgba(29, 78, 216, .28); }
#wizard_reset_btn { order: 3; }
#wizard_save_spin { order: 4; flex-basis: 100%; }
@media (max-width: 575.98px) {
    .wz-swf-grid { grid-template-columns: 1fr; }
    #exampleModal_getting #action_add_profile_button { min-width: 0; width: 100%; order: 1; }
    .wz-swf-actions [data-dismiss] { order: 2; }
    #wizard_reset_btn { order: 3; }
}

/* ===================== Vault confirm dialog (.wz-cfm) =====================
   Replaces the plain Bootstrap confirm. Tone is switched with a modifier on
   .wz-cfm__content, which drives the icon + primary button via custom props. */
.wz-cfm__dialog { max-width: 460px; }
.wz-cfm__content {
    --wz-cfm-accent: #1d6b87;
    --wz-cfm-accent-dark: #12586f;
    position: relative;
    border: 0;
    border-radius: 18px;
    padding: 34px 30px 26px;
    box-shadow: 0 24px 60px -20px rgba(11, 35, 80, 0.45);
    text-align: center;
}
.wz-cfm__content--danger { --wz-cfm-accent: #d64541; --wz-cfm-accent-dark: #a92b27; }
.wz-cfm__content--success { --wz-cfm-accent: #1e9c5b; --wz-cfm-accent-dark: #14663a; }

.wz-cfm__x {
    position: absolute; top: 13px; right: 13px;
    width: 32px; height: 32px; padding: 0;
    border: 0; border-radius: 50%; background: transparent;
    color: #9aacb5; font-size: 15px; line-height: 1; cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.wz-cfm__x:hover { background: #f0f4f6; color: #3f545e; }

.wz-cfm__head { margin-bottom: 18px; }
.wz-cfm__icon {
    width: 62px; height: 62px; margin: 0 auto 15px;
    border-radius: 20px; display: flex; align-items: center; justify-content: center;
    font-size: 25px; color: #fff;
    background: linear-gradient(160deg, var(--wz-cfm-accent), var(--wz-cfm-accent-dark));
    box-shadow: 0 14px 28px -10px var(--wz-cfm-accent);
}
.wz-cfm__title { font-size: 20px; font-weight: 800; color: #1b3843; margin: 0; line-height: 1.3; }

.wz-cfm__body { text-align: left; font-size: 14px; color: #52646e; line-height: 21px; }
.wz-cfm__body b { color: #26343c; }
.wz-cfm__p { margin: 0 0 12px; }
.wz-cfm__p:last-child { margin-bottom: 0; }
.wz-cfm__p--ok { color: #1e824c; font-weight: 600; }
.wz-cfm__p--ok i { margin-right: 5px; }

.wz-cfm__note {
    display: flex; gap: 10px; align-items: flex-start;
    font-size: 13px; line-height: 19px;
    border: 1px solid; border-radius: 12px; padding: 12px 14px;
}
.wz-cfm__note i { flex: 0 0 auto; margin-top: 2px; font-size: 14px; }
.wz-cfm__note--warn { background: #fff8e6; border-color: #f2e0ae; color: #7a5b12; }
.wz-cfm__note--warn i { color: #d29b06; }
.wz-cfm__note--warn b { color: #6a4d0c; }
.wz-cfm__note--info { background: #eef6f9; border-color: #cfe3ea; color: #3d5a66; }
.wz-cfm__note--info i { color: #1d6b87; }
.wz-cfm__note--info b { color: #1b3843; }

.wz-cfm__foot { display: flex; gap: 10px; margin-top: 24px; }
.wz-cfm__btn {
    flex: 1 1 0; height: 46px; padding: 0 14px;
    border: 1.5px solid transparent; border-radius: 12px;
    font-size: 14.5px; font-weight: 700; cursor: pointer;
    transition: background .15s ease, border-color .15s ease, filter .15s ease, transform .08s ease;
}
.wz-cfm__btn:active { transform: translateY(1px); }
.wz-cfm__btn:focus-visible { outline: 3px solid var(--wz-cfm-accent); outline-offset: 2px; }
.wz-cfm__btn--ghost { background: #fff; border-color: #dbe6ec; color: #52646e; }
.wz-cfm__btn--ghost:hover { background: #f4f8fa; border-color: #c2d5de; color: #2b3f49; }
.wz-cfm__btn--go {
    color: #fff;
    background: linear-gradient(160deg, var(--wz-cfm-accent), var(--wz-cfm-accent-dark));
    box-shadow: 0 10px 22px -10px var(--wz-cfm-accent);
}
.wz-cfm__btn--go:hover { filter: brightness(1.07); }

@media (max-width: 480px) {
    .wz-cfm__content { padding: 28px 20px 22px; border-radius: 16px; }
    .wz-cfm__title { font-size: 18px; }
    .wz-cfm__icon { width: 54px; height: 54px; font-size: 22px; border-radius: 17px; }
    .wz-cfm__foot { flex-direction: column-reverse; }
}

/* Confirm rendered INSIDE an already-open modal (no nested modal, no 2nd backdrop).
   Reuses the .wz-cfm__* parts; only the shell differs from the dialog version. */
.wz-cfm-inline {
    --wz-cfm-accent: #1d6b87;
    --wz-cfm-accent-dark: #12586f;
    position: relative;
    background: #fff;
    border: 1px solid #e3ecf0;
    border-left: 4px solid var(--wz-cfm-accent);
    border-radius: 14px;
    padding: 20px 22px 18px;
    margin-bottom: 16px;
    box-shadow: 0 10px 26px -14px rgba(11, 35, 80, 0.45);
    text-align: center;
}
.wz-cfm-inline .wz-cfm__icon { width: 48px; height: 48px; font-size: 20px; border-radius: 15px; margin-bottom: 11px; }
.wz-cfm-inline .wz-cfm__title { font-size: 17px; }
.wz-cfm-inline .wz-cfm__head { margin-bottom: 13px; }
.wz-cfm-inline .wz-cfm__foot { margin-top: 18px; }
.wz-cfm-inline .wz-cfm__btn { height: 40px; font-size: 13.5px; border-radius: 10px; }
.wz-cfm-inline .wz-cfm__x { top: 8px; right: 8px; width: 28px; height: 28px; font-size: 13px; }

@media (max-width: 480px) {
    .wz-cfm-inline { padding: 18px 15px 15px; }
    .wz-cfm-inline .wz-cfm__foot { flex-direction: column-reverse; }
}

/* ============================================================
   SSL expiry cell (x-wz.ssl-expiry)
   Date on top, days-remaining badge under it, so the column reads
   at a glance instead of making you work out the date yourself.
   ============================================================ */
#main-wrapper .wz-ssl {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

#main-wrapper .wz-ssl__date {
    font-size: .82rem;
    color: #475569;
    white-space: nowrap;
}

#main-wrapper .wz-ssl__left {
    font-size: .72rem;
}

@media (max-width: 767px) {
    #main-wrapper .wz-ssl__date { white-space: normal; }
}

/* ============================================================
   Keyword rank tracking (x-wz.keyword-rank)
   Each keyword badge carries its latest recorded search position
   and the movement since the previous check.
   ============================================================ */
#main-wrapper .wz-kw-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#main-wrapper .wz-kw {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

#main-wrapper .wz-kw__rank {
    font-size: .68rem;
    font-weight: 700;
}

#main-wrapper .wz-kw__move {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: .68rem;
    font-weight: 700;
}

#main-wrapper .wz-kw__move i { font-size: .6rem; }
#main-wrapper .wz-kw__move.is-up   { color: #0d8a52; }
#main-wrapper .wz-kw__move.is-down { color: #d63b3b; }
#main-wrapper .wz-kw__move.is-new  { color: #1d6fd8; font-weight: 600; }

/* URL cell: truncate long addresses without an inline style attribute. */
#main-wrapper .wz-url-cell {
    display: inline-block;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
}

/* "Rank tracking is off" notice above the table. */
#main-wrapper .wz-rank-off {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 12px 16px;
    background: #eff6ff;
    border-bottom: 1px solid #dbe4f3;
    color: #1e40af;
    font-size: .85rem;
    line-height: 1.5;
}

#main-wrapper .wz-rank-off i { margin-top: 3px; }

@media (max-width: 767px) {
    #main-wrapper .wz-url-cell { max-width: 180px; }
    #main-wrapper .wz-kw-list  { gap: 6px; }
}

/* Remove-keyword "x" inside a badge: transparent so the badge colour shows. */
#main-wrapper .wz-kw-remove {
    border: none;
    background: transparent;
}

/* ============================================================
   Dashboard: what changed + what to do next
   Sits under the welcome header, above the totals. Only rendered
   when there is something real to say.
   ============================================================ */
#main-wrapper .wz-changes, .main-wrapper .wz-changes {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    display: grid;
    gap: 8px;
}

#main-wrapper .wz-change, .main-wrapper .wz-change {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: .9rem;
    line-height: 1.4;
}

#main-wrapper .wz-change__text, .main-wrapper .wz-change__text { flex: 1 1 auto; }

#main-wrapper .wz-change__go, .main-wrapper .wz-change__go {
    flex: 0 0 auto;
    font-weight: 700;
    font-size: .82rem;
    text-decoration: none;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .7);
}

#main-wrapper .wz-change--danger, .main-wrapper .wz-change--danger  { background: #fdecec; border-color: #f5c6c6; color: #8d2b2b; }
#main-wrapper .wz-change--warning, .main-wrapper .wz-change--warning { background: #fff4e0; border-color: #f0d9ab; color: #7a4f0a; }
#main-wrapper .wz-change--success, .main-wrapper .wz-change--success { background: #e7f6ef; border-color: #b8e2cd; color: #0c6b43; }
#main-wrapper .wz-change--info, .main-wrapper .wz-change--info    { background: #eaf2ff; border-color: #c5daf8; color: #17508f; }

#main-wrapper .wz-change--danger  .wz-change__go, .main-wrapper .wz-change--danger  .wz-change__go { color: #8d2b2b; }
#main-wrapper .wz-change--warning .wz-change__go, .main-wrapper .wz-change--warning .wz-change__go { color: #7a4f0a; }
#main-wrapper .wz-change--success .wz-change__go, .main-wrapper .wz-change--success .wz-change__go { color: #0c6b43; }
#main-wrapper .wz-change--info    .wz-change__go, .main-wrapper .wz-change--info    .wz-change__go { color: #17508f; }

/* the single next step */
#main-wrapper .wz-next, .main-wrapper .wz-next {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    margin: 0 0 20px;
    border-radius: 12px;
    background: #f4f8ff;
    border: 1px solid #d5e3fa;
}

#main-wrapper .wz-next__ic, .main-wrapper .wz-next__ic {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: #e0ebff;
    color: #1d4ed8;
}

#main-wrapper .wz-next__text, .main-wrapper .wz-next__text {
    flex: 1 1 auto;
    margin: 0;
    font-size: .92rem;
    color: #29405f;
    line-height: 1.5;
}

/* The button now carries an icon, so it has to lay its two children out itself:
   inline-flex keeps the icon and the label on one line and vertically centred,
   and nowrap stops a two-word label wrapping under the icon. */
#main-wrapper .wz-next__cta, .main-wrapper .wz-next__cta {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

#main-wrapper .wz-next__cta i, .main-wrapper .wz-next__cta i { font-size: .9em; line-height: 1; }

@media (max-width: 640px) {
    #main-wrapper .wz-change, .main-wrapper .wz-change  { align-items: flex-start; flex-wrap: wrap; }
    #main-wrapper .wz-next, .main-wrapper .wz-next    { flex-wrap: wrap; }
    /* text-align cannot centre flex children, so the full-width button on a
       phone needs justify-content instead. */
    #main-wrapper .wz-next__cta, .main-wrapper .wz-next__cta { width: 100%; justify-content: center; }
}

/* ============================================================
   Add URL: bulk paste
   A second, collapsed path inside the Add URL dialog. The
   single-URL form above it is unchanged.
   ============================================================ */
#main-wrapper .wz-bulk__toggle {
    cursor: pointer;
    font-weight: 700;
    color: #1d4ed8;
    font-size: .9rem;
    padding: 4px 0;
}

#main-wrapper .wz-bulk__input {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .84rem;
    line-height: 1.6;
    resize: vertical;
}

#main-wrapper .wz-bulk__report {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid #e6ecf5;
    border-radius: 9px;
}

#main-wrapper .wz-bulk__row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 7px 11px;
    font-size: .82rem;
    border-bottom: 1px solid #f1f4f9;
}

#main-wrapper .wz-bulk__row:last-child { border-bottom: 0; }
#main-wrapper .wz-bulk__row--ok  { color: #0d6b43; background: #f4fbf7; }
#main-wrapper .wz-bulk__row--bad { color: #8d2b2b; background: #fdf6f6; }

#main-wrapper .wz-bulk__url {
    flex: 1 1 auto;
    word-break: break-all;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

#main-wrapper .wz-bulk__why {
    flex: 0 0 auto;
    opacity: .8;
}

@media (max-width: 575px) {
    #main-wrapper .wz-bulk__row { flex-wrap: wrap; }
}

/* ============================================================
   Site Audit history — "since last audit"
   The microservice keeps only the latest figures, so these come
   from the site_audit_runs trail. Rendered only when a previous
   run exists to compare against.
   ============================================================ */
#main-wrapper .wz-delta {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-left: 5px;
    font-size: .68rem;
    font-weight: 800;
    vertical-align: middle;
}

#main-wrapper .wz-delta i { font-size: .58rem; }
#main-wrapper .wz-delta.is-up   { color: #0d8a52; }
#main-wrapper .wz-delta.is-down { color: #d63b3b; }

#main-wrapper tr.wz-since > td {
    background: #f7f9fd;
    border-top: 0;
    padding-top: 6px;
    padding-bottom: 10px;
}

#main-wrapper .wz-since__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
}

#main-wrapper .wz-since__when {
    font-size: .74rem;
    font-weight: 700;
    color: #6b7894;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

#main-wrapper .wz-since__chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    border: 1px solid transparent;
}

#main-wrapper .wz-since__chip i { font-size: .62rem; }
#main-wrapper .wz-since__chip.is-up   { background: #e7f6ef; border-color: #b8e2cd; color: #0c6b43; }
#main-wrapper .wz-since__chip.is-down { background: #fdecec; border-color: #f5c6c6; color: #8d2b2b; }

@media (max-width: 767px) {
    #main-wrapper .wz-since__inner { gap: 5px; }
    #main-wrapper .wz-since__chip  { font-size: .68rem; }
}

/* ============================================================
   Competitors — recorded snapshot under each rival's URL
   Written by the monthly competitors:analyse run. "Analyze &
   Compare" keeps nothing, so this is the only history there is.
   ============================================================ */
#main-wrapper .wz-comp-snap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

#main-wrapper .wz-comp-snap__score {
    font-size: .7rem;
    font-weight: 800;
    color: #475569;
    background: #eef2f8;
    border-radius: 999px;
    padding: 1px 8px;
}

#main-wrapper .wz-comp-snap__delta {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: .7rem;
    font-weight: 800;
}

#main-wrapper .wz-comp-snap__delta i { font-size: .6rem; }
#main-wrapper .wz-comp-snap__delta.is-up   { color: #d63b3b; } /* a rival improving is bad for us */
#main-wrapper .wz-comp-snap__delta.is-down { color: #0d8a52; }

#main-wrapper .wz-comp-snap__flag {
    font-size: .68rem;
    font-weight: 700;
    color: #b45309;
    background: #fff4e0;
    border-radius: 999px;
    padding: 1px 8px;
}

/* ---------------------------------------------------------------------------
   Stacked tables on phones.

   A seven-column task table inside .table-responsive means sideways scrolling
   on a phone: you read a title, then scroll to find its status, and lose the
   row. Below 768px each row becomes a card instead, with every cell showing
   its column name from data-label -- the header row is hidden, so without the
   label a bare date or email says nothing.

   Markup is untouched: the same table serves both layouts, so there is no
   second set of cells to keep in step.
   --------------------------------------------------------------------------- */
@media (max-width:767.98px) {
    /* Every selector here is prefixed with #main-wrapper on purpose. Each of
       these pages still carries an inline <style> block that sets
       ".table { min-width: 600px }" for mobile, and being later in the document
       it beats a single-class rule. The id makes this win without editing
       fifteen blades. Those inline blocks should still be removed -- they also
       break the external-stylesheet rule -- but that is its own change. */

    /* the wrapper exists to scroll a wide table; there is no wide table now */
    #main-wrapper .wz-stack-wrap { overflow-x:visible; }
    #main-wrapper .wz-stack-table { min-width:0; width:100%; }
    #main-wrapper .wz-stack-table, #main-wrapper .wz-stack-table tbody, #main-wrapper .wz-stack-table tr, #main-wrapper .wz-stack-table td { display:block; width:auto; }
    /* hidden, not removed: the headers stay for screen readers to announce */
    #main-wrapper .wz-stack-table thead { position:absolute; width:1px; height:1px; overflow:hidden;
        clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap; }
    #main-wrapper .wz-stack-table tr { margin:0 0 12px; padding:10px 12px; border:1px solid #e2e8f0;
        border-radius:10px; background:#fff; box-shadow:0 1px 2px rgba(15,23,42,.05); }
    /* striping reads as noise once rows are cards */
    #main-wrapper .wz-stack-table.table-striped tbody tr:nth-of-type(odd) { background:#fff; }
    #main-wrapper .wz-stack-table td { display:flex; gap:12px; align-items:flex-start;
        padding:6px 0; border:0; border-bottom:1px solid #f1f5f9; text-align:left;
        white-space:normal; word-break:break-word; }
    #main-wrapper .wz-stack-table tr td:last-child { border-bottom:0; }
    #main-wrapper .wz-stack-table td::before { content:attr(data-label); flex:0 0 38%; min-width:0;
        color:#64748b; font-size:.72rem; font-weight:700; text-transform:uppercase;
        letter-spacing:.02em; line-height:1.5; }
    /* the row number is the card heading, so it carries no label column */
    #main-wrapper .wz-stack-table td[data-label="#"],
    #main-wrapper .wz-stack-table td[data-label="Id"] { border-bottom:0; padding-bottom:0; color:#64748b;
        font-size:.72rem; font-weight:700; }
    #main-wrapper .wz-stack-table td[data-label="#"]::before,
    #main-wrapper .wz-stack-table td[data-label="Id"]::before { content:"#"; flex:none; }
    /* buttons need room for a fingertip, not a 38% label column */
    #main-wrapper .wz-stack-table td[data-label="Actions"] { flex-wrap:wrap; padding-top:9px; }
    #main-wrapper .wz-stack-table td[data-label="Actions"]::before { flex-basis:100%; margin-bottom:4px; }
    /* the empty state spans the whole card and has no column of its own */
    #main-wrapper .wz-stack-table td[colspan]::before { content:none; }
    #main-wrapper .wz-stack-table td[colspan] { display:block; color:#64748b; padding:6px 0; }
}

/* ---------------------------------------------------------------------------
   Keyword position trend (30/90 days).

   The chart is an inline SVG drawn on the server -- no charting library, because
   an external CDN script is not allowed here and a dozen points do not need one.
   Expanding is a <details> element, so it works with JavaScript switched off.
   --------------------------------------------------------------------------- */
#main-wrapper .wz-trend, .main-wrapper .wz-trend { display:inline-block; margin-left:6px; }

#main-wrapper .wz-trend__toggle, .main-wrapper .wz-trend__toggle {
    display:inline-flex; align-items:center; gap:5px; cursor:pointer;
    list-style:none; font-size:.68rem; font-weight:700; color:#64748b;
    padding:1px 7px; border:1px solid #e2e8f0; border-radius:999px; background:#f8fafc; }
/* the default disclosure triangle would sit oddly inside a pill */
#main-wrapper .wz-trend__toggle::-webkit-details-marker,
.main-wrapper .wz-trend__toggle::-webkit-details-marker { display:none; }
#main-wrapper .wz-trend__toggle::marker, .main-wrapper .wz-trend__toggle::marker { content:""; }
#main-wrapper .wz-trend__toggle:hover, .main-wrapper .wz-trend__toggle:hover {
    background:#eef4ff; border-color:#cdddfb; color:#1d4ed8; }

/* up means the number got smaller, which is the good direction */
#main-wrapper .wz-trend__move--up, .main-wrapper .wz-trend__move--up { color:#0c6b43; }
#main-wrapper .wz-trend__move--down, .main-wrapper .wz-trend__move--down { color:#b42318; }

#main-wrapper .wz-trend__body, .main-wrapper .wz-trend__body {
    margin-top:6px; padding:8px 10px; background:#fff;
    border:1px solid #e2e8f0; border-radius:10px; }
#main-wrapper .wz-trend__svg, .main-wrapper .wz-trend__svg { display:block; width:160px; height:40px; }
#main-wrapper .wz-trend__line, .main-wrapper .wz-trend__line {
    fill:none; stroke:#1d4ed8; stroke-width:1.5; stroke-linejoin:round; stroke-linecap:round; }
#main-wrapper .wz-trend__dot, .main-wrapper .wz-trend__dot { fill:#1d4ed8; }
/* hollow = checked but not ranking, so it reads differently from a real position */
#main-wrapper .wz-trend__dot--unranked, .main-wrapper .wz-trend__dot--unranked {
    fill:#fff; stroke:#94a3b8; stroke-width:1; }
#main-wrapper .wz-trend__ends, .main-wrapper .wz-trend__ends {
    display:flex; justify-content:space-between; gap:10px;
    margin-top:4px; font-size:.66rem; color:#64748b; white-space:nowrap; }

/* ==========================================================================
   Add URL dialog — one box, one button.
   Scoped to .wz-addurl, not to #formModal: that id is reused by the
   competitor, admin and manager dialogs on other screens.
   ========================================================================== */

/*
 * The dialog ran off the bottom of the screen: with the old bulk section open,
 * its submit button sat below the viewport with nothing to scroll. The body
 * scrolls on its own now, so the button is always reachable however many lines
 * are pasted or however long the failure report gets.
 */
.wz-addurl .modal-body {
    max-height: calc(100vh - 210px);
    overflow-y: auto;
}

.wz-addurl__hint {
    font-weight: 400;
    color: #6b7280;
}

.wz-addurl__input {
    min-height: 92px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .86rem;
    line-height: 1.55;
    resize: vertical;
}

/* Only appears once there is more than one URL in the box, so a single-URL
   add stays as quiet as it always was. */
.wz-addurl__count {
    margin: 6px 0 0;
    font-size: .8rem;
    color: #6b7280;
}

.wz-addurl__go {
    min-width: 160px;
}

@media (max-width: 575.98px) {
    .wz-addurl .modal-body {
        max-height: calc(100vh - 150px);
    }

    .wz-addurl__go {
        width: 100%;
    }
}

/* ==========================================================================
   Creator dashboard — a screen that is useful before the first order.
   Most creators have no work, and six tiles reading zero told them only that
   they were new. These are the two panels that replace them.
   ========================================================================== */

.wz-start__score {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.wz-start__pct {
    font-size: 2rem;
    font-weight: 800;
    color: #0f1b34;
    line-height: 1.1;
}

/*
 * The bar's width comes from data-pct rather than an inline style attribute,
 * so the percentage is still server-computed but the rule lives in this file.
 * Every whole percent has its own rule below; anything the loop missed falls
 * back to the 0 width already on .wz-progress__bar.
 */
.wz-progress__bar--set {
    width: 0;
}

.wz-start__lead {
    margin: 12px 0 0;
    font-size: .9rem;
    color: #334155;
}

/* The one thing that decides whether a brand can find them at all. */
.wz-start__blocker {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 14px 0 0;
    padding: 10px 12px;
    font-size: .86rem;
    color: #8d2b2b;
    background: #fdf6f6;
    border: 1px solid #f3d6d6;
    border-radius: 10px;
}

.wz-start__list {
    margin: 8px 0 0;
    padding-left: 20px;
    font-size: .9rem;
    color: #334155;
}

.wz-start__list li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.wz-start__list li > span {
    display: block;
    font-size: .82rem;
}

.wz-start__list--plain {
    list-style: none;
    padding-left: 0;
}

.wz-ok  { color: #0f9d63; }
.wz-bad { color: #b91c1c; }

/* Only rows above zero are rendered, so this is never tiles-reading-zero again. */
.wz-attention {
    margin-top: 18px;
}

.wz-attention__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.wz-attention__row + .wz-attention__row {
    border-top: 1px solid #eef2f8;
}

.wz-attention__row a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 2px;
    color: #1d4ed8;
    text-decoration: none;
    font-size: .92rem;
}

.wz-attention__row a b {
    min-width: 2ch;
    font-size: 1.05rem;
    color: #0f1b34;
}

.wz-attention__row a i {
    margin-left: auto;
    font-size: .78rem;
}

.wz-attention__row a:hover {
    text-decoration: none;
    color: #163bb0;
}

.wz-posts__list {
    margin-top: 14px;
}

@media (max-width: 575.98px) {
    .wz-start__pct { font-size: 1.6rem; }
    .wz-attention__row a { flex-wrap: wrap; }
}

/* Widths for .wz-progress__bar--set, keyed by the server-computed data-pct. */
.wz-progress__bar--set[data-pct="0"] { width: 0%; }
.wz-progress__bar--set[data-pct="1"] { width: 1%; }
.wz-progress__bar--set[data-pct="2"] { width: 2%; }
.wz-progress__bar--set[data-pct="3"] { width: 3%; }
.wz-progress__bar--set[data-pct="4"] { width: 4%; }
.wz-progress__bar--set[data-pct="5"] { width: 5%; }
.wz-progress__bar--set[data-pct="6"] { width: 6%; }
.wz-progress__bar--set[data-pct="7"] { width: 7%; }
.wz-progress__bar--set[data-pct="8"] { width: 8%; }
.wz-progress__bar--set[data-pct="9"] { width: 9%; }
.wz-progress__bar--set[data-pct="10"] { width: 10%; }
.wz-progress__bar--set[data-pct="11"] { width: 11%; }
.wz-progress__bar--set[data-pct="12"] { width: 12%; }
.wz-progress__bar--set[data-pct="13"] { width: 13%; }
.wz-progress__bar--set[data-pct="14"] { width: 14%; }
.wz-progress__bar--set[data-pct="15"] { width: 15%; }
.wz-progress__bar--set[data-pct="16"] { width: 16%; }
.wz-progress__bar--set[data-pct="17"] { width: 17%; }
.wz-progress__bar--set[data-pct="18"] { width: 18%; }
.wz-progress__bar--set[data-pct="19"] { width: 19%; }
.wz-progress__bar--set[data-pct="20"] { width: 20%; }
.wz-progress__bar--set[data-pct="21"] { width: 21%; }
.wz-progress__bar--set[data-pct="22"] { width: 22%; }
.wz-progress__bar--set[data-pct="23"] { width: 23%; }
.wz-progress__bar--set[data-pct="24"] { width: 24%; }
.wz-progress__bar--set[data-pct="25"] { width: 25%; }
.wz-progress__bar--set[data-pct="26"] { width: 26%; }
.wz-progress__bar--set[data-pct="27"] { width: 27%; }
.wz-progress__bar--set[data-pct="28"] { width: 28%; }
.wz-progress__bar--set[data-pct="29"] { width: 29%; }
.wz-progress__bar--set[data-pct="30"] { width: 30%; }
.wz-progress__bar--set[data-pct="31"] { width: 31%; }
.wz-progress__bar--set[data-pct="32"] { width: 32%; }
.wz-progress__bar--set[data-pct="33"] { width: 33%; }
.wz-progress__bar--set[data-pct="34"] { width: 34%; }
.wz-progress__bar--set[data-pct="35"] { width: 35%; }
.wz-progress__bar--set[data-pct="36"] { width: 36%; }
.wz-progress__bar--set[data-pct="37"] { width: 37%; }
.wz-progress__bar--set[data-pct="38"] { width: 38%; }
.wz-progress__bar--set[data-pct="39"] { width: 39%; }
.wz-progress__bar--set[data-pct="40"] { width: 40%; }
.wz-progress__bar--set[data-pct="41"] { width: 41%; }
.wz-progress__bar--set[data-pct="42"] { width: 42%; }
.wz-progress__bar--set[data-pct="43"] { width: 43%; }
.wz-progress__bar--set[data-pct="44"] { width: 44%; }
.wz-progress__bar--set[data-pct="45"] { width: 45%; }
.wz-progress__bar--set[data-pct="46"] { width: 46%; }
.wz-progress__bar--set[data-pct="47"] { width: 47%; }
.wz-progress__bar--set[data-pct="48"] { width: 48%; }
.wz-progress__bar--set[data-pct="49"] { width: 49%; }
.wz-progress__bar--set[data-pct="50"] { width: 50%; }
.wz-progress__bar--set[data-pct="51"] { width: 51%; }
.wz-progress__bar--set[data-pct="52"] { width: 52%; }
.wz-progress__bar--set[data-pct="53"] { width: 53%; }
.wz-progress__bar--set[data-pct="54"] { width: 54%; }
.wz-progress__bar--set[data-pct="55"] { width: 55%; }
.wz-progress__bar--set[data-pct="56"] { width: 56%; }
.wz-progress__bar--set[data-pct="57"] { width: 57%; }
.wz-progress__bar--set[data-pct="58"] { width: 58%; }
.wz-progress__bar--set[data-pct="59"] { width: 59%; }
.wz-progress__bar--set[data-pct="60"] { width: 60%; }
.wz-progress__bar--set[data-pct="61"] { width: 61%; }
.wz-progress__bar--set[data-pct="62"] { width: 62%; }
.wz-progress__bar--set[data-pct="63"] { width: 63%; }
.wz-progress__bar--set[data-pct="64"] { width: 64%; }
.wz-progress__bar--set[data-pct="65"] { width: 65%; }
.wz-progress__bar--set[data-pct="66"] { width: 66%; }
.wz-progress__bar--set[data-pct="67"] { width: 67%; }
.wz-progress__bar--set[data-pct="68"] { width: 68%; }
.wz-progress__bar--set[data-pct="69"] { width: 69%; }
.wz-progress__bar--set[data-pct="70"] { width: 70%; }
.wz-progress__bar--set[data-pct="71"] { width: 71%; }
.wz-progress__bar--set[data-pct="72"] { width: 72%; }
.wz-progress__bar--set[data-pct="73"] { width: 73%; }
.wz-progress__bar--set[data-pct="74"] { width: 74%; }
.wz-progress__bar--set[data-pct="75"] { width: 75%; }
.wz-progress__bar--set[data-pct="76"] { width: 76%; }
.wz-progress__bar--set[data-pct="77"] { width: 77%; }
.wz-progress__bar--set[data-pct="78"] { width: 78%; }
.wz-progress__bar--set[data-pct="79"] { width: 79%; }
.wz-progress__bar--set[data-pct="80"] { width: 80%; }
.wz-progress__bar--set[data-pct="81"] { width: 81%; }
.wz-progress__bar--set[data-pct="82"] { width: 82%; }
.wz-progress__bar--set[data-pct="83"] { width: 83%; }
.wz-progress__bar--set[data-pct="84"] { width: 84%; }
.wz-progress__bar--set[data-pct="85"] { width: 85%; }
.wz-progress__bar--set[data-pct="86"] { width: 86%; }
.wz-progress__bar--set[data-pct="87"] { width: 87%; }
.wz-progress__bar--set[data-pct="88"] { width: 88%; }
.wz-progress__bar--set[data-pct="89"] { width: 89%; }
.wz-progress__bar--set[data-pct="90"] { width: 90%; }
.wz-progress__bar--set[data-pct="91"] { width: 91%; }
.wz-progress__bar--set[data-pct="92"] { width: 92%; }
.wz-progress__bar--set[data-pct="93"] { width: 93%; }
.wz-progress__bar--set[data-pct="94"] { width: 94%; }
.wz-progress__bar--set[data-pct="95"] { width: 95%; }
.wz-progress__bar--set[data-pct="96"] { width: 96%; }
.wz-progress__bar--set[data-pct="97"] { width: 97%; }
.wz-progress__bar--set[data-pct="98"] { width: 98%; }
.wz-progress__bar--set[data-pct="99"] { width: 99%; }
.wz-progress__bar--set[data-pct="100"] { width: 100%; }

/* ==========================================================================
   My Work — the merged creator work screen.
   Accepting a job and delivering it used to be two menu items; this is both,
   in three tabs. Below 768px every job becomes a card with one large action,
   because submitting work on a phone was the cramped case.
   ========================================================================== */

.wz-mywork {
    margin-top: 2%;
}

.wz-mywork__title {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f1b34;
}

.wz-mywork__sub {
    margin: 4px 0 18px;
    font-size: .92rem;
    color: #64748b;
}

/* ---- Tabs ---- */
.wz-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
    border-bottom: 1px solid #e8eef7;
}

.wz-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 16px;
    font-size: .92rem;
    font-weight: 600;
    color: #475569;
    background: none;
    border: 0;
    border-bottom: 3px solid transparent;
    cursor: pointer;
}

.wz-tab:hover {
    color: #1d4ed8;
}

.wz-tab.is-active {
    color: #1d4ed8;
    border-bottom-color: #1d4ed8;
}

.wz-tab__count {
    min-width: 22px;
    padding: 1px 7px;
    font-size: .76rem;
    font-weight: 700;
    color: #1d4ed8;
    background: #eef4ff;
    border-radius: 999px;
}

.wz-tab.is-active .wz-tab__count {
    color: #fff;
    background: #1d4ed8;
}

/* ---- Jobs ---- */
.wz-jobs {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wz-job {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid #eef2f8;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(15, 27, 52, .05);
}

.wz-job__main {
    flex: 1 1 auto;
    /* A grid/flex item defaults to min-width:auto, so a long title would push
       the actions off the side instead of wrapping. */
    min-width: 0;
}

.wz-job__title {
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 700;
    color: #0f1b34;
    overflow-wrap: anywhere;
}

.wz-job__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    margin: 0 0 8px;
    font-size: .82rem;
    color: #64748b;
}

.wz-job__state {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin: 0;
    font-size: .82rem;
}

.wz-job__badge {
    padding: 3px 10px;
    font-weight: 600;
    color: #163bb0;
    background: #eef4ff;
    border-radius: 999px;
}

.wz-job__age {
    color: #64748b;
}

.wz-job__since {
    color: #64748b;
}

/* The brand's change request, beside the job it is about. */
.wz-job__note {
    margin: 10px 0 0;
    padding: 10px 12px;
    font-size: .86rem;
    color: #7c4a03;
    background: #fffaf2;
    border: 1px solid #f7e2c3;
    border-left: 3px solid #e59b2d;
    border-radius: 8px;
    overflow-wrap: anywhere;
}

.wz-job__notelabel {
    display: block;
    font-weight: 700;
    font-size: .78rem;
    color: #a16207;
}

/* ---- The actions on a job card ----

   Three controls used to sit loose in the whitespace beside the card: a pale
   grey "View" the same size and weight as the blue button under it, the word
   STATUS stranded between the two, and a browser-default select that matched
   neither. Nothing in it said which one was the thing to press.

   They are one panel now, in one order -- the state, the thing you do about
   it, then the quiet way out -- and on one grid, so the group reads as part
   of the card rather than as three leftovers beside it. */
.wz-job__actions {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 208px;
    padding: 12px;
    background: #f8fafd;
    border: 1px solid #eef2f8;
    border-radius: 12px;
}

.wz-act__field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.wz-act__label {
    margin: 0;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #64748b;
}

/* The select draws its own chevron instead of the browser's, which is a
   different shape and sits at a different height on every platform -- which
   is why this control never lined up with the buttons under it. */
.wz-act__picker {
    position: relative;
    display: block;
}

.wz-act__select {
    width: 100%;
    height: 40px;
    padding: 0 34px 0 12px;
    font-size: .875rem;
    font-weight: 600;
    color: #0f1b34;
    background: #fff;
    border: 1px solid #dfe7f3;
    border-radius: 9px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

.wz-act__select:focus {
    outline: none;
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, .15);
}

.wz-act__select:disabled {
    color: #64748b;
    background: #f1f5f9;
    cursor: not-allowed;
}

.wz-act__chev {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    font-size: .68rem;
    color: #64748b;
    pointer-events: none;
}

/*
 * Prefixed for the same reason as the phone rule further down: `#main-wrapper
 * .btn` carries an id, so a two-class rule here loses to it however specific
 * it reads. Both wrapper spellings, because the org screens use
 * class="main-wrapper" while this one uses the id (memory/wrapper-id-vs-class).
 */
#main-wrapper .wz-job__actions .wz-act,
.main-wrapper .wz-job__actions .wz-act,
.wz-mywork .wz-job__actions .wz-act {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.2;
    border-radius: 9px;
    border: 1px solid transparent;
}

/* The one thing to press. */
#main-wrapper .wz-job__actions .wz-act--go,
.main-wrapper .wz-job__actions .wz-act--go,
.wz-mywork .wz-job__actions .wz-act--go {
    color: #fff;
    background: #1d4ed8;
    border-color: #1d4ed8;
    box-shadow: 0 2px 8px rgba(29, 78, 216, .25);
}

#main-wrapper .wz-job__actions .wz-act--go:hover,
.main-wrapper .wz-job__actions .wz-act--go:hover,
.wz-mywork .wz-job__actions .wz-act--go:hover {
    background: #1a44bd;
    border-color: #1a44bd;
}

/* Accept stays green. Blue is "the main action here"; green is "yes" -- and
   against the red Decline beside it the pair reads without anyone having to
   work out which is which.

   A shade darker than the project's #16a34a, though, and measured rather than
   picked: white on #16a34a is 3.30:1, which clears AA only for large text, and
   this label is 14px at 600 -- not large. #15803d measures 5.02 and is the
   same green one step down. */
#main-wrapper .wz-job__actions .wz-act--yes,
.main-wrapper .wz-job__actions .wz-act--yes,
.wz-mywork .wz-job__actions .wz-act--yes {
    color: #fff;
    background: #15803d;
    border-color: #15803d;
    box-shadow: 0 2px 8px rgba(21, 128, 61, .25);
}

#main-wrapper .wz-job__actions .wz-act--yes:hover,
.main-wrapper .wz-job__actions .wz-act--yes:hover,
.wz-mywork .wz-job__actions .wz-act--yes:hover {
    background: #126c37;
    border-color: #126c37;
}

/* A button, but not one competing with the one above it. */
#main-wrapper .wz-job__actions .wz-act--quiet,
.main-wrapper .wz-job__actions .wz-act--quiet,
.wz-mywork .wz-job__actions .wz-act--quiet {
    color: #334155;
    background: #fff;
    border-color: #dfe7f3;
}

#main-wrapper .wz-job__actions .wz-act--quiet:hover,
.main-wrapper .wz-job__actions .wz-act--quiet:hover,
.wz-mywork .wz-job__actions .wz-act--quiet:hover {
    color: #0f1b34;
    background: #f1f5f9;
    border-color: #cfdaea;
}

/* Declining is a real choice, so it is legible -- but it is not styled to
   invite the press the way the green one beside it is. */
#main-wrapper .wz-job__actions .wz-act--no,
.main-wrapper .wz-job__actions .wz-act--no,
.wz-mywork .wz-job__actions .wz-act--no {
    color: #b42318;
    background: #fff;
    border-color: #f1c4bf;
}

#main-wrapper .wz-job__actions .wz-act--no:hover,
.main-wrapper .wz-job__actions .wz-act--no:hover,
.wz-mywork .wz-job__actions .wz-act--no:hover {
    color: #8f1d13;
    background: #fef4f3;
    border-color: #e9a9a2;
}

#main-wrapper .wz-job__actions .wz-act:disabled,
.main-wrapper .wz-job__actions .wz-act:disabled,
.wz-mywork .wz-job__actions .wz-act:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.wz-mywork__empty {
    text-align: center;
    padding: 40px 20px;
}

.wz-mywork__emptytitle {
    margin: 0 0 6px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f1b34;
}

@media (max-width: 767.98px) {
    /* One card per job, and the action big enough to hit with a thumb. */
    .wz-job {
        flex-direction: column;
        gap: 14px;
    }

    .wz-job__actions {
        width: 100%;
    }

    /*
     * Prefixed to clear `#main-wrapper .btn` at line 612 of this same file,
     * which sets every button in the admin shell to .5rem/600 and, because of
     * that id, outranks any two-class rule here. Without the prefix the "large"
     * phone action stayed 36px like every other button -- Chrome's matched-rule
     * list named the culprit; guessing at Bootstrap and the CDN copy did not.
     *
     * Both spellings, because the org screens use class="main-wrapper" while
     * this one uses the id (see memory/wrapper-id-vs-class).
     */
    #main-wrapper .wz-job__actions .wz-act--go,
    .main-wrapper .wz-job__actions .wz-act--go,
    .wz-mywork .wz-job__actions .wz-act--go {
        height: 48px;
        font-size: 1rem;
        font-weight: 700;
        line-height: 1.4;
    }

    /* The status field matches the action it sits above. */
    .wz-act__select {
        height: 46px;
    }

    .wz-tabs {
        gap: 2px;
    }

    .wz-tab {
        flex: 1 1 auto;
        justify-content: center;
        padding: 10px 8px;
        font-size: .84rem;
    }
}

/* ==========================================================================
   Task screens: one strip of tabs, and the "my tasks only" toggle.
   Three menu items used to lead here for one job (Task Board, My Tasks,
   Interval Task); My Tasks is now a toggle and Recurring is a tab.
   ========================================================================== */

.wz-task-tabs {
    margin-bottom: 14px;
}

/* The tabs are anchors here rather than buttons, so the shared .wz-tab styling
   needs the link decoration removed and its own hover colour. */
#main-wrapper .wz-task-tabs .wz-tab,
.main-wrapper .wz-task-tabs .wz-tab {
    text-decoration: none;
}

#main-wrapper .wz-task-tabs .wz-tab:hover,
.main-wrapper .wz-task-tabs .wz-tab:hover {
    text-decoration: none;
    color: #1d4ed8;
}

.wz-mine-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 0 auto;
    padding: 6px 2px;
    font-size: .88rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    white-space: nowrap;
}

.wz-mine-toggle input {
    width: 16px;
    height: 16px;
    accent-color: #1d4ed8;
    cursor: pointer;
}

.wz-dt-empty {
    margin: 0 0 10px;
    color: #64748b;
}

@media (max-width: 767.98px) {
    .wz-mine-toggle {
        width: 100%;
        margin: 8px 0 0;
    }

    .wz-task-tabs .wz-tab {
        flex: 1 1 auto;
        justify-content: center;
    }
}

/* ==========================================================================
   Money, shown the same way on both sides of a job.
   The checkout used to display a subtotal and 18% GST while the form beneath
   it posted a hardcoded amount of 1; the creator saw one "Total Balance" with
   no indication whether anything came off it. Both now render the same
   breakdown from App\Services\OrderMoney.
   ========================================================================== */

/* ---- Advertiser: where the money goes ---- */
.wz-co-split {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed #dbe4f3;
}

.wz-co-split__head {
    margin: 0 0 8px;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #64748b;
}

.wz-co-row--sub {
    font-size: .86rem;
    color: #475569;
}

.wz-co-block {
    display: block;
    margin-top: 12px;
}

/* Said out loud, because the old behaviour was to show a real total and
   quietly charge a rupee. */
.wz-co-testmode {
    margin: 12px 0 0;
    padding: 9px 11px;
    font-size: .82rem;
    color: #7c4a03;
    background: #fffaf2;
    border: 1px solid #f7e2c3;
    border-radius: 8px;
}

/* Replaces a loading GIF that was hotlinked from pixabay.com -- an external
   request on the checkout screen, for a spinner. */
.wz-co-spin {
    display: inline-block;
    width: 22px;
    height: 22px;
    border: 3px solid #dbe4f3;
    border-top-color: #1d4ed8;
    border-radius: 50%;
    animation: wz-co-spin 0.8s linear infinite;
    vertical-align: middle;
}

.wz-co-loading__txt {
    margin-left: 8px;
    font-size: .84rem;
    color: #64748b;
}

@keyframes wz-co-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .wz-co-spin { animation-duration: 3s; }
}

/* ---- Creator: what they keep ---- */
.wz-share {
    margin-bottom: 18px;
}

.wz-share__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 2px;
    font-size: .92rem;
    color: #334155;
    border-bottom: 1px solid #eef2f8;
}

.wz-share__row b {
    font-variant-numeric: tabular-nums;
    color: #0f1b34;
}

.wz-share__row--total {
    border-bottom: 0;
    font-weight: 700;
}

.wz-share__row--total b {
    font-size: 1.15rem;
    color: #0d6b43;
}

.wz-share__note {
    margin: 10px 0 0;
    font-size: .82rem;
    color: #64748b;
}

@media (max-width: 575.98px) {
    .wz-share__row { flex-wrap: wrap; gap: 2px 12px; }
}

/* A deadline somebody agreed to, as opposed to how long a job has waited. */
.wz-job__due {
    color: #475569;
}

.wz-job__due--soon {
    font-weight: 700;
    color: #a16207;
}

.wz-job__due--late {
    font-weight: 700;
    color: #b91c1c;
}

/* ==========================================================================
   Data tables: keep the first column visible while the table scrolls.

   PDF section 1 asks three things of all 14 data tables. Measured before this
   rule existed:

     1. "one horizontally scrolling container"  -- already true on all 14
     2. "keep the first column visible"         -- true on NONE of them
     3. "the page itself never scrolls sideways" -- already true, verified at
        360/768/1280 (the wide table overflows its own .table-responsive, which
        is the point of it; the page does not)

   So this is (2), written once for every table rather than fourteen times.

   The selector reaches the table as a DESCENDANT, not a direct child: the
   Projects screen still runs jQuery DataTables, which re-parents the table into
   its own wrapper the moment it initialises, and a `>` combinator silently
   stopped matching there.

   The pinned cell needs an OPAQUE background or the scrolling content shows
   through it. The rows are striped with rgba(0,0,0,.05) over white, which is
   why the odd-row value below is #f2f2f2 rather than that translucent colour.
   ========================================================================== */

#main-wrapper .table-responsive table > thead > tr > th:first-child,
.main-wrapper .table-responsive table > thead > tr > th:first-child {
    position: sticky;
    left: 0;
    /* Above the body cells, which are also pinned. */
    z-index: 3;
    background: #f4f7fc;
}

#main-wrapper .table-responsive table > tbody > tr > td:first-child,
.main-wrapper .table-responsive table > tbody > tr > td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #fff;
}

/* white + rgba(0,0,0,.05), resolved, because a translucent pin is see-through */
#main-wrapper .table-responsive table.table-striped > tbody > tr:nth-of-type(odd) > td:first-child,
.main-wrapper .table-responsive table.table-striped > tbody > tr:nth-of-type(odd) > td:first-child {
    background: #f2f2f2;
}

/* A hairline so the pinned column reads as pinned rather than as a rendering
   fault when content slides under it. Only while there is something to scroll. */
#main-wrapper .table-responsive table > thead > tr > th:first-child::after,
#main-wrapper .table-responsive table > tbody > tr > td:first-child::after,
.main-wrapper .table-responsive table > thead > tr > th:first-child::after,
.main-wrapper .table-responsive table > tbody > tr > td:first-child::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 1px;
    background: #e6ecf5;
}

/*
 * Except when the table has become cards.
 *
 * Below 768px the two stacked tables turn every cell into a block, and a
 * sticky block that is already full width pins nothing and only breaks the
 * card layout.
 */
@media (max-width: 767.98px) {
    /*
     * Matched through .table-responsive on purpose, so this is at least as
     * specific as the sticky rule above it. Written without that ancestor the
     * first time, it lost the cascade by one class -- and the result was worse
     * than doing nothing: the visually-hidden header came back at 39px wide and
     * the cards stopped being cards. Measured in a 360px iframe, not guessed.
     */
    #main-wrapper .table-responsive table.wz-stack-table > tbody > tr > td:first-child,
    #main-wrapper .table-responsive table.wz-stack-table > thead > tr > th:first-child,
    .main-wrapper .table-responsive table.wz-stack-table > tbody > tr > td:first-child,
    .main-wrapper .table-responsive table.wz-stack-table > thead > tr > th:first-child {
        position: static;
        background: none;
    }

    /* The hidden header must stay hidden; the stack rules park it off-screen. */
    #main-wrapper .table-responsive table.wz-stack-table > thead,
    .main-wrapper .table-responsive table.wz-stack-table > thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    #main-wrapper .table-responsive table.wz-stack-table > tbody > tr > td:first-child::after,
    #main-wrapper .table-responsive table.wz-stack-table > thead > tr > th:first-child::after,
    .main-wrapper .table-responsive table.wz-stack-table > tbody > tr > td:first-child::after,
    .main-wrapper .table-responsive table.wz-stack-table > thead > tr > th:first-child::after {
        content: none;
    }
}

/* ---------------------------------------------------------------------------
   Creator dashboard layout.

   It used to be a stack of separate two-column grids. Each grid sized its own
   row, so a short card beside a tall one left the space under it empty -- and
   for a creator with no work yet BOTH grids had a short or missing right-hand
   cell, which left one void running down the entire right side of the page.
   Measured on /influencer-dashboard/roshan.

   Two columns that each stack their own cards, so the side column keeps filling
   downwards instead of stopping after its first one.
   --------------------------------------------------------------------------- */
#main-wrapper .wz-dash-cols,
.main-wrapper .wz-dash-cols {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

#main-wrapper .wz-dash-col,
.main-wrapper .wz-dash-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

@media (max-width: 991.98px) {
  #main-wrapper .wz-dash-cols,
  .main-wrapper .wz-dash-cols {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* The side column is far shorter than the main one, so once its last card has
   scrolled past the top the whole right-hand side of the page runs empty for
   the rest of the scroll. Pinning it fixes that -- but ONLY when the column
   actually fits on screen.

   The first attempt pinned it always and capped it at the viewport height, so
   a creator with seven channels got a column taller than the screen with its
   last panel ("Go to") inside an inner scrollbar nobody thinks to look for --
   on a 845px-tall window, 1133px of content in 813px of space. Hiding a
   navigation panel to win some whitespace is a bad trade.

   So the pin is a class, not a rule, and wizbrand-sticky-rail.js puts it on
   only while the column fits: a short column pins and the void is gone, a tall
   one scrolls with the page and every panel stays reachable. With no
   JavaScript nothing pins, which is exactly how the page behaved before.

   Two columns only -- below the breakpoint the grid is a single column and
   there is nothing beside it to leave blank. */
@media (min-width: 992px) {
  #main-wrapper .wz-dash-col--side.is-pinned,
  .main-wrapper .wz-dash-col--side.is-pinned {
    position: sticky;
    top: 16px;
    align-self: start;
  }
}

/* --- collapsible panel ---------------------------------------------------- */

#main-wrapper .wz-panel__collapse,
.main-wrapper .wz-panel__collapse {
  margin-left: auto;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #64748b;
  border-radius: 8px;
  width: 30px;
  height: 30px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, color .15s ease;
}

#main-wrapper .wz-panel__collapse:hover,
.main-wrapper .wz-panel__collapse:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* The arrow turns over when the panel is shut, so the control says which way
   it will go rather than only what it is. */
#main-wrapper .wz-panel__collapse i,
.main-wrapper .wz-panel__collapse i {
  transition: transform .18s ease;
}

#main-wrapper .wz-panel__collapse[aria-expanded="false"] i,
.main-wrapper .wz-panel__collapse[aria-expanded="false"] i {
  transform: rotate(180deg);
}

#main-wrapper .wz-panel__body.wz-collapsed,
.main-wrapper .wz-panel__body.wz-collapsed {
  display: none;
}

/* Visible to a screen reader, not on screen. The button is an icon, so without
   this it would announce as nothing at all. */
.wz-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Replaces an inline style="display:none" on the hidden posts tab. */
.wz-is-hidden { display: none; }

/* --- delivered versions, with the feedback each one drew (brief section 18) --- */

#main-wrapper .wz-job__history,
.main-wrapper .wz-job__history {
  margin: 10px 0 0;
  border-top: 1px solid #eef2f7;
  padding-top: 8px;
}

#main-wrapper .wz-job__history > summary,
.main-wrapper .wz-job__history > summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #1a56a8;
  list-style: none;
}

/* The default marker sits badly against the text; a chevron that turns is
   clearer about what the control does. */
#main-wrapper .wz-job__history > summary::-webkit-details-marker,
.main-wrapper .wz-job__history > summary::-webkit-details-marker { display: none; }

#main-wrapper .wz-job__history > summary::before,
.main-wrapper .wz-job__history > summary::before {
  content: "\203A";
  display: inline-block;
  margin-right: 6px;
  transition: transform .18s ease;
}

#main-wrapper .wz-job__history[open] > summary::before,
.main-wrapper .wz-job__history[open] > summary::before {
  transform: rotate(90deg);
}

#main-wrapper .wz-job__versions,
.main-wrapper .wz-job__versions {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}

#main-wrapper .wz-job__version,
.main-wrapper .wz-job__version {
  border-left: 2px solid #e2e8f0;
  padding: 0 0 10px 12px;
  margin: 0 0 10px;
}

#main-wrapper .wz-job__version:last-child,
.main-wrapper .wz-job__version:last-child { margin-bottom: 0; padding-bottom: 0; }

#main-wrapper .wz-job__vhead,
.main-wrapper .wz-job__vhead {
  display: flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
  font-size: 13px;
}

/* A delivered URL can be long and must not push the card sideways. */
#main-wrapper .wz-job__vlink,
.main-wrapper .wz-job__vlink {
  display: block;
  font-size: 12.5px;
  word-break: break-all;
  margin-top: 3px;
}

#main-wrapper .wz-job__vdesc,
.main-wrapper .wz-job__vdesc { font-size: 13px; margin: 4px 0 0; }

#main-wrapper .wz-job__note--small,
.main-wrapper .wz-job__note--small { font-size: 13px; margin-top: 6px; }

/* --- the side rail's "Go to" card ------------------------------------------ */

#main-wrapper .wz-quicklinks,
.main-wrapper .wz-quicklinks { list-style: none; margin: 0; padding: 0; }

#main-wrapper .wz-quicklinks > li + li,
.main-wrapper .wz-quicklinks > li + li { border-top: 1px solid #eef2f7; }

#main-wrapper .wz-quicklinks a,
.main-wrapper .wz-quicklinks a {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 2px;
  color: #16202e;
  text-decoration: none;
  border-radius: 6px;
}

#main-wrapper .wz-quicklinks a:hover,
.main-wrapper .wz-quicklinks a:hover { background: #f4f7fc; }

#main-wrapper .wz-quicklinks i,
.main-wrapper .wz-quicklinks i { color: #1a56a8; width: 18px; margin-top: 2px; flex: 0 0 18px; }

#main-wrapper .wz-quicklinks span,
.main-wrapper .wz-quicklinks span { display: flex; flex-direction: column; min-width: 0; }

#main-wrapper .wz-quicklinks b,
.main-wrapper .wz-quicklinks b { font-size: 13.5px; font-weight: 600; }

#main-wrapper .wz-quicklinks small,
.main-wrapper .wz-quicklinks small { color: #5a6b80; font-size: 12px; line-height: 1.35; }

/* ---------------------------------------------------------------------------
   Creator onboarding: work samples and availability (brief section 20).

   These live HERE, not in wizbrand-profile.css, because the onboarding screen
   loads wizbrand-orgs-ui.css and wizbrand-advertiser.css -- it does NOT load
   wizbrand-profile.css. Appending them there styled nothing, and the radios
   stayed off-screen until the served page's stylesheet list was actually read.
   The public-profile half of section 20 stays in wizbrand-profile.css, which
   that page does load.
   --------------------------------------------------------------------------- */
/* --- the onboarding form --- */

.wz-pf-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid #eef2f7;
}

.wz-pf-row__fields {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 2fr) minmax(0, 1fr);
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
}

.wz-pf-row__drop {
  border: 1px solid #edd3d3;
  background: #fdf7f7;
  color: #a32020;
  border-radius: 8px;
  width: 34px;
  height: 34px;
  margin-top: 26px;          /* line up with the inputs, not their labels */
  flex: 0 0 34px;
  cursor: pointer;
}

.wz-pf-row__drop:hover { background: #f8e8e8; }

.wz-pf-add { margin-top: 12px; }

.wz-av-set { border: 0; padding: 0; margin: 0; }
.wz-av-set legend { font-size: 14px; float: none; width: auto; }

.wz-av-opt {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 9px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
}

.wz-av-opt:hover { background: #f4f7fc; }
.wz-av-opt span { display: flex; flex-direction: column; }
.wz-av-opt b { font-size: 14px; }
.wz-av-opt small { color: #5a6b80; }

/*
 * 360px. Brief section 20 asks that every step can be completed on a phone,
 * and three side-by-side inputs at that width leaves each about 90px -- too
 * narrow to read a pasted URL in. They stack instead.
 */
@media (max-width: 575.98px) {
  .wz-pf-row__fields { grid-template-columns: minmax(0, 1fr); }
  .wz-pf-row__drop { margin-top: 0; }
  .wz-pf-row { flex-direction: column; }
  .wz-pf-row__drop { align-self: flex-end; }
}

/*
 * Bring the availability radios back on screen.
 *
 * The admin theme carries a global
 *   [type="radio"]:not(:checked), [type="radio"]:checked { position: absolute; left: -9999px }
 * which hides the native control and expects a label styled with ::before and
 * ::after to draw a replacement. These labels have no such replacement, so the
 * radios were simply invisible -- measured at left: -9991px inside a 360px
 * frame, which is how it was found rather than by reading the theme.
 *
 * Both pseudo-classes are named so this beats that rule in either state.
 */
.wz-av-opt input[type="radio"]:not(:checked),
.wz-av-opt input[type="radio"]:checked {
  position: static;
  left: auto;
  opacity: 1;
  pointer-events: auto;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  flex: 0 0 16px;
}

/*
 * Form labels in the two new section-20 forms.
 *
 * These deliberately do NOT use .font-weight-bold, which the admin theme gives
 *   .font-weight-bold { font-size: 1.25rem !important; }
 * -- a Bootstrap WEIGHT utility carrying a font SIZE, with !important. That is
 * why every form label in this application renders at 20px, including the ones
 * that predate this work. Asked Chrome which rule won rather than guessing; it
 * beat both my rule and the app's own `.modal-body label { font-size: .84rem }`.
 *
 * Rather than fight an !important that affects the whole app, these labels
 * carry their own class. The theme rule is left alone: changing it would resize
 * every element anywhere that uses the utility for its actual purpose.
 */
.wz-form-label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
  color: #16202e;
}

/* ---------------------------------------------------------------------------
   Payout (brief section 22).

   In wizbrand-orgs-ui.css because that is what /influencerswallet actually
   serves -- checked against the dumped page, alongside the existing
   .wz-share__row rules, rather than assumed from the file name.
   --------------------------------------------------------------------------- */

#main-wrapper .wz-payout__avail,
.main-wrapper .wz-payout__avail {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #eef2f7;
  font-size: 14px;
}

#main-wrapper .wz-payout__avail b,
.main-wrapper .wz-payout__avail b { font-size: 20px; }

#main-wrapper .wz-payout__form,
.main-wrapper .wz-payout__form { margin-top: 12px; }

#main-wrapper .wz-payout__field,
.main-wrapper .wz-payout__field { display: flex; gap: 8px; }

#main-wrapper .wz-payout__field .form-control,
.main-wrapper .wz-payout__field .form-control { flex: 1 1 auto; min-width: 0; }

#main-wrapper .wz-payout__min,
.main-wrapper .wz-payout__min { display: block; margin-top: 5px; color: #5a6b80; font-size: 12px; }

#main-wrapper .wz-payout__none,
.main-wrapper .wz-payout__none { margin: 12px 0 0; color: #5a6b80; font-size: 13.5px; }

#main-wrapper .wz-payout__ok,
.main-wrapper .wz-payout__ok {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #e3f3ea;
  color: #1c7a4a;
  font-size: 13.5px;
}

#main-wrapper .wz-payout__pending,
.main-wrapper .wz-payout__pending {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #dbe6f5;
  border-radius: 10px;
  background: #f4f7fc;
}

#main-wrapper .wz-payout__pendline,
.main-wrapper .wz-payout__pendline { margin: 0; font-size: 14px; }

#main-wrapper .wz-payout__when,
.main-wrapper .wz-payout__when { color: #5a6b80; font-size: 12px; margin: 2px 0 8px; }

#main-wrapper .wz-payout__history,
.main-wrapper .wz-payout__history { margin-top: 16px; border-top: 1px solid #eef2f7; padding-top: 12px; }

#main-wrapper .wz-payout__histhead,
.main-wrapper .wz-payout__histhead { font-weight: 600; font-size: 13px; color: #5a6b80; margin-bottom: 6px; }

#main-wrapper .wz-payout__list,
.main-wrapper .wz-payout__list { list-style: none; margin: 0; padding: 0; }

#main-wrapper .wz-payout__item,
.main-wrapper .wz-payout__item {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid #f4f7fc;
  font-size: 13.5px;
}

#main-wrapper .wz-payout__item:last-child,
.main-wrapper .wz-payout__item:last-child { border-bottom: 0; }

#main-wrapper .wz-payout__amt,
.main-wrapper .wz-payout__amt { font-weight: 600; }

/* The state is a word first; colour only reinforces it. */
#main-wrapper .wz-payout__state,
.main-wrapper .wz-payout__state { font-size: 12.5px; }

#main-wrapper .wz-payout__state--requested,
.main-wrapper .wz-payout__state--requested { color: #a8620a; }
#main-wrapper .wz-payout__state--approved,
.main-wrapper .wz-payout__state--approved  { color: #1a56a8; }
#main-wrapper .wz-payout__state--paid,
.main-wrapper .wz-payout__state--paid      { color: #1c7a4a; }
#main-wrapper .wz-payout__state--declined,
.main-wrapper .wz-payout__state--declined  { color: #a32020; }

#main-wrapper .wz-payout__note,
.main-wrapper .wz-payout__note { flex: 1 1 100%; color: #5a6b80; font-size: 12.5px; }

/* The amount box and its button stop sharing a line where that would leave the
   box too narrow to read a figure in. */
@media (max-width: 575.98px) {
  #main-wrapper .wz-payout__field,
  .main-wrapper .wz-payout__field { flex-direction: column; }
  #main-wrapper .wz-payout__field .btn,
  .main-wrapper .wz-payout__field .btn { width: 100%; }
}

/* ---------------------------------------------------------------------------
   Work status -- where jobs stand, as opposed to My Work, where they get done.

   In wizbrand-orgs-ui.css because that is what /influencer/work-status actually
   serves, checked against the dumped page rather than assumed.
   --------------------------------------------------------------------------- */

#main-wrapper .wz-status__hero,
.main-wrapper .wz-status__hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

#main-wrapper .wz-status__title,
.main-wrapper .wz-status__title { font-size: 22px; font-weight: 700; margin: 0; }

#main-wrapper .wz-status__sub,
.main-wrapper .wz-status__sub { color: #5a6b80; margin: 2px 0 0; font-size: 13.5px; }

#main-wrapper .wz-status__cta,
.main-wrapper .wz-status__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 10px;
  background: #1d4ed8;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

#main-wrapper .wz-status__cta:hover,
.main-wrapper .wz-status__cta:hover { background: #1a44b8; color: #fff; }

/* ---- Work Status: the three counts, and the way out ----

   This was four identical cards in a three-column grid, so the fourth --
   "Go to My Work", which is not a count at all -- wrapped onto a row of its
   own and read as a stat that had come loose. The action is a button now and
   the grid holds the three things it is actually for.

   Each card carries what its state MEANS. A big number over the words "In
   progress" tells somebody how many of something they cannot name, and all
   three of these are states a creator has to infer. */
#main-wrapper .wz-status__top,
.main-wrapper .wz-status__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin: 14px 0 16px;
}

/* The one sentence that sums the board up. Deliberately large: it is the
   answer most people came for. */
#main-wrapper .wz-status__headline,
.main-wrapper .wz-status__headline {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
  color: #16202e;
}

#main-wrapper .wz-status__go,
.main-wrapper .wz-status__go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-size: .875rem;
  font-weight: 600;
  color: #fff;
  background: #1d4ed8;
  border: 1px solid #1d4ed8;
  border-radius: 9px;
  text-decoration: none;
  white-space: nowrap;
}

#main-wrapper .wz-status__go:hover,
.main-wrapper .wz-status__go:hover {
  color: #fff;
  background: #1a44bd;
  border-color: #1a44bd;
}

#main-wrapper .wz-status__counts,
.main-wrapper .wz-status__counts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

/* Every count is a link INTO My Work: this screen does nothing itself, so
   there is one place where work happens and no action exists twice. */
#main-wrapper .wz-status__count,
.main-wrapper .wz-status__count {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 16px;
  border: 1px solid #e8eef7;
  border-top: 3px solid #cbd5e1;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 27, 52, .04);
  text-decoration: none;
  color: inherit;
}

#main-wrapper .wz-status__count:hover,
.main-wrapper .wz-status__count:hover {
  border-color: #cfe0f7;
  background: #fbfdff;
  box-shadow: 0 8px 20px rgba(15, 27, 52, .07);
}

/* A colour per state, on the top edge and the icon, so the three are told
   apart before any of them is read. */
#main-wrapper .wz-status__count--accept,
.main-wrapper .wz-status__count--accept { border-top-color: #1d4ed8; }

#main-wrapper .wz-status__count--progress,
.main-wrapper .wz-status__count--progress { border-top-color: #d97706; }

#main-wrapper .wz-status__count--delivered,
.main-wrapper .wz-status__count--delivered { border-top-color: #15803d; }

#main-wrapper .wz-status__ic,
.main-wrapper .wz-status__ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 8px;
  font-size: .9rem;
  border-radius: 10px;
  color: #475569;
  background: #f1f5f9;
}

#main-wrapper .wz-status__count--accept .wz-status__ic,
.main-wrapper .wz-status__count--accept .wz-status__ic { color: #1d4ed8; background: #eaf1ff; }

#main-wrapper .wz-status__count--progress .wz-status__ic,
.main-wrapper .wz-status__count--progress .wz-status__ic { color: #b45309; background: #fff5e6; }

#main-wrapper .wz-status__count--delivered .wz-status__ic,
.main-wrapper .wz-status__count--delivered .wz-status__ic { color: #15803d; background: #e9f7ee; }

#main-wrapper .wz-status__countnum,
.main-wrapper .wz-status__countnum { font-size: 30px; font-weight: 800; line-height: 1.05; color: #0f1b34; }

#main-wrapper .wz-status__countlab,
.main-wrapper .wz-status__countlab { font-size: .9rem; font-weight: 700; color: #16202e; }

#main-wrapper .wz-status__means,
.main-wrapper .wz-status__means { margin-top: 4px; font-size: .78rem; line-height: 1.45; color: #64748b; }

/* A zero is not news. Dimming it sends the eye to the cards that are. */
#main-wrapper .wz-status__count.is-empty,
.main-wrapper .wz-status__count.is-empty { border-top-color: #e2e8f0; }

#main-wrapper .wz-status__count.is-empty .wz-status__countnum,
.main-wrapper .wz-status__count.is-empty .wz-status__countnum { color: #64748b; }

#main-wrapper .wz-status__count.is-empty .wz-status__ic,
.main-wrapper .wz-status__count.is-empty .wz-status__ic { color: #64748b; background: #f1f5f9; }

/* One per row on a phone: three of these side by side at 375px leaves each
   about a hundred pixels wide, which is not enough for the sentence. */
@media (max-width: 767.98px) {
  #main-wrapper .wz-status__counts,
  .main-wrapper .wz-status__counts { grid-template-columns: minmax(0, 1fr); }

  #main-wrapper .wz-status__go,
  .main-wrapper .wz-status__go { width: 100%; justify-content: center; }
}
#main-wrapper .wz-status__nodate,
.main-wrapper .wz-status__nodate { color: #5a6b80; font-size: 13px; margin: -6px 0 16px; }

/* --- deadlines --- */

#main-wrapper .wz-status__row,
.main-wrapper .wz-status__row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid #f4f7fc;
  font-size: 13.5px;
}

#main-wrapper .wz-status__row:last-child,
.main-wrapper .wz-status__row:last-child { border-bottom: 0; }

#main-wrapper .wz-status__job,
.main-wrapper .wz-status__job { font-weight: 600; }

/* Late and nearly-late say so in words; colour only reinforces it. */
#main-wrapper .wz-status__row--overdue .wz-status__flag,
.main-wrapper .wz-status__row--overdue .wz-status__flag { color: #a32020; font-weight: 600; }

#main-wrapper .wz-status__row--soon .wz-status__flag,
.main-wrapper .wz-status__row--soon .wz-status__flag { color: #a8620a; font-weight: 600; }

#main-wrapper .wz-status__when,
.main-wrapper .wz-status__when { color: #5a6b80; font-size: 12.5px; }

/* --- whose move it is --- */

#main-wrapper .wz-status__group,
.main-wrapper .wz-status__group { margin-bottom: 16px; }

#main-wrapper .wz-status__grouplead,
.main-wrapper .wz-status__grouplead { color: #5a6b80; font-size: 13px; margin: 0 0 10px; }

#main-wrapper .wz-status__list,
.main-wrapper .wz-status__list { list-style: none; margin: 0; padding: 0; }

#main-wrapper .wz-status__item,
.main-wrapper .wz-status__item {
  padding: 12px 0;
  border-top: 1px solid #eef2f7;
}

#main-wrapper .wz-status__item:first-child,
.main-wrapper .wz-status__item:first-child { border-top: 0; padding-top: 0; }

#main-wrapper .wz-status__itemhead,
.main-wrapper .wz-status__itemhead {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: baseline;
}

#main-wrapper .wz-status__state,
.main-wrapper .wz-status__state { color: #1a56a8; font-size: 12.5px; }

#main-wrapper .wz-status__why,
.main-wrapper .wz-status__why { margin: 3px 0 6px; font-size: 13.5px; color: #16202e; }

#main-wrapper .wz-status__meta,
.main-wrapper .wz-status__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  color: #5a6b80;
  font-size: 12.5px;
}

#main-wrapper .wz-status__meta i,
.main-wrapper .wz-status__meta i { margin-right: 4px; }

#main-wrapper .wz-status__late,
.main-wrapper .wz-status__late { color: #a32020; font-weight: 600; }

#main-wrapper .wz-status__go,
.main-wrapper .wz-status__go {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
}

/* A three-across count strip is unreadable on a phone. */
@media (max-width: 575.98px) {
  #main-wrapper .wz-status__counts,
  .main-wrapper .wz-status__counts { grid-template-columns: minmax(0, 1fr); }
  #main-wrapper .wz-status__cta,
  .main-wrapper .wz-status__cta { width: 100%; justify-content: center; }
}

/*
 * The My Work page wrapper.
 *
 * Replaces a Bootstrap .row that sat outside any container, so its -15px
 * margins pushed the page 15px sideways at 1440px. A plain block with the top
 * spacing the inline style used to carry.
 */
.wz-mywork-page {
    margin-top: 18px;
}

/*
 * The blocker banner and the .is-done step chips that used to live here are
 * gone, with the markup that used them.
 *
 * The banner said "you have not set a price" directly above a strip of six
 * equal boxes, one of which said "Set Your Rates" -- the same instruction
 * twice, in two shapes. They are one panel now: see .wz-setup at the foot of
 * this file.
 */

/* ------------------------------------------------ where a KPI came from */

#main-wrapper .wz-kpi__note {
    margin-top: 4px;
    color: #7a879e;
    font-size: 0.74rem;
    line-height: 1.4;
}

#main-wrapper .wz-kpi__warn {
    display: inline-block;
    margin-left: 4px;
    padding: 1px 7px;
    border-radius: 999px;
    background: #fff1e0;
    color: #a4611a;
    font-weight: 600;
    cursor: help;
}

/* ===================================================================
 * Profile & Rates: the setup panel.
 *
 * Replaces a warning banner sitting on top of six equal boxes that said the
 * same thing as the banner, wrapped five-and-one leaving a stranded
 * full-width card, and broke "Add Work Samples" across two lines while "Add
 * Channels" fitted on one.
 *
 * One panel: progress, the next step with its reason, then quiet rows.
 * =================================================================== */

#main-wrapper .wz-setup {
    padding: 4px 0 2px;
}

#main-wrapper .wz-setup__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin: 0 0 14px;
}

#main-wrapper .wz-setup__title {
    margin: 0;
    color: #14204a;
    font-size: 1rem;
    font-weight: 700;
}

#main-wrapper .wz-setup__progress {
    display: flex;
    align-items: center;
    gap: 10px;
}

#main-wrapper .wz-setup__count {
    color: #7a879e;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

/* <progress> needs all three of these to be stylable across engines. */
#main-wrapper .wz-setup__bar {
    width: 132px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: #e7edf6;
    appearance: none;
}

#main-wrapper .wz-setup__bar::-webkit-progress-bar {
    border-radius: 999px;
    background: #e7edf6;
}

#main-wrapper .wz-setup__bar::-webkit-progress-value {
    border-radius: 999px;
    background: #1d9a52;
}

#main-wrapper .wz-setup__bar::-moz-progress-bar {
    border-radius: 999px;
    background: #1d9a52;
}

/* ------------------------------------------------------- the next step */

#main-wrapper .wz-setup__next {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 18px;
    border: 1px solid #dbe6fb;
    border-left: 4px solid #1d4ed8;
    border-radius: 12px;
    background: linear-gradient(90deg, #f6f9ff 0%, #fff 60%);
}

#main-wrapper .wz-setup__nexttext {
    flex: 1 1 auto;
    min-width: 0;
}

#main-wrapper .wz-setup__nextkicker {
    margin: 0 0 2px;
    color: #1d4ed8;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

#main-wrapper .wz-setup__nextlabel {
    margin: 0 0 3px;
    color: #14204a;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.3;
}

#main-wrapper .wz-setup__nextwhy {
    margin: 0;
    color: #5a6782;
    font-size: 0.85rem;
    line-height: 1.5;
}

#main-wrapper .wz-setup__go {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 12px 22px;
    border: 0;
    border-radius: 10px;
    background: #1d4ed8;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

#main-wrapper .wz-setup__go:hover {
    background: #1740b4;
}

#main-wrapper .wz-setup__done {
    margin: 0;
    padding: 14px 18px;
    border-radius: 12px;
    background: #eefaf1;
    color: #1d6b39;
    font-size: 0.92rem;
    font-weight: 600;
}

/* ------------------------------------------------------- the other steps */

#main-wrapper .wz-setup__list {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    /* Two columns of rows: half the height of a stack, and every row still
       has room for its whole label. */
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 26px;
}

#main-wrapper .wz-setup__row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 44px;
    padding: 8px 10px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #14204a;
    font-size: 0.9rem;
    text-align: left;
    cursor: pointer;
}

#main-wrapper .wz-setup__row:hover {
    background: #f4f7fc;
}

/*
 * A tick, or an empty circle. Nothing else goes in here.
 *
 * It held the step number until the next step was promoted out of the list,
 * which left a lone "3" sitting among ticks with no 1, 2 or 4 to make it a
 * sequence. Empty-versus-filled says the same thing and cannot be misread.
 */
#main-wrapper .wz-setup__mark {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 1.5px solid #cbd7ea;
    border-radius: 50%;
    color: #fff;
    font-size: 0.66rem;
}

#main-wrapper .wz-setup__item.is-done .wz-setup__mark {
    border-color: #1d9a52;
    background: #1d9a52;
    color: #fff;
}

#main-wrapper .wz-setup__label {
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 600;
}

/* Done rows recede: what is left is what the creator is looking for. */
#main-wrapper .wz-setup__item.is-done .wz-setup__label {
    color: #6b7a90;
    font-weight: 400;
}

#main-wrapper .wz-setup__edit {
    flex: 0 0 auto;
    color: #8a95a9;
    font-size: 0.78rem;
}

#main-wrapper .wz-setup__row:hover .wz-setup__edit {
    color: #1d4ed8;
}

/* ------------------------------------------------------------ the preview */

#main-wrapper .wz-setup__preview {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    /* 40px is the smallest reliable touch target; measured at 37px before
       this, which is a miss on a phone. */
    min-height: 40px;
    margin-top: 8px;
    padding: 8px 4px;
    color: #1d4ed8;
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
}

#main-wrapper .wz-setup__preview:hover {
    text-decoration: underline;
}

/* ----------------------------------------------------------------- phones */

@media (max-width: 767.98px) {
    /* One column. Two columns of rows at 360px leaves no room for a label. */
    #main-wrapper .wz-setup__list {
        grid-template-columns: 1fr;
    }

    /* The button under its reason, full width: a 44px pill beside a
       paragraph is not reliably hittable with a thumb. */
    #main-wrapper .wz-setup__next {
        flex-wrap: wrap;
        gap: 14px;
    }

    #main-wrapper .wz-setup__go {
        flex: 1 1 100%;
    }

    #main-wrapper .wz-setup__head {
        gap: 8px;
    }

    #main-wrapper .wz-setup__bar {
        width: 100px;
    }
}

/*
 * The step marker now always holds an icon.
 *
 * Done: a filled green circle with a tick. Not done: an outlined circle with
 * an icon of what the step is about -- an empty circle read as loading, or as
 * broken, rather than as "still to do".
 */
#main-wrapper .wz-setup__item:not(.is-done) .wz-setup__mark {
    color: #8a95a9;
    background: #fff;
}

#main-wrapper .wz-setup__mark .fas {
    font-size: 0.62rem;
    line-height: 1;
}

/* The step the card above is pointing at, marked here too, so it is visible
   that "next" moves down the list rather than being pinned. */
#main-wrapper .wz-setup__item.is-next .wz-setup__mark {
    border-color: #1d4ed8;
    color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

#main-wrapper .wz-setup__item.is-next .wz-setup__label {
    color: #14204a;
    font-weight: 700;
}

#main-wrapper .wz-setup__item.is-next .wz-setup__edit {
    color: #1d4ed8;
    font-weight: 600;
}

/*
 * Profile & Rates KPIs: a value that is absent must look absent.
 *
 * "Not set" and "0" are the honest answers for a profile nothing can be
 * bought from, and they should read as gaps to fill rather than as figures
 * to be pleased with. The old cards printed a bold coloured 0 in the same
 * weight as a real number.
 */
#main-wrapper .wz-kpi__value--none {
    color: #9aa6bd;
    font-weight: 600;
}

/* A button that reads as a link: it opens the pricing modal, so it has to be
   a button, but it belongs in the sentence under the figure. */
#main-wrapper .wz-kpi__link {
    padding: 0;
    border: 0;
    background: none;
    color: #1d4ed8;
    font: inherit;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

#main-wrapper .wz-kpi__link:hover {
    color: #1740b4;
}

/* The note under each figure carries the qualification, so it must stay
   readable rather than shrink away to nothing. */
#main-wrapper .wz-kpi__note {
    max-width: 30ch;
}

/*
 * Platforms that are not connected: chips, not cards.
 *
 * A platform card carries a follower count, a post count and a price. For a
 * channel with no link all three are a dash, so the grid was drawing seven
 * full-size cards of dashes to say "nothing here" -- and, because the list
 * ran in the form's own order, the first of them came before the channel
 * with 869 posts on it.
 */
#main-wrapper .wz-infl-more {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #eef2f8;
}

#main-wrapper .wz-infl-more__head {
    margin: 0 0 10px;
    color: #44506a;
    font-size: 0.86rem;
    font-weight: 600;
}

#main-wrapper .wz-infl-more__hint {
    color: #8a95a9;
    font-weight: 400;
}

#main-wrapper .wz-infl-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#main-wrapper .wz-infl-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    /* 40px: these are the main way to add a channel on a phone. */
    min-height: 40px;
    padding: 8px 14px;
    border: 1px dashed #cbd7ea;
    border-radius: 999px;
    background: #fff;
    color: #5a6782;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
}

#main-wrapper .wz-infl-chip:hover {
    border-style: solid;
    border-color: #1d4ed8;
    background: #f5f8ff;
    color: #1d4ed8;
}

#main-wrapper .wz-infl-chip__plus {
    color: #9aa6bd;
    font-weight: 700;
}

#main-wrapper .wz-infl-chip:hover .wz-infl-chip__plus {
    color: #1d4ed8;
}

/*
 * Refreshing the follower counts.
 *
 * The counts were read once when a channel was saved and never again -- the
 * daily command has never run here. This is the button that does not need a
 * scheduler.
 */
#main-wrapper .wz-panel__head--split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

#main-wrapper .wz-stats-refresh,
.main-wrapper .wz-stats-refresh {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 15px;
    border: 1px solid #d5dde9;
    border-radius: 9px;
    background: #fff;
    color: #44506a;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}

#main-wrapper .wz-stats-refresh:hover:not(:disabled),
.main-wrapper .wz-stats-refresh:hover:not(:disabled) {
    border-color: #1d4ed8;
    color: #1d4ed8;
}

#main-wrapper .wz-stats-refresh:disabled,
.main-wrapper .wz-stats-refresh:disabled {
    opacity: 0.75;
    cursor: progress;
}

/* Each channel is a call to somebody else's server, so this genuinely takes
   a few seconds and the button has to look busy rather than ignored. */
#main-wrapper .wz-stats-refresh.is-busy .fa-sync-alt,
#main-wrapper .wz-stats-refresh.is-busy .fa-rotate,
.main-wrapper .wz-stats-refresh.is-busy .fa-sync-alt,
.main-wrapper .wz-stats-refresh.is-busy .fa-rotate {
    animation: wz-spin 0.9s linear infinite;
}

@keyframes wz-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    #main-wrapper .wz-stats-refresh.is-busy .fa-sync-alt,
#main-wrapper .wz-stats-refresh.is-busy .fa-rotate,
.main-wrapper .wz-stats-refresh.is-busy .fa-sync-alt,
.main-wrapper .wz-stats-refresh.is-busy .fa-rotate {
        animation: none;
    }
}

#main-wrapper .wz-stats-msg,
.main-wrapper .wz-stats-msg {
    margin: 10px 0 0;
    padding: 9px 13px;
    border-radius: 8px;
    background: #f4f7fc;
    color: #44506a;
    font-size: 0.83rem;
}

#main-wrapper .wz-stats-msg--ok {
    background: #eefaf1;
    color: #1d6b39;
}

#main-wrapper .wz-stats-msg--bad {
    background: #fdf6f5;
    color: #a33128;
}

/* ------------------------------------------- when a count was last read */

#main-wrapper .wz-infl-card__checked {
    margin: 8px 0 0;
    color: #8a95a9;
    font-size: 0.73rem;
}

#main-wrapper .wz-infl-delta {
    font-weight: 700;
}

#main-wrapper .wz-infl-delta.is-up {
    color: #1d9a52;
}

#main-wrapper .wz-infl-delta.is-down {
    color: #b3261e;
}

/* A count that could not be re-read: the old one, said to be old. */
#main-wrapper .wz-infl-card__checked--stale {
    color: #a4611a;
}

/* ==========================================================================
   Platform fee: "Free", not "None"
   --------------------------------------------------------------------------
   The commission is 0 and both the cart and the creator's earnings panel
   printed the word "None" against it. Grey text reading "None" beside three
   real figures reads like a field that failed to load -- and it buries the
   whole commercial position of the product in the quietest word available.

   It is the strongest thing on this receipt, so it is allowed to look like
   it; and the note beside it promises only what can be kept, which is that
   a fee will appear on this line before it is ever charged, not that the
   marketplace is free forever.
   ========================================================================== */

.wz-fee-free {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border: 1px solid #b7e4c6;
    border-radius: 999px;
    background: #eafaf0;
    color: #15803d;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.wz-co-note,
.wz-share__note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 8px 0 0;
    padding: 10px 12px;
    border: 1px solid #cfead9;
    border-radius: 10px;
    background: #f4fbf7;
    color: #38614a;
    font-size: .8rem;
    line-height: 1.55;
}

.wz-co-note i,
.wz-share__note i {
    margin-top: 2px;
    flex: 0 0 auto;
    color: #16a34a;
}

/* --- your channels -------------------------------------------------------
   The side column stopped after two short cards and left a measured 318px
   of empty page under it -- 447px once a reader collapsed the main column's
   panels, which is the first thing anybody does to tidy a dashboard.

   Nothing invented went in it. This is the creator's own data: every linked
   channel, its audience, its post count and the date that figure was read.
   It existed in social_stats the whole time and the dashboard never showed
   it, so a creator with seven channels was told "you are not listed" and
   shown nothing about the seven.
   ------------------------------------------------------------------------ */

#main-wrapper .wz-chan,
.main-wrapper .wz-chan {
  margin: 0;
  padding: 0;
  list-style: none;
}

#main-wrapper .wz-chan__row,
.main-wrapper .wz-chan__row {
  display: flex;
  align-items: center;
  gap: 10px;
  /* Seven rows at the default line height made this panel 546px and
     overshot the column beside it. Tight enough to fit, loose enough that
     the audience figure is still the thing the eye lands on. */
  padding: 6px 0;
  border-bottom: 1px solid #eef2f8;
  line-height: 1.35;
}

#main-wrapper .wz-chan__row:last-child,
.main-wrapper .wz-chan__row:last-child {
  border-bottom: 0;
}

#main-wrapper .wz-chan__ic,
.main-wrapper .wz-chan__ic {
  flex: 0 0 18px;
  font-size: 1rem;
  text-align: center;
  color: #97a3b6;
}

/* Brand colours, muted: a column of full-strength marks fights the numbers
   beside them, which are the point of the panel. */
.wz-chan__ic[data-net="youtube"]   { color: #ff0000; }
.wz-chan__ic[data-net="instagram"] { color: #e4405f; }
.wz-chan__ic[data-net="facebook"]  { color: #1877f3; }
.wz-chan__ic[data-net="twitter"]   { color: #1da1f2; }
.wz-chan__ic[data-net="linkedin"]  { color: #0a66c2; }
.wz-chan__ic[data-net="tiktok"]    { color: #111; }
.wz-chan__ic[data-net="quora"]     { color: #b92b27; }
.wz-chan__ic[data-net="pinterest"] { color: #e60023; }
.wz-chan__ic[data-net="tumblr"]    { color: #36465d; }
.wz-chan__ic[data-net="wordpress"] { color: #21759b; }

#main-wrapper .wz-chan__who,
.main-wrapper .wz-chan__who {
  flex: 1 1 auto;
  min-width: 0;
}

#main-wrapper .wz-chan__name,
.main-wrapper .wz-chan__name {
  display: block;
  font-size: .86rem;
  font-weight: 600;
  color: #16233c;
}

#main-wrapper .wz-chan__meta,
.main-wrapper .wz-chan__meta {
  display: block;
  font-size: .76rem;
  color: #6b7789;
}

#main-wrapper .wz-chan__meta b,
.main-wrapper .wz-chan__meta b {
  color: #16233c;
}

/* The action, for a channel nobody can buy yet. */
#main-wrapper .wz-chan__set,
.main-wrapper .wz-chan__set {
  flex: 0 0 auto;
  padding: 3px 9px;
  border: 1px solid #cfdcf3;
  border-radius: 999px;
  background: #f4f8ff;
  color: #1d4ed8;
  font-size: .72rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

#main-wrapper .wz-chan__set:hover,
.main-wrapper .wz-chan__set:hover {
  border-color: #1d4ed8;
  background: #1d4ed8;
  color: #fff;
  text-decoration: none;
}

#main-wrapper .wz-chan__ok,
.main-wrapper .wz-chan__ok {
  flex: 0 0 auto;
  color: #15803d;
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
}



#main-wrapper .wz-chan__when,
.main-wrapper .wz-chan__when {
  margin: 12px 0 0;
  color: #64748b;
  font-size: .74rem;
  line-height: 1.55;
}

/* The wz-stats-refresh rules above were written as `#main-wrapper ...`
   only. This dashboard's wrapper is `class="main-wrapper"`, not the id, so
   none of it applied here and the button rendered as bare text -- which
   still worked when clicked, and therefore looked like a broken feature
   rather than a missing style. Both selectors now, as the rest of this
   file does. The spin also targeted .fa-sync-alt alone; this button uses
   .fa-rotate. */

/* A figure we cannot believe, marked where it is -- beside the number.

   It used to sit in the action column, which meant the creator's largest
   channel was the one row with nothing to press: a word reading "check",
   no link, no button, and no Set price. A number we do not trust is a
   reason to re-read it, never a reason to stop somebody pricing the
   channel. */
#main-wrapper .wz-chan__wrong,
.main-wrapper .wz-chan__wrong {
  color: #9a6212;
  font-weight: 600;
}

#main-wrapper .wz-chan__wrong i,
.main-wrapper .wz-chan__wrong i {
  margin-right: 2px;
}

/* The re-check button, inside the panel rather than a link to the page
   that has one. Same endpoint and same script as Profile & Rates. */
#main-wrapper .wz-chan__recheck,
.main-wrapper .wz-chan__recheck {
  width: 100%;
  margin-top: 10px;
  justify-content: center;
}

/* ==========================================================================
   Profile & Rates: a figure that cannot be true, and a price that can be set
   --------------------------------------------------------------------------
   Two defects on the page where a creator decides what to charge.

   One account here reports over 500 million followers. The dashboard marks
   that; this page did not -- so the number a creator would actually price
   against was the one shown without a word against it. The mark is amber
   rather than red: the reading is doubtful, not an error, and the channel
   is still perfectly fine to sell.

   And seven cards said "No price set" while not one of them could set it.
   The button below replaces that badge. It is deliberately quieter than the
   green price it stands in for -- the card with a price is the finished
   state and should still read as the better one -- but it is unmistakably
   a control: border, hover, focus ring, and a cursor that says so.
   ========================================================================== */

#main-wrapper .wz-infl-card__stats .num.is-suspect {
    color: #a4611a;
    text-decoration: underline dotted currentColor;
    text-underline-offset: 3px;
    cursor: help;
}

#main-wrapper .wz-infl-setprice {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid #cfd8e6;
    border-radius: 999px;
    background: #fff;
    color: #33415c;
    font-size: .8rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

#main-wrapper .wz-infl-setprice i {
    font-size: .75rem;
    color: #64748b;
    transition: color .15s ease;
}

#main-wrapper .wz-infl-setprice:hover,
#main-wrapper .wz-infl-setprice:focus-visible {
    border-color: #0d8a52;
    background: #f2fbf6;
    color: #0b6b40;
}

#main-wrapper .wz-infl-setprice:hover i,
#main-wrapper .wz-infl-setprice:focus-visible i {
    color: #0d8a52;
}

/* Keyboard users get a ring; the theme removes the browser default. */
#main-wrapper .wz-infl-setprice:focus-visible {
    outline: 2px solid #0d8a52;
    outline-offset: 2px;
}

/* ==========================================================================
   Profile & Rates: the profile half
   --------------------------------------------------------------------------
   The page is named "Profile & Rates" and carried seven channel cards and
   nothing whatever from the profile -- no photo, no name, no location, no
   bio, no category, no samples. This panel is what a brand actually sees,
   mirrored from the rows the public page renders.

   It is a strip rather than a card grid on purpose. The top of this page was
   given to a four-box KPI band once, and for a creator who had priced
   nothing every box read "Not set" or "0" -- the widest, highest thing on
   the screen saying nothing. This one carries only fields that are either
   filled or worth filling, and each gap is the button that fills it.
   ========================================================================== */

#main-wrapper .wz-pcard__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

#main-wrapper .wz-pcard__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: #0f1b34;
}

#main-wrapper .wz-pcard__title i { color: #64748b; margin-right: 6px; }

#main-wrapper .wz-pcard__headright {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
}

#main-wrapper .wz-pcard__score { font-size: .8rem; color: #64748b; font-weight: 700; }

#main-wrapper .wz-pcard__preview { font-size: .82rem; font-weight: 700; color: #1d4ed8; }
#main-wrapper .wz-pcard__preview i { font-size: .7rem; margin-left: 4px; }

/* --- identity row ------------------------------------------------------- */

#main-wrapper .wz-pcard__body {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

#main-wrapper .wz-pcard__photo {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #eef2f8;
    flex: 0 0 auto;
}

/* No photo is a gap, so it is drawn as one rather than as a grey circle
   that could be mistaken for a picture that failed to load. */
#main-wrapper .wz-pcard__photo--empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f7f9fc;
    border: 1px dashed #cfd8e6;
    color: #64748b;
    font-size: 1.2rem;
    cursor: pointer;
}

#main-wrapper .wz-pcard__photo--empty:hover { border-color: #0d8a52; color: #0d8a52; }

#main-wrapper .wz-pcard__who { flex: 1 1 260px; min-width: 0; }

#main-wrapper .wz-pcard__name {
    margin: 0 0 6px;
    font-size: 1.12rem;
    font-weight: 800;
    color: #0f1b34;
}

#main-wrapper .wz-pcard__facts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
}

#main-wrapper .wz-pcard__fact {
    font-size: .84rem;
    color: #33415c;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

#main-wrapper .wz-pcard__fact i { color: #64748b; font-size: .78rem; }

/* A fact that is not there reads as absent, not as data. */
#main-wrapper .wz-pcard__fact.is-missing { color: #64748b; font-style: italic; }

#main-wrapper .wz-pcard__avail {
    margin: 0;
    font-size: .8rem;
    font-weight: 700;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

#main-wrapper .wz-pcard__avail i { font-size: .5rem; }

#main-wrapper .wz-pcard__avail--open   { color: #0d8a52; }
#main-wrapper .wz-pcard__avail--busy   { color: #a4611a; }
#main-wrapper .wz-pcard__avail--paused { color: #64748b; }

/* --- bio ---------------------------------------------------------------- */

#main-wrapper .wz-pcard__bio {
    margin: 14px 0 0;
    font-size: .88rem;
    line-height: 1.55;
    color: #33415c;
}

#main-wrapper .wz-pcard__bio--empty { color: #64748b; font-style: italic; }

/* --- gaps --------------------------------------------------------------- */

#main-wrapper .wz-pcard__gaps {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #eef2f8;
}

#main-wrapper .wz-pcard__gapslabel {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #64748b;
    font-weight: 800;
    margin-right: 2px;
}

#main-wrapper .wz-pcard__gap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border: 1px dashed #cfd8e6;
    border-radius: 999px;
    background: #fff;
    color: #33415c;
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}

#main-wrapper .wz-pcard__gap i { font-size: .65rem; color: #64748b; }

#main-wrapper .wz-pcard__gap:hover,
#main-wrapper .wz-pcard__gap:focus-visible {
    border-style: solid;
    border-color: #0d8a52;
    background: #f2fbf6;
    color: #0b6b40;
}

#main-wrapper .wz-pcard__gap:hover i,
#main-wrapper .wz-pcard__gap:focus-visible i { color: #0d8a52; }

#main-wrapper .wz-pcard__gap:focus-visible,
#main-wrapper .wz-pcard__photo--empty:focus-visible {
    outline: 2px solid #0d8a52;
    outline-offset: 2px;
}

/* On a phone the availability badge would be pushed onto its own line by
   the photo; let the identity block take the full width instead. */
@media (max-width: 575.98px) {
    #main-wrapper .wz-pcard__body { gap: 12px; }
    #main-wrapper .wz-pcard__photo { width: 60px; height: 60px; }
    #main-wrapper .wz-pcard__avail { flex-basis: 100%; }
}

/* --------------------------------------------------------------------------
   Rates: how much of this is actually for sale
   --------------------------------------------------------------------------
   The panel drew seven cards and never answered the page's own question.
   "Set a price" on every card is a pattern the eye stops reading by the
   third one, so the count is said once, in words, above them.

   And a price is flagged the same way an impossible follower count is. The
   largest on this marketplace is 2,400,000,000,000 for one post. A wrong
   follower count is embarrassing; a wrong price is what a brand is quoted,
   so it is the one that actually costs the creator work. Marked, never
   altered.
   -------------------------------------------------------------------------- */

#main-wrapper .wz-rates-sum {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #f7f9fc;
    border: 1px solid #eef2f8;
    font-size: .85rem;
    color: #33415c;
}

#main-wrapper .wz-rates-sum i { color: #64748b; }
#main-wrapper .wz-rates-sum b { color: #0f1b34; font-weight: 800; }

/* Nothing priced is the blocker, so it is allowed to look like one. */
#main-wrapper .wz-rates-sum.is-none {
    background: #fdf6ec;
    border-color: #f0dfc4;
    color: #7a4a12;
}

#main-wrapper .wz-rates-sum.is-none i,
#main-wrapper .wz-rates-sum.is-none b { color: #a4611a; }

#main-wrapper .wz-infl-price.is-suspect {
    color: #a4611a;
    text-decoration: underline dotted currentColor;
    text-underline-offset: 3px;
    cursor: help;
}

/* ==========================================================================
   The rate card
   --------------------------------------------------------------------------
   Seven boxes in a grid became one row per channel.

   A box is the right shape for one thing looked at on its own. A rate card
   is the opposite: it is read DOWN, comparing what each channel is worth
   against what it is being sold for -- and that is the one comparison a
   grid of boxes makes impossible. The grid also wrapped four-and-three and
   cramps to nothing at twelve channels, which is what a creator who
   connects every platform ends up with.

   On a phone the table turns into stacked blocks, each cell labelled from
   its own data-label, because a five-column table at 375px is a horizontal
   scrollbar nobody finds.
   ========================================================================== */

#main-wrapper .wz-rate { width: 100%; overflow-x: auto; }

#main-wrapper .wz-rate__table {
    width: 100%;
    border-collapse: collapse;
    font-size: .875rem;
}

#main-wrapper .wz-rate__table thead th {
    text-align: left;
    padding: 0 12px 8px;
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #64748b;
    border-bottom: 1px solid #eef2f8;
    white-space: nowrap;
}

#main-wrapper .wz-rate__table tbody tr { border-bottom: 1px solid #f2f5fa; }
#main-wrapper .wz-rate__table tbody tr:last-child { border-bottom: 0; }
#main-wrapper .wz-rate__table tbody tr:hover { background: #fafcff; }

#main-wrapper .wz-rate__table td,
#main-wrapper .wz-rate__table tbody th {
    padding: 12px;
    vertical-align: middle;
    font-weight: 400;
    color: #33415c;
}

/* --- the channel ------------------------------------------------------- */

#main-wrapper .wz-rate__chan {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #0f1b34;
    white-space: nowrap;
}

#main-wrapper .wz-rate__chan a { color: #0f1b34; }
#main-wrapper .wz-rate__chan a:hover { color: #1d4ed8; text-decoration: underline; }

#main-wrapper .wz-rate__ic {
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #f7f9fc;
    border: 1px solid #eef2f8;
    color: var(--wz-ic, inherit);
}

/* --- figures ------------------------------------------------------------ */

#main-wrapper .wz-rate__num { text-align: right; white-space: nowrap; }
#main-wrapper .wz-rate__num b { font-weight: 800; color: #0f1b34; }

/* An implausible reading, marked and still counted. */
#main-wrapper .wz-rate__num b.is-suspect {
    color: #a4611a;
    text-decoration: underline dotted currentColor;
    text-underline-offset: 3px;
    cursor: help;
}

/* --- channel size -------------------------------------------------------

   One column where there were two. Audience and Posts were fixed columns and
   55 of their 84 cells were a dash -- only 11 of 42 channels report both, and
   several platforms report neither. Each figure now carries the word the
   platform used for it, so the cell says what the number is and the header
   does not have to be wrong for six platforms to be right for one.

   Figures stack rather than sit side by side: a row with both reads as two
   facts about one channel, and a row with one is not left with a gap where
   the other used to be. */

#main-wrapper .wz-rate__size {
    text-align: right;
    white-space: nowrap;
    line-height: 1.35;
}

/* Two tracks, not a right-aligned line.
   
   With the figure and its word in one right-aligned line, the WORDS lined up
   and the numbers did not: measured, nine figures across five different right
   edges, 518M sitting 34px left of 424. A rate card is read DOWN a column, so
   staggered numbers are the one thing this layout has to avoid.
   
   The word track is a fixed width rather than `auto`, because each cell is
   its own grid -- an auto track sized to that cell's own word would put every
   row's number somewhere different again. "subscribers" -- the longest word
   any platform sends -- measures 70px here, so the track is 78px: exactly
   fitting leaves nothing for a wider rendering of the same font. */
#main-wrapper .wz-rate__fig {
    display: grid;
    grid-template-columns: 1fr 78px;
    gap: 6px;
    align-items: baseline;
}

#main-wrapper .wz-rate__fig b {
    font-weight: 800;
    color: #0f1b34;
    font-variant-numeric: tabular-nums;
}

/* The word is support, not the figure -- it must not compete with it. */
#main-wrapper .wz-rate__word {
    font-size: .76rem;
    color: #64748b;
    text-align: left;
    white-space: nowrap;
}

/* An implausible reading, marked and still counted. */
#main-wrapper .wz-rate__fig b.is-suspect {
    color: #a4611a;
    text-decoration: underline dotted currentColor;
    text-underline-offset: 3px;
    cursor: help;
}

/* A sentence, not a figure.
   
   The cell carries `white-space: nowrap` so "518M subscribers" never breaks
   across two lines -- and that was reaching this message too. Measured on
   /profile-rates: "that account was not found -- check the link" is 271px of
   text in a 189px cell, so 94px of it painted straight over the "Last
   checked" column beside it. Blocked and wrapped, it stays in its own cell. */
#main-wrapper .wz-rate__none {
    color: #64748b;
    font-size: .8rem;
    font-style: italic;
    display: block;
    white-space: normal;
    overflow-wrap: anywhere;
}

#main-wrapper .wz-rate__when { color: #64748b; font-size: .8rem; }

#main-wrapper .wz-rate__delta { font-weight: 700; }
#main-wrapper .wz-rate__delta.is-up { color: #1d9a52; }
#main-wrapper .wz-rate__delta.is-down { color: #b3261e; }

#main-wrapper .wz-rate__warn { color: #a4611a; font-weight: 600; }
#main-wrapper .wz-rate__warn--block { display: block; margin-top: 4px; font-size: .75rem; }

/* --- the rate ----------------------------------------------------------- */

#main-wrapper .wz-rate__rate { white-space: nowrap; }

#main-wrapper .wz-rate__price {
    font-weight: 800;
    color: #0d8a52;
    font-size: 1rem;
    margin-right: 8px;
}

#main-wrapper .wz-rate__price small { color: #64748b; font-weight: 600; }

#main-wrapper .wz-rate__price.is-suspect {
    color: #a4611a;
    text-decoration: underline dotted currentColor;
    text-underline-offset: 3px;
    cursor: help;
}

#main-wrapper .wz-rate__edit {
    border: 0;
    background: none;
    padding: 0;
    color: #1d4ed8;
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
}

#main-wrapper .wz-rate__edit:hover { text-decoration: underline; }

#main-wrapper .wz-rate__edit:focus-visible,
#main-wrapper .wz-rate__table .wz-infl-setprice:focus-visible {
    outline: 2px solid #0d8a52;
    outline-offset: 2px;
}

/* A row with nothing for sale is the one that needs attention. */
#main-wrapper .wz-rate__table tbody tr.is-unpriced .wz-rate__rate { background: #fffdf7; }

/* --- phones ------------------------------------------------------------- */

@media (max-width: 767.98px) {
    #main-wrapper .wz-rate__table thead { position: absolute; left: -9999px; }

    #main-wrapper .wz-rate__table tbody tr {
        display: block;
        border: 1px solid #eef2f8;
        border-radius: 12px;
        padding: 10px 12px;
        margin-bottom: 12px;
    }

    #main-wrapper .wz-rate__table tbody th,
    #main-wrapper .wz-rate__table tbody td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 6px 0;
        text-align: left;
    }

    /* The column heading follows its value down the page. */
    #main-wrapper .wz-rate__table tbody td::before {
        content: attr(data-label);
        font-size: .68rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: .04em;
        color: #64748b;
    }

    #main-wrapper .wz-rate__chan {
        border-bottom: 1px solid #f2f5fa;
        padding-bottom: 10px;
        justify-content: flex-start;
    }

    #main-wrapper .wz-rate__rate { flex-wrap: wrap; }
}

/* Controls added to the profile panel when it absorbed the setup checklist.
   A filled field still needs a way to change it -- that is what the
   checklist's "Change" links were for, and removing them without this would
   have stranded a creator who simply wanted to edit a bio they already had. */

#main-wrapper .wz-pcard__edit {
    border: 1px solid #cfd8e6;
    border-radius: 999px;
    background: #fff;
    padding: 4px 11px;
    font-size: .78rem;
    font-weight: 700;
    color: #33415c;
    cursor: pointer;
}

#main-wrapper .wz-pcard__edit i { font-size: .7rem; color: #64748b; }
#main-wrapper .wz-pcard__edit:hover { border-color: #1d4ed8; color: #1d4ed8; }
#main-wrapper .wz-pcard__edit:hover i { color: #1d4ed8; }

#main-wrapper .wz-pcard__photobtn {
    border: 0;
    background: none;
    padding: 0;
    line-height: 0;
    cursor: pointer;
    border-radius: 50%;
}

#main-wrapper .wz-pcard__factbtn {
    border: 0;
    background: none;
    padding: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

#main-wrapper .wz-pcard__factbtn:hover { color: #1d4ed8; text-decoration: underline; }

/* The availability badge is a button now; it must not look like one until
   it is reached, because it is read far more often than it is changed. */
#main-wrapper .wz-pcard__avail {
    border: 1px solid transparent;
    background: none;
    padding: 4px 8px;
    border-radius: 999px;
    cursor: pointer;
}

#main-wrapper .wz-pcard__avail:hover { border-color: #eef2f8; background: #f7f9fc; }

/* Same for the bio: a block of text that happens to be editable. */
#main-wrapper .wz-pcard__bio {
    display: block;
    width: 100%;
    text-align: left;
    border: 1px solid transparent;
    background: none;
    padding: 8px;
    margin: 10px 0 0;
    border-radius: 10px;
    font: inherit;
    font-size: .88rem;
    line-height: 1.55;
    color: #33415c;
    cursor: pointer;
}

#main-wrapper .wz-pcard__bio:hover { border-color: #eef2f8; background: #f7f9fc; }

#main-wrapper .wz-pcard__edit:focus-visible,
#main-wrapper .wz-pcard__photobtn:focus-visible,
#main-wrapper .wz-pcard__factbtn:focus-visible,
#main-wrapper .wz-pcard__avail:focus-visible,
#main-wrapper .wz-pcard__bio:focus-visible {
    outline: 2px solid #0d8a52;
    outline-offset: 2px;
}

/* Column widths, because the browser's own guess put "Your rate" against the
   right edge with a hand's width of empty table between it and the date it
   belongs beside. The rate is the column this page exists for, so it is
   given room and kept next to the reading that justifies it. */
@media (min-width: 768px) {
    /* A fixed layout hands each column a percentage whether the content
       fits or not, and below roughly 1150px it stopped fitting: "Channel
       size" came out at 112px holding "518M subscribers", which needs about
       130, so the word printed straight over "rounded by Youtube" in the
       column beside it. The floor keeps every column at least as wide as
       what it holds; under it .wz-rate scrolls sideways, which it is already
       set up to do. 880px is the narrowest that still fits the widest word
       any platform sends -- measured, not guessed: "Channel size" is 15.4%
       of the table, and it needs 135px. Any higher and a 1280px window gets
       a sideways scrollbar it never needed. */
    #main-wrapper .wz-rate__table { table-layout: fixed; min-width: 880px; }

    #main-wrapper .wz-rate__table th:nth-child(1) { width: 24%; }
    #main-wrapper .wz-rate__table th:nth-child(2) { width: 12%; }
    #main-wrapper .wz-rate__table th:nth-child(3) { width: 12%; }
    #main-wrapper .wz-rate__table th:nth-child(4) { width: 30%; }
    #main-wrapper .wz-rate__table th:nth-child(5) { width: 22%; }

    /* The "nothing for sale" tint is a cell, not a bleed to the page edge. */
    #main-wrapper .wz-rate__table tbody tr.is-unpriced .wz-rate__rate {
        border-radius: 8px;
    }
}

/* Long channel names wrap rather than push the rate off the row. */
#main-wrapper .wz-rate__when { white-space: normal; }

/* A rate that is wrong is also long. It must wrap inside its cell instead of
   pushing "Change" out of the row -- the one control on a row whose price
   needs changing. */
#main-wrapper .wz-rate__rate { white-space: normal; }
#main-wrapper .wz-rate__price { display: inline-block; word-break: break-word; }

/* The photo control is a link now, not a button: this screen has no upload
   on it and the file input lives on the profile page. It still has to look
   and behave exactly as it did. */
#main-wrapper a.wz-pcard__photobtn { display: inline-block; }

#main-wrapper a.wz-pcard__photo--empty,
#main-wrapper span.wz-pcard__photo--empty {
    text-decoration: none;
}

#main-wrapper a.wz-pcard__gap { text-decoration: none; }

/* No slug means no profile page to send anyone to, so the placeholder is
   inert -- and must not invite a press it cannot answer. */
#main-wrapper span.wz-pcard__photo--empty { cursor: default; opacity: .7; }

/* ==========================================================================
   One empty state
   --------------------------------------------------------------------------
   There were three, on three sibling pages, drawn three different ways: a
   bare grey sentence on Work Status, a bordered panel on My Work, and a
   full illustrated card with its own sub-cards on Earnings. A reader moving
   between them could reasonably think they had landed in three products.

   Centred, but deliberately not tall: an empty screen is a state to pass
   through, not a poster. The previous Earnings version was 533px high and
   said less than this does.
   ========================================================================== */

#main-wrapper .wz-nothing {
    text-align: center;
    padding: 34px 20px 38px;
    max-width: 520px;
    margin: 0 auto;
}

#main-wrapper .wz-nothing__ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #f2f5fa;
    color: #64748b;
    font-size: 1.2rem;
    margin-bottom: 14px;
}

#main-wrapper .wz-nothing__title {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f1b34;
}

#main-wrapper .wz-nothing__holds {
    margin: 0;
    font-size: .88rem;
    line-height: 1.55;
    color: #64748b;
}

/* The reason is the useful half, so it is the half that is emphasised --
   and it is amber rather than grey because it is something to act on, not
   a decorative note. */
#main-wrapper .wz-nothing__why {
    margin: 16px 0 0;
    padding: 10px 14px;
    border-radius: 10px;
    background: #fdf6ec;
    border: 1px solid #f0dfc4;
    color: #7a4a12;
    font-size: .85rem;
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

#main-wrapper .wz-nothing__why i { color: #a4611a; margin-top: 2px; }

#main-wrapper .wz-nothing__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 9px 18px;
    border-radius: 10px;
    background: #1d4ed8;
    color: #fff;
    font-weight: 700;
    font-size: .88rem;
    text-decoration: none;
}

/* Written out because the theme's global a:hover would otherwise repaint
   this label blue on blue -- the defect that prompted the hover sweep. */
#main-wrapper .wz-nothing__cta:hover,
#main-wrapper .wz-nothing__cta:focus,
#main-wrapper .wz-nothing__cta:focus-visible {
    background: #163bb0;
    color: #fff;
    text-decoration: none;
}

#main-wrapper .wz-nothing__cta:focus-visible {
    outline: 2px solid #163bb0;
    outline-offset: 2px;
}

/* ==========================================================================
   Find a job, or narrow to the ones that need something
   --------------------------------------------------------------------------
   The tabs answer "what state is my work in" and nothing answered "where is
   the job for that brand" -- with twenty delivered jobs the only way to
   reach one was to scroll.

   Search and the filters are separate controls because they answer different
   questions: search is for something already known, filters are for looking
   around. Sort sits with them because people reach for "order by" and
   "narrow to" in the same moment.

   On a phone the row wraps into three: search takes the full width, the
   chips scroll sideways rather than stacking four deep, and sort sits under
   them.
   ========================================================================== */

#main-wrapper .wz-filter {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0 0 14px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #eef2f8;
    border-radius: 12px;
}

/* --- search ------------------------------------------------------------- */

#main-wrapper .wz-filter__find {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1 1 240px;
    min-width: 0;
}

#main-wrapper .wz-filter__find > i {
    position: absolute;
    left: 12px;
    color: #64748b;
    font-size: .82rem;
    pointer-events: none;
}

#main-wrapper .wz-filter__input {
    width: 100%;
    padding: 8px 32px 8px 32px;
    border: 1px solid #cfd8e6;
    border-radius: 999px;
    font-size: .86rem;
    color: #0f1b34;
    background: #fff;
}

#main-wrapper .wz-filter__input::placeholder { color: #64748b; }

#main-wrapper .wz-filter__input:focus {
    outline: none;
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, .12);
}

#main-wrapper .wz-filter__clear {
    position: absolute;
    right: 8px;
    border: 0;
    background: none;
    color: #64748b;
    cursor: pointer;
    padding: 4px 6px;
    line-height: 1;
}

#main-wrapper .wz-filter__clear:hover { color: #33415c; }

/* --- chips -------------------------------------------------------------- */

#main-wrapper .wz-filter__chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

#main-wrapper .wz-filter__chip {
    padding: 6px 13px;
    border: 1px solid #cfd8e6;
    border-radius: 999px;
    background: #fff;
    color: #33415c;
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

#main-wrapper .wz-filter__chip:hover {
    border-color: #1d4ed8;
    color: #1d4ed8;
}

/* The chosen one is filled, not merely outlined: at a glance a reader has
   to be able to tell the list is narrowed without reading the words. */
#main-wrapper .wz-filter__chip.is-on {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff;
}

#main-wrapper .wz-filter__chip.is-on:hover {
    background: #163bb0;
    border-color: #163bb0;
    color: #fff;
}

#main-wrapper .wz-filter__chip:focus-visible,
#main-wrapper .wz-filter__clear:focus-visible,
#main-wrapper .wz-filter__reset:focus-visible {
    outline: 2px solid #1d4ed8;
    outline-offset: 2px;
}

/* --- sort --------------------------------------------------------------- */

#main-wrapper .wz-filter__sort {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

#main-wrapper .wz-filter__sortlab {
    margin: 0;
    font-size: .7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #64748b;
}

#main-wrapper .wz-filter__select {
    padding: 7px 10px;
    border: 1px solid #cfd8e6;
    border-radius: 8px;
    font-size: .82rem;
    color: #33415c;
    background: #fff;
}

/* --- the count ---------------------------------------------------------- */

#main-wrapper .wz-filter__count {
    margin: -6px 0 12px;
    padding-left: 2px;
    font-size: .82rem;
    color: #64748b;
}

#main-wrapper .wz-filter__reset {
    border: 0;
    background: none;
    padding: 0 0 0 6px;
    color: #1d4ed8;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
}

#main-wrapper .wz-filter__reset:hover { text-decoration: underline; }

/* --- phones ------------------------------------------------------------- */

@media (max-width: 767.98px) {
    #main-wrapper .wz-filter { gap: 10px; }
    #main-wrapper .wz-filter__find { flex: 1 1 100%; }

    /* Sideways rather than four rows deep. */
    #main-wrapper .wz-filter__chips {
        flex: 1 1 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    #main-wrapper .wz-filter__sort { margin-left: 0; flex: 1 1 100%; }
    #main-wrapper .wz-filter__select { flex: 1; }
}

/* A reading that could not be retaken is not a warning, so it is not
   coloured like one. The figure beside it is still true as of the date
   shown; whose service was unreachable is our problem, not the creator's. */
#main-wrapper .wz-rate__when--soft { color: #64748b; font-style: italic; }

/* The account each rate is for.
   --------------------------------------------------------------------------
   One row here reads 518M against a link to youtube.com/@MrBeast. The first
   attempt at flagging that asked "is this your Youtube link?" -- a silly
   question, because of course there is a link: the figures beside it came
   from one.

   The creator does not need to be asked anything. They need to see WHICH
   account is linked, and then it is obvious. So the handle is shown on every
   row, quietly, and only turns amber on the row whose figure is implausible. */

#main-wrapper .wz-rate__chanwrap {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

#main-wrapper .wz-rate__handle {
    font-size: .74rem;
    font-weight: 400;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 16ch;
}

#main-wrapper .wz-rate__handle.is-suspect {
    color: #a4611a;
    font-weight: 700;
}

@media (max-width: 767.98px) {
    #main-wrapper .wz-rate__handle { max-width: none; }
}

/* The handle measured 0px wide and drew nothing.
   --------------------------------------------------------------------------
   `.wz-rate__chanwrap` is a flex item inside a nowrap flex row, in a
   table-layout:fixed column. Without a flex basis it defaulted to
   `flex: 0 1 auto` and the child's overflow:hidden let it collapse to
   nothing -- present in the DOM, visible to getComputedStyle, and zero
   pixels on screen.

   Caught by measuring the box rather than by looking at the markup, which
   is the same lesson as the missing icons: an element that exists is not an
   element that shows. */
#main-wrapper .wz-rate__chanwrap { flex: 1 1 auto; }
#main-wrapper .wz-rate__handle { max-width: 100%; }

/* The channel cell stays a table cell; the flex row is a span inside it.
   `display: flex` on a <th> takes it out of the table's column sizing --
   measured: the cell collapsed to 58px and the link inside it to 0px, so the
   handle was in the DOM, reported visible, and drew nothing. */
#main-wrapper .wz-rate__chancell { font-weight: 400; }
#main-wrapper .wz-rate__chan { display: flex; }

@media (max-width: 767.98px) {
    #main-wrapper .wz-rate__table tbody th.wz-rate__chancell {
        display: block;
        border-bottom: 1px solid #f2f5fa;
        padding-bottom: 10px;
    }
}

/* "rounded by Youtube" — said quietly beside the date.
   The platform reports big channels to three significant figures, so the
   smallest change it can show is a whole rounding step. Printing that step
   as growth is how "up 1M since 1 day ago" reached the screen. */
#main-wrapper .wz-rate__rounded {
    display: block;
    font-size: .7rem;
    color: #64748b;
}

/* One control area, not two.
   --------------------------------------------------------------------------
   The three states were a tab strip in a row of their own, directly above a
   filter row: two bars of chrome doing the same job, which is narrowing a
   list. They are one block now -- search and sort on the first line, state
   and attention on the second.

   The state chips are visually separated from the attention chips by a hair
   line rather than by distance, because they combine: "In progress" AND
   "Overdue" is a question a creator actually asks. */

#main-wrapper .wz-filter--wide { flex-wrap: wrap; row-gap: 10px; }

#main-wrapper .wz-filter__row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1 1 100%;
}

#main-wrapper .wz-filter__split {
    width: 1px;
    align-self: stretch;
    min-height: 22px;
    background: #e6ebf3;
}

/* What the lit filter is actually doing, in a sentence.

   The chips carry a `title` too, but a tooltip needs a mouse and most of
   these are read on a phone. Two words on a chip cannot say that Overdue
   means a date the BRAND agreed to, and somebody looking at an empty list
   has no way to tell a working filter from a broken screen until they are
   told what was looked for. */
#main-wrapper .wz-filter__means,
.main-wrapper .wz-filter__means,
.wz-mywork .wz-filter__means {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 10px 0 0;
    padding: 9px 12px;
    font-size: .84rem;
    line-height: 1.45;
    color: #334155;
    background: #f4f8ff;
    border: 1px solid #e3ecfb;
    border-radius: 10px;
}

#main-wrapper .wz-filter__means i,
.main-wrapper .wz-filter__means i,
.wz-mywork .wz-filter__means i {
    margin-top: 2px;
    font-size: .78rem;
    color: #1d4ed8;
}

#main-wrapper .wz-filter__means b,
.main-wrapper .wz-filter__means b,
.wz-mywork .wz-filter__means b {
    color: #0f1b34;
}

/* The state chip carries its count, the way the tab did. */
#main-wrapper .wz-filter__chip--state { padding-right: 9px; }

#main-wrapper .wz-filter__chipnum {
    display: inline-block;
    margin-left: 6px;
    min-width: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #eef2f8;
    color: #33415c;
    font-size: .7rem;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
}

#main-wrapper .wz-filter__chip.is-on .wz-filter__chipnum {
    background: rgba(255, 255, 255, .22);
    color: #fff;
}

@media (max-width: 767.98px) {
    /* Both chip groups scroll sideways rather than stacking six deep. */
    #main-wrapper .wz-filter__row { flex-wrap: nowrap; overflow-x: auto; }
    #main-wrapper .wz-filter__row .wz-filter__chips { flex: 0 0 auto; }
    #main-wrapper .wz-filter__split { flex: 0 0 1px; }
}

/* ==========================================================================
   Two things that were unreadable sitting still
   --------------------------------------------------------------------------
   Found by extending the contrast probe from :hover to the resting state,
   after it ran clean over a page whose first column heading was invisible.

   1 · The pinned first column needs an OPAQUE background or the scrolling
       content shows through it, and the global rule paints it #f4f7fc. On a
       table whose header is dark navy with white text that left "TASK TITLE"
       as white on near-white -- measured contrast 1.07, where 1.0 is the
       same colour. The pin has to take the header's own colour, not a
       fixed light one.

   2 · The chosen filter chip is white on blue, and the plain :hover rule
       repainted its label blue. Pointing at the active chip made it vanish:
       measured 1.00, literally the same colour. Same defect as the
       dashboard's "Open my profile", in a different stylesheet.
   ========================================================================== */

#main-wrapper .table-responsive .wz-otable > thead > tr > th:first-child,
.main-wrapper .table-responsive .wz-otable > thead > tr > th:first-child {
    background: #0b2350;
    color: #fff;
}

#main-wrapper .wz-chip.is-active:hover,
#main-wrapper .wz-chip.is-active:focus,
#main-wrapper .wz-chip.is-active:focus-visible {
    background: #163bb0;
    border-color: #163bb0;
    color: #fff;
}

/* The status badges measured 2.90 -- amber on light amber, below the 3.0
   floor for small bold text. Darkened until they clear it. */
#main-wrapper .wz-badge--pend,
.main-wrapper .wz-badge--pend {
    color: #92400e;
}

/* A dead link, marked so the creator can see there is something to fix.

   Eight channels on this marketplace point at accounts that do not exist.
   That is not the same kind of blank as "Facebook will not tell us", and it
   is the one the creator can put right in a minute. */
#main-wrapper .wz-rate__none.is-wrong {
    color: #a4611a;
    font-style: normal;
    font-weight: 600;
}


/* ---- fieldsets used as control groups --------------------------------- */
/*
 * A row of filter chips is a fieldset: those controls belong together, and a
 * screen reader announces the group by its <legend>. A fieldset arrives with
 * a border, padding, margin and min-width:min-content, none of which the row
 * had as a <div> -- min-width in particular would stop it shrinking on a
 * phone, so it is unset rather than merely overridden.
 */
#main-wrapper fieldset.wz-filter__chips,
fieldset.chips {
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 0;
}

/*
 * Said to a screen reader, not painted. The legends above use this, and the
 * heading beside them already says the same thing on screen.
 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* "Edit link" — the control that was missing from a connected row.
   --------------------------------------------------------------------------
   The dialog holding the fourteen link fields had four triggers on the whole
   page, all of them chips under "Not connected yet", and that section is
   dropped once every platform is filled. A creator who connected everything
   had no way to reach it, which is exactly the person most likely to have a
   stale or wrong link.

   Quiet by default and sat under the handle, because the handle is what tells
   the creator the link is wrong. It is a text button rather than a bare icon:
   the channel column is table-layout:fixed and narrow, and an icon alone in
   that space reads as decoration. */
/* A pencil beside the handle, not a line of text under it.
   The handle is what tells the creator the link is wrong; the control that
   fixes it belongs on that same line, where it reads as an action on the name
   beside it rather than as a third row of prose. */
#main-wrapper .wz-rate__handlerow {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

#main-wrapper .wz-rate__editlink {
    flex: none;
    padding: 2px;
    border: 0;
    background: none;
    line-height: 1;
    font-size: .68rem;
    /* The project's muted colour. #94a3b8 is 2.56:1 on white -- below the
       4.5:1 floor for normal text, and already banned by the contrast sweep
       in WorkScreensTest, which is what caught this. */
    color: #64748b;
    cursor: pointer;
}

#main-wrapper .wz-rate__editlink:hover,
#main-wrapper .wz-rate__editlink:focus-visible { color: #1d4ed8; }

/* The row whose figure is implausible is the one this button exists for, so
   there it stops being quiet. */
#main-wrapper .wz-rate__handle.is-suspect ~ .wz-rate__editlink { color: #a4611a; }

/* My Posts on the dashboard — one card per post.
   --------------------------------------------------------------------------
   Reported as "there is 2 separate posts but it is looking as same", and
   measuring the dashboard says why: `.post-block` is styled in
   `wizbrand-profile.css`, and that file is not loaded here. The dashboard
   serves wizbrand-orgs-ui.css, so the computed style on a post was
   `border: 0px` on a white background with 6px between one and the next —
   white on white, no edge, nothing to show where one post ended.

   Scoped to `.wz-posts__list` so this is the dashboard's own answer and
   cannot argue with the profile page, which styles the same class for a
   different layout. */
#main-wrapper .wz-posts__list .post-block,
.wz-posts__list .post-block {
    border: 1px solid #e6ebf3;
    border-radius: 12px;
    background: #fff;
    padding: 16px 18px;
    margin-bottom: 14px;
}

.wz-posts__list .post-block:last-child { margin-bottom: 0; }

.wz-posts__list .post-block:hover { border-color: #c7d4e6; }

/* When the post was written. Two posts that say different things are easy
   to tell apart; two that look alike are not, and the date is the one fact
   every post has. */
.wz-posts__list .wz-post__when {
    display: block;
    margin-bottom: 6px;
    font-size: .74rem;
    font-weight: 600;
    /* The project's muted colour. #94a3b8 is 2.56:1 on white and the
       contrast sweep in WorkScreensTest refuses it. */
    color: #64748b;
}

/* ---------------------------------------------------------------------------
   "Nothing to save, and here is where the link goes."

   The Add Social Ranking form answered an empty submit with a four-sentence
   paragraph in a red panel -- three of those sentences described how the
   figures are fetched, and none of them said where a social link is added.
   This is the same answer as a state, an action and a route: short enough to
   read at a glance, and it ends on the button that fixes it.

   Not red. Nothing is broken and nobody did anything wrong -- there is simply
   a step that has not happened yet, so it reads as guidance, not as a refusal.
   --------------------------------------------------------------------------- */
#main-wrapper .wz-hint,
.wz-hint {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
    background: #eef4ff;
    border: 1px solid #cfdefc;
    border-left: 4px solid #1d4ed8;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

#main-wrapper .wz-hint__ic,
.wz-hint__ic {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #dbe7ff;
    color: #1d4ed8;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    font-size: .95rem;
}

#main-wrapper .wz-hint__body,
.wz-hint__body { flex: 1 1 220px; min-width: 0; }

#main-wrapper .wz-hint__title,
.wz-hint__title {
    margin: 0 0 2px;
    font-size: .98rem;
    font-weight: 800;
    color: #0f1b34;
}

#main-wrapper .wz-hint__lead,
.wz-hint__lead {
    margin: 0 0 8px;
    font-size: .88rem;
    color: #41506b;
}

/* The route, drawn as a route. A person looking for "where do I put the URL"
   finds it by shape before they have read a word of it. */
#main-wrapper .wz-hint__step,
.wz-hint__step {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    font-size: .8rem;
    color: #5c6e8b;
}

#main-wrapper .wz-hint__crumb,
.wz-hint__crumb {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fff;
    border: 1px solid #d7e3fb;
    border-radius: 999px;
    padding: 3px 10px;
    font-weight: 700;
    color: #1d4ed8;
    white-space: nowrap;
}

#main-wrapper .wz-hint__go,
.wz-hint__go {
    flex: 0 0 auto;
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #1d4ed8;
    color: #fff;
    border-radius: 10px;
    padding: 9px 16px;
    font-size: .85rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

#main-wrapper .wz-hint__go:hover,
.wz-hint__go:hover { background: #1740b4; color: #fff; text-decoration: none; }

#main-wrapper .wz-hint__go:focus-visible,
.wz-hint__go:focus-visible { outline: 2px solid #1d4ed8; outline-offset: 2px; }

/* On a phone the button is the widest thing here; let it take the row rather
   than squeezing the sentence beside it into a column of single words. */
@media (max-width: 575.98px) {
    #main-wrapper .wz-hint__go,
    .wz-hint__go { width: 100%; justify-content: center; }
}

/* ---------------------------------------------------------------------------
   Connect Your Social Channels — the icon in front of each link box.

   Every one of these carried `style="font-size:24px; color: ..."` and sized
   itself to whatever glyph it held, so no two rows started at the same place:
   measured on /profile-rates, the inputs began at 419, 420 and 423px in the
   same column. And when ONE glyph fails to arrive the box collapses to its
   padding and that row jumps left on its own -- which is exactly what Tumblr
   looked like on the live site.

   A fixed box fixes both at once: the column lines up, and it lines up whether
   or not the font ever loads. Colour moves here too, keyed off the Font
   Awesome class that is already on the span, so the blade carries no style
   attribute at all.
   --------------------------------------------------------------------------- */
#main-wrapper .wz-chan-ic,
.wz-chan-ic {
    width: 48px;
    min-width: 48px;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    color: #41506b;
}

/* Brand colours. Same values the inline styles used, except Twitter and
   Facebook: #00cccc and `blue` are neither brand's colour and the second is
   pure #0000ff, which is the one blue no interface should use. */
.wz-chan-ic.fa-facebook      { color: #1877f2; }
.wz-chan-ic.fa-twitter       { color: #1d9bf0; }
.wz-chan-ic.fa-youtube       { color: #ff0000; }
.wz-chan-ic.fa-instagram     { color: #e1306c; }
.wz-chan-ic.fa-tumblr-square { color: #9900e6; }
.wz-chan-ic.fa-quora         { color: #990000; }
.wz-chan-ic.fa-pinterest     { color: #bd081c; }
.wz-chan-ic.fa-tiktok        { color: #10161a; }
.wz-chan-ic.fa-telegram      { color: #229ed9; }
.wz-chan-ic.fa-linkedin      { color: #0a66c2; }
.wz-chan-ic.fa-wordpress     { color: #21759b; }
.wz-chan-ic.fa-blog          { color: #41506b; }
.wz-chan-ic.fa-globe         { color: #41506b; }
.wz-chan-ic.fa-linkedin-in   { color: #0a66c2; }
.wz-chan-ic.koo              { color: #ffaa00; }

/* Some of these channels have no Font Awesome glyph at all and carry a .webp
   instead. Same box, so a row with a picture lines up with a row with a
   glyph. */
#main-wrapper .wz-chan-ic img,
.wz-chan-ic img { width: 22px; height: auto; display: block; }

/* A quiet line under a field that explains why it has nothing in it.
   Not an error -- nothing is wrong and the person has done nothing wrong --
   so it reads as information, with the way to fix it as the only link. */
#main-wrapper .wz-field-note,
.wz-field-note {
    margin: 6px 0 0;
    font-size: .82rem;
    color: #5c6e8b;
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

#main-wrapper .wz-field-note i,
.wz-field-note i { color: #1d4ed8; }

#main-wrapper .wz-field-note a,
.wz-field-note a { color: #1d4ed8; font-weight: 700; text-decoration: underline; }

#main-wrapper .wz-field-note a:hover,
.wz-field-note a:hover { color: #1740b4; }

/* ============================================================
   THE SUBMIT WORK DIALOG  (resources/views/livewire/tasktrack/suggestmodel)

   Named apart from Bootstrap's .modal-header / .modal-title on purpose.
   Those class names are painted by rules elsewhere in this very sheet, and
   the copy of this sheet on production still says `color: #fff` for every
   modal title -- white text on a white bar, which is the dialog that
   "opens blank". Nothing styled here answers to those names, so no rule
   written for them, old or new, can reach into this dialog.
   ============================================================ */
.wz-dlg .wz-dlg__box {
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 32px 70px rgba(8, 20, 45, .45);
    background: #fff;
}

.wz-dlg__head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 22px 24px 18px;
    border-bottom: 1px solid #eef2f8;
    background: #fff;
}

.wz-dlg__heading { flex: 1 1 auto; min-width: 0; }

.wz-dlg__title {
    margin: 0;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -.01em;
    color: #0b2350;
}

.wz-dlg__lead {
    margin: 5px 0 0;
    font-size: 13.5px;
    line-height: 1.5;
    color: #5a6b80;
}

.wz-dlg__x {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e3e9f3;
    border-radius: 10px;
    background: #f7f9fd;
    color: #334155;
    font-size: 15px;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.wz-dlg__x:hover { background: #edf2fb; color: #0b2350; }

.wz-dlg__body {
    padding: 20px 24px 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.wz-dlg__field { display: flex; flex-direction: column; gap: 7px; }

.wz-dlg__label {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: #0b2350;
}

.wz-dlg__optional { font-weight: 500; color: #5a6b80; }

.wz-dlg__input {
    width: 100%;
    box-sizing: border-box;
    height: 44px;
    padding: 0 13px;
    font-size: 14px;
    color: #16233f;
    background: #fff;
    border: 1px solid #dfe7f3;
    border-radius: 10px;
}

.wz-dlg__area {
    height: auto;
    padding: 11px 13px;
    line-height: 1.55;
    resize: vertical;
}

.wz-dlg__input:focus {
    outline: none;
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, .15);
}

.wz-dlg__input::placeholder { color: #8da0b8; }

.wz-dlg__hint {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: #5a6b80;
}

.wz-dlg__empty {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
}

.wz-dlg__foot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    background: #f8fafd;
    border-top: 1px solid #eef2f8;
}

.wz-dlg__foot--bare {
    padding: 4px 0 0;
    background: transparent;
    border-top: 0;
}

.wz-dlg__btn {
    height: 44px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
}

.wz-dlg__btn--quiet {
    color: #334155;
    background: #fff;
    border: 1px solid #dfe7f3;
}

.wz-dlg__btn--quiet:hover { background: #f4f7fc; }

.wz-dlg__btn--go {
    font-weight: 700;
    color: #fff;
    background: #1d4ed8;
    border: 1px solid #1d4ed8;
    box-shadow: 0 3px 10px rgba(29, 78, 216, .28);
}

.wz-dlg__btn--go:hover { background: #1a44bd; border-color: #1a44bd; }

/* A dialog on a phone is the whole screen, so the two buttons stack and each
   one is a full-width target rather than a 90px strip in the corner. */
@media (max-width: 575.98px) {
    .wz-dlg__head { padding: 18px 18px 16px; }
    .wz-dlg__body { padding: 18px; }
    .wz-dlg__foot { flex-direction: column-reverse; align-items: stretch; padding: 16px 18px; }
    .wz-dlg__btn { justify-content: center; width: 100%; }
}

/* "Checked at 14:05" beside Refresh SSL on the Projects page. */
.wz-ssl-checked {
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
}

/* Phones (2026-12-03): the wallet sits in a flex .row; without min-width:0 it grows to the
   statement table's width (1,100+ px) instead of letting .table-responsive scroll. */
.wz-wallet { min-width: 0; max-width: 100%; }

/* Phones (2026-12-03): the Competitors hint ran ~26px past a 390px screen; let its text wrap. */
.wz-comp-hint { flex-wrap: wrap; min-width: 0; }
.wz-comp-hint > * { min-width: 0; overflow-wrap: anywhere; }
