/* The console uses the marketing site theme: Manrope, the same tokens and the
   lavender paper background, which site.css owns because of the image paths. */
html:has(body.app-console) {
    height: 100%;
    overflow: hidden;
}
body.app-console {
    margin: 0;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-family: "Manrope", sans-serif;
    color: var(--ink);
    line-height: 1.55;
    --console-main-pad-top: 28px;
    --console-main-pad-x: 32px;
    --console-main-pad-bottom: 48px;
    --console-chat-clearance: 0px;
}
body.app-console:has(.zp-chat) {
    --console-chat-clearance: 84px;
}
body.app-console * { font-family: inherit; }
body.app-console a { color: var(--accent); text-decoration: none; }
body.app-console a:hover { color: var(--accent-deep); }
body.app-console a.console-brand,
body.app-console a.console-brand:hover { color: var(--ink); }
body.app-console a.console-side-brand,
body.app-console a.console-side-brand:hover { color: var(--ink); }
body.app-console a.console-chip { color: var(--muted); }
body.app-console a.console-chip:hover { color: var(--ink); }
body.app-console a.console-chip-accent,
body.app-console a.console-chip-accent:hover { color: var(--white); }
body.app-console a.console-nav { color: var(--muted); }
body.app-console a.console-nav:hover { color: var(--ink); }
body.app-console a.console-nav.is-active { color: var(--ink); }
body.app-console a.dash-chip { color: var(--muted); }
body.app-console a.dash-chip:hover { color: var(--ink); }
body.app-console img, body.app-console svg { max-width: 100%; display: block; }
body.app-console button, body.app-console input, body.app-console textarea, body.app-console select {
    font-family: inherit;
}

.console-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}
.console-brand:hover { color: var(--ink); }
.console-brand img { width: 30px; height: 30px; border-radius: 50%; object-fit: contain; }
.console-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 14px;
    border-radius: var(--radius-pill);
    background: var(--white);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 600;
}
.console-chip:hover { color: var(--ink); }
.console-chip svg { width: 14px; height: 14px; }
/* Share: icon + label in the chrome (not a pill button). */
button.console-share {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 6px;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: inherit;
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 650;
    cursor: pointer;
    text-decoration: none;
}
button.console-share:hover { text-decoration: underline; }
button.console-share:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    text-decoration: none;
}
button.console-share img {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    object-fit: contain;
    flex: none;
}
.share-profile-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 90;
    max-width: min(92vw, 480px);
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    background: var(--ink);
    color: var(--white);
    font-size: 0.86rem;
    font-weight: 600;
    text-align: center;
    opacity: 0;
    transform: translate(-50%, 12px);
    pointer-events: none;
    box-shadow: 0 12px 32px rgba(17, 17, 24, 0.28);
    transition: opacity 0.18s ease, transform 0.18s ease;
}
.share-profile-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.share-profile-toast.is-ok { background: #0f7b4c; }
.share-profile-toast.is-bad { background: #b42318; }

.console-toast-stack {
    position: fixed;
    left: 50%;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 20px);
    z-index: 100010;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: min(94vw, 540px);
    transform: translateX(-50%);
    pointer-events: none;
}
.console-toast {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
    padding: 18px 52px 18px 18px;
    border-radius: 20px;
    color: #fff;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.01em;
    text-align: left;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow:
        0 22px 56px rgba(17, 17, 24, 0.22),
        0 4px 14px rgba(17, 17, 24, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);
    -webkit-backdrop-filter: blur(22px) saturate(1.65);
    backdrop-filter: blur(22px) saturate(1.65);
    opacity: 0;
    transform: translateY(18px) scale(0.98);
    transition: opacity 0.24s ease, transform 0.24s ease;
    pointer-events: auto;
    overflow: hidden;
}
.console-toast::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.04) 42%, transparent 70%);
}
.console-toast.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.console-toast.is-success {
    background: linear-gradient(135deg, rgba(6, 122, 78, 0.78) 0%, rgba(16, 185, 129, 0.62) 100%);
}
.console-toast.is-error,
.console-toast.is-pending {
    background: linear-gradient(135deg, rgba(185, 28, 28, 0.8) 0%, rgba(239, 68, 68, 0.62) 100%);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .console-toast.is-success {
        background: linear-gradient(135deg, #0f7b4c 0%, #059669 100%);
    }
    .console-toast.is-error,
    .console-toast.is-pending {
        background: linear-gradient(135deg, #b42318 0%, #dc2626 100%);
    }
}
.console-toast-icon {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-top: 1px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.console-toast-icon svg {
    display: block;
    width: 18px;
    height: 18px;
}
.console-toast-message {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    margin: 0;
    padding: 2px 0 0;
    font: inherit;
    color: inherit;
}
.console-toast-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
    transition: background 0.15s ease, transform 0.15s ease;
}
.console-toast-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.04);
}
.console-toast-close:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 2px;
}
.console-toast-close svg {
    display: block;
    width: 15px;
    height: 15px;
}
@media (max-width: 980px) {
    .console-toast-stack {
        bottom: calc(env(safe-area-inset-bottom, 0px) + 14px);
        width: min(96vw, 540px);
    }
    .console-toast {
        padding: 16px 48px 16px 16px;
        font-size: 0.94rem;
    }
}
/* Shows which console you are in, so it is a label rather than a link. */
.console-chip-here {
    background: var(--accent-soft);
    border-color: transparent;
    color: var(--accent-deep);
    font-weight: 700;
}
.console-chip-accent {
    background: var(--accent);
    border-color: transparent;
    color: var(--white);
    box-shadow: 0 8px 20px rgba(124, 108, 255, 0.28);
}
.console-chip-accent:hover { color: var(--white); background: var(--accent-deep); }
.console-avatar-ico { display: none; }
.console-avatar-initials { display: grid; place-items: center; }
.console-icon-btn {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 14px;
    background: var(--accent-soft);
    color: var(--accent-deep);
    display: grid;
    place-items: center;
    cursor: pointer;
}
.console-icon-btn svg { width: 18px; height: 18px; }
.console-menu-btn { display: none; }
.console-avatar {
    list-style: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
    overflow: hidden;
    padding: 0;
}
.console-avatar.has-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}
.console-avatar svg { width: 18px; height: 18px; }
.console-account { position: relative; }
.console-account summary { list-style: none; }
.console-account summary::-webkit-details-marker { display: none; }
.console-account-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 220px;
    background: var(--white);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 14px;
    z-index: 50;
    transform-origin: top right;
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
    transition:
        opacity 0.22s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}
.console-account-menu.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.console-account-menu.is-closing {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
    pointer-events: none;
}
.console-account-menu a.console-account-view-mobile {
    display: none;
}
.console-account-menu a svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    vertical-align: -3px;
    margin-right: 6px;
}
@media (prefers-reduced-motion: reduce) {
    .console-account-menu {
        transition: none;
    }
    details.console-account[open] .console-account-menu {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }
}
.console-account-menu p { margin: 0 0 6px; font-size: 0.82rem; font-weight: 600; word-break: break-all; }
.console-account-menu .muted { color: var(--muted); font-weight: 500; margin-bottom: 10px; }
.console-account-menu a,
.console-account-menu button {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    background: none;
    padding: 8px 0;
    color: var(--ink);
    font-weight: 600;
    cursor: pointer;
}
.console-account-menu button { color: #b42318; }

.console-overlay {
    display: none;
}
.console-side {
    background: transparent;
    border-right: 1px solid var(--line);
    padding: 18px 12px 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.console-side-nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    padding-bottom: 8px;
}
.console-side-foot {
    flex: none;
    margin-top: 0;
    padding: 10px 8px 4px;
    border-top: 1px solid var(--line);
    background: transparent;
}
.console-side-head {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 4px 8px 12px;
    flex: none;
    position: sticky;
    top: 0;
    z-index: 2;
    background: inherit;
}
.console-side-head .console-icon-btn { background: var(--accent-soft); color: var(--accent-deep); flex: none; }
.console-side-brand-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}
.console-side-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: var(--ink);
    text-decoration: none;
}
.console-side-brand:hover { color: var(--ink); }
.console-side-brand img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: contain;
    flex: none;
}
.console-side-brand strong {
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}
.console-side-user {
    display: block;
    margin: 0;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.console-side-top-logo {
    margin: 0 0 8px;
    align-self: flex-start;
}
.console-side-head .console-side-brand-block {
    gap: 0;
}
.console-side-head .console-side-greeting {
    padding-top: 2px;
}
.console-side-top-logo strong {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}
.console-side-greeting { gap: 2px; }
.console-side-hello {
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.35;
}
.console-side-name {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.console-side-role {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: -0.01em;
    line-height: 1.3;
}
.console-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
}
.console-nav:hover { color: var(--ink); background: rgba(255, 255, 255, 0.7); }
.console-nav.is-active {
    background: var(--white);
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}
.console-nav-ico {
    width: 18px;
    height: 18px;
    color: var(--muted-2);
    flex: none;
}
.console-nav.is-active .console-nav-ico { color: var(--accent); }
.console-nav svg { width: 18px; height: 18px; }
.console-tag {
    margin-left: auto;
    font-style: normal;
    font-size: 0.68rem;
    font-weight: 800;
    color: #12b76a;
    background: #ecfdf3;
    border-radius: 999px;
    padding: 2px 7px;
}
.console-tag--count {
    color: #fff;
    background: #d92d20;
    min-width: 1.35rem;
    text-align: center;
    line-height: 1.2;
}

.console-main-skeleton {
    display: none;
    flex-direction: column;
    gap: 14px;
    padding: 4px 0 24px;
    pointer-events: none;
}
.console-skeleton-block {
    border-radius: 10px;
    background: linear-gradient(90deg, #e8e6ef 0%, #f3f2f8 45%, #e8e6ef 90%);
    background-size: 220% 100%;
    animation: console-skeleton-shimmer 1.15s ease-in-out infinite;
}
.console-skeleton-kicker {
    width: 38%;
    max-width: 160px;
    height: 12px;
    border-radius: 999px;
    opacity: 0.85;
}
.console-skeleton-title {
    width: 62%;
    max-width: 280px;
    height: 22px;
}
.console-skeleton-line {
    width: 100%;
    height: 14px;
}
.console-skeleton-line--short {
    width: 78%;
}
.console-skeleton-card {
    width: 100%;
    height: 120px;
    border-radius: 14px;
    margin-top: 6px;
}
.console-skeleton-card--sm {
    height: 72px;
    margin-top: 0;
}
@keyframes console-skeleton-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

html:not(.pwa-splash-active) #pwa-boot {
    display: none !important;
}
html.pwa-splash-active #pwa-boot {
    display: grid;
}
html.pwa-splash-active:not(.pwa-splash-ready) body.app-console .staff-shell,
html.pwa-splash-active:not(.pwa-splash-ready) body.app-login > :not(#pwa-boot) {
    visibility: hidden;
}
html.pwa-splash-active.pwa-splash-ready body.app-console .staff-shell,
html.pwa-splash-active.pwa-splash-ready body.app-login > :not(#pwa-boot) {
    visibility: visible;
    animation: pwa-content-in 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes pwa-content-in {
    from {
        opacity: 0;
        transform: translate3d(0, 6px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}
.pwa-boot {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: grid;
    place-items: center;
    background: #f3f2f8;
    transition: opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.42s ease;
}
.pwa-boot.is-done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.pwa-boot-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    padding: 24px;
}
.pwa-boot-logo {
    width: 96px;
    height: 96px;
    border-radius: 0;
    object-fit: contain;
    filter: none;
    opacity: 1;
    animation: pwa-boot-logo-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.pwa-boot-name {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #1c1c28;
    animation: pwa-boot-name-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}
.pwa-boot-progress {
    display: block;
    width: min(168px, 56vw);
    height: 3px;
    margin-top: 4px;
    border-radius: 999px;
    background: rgba(107, 70, 245, 0.12);
    overflow: hidden;
}
.pwa-boot-progress i {
    display: block;
    width: 42%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #9b8cff, #6b46f5);
    animation: pwa-boot-progress 1.1s ease-in-out infinite;
}
@keyframes pwa-boot-logo-in {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
@keyframes pwa-boot-name-in {
    from {
        opacity: 0;
        transform: translate3d(0, 4px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}
@keyframes pwa-boot-progress {
    0% { transform: translate3d(-120%, 0, 0); }
    100% { transform: translate3d(320%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
    html.pwa-splash-active.pwa-splash-ready body.app-console .staff-shell,
    html.pwa-splash-active.pwa-splash-ready body.app-login > :not(#pwa-boot) {
        animation: none;
    }
    .pwa-boot-logo,
    .pwa-boot-name,
    .pwa-boot-progress i {
        animation: none;
    }
}
@media (display-mode: standalone) {
    body.app-console .staff-chrome {
        padding-top: max(8px, env(safe-area-inset-top));
    }
    body.app-console {
        --console-main-pad-bottom: 40px;
    }
    body.app-console:has(.zp-chat) {
        --console-chat-clearance: 92px;
    }
}

body.app-console .console-main,
body.app-console.staff-console .staff-main {
    min-width: 0;
    min-height: 0;
    flex: 1 1 auto;
    padding:
        var(--console-main-pad-top)
        var(--console-main-pad-x)
        calc(
            var(--console-main-pad-bottom)
            + env(safe-area-inset-bottom, 0px)
            + var(--console-chat-clearance, 0px)
        );
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    box-sizing: border-box;
}
.console-main > h1,
.console-main .h4 {
    font-size: clamp(1.45rem, 2.2vw, 1.9rem);
    letter-spacing: -0.045em;
    font-weight: 800;
    margin: 0 0 8px;
}
.console-main > p,
.text-secondary { color: var(--muted); font-weight: 500; }
.console-main > p { margin: 0 0 18px; }

.dash-banner,
.dash-banner-copy,
.dash-banner-art,
.dash-banner-card {
    display: none !important;
}
.dash-hero {
    max-width: 720px;
    margin: 4px auto 20px;
    text-align: center;
}
.dash-hero h1 {
    font-size: clamp(1.45rem, 3vw, 2rem);
    letter-spacing: -0.045em;
    font-weight: 800;
    margin: 0 0 4px;
}
.dash-hello-sub {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 500;
}
.dash-search {
    background: transparent;
    border-radius: var(--radius-card);
    padding: 4px 0 0;
    text-align: left;
    position: relative;
}
/* Pill border + side glow: cyan ↔ magenta interchange (no rotating ring). */
.dash-search-beam {
    position: relative;
    border-radius: var(--radius-pill);
    isolation: isolate;
}
.dash-search-beam::before,
.dash-search-beam::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 58%;
    height: 135%;
    transform: translateY(-50%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(26px);
}
.dash-search-beam::before {
    left: -6%;
    animation: dash-search-glow-left 5.5s ease-in-out infinite;
}
.dash-search-beam::after {
    right: -6%;
    animation: dash-search-glow-right 5.5s ease-in-out infinite;
}
.dash-search-glow {
    position: relative;
    z-index: 1;
    border-radius: var(--radius-pill);
    min-height: 56px;
    overflow: hidden;
    padding: 2px;
    background: linear-gradient(
        90deg,
        #b8a8ff 0%,
        var(--accent, #7c6cff) 24%,
        #6a5af8 48%,
        #c4b5fd 72%,
        var(--accent, #7c6cff) 100%
    );
    background-size: 240% 100%;
    animation: dash-search-border-flow 5.5s ease-in-out infinite;
}
.dash-search-glow::after {
    content: "";
    position: absolute;
    inset: 2px;
    z-index: 2;
    border-radius: inherit;
    background: #fff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        0 1px 2px rgba(15, 23, 42, 0.04);
    pointer-events: none;
}
.dash-search-beam:has(.dash-search-glow:focus-within)::before,
.dash-search-beam:has(.dash-search-glow:focus-within)::after {
    opacity: 0.72;
    filter: blur(28px);
}
@keyframes dash-search-border-flow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
@keyframes dash-search-glow-left {
    0%, 100% {
        background: rgba(124, 108, 255, 0.72);
        opacity: 0.52;
    }
    50% {
        background: rgba(155, 140, 255, 0.68);
        opacity: 0.44;
    }
}
@keyframes dash-search-glow-right {
    0%, 100% {
        background: rgba(106, 90, 248, 0.68);
        opacity: 0.48;
    }
    50% {
        background: rgba(124, 108, 255, 0.72);
        opacity: 0.52;
    }
}
.dash-search-ico {
    position: absolute;
    left: 18px;
    top: 0;
    z-index: 3;
    width: 18px;
    height: 56px;
    display: grid;
    place-items: center;
    color: var(--muted);
    pointer-events: none;
}
.dash-search-ico svg { width: 18px; height: 18px; display: block; }
.dash-search input[type="search"] {
    position: relative;
    z-index: 3;
    width: 100%;
    border: 0;
    border-radius: var(--radius-pill);
    min-height: 56px;
    padding: 14px 20px 14px 46px;
    background: transparent;
    box-shadow: none;
    font-size: 0.98rem;
    font-weight: 500;
    color: var(--ink);
}
.dash-search input[type="search"]::placeholder {
    color: #94a3b8;
    font-weight: 500;
}
.dash-search input:focus { outline: none; }
.dash-search-results {
    position: absolute;
    left: 0;
    right: 0;
    top: 68px;
    z-index: 8;
    max-height: min(360px, 52vh);
    overflow: auto;
    padding: 6px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 14px 36px rgba(40, 28, 80, 0.14);
    text-align: left;
}
.dash-search-hit {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
}
.dash-search-hit:hover,
.dash-search-hit.is-on {
    background: var(--accent-soft);
}
.dash-search-hit-main {
    display: block;
    color: inherit;
    text-decoration: none;
}
.dash-search-hit-main strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 650;
}
.dash-search-path {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 0.78rem;
}
.dash-search-path a {
    color: var(--accent, #5b4cdb);
    text-decoration: none;
}
.dash-search-path a:hover { text-decoration: underline; }
.dash-search-empty {
    margin: 0;
    padding: 12px;
    color: var(--muted);
    font-size: 0.9rem;
}
.console-main [id] { scroll-margin-top: 96px; }
.dash-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
}
@media (prefers-reduced-motion: reduce) {
    .dash-search-glow {
        animation: none;
        background-size: 100% 100%;
        background: linear-gradient(90deg, #b8a8ff 0%, var(--accent, #7c6cff) 50%, #6a5af8 100%);
    }
    .dash-search-beam::before,
    .dash-search-beam::after {
        animation: none;
        opacity: 0.45;
    }
    .dash-search-beam::before {
        background: rgba(124, 108, 255, 0.72);
    }
    .dash-search-beam::after {
        background: rgba(106, 90, 248, 0.68);
    }
}
.dash-chips[data-connections-shared] {
    justify-content: flex-start;
    margin: 0 0 14px;
}
.dash-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: var(--radius-pill);
    background: var(--white);
    border: 1px solid #f0eef8;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    flex: none;
}
@media (min-width: 641px) {
    .todo-stack-pending .todo-row {
        grid-template-columns: 34px minmax(0, 1fr) auto;
        align-items: center;
    }
    .todo-stack-pending .todo-cta {
        grid-column: auto;
        justify-self: end;
        margin-top: 0;
        width: auto;
    }
}
.dash-chips[data-connections-shared] .dash-chip {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-height: 0;
    padding: 10px 14px;
    border-radius: 14px;
}
.dash-chips[data-connections-shared] .dash-chip strong {
    display: block;
    color: var(--ink);
    font-size: 1.15rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
}
.dash-chip:hover { color: var(--ink); }
.dash-chip svg { width: 14px; height: 14px; color: var(--accent); }

.dash-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    margin: 4px 0 8px;
    letter-spacing: -0.02em;
}
.dash-title-count {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #f04438;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    display: inline-grid;
    place-items: center;
}
.todo-all-clear {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 600;
}
.todo-stack, .biz-row, body.app-console .card {
    background: var(--white);
    border: 1px solid #f0eef8;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm);
    text-align: left;
}
.todo-stack { padding: 4px; margin-bottom: 12px; }
.todo-stack-done { margin-bottom: 16px; padding: 2px 4px; }
.todo-done-fold {
    margin: 0 0 16px;
}
.todo-done-fold summary {
    list-style: none;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--muted);
    padding: 6px 2px 8px;
}
.todo-done-fold summary::-webkit-details-marker { display: none; }
.todo-done-fold summary::before {
    content: "▸ ";
    color: var(--accent);
}
.todo-done-fold[open] summary::before {
    content: "▾ ";
}
.todo-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px 10px;
    border-radius: 12px;
}
.todo-stack-pending .todo-row {
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: start;
}
.todo-stack-pending .todo-cta {
    grid-column: 1 / -1;
    justify-self: stretch;
    width: auto;
    margin-top: 2px;
}
.todo-stack-done .todo-row {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    padding: 8px 8px;
    gap: 8px;
}
.todo-row + .todo-row { border-top: 1px solid var(--line); }
.todo-ico {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: var(--accent-soft);
    color: var(--accent);
    display: grid;
    place-items: center;
    flex: none;
}
.todo-stack-done .todo-ico {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    opacity: 0.85;
}
.todo-ico svg { width: 16px; height: 16px; }
.todo-stack-done .todo-ico svg { width: 14px; height: 14px; }
.todo-copy h3,
.todo-row h3 {
    margin: 0 0 2px;
    font-size: 0.92rem;
    letter-spacing: -0.03em;
    line-height: 1.25;
}
.todo-copy p,
.todo-row p {
    margin: 0;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.todo-done-title {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted);
    line-height: 1.3;
}
.todo-row.is-done { opacity: 0.88; }
.todo-done-mark {
    font-size: 0.95rem;
    font-weight: 800;
    color: #146c43;
    line-height: 1;
}
.todo-cta {
    white-space: nowrap;
    min-height: 36px;
    padding-inline: 14px;
}
.activity-log-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.activity-log-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--white);
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    color: var(--ink);
}
.activity-log-tab.is-on {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent-deep);
}
.activity-log-count {
    display: inline-flex;
    min-width: 1.4em;
    justify-content: center;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.06);
    font-size: 0.75rem;
}
.activity-log-tab.is-on .activity-log-count {
    background: rgba(124, 108, 255, 0.18);
}
.biz-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    padding: 16px;
    margin-bottom: 16px;
}
.biz-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(140deg, var(--accent), var(--accent-deep));
    color: var(--white);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 0.78rem;
}
.biz-row h3 { margin: 0; font-size: 0.98rem; letter-spacing: -0.03em; }
.biz-row p { margin: 0; color: var(--muted); font-size: 0.82rem; font-weight: 500; }
.biz-actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.biz-actions form { margin: 0; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

body.app-console .card { padding: 28px 32px; margin-bottom: 16px; }
body.app-console .card p { margin: 0; }
body.app-console .profile-body { padding: 0; }
body.app-console .card.profile-body { padding: 28px 32px; }
body.app-console .testimonials-form .testimonial-entry + .testimonial-entry {
    margin-top: 1.75rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--console-border, rgba(255, 255, 255, 0.08));
}
body.app-console .testimonials-form .testimonials-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
    align-items: center;
}
body.app-console .profile-body.border-top {
    padding-top: 22px;
    margin-top: 8px;
}
body.app-console .card > .h6:first-of-type,
body.app-console .card.profile-body > .h6:first-of-type {
    margin-top: 0;
}
body.app-console .card.h-100 { height: 100%; display: flex; flex-direction: column; }
body.app-console .card-img-top {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 16px;
    margin: 0 0 12px;
}
body.app-console .form-label {
    display: block;
    font-weight: 600;
    margin: 0 0 6px;
    font-size: 0.9rem;
}
body.app-console .form-control,
body.app-console .form-select,
body.app-console textarea.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    font-size: 16px;
    background: #fcfbff;
    color: var(--ink);
}
body.app-console textarea.form-control { min-height: 110px; resize: vertical; }
body.app-console .form-control:focus,
body.app-console .form-select:focus {
    outline: 2px solid var(--accent-mid);
    border-color: var(--accent);
}
body.app-console .form-control-sm { width: 5rem; padding: 8px 10px; font-size: 0.88rem; }
body.app-console .form-text {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.5;
}
/* Settings read as a row: label on the left, switch on the right, thumb-sized. */
body.app-console .form-check {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 48px;
    margin: 8px 0 2px;
}
body.app-console .form-check.ms-2 { margin-left: 0; }
body.app-console .form-check-label {
    order: -1;
    flex: 1;
    line-height: 1.45;
    font-weight: 600;
}
body.app-console .form-check-input { width: 18px; height: 18px; accent-color: var(--accent); }
body.app-console input.form-check-input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    flex: none;
    width: 48px;
    height: 28px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: var(--radius-pill);
    background: #ddd9ea;
    cursor: pointer;
    transition: background 0.18s ease;
}
body.app-console input.form-check-input[type="checkbox"]::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 2px 6px rgba(17, 17, 24, 0.28);
    transition: transform 0.18s ease;
}
body.app-console input.form-check-input[type="checkbox"]:checked { background: var(--accent); }
body.app-console input.form-check-input[type="checkbox"]:checked::after { transform: translateX(20px); }
body.app-console input.form-check-input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--accent-mid);
    outline-offset: 2px;
}
body.app-console .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: var(--radius-pill);
    padding: 11px 20px;
    min-height: 44px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    letter-spacing: -0.01em;
}
body.app-console .btn-primary {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(124, 108, 255, 0.28);
}
body.app-console .btn-primary:hover { background: var(--accent-deep); color: var(--white); }
body.app-console .btn-sm { min-height: 36px; padding: 8px 16px; font-size: 0.82rem; }
/* Ghost buttons sit on white cards here, so they carry the paper fill. */
body.app-console .btn-ghost,
body.app-console .btn-outline-secondary {
    background: var(--paper);
    border: 1px solid var(--line);
    color: var(--ink);
}
body.app-console .btn-outline-danger {
    background: var(--white);
    border: 1px solid #f5d9d6;
    color: #b42318;
}
/* Golden notice for account actions that are still pending, e.g. email verification. */
.console-notice {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin: 0 0 20px;
    padding: 14px 18px;
    border: 1px solid #f3dea3;
    border-radius: 18px;
    background: #fdf6e3;
    color: #5a4300;
}
.console-notice-ico { flex: none; color: #eda313; }
.console-notice-ico svg { width: 22px; height: 22px; }
.console-notice p {
    flex: 1;
    min-width: 220px;
    margin: 0;
    font-size: 0.92rem;
    font-weight: 500;
}
.console-notice p strong { font-weight: 800; }
.console-notice form { margin: 0; }
.console-notice--success {
    border-color: #b8e6c8;
    background: #edfbf3;
    color: #14532d;
}
.console-notice--success .console-notice-ico { color: #16a34a; }
body.app-console .btn-warn {
    background: #f5c33a;
    color: #4a3600;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(214, 158, 12, 0.24);
}
body.app-console .btn-warn:hover { background: #eeb417; color: #3f2e00; }
body.app-console .alert { padding: 12px 14px; border-radius: 14px; margin-bottom: 16px; font-weight: 500; }
body.app-console .alert-success { background: #ecfdf5; color: #065f46; }
body.app-console .alert-danger { background: #fef2f2; color: #991b1b; }
body.app-console .badge.text-bg-primary,
body.app-console .badge.text-bg-secondary {
    display: inline-flex;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    margin-left: 8px;
}
body.app-console .text-bg-primary { background: var(--accent-soft); color: var(--accent-deep); }
body.app-console .text-bg-secondary { background: var(--paper); color: var(--muted); }
body.app-console .small { font-size: 0.82rem; }
body.app-console .h5, body.app-console .h6 {
    font-size: 1.02rem;
    letter-spacing: -0.035em;
    font-weight: 800;
    margin: 0 0 12px;
}
body.app-console .h6 { font-size: 0.92rem; margin-top: 22px; }
body.app-console .card > .h6:first-of-type,
body.app-console .card.profile-body > .h6:first-of-type {
    margin-top: 0;
}
body.app-console .row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
body.app-console .g-2 { gap: 14px; }
body.app-console .g-3 { gap: 14px; }
/* Mobile-first: a column is full width until its own breakpoint applies. */
body.app-console .col-12, body.app-console .col-md-2, body.app-console .col-md-3,
body.app-console .col-md-4, body.app-console .col-md-5, body.app-console .col-md-6,
body.app-console .col-md-7, body.app-console .col-md-8, body.app-console .col-md-9,
body.app-console .col-lg-2, body.app-console .col-lg-3, body.app-console .col-lg-4,
body.app-console .col-lg-5, body.app-console .col-lg-6, body.app-console .col-lg-7,
body.app-console .col-lg-8, body.app-console .col-lg-9, body.app-console .col-lg-10,
body.app-console .col-lg-12 { grid-column: span 12; }
body.app-console .col-6 { grid-column: span 6; }
body.app-console .col-7 { grid-column: span 7; }
body.app-console .d-inline-flex {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
body.app-console .table-responsive { overflow-x: auto; }
body.app-console .align-middle td,
body.app-console .align-middle th { vertical-align: middle; }
body.app-console .text-end { text-align: right; }
body.app-console .badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 0.72rem;
    font-weight: 700;
}
body.app-console .badge.text-bg-success,
body.app-console .text-bg-success { background: #ecfdf5; color: #065f46; }
body.app-console .badge.text-bg-warning,
body.app-console .text-bg-warning { background: #fef3c7; color: #92400e; }
body.app-console .badge.text-bg-danger,
body.app-console .text-bg-danger { background: #fef2f2; color: #991b1b; }
body.app-console .mb-1 { margin-bottom: 4px; }
body.app-console .mb-2 { margin-bottom: 8px; }
body.app-console .mb-3 { margin-bottom: 16px; }
body.app-console .mt-2 { margin-top: 8px; }
body.app-console .mt-3 { margin-top: 16px; }
body.app-console .ms-2 { margin-left: 8px; }
body.app-console .d-flex { display: flex; }
body.app-console .d-flex.justify-content-between,
body.app-console .d-flex.align-items-center,
body.app-console .d-flex.align-items-md-center,
body.app-console .d-flex.flex-md-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
body.app-console .gap-2 { gap: 8px; }
body.app-console .gap-3 { gap: 12px; }
body.app-console .flex-grow-1 { flex: 1; min-width: 0; }
body.app-console .rounded-circle { border-radius: 50%; object-fit: cover; }
body.app-console .rounded { border-radius: 16px; }
body.app-console .img-fluid { max-width: 100%; height: auto; }
body.app-console .object-fit-cover { object-fit: cover; }
body.app-console .input-group {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: #fcfbff;
}
body.app-console .input-group-text {
    display: grid;
    place-items: center;
    padding: 0 12px;
    background: var(--paper);
    color: var(--muted);
    font-weight: 700;
}
body.app-console .input-group .form-control { border: 0; border-radius: 0; }
body.app-console .input-group .btn { border-radius: 0; }
body.app-console .profile-url-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: #fcfbff;
}
body.app-console .profile-url-prefix {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    padding: 0 12px;
    white-space: nowrap;
    background: var(--paper);
    color: var(--muted);
    font-weight: 700;
}
body.app-console .profile-url-row .form-control {
    flex: 1 1 0;
    min-width: 0;
    border: 0;
    border-radius: 0;
}
body.app-console .profile-url-row .btn {
    flex: 0 0 auto;
    width: auto;
    border-radius: 0;
    white-space: nowrap;
}
.profile-url-full {
    display: block;
    margin: 10px 0 0;
    white-space: nowrap;
    overflow-x: auto;
    font-weight: 700;
    font-size: 0.92rem;
}
body.app-console .ratio { position: relative; width: 100%; }
body.app-console .ratio-16x9 { aspect-ratio: 16 / 9; }
body.app-console .ratio iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 16px;
}
/* Card section header: title on the left, its shortcut on the right. */
.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 4px;
}
.card-head .h6, body.app-console .card-head .h6 { margin: 0; }
.card-head a {
    flex: none;
    font-size: 0.84rem;
    font-weight: 700;
}
/* One card section per row: name, its editor link, order and an on/off switch. */
.section-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: 8px 14px;
    padding: 12px 0;
}
.section-row + .section-row { border-top: 1px solid var(--line); }
.section-row-name { font-weight: 600; }
.section-row-edit { font-size: 0.82rem; font-weight: 700; }
.section-row-order { width: 4.5rem; }
body.app-console .section-row-order input { width: 100%; text-align: center; }

.editor-kicker {
    margin: 0 0 6px;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.editor-pager {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
}
.membership-catalog {
    display: grid;
    gap: 10px;
}
.membership-catalog-actions {
    display: flex;
    margin-top: 14px;
}
.membership-pick {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    min-width: 0;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fcfbff;
}
.membership-pick > input[type="hidden"] {
    display: none;
}
.membership-pick.is-on {
    border-color: var(--accent-mid);
    background: var(--accent-soft);
}
.membership-pick-main {
    margin: 0;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 12px;
    flex: 1;
    min-width: 0;
    width: 100%;
}
.membership-pick-label {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    align-items: center;
    column-gap: 12px;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    cursor: pointer;
}
.membership-pick-label img,
.membership-pick-mark {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: contain;
    background: #fff;
    flex: none;
}
.membership-pick-mark {
    display: grid;
    place-items: center;
    color: var(--accent-deep);
    font-weight: 800;
    background: var(--accent-soft);
}
.membership-pick-name {
    min-width: 0;
}
.membership-pick-name strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.membership-pick-label input[type="checkbox"] {
    grid-column: 3;
    justify-self: end;
    float: none;
    margin: 0;
}
.membership-pick-label small {
    color: var(--muted);
}
.membership-pick-upload {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: min(100%, 280px);
    flex: 1;
}
.membership-pick-upload .form-control { min-width: 0; }
.social-catalog {
    display: grid;
    gap: 10px;
}
.social-pick {
    display: grid;
    grid-template-columns: 48px minmax(6.5rem, 9rem) minmax(0, 1fr);
    align-items: center;
    column-gap: 12px;
    width: 100%;
    min-width: 0;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fcfbff;
}
.social-pick-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #fff;
    overflow: hidden;
}
.social-pick-logo svg,
.social-pick-logo img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}
.social-pick-name {
    font-weight: 700;
    min-width: 0;
}
.social-pick .form-control {
    min-width: 0;
}
.social-pick .field-applied {
    grid-column: 1 / -1;
    min-width: 0;
    margin-top: 8px;
}
.theme-grid {
    display: grid;
    gap: 14px;
}
.theme-card {
    display: grid;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fcfbff;
    cursor: pointer;
}
.theme-card input { position: absolute; opacity: 0; pointer-events: none; }
.theme-card.is-on,
.theme-card:has(input:checked) {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(124, 108, 255, 0.16);
}
.theme-card.is-locked { opacity: 0.78; }
.theme-preview {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    min-height: 92px;
    background: var(--paper);
}
.theme-preview-hero { display: block; height: 42px; }
.theme-preview-body {
    display: grid;
    gap: 6px;
    padding: 10px 12px 12px;
}
.theme-preview-body i {
    display: block;
    height: 6px;
    border-radius: 99px;
    background: currentColor;
    opacity: 0.18;
}
.theme-preview-body i:first-child { width: 46%; opacity: 0.4; }
.theme-preview-body i:nth-child(2) { width: 72%; }
.theme-preview[data-theme="professional"] .theme-preview-hero { background: linear-gradient(120deg, #93c5fd, #7c6cff); }
.theme-preview[data-theme="professional"] { color: #7c6cff; background: linear-gradient(180deg, #dbeafe, #fff); }
.theme-preview[data-theme="creative"] .theme-preview-hero { background: linear-gradient(120deg, #4338ca, #6366f1 45%, #f472b6); }
.theme-preview[data-theme="creative"] {
    color: #6366f1;
    background: linear-gradient(145deg, rgba(196, 181, 253, 0.85), rgba(251, 207, 232, 0.75));
    backdrop-filter: blur(6px);
}
.theme-preview[data-theme="creative"] .theme-preview-body {
    background: rgba(255, 255, 255, 0.55);
    border-radius: 0 0 10px 10px;
}
.theme-preview[data-theme="minimal"] .theme-preview-hero { background: #e6e6e4; }
.theme-preview[data-theme="minimal"] { color: #111; background: #fff; border: 1px solid #e6e6e4; }
.theme-preview[data-theme="dark"] .theme-preview-hero { background: linear-gradient(120deg, #1a1a22, #8b5cf6); }
.theme-preview[data-theme="dark"] { color: #a78bfa; background: #0f0f14; }
.theme-preview[data-theme="gradient"] .theme-preview-hero { background: linear-gradient(120deg, #6d28d9, #818cf8); }
.theme-preview[data-theme="gradient"] { color: #6366f1; background: linear-gradient(180deg, #6d28d9 0%, #fff 55%); }
.theme-preview[data-theme="corporate"] .theme-preview-hero { background: linear-gradient(120deg, #1e3a8a, #38bdf8); }
.theme-preview[data-theme="corporate"] { color: #2563eb; background: linear-gradient(180deg, #e0f2fe, #fff); }
.theme-preview[data-theme="nature"] .theme-preview-hero { background: linear-gradient(120deg, #065f46, #34d399); }
.theme-preview[data-theme="nature"] { color: #059669; background: #faf7f0; }
.theme-preview[data-theme="luxury"] .theme-preview-hero { background: linear-gradient(120deg, #1a1610, #d4af37); }
.theme-preview[data-theme="luxury"] { color: #d4af37; background: #0a0a0a; }
.theme-preview[data-theme="artistic"] .theme-preview-hero { background: linear-gradient(120deg, #f97316, #14b8a6); }
.theme-preview[data-theme="artistic"] {
    color: #f97316;
    background: radial-gradient(circle at 20% 20%, rgba(251,146,60,.35), transparent 50%), #fff;
}
.theme-preview[data-theme="neon"] .theme-preview-hero { background: linear-gradient(120deg, #22d3ee, #a855f7); }
.theme-preview[data-theme="neon"] {
    color: #22d3ee;
    background: #050508;
    box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.35);
}
.theme-copy { display: grid; gap: 4px; }
.theme-copy strong { display: inline-flex; align-items: center; gap: 8px; }
.theme-copy em {
    font-style: normal;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-soft);
    border-radius: var(--radius-pill);
    padding: 2px 8px;
}
.theme-copy small { color: var(--muted); }
.theme-swatches { display: flex; gap: 6px; margin-top: 6px; }
.theme-swatches span {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.08);
}
.theme-lock { font-size: 0.75rem; font-weight: 700; color: #8a5a12; }
.theme-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
@media (min-width: 720px) {
    .theme-grid { grid-template-columns: repeat(2, 1fr); }
    .theme-actions { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
    .theme-grid { grid-template-columns: repeat(3, 1fr); }
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (min-width: 768px) {
    body.app-console .col-md-2 { grid-column: span 2; }
    body.app-console .col-md-3 { grid-column: span 3; }
    body.app-console .col-md-4 { grid-column: span 4; }
    body.app-console .col-md-5 { grid-column: span 5; }
    body.app-console .col-md-6 { grid-column: span 6; }
    body.app-console .col-md-7 { grid-column: span 7; }
    body.app-console .col-md-8 { grid-column: span 8; }
    body.app-console .col-md-9 { grid-column: span 9; }
}

@media (min-width: 992px) {
    body.app-console .col-lg-2 { grid-column: span 2; }
    body.app-console .col-lg-3 { grid-column: span 3; }
    body.app-console .col-lg-4 { grid-column: span 4; }
    body.app-console .col-lg-5 { grid-column: span 5; }
    body.app-console .col-lg-6 { grid-column: span 6; }
    body.app-console .col-lg-7 { grid-column: span 7; }
    body.app-console .col-lg-8 { grid-column: span 8; }
    body.app-console .col-lg-9 { grid-column: span 9; }
    body.app-console .col-lg-10 { grid-column: span 10; }
    body.app-console .col-lg-12 { grid-column: span 12; }
}

@media (max-width: 980px) {
    body.app-console {
        height: 100dvh;
        max-height: 100dvh;
        overflow: hidden;
        background: #0b0b1a;
        background-image: none;
        --console-main-pad-top: 22px;
        --console-main-pad-x: 16px;
        --console-main-pad-bottom: 36px;
    }
    body.app-console:has(.zp-chat) {
        --console-chat-clearance: 96px;
    }
    .console-menu-btn.staff-chrome-menu {
        display: grid;
        padding: 0;
        border: 1px solid rgba(255, 255, 255, 0.22);
    }
    .console-brand,
    .console-chip-desktop,
    .console-top-preview-desktop {
        display: none !important;
    }
    button.console-share { padding: 0 4px; font-size: 0.82rem; }
    button.console-share img { width: 16px; height: 16px; }
    .staff-chrome-end { gap: 8px; }
    .console-avatar {
        width: 36px;
        height: 36px;
        background: transparent;
        color: #fff;
        border: 1.5px solid rgba(255, 255, 255, 0.55);
    }
    .console-avatar-initials { display: none; }
    .console-avatar-ico { display: grid; place-items: center; }
    .console-account-menu {
        background: #fff;
        color: var(--ink);
        width: min(260px, calc(100vw - 24px));
    }
    .console-account-menu a.console-account-view-mobile {
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 0 0 4px;
        padding: 10px 12px;
        border-radius: 12px;
        background: var(--accent-soft);
        color: var(--accent-deep);
        font-weight: 700;
        width: auto;
    }
    .console-account-menu a.console-account-view-mobile svg {
        width: 16px;
        height: 16px;
        margin-right: 0;
        vertical-align: 0;
    }
    body.is-sidebar-open { overflow: hidden; }
    /* The drawer covers the full height and dims everything, top bar included. */
    body.is-sidebar-open .console-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(11, 11, 26, 0.55);
        z-index: 50;
    }
    /* Off-canvas, so the drawer needs its own surface instead of the page paper. */
    .console-side {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        width: min(300px, 82vw);
        z-index: 60;
        padding: calc(14px + env(safe-area-inset-top)) 12px 0;
        background: var(--white);
        border-right: 0;
        transform: translateX(-105%);
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.22s ease, visibility 0.22s ease;
        box-shadow: 18px 0 40px rgba(11, 11, 26, 0.28);
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    body.is-sidebar-open .console-side {
        transform: none;
        visibility: visible;
        pointer-events: auto;
    }
    .console-side-head {
        display: flex;
        padding: 4px 10px 14px;
        margin-bottom: 0;
        border-bottom: 1px solid var(--line);
        flex: none;
        position: sticky;
        top: 0;
        z-index: 2;
        background: var(--white);
    }
    .console-side-nav {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        scrollbar-gutter: stable;
        padding: 8px 0 8px;
    }
    .console-side-foot {
        background: var(--white);
        padding: 10px 8px calc(12px + env(safe-area-inset-bottom));
    }
    body.app-console a.console-side-brand,
    body.app-console a.console-side-brand:hover {
        color: var(--ink);
    }
    /* Close stays in the drawer header next to the logo/name. */
    body.is-sidebar-open .console-side-head .console-icon-btn {
        position: static;
        top: auto;
        left: auto;
        z-index: auto;
        border-radius: 50%;
        background: var(--accent-soft);
        color: var(--accent-deep);
    }
    /* On the white drawer the active pill needs a tint, not a white card look. */
    .console-nav:hover { background: var(--paper); }
    .console-nav.is-active {
        background: var(--accent-soft);
        box-shadow: none;
    }
    body.app-console .console-main,
    body.app-console.staff-console .staff-main {
        --console-gutter-x: 16px;
        background: #f4f4f6;
        border-radius: 30px 30px 0 0;
        height: 100%;
        max-height: 100%;
        box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.18);
    }
    .dash-hero {
        overflow: visible;
        padding-inline: 2px;
    }
    .dash-search-beam::before,
    .dash-search-beam::after {
        display: none;
    }
    .dash-search-glow {
        animation: none;
        background-size: 100% 100%;
        padding: 1.5px;
    }
    body.app-console .card,
    body.app-console .card.profile-body,
    .todo-stack,
    .biz-row {
        background: #fff;
    }
    .todo-stack-pending .todo-row {
        grid-template-columns: 34px minmax(0, 1fr);
    }
    .todo-stack-pending .todo-cta {
        grid-column: 1 / -1;
        width: 100%;
    }
    .dash-chips {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
        margin-inline: -2px;
        scrollbar-width: none;
    }
    .dash-chips::-webkit-scrollbar { display: none; }
    .biz-actions { margin-left: 0; width: 100%; }
    .biz-actions .btn, .biz-actions form, .biz-actions button { flex: 1; }
}

@media (max-width: 640px) {
    body.app-console {
        --console-main-pad-top: 18px;
        --console-main-pad-x: 14px;
        --console-main-pad-bottom: 32px;
    }
    body.app-console .console-main,
    body.app-console.staff-console .staff-main {
        --console-gutter-x: 14px;
        border-radius: 28px 28px 0 0;
    }
    /* Phone density: narrower gutters, taller fields, one column per row. */
    body.app-console .card,
    body.app-console .card.profile-body {
        padding: 18px 16px;
        border-radius: 22px;
        margin-bottom: 14px;
        background: #fff;
    }
    body.app-console .card > h1,
    body.app-console .console-main > h1,
    body.app-console .console-main .h4 { font-size: 1.4rem; }
    body.app-console .form-control,
    body.app-console .form-select,
    body.app-console .input-group,
    body.app-console .profile-url-row { min-height: 46px; }
    body.app-console .profile-url-row .btn { width: auto; }
    body.app-console .form-control-sm { min-height: 40px; }
    body.app-console .h6 { margin-top: 18px; }
    .console-notice { padding: 16px; border-radius: 22px; }
    .section-row {
        grid-template-columns: minmax(0, 1fr) auto;
        padding: 14px 0;
    }
    .section-row-name { grid-area: 1 / 1; }
    body.app-console .section-row-switch { grid-area: 1 / 2; }
    .section-row-edit { grid-area: 2 / 1; justify-self: start; }
    .section-row-order { grid-area: 2 / 2; justify-self: end; }
    .editor-pager { flex-direction: column; }
    body.app-console .editor-pager .btn { width: 100%; }
    .dash-banner,
    .dash-banner-copy,
    .dash-banner-art,
    .dash-banner-card {
        display: none !important;
    }
    .dash-hero { margin: 2px auto 16px; }
    .dash-hero h1 { font-size: 1.35rem; line-height: 1.2; }
    .dash-hello-sub { font-size: 0.88rem; margin-bottom: 10px; }
    body.app-console .btn, body.app-console .form .btn { width: auto; }
    .todo-stack-pending .todo-cta { width: 100%; }
    .biz-actions .btn, .biz-actions button { width: 100%; }
    .console-notice form, body.app-console .console-notice .btn { width: 100%; }
}

.url-check { font-size: 0.86rem; font-weight: 700; min-height: 1.2em; }
.url-check.is-ok { color: #0f7b4c; }
.url-check.is-bad { color: #b42318; }

.analytics-ranges { display: flex; flex-wrap: wrap; gap: 8px; }
.an-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px 24px;
    align-items: flex-end;
    margin-bottom: 18px;
}
.an-head .h4 { margin-bottom: 6px; }
.an-head .text-secondary { max-width: 46rem; }
.an-ranges { display: flex; flex-wrap: wrap; gap: 8px; }
.an-range {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}
.an-range.is-on {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.an-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px 16px;
}
.an-head .export-bar { margin: 0; }
.export-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
    margin: 12px 0 18px;
}
.export-bar label {
    display: grid;
    gap: 4px;
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--muted);
}
.export-bar select {
    min-height: 36px;
    min-width: 10rem;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
    color: var(--ink);
    font-size: 0.86rem;
    font-weight: 600;
}
.export-hint {
    margin: -10px 0 16px;
    font-size: 0.8rem;
    color: var(--muted);
}
.an-sec { margin: 0 0 22px; }
.an-life {
    position: relative;
    padding: 22px 20px 18px;
    border: 1px solid #4a3d8a;
    border-radius: 24px;
    background: linear-gradient(165deg, #3a2d78 0%, #1c163c 62%, #12101f 100%);
    box-shadow: 0 28px 56px rgba(28, 18, 70, 0.32);
    color: #fff;
}
.an-life-badge {
    display: inline-flex;
    margin: 0 0 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fff;
    color: #1c163c;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.an-life > h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 1.45rem;
    letter-spacing: -0.04em;
    text-transform: none;
}
.an-life .an-note {
    color: rgba(255, 255, 255, 0.72);
}
.an-life .an-kpi,
.an-life .an-rates article {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
    color: #fff;
}
.an-life .an-kpi span,
.an-life .an-rates span {
    color: rgba(255, 255, 255, 0.68);
}
.an-life .an-kpi strong,
.an-life .an-rates strong {
    color: #fff;
}
.an-sec > h2 {
    margin: 0 0 10px;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}
.an-sub {
    margin: 0 0 10px;
    font-size: 0.88rem;
    letter-spacing: -0.02em;
}
.an-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 0 0 12px;
}
.an-spots {
    display: grid;
    gap: 12px;
}
.an-spot {
    display: grid;
    gap: 4px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
}
.an-spot span,
.an-kpi em {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 600;
    font-style: normal;
}
.an-spot strong {
    font-size: 1.05rem;
    letter-spacing: -0.03em;
}
.an-spot em {
    color: var(--muted);
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 600;
}
.an-src th:nth-child(2),
.an-src td:nth-child(2),
.an-src th:nth-child(3),
.an-src td:nth-child(3) { text-align: right; }
.an-loc th:nth-child(2),
.an-loc td:nth-child(2) { text-align: left; }
.an-loc th:nth-child(3),
.an-loc td:nth-child(3),
.an-loc th:nth-child(4),
.an-loc td:nth-child(4),
.an-loc th:nth-child(5),
.an-loc td:nth-child(5) { text-align: right; }
.an-list-gap { margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--line); }
.an-kpi,
.an-rates article,
.an-card {
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
}
.an-kpi {
    display: grid;
    gap: 4px;
}
.an-kpi span,
.an-rates span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
}
.an-kpi strong {
    font-size: 1.7rem;
    line-height: 1.1;
    letter-spacing: -0.04em;
}
.an-spark { color: var(--accent); margin-top: 6px; }
.an-rates {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 0 0 16px;
}
.an-kpis > *,
.an-rates > * { min-width: 0; }
/* Every tile row carries its own count class, and the count is pinned per
   breakpoint so a row always fills its lines: a lone tile beside empty columns
   is impossible. These must stay below the .an-kpis/.an-rates bases above —
   equal specificity means source order decides. */
.an-kpis-5,
.an-rates-5,
.an-spots { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.an-rates-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1320px) {
    .an-kpis-5,
    .an-rates-5,
    .an-spots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
    .an-rates-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.an-rates strong {
    display: block;
    font-size: 1.25rem;
    letter-spacing: -0.03em;
}
.an-main {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}
.an-card h2 {
    margin: 0 0 10px;
    font-size: 0.95rem;
    letter-spacing: -0.02em;
}
.an-card-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 16px;
    align-items: center;
    margin-bottom: 8px;
}
.an-card-head h2 { margin: 0; }
.an-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
}
.an-legend li { display: inline-flex; align-items: center; gap: 6px; }
.an-legend li::before {
    content: "";
    width: 10px;
    height: 3px;
    border-radius: 99px;
    background: var(--accent);
}
.an-legend .is-visitors::before { background: #7c9cff; }
.an-legend .is-leads::before { background: #1b7a4a; }
.an-trend-svg { width: 100%; height: auto; display: block; }
.an-chart-grid { stroke: #ececf3; }
.an-axis { fill: #8d8d9a; font-size: 10px; font-family: inherit; }
.an-line { stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.an-line-views { stroke: var(--accent); }
.an-line-visitors { stroke: #7c9cff; }
.an-line-leads { stroke: #1b7a4a; }
.an-note {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.4;
}
.an-funnel-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.an-funnel-list li { display: grid; gap: 4px; }
.an-funnel-bar {
    display: block;
    height: 10px;
    border-radius: 99px;
    background: var(--accent);
    min-width: 12px;
}
.an-funnel-list li:nth-child(2) .an-funnel-bar { background: #7c9cff; }
.an-funnel-list li:nth-child(3) .an-funnel-bar { background: #1b7a4a; }
.an-funnel-list strong { font-size: 1.05rem; letter-spacing: -0.03em; }
.an-funnel-list span { color: var(--muted); font-size: 0.78rem; font-weight: 600; }
.an-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.an-bars,
.an-list { list-style: none; margin: 0; padding: 0; }
.an-bars li,
.an-list li {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.84rem;
}
.an-list li { grid-template-columns: minmax(0, 1fr) auto; }
.an-bars li:last-child,
.an-list li:last-child { border-bottom: 0; }
.an-bars span { color: var(--ink); font-weight: 600; }
.an-bars b {
    display: block;
    height: 8px;
    border-radius: 99px;
    background: #f0edf8;
    overflow: hidden;
}
.an-bars i {
    display: block;
    height: 100%;
    border-radius: 99px;
    background: var(--accent);
}
.an-bars em,
.an-list span { color: var(--muted); font-style: normal; font-weight: 700; }
.an-daily {
    margin-top: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
    padding: 12px 16px;
}
.an-daily summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
}
.an-daily .table-wrap { margin-top: 12px; }
.pro-an-trend { margin-top: 8px; }
.pro-an-svg { width: 100%; height: auto; display: block; }
.pro-an-bar { fill: var(--accent); }
.pro-an-table { overflow-x: auto; }
.pro-an-table table { min-width: 1180px; }
.an-sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    white-space: nowrap;
    cursor: pointer;
}
.an-sort-btn:hover,
.an-sort-btn.is-active { color: var(--ink); }
.an-sort-ico {
    width: 10px;
    height: 12px;
    flex: none;
}
.an-sort-up,
.an-sort-down {
    fill: currentColor;
    opacity: 0.28;
}
.an-sort-btn.is-asc .an-sort-up,
.an-sort-btn.is-desc .an-sort-down {
    fill: var(--accent);
    opacity: 1;
}
.an-sort td.is-sorted {
    background: rgba(124, 108, 255, 0.07);
    font-weight: 700;
}
.an-sort tr.is-lead td { background: rgba(124, 108, 255, 0.08); }
.an-sort tr.is-lead td.is-sorted {
    background: rgba(124, 108, 255, 0.16);
    box-shadow: inset 3px 0 0 var(--accent);
}
@media (max-width: 980px) {
    .an-main,
    .an-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .an-kpis-5,
    .an-rates-5,
    .an-rates-4,
    .an-spots,
    .an-main,
    .an-grid { grid-template-columns: 1fr; }
}
.crm-shell {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 920px;
}
.crm-page-head .h4 { margin-bottom: 0.35rem; }
.crm-intro {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
}
.crm-glass {
    border: 1px solid rgba(124, 108, 255, 0.14);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(248, 246, 255, 0.88));
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 12px 32px rgba(36, 28, 74, 0.06);
    backdrop-filter: blur(12px);
}
.crm-upgrade {
    padding: 1.25rem 1.35rem;
}
.crm-upgrade-kicker {
    margin: 0 0 0.5rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-deep);
}
.crm-upgrade-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.crm-pipeline-wrap {
    margin: 0 -4px;
    padding: 2px 4px 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.crm-pipeline {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    min-width: min-content;
    padding-bottom: 2px;
}
.crm-chip {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 84px;
    padding: 12px 14px;
    border: 1px solid rgba(124, 108, 255, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    flex-shrink: 0;
}
.crm-chip:hover {
    transform: translateY(-1px);
    border-color: rgba(124, 108, 255, 0.35);
    box-shadow: 0 8px 20px rgba(36, 28, 74, 0.08);
}
.crm-chip strong {
    font-size: 1.2rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}
.crm-chip span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.crm-chip.is-on {
    border-color: var(--accent);
    background: linear-gradient(160deg, var(--accent-soft), rgba(255, 255, 255, 0.95));
    box-shadow: 0 6px 18px rgba(124, 108, 255, 0.18);
}
.crm-toolbar {
    padding: 12px 14px;
}
.crm-toolbar .crm-search {
    margin: 0;
}
.crm-search {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 10px;
    margin: 0 0 16px;
}
.crm-search .form-control {
    flex: 1;
    min-width: 12rem;
    border-radius: 12px;
}
.crm-search .btn-ghost {
    border-radius: 12px;
    font-weight: 700;
}
.crm-search-in {
    width: auto;
    min-width: 8.75rem;
    max-width: 12rem;
    border-radius: 12px;
}
.crm-empty {
    padding: 1.25rem 1.35rem;
    text-align: center;
}
.crm-inbox {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.crm-lead {
    padding: 1.1rem 1.25rem 1.15rem;
    scroll-margin-top: 5rem;
}
.crm-lead-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}
.crm-lead-name {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
}
.crm-lead-contact {
    margin: 4px 0 0;
    font-size: 0.82rem;
    line-height: 1.45;
}
.crm-lead-contact a {
    color: var(--accent-deep);
    text-decoration: none;
    font-weight: 600;
}
.crm-lead-contact a:hover { text-decoration: underline; }
.crm-muted { color: var(--muted); }
.crm-dot {
    margin: 0 0.35rem;
    color: var(--muted);
    opacity: 0.65;
}
.crm-lead-body {
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(124, 108, 255, 0.05);
    border: 1px solid rgba(124, 108, 255, 0.08);
}
.crm-lead-requirement {
    margin: 0 0 6px;
    font-weight: 700;
    font-size: 0.88rem;
}
.crm-lead-message {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--ink);
}
.crm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 10px;
}
.crm-action {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid rgba(124, 108, 255, 0.18);
    background: rgba(255, 255, 255, 0.85);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--ink);
    transition: background 0.15s ease, border-color 0.15s ease;
}
.crm-action:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent-deep);
}
.crm-action-wa {
    border-color: rgba(37, 211, 102, 0.35);
    color: #0d7a3d;
}
.crm-action-wa:hover {
    background: rgba(37, 211, 102, 0.12);
    border-color: rgba(37, 211, 102, 0.55);
    color: #0d7a3d;
}
.crm-lead-meta {
    margin: 0 0 12px;
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 600;
}
.crm-panel {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(124, 108, 255, 0.1);
}
.crm-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}
.crm-panel-title {
    margin: 0 0 8px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--muted);
}
.crm-panel-head .crm-panel-title { margin-bottom: 0; }
.crm-update-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.crm-update-form .form-select {
    flex: 1;
    min-width: 10rem;
    border-radius: 12px;
}
.crm-panel-remarks .leads-remark-count {
    margin: 0;
    font-size: 0.72rem;
}
.crm-remarks { margin-top: 0; }
.crm-remark-remove {
    min-width: 2rem;
    padding-inline: 0.35rem;
    font-size: 1.1rem;
    line-height: 1;
}
.crm-note {
    display: grid;
    gap: 10px;
    margin-top: 0;
}
.crm-note-field {
    border-radius: 14px;
    border: 1px solid rgba(124, 108, 255, 0.16);
    background: rgba(255, 255, 255, 0.9);
    padding: 2px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.crm-note-field:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(124, 108, 255, 0.12);
}
.crm-note-field textarea {
    border: 0;
    border-radius: 12px;
    background: transparent;
    resize: vertical;
    min-height: 4.5rem;
    box-shadow: none;
}
.crm-note-field textarea:focus {
    outline: none;
    box-shadow: none;
}
.crm-status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: var(--accent-soft);
    color: var(--accent-deep);
    flex-shrink: 0;
}
.crm-status-new { background: #eef2ff; color: #3730a3; }
.crm-status-contacted { background: #e8f1ff; color: #1d4ed8; }
.crm-status-interested { background: #fff4e5; color: #9a5b00; }
.crm-status-proposal { background: #f3e8ff; color: #6b21a8; }
.crm-status-won { background: #e8f7ee; color: #146c43; }
.crm-status-lost { background: #fdecec; color: #b42318; }
.crm-status-not_interested { background: #f3f4f6; color: #4b5563; }
.crm-status-scheduled { background: #e0f2fe; color: #075985; }
.crm-status-archived { background: #eceaf3; color: #4b4458; }
.crm-chip-archived { border-style: dashed; opacity: 0.92; }
.crm-lead:target {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(124, 108, 255, 0.12);
}
@media (max-width: 640px) {
    .crm-search { flex-direction: column; }
    .crm-search-in { max-width: none; width: 100%; }
    .crm-lead-head { flex-direction: column; align-items: stretch; }
    .crm-lead-head .crm-status { align-self: flex-start; }
    .crm-update-form .form-select,
    .crm-update-form .btn { width: 100%; }
}
.analytics-split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.analytics-split .account-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.analytics-split .account-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid var(--line);
}
.table-wrap { overflow-x: auto; }
.staff-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
}
.staff-table th,
.staff-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}
.staff-table th {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--paper);
}
.staff-table tr:last-child td { border-bottom: 0; }
.leads-table-wrap { margin-top: 4px; }
.leads-table .leads-time {
    white-space: nowrap;
    color: var(--muted);
    font-size: 0.86rem;
}
.leads-table .leads-name { font-weight: 700; }
.leads-table .leads-mobile { white-space: nowrap; }
.leads-table td { vertical-align: middle; }
.leads-table .leads-msg {
    max-width: 22rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.leads-table .leads-status {
    white-space: nowrap;
}
.leads-crm { white-space: nowrap; }
.leads-crm-link {
    display: inline;
    margin-top: 0;
    font-size: 0.82rem;
    font-weight: 700;
}
.leads-remarks {
    min-width: 16rem;
}
.leads-remark-item,
.leads-remark-add,
.leads-remark-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.leads-remark-item { margin-bottom: 6px; }
.leads-remark-row { flex: 1; min-width: 0; }
.leads-remark-row input,
.leads-remark-add input { flex: 1; min-width: 0; }
.crm-field-label {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--ink);
    white-space: nowrap;
}
.crm-remarks { margin-top: 12px; }
.leads-remark-count {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
}
.leads-table .leads-empty {
    color: var(--muted);
    text-align: center;
}

/* Account settings hub */
.account-hub {
    max-width: 520px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 28px 22px 18px;
    box-shadow: var(--shadow);
}
.account-hub-head {
    padding: 4px 8px 18px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 6px;
}
.account-hub-head h1 {
    margin: 0;
    font-size: 1.35rem;
    letter-spacing: -0.03em;
    font-weight: 800;
}
.account-hub-head p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.95rem;
}
.account-hub-nav { display: grid; gap: 2px; }
.account-hub-link {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 16px 8px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    border-radius: 14px;
}
.account-hub-link:hover { background: rgba(17, 17, 24, 0.04); }
.account-hub-ico {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    color: #4b5563;
}
.account-hub-ico svg { width: 22px; height: 22px; }
.account-hub-chev {
    color: #9ca3af;
    font-size: 1.2rem;
    line-height: 1;
}
.account-hub-rule {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 8px 0;
}
.account-back {
    margin: 0 0 14px;
    font-weight: 600;
}
.account-back a { color: var(--muted); text-decoration: none; }
.account-back a:hover { color: var(--ink); }
.account-panel { max-width: 640px; }
.account-settings-card {
    max-width: 720px;
    margin: 0 auto 16px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 22px 22px 8px;
    box-shadow: var(--shadow);
}
.account-settings-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}
.account-settings-head h1 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.account-settings-mark {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    color: #6b7280;
}
.account-settings-mark svg { width: 18px; height: 18px; }
.account-settings-lede {
    margin: 0 0 8px;
    padding-bottom: 8px;
    color: var(--muted);
    font-size: 0.92rem;
}
.account-settings-row {
    display: grid;
    grid-template-columns: minmax(140px, 220px) minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px 16px;
    padding: 16px 2px;
    border-top: 1px solid var(--line);
}
.account-settings-row.is-open {
    align-items: start;
}
.account-settings-row.account-settings-link {
    text-decoration: none;
    color: inherit;
}
.account-settings-row.account-settings-link:hover {
    background: rgba(17, 17, 24, 0.03);
    margin: 0 -10px;
    padding-left: 12px;
    padding-right: 12px;
    border-radius: 12px;
}
.account-settings-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.92rem;
    color: var(--muted);
    font-weight: 600;
}
.account-settings-value {
    min-width: 0;
    font-weight: 650;
    color: var(--ink);
    word-break: break-word;
}
.account-settings-dots { letter-spacing: 0.12em; }
.account-settings-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}
.account-settings-form { grid-column: 2 / -1; }
.account-company-form .form-label { margin-top: 8px; }
.account-company-form .form-label:first-of-type { margin-top: 0; }
.account-settings-subhead {
    margin: 16px 0 0;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}
.account-settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.account-settings-note {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.45;
}
.account-settings-scheme {
    display: inline-block;
    margin-left: 8px;
    color: var(--muted);
    font-weight: 600;
    font-size: 0.82rem;
}
.account-settings-form-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}
.account-ico-btn {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: #9ca3af;
    border-radius: 999px;
    text-decoration: none;
    padding: 0;
    cursor: pointer;
}
.account-ico-btn:hover { background: rgba(17, 17, 24, 0.06); color: var(--ink); }
.account-ico-btn.is-static { cursor: default; }
.account-ico-btn.is-static:hover { background: transparent; color: #9ca3af; }
.account-settings-tip {
    display: inline-grid;
    place-items: center;
    color: #9ca3af;
    cursor: help;
}
.account-mfa-flag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 0.92rem;
}
.account-mfa-flag.is-on { color: #027a48; }
.account-mfa-flag.is-on::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #12b76a;
}
.account-mfa-flag.is-off { color: #b42318; }
.account-mfa-flag.is-off::before {
    content: "✕";
    font-size: 0.78rem;
    line-height: 1;
}
.account-mfa-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0 16px;
    border-top: 1px solid var(--line);
}
.account-mfa-panel { padding-bottom: 22px; }
.account-mfa-option {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 12px;
    align-items: start;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #faf9ff;
}
.account-mfa-option.is-selected { border-color: #c9bdf7; }
.account-mfa-option.is-on { background: #f4fbf6; border-color: #bbf7d0; }
.account-mfa-option h2 {
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 800;
}
.account-mfa-option p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.45; }
.account-mfa-option-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #ece8ff;
    color: #6d5efc;
}
.account-mfa-option-mark svg { width: 20px; height: 20px; }
.account-mfa-steps {
    margin: 8px 0 16px;
    padding-left: 18px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.55;
}
.account-mfa-qr-wrap {
    display: grid;
    place-items: center;
    padding: 16px;
    margin: 0 0 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}
.account-mfa-qr-wrap svg { width: 196px; height: 196px; }
.account-mfa-manual { margin: 0 0 8px; }
.account-mfa-manual summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--ink);
}
.account-mfa-secret-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
}
.account-mfa-secret-row .form-control { font-family: ui-monospace, Consolas, monospace; letter-spacing: 0.04em; }
.account-bill-card {
    max-width: 960px;
    padding-bottom: 18px;
}
.account-bill-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    margin: 4px 0 16px;
    border: 1px solid #fecaca;
    background: #fff7f7;
    border-radius: 16px;
}
.account-bill-banner p { margin: 4px 0 0; color: var(--muted); font-size: 0.9rem; }
.account-bill-search { display: block; margin: 0 0 12px; }
.account-bill-search input {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 8px 14px;
    background: var(--paper);
}
.account-bill-tabs {
    display: flex;
    gap: 22px;
    margin: 4px 0 12px;
    border-bottom: 1px solid var(--line);
}
.account-bill-tabs a {
    padding: 10px 0;
    color: var(--muted);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.account-bill-tabs a.is-on {
    color: var(--accent);
    border-bottom-color: var(--accent);
}
.account-bill-table-wrap { overflow-x: auto; }
.account-bill-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}
.account-bill-table th {
    text-align: left;
    font-weight: 700;
    color: var(--muted);
    padding: 10px 8px;
    border-bottom: 1px solid var(--line);
}
.account-bill-table td {
    padding: 14px 8px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}
.account-bill-table tr:last-child td { border-bottom: 0; }
.account-bill-table strong { display: inline; margin-right: 8px; }
.account-bill-empty { color: var(--muted); font-weight: 600; }
.account-bill-actions { text-align: right; white-space: nowrap; }
.account-bill-switch {
    display: inline-block;
    width: 36px;
    height: 20px;
    border-radius: 999px;
    background: #d1d5db;
    position: relative;
    vertical-align: middle;
}
.account-bill-switch::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
}
@media (max-width: 720px) {
    .account-bill-banner { flex-direction: column; align-items: stretch; }
}
@media (max-width: 720px) {
    .account-settings-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }
    .account-settings-label { grid-column: 1; }
    .account-settings-value,
    .account-settings-form { grid-column: 1 / -1; }
    .account-settings-grid { grid-template-columns: 1fr; }
    .account-settings-actions { grid-column: 2; grid-row: 1; }
}
.account-meta {
    display: grid;
    gap: 14px;
    margin: 0;
}
.account-meta dt {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    margin-bottom: 2px;
}
.account-meta dd { margin: 0; font-weight: 600; }
.account-pill {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
}
.account-pill.is-ok { background: #ecfdf3; color: #027a48; }
.account-pill.is-warn { background: #fffaeb; color: #b54708; }
.account-share-box {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--paper);
}
.account-share-url {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.86rem;
    word-break: break-all;
    margin: 0 0 12px;
}
.account-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}
.account-list li {
    display: grid;
    gap: 2px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}
.account-list li:last-child { border-bottom: 0; }
.account-list span { color: var(--muted); font-size: 0.9rem; }
.account-activity {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
}
.account-activity li {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}
.account-activity li:last-child { border-bottom: 0; }
.account-activity-ico {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    color: #4b5563;
}
.account-activity-ico svg { width: 20px; height: 20px; }
.account-activity strong { display: block; }
.account-activity time {
    color: var(--muted);
    font-size: 0.86rem;
}
.activity-log-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
}
.activity-log-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}
.activity-log-table th,
.activity-log-table td {
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
}
.activity-log-table th {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    background: color-mix(in srgb, var(--paper) 88%, var(--ink));
}
.activity-log-table tbody tr:last-child td { border-bottom: 0; }
.activity-log-table time {
    white-space: nowrap;
    color: var(--muted);
    font-size: 0.86rem;
}
.activity-log-type {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    background: var(--accent-soft);
    color: var(--accent-deep);
}
.activity-log-type-zyncky {
    background: color-mix(in srgb, #6366f1 14%, #fff);
    color: #4338ca;
}
.account-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}
.account-toggle.is-locked { opacity: 0.92; }
.account-bill-hero {
    padding: 16px;
    border-radius: 18px;
    background: var(--paper);
    border: 1px solid var(--line);
}
#checkout-root .account-list .btn { margin-left: 8px; }
.checkout-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}
.checkout-steps li {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--muted);
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--paper);
}
.checkout-steps li.is-on { color: var(--ink); background: #efe8ff; }
.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: 28px;
    align-items: start;
}
.checkout-cart-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
}
.checkout-cart-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    padding: 14px 16px;
    margin: 0 0 16px;
    border-radius: 14px;
    border: 1px solid #e2ddff;
    background: #f7f5ff;
}
.checkout-cart-copy {
    min-width: 0;
    flex: 1;
}
.checkout-cart-copy > strong {
    display: block;
    font-size: 1.05rem;
}
.checkout-cart-highlight {
    margin: 8px 0 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--accent-deep, #6a5af8);
    line-height: 1.4;
}
.checkout-cart-features {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    display: grid;
    gap: 6px;
}
.checkout-cart-features li {
    position: relative;
    padding-left: 1.15em;
    font-size: 0.86rem;
    line-height: 1.4;
    color: var(--ink, #111118);
    font-weight: 500;
}
.checkout-cart-features li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--accent, #7c6cff);
    font-weight: 700;
}
.checkout-cart-period {
    margin: 10px 0 0;
    font-size: 0.86rem;
    color: var(--muted);
    font-weight: 500;
}
.checkout-plan-dates {
    margin: 6px 0 0;
    font-size: 0.8rem;
    color: var(--muted);
}
.checkout-summary {
    position: sticky;
    top: 16px;
}
.checkout-summary-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}
.checkout-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
}
.checkout-summary-addons {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
}
.checkout-summary-addons li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.86rem;
    padding: 6px 0;
    border-top: 1px solid var(--line);
}
.checkout-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    margin: 0 0 14px;
    border-top: 1px solid var(--line);
    font-weight: 800;
}
.checkout-trust {
    margin-top: 12px;
    font-size: 0.78rem;
    line-height: 1.4;
    color: var(--muted);
}
.checkout-secure {
    font-size: 0.82rem;
    color: var(--muted);
}
.checkout-plan-grid, .checkout-addon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 0 0 18px;
}
.checkout-plan, .checkout-addon {
    display: block;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
}
.checkout-plan.is-on, .checkout-plan.is-featured.is-on, .checkout-addon.is-suggested {
    border-color: #7b5cff;
    box-shadow: 0 0 0 2px rgba(123, 92, 255, 0.12);
}
.checkout-plan em, .checkout-addon .checkout-note {
    display: block;
    font-size: 0.75rem;
    color: var(--muted);
    font-style: normal;
    margin-bottom: 4px;
}
.checkout-plan strong, .checkout-addon strong { display: block; }
.checkout-price { display: block; font-weight: 800; margin: 4px 0; }
.checkout-plan small, .checkout-addon small { color: var(--muted); }
.checkout-plan p, .checkout-addon p { margin: 8px 0 0; font-size: 0.86rem; }
.checkout-addon.is-owned { opacity: 0.72; }
.checkout-addon input, .checkout-plan input { margin-right: 6px; }
.checkout-bill-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 0 0 18px;
}
.checkout-bill-grid label { display: block; font-weight: 700; font-size: 0.86rem; }
.checkout-bill-grid .checkout-span { grid-column: 1 / -1; }
.checkout-phone-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
    margin-top: 4px;
}
.checkout-phone-dial {
    flex: 0 0 5.5rem;
    max-width: 5.5rem;
    text-align: center;
    font-weight: 600;
}
.checkout-phone-national { flex: 1 1 auto; min-width: 0; }

.checkout-gate-off {
    opacity: 0.72;
}
.checkout-req { color: #111; font-weight: 800; }
.checkout-flow { display: grid; gap: 16px; }
.checkout-flow-block {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
}
.checkout-step-billpay.is-billing-phase .checkout-flow-block--payment .checkout-flow-body { display: none; }
.checkout-step-billpay.is-billing-phase .checkout-flow-block--payment { opacity: 0.55; pointer-events: none; }
.checkout-step-billpay.is-payment-phase .checkout-flow-block--billing .checkout-flow-body { display: none; }
.checkout-step-billpay.is-payment-phase .checkout-flow-block--billing { opacity: 0.85; }
.checkout-flow-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
}
.checkout-flow-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #efe8ff;
    color: #5b3fd4;
    font-size: 0.82rem;
    font-weight: 800;
}
.checkout-flow-title { margin: 0; font-size: 1.05rem; font-weight: 800; }
.checkout-flow-body { padding: 18px; }
.checkout-flow-lede { margin: 0 0 14px; font-size: 0.88rem; line-height: 1.5; color: var(--muted); }
.checkout-flow-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.checkout-flow-continue { min-width: min(100%, 220px); flex: 1 1 auto; min-height: 46px; font-weight: 700; }
.checkout-company-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    margin: 0;
}
.checkout-phone-dial {
    flex: 0 0 min(42%, 11rem);
    max-width: 11rem;
    font-size: 0.82rem;
    font-weight: 600;
}
.checkout-summary-heading { margin: 0 0 16px; font-size: 1.05rem; font-weight: 800; }
.checkout-summary-plan {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 8px;
}
.checkout-summary-plan-meta { margin: 4px 0 0; font-size: 0.82rem; color: var(--muted); }
.checkout-summary-price { font-weight: 800; white-space: nowrap; }
.checkout-summary-divider { height: 1px; background: var(--line); margin: 12px 0; }
.checkout-summary-tax-label { display: inline-flex; align-items: center; gap: 6px; }
.checkout-tax-info {
    display: inline-flex;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: #eef2f7;
    color: var(--muted);
    font-size: 0.65rem;
    font-weight: 800;
    cursor: help;
    align-items: center;
    justify-content: center;
}
.checkout-coupon-toggle {
    display: block;
    width: 100%;
    margin: 4px 0 12px;
    padding: 0;
    border: 0;
    background: none;
    color: #6a5af8;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}
.checkout-coupon-row { display: flex; gap: 8px; }
.checkout-coupon-row .form-control { flex: 1; min-width: 0; }
.checkout-summary-continue { min-height: 46px; font-weight: 700; }
.checkout-tax-alert {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #fde68a;
    background: #fffbeb;
    color: #92400e;
    font-size: 0.86rem;
}
.checkout-tax-block { display: block; }
.checkout-tax-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #b45309;
}
.checkout-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.checkout-renew { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 14px; }
.checkout-paid-addons { margin: 8px 0 0; padding-left: 18px; }
.checkout-pay-box .js-summary-period { font-size: 0.86rem; }
@media (max-width: 900px) {
    .checkout-layout { grid-template-columns: 1fr; }
    .checkout-summary { position: static; }
}
@media (max-width: 720px) {
    .checkout-bill-grid { grid-template-columns: 1fr; }
}

.upload-webp-note {
    margin: 8px 0 0;
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--muted);
}
.upload-size-callout {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(107, 70, 245, 0.22);
    background: rgba(107, 70, 245, 0.08);
    color: var(--ink);
    font-size: 0.88rem;
    line-height: 1.45;
}
.upload-size-callout strong {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.upload-size-callout p {
    margin: 0;
    color: var(--muted);
}
.banner-size-note strong {
    color: var(--ink);
    font-weight: 600;
}
.promo-admin-section .h6 { margin-bottom: 6px; }
.promo-admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.promo-admin-grid-column {
    grid-template-columns: 1fr;
    max-width: 420px;
}
.promo-admin-slot {
    border: 1px solid var(--line, #ececf3);
    border-radius: 14px;
    padding: 12px;
    background: #fff;
}
.promo-admin-slot.is-full {
    grid-column: auto;
}
.promo-admin-slot-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}
.promo-admin-slot-head strong { font-size: 0.92rem; }
.promo-admin-slot-head span {
    color: var(--muted);
    font-size: 0.78rem;
    text-align: right;
}
.promo-admin-preview,
.promo-admin-empty {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
    background: #f3f1fb;
}
.promo-admin-preview {
    display: block;
    object-fit: cover;
}
.promo-admin-slot.is-half .promo-admin-preview,
.promo-admin-slot.is-half .promo-admin-empty {
    aspect-ratio: 1 / 1;
    max-width: 140px;
    max-height: 140px;
}
.promo-admin-slot.is-full .promo-admin-preview,
.promo-admin-slot.is-full .promo-admin-empty {
    aspect-ratio: 16 / 5;
    max-height: 88px;
}
.promo-admin-empty {
    min-height: 0;
}
.promo-admin-slot .form-label { font-size: 0.82rem; margin-bottom: 4px; }
.promo-admin-slot .form-control { font-size: 0.88rem; padding: 7px 10px; }
.promo-admin-slot .upload-webp-note { font-size: 0.75rem; line-height: 1.4; }
@media (max-width: 720px) {
    .promo-admin-grid {
        grid-template-columns: 1fr;
    }
    .promo-admin-grid-column { max-width: none; }
    .promo-admin-slot.is-half .promo-admin-preview,
    .promo-admin-slot.is-half .promo-admin-empty {
        max-width: 160px;
        max-height: 160px;
    }
}
.cover-upload-preview {
    overflow: hidden;
    width: min(100%, 420px);
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    background: #111118;
}
.cover-upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.catalog-mode-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    min-width: 0;
}
@media (min-width: 960px) {
    .catalog-mode-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
    .hours-mode-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.catalog-mode {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 4px;
    align-items: start;
    padding: 14px;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--paper);
    cursor: pointer;
}
.catalog-mode.is-on,
.catalog-mode:has(input:checked) {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
    background: #fff;
}
.catalog-mode input {
    grid-column: 1;
    grid-row: 1 / -1;
    align-self: start;
    margin: 2px 0 0;
    accent-color: var(--accent);
    flex: none;
}
.catalog-mode strong {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    font-size: 0.95rem;
}
.catalog-mode span {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.4;
}
body.app-console [data-catalog-form] [data-mode-field][hidden] { display: none !important; }
.catalog-item-preview {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}
.catalog-item-preview img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 12px;
    flex: none;
    background: var(--paper);
}
.catalog-item-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.home-featured-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 0;
    font-weight: 700;
    cursor: pointer;
}
.home-featured-check input { width: 16px; height: 16px; accent-color: var(--accent); }
.field-help {
    margin: 6px 0 0;
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--muted);
}
.field-count-wrap {
    position: relative;
}
.field-count-wrap textarea.form-control,
.field-count-wrap input.form-control {
    padding-bottom: 30px;
}
.field-counter {
    position: absolute;
    right: 12px;
    bottom: 8px;
    z-index: 1;
    padding: 2px 8px;
    border-radius: 999px;
    background: #fcfbff;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1.5;
    font-variant-numeric: tabular-nums;
    pointer-events: none;
}
.field-counter.is-close { color: #b45309; }
.field-counter.is-limit { color: #b42318; }
body.app-console textarea.form-control.is-at-limit,
body.app-console input.form-control.is-at-limit {
    border-color: #f0b4ae;
}
.field-applied {
    display: block;
    margin: 14px 0 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f4f1ff;
    color: #3d3470;
    border: 1px solid #e2ddff;
}
body.app-console .card .field-applied {
    margin-top: 14px;
}
.field-applied strong { font-weight: 800; }
.phone-split {
    display: flex;
    gap: 8px;
    align-items: stretch;
    min-width: 0;
}
.phone-split-code {
    flex: 0 0 7.6rem;
    max-width: 42%;
    padding-right: 8px;
}
.phone-split .form-control:last-child {
    flex: 1 1 auto;
    min-width: 0;
}
.cta-choice {
    display: grid;
    gap: 8px;
}
.cta-choice-option {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper);
    cursor: pointer;
}
.cta-choice-option.is-on,
.cta-choice-option:has(input:checked) {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
    background: #fff;
}
.cta-choice-option input { margin-top: 3px; accent-color: var(--accent); }
.cta-choice-option span { display: grid; gap: 2px; min-width: 0; }
.cta-choice-option strong { font-size: 0.95rem; }
.cta-choice-option small { color: var(--muted); font-size: 0.82rem; line-height: 1.4; }
.wa-url-preview {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--paper);
    border: 1px dashed var(--line);
    font-size: 0.8rem;
    line-height: 1.45;
    word-break: break-all;
    color: var(--ink);
}

.hours-editor {
    display: grid;
    gap: 12px;
    min-width: 0;
    max-width: 100%;
}
.hours-mode-grid { margin-top: 4px; }
.hours-meta-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    align-items: end;
}
.hours-meta-row .form-label { margin: 0 0 6px; }
.hours-meta-row .form-control,
.hours-meta-row .form-select { min-height: 48px; }
@media (max-width: 720px) {
    .hours-meta-row { grid-template-columns: 1fr; }
}
.hours-closed-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    color: var(--ink);
    font-weight: 600;
    text-align: left;
}
.hours-closed-link:hover { border-color: var(--accent); color: var(--ink); }
.hours-days {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
}
/* Appointment editor: the hours actually used, then the next open days. */
.appt-hours {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
    display: grid;
    gap: 2px;
    font-size: 0.86rem;
}
.appt-hours li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0;
    border-bottom: 1px solid var(--line);
}
.appt-hours li:last-child { border-bottom: 0; }
.appt-hours li span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.hours-day {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: 10px 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
}
.hours-day > input[data-hours-open] { display: none; }
.hours-day:last-child { border-bottom: 0; }
.hours-pick { display: inline-flex; margin: 0; }
.hours-pick input { accent-color: var(--accent); }
.hours-day-name { font-weight: 600; }
.hours-closed-label {
    display: none;
    color: var(--muted);
    font-weight: 600;
    border: 0;
    background: transparent;
    padding: 0;
}
.hours-day.is-closed .hours-closed-label { display: inline; }
.hours-day.is-closed .hours-times,
.hours-day.is-closed .hours-toggle { display: none; }
.hours-toggle {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-weight: 600;
    padding: 0;
}
.hours-times {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
}
.hours-times .form-control-sm,
.hours-apply-row .form-control-sm {
    width: auto;
    min-width: 7.6rem;
}
.hours-pencil {
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: var(--muted);
    border-radius: 10px;
    display: grid;
    place-items: center;
}
.hours-pencil:hover { background: var(--paper); color: var(--ink); }
.hours-bulk {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.hours-apply {
    margin-top: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper);
}
.hours-apply-copy { margin: 0 0 10px; font-size: 0.88rem; color: var(--muted); }
.hours-apply-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

@media (max-width: 720px) {
    .hours-day {
        grid-template-columns: auto minmax(0, 1fr) auto auto;
    }
    .hours-day-name {
        min-width: 0;
    }
    .hours-times {
        grid-column: 1 / -1;
        width: 100%;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .hours-times .form-control-sm {
        flex: 1 1 0;
        min-width: 0;
        width: auto;
        max-width: none;
    }
    .hours-apply-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        width: 100%;
    }
    .hours-apply-row .form-control-sm {
        min-width: 0;
        width: 100%;
        max-width: none;
    }
    .hours-apply-row .btn {
        grid-column: 1 / -1;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 980px) {
    .account-hub {
        border: 0;
        box-shadow: none;
        border-radius: 0;
        padding: 8px 4px 24px;
        max-width: none;
    }
    .account-panel { max-width: none; }
}

.tour-size-wrap {
    display: flex;
    justify-content: center;
    margin: 8px 0 18px;
}
.tour-size-table {
    width: auto;
    min-width: 320px;
    max-width: 480px;
    margin: 0 auto;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
}
.tour-size-table th,
.tour-size-table td {
    padding: 9px 14px;
    text-align: center;
    border-bottom: 1px solid var(--line);
}
.tour-size-table th:first-child,
.tour-size-table td:first-child { text-align: left; }
.tour-size-table th {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}
.tour-size-table td:nth-child(2),
.tour-size-table td:nth-child(3) {
    font-weight: 750;
    white-space: nowrap;
}
.tour-size-table tr:last-child td { border-bottom: 0; }
.tour-page { max-width: 760px; }
.tour-faq { width: 100%; margin: 18px 0 24px; }
.tour-faq.faq-smooth .tour-panel {
    display: block;
    overflow: hidden;
    height: 0;
    opacity: 0;
    transition: height 0.42s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.32s ease;
}
.tour-faq.faq-smooth .tour-item[open] .tour-panel {
    height: auto;
    min-height: 0;
    opacity: 1;
    overflow: visible;
}
.tour-item {
    transition: opacity 0.36s ease, transform 0.36s ease, box-shadow 0.36s ease;
}
.tour-item.is-locked {
    opacity: 0.78;
}
.tour-item.is-rising {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(92, 72, 170, 0.12);
}
.tour-agreed,
.tour-locked-label {
    transition: background 0.28s ease, color 0.28s ease, opacity 0.28s ease;
}
@media (prefers-reduced-motion: reduce) {
    .tour-faq.faq-smooth .tour-panel,
    .tour-item,
    .tour-agreed,
    .tour-locked-label {
        transition: none;
    }
    .tour-item.is-rising { transform: none; }
}
.faq-item.tour-item summary {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}
.tour-summary-text {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}
.tour-summary-title {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.35;
}
.tour-summary-trailing {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
    margin-left: auto;
}
.tour-item summary::after {
    flex-shrink: 0;
    margin-top: 0;
    align-self: center;
}
.faq-item.tour-item[open] summary::after {
    margin-top: 0;
}
.tour-step-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent-deep);
    font-size: 0.78rem;
    font-weight: 800;
    flex-shrink: 0;
}
.tour-item.is-done .tour-step-no {
    background: #e8f6ee;
    color: #1b7a45;
}
.tour-agreed,
.tour-locked-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4.75rem;
    text-align: center;
    font-style: normal;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    flex-shrink: 0;
    white-space: nowrap;
}
.tour-agreed {
    background: #e8f6ee;
    color: #1b7a45;
}
.tour-locked-label {
    background: var(--paper);
    color: var(--muted);
}
.tour-item.is-locked summary { cursor: not-allowed; color: var(--muted); }
.tour-panel p:last-of-type { padding-bottom: 8px; }
.tour-agree {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 22px 20px;
    position: relative;
    z-index: 2;
}
.tour-agree .btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}
.tour-agree-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    cursor: pointer;
}
.tour-agree-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.tour-agreed-copy,
.tour-locked-copy {
    padding-bottom: 20px !important;
}
.tour-agree-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 10px 18px;
    background: #fff4d6;
    color: #5c4300;
    border: 1px solid #e6c56a;
    flex: none;
}
.plan-lock-bar {
    flex: none;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(14px) saturate(1.15);
    -webkit-backdrop-filter: blur(14px) saturate(1.15);
    color: #23233a;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 6px 18px rgba(92, 72, 170, 0.1);
}
.plan-lock-note {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.35;
}
.plan-lock-note a {
    font-weight: 800;
    color: var(--accent);
    text-decoration: none;
}
.plan-lock-note a:hover {
    color: var(--accent-deep);
    text-decoration: underline;
}
.plan-lock-panel {
    max-width: 36rem;
}
.plan-lock-panel .tour-done-actions { margin-top: 12px; }
.tour-agree-bar p {
    margin: 0;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.lead-cap-count {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 650;
}
.lead-cap-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 16px;
    padding: 12px 16px;
    background: #fff4d6;
    color: #5c4300;
    border: 1px solid #e6c56a;
    border-radius: 16px;
}
.lead-cap-bar.is-full {
    background: #fdecec;
    color: #7a1f1f;
    border-color: #e8b4b4;
}
.lead-cap-bar p {
    margin: 0;
    font-weight: 750;
    letter-spacing: -0.02em;
}
.chrome-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 140px;
    min-width: 0;
    color: #fff;
}
.chrome-progress-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.8;
}
.chrome-progress-track {
    display: block;
    width: 88px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    overflow: hidden;
}
.chrome-progress-track i {
    display: block;
    height: 100%;
    background: #f5d76e;
    border-radius: inherit;
}
.chrome-progress-pct {
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    min-width: 2.4em;
}
.chrome-progress-complete-btn {
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-decoration: none;
    line-height: 1.2;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: inherit;
    background: rgba(255, 255, 255, 0.12);
}
.chrome-progress-complete-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    color: inherit;
}
body.app-console .chrome-progress-complete-btn {
    border-color: rgba(35, 35, 58, 0.2);
    background: rgba(107, 70, 245, 0.08);
    color: #23233a;
}
body.app-console .chrome-progress-complete-btn:hover {
    background: rgba(107, 70, 245, 0.14);
}
.profile-completion-todos {
    margin-bottom: 1.25rem;
}
.profile-completion-todos[hidden] {
    display: none !important;
}
.profile-completion-meter {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--accent);
    margin-left: 0.35rem;
}
.profile-completion-lead {
    margin: -0.35rem 0 0.85rem;
    font-size: 0.92rem;
}
.profile-completion-weight {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--accent);
    margin-left: 0.25rem;
}
.profile-completion-todos.is-highlighted {
    animation: profile-completion-flash 2.4s ease;
}
@keyframes profile-completion-flash {
    0%, 100% { box-shadow: none; }
    15%, 45% { box-shadow: 0 0 0 3px rgba(107, 70, 245, 0.35); border-radius: 12px; }
}
/* Profile Admin keeps the light chrome, so the meter needs light-mode colours. */
body.app-console .chrome-progress { color: #23233a; }
body.app-console .chrome-progress-label { opacity: 0.62; }
body.app-console .chrome-progress-track { background: rgba(35, 35, 58, 0.12); }
body.app-console .chrome-progress-track i { background: var(--accent); }
/* Full-bleed gate strip under the chrome (tour agreement / plan lock). */
.console-bars {
    flex: none;
    padding: 0 14px 8px;
    background: transparent;
    display: flex;
    justify-content: center;
}
.console-bars:has(.plan-lock-bar) {
    justify-content: flex-end;
}
body.app-console .console-bars .tour-agree-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    max-width: min(980px, 100%);
    margin-inline: auto;
    border-radius: 16px;
}
body.app-console .console-bars .plan-lock-bar {
    width: auto;
    max-width: min(100%, 22rem);
    margin-left: auto;
    padding: 7px 14px;
    border-radius: 999px;
}
@media (max-width: 980px) {
    /* Keep the narrow chrome uncluttered: the percentage stays, the meter goes. */
    body.app-console .chrome-progress-label,
    body.app-console .chrome-progress-track { display: none; }
}
.console-publish {
    padding: 4px 10px 8px;
}
.console-publish .chrome-publish {
    margin: 0;
}
.console-publish .btn {
    width: 100%;
    min-height: 38px;
    border-radius: var(--radius-pill);
    pointer-events: auto;
    position: relative;
    z-index: 2;
}
/* Closing Publish action on the card-editing pages, mirroring the side menu button. */
.console-publish-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 18px 0 6px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(24, 18, 60, 0.06);
}
.console-publish-copy {
    flex: 1 1 240px;
    min-width: 0;
}
.console-publish-bar strong { font-size: 0.95rem; letter-spacing: -0.01em; }
.console-publish-bar p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.45;
}
.console-publish-bar form { flex: 0 0 auto; }
/* Scoped through body.app-console so it beats body.app-console .btn. */
body.app-console .console-publish-bar .btn {
    width: auto;
    min-height: 40px;
    padding: 0 22px;
    border-radius: var(--radius-pill);
}
@media (max-width: 560px) {
    .console-publish-bar { align-items: stretch; flex-direction: column; }
    /* Stacked: the copy basis must not turn into a fixed height. */
    .console-publish-copy { flex: 0 0 auto; }
    .console-publish-bar form { width: 100%; }
    body.app-console .console-publish-bar .btn { width: 100%; }
}
.publish-dialog {
    border: 1px solid rgba(255, 255, 255, 0.55);
    padding: 0;
    border-radius: 24px;
    width: min(420px, calc(100vw - 28px));
    background: rgba(255, 255, 255, 0.68);
    color: var(--ink);
    box-shadow:
        0 24px 60px rgba(11, 11, 26, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(18px) saturate(1.35);
    -webkit-backdrop-filter: blur(18px) saturate(1.35);
}
.publish-dialog::backdrop {
    background: rgba(8, 8, 14, 0.42);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.publish-dialog-panel {
    padding: 22px 20px 18px;
    background: linear-gradient(
        165deg,
        rgba(255, 255, 255, 0.52) 0%,
        rgba(255, 255, 255, 0.08) 100%
    );
    border-radius: inherit;
}
.publish-dialog h2 {
    margin: 0 0 8px;
    font-size: 1.15rem;
    letter-spacing: -0.03em;
}
.publish-dialog-lead {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.45;
}
.publish-dialog-step {
    margin: 0 0 10px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent-deep);
}
.publish-dialog-label {
    display: block;
    margin: 0 0 6px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}
.publish-dialog-field {
    position: relative;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.35) 48%,
        rgba(124, 108, 255, 0.12) 100%
    );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 1px 2px rgba(11, 11, 26, 0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.publish-dialog-field:focus-within {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        0 0 0 3px color-mix(in srgb, var(--accent) 24%, transparent),
        0 10px 28px rgba(124, 108, 255, 0.14);
}
.publish-dialog-input,
.publish-dialog textarea {
    display: block;
    width: 100%;
    min-height: 108px;
    margin: 0;
    padding: 14px 16px 34px;
    resize: vertical;
    border: 0;
    border-radius: 15px;
    font: inherit;
    font-size: 0.95rem;
    line-height: 1.55;
    letter-spacing: -0.01em;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 2px rgba(11, 11, 26, 0.05);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}
.publish-dialog-input::placeholder,
.publish-dialog textarea::placeholder {
    color: color-mix(in srgb, var(--muted) 72%, transparent);
    font-weight: 500;
}
.publish-dialog-field:focus-within .publish-dialog-input,
.publish-dialog-field:focus-within .publish-dialog textarea {
    background: rgba(255, 255, 255, 0.88);
    box-shadow: inset 0 1px 2px rgba(11, 11, 26, 0.04);
    outline: none;
}
.publish-dialog-char {
    position: absolute;
    right: 14px;
    bottom: 10px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: color-mix(in srgb, var(--muted) 88%, transparent);
    pointer-events: none;
    user-select: none;
}
.publish-dialog-field:focus-within .publish-dialog-char {
    color: color-mix(in srgb, var(--accent-deep) 55%, var(--muted));
}
.publish-dialog-char.is-near-limit {
    color: #b42318;
}
.publish-dialog-error {
    margin: 8px 0 0;
    color: #b42318;
    font-size: 0.86rem;
    font-weight: 650;
}
.publish-dialog-reason-preview {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--ink);
    font-size: 0.9rem;
    line-height: 1.45;
    word-break: break-word;
}
.publish-dialog-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}
.console-nav.is-view-only { opacity: 0.92; }
.tour-edit-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 16px;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--accent-soft);
    border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
}
.tour-edit-banner p { margin: 0; max-width: 46rem; }
.tour-edit-lock {
    user-select: none;
    opacity: 0.78;
}
.tour-edit-lock input,
.tour-edit-lock select,
.tour-edit-lock textarea,
.tour-edit-lock button[type="submit"],
.tour-edit-lock input[type="file"] {
    cursor: pointer;
}
.tour-done { margin-top: 8px; }
.tour-done .btn { margin-top: 4px; }
.tour-done-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}
.tour-pdf-safe {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px 14px;
    margin: 8px 22px 16px;
    padding: 14px 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, #f3efff 0%, #eef6ff 55%, #f7f3ff 100%);
    border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
    box-shadow: 0 10px 28px rgba(92, 72, 170, 0.08);
    opacity: 0;
    transform: translateY(10px) scale(0.98);
}
.tour-pdf-safe.is-live {
    animation: tour-pdf-safe-in 0.62s cubic-bezier(0.22, 1, 0.36, 1) forwards,
        tour-pdf-safe-glow 2.8s ease-in-out 0.7s infinite;
}
.tour-pdf-safe-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    color: var(--accent-deep);
    background: #fff;
    box-shadow: 0 6px 16px rgba(92, 72, 170, 0.12);
    animation: tour-pdf-safe-bob 2.4s ease-in-out infinite;
}
.tour-pdf-safe-copy {
    min-width: 0;
}
.tour-pdf-safe-copy strong {
    display: block;
    margin: 0 0 4px;
    font-size: 0.95rem;
    letter-spacing: -0.02em;
    color: var(--ink);
}
.tour-pdf-safe-copy p {
    margin: 0 !important;
    padding: 0 !important;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.45;
    font-weight: 550;
}
.tour-pdf-safe-hint {
    grid-column: 1 / -1;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent-deep);
    letter-spacing: 0.02em;
}
.tour-pdf-safe-btn {
    grid-column: 1 / -1;
    justify-self: start;
    animation: tour-pdf-safe-pulse 2.2s ease-in-out infinite;
}
.tour-download-record {
    grid-column: 1 / -1;
    margin-top: 4px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid color-mix(in srgb, #1b7a45 22%, transparent);
    box-shadow: 0 8px 20px rgba(27, 122, 69, 0.08);
}
.tour-download-record.is-on {
    animation: tour-pdf-safe-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.tour-download-record > strong {
    display: block;
    margin: 0 0 8px;
    color: #1b7a45;
    font-size: 0.9rem;
    letter-spacing: -0.02em;
}
.tour-download-receipt {
    margin: 0;
}
.tour-download-receipt dd {
    font-size: 0.88rem;
}
.tour-pdf-safe-done {
    margin: 12px 0 16px;
}
@keyframes tour-pdf-safe-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
@keyframes tour-pdf-safe-glow {
    0%, 100% { box-shadow: 0 10px 28px rgba(92, 72, 170, 0.08); }
    50% { box-shadow: 0 14px 34px rgba(92, 72, 170, 0.18); }
}
@keyframes tour-pdf-safe-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}
@keyframes tour-pdf-safe-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 8px 20px rgba(124, 108, 255, 0.28); }
    50% { transform: scale(1.03); box-shadow: 0 12px 26px rgba(124, 108, 255, 0.4); }
}
@media (prefers-reduced-motion: reduce) {
    .tour-pdf-safe.is-live,
    .tour-pdf-safe-mark,
    .tour-pdf-safe-btn {
        animation: none !important;
    }
    .tour-pdf-safe.is-live {
        opacity: 1;
        transform: none;
    }
}
.tour-receipt {
    display: grid;
    gap: 10px;
    margin: 0 0 12px;
}
.tour-receipt div {
    display: grid;
    gap: 2px;
}
.tour-receipt dt {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}
.tour-receipt dd { margin: 0; word-break: break-all; }

@media (max-width: 980px) {
    .tour-page {
        max-width: none;
        width: 100%;
    }
    .tour-page > .text-secondary {
        font-size: 0.92rem;
        line-height: 1.55;
    }
    .tour-faq {
        margin: 14px 0 20px;
    }
    .faq-item.tour-item {
        border-radius: 16px;
    }
    .faq-item.tour-item summary {
        align-items: center;
        padding: 14px 14px;
        font-size: 0.95rem;
        gap: 8px;
    }
    .tour-summary-text {
        align-items: flex-start;
        gap: 8px;
    }
    .tour-step-no {
        width: 24px;
        height: 24px;
        font-size: 0.72rem;
        margin-top: 2px;
    }
    .tour-summary-trailing {
        gap: 8px;
    }
    .tour-agreed,
    .tour-locked-label {
        min-width: 4.35rem;
        padding: 4px 8px;
        font-size: 0.64rem;
        letter-spacing: 0.03em;
    }
    .tour-item summary::after {
        margin-top: 0;
    }
    .tour-panel p,
    .faq-item.tour-item p {
        padding-left: 14px;
        padding-right: 14px;
        font-size: 0.9rem;
        line-height: 1.55;
    }
    .tour-size-wrap {
        margin: 4px 14px 14px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: stretch;
    }
    .tour-size-table {
        width: 100%;
        min-width: 0;
        max-width: none;
        font-size: 0.84rem;
    }
    .tour-size-table th,
    .tour-size-table td {
        padding: 8px 10px;
    }
    .tour-size-table td:nth-child(2),
    .tour-size-table td:nth-child(3) {
        white-space: normal;
    }
    .tour-agree {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 8px 14px 18px;
    }
    .tour-agree-check {
        align-items: flex-start;
        gap: 10px;
        font-size: 0.92rem;
        line-height: 1.4;
    }
    .tour-agree-check input {
        margin-top: 2px;
        flex: none;
    }
    .tour-agree .btn {
        width: 100%;
        justify-content: center;
    }
    .tour-agreed-copy,
    .tour-locked-copy {
        padding-left: 14px !important;
        padding-right: 14px !important;
        font-size: 0.86rem;
    }
    .tour-agree-bar {
        margin: 0;
        padding: 10px 14px;
        gap: 10px;
        flex-wrap: wrap;
    }
    .tour-agree-bar .btn {
        flex: none;
    }
    .tour-edit-banner {
        flex-direction: column;
        align-items: stretch;
        padding: 12px 14px;
    }
    .tour-edit-banner .btn {
        width: 100%;
        justify-content: center;
    }
    .tour-done-actions {
        flex-direction: column;
    }
    .tour-done-actions .btn {
        width: 100%;
        justify-content: center;
    }
    .tour-pdf-safe {
        margin-left: 14px;
        margin-right: 14px;
        grid-template-columns: auto minmax(0, 1fr);
    }
    .tour-pdf-safe-done {
        margin-left: 0;
        margin-right: 0;
    }
    .tour-pdf-safe-btn {
        width: 100%;
        justify-self: stretch;
        justify-content: center;
    }
    .tour-receipt {
        gap: 12px;
    }
}

@media (max-width: 420px) {
    .faq-item.tour-item summary {
        padding: 12px 12px;
        font-size: 0.9rem;
        gap: 6px;
    }
    .tour-agreed,
    .tour-locked-label {
        min-width: 4rem;
        font-size: 0.6rem;
        padding: 3px 7px;
    }
}

.tour-ip {
    font-size: 0.78rem;
    word-break: break-all;
    background: var(--paper);
    padding: 2px 6px;
    border-radius: 6px;
}

/* Platform in-app promotions (Super Admin → all Profile Admins). */
.inapp-offer {
    width: 100%;
    margin: 0 0 18px;
}
.inapp-offer-kicker {
    margin: 0 0 12px;
    color: #1c1c28;
    font-size: 1.15rem;
    font-weight: 750;
    letter-spacing: -0.02em;
}
.inapp-offer-card {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.9fr);
    gap: 28px;
    align-items: center;
    padding: 28px 32px;
    border: 1px solid #ececf3;
    border-radius: 22px;
    background:
        linear-gradient(90deg, #ffffff 0%, #ffffff 46%, #f4f0ff 100%);
    box-shadow: 0 1px 2px rgba(20, 16, 40, 0.04);
}
.inapp-offer-main h2 {
    margin: 0 0 12px;
    max-width: 16ch;
    color: #1c1c28;
    font-size: clamp(1.55rem, 2.4vw, 2.05rem);
    font-weight: 750;
    letter-spacing: -0.035em;
    line-height: 1.12;
}
.inapp-offer-main p {
    margin: 0 0 18px;
    max-width: 46ch;
    color: #5c5a6e;
    font-size: 0.98rem;
    line-height: 1.45;
}
.inapp-offer-start {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 12px;
    background: #6b46f5;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
}
.inapp-offer-start:hover,
.inapp-offer-start:focus-visible {
    background: #5b36e8;
    color: #fff;
}
.inapp-offer-side { position: relative; min-width: 0; }
.inapp-offer-stat {
    position: absolute;
    top: -14px;
    right: 18px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px 6px 6px;
    border-radius: 999px;
    background: #fff;
    color: #1c1c28;
    font-size: 0.82rem;
    font-weight: 750;
    box-shadow: 0 8px 22px rgba(20, 16, 40, 0.08);
}
.inapp-offer-stat svg { display: block; flex: none; }
.inapp-offer-panel {
    padding: 22px 22px 16px;
    border: 1px solid #efeafd;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(80, 60, 160, 0.06);
}
.inapp-offer-logo {
    width: 56px;
    height: 56px;
    margin-bottom: 10px;
    object-fit: contain;
}
.inapp-offer-panel h3 {
    margin: 0;
    color: #1c1c28;
    font-size: 1rem;
    font-weight: 750;
}
.inapp-offer-by {
    margin: 2px 0 12px;
    color: #8b8a99;
    font-size: 0.82rem;
}
.inapp-offer-panel ul {
    margin: 12px 0 0;
    padding: 12px 0 0;
    border-top: 1px solid #eeeaf6;
    list-style: none;
}
.inapp-offer-panel li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 8px;
    color: #3c3a4a;
    font-size: 0.92rem;
    line-height: 1.35;
}
.inapp-offer-panel li svg { flex: none; margin-top: 2px; }
.inapp-promo-strip {
    margin: 0 0 16px;
}
.inapp-promo-strip .inapp-offer-bar {
    margin-top: 0;
}
.inapp-offer-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 14px;
    min-height: 64px;
    padding: 10px 12px 10px 16px;
    border-radius: 16px;
    background: #6b46f5;
    color: #fff;
}
.inapp-offer-spark {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}
.inapp-offer-bar p {
    margin: 0;
    flex: 1;
    min-width: 0;
    font-size: 0.95rem;
    font-weight: 650;
    line-height: 1.35;
}
.inapp-offer-more {
    flex: none;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 650;
    text-decoration: none;
}
.inapp-offer-more:hover,
.inapp-offer-more:focus-visible { color: #fff; text-decoration: underline; }
.inapp-offer-claim {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    background: #fff;
    color: #1c1c28;
    font-size: 0.92rem;
    font-weight: 750;
    text-decoration: none;
}
.inapp-offer-claim:hover,
.inapp-offer-claim:focus-visible { color: #1c1c28; background: #f4f1ff; }
body.app-console a.inapp-offer-start,
body.app-console a.inapp-offer-start:hover { color: #fff; }
body.app-console a.inapp-offer-more,
body.app-console a.inapp-offer-more:hover { color: #fff; }
body.app-console a.inapp-offer-claim,
body.app-console a.inapp-offer-claim:hover { color: #1c1c28; }
@media (max-width: 800px) {
    .inapp-offer-card {
        grid-template-columns: 1fr;
        padding: 20px 16px;
        background: #fff;
    }
    .inapp-offer-main h2 { max-width: none; }
    .inapp-offer-bar { flex-wrap: wrap; }
    .inapp-offer-bar p { flex: 1 1 100%; }
    .inapp-offer-more { margin-left: auto; }
}

.inapp-promo {
    width: 100%;
    max-width: none;
    margin: 0 0 18px;
    position: relative;
}
.inapp-staff-banner-preview {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: #eef2f7;
}
.inapp-staff-banner-preview img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
}
.inapp-promo-track {
    position: relative;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    background: var(--accent-soft, #eef2f7);
    height: auto;
    aspect-ratio: 1500 / 500;
}
.inapp-promo.is-full-width .inapp-promo-track,
.inapp-promo.is-banner .inapp-promo-track,
.inapp-promo.is-slide .inapp-promo-track {
    height: auto;
}
.inapp-promo-slide {
    position: relative;
    display: none;
    color: inherit;
    text-decoration: none;
}
a.inapp-promo-slide {
    cursor: pointer;
}
a.inapp-promo-slide:focus-visible {
    outline: 2px solid var(--accent, #0f766e);
    outline-offset: 2px;
}
.inapp-promo-slide.is-on {
    display: block;
    height: 100%;
    pointer-events: auto;
    z-index: 1;
}
.inapp-promo-slide:not(.is-on) {
    pointer-events: none;
}
.inapp-promo-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}
.inapp-promo-copy {
    position: absolute;
    left: 16px;
    right: 190px;
    bottom: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: baseline;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
    font-size: 0.95rem;
}
.inapp-promo-copy strong {
    font-weight: 700;
}
.inapp-promo-copy em {
    font-style: normal;
    font-weight: 600;
    opacity: 0.92;
}
.inapp-promo-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}
.inapp-promo-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: color-mix(in srgb, var(--muted, #6b7280) 45%, transparent);
    cursor: pointer;
}
.inapp-promo-dot.is-on {
    background: var(--accent, #0f766e);
    transform: scale(1.15);
}
@media (max-width: 980px) {
    /* In-app banner promos: nearly edge-to-edge on mobile (6px inset vs main gutter). */
    .inapp-promo,
    .inapp-promo-strip,
    .inapp-offer {
        width: auto;
        max-width: none;
        margin-left: calc(var(--console-gutter-x, 16px) * -1 + 6px);
        margin-right: calc(var(--console-gutter-x, 16px) * -1 + 6px);
        margin-bottom: 14px;
    }
    .inapp-promo-track,
    .inapp-promo.is-full-width .inapp-promo-track,
    .inapp-promo.is-banner .inapp-promo-track,
    .inapp-promo.is-slide .inapp-promo-track {
        border-radius: 10px;
        height: auto;
        width: 100%;
    }
    .inapp-promo-strip .inapp-offer-bar,
    .inapp-offer-bar {
        border-radius: 12px;
    }
    .inapp-promo-copy {
        left: 10px;
        right: 10px;
        bottom: 52px;
        font-size: 0.82rem;
    }
}
@media (max-width: 640px) {
    .inapp-promo,
    .inapp-promo-strip,
    .inapp-offer {
        margin-left: calc(var(--console-gutter-x, 14px) * -1 + 4px);
        margin-right: calc(var(--console-gutter-x, 14px) * -1 + 4px);
    }
}

/* Same invite flight as the affiliate portal home. */
.aff-invite {
    position: relative;
    margin: 0 0 28px;
    padding: 18px 22px 22px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    text-align: center;
    overflow: visible;
}
.aff-invite {
    overflow: hidden;
}
.aff-invite-hook {
    margin: 0 0 12px;
    text-align: center;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.45;
}
.aff-invite-hook strong { color: #0f172a; font-weight: 800; }
.aff-invite-bar + .aff-invite-hook { margin: 0 0 18px; }
.aff-invite-art {
    position: relative;
    height: 148px;
    margin: 0 auto 4px;
    max-width: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    overflow: hidden;
}
.aff-invite-speed {
    position: absolute;
    inset: 18% 0 18% 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
    mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 78%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 78%, transparent 100%);
}
.aff-invite-speed i {
    position: absolute;
    left: 55%;
    height: 2px;
    border-radius: 99px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(103, 61, 230, 0.05) 8%,
        rgba(124, 108, 255, 0.55) 42%,
        rgba(167, 139, 250, 0.95) 72%,
        rgba(255, 255, 255, 0.9) 88%,
        transparent 100%);
    transform-origin: right center;
    animation: aff-invite-streak 0.55s linear infinite;
    will-change: transform, opacity;
}
.aff-invite-speed i:nth-child(1)  { top: 10%; width: 42%; height: 2px; animation-duration: 0.48s; animation-delay: 0s; }
.aff-invite-speed i:nth-child(2)  { top: 20%; width: 68%; height: 3px; animation-duration: 0.42s; animation-delay: -0.08s; }
.aff-invite-speed i:nth-child(3)  { top: 30%; width: 34%; height: 2px; animation-duration: 0.58s; animation-delay: -0.18s; opacity: 0.75; }
.aff-invite-speed i:nth-child(4)  { top: 40%; width: 78%; height: 4px; animation-duration: 0.38s; animation-delay: -0.04s; }
.aff-invite-speed i:nth-child(5)  { top: 50%; width: 56%; height: 2px; animation-duration: 0.5s;  animation-delay: -0.22s; }
.aff-invite-speed i:nth-child(6)  { top: 58%; width: 88%; height: 5px; animation-duration: 0.34s; animation-delay: -0.12s; }
.aff-invite-speed i:nth-child(7)  { top: 68%; width: 46%; height: 2px; animation-duration: 0.52s; animation-delay: -0.28s; opacity: 0.8; }
.aff-invite-speed i:nth-child(8)  { top: 76%; width: 70%; height: 3px; animation-duration: 0.4s;  animation-delay: -0.16s; }
.aff-invite-speed i:nth-child(9)  { top: 86%; width: 38%; height: 2px; animation-duration: 0.6s;  animation-delay: -0.34s; opacity: 0.65; }
.aff-invite-speed i:nth-child(10) { top: 94%; width: 62%; height: 3px; animation-duration: 0.44s; animation-delay: -0.06s; }
.aff-invite-speed i.aff-invite-speed-dot {
    width: 7px !important;
    height: 7px !important;
    border-radius: 50%;
    left: 62%;
    background: radial-gradient(circle at 35% 35%, #fff 0%, #c4b5fd 40%, rgba(103, 61, 230, 0.2) 70%, transparent 100%);
    animation-name: aff-invite-spark;
    animation-duration: 0.7s;
}
.aff-invite-speed i.aff-invite-speed-dot:nth-child(11) { top: 24%; animation-delay: -0.1s; }
.aff-invite-speed i.aff-invite-speed-dot:nth-child(12) { top: 62%; animation-delay: -0.35s; animation-duration: 0.55s; }
.aff-invite-hero {
    position: relative;
    z-index: 2;
    width: 220px;
    max-width: 78vw;
    height: auto;
    max-height: 124px;
    object-fit: contain;
    display: block;
    background: transparent !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    mix-blend-mode: normal;
    filter: none;
    animation: aff-invite-fly 3.6s ease-in-out infinite;
    will-change: transform;
}
.aff-invite-hero[src*=".png"] {
    mix-blend-mode: multiply;
}
@keyframes aff-invite-fly {
    0%   { transform: translate3d(-6px, 7px, 0) rotate(-2.5deg); }
    25%  { transform: translate3d(2px, -8px, 0) rotate(0.5deg); }
    50%  { transform: translate3d(8px, 5px, 0) rotate(2deg); }
    75%  { transform: translate3d(0, -6px, 0) rotate(-0.5deg); }
    100% { transform: translate3d(-6px, 7px, 0) rotate(-2.5deg); }
}
@keyframes aff-invite-streak {
    0%   { transform: translate3d(18%, 0, 0) scaleX(0.35); opacity: 0; }
    12%  { opacity: 1; }
    55%  { transform: translate3d(-55%, 0, 0) scaleX(1.35); opacity: 0.95; }
    100% { transform: translate3d(-120%, 0, 0) scaleX(1.8); opacity: 0; }
}
@keyframes aff-invite-spark {
    0%   { transform: translate3d(10%, 0, 0) scale(0.4); opacity: 0; }
    20%  { opacity: 1; }
    100% { transform: translate3d(-130%, 4px, 0) scale(0.15); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .aff-invite-hero,
    .aff-invite-speed i { animation: none; }
}
.aff-invite-title {
    margin: 4px 0 18px;
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #0f172a;
    line-height: 1.22;
}
.aff-invite-title strong {
    font-weight: 800;
    letter-spacing: -0.035em;
}
.aff-invite-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 640px;
    margin: 0 auto 14px;
    padding: 6px 6px 6px 16px;
    border-radius: 999px;
    background: #f3f4f6;
}
.aff-invite-url,
input[data-aff-copy-input] {
    font-size: 16px; /* iOS Safari: avoid auto-zoom on focus below 16px */
}
.aff-invite-url {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #334155;
    outline: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.aff-invite-copy {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    background: #111827;
    color: #fff;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    touch-action: manipulation;
}
.aff-invite-copy:hover { background: #000; }
.aff-invite-copy svg { display: block; flex: none; }
.aff-invite-copy .aff-invite-ico-tick { display: none !important; }
.aff-invite-copy.is-copied { background: #047857; }
.aff-invite-copy.is-copied:hover { background: #065f46; }
.aff-invite-copy.is-copied .aff-invite-ico-copy { display: none !important; }
.aff-invite-copy.is-copied .aff-invite-ico-tick { display: block !important; }
.aff-invite-split {
    margin: 0 0 18px;
    color: #64748b;
    font-size: 0.98rem;
}
.aff-invite-split strong { color: #0f172a; font-weight: 800; }
.aff-invite-info {
    display: inline-block;
    margin-left: 4px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    vertical-align: 1px;
}
.aff-invite-info:hover { color: #475569; }
body.app-console a.aff-invite-info,
body.app-console a.aff-invite-info:hover { color: #94a3b8; }
body.app-console a.aff-invite-info:hover { color: #475569; }
body.app-console .aff-invite-copy,
body.app-console .aff-invite-copy:hover { color: #fff; }
.aff-invite-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 16px;
    padding-top: 4px;
    color: #94a3b8;
    font-size: 0.88rem;
    text-align: left;
}
.aff-invite-proof {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.aff-invite-avatars { display: inline-flex; align-items: center; }
.aff-invite-avatars i {
    display: block;
    width: 22px;
    height: 22px;
    margin-left: -6px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: linear-gradient(135deg, #c4b5fd, #818cf8);
}
.aff-invite-avatars i:first-child { margin-left: 0; background: linear-gradient(135deg, #fda4af, #fb7185); }
.aff-invite-avatars i:nth-child(2) { background: linear-gradient(135deg, #93c5fd, #60a5fa); }
@media (max-width: 640px) {
    .aff-invite { padding: 22px 14px 16px; }
    .aff-invite-bar {
        flex-direction: column;
        align-items: stretch;
        border-radius: 16px;
        padding: 10px;
    }
    .aff-invite-url { text-align: center; padding: 6px 4px; }
    .aff-invite-copy { justify-content: center; }
    .aff-invite-foot { flex-direction: column; align-items: center; text-align: center; }
}

.aff-dash-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin: 0 0 20px;
}
.aff-dash-stats .card.profile-body { margin: 0; }
.aff-stat-note { font-size: 0.55em; font-weight: 600; }
.aff-wallet-card { margin: 0 0 20px; }
.aff-commission-table {
    margin: 0 0 20px;
}
.aff-commission-table .staff-table {
    font-size: 0.875rem;
}
.aff-commission-table .staff-table th,
.aff-commission-table .staff-table td {
    padding: 8px 10px;
}
.aff-wallet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}
.aff-wallet-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-top: 4px;
}



/* ---- Activity heatmap (daily profile views, GitHub-style) ---- */
.an-heat {
    padding: 18px 18px 14px;
}
.an-heat-scroll {
    overflow-x: auto;
    padding-bottom: 6px;
}
.an-heat-grid {
    display: flex;
    gap: 6px;
    min-width: max-content;
}
.an-heat-days {
    display: grid;
    grid-template-rows: repeat(7, 13px);
    gap: 3px;
    padding-top: 20px;
    width: 30px;
}
.an-heat-days span {
    font-size: 0.62rem;
    line-height: 13px;
    color: var(--muted);
    font-weight: 600;
}
.an-heat-days span:nth-child(2) { grid-row: 3; }
.an-heat-days span:nth-child(3) { grid-row: 5; }
.an-heat-cols {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.an-heat-months {
    display: grid;
    grid-template-columns: repeat(var(--heat-weeks, 20), 13px);
    gap: 3px;
    height: 16px;
    min-width: max-content;
}
.an-heat-month {
    font-size: 0.62rem;
    color: var(--muted);
    font-weight: 700;
    white-space: nowrap;
    align-self: end;
}
.an-heat-cells {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(7, 13px);
    gap: 3px;
}
.an-heat-cell {
    width: 13px;
    height: 13px;
    border-radius: 3.5px;
    display: inline-block;
}
.an-heat-l0 { background: #dfe1ea; }
.an-heat-l1 { background: #e8e4ff; }
.an-heat-l2 { background: #c9bfff; }
.an-heat-l3 { background: #9f8cff; }
.an-heat-l4 { background: var(--accent-deep); }
.an-heat-legend {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    font-size: 0.68rem;
    color: var(--muted);
    font-weight: 600;
}
.an-heat-legend .an-heat-cell {
    width: 11px;
    height: 11px;
    border-radius: 3px;
}
.an-heat-note {
    margin: 6px 0 0;
    font-size: 0.72rem;
    color: var(--muted);
}

.an-heat-dark {
    --heat-none: #dfe1ea;
    --heat-1: #e8e4ff;
    --heat-2: #c9bfff;
    --heat-3: #9f8cff;
    --heat-4: var(--accent-deep);
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: 0 1px 0 rgba(91, 76, 219, 0.04);
}
.an-heat-dark .an-heat-days span,
.an-heat-dark .an-heat-month,
.an-heat-dark .an-heat-legend-label,
.an-heat-dark .an-heat-note {
    color: var(--muted);
}
.an-heat-dark .an-heat-stats strong {
    color: var(--ink);
}
.an-heat-dark .an-heat-stats span {
    color: var(--muted);
}
.an-heat-dark .an-heat-cell.is-empty {
    background: transparent;
    visibility: hidden;
}
.an-heat-dark .an-heat-l0 { background: var(--heat-none); }
.an-heat-dark .an-heat-l1 { background: var(--heat-1); }
.an-heat-dark .an-heat-l2 { background: var(--heat-2); }
.an-heat-dark .an-heat-l3 { background: var(--heat-3); }
.an-heat-dark .an-heat-l4 { background: var(--heat-4); }
.an-heat-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px 16px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}
.an-heat-stats article {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.an-heat-stats strong {
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.25;
}
.an-heat-stats span {
    font-size: 0.68rem;
    line-height: 1.35;
}
.an-heat-legend-label {
    font-size: 0.68rem;
    font-weight: 600;
}
@media (max-width: 720px) {
    .an-heat-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
