/*
 * Yadaj interface kit: command bar loader, confirmation dialog and toast notices shared by the site and dashboard.
 *
 * Developer: MexTech Limited
 * Licenced: Yadaj software is officially licenced and authorized to be used from MexTech Limited
 * Copyright: © 2026 All Rights Reserved, MexTech Limited (https://mextechltd.name.ng)
 */

.loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    z-index: 120;
    pointer-events: none;
    opacity: 0;
    transition: opacity .18s ease;
}

.loader.is-active {
    opacity: 1;
}

.loader span {
    display: block;
    height: 100%;
    width: 100%;
    transform: scaleX(0);
    transform-origin: 0 50%;
    background: linear-gradient(90deg, var(--accent), var(--accent-2, #e8845f) 55%, var(--accent));
    box-shadow: 0 0 12px var(--accent);
    transition: transform .32s cubic-bezier(.22, .61, .36, 1);
}

.loader.is-done span {
    transition: transform .2s ease, opacity .25s ease .1s;
    transform: scaleX(1);
    opacity: 0;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 140;
    display: grid;
    place-items: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
}

.modal.is-open {
    opacity: 1;
    visibility: visible;
}

.modal__scrim {
    position: absolute;
    inset: 0;
    background: rgba(16, 17, 22, .48);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.modal__panel {
    position: relative;
    width: min(30rem, 100%);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 26px 26px 20px;
    box-shadow: 0 30px 70px -30px rgba(16, 17, 22, .55), 0 2px 0 rgba(255, 255, 255, .6) inset;
    transform: translateY(10px) scale(.985);
    opacity: 0;
    transition: transform .26s cubic-bezier(.22, .61, .36, 1), opacity .2s ease;
}

.modal.is-open .modal__panel {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    font-size: .625rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
}

.modal__eyebrow::before {
    content: "";
    width: 18px;
    height: 1px;
    background: currentColor;
    opacity: .5;
}

.modal__title {
    margin: 0 0 8px;
    font-family: var(--serif);
    font-size: 1.375rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--ink);
    letter-spacing: -.015em;
}

.modal__message {
    margin: 0 0 22px;
    font-size: .9375rem;
    line-height: 1.6;
    color: var(--ink-3);
}

.modal__actions {
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
}

.modal__btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 6px;
    border: 1px solid var(--line-2);
    background: transparent;
    color: var(--ink-2);
    font-family: var(--sans);
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .16s ease, border-color .16s ease, color .16s ease, transform .12s ease;
}

.modal__btn:hover {
    background: var(--paper-2);
}

.modal__btn:active {
    transform: scale(.985);
}

.modal__btn--primary {
    background: var(--solid, #101116);
    border-color: var(--solid, #101116);
    color: var(--on-solid, #f6f3ec);
}

.modal__btn--primary:hover {
    filter: brightness(1.18);
}

.modal__btn--danger {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--on-accent, #fff);
}

.modal__btn--danger:hover {
    background: var(--accent-2);
}

.modal__btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.modal__hint {
    margin: 14px 0 0;
    font-size: .6875rem;
    color: var(--ink-3);
    opacity: .8;
}

.toasts {
    position: fixed;
    left: 50%;
    bottom: 78px;
    transform: translateX(-50%);
    z-index: 150;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: min(26rem, calc(100vw - 28px));
    pointer-events: none;
}

.toast {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 15px 14px;
    border-radius: 8px;
    background: var(--solid, #101116);
    color: var(--on-solid, #f4f1ea);
    box-shadow: 0 18px 40px -22px rgba(16, 17, 22, .8);
    font-size: .875rem;
    line-height: 1.45;
    overflow: hidden;
    pointer-events: auto;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .22s ease, transform .26s cubic-bezier(.22, .61, .36, 1);
}

.toast.is-in {
    opacity: 1;
    transform: translateY(0);
}

.toast__dot {
    flex: none;
    width: 7px;
    height: 7px;
    margin-top: 6px;
    border-radius: 50%;
    background: #8fbfa8;
}

.toast--err .toast__dot {
    background: #ef8168;
}

.toast--info .toast__dot {
    background: #d7c58a;
}

.toast__text {
    flex: 1;
}

.toast__close {
    appearance: none;
    flex: none;
    border: 0;
    background: transparent;
    color: var(--on-solid-muted, #b9b2a3);
    font-size: 1rem;
    line-height: 1;
    padding: 2px 0 0 6px;
    cursor: pointer;
}

.toast__bar {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    transform-origin: 0 50%;
    background: var(--accent);
    opacity: .85;
}

body.is-busy button[type="submit"],
body.is-busy .btn {
    opacity: .6;
    pointer-events: none;
}

@media (min-width: 640px) {
    .modal__actions {
        flex-direction: row;
        justify-content: flex-end;
    }

    .toasts {
        left: auto;
        right: 22px;
        bottom: 22px;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .loader span,
    .modal,
    .modal__panel,
    .toast {
        transition: none;
    }
}

.pw {
    position: relative;
    display: block;
    width: 100%;
}

.pw input {
    padding-right: 44px;
}

.pw__toggle {
    position: absolute;
    top: 50%;
    right: 5px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: var(--ink-3, #6f7079);
    transform: translateY(-50%);
    cursor: pointer;
    transition: color .15s ease, background-color .15s ease;
}

.pw__toggle:hover,
.pw__toggle:focus-visible {
    background: var(--stripe, rgba(16, 17, 22, .055));
    color: var(--ink, #101116);
}

.pw__toggle:focus-visible {
    outline: 2px solid var(--accent, #d0442c);
    outline-offset: 1px;
}

.pw__toggle svg {
    display: block;
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pw.is-revealed .pw__toggle {
    color: var(--accent, #d0442c);
}

.brand__logo {
    display: block;
    width: auto;
    max-width: 190px;
    height: 34px;
    object-fit: contain;
}

.brand__logo--dark {
    display: none;
}

[data-theme="dark"] .brand__logo--light {
    display: none;
}

[data-theme="dark"] .brand__logo--dark {
    display: block;
}

.brands {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;
}

.brands__card {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    grid-template-areas: "preview title" "preview form" "note note";
    gap: 4px 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--paper-2);
}

.brands__title {
    grid-area: title;
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--ink);
}

.brands__preview {
    grid-area: preview;
    display: grid;
    place-items: center;
    width: 88px;
    height: 44px;
    padding: 5px;
    border: 1px dashed var(--line-2, #c9bfab);
    border-radius: 3px;
    background: var(--field);
}

.brands__preview img {
    display: block;
    max-width: 78px;
    max-height: 34px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.brands--dark .brands__preview {
    background: #14151a;
    border-color: #2b2e37;
}

.brands--icon .brands__preview img {
    max-width: 32px;
    max-height: 32px;
}

.brands__empty {
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.brands__form {
    grid-area: form;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.brands__file {
    max-width: 100%;
    font-family: var(--sans);
    font-size: 11px;
    color: var(--ink-3);
}

.brands__file::file-selector-button {
    margin-right: 8px;
    padding: 5px 9px;
    border: 1px solid var(--line-2, #c9bfab);
    border-radius: 3px;
    background: var(--field);
    font-family: var(--sans);
    font-size: 11px;
    color: var(--ink);
    cursor: pointer;
}

.filepick {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    padding: 7px 8px;
    border: 1px solid var(--line-2);
    background: var(--field);
    cursor: pointer;
    min-width: 0;
    overflow: hidden;
}

.filepick:hover {
    border-color: var(--ink-3);
}

.filepick:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-bg);
}

.field .filepick .filepick__input,
.filepick .filepick__input {
    position: absolute;
    width: 1px;
    height: 1px;
    max-width: 1px;
    min-width: 0;
    padding: 0;
    margin: -1px;
    border: 0;
    background: none;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.filepick__btn {
    flex: none;
    padding: 7px 12px;
    border: 1px solid var(--line-2);
    background: var(--paper-2);
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 500;
    color: var(--ink);
    transition: border-color .14s ease, color .14s ease;
}

.filepick:hover .filepick__btn {
    border-color: var(--accent);
    color: var(--accent);
}

.filepick__name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: var(--sans);
    font-size: 12px;
    color: var(--ink-3);
}

.filepick.has-file .filepick__name {
    color: var(--ink);
}

.brands__remove {
    padding: 0;
    border: 0;
    background: none;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent);
    cursor: pointer;
}

.brands__note {
    grid-area: note;
    margin-top: 6px;
    font-family: var(--sans);
    font-size: 11px;
    line-height: 1.5;
    color: var(--ink-3);
}

@media (min-width: 900px) {
    .brands {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .brands__card {
        grid-template-columns: 1fr;
        grid-template-areas: "preview" "title" "form" "note";
        align-content: start;
        gap: 8px;
    }

    .brands__preview {
        width: 100%;
        height: 52px;
    }
}

.bstyle {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.bstyle__head {
    margin-bottom: 14px;
}

.bstyle__title {
    margin: 0 0 4px;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--ink);
}

.bstyle__note {
    margin: 0;
    font-family: var(--sans);
    font-size: 12px;
    line-height: 1.6;
    color: var(--ink-3);
}

.bstyle__note code {
    padding: 1px 5px;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: var(--paper-2);
    font-family: var(--mono);
    font-size: 11px;
    color: var(--ink-2);
}

.bstyle__layout {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1fr);
    margin-bottom: 14px;
}

.bstyle__modes {
    display: grid;
    gap: 10px;
    align-content: start;
}

.bstyle__mode {
    min-width: 0;
    margin: 0;
    padding: 10px 12px 2px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--paper-2);
}

.bstyle__legend {
    padding: 0 6px;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.field.bstyle__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 138px;
    align-items: center;
    gap: 4px 12px;
    margin-bottom: 10px;
}

.field.bstyle__row > span {
    margin: 0;
}

.field.bstyle__row > span em {
    display: block;
    margin: 2px 0 0;
    color: var(--ink-3);
}

.field.bstyle__row > span.bstyle__control {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: inherit;
    letter-spacing: 0;
    text-transform: none;
}

.bstyle__swatch {
    flex: none;
    display: block;
    width: 28px;
    height: 28px;
    border: 1px solid var(--line-2);
    border-radius: 3px;
}

.field .bstyle__control input[type="text"] {
    min-width: 0;
    font-family: var(--mono);
    font-size: 13px;
    text-transform: lowercase;
}

.field .bstyle__control input[type="text"].is-invalid {
    border-color: var(--err-line, #e6c4bb);
    background: var(--err-bg, #fbeee9);
}

.bstyle__previews {
    display: grid;
    gap: 10px;
    align-content: start;
    min-width: 0;
}

.bpv {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line-2);
    border-radius: 4px;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
}

.bpv__mode {
    margin: 0;
    padding: 7px 12px;
    border-bottom: 1px solid var(--line);
    background: var(--paper-2);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.bpv__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    background: var(--bar);
}

.bpv__brand {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--ink);
}

.bpv__nav {
    display: flex;
    flex: none;
    gap: 10px;
}

.bpv__nav-item {
    font-size: 11px;
    color: var(--ink-3);
}

.bpv__nav-item--on {
    color: var(--accent);
    font-weight: 600;
}

.bpv__body {
    padding: 12px;
}

.bpv__eyebrow {
    margin: 0 0 4px;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent);
}

.bpv__heading {
    margin: 0 0 6px;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 700;
    color: var(--ink);
}

.bpv__text {
    margin: 0 0 8px;
    font-size: 12px;
    line-height: 1.55;
    color: var(--ink-3);
}

.bpv__links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin: 0 0 10px;
    font-size: 12px;
}

.bpv__link {
    color: var(--accent);
    border-bottom: 1px solid currentColor;
}

.bpv__link--hover {
    color: var(--accent-2);
}

.bpv__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.bpv__btn {
    padding: 7px 14px;
    border: 1px solid var(--accent-bg);
    border-radius: 3px;
    background: var(--accent-bg);
    font-size: 12px;
    font-weight: 600;
    color: var(--on-accent);
}

.bpv__btn--quiet {
    border-color: var(--line-2);
    background: transparent;
    color: var(--ink);
}

.bpv__card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: var(--paper-2);
}

.bpv__card-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-2);
}

.bpv__card-meta {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--ink-3);
}

@media (min-width: 900px) {
    .bstyle__layout {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    }

    .bstyle__previews {
        position: sticky;
        top: 76px;
    }
}

.logo-field {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.logo-field__preview {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 92px;
    padding: 16px;
    border: 1px dashed var(--line-2, #c9bfab);
    border-radius: 4px;
    background: var(--field, #fff);
}

.logo-field__preview img {
    display: block;
    max-width: 240px;
    max-height: 84px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.logo-field__empty {
    font-family: var(--mono, inherit);
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-3, #6f7079);
}

.logo-field__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.logo-field__file {
    max-width: 100%;
    font-family: var(--sans);
    font-size: 13px;
    color: var(--ink-3);
}

.logo-field__file::file-selector-button {
    margin-right: 10px;
    padding: 8px 13px;
    border: 1px solid var(--line-2, #c9bfab);
    border-radius: 3px;
    background: var(--field, #fff);
    font-family: var(--sans);
    font-size: 13px;
    color: var(--ink, #101116);
    cursor: pointer;
}

.logo-field__file:hover::file-selector-button {
    border-color: var(--ink, #101116);
}

@media (min-width: 640px) {
    .logo-field__preview {
        width: auto;
        min-width: 300px;
    }
}

.media-health {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border: 1px solid var(--err-line, #e6c4bb);
    border-left-width: 3px;
    border-radius: 4px;
    background: var(--err-bg, #fbeee9);
}

.media-health.is-ok {
    border-color: var(--ok-line, #bcd2c7);
    border-left-color: var(--green, #1e5c4b);
    background: var(--ok-bg, #eef3ee);
}

.media-health.is-bad {
    border-left-color: var(--accent, #d0442c);
}

.media-health__state {
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 600;
    color: var(--accent, #d0442c);
}

.media-health.is-ok .media-health__state {
    color: var(--green, #1e5c4b);
}

.media-health__msg {
    font-family: var(--sans);
    font-size: 13px;
    line-height: 1.55;
    color: var(--ink-2, #2b2d35);
}

.media-health__meta {
    font-size: 11px;
    line-height: 1.7;
    color: var(--ink-3, #6f7079);
    word-break: break-word;
}

.media-health__meta code,
.media-health__preview code {
    font-size: 11px;
    color: var(--ink-2, #2b2d35);
    word-break: break-all;
}

.media-health__preview {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line, #ddd6c7);
}

.media-health__preview img {
    flex: none;
    width: 120px;
    height: 80px;
    object-fit: cover;
    border: 1px solid var(--line-2, #c9bfab);
    border-radius: 4px;
    background: var(--field, #fff);
}

.media-health__caption {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    color: var(--ink-3, #6f7079);
}

.move-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin: 14px 0 12px;
    border: 1px solid var(--line, #ddd6c7);
    background: var(--line, #ddd6c7);
}

.move-facts > div {
    padding: 11px 13px;
    background: var(--field, #fff);
}

.move-facts dt {
    font-family: var(--mono, monospace);
    font-size: 9px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-3, #6f7079);
}

.move-facts dd {
    margin-top: 3px;
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 600;
    color: var(--ink, #101116);
}

.move-path {
    margin-bottom: 6px;
    font-size: 10px;
    line-height: 1.6;
    word-break: break-all;
    color: var(--ink-3, #6f7079);
}

.move-path code {
    color: var(--ink-2, #2b2d35);
}

@media (min-width: 640px) {
    .move-facts {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

