/* ==========================================================================
   WizBrand 2026 — the component layer
   ==========================================================================

   ## Why this is a separate file, and opt-in

   This application is Laravel 11 + Livewire 3 on Bootstrap, with Keycloak
   login, a zero-knowledge vault and live payments hanging off the same
   markup. A single global restyle would reach every one of those at once,
   and "the design is newer" is not worth "checkout stopped working".

   So nothing here applies until an element carries `wz26`, or sits inside
   something that does. A screen adopts the system by adding one class, and
   can be reverted by removing it. That is also what makes it reviewable:
   the diff for a screen is one attribute.

   ## What is actually modern about it

   Not the colours. These four:

   - The `.wz26` scope, which is the whole safety mechanism: no rule here
     can reach a screen that has not opted in.

     This was `@layer` at first, on the reasoning that unlayered CSS beats
     layered CSS so the file could never override the old design. That is
     true, and it was the wrong tool: EVERY legacy rule here is unlayered,
     including Bootstrap's own `button` reset, so the layer could not win
     inside its own scope either. Chips rendered square, buttons rendered
     unstyled. A system that cannot style the screen that opted into it is
     not safe, it is inert. The scope already guarantees the containment
     the layer was there for.
   - **OKLCH** for colour. Lightness in OKLCH is perceptual, so a scale
     stepped evenly by L actually looks evenly stepped -- which hex ramps
     picked by eye never do. Every state colour is derived with
     `color-mix()` from one hue rather than hand-picked, so a brand change
     is one number.
   - **Container queries** on cards and rows, so a component reflows to the
     width of its own panel instead of to the viewport. A rate card in a
     narrow column and the same card full width are the same component.
   - **`:has()`** for state that used to need a class from JavaScript -- a
     field that knows it holds an invalid input, a row that knows it is
     selected.

   ## Motion

   Everything is opt-out under `prefers-reduced-motion`, and durations are
   short enough to read as response rather than as animation. The house
   rule: nothing animates on load, because a page that has to finish moving
   before it can be read is slower than one that does not move.
   ========================================================================== */

/* ==========================================================================
   Tokens
   ========================================================================== */


.wz26 {
    /* --- brand -------------------------------------------------------
       One hue, stated once. Everything below is mixed from it, so the
       whole system re-tints from this line alone. */
    --h: 258;                       /* the brand hue, in OKLCH degrees */
    --brand:        oklch(52% 0.19 var(--h));
    --brand-press:  oklch(45% 0.19 var(--h));
    --brand-weak:   oklch(96% 0.03 var(--h));
    --brand-line:   oklch(88% 0.07 var(--h));
    --on-brand:     oklch(99% 0.01 var(--h));

    /* --- neutrals -----------------------------------------------------
       Biased toward the brand hue rather than pure grey: a neutral that
       shares the accent's hue reads as chosen, and sits better beside
       it. */
    --ink:        oklch(24% 0.03 var(--h));
    --ink-2:      oklch(44% 0.025 var(--h));
    --ink-3:      oklch(58% 0.02 var(--h));   /* 4.6:1 on --surface */
    --surface:    oklch(100% 0 0);
    --surface-2:  oklch(98% 0.005 var(--h));
    --ground:     oklch(96.5% 0.008 var(--h));
    --line:       oklch(91% 0.012 var(--h));
    --line-2:     oklch(94.5% 0.008 var(--h));

    /* --- semantic ----------------------------------------------------
       Separate hues, so status never collides with the accent. */
    --ok:         oklch(52% 0.14 155);
    --ok-weak:    oklch(96% 0.04 155);
    --warn:       oklch(52% 0.12 70);
    --warn-weak:  oklch(96% 0.05 70);
    --bad:        oklch(52% 0.18 25);
    --bad-weak:   oklch(96% 0.04 25);

    /* --- shape -------------------------------------------------------- */
    --r-1: 8px;
    --r-2: 12px;
    --r-3: 16px;
    --r-pill: 999px;

    /* --- elevation ----------------------------------------------------
       Two levels only. Border, fill, radius and shadow each say
       "separate object"; spending all four on every block flattens the
       hierarchy instead of building one. */
    --lift-1: 0 1px 2px oklch(24% 0.03 var(--h) / .07);
    --lift-2: 0 4px 12px oklch(24% 0.03 var(--h) / .10),
              0 1px 2px  oklch(24% 0.03 var(--h) / .06);

    /* --- motion -------------------------------------------------------- */
    --fast: 120ms;
    --mid:  200ms;
    --ease: cubic-bezier(.2, .8, .3, 1);

    /* --- focus ---------------------------------------------------------
       One ring, everywhere, and never removed. */
    --ring: 0 0 0 3px color-mix(in oklch, var(--brand) 28%, transparent);
}

/* Dark is NOT driven by the operating system here, deliberately.

   There used to be an `@media (prefers-color-scheme: dark)` block at this
   point, redefining these tokens for `.wz26`. The problem was its reach:
   the dashboard loads 27 stylesheets and this was the only one with any
   dark rules at all. So on a machine set to dark, the `.wz26` panel turned
   dark while every other colour on the page stayed as it was for light.

   Measured on /profile-rates with prefers-color-scheme: dark emulated:
   unreadable text went from 14 items to 32, with the worst at a contrast
   ratio of 1.01 -- near-black text (rgb(15,27,52)) on a near-black panel
   (oklch(0.23 0.02 258)). "Roshan seo", "Facebook", "X.com" were all
   invisible. It was reported as a browser-extension problem; the extension
   only turned dark mode on, and this answered it halfway.

   The explicit opt-in below stays. Nothing stamps data-theme="dark" today,
   so it is inert -- and it is the foundation to build on if dark mode is
   ever finished across all 27 stylesheets rather than one. */

[data-theme="dark"] .wz26 {
    --brand:        oklch(72% 0.15 var(--h));
    --brand-press:  oklch(78% 0.15 var(--h));
    --brand-weak:   oklch(28% 0.06 var(--h));
    --brand-line:   oklch(40% 0.08 var(--h));
    --on-brand:     oklch(18% 0.04 var(--h));

    --ink:        oklch(94% 0.012 var(--h));
    --ink-2:      oklch(78% 0.02 var(--h));
    --ink-3:      oklch(66% 0.02 var(--h));
    --surface:    oklch(23% 0.02 var(--h));
    --surface-2:  oklch(27% 0.022 var(--h));
    --ground:     oklch(18% 0.02 var(--h));
    --line:       oklch(34% 0.025 var(--h));
    --line-2:     oklch(30% 0.022 var(--h));

    --ok:         oklch(72% 0.14 155);
    --ok-weak:    oklch(30% 0.06 155);
    --warn:       oklch(76% 0.12 70);
    --warn-weak:  oklch(30% 0.06 70);
    --bad:        oklch(70% 0.15 25);
    --bad-weak:   oklch(30% 0.07 25);
}
/* ==========================================================================
   Base
   ========================================================================== */


.wz26 :where(*) { box-sizing: border-box; }

/* One focus ring for the whole system. The theme removes the browser
   default in places, which is how a keyboard user loses their place
   entirely. */
.wz26 :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
    border-radius: var(--r-1);
}

@media (prefers-reduced-motion: reduce) {
    .wz26 :where(*) {
        animation-duration: 1ms !important;
        transition-duration: 1ms !important;
        scroll-behavior: auto !important;
    }
}
/* ==========================================================================
   Components
   ========================================================================== */


/* ---------------------------------------------------------------- button
   One element, four intents, two sizes. Written as a class rather than
   on `button` so an <a> that behaves like a button looks like one --
   and so nothing already on the page changes underneath it. */

.wz26 .wz-btn,
.wz-btn.wz26 {
    --btn-bg: var(--surface);
    --btn-fg: var(--ink);
    --btn-bd: var(--line);

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    min-height: 40px;
    border: 1px solid var(--btn-bd);
    border-radius: var(--r-1);
    background: var(--btn-bg);
    color: var(--btn-fg);
    font: inherit;
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--fast) var(--ease),
                border-color var(--fast) var(--ease),
                color var(--fast) var(--ease),
                box-shadow var(--fast) var(--ease),
                transform var(--fast) var(--ease);
}

/* Every variant restates its own colour on hover.
   Not restating it is the exact defect that shipped on this project: a
   white-on-blue link inherited a global `a:hover` and its label turned
   blue on blue, measured at 1.05:1 -- the same colour. */
.wz26 .wz-btn:hover,
.wz-btn.wz26:hover {
    background: color-mix(in oklch, var(--btn-bg) 94%, var(--ink));
    color: var(--btn-fg);
    text-decoration: none;
}

.wz26 .wz-btn:active { transform: translateY(1px); }

.wz26 .wz-btn[disabled],
.wz26 .wz-btn[aria-disabled="true"] {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
}

.wz26 .wz-btn--primary {
    --btn-bg: var(--brand);
    --btn-fg: var(--on-brand);
    --btn-bd: var(--brand);
    box-shadow: var(--lift-1);
}

.wz26 .wz-btn--primary:hover {
    background: var(--brand-press);
    border-color: var(--brand-press);
    color: var(--on-brand);
}

.wz26 .wz-btn--quiet {
    --btn-bd: transparent;
    --btn-bg: transparent;
    --btn-fg: var(--ink-2);
}

.wz26 .wz-btn--quiet:hover {
    background: var(--surface-2);
    color: var(--ink);
}

.wz26 .wz-btn--danger {
    --btn-fg: var(--bad);
    --btn-bd: color-mix(in oklch, var(--bad) 40%, var(--line));
}

.wz26 .wz-btn--danger:hover {
    background: var(--bad-weak);
    color: var(--bad);
}

.wz26 .wz-btn--sm { min-height: 32px; padding: 6px 12px; font-size: .82rem; }

/* A button that is working says so, and stops taking presses. The
   spinner is drawn in CSS: one more sprite is one more request that can
   fail silently. */
.wz26 .wz-btn[data-busy="true"] {
    pointer-events: none;
    color: transparent !important;
    position: relative;
}

.wz26 .wz-btn[data-busy="true"]::after {
    content: "";
    position: absolute;
    inset: 50% auto auto 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid color-mix(in oklch, currentColor 30%, transparent);
    border-top-color: var(--btn-fg);
    border-radius: 50%;
    animation: wz26-spin 620ms linear infinite;
}

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

/* ----------------------------------------------------------------- field */

.wz26 .field { display: grid; gap: 6px; }

.wz26 .field__label {
    font-size: .8rem;
    font-weight: 600;
    color: var(--ink-2);
}

.wz26 .field__hint { font-size: .78rem; color: var(--ink-3); }

.wz26 :where(.field input, .field select, .field textarea) {
    width: 100%;
    padding: 9px 12px;
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: var(--r-1);
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: .92rem;
    transition: border-color var(--fast) var(--ease),
                box-shadow var(--fast) var(--ease);
}

.wz26 :where(.field input, .field select, .field textarea):focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: var(--ring);
}

/* The field knows it is invalid without a class from JavaScript. */
.wz26 .field:has(:user-invalid) .field__label { color: var(--bad); }
.wz26 .field:has(:user-invalid) :where(input, select, textarea) {
    border-color: var(--bad);
}

.wz26 .field__err { font-size: .78rem; color: var(--bad); }
.wz26 .field:not(:has(:user-invalid)) .field__err { display: none; }

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

/* A fieldset here, so its own border/padding/min-width are unset. */
.wz26 .chips { display: flex; flex-wrap: wrap; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }

.wz26 .chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: var(--surface);
    color: var(--ink-2);
    font: inherit;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color var(--fast) var(--ease),
                border-color var(--fast) var(--ease),
                color var(--fast) var(--ease);
}

.wz26 .chip:hover { border-color: var(--brand-line); color: var(--brand); }

/* Pressed state read from ARIA, so the thing a screen reader announces
   and the thing a sighted reader sees cannot drift apart. */
.wz26 .chip[aria-pressed="true"] {
    background: var(--brand);
    border-color: var(--brand);
    color: var(--on-brand);
}

.wz26 .chip[aria-pressed="true"]:hover {
    background: var(--brand-press);
    border-color: var(--brand-press);
    color: var(--on-brand);
}

.wz26 .chip__n {
    min-width: 18px;
    padding: 0 5px;
    border-radius: var(--r-pill);
    background: color-mix(in oklch, currentColor 14%, transparent);
    font-size: .7rem;
    font-weight: 800;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

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

.wz26 .panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-3);
    padding: 20px;
    container-type: inline-size;
}

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

.wz26 .panel__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
}

/* The panel reflows to its OWN width, not the viewport's. The same
   component in a sidebar and full width is the same component. */
@container (max-width: 34rem) {
    .wz26 .panel__head { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ---------------------------------------------------------------- dialog
   Native <dialog>. This is the part worth having.

   ::backdrop, the top layer, focus trapping, Escape to close and inert
   background all come from the browser. The Bootstrap implementation it
   replaces needed a stacking script to manage backdrops by hand, and
   that script once raised every backdrop above the modal below it and
   left the page dead until a reload -- on 17 of 30 screens.

   There is nothing to stack here: the top layer has no z-index. */

.wz26 dialog.dlg,
dialog.dlg.wz26 {
    width: min(560px, calc(100vw - 32px));
    max-height: min(82vh, 720px);
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--r-3);
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--lift-2);
    overflow: hidden;
}

.wz26 dialog.dlg::backdrop {
    background: oklch(24% 0.03 258 / .45);
    backdrop-filter: blur(3px);
}

.wz26 dialog.dlg[open] {
    animation: wz26-dlg-in var(--mid) var(--ease);
}

.wz26 dialog.dlg[open]::backdrop {
    animation: wz26-fade-in var(--mid) var(--ease);
}

@keyframes wz26-dlg-in {
    from { opacity: 0; transform: translateY(8px) scale(.985); }
}

@keyframes wz26-fade-in { from { opacity: 0; } }

.wz26 .dlg__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--line-2);
}

.wz26 .dlg__title { margin: 0; font-size: 1.06rem; font-weight: 700; }
.wz26 .dlg__sub { margin: 4px 0 0; font-size: .85rem; color: var(--ink-3); }

.wz26 .dlg__body {
    padding: 18px 20px;
    overflow-y: auto;
    display: grid;
    gap: 16px;
}

.wz26 .dlg__foot {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px 18px;
    border-top: 1px solid var(--line-2);
    background: var(--surface-2);
}

/* --------------------------------------------------------------- skeleton
   Shown while something is genuinely loading, shaped like the thing it
   is standing in for. A spinner says "wait"; this says "wait, and here
   is what is coming". */

.wz26 .skel {
    border-radius: var(--r-1);
    background: linear-gradient(
        90deg,
        var(--surface-2) 25%,
        color-mix(in oklch, var(--surface-2) 60%, var(--line)) 37%,
        var(--surface-2) 63%);
    background-size: 400% 100%;
    animation: wz26-skel 1.4s ease-in-out infinite;
}

.wz26 .skel--line { height: 12px; }
.wz26 .skel--title { height: 18px; width: 45%; }

@keyframes wz26-skel { from { background-position: 100% 50%; } to { background-position: 0 50%; } }

/* ------------------------------------------------------------------ note */

.wz26 .note {
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--r-2);
    font-size: .88rem;
    background: var(--surface-2);
    border: 1px solid var(--line-2);
    color: var(--ink-2);
}

.wz26 .note--warn { background: var(--warn-weak); border-color: color-mix(in oklch, var(--warn) 30%, transparent); color: var(--warn); }
.wz26 .note--ok   { background: var(--ok-weak);   border-color: color-mix(in oklch, var(--ok) 30%, transparent);   color: var(--ok); }
.wz26 .note--bad  { background: var(--bad-weak);  border-color: color-mix(in oklch, var(--bad) 30%, transparent);  color: var(--bad); }
/* ==========================================================================
   The reference page itself
   --------------------------------------------------------------------------
   Layout for /design-system. Kept in this file because it is part of the
   system's documentation rather than part of a screen.
   ========================================================================== */


.wz26 .wz-ds { max-width: 900px; padding: 8px 0 64px; display: grid; gap: 22px; }

.wz26 .wz-ds__head { display: grid; gap: 8px; padding: 14px 0 4px; }

.wz26 .wz-ds__kicker {
    margin: 0;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.wz26 .wz-ds__title { margin: 0; font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }

.wz26 .wz-ds__lede { margin: 0; max-width: 62ch; color: var(--ink-2); font-size: .98rem; }

.wz26 .wz-ds__sec { display: grid; gap: 16px; }

.wz26 .wz-ds__body { margin: 0; max-width: 64ch; color: var(--ink-2); font-size: .94rem; }

.wz26 .wz-ds__note { margin: 0; font-size: .82rem; color: var(--ink-3); }

.wz26 .wz-ds__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.wz26 .wz-ds__stack { display: grid; gap: 10px; }

.wz26 .wz-ds__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }

.wz26 .wz-ds code {
    font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
    font-size: .86em;
    background: var(--surface-2);
    border: 1px solid var(--line-2);
    border-radius: 5px;
    padding: 1px 5px;
    color: var(--ink);
}

.wz26 .wz-ds kbd {
    font-family: ui-monospace, Consolas, monospace;
    font-size: .8em;
    border: 1px solid currentColor;
    border-radius: 4px;
    padding: 0 5px;
}

/* --- swatches ---------------------------------------------------------
   Each names the token it is painted with, so the page cannot show a
   colour the system does not actually define. */

.wz26 .wz-ds__swatches { display: flex; flex-wrap: wrap; gap: 10px; }

.wz26 .wz-ds__sw {
    display: inline-flex;
    align-items: flex-end;
    min-width: 116px;
    min-height: 68px;
    padding: 8px 10px;
    border-radius: var(--r-2);
    border: 1px solid var(--line);
    font-size: .76rem;
    font-weight: 700;
    color: var(--on-brand);
}

.wz26 .wz-ds__sw[data-tok="--brand"] { background: var(--brand); }
.wz26 .wz-ds__sw[data-tok="--ink"] { background: var(--ink); }
.wz26 .wz-ds__sw[data-tok="--ink-3"] { background: var(--ink-3); }
.wz26 .wz-ds__sw[data-tok="--ok"] { background: var(--ok); }
.wz26 .wz-ds__sw[data-tok="--warn"] { background: var(--warn); }
.wz26 .wz-ds__sw[data-tok="--bad"] { background: var(--bad); }

/* --- skeleton demo --------------------------------------------------- */

.wz26 .wz-ds__skel { display: grid; gap: 10px; max-width: 460px; }
.wz26 .wz-ds__skel--82 { width: 82%; }
.wz26 .wz-ds__skel--64 { width: 64%; }

/* Fallback: a browser with no <dialog> shows the content as a panel
   rather than as an unusable overlay. */
[data-no-dialog] .wz26 dialog.dlg {
    display: block;
    position: static;
    margin: 16px 0;
    width: auto;
    max-height: none;
}

/* ==========================================================================
   Cart: who else could be in this order
   --------------------------------------------------------------------------
   A cart with one item leaves most of the page empty. That was treated as a
   layout problem three times -- stop the items panel stretching, drop to one
   column, centre the column -- and each attempt moved the empty space rather
   than removing it: first inside the panel, then under it, then beside it at
   839px on a 1920 screen.

   The space was never the problem. A cart with one creator in it is a
   conversion problem, and what belongs there is the answer to the question
   the buyer already has. It also gives the left column its own height, so
   two columns work with one item or twenty -- which is what actually fixes
   the layout.

   The grid is `auto-fill`, not a fixed count: the same block fills a 1920
   page with three across and a laptop with two, without a breakpoint for
   each.
   ========================================================================== */

.wz26.wz-sugg {
    margin-top: 22px;
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-3);
}

.wz26 .wz-sugg__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.wz26 .wz-sugg__title {
    margin: 0 0 4px;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--ink);
}

.wz26 .wz-sugg__sub {
    margin: 0;
    max-width: 52ch;
    font-size: .86rem;
    color: var(--ink-3);
}

.wz26 .wz-sugg__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.wz26 .wz-sugg__card { display: flex; }

.wz26 .wz-sugg__link {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-2);
    background: var(--surface);
    color: inherit;
    text-decoration: none;
    transition: border-color var(--fast) var(--ease),
                background-color var(--fast) var(--ease),
                transform var(--fast) var(--ease);
}

.wz26 .wz-sugg__link:hover,
.wz26 .wz-sugg__link:focus-visible {
    border-color: var(--brand-line);
    background: var(--brand-weak);
    color: inherit;
    text-decoration: none;
    transform: translateY(-1px);
}

.wz26 .wz-sugg__pic {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--line);
}

/* Initials, tinted from the name, where there is no photo. A placeholder
   face would be a small lie on a page about who you are hiring. */
.wz26 .wz-sugg__pic--none {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .02em;
    color: var(--on-brand);
    background: oklch(55% 0.14 calc(var(--tint, 0) * 40));
    border-color: transparent;
}

.wz26 .wz-sugg__pic--none[data-tint="1"]  { --tint: 1; }
.wz26 .wz-sugg__pic--none[data-tint="2"]  { --tint: 2; }
.wz26 .wz-sugg__pic--none[data-tint="3"]  { --tint: 3; }
.wz26 .wz-sugg__pic--none[data-tint="4"]  { --tint: 4; }
.wz26 .wz-sugg__pic--none[data-tint="5"]  { --tint: 5; }
.wz26 .wz-sugg__pic--none[data-tint="6"]  { --tint: 6; }
.wz26 .wz-sugg__pic--none[data-tint="7"]  { --tint: 7; }
.wz26 .wz-sugg__pic--none[data-tint="8"]  { --tint: 8; }
.wz26 .wz-sugg__pic--none[data-tint="9"]  { --tint: 9; }

.wz26 .wz-sugg__who { min-width: 0; flex: 1 1 auto; }

.wz26 .wz-sugg__name {
    display: block;
    font-weight: 700;
    font-size: .92rem;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wz26 .wz-sugg__meta {
    display: block;
    margin-top: 2px;
    font-size: .78rem;
    color: var(--ink-3);
}

.wz26 .wz-sugg__meta b { color: var(--ink-2); font-weight: 700; }

.wz26 .wz-sugg__icons {
    display: flex;
    gap: 7px;
    flex: 0 0 auto;
    color: var(--ink-3);
    font-size: .82rem;
}

@media (max-width: 575.98px) {
    .wz26.wz-sugg { padding: 16px; }
    .wz26 .wz-sugg__grid { grid-template-columns: minmax(0, 1fr); }
}

/* The meta line wrapped to three lines in a narrow card ("no audience figure
   yet · 6 channels"). Given its own line under the name, it reads in one. */
.wz26 .wz-sugg__meta {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Cards keep a readable minimum rather than squeezing four into a row that
   only fits three comfortably. */
.wz26 .wz-sugg__grid { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }

/* ==========================================================================
   Find Creators
   --------------------------------------------------------------------------
   The screen this replaces drew one bordered box per platform per creator --
   measured: seven creators, forty boxes. Each box held a tick, a price, a
   follower count and a date at about 90px wide. A creator with ten channels
   was a wall of them; one with a single channel was a lonely box on an empty
   row, and nothing lined up down a column.

   Here a row is a fixed set of columns -- who, reach, channels, price -- so
   the same thing sits in the same place on every row, and a brand compares
   by looking down rather than by remembering.

   The channel strip is one row of icons rather than one box each, which is
   what keeps a ten-channel creator the same height as a one-channel one.
   ========================================================================== */

.wz26.wz-find { display: grid; gap: 14px; }

/* --- the controls ------------------------------------------------------- */

.wz26 .wz-find__bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-2);
}

.wz26 .wz-find__find {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1 1 260px;
    min-width: 0;
}

.wz26 .wz-find__find > i {
    position: absolute;
    left: 12px;
    color: var(--ink-3);
    font-size: .82rem;
    pointer-events: none;
}

.wz26 .wz-find__input {
    width: 100%;
    padding: 9px 32px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: .88rem;
}

.wz26 .wz-find__input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: var(--ring);
}

.wz26 .wz-find__clear {
    position: absolute;
    right: 8px;
    border: 0;
    background: none;
    color: var(--ink-3);
    cursor: pointer;
    padding: 4px 6px;
    line-height: 1;
}

.wz26 .wz-find__pick--sort { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.wz26 .wz-find__sortlab {
    margin: 0;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.wz26 .wz-find__select {
    padding: 8px 11px;
    border: 1px solid var(--line);
    border-radius: var(--r-1);
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: .85rem;
}

.wz26 .wz-find__select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: var(--ring);
}

.wz26 .wz-find__count { margin: 0 0 2px; padding-left: 2px; font-size: .86rem; color: var(--ink-2); }
.wz26 .wz-find__count b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* The pager, under the list.

   Where you are on the left, the numbers on the right -- and on a phone they
   stack and centre, because a row of page numbers pushed against one edge of
   a narrow screen is a row of small targets in the worst place for a thumb. */
.wz26 .wz-find__pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.wz26 .wz-find__pager .text-muted {
    font-size: .86rem;
    color: var(--ink-2);
}

.wz26 .wz-find__pager .pagination {
    margin: 0;
}

/* Livewire's bootstrap pager prints its own "Showing 1 to 3 of 7 results"
   beside the numbers, so the row carried the same sentence twice -- once in
   this project's wording ("creators") and once in Livewire's ("results").
   The project's one stays, because ten other screens say it that way. */
.wz26 .wz-find__pager .d-sm-flex > div:first-child > p.small {
    display: none;
}

@media (max-width: 575.98px) {
    .wz26 .wz-find__pager {
        justify-content: center;
        text-align: center;
    }
}

.wz26 .wz-find__reset {
    border: 0;
    background: none;
    padding: 0 0 0 6px;
    color: var(--brand);
    font: inherit;
    font-size: .86rem;
    font-weight: 700;
    cursor: pointer;
}

.wz26 .wz-find__reset:hover { text-decoration: underline; }

/* --- the rows ----------------------------------------------------------- */

.wz26 .wz-find__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.wz26 .wz-find__row {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) 110px minmax(0, 1fr) 190px;
    align-items: center;
    gap: 18px;
    padding: 14px 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-2);
    transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}

.wz26 .wz-find__row:hover { border-color: var(--brand-line); box-shadow: var(--lift-1); }

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

.wz26 .wz-find__pic {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--line);
}

.wz26 .wz-find__pic--none {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-weak);
    border-color: var(--brand-line);
    color: var(--brand);
    font-size: .88rem;
    font-weight: 800;
}

.wz26 .wz-find__ident { min-width: 0; }

.wz26 .wz-find__name {
    display: block;
    font-size: .98rem;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wz26 .wz-find__name:hover { color: var(--brand); text-decoration: underline; }

.wz26 .wz-find__where {
    margin: 3px 0 0;
    font-size: .8rem;
    color: var(--ink-3);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.wz26 .wz-find__where i { font-size: .72rem; }

/* A place that is not known says so, rather than leaving a gap the reader
   has to interpret. */
.wz26 .wz-find__missing { font-style: italic; }

.wz26 .wz-find__tag {
    padding: 1px 8px;
    border-radius: var(--r-pill);
    background: var(--surface-2);
    border: 1px solid var(--line-2);
    font-size: .72rem;
    font-weight: 700;
    color: var(--ink-2);
}

/* --- reach -------------------------------------------------------------- */

.wz26 .wz-find__reach { text-align: right; }

.wz26 .wz-find__reach b {
    display: block;
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.wz26 .wz-find__reach span {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--ink-3);
}

/* --- channels ----------------------------------------------------------- */

.wz26 .wz-find__chans {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.wz26 .wz-find__chan {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--surface-2);
    border: 1px solid var(--line-2);
    color: var(--ink-2);
    font-size: .82rem;
    cursor: help;
}

/* A price or an audience nobody could have, marked here as it is on the
   rate card. One creator on this marketplace lists 2,400,000,000,000 per
   post, and this screen showed it as an ordinary number. */
.wz26 .wz-find__chan.is-odd {
    background: var(--warn-weak);
    border-color: color-mix(in oklch, var(--warn) 40%, transparent);
    color: var(--warn);
}

.wz26 .wz-find__chan--more {
    font-size: .72rem;
    font-weight: 800;
    cursor: default;
    color: var(--ink-3);
}

/* --- price and action --------------------------------------------------- */

.wz26 .wz-find__buy {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}

.wz26 .wz-find__price { margin: 0; text-align: right; }

.wz26 .wz-find__price span {
    display: block;
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--ink-3);
}

.wz26 .wz-find__price b {
    font-size: .98rem;
    font-weight: 800;
    color: var(--ok);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* --- narrower ----------------------------------------------------------- */

@media (max-width: 1100px) {
    .wz26 .wz-find__row { grid-template-columns: minmax(0, 1fr) 100px; row-gap: 12px; }
    .wz26 .wz-find__chans { grid-column: 1 / -1; }
    .wz26 .wz-find__buy { grid-column: 1 / -1; justify-content: space-between; }
}

@media (max-width: 575.98px) {
    .wz26 .wz-find__bar { gap: 8px; }
    .wz26 .wz-find__find,
    .wz26 .wz-find__pick { flex: 1 1 100%; }
    .wz26 .wz-find__pick--sort { margin-left: 0; }
    .wz26 .wz-find__select { width: 100%; }
    .wz26 .wz-find__row { grid-template-columns: minmax(0, 1fr); }
    .wz26 .wz-find__reach { text-align: left; }
}

/* A creator with no public page: said, not linked. */
.wz26 .wz-find__nopage { font-size: .78rem; font-style: italic; color: var(--ink-3); }

/* ==========================================================================
   Find Creators — the cart picker
   --------------------------------------------------------------------------
   The old screen put a checkbox on every channel of every creator at once:
   measured, forty boxes for seven creators, all live together. A buyer who
   ticked two of them could not tell what they had bought until the cart page
   loaded, and the boxes were the reason no two rows lined up.

   So the row carries one action, and the channels to buy are chosen inside a
   panel belonging to that creator — opened one at a time, pre-ticked with
   what is already in the cart, and showing the running total before the
   cart is touched.
   ========================================================================== */

.wz26 .wz-find__acts {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    min-width: 0;
}

.wz26 .wz-find__profile {
    font-size: .74rem;
    font-weight: 600;
    color: var(--ink-3);
    text-align: center;
    text-decoration: none;
}

.wz26 .wz-find__profile:hover { color: var(--brand); text-decoration: underline; }

/* A creator already in the cart says so on the row, and the count is the
   way back to the basket. */
.wz26 .wz-find__incart {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 3px;
    font-size: .7rem;
    font-weight: 700;
    color: var(--ok);
    text-decoration: none;
    white-space: nowrap;
}

.wz26 .wz-find__incart:hover { color: var(--ok); text-decoration: underline; }

.wz26 .wz-find__nopage {
    font-size: .72rem;
    font-style: italic;
    color: var(--ink-3);
    text-align: center;
}

/* --- the panel ---------------------------------------------------------- */

.wz26 .wz-find__pick-panel {
    grid-column: 1 / -1;
    margin-top: 4px;
    padding: 14px 16px;
    background: var(--surface-2);
    border: 1px solid var(--line-2);
    border-radius: var(--r-2);
}

.wz26 .wz-find__pick-head {
    margin: 0 0 10px;
    font-size: .82rem;
    color: var(--ink-2);
}

.wz26 .wz-find__pick-head b { color: var(--ink); }

.wz26 .wz-find__pick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }

.wz26 .wz-find__pick-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 8px 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-1);
}

/* The label carries the whole row, so the whole row is the hit target --
   a 14px checkbox is not one. */
.wz26 .wz-find__pick-lab {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 260px;
    min-width: 0;
    margin: 0;
    cursor: pointer;
}

/* The theme parks native checkboxes at left:-9999px, so this restates
   everything that rule takes away rather than relying on the default. */
.wz26 .wz-find__pick-box {
    position: static;
    left: auto;
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    margin: 0;
    opacity: 1;
    accent-color: var(--brand);
    cursor: pointer;
}

.wz26 .wz-find__pick-icon { width: 18px; text-align: center; color: var(--ink-3); font-size: .86rem; }

.wz26 .wz-find__pick-name {
    font-size: .86rem;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
}

.wz26 .wz-find__pick-reach { flex: 1 1 auto; font-size: .76rem; color: var(--ink-3); }

.wz26 .wz-find__pick-cost {
    font-size: .88rem;
    font-weight: 800;
    color: var(--ok);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.wz26 .wz-find__pick-cost.is-odd { color: var(--warn); }

.wz26 .wz-find__pick-drop {
    border: 1px solid var(--line-2);
    border-radius: var(--r-pill);
    background: var(--surface);
    padding: 3px 12px;
    font: inherit;
    font-size: .74rem;
    font-weight: 700;
    color: var(--ink-3);
    cursor: pointer;
}

.wz26 .wz-find__pick-drop:hover { border-color: var(--danger); color: var(--danger); }

.wz26 .wz-find__pick-warn {
    flex: 1 1 100%;
    margin: 0;
    font-size: .74rem;
    color: var(--warn);
}

/* --- the footer --------------------------------------------------------- */

.wz26 .wz-find__pick-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--line-2);
}

.wz26 .wz-find__pick-sum { margin: 0; font-size: .84rem; color: var(--ink-2); }
.wz26 .wz-find__pick-sum b { color: var(--ink); font-variant-numeric: tabular-nums; }

.wz26 .wz-find__pick-acts { display: flex; align-items: center; gap: 8px; }

@media (max-width: 575.98px) {
    .wz26 .wz-find__pick-row { gap: 8px; }
    .wz26 .wz-find__pick-reach { flex: 1 1 100%; }
    .wz26 .wz-find__pick-foot { flex-direction: column; align-items: stretch; }
    .wz26 .wz-find__pick-acts > * { flex: 1 1 auto; }
}

/* Select all, as the first row of the picker.

   It shares the channel rows' column so its checkbox lines up with the ones
   it controls, and it is tinted rather than bordered differently so it reads
   as a header for the list instead of an eighth thing to buy. */
.wz26 .wz-find__pick-row--all {
    background: var(--brand-weak);
    border-color: var(--brand-line);
}

.wz26 .wz-find__pick-row--all .wz-find__pick-name { color: var(--brand); }

.wz26 .wz-find__pick-row--all .wz-find__pick-cost {
    color: var(--ink-3);
    font-weight: 700;
}

/* A part-selected list is neither on nor off, and the native indeterminate
   mark says so without a word. Firefox needs the dash drawn for it. */
.wz26 .wz-find__pick-box:indeterminate {
    accent-color: var(--brand);
}

/* The channel's own address, on the row that sells it. */
.wz26 .wz-find__pick-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
    border-radius: 50%;
    color: var(--ink-3);
    font-size: .72rem;
    text-decoration: none;
}

.wz26 .wz-find__pick-open:hover {
    background: var(--brand-weak);
    color: var(--brand);
}

/* ==========================================================================
   Find Creators — the channel strip, opened
   --------------------------------------------------------------------------
   Every channel is in the DOM; the ones past the fifth are hidden until the
   "+N" chip is pressed, so revealing them costs no request and no re-render.
   A row therefore stays the same height whether a creator has one channel or
   ten — the whole reason this is a strip and not one bordered box per
   platform, which is how the old screen drew it.
   ========================================================================== */

.wz26 .wz-find__chans .wz-find__chan.is-extra { display: none; }
.wz26 .wz-find__chans.is-open .wz-find__chan.is-extra { display: inline-flex; }

/* Each chip is the account it sells. An icon that looks like a platform logo
   and does nothing when clicked reads as a broken link, not as a label. */
.wz26 .wz-find__chan > a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    color: inherit;
    text-decoration: none;
}

.wz26 .wz-find__chan:has(> a):hover {
    background: var(--brand-weak);
    border-color: var(--brand-line);
    color: var(--brand);
}

.wz26 .wz-find__chan > a:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.wz26 .wz-find__chan--more button {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: inherit;
    background: none;
    color: inherit;
    font: inherit;
    font-size: .72rem;
    font-weight: 800;
    cursor: pointer;
}

.wz26 .wz-find__chan--more:hover {
    background: var(--brand-weak);
    border-color: var(--brand-line);
    color: var(--brand);
}

/* --- the price, on hover -------------------------------------------------

   The platform and its rate, without a click. The native `title` tooltip
   took about a second to appear and rendered as an OS label with no relation
   to the page; a brand scanning eight chips gave up before the first one
   showed. This appears at once and looks like the product.

   Positioned above and centred, and the row sets no `overflow`, so it is not
   clipped by anything. `pointer-events: none` keeps it from eating the hover
   that summoned it. */

.wz26 .wz-find__chan[data-tip] { position: relative; }

.wz26 .wz-find__chan[data-tip]::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 7px);
    left: 50%;
    transform: translateX(-50%) translateY(3px);
    z-index: 5;
    padding: 5px 9px;
    border-radius: var(--r-1);
    background: var(--ink);
    color: var(--surface);
    font-size: .72rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease);
}

.wz26 .wz-find__chan[data-tip]:hover::after,
.wz26 .wz-find__chan[data-tip]:focus-within::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* A rate nobody could charge keeps its warning colour in the tooltip too. */
.wz26 .wz-find__chan.is-odd[data-tip]::after { background: var(--warn); }

@media (prefers-reduced-motion: reduce) {
    .wz26 .wz-find__chan[data-tip]::after { transition: none; transform: translateX(-50%); }
}
