.site-header,
.site-footer,
.hero,
.panel-grid,
.widget-frame {
    width: var(--container-width);
    margin: 0 auto;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.88rem 1.3rem;
    border: 1px solid transparent;
    border-radius: var(--radius-button);
    text-decoration: none;
    font-weight: 600;
    line-height: 1;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease,
        background-color 180ms ease;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    color: inherit;
}

.brand-lockup__mark-shell {
    position: relative;
    isolation: isolate;
    display: inline-grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    padding: 0.2rem;
    border-radius: 22px;
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.96), rgba(233, 242, 237, 0.86));
    border: 1px solid rgba(15, 23, 40, 0.08);
    box-shadow:
        0 14px 30px rgba(15, 23, 40, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.brand-lockup__mark-shell::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(85, 214, 190, 0.38), rgba(20, 83, 45, 0.14), rgba(255, 143, 92, 0.22));
    z-index: -1;
    opacity: 0.75;
}

.brand-lockup__mark-shell::after {
    content: "";
    position: absolute;
    inset: 18%;
    border-radius: 16px;
    background: radial-gradient(circle at 28% 22%, rgba(85, 214, 190, 0.18), transparent 56%);
    opacity: 0.85;
    z-index: 0;
}

.brand-lockup__mark {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
}

.brand-lockup__text {
    display: grid;
    gap: 0.14rem;
    line-height: 1;
}

.brand-lockup__text strong {
    font-family: var(--font-heading);
    font-size: 1.12rem;
    letter-spacing: 0.015em;
    text-transform: none;
}

.brand-lockup__micro {
    display: block;
    color: rgba(79, 96, 118, 0.92);
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.15;
    text-transform: lowercase;
}

.brand-lockup__text small {
    color: var(--color-muted);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand-lockup--compact {
    gap: 0.7rem;
}

.brand-lockup--compact .brand-lockup__mark-shell {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 18px;
}

.brand-lockup--compact .brand-lockup__text strong {
    font-size: 0.96rem;
    letter-spacing: 0.03em;
}

.brand-lockup--compact .brand-lockup__micro {
    font-size: 0.56rem;
    letter-spacing: 0.07em;
}

.brand-lockup--compact .brand-lockup__text small {
    font-size: 0.66rem;
}

.brand-lockup--marketing .brand-lockup__mark-shell {
    background: rgba(255, 255, 255, 0.88);
}

.brand-lockup--story .brand-lockup__mark-shell {
    width: 3.3rem;
    height: 3.3rem;
    border-radius: 24px;
    box-shadow: 0 18px 36px rgba(15, 23, 40, 0.14);
}

.brand-lockup--story .brand-lockup__text strong {
    font-size: 1.2rem;
}

.brand-lockup--story .brand-lockup__micro {
    font-size: 0.67rem;
}

.brand-lockup__name {
    display: inline-flex;
    align-items: baseline;
}

.brand-lockup__name-ai {
    letter-spacing: 0.05em;
}

.brand-lockup__name-dot {
    margin: 0 0.05em;
    color: var(--color-highlight);
    text-shadow: 0 0 18px rgba(85, 214, 190, 0.35);
}

.brand-lockup__name-support {
    letter-spacing: 0.015em;
    color: var(--color-text);
}

.brand-lockup--on-dark .brand-lockup__mark-shell {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: none;
}

.brand-lockup--on-dark .brand-lockup__text strong,
.brand-lockup--on-dark .brand-lockup__text small,
.brand-lockup--on-dark .brand-lockup__micro {
    color: #fff;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-1px);
}

.button-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--color-primary), #1f7a45);
    box-shadow: 0 16px 36px rgba(20, 83, 45, 0.22);
}

.button-secondary {
    color: var(--color-ink);
    background: rgba(255, 255, 255, 0.84);
    border-color: rgba(15, 23, 40, 0.12);
}

.button-ghost {
    color: var(--color-ink);
    background: transparent;
    border-color: rgba(15, 23, 40, 0.1);
}

.hero-card,
.panel,
.card {
    background: var(--color-panel);
    border-radius: var(--radius-card);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
}

.hero-card {
    padding: var(--space-8);
}

.panel-grid,
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-6);
    padding: 0 0 var(--section-space);
}

.card-grid {
    width: 100%;
    max-width: 100%;
    margin: 0;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.card-grid > * {
    min-width: 0;
}

.panel,
.card {
    padding: var(--space-6);
}

.auth-shell {
    width: min(1120px, calc(100vw - 2rem));
    margin: clamp(2.4rem, 10vw, 5.5rem) auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-6);
}

.auth-footer-nav {
    width: min(1120px, calc(100vw - 2rem));
    margin-inline: auto;
}

.auth-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(18px);
    background: rgba(247, 243, 234, 0.86);
    border-bottom: 1px solid rgba(15, 23, 40, 0.08);
}

.auth-topbar__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 0.95rem 1.5rem;
    width: min(1120px, calc(100vw - 3rem));
    margin-inline: auto;
}

.auth-topbar__brand {
    text-decoration: none;
    color: var(--color-ink);
}

.auth-topbar__nav,
.auth-topbar__actions {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
}

.auth-topbar__nav {
    justify-content: center;
    flex-wrap: wrap;
}

.auth-topbar__nav a,
.auth-footer-nav a {
    text-decoration: none;
    color: var(--color-muted);
}

.auth-topbar__nav a:hover,
.auth-topbar__nav a:focus-visible,
.auth-footer-nav a:hover,
.auth-footer-nav a:focus-visible {
    color: var(--color-ink);
}

.auth-footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: -3rem auto 2rem;
    font-size: 0.94rem;
}

.auth-shell--wide {
    grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.74fr);
    align-items: stretch;
}

.auth-panel,
.app-shell {
    padding: clamp(1.5rem, 4vw, 2.2rem);
    background: rgba(255, 255, 255, 0.88);
    border-radius: 30px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(15, 23, 40, 0.08);
}

.app-frame {
    width: min(1360px, calc(100vw - 2rem));
    margin: 1.2rem auto 2rem;
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    align-items: start;
    gap: 1rem;
}

.app-sidebar {
    position: sticky;
    top: 1rem;
    align-self: start;
    display: grid;
    gap: 1rem;
    max-height: calc(100vh - 2rem);
    padding: 1rem;
    background:
        radial-gradient(circle at top right, rgba(255, 143, 92, 0.14), transparent 11rem),
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 239, 228, 0.9));
    border: 1px solid rgba(15, 23, 40, 0.08);
    border-radius: 30px;
    box-shadow: var(--shadow-card);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.app-sidebar__brand {
    text-decoration: none;
    color: var(--color-ink);
}

.app-sidebar__workspace,
.app-sidebar__footer,
.app-nav__group {
    padding: 0.9rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(15, 23, 40, 0.08);
}

.app-sidebar__eyebrow,
.app-topbar__eyebrow,
.app-nav__label {
    margin: 0 0 0.55rem;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-primary);
}

.app-sidebar__workspace h2 {
    margin: 0 0 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.45rem;
    line-height: 1;
}

.app-sidebar__subtle {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.55;
    font-size: 0.92rem;
}

.app-status-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 0.9rem 0 0.6rem;
}

.app-status-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: rgba(15, 23, 40, 0.06);
    color: var(--color-ink);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.app-status-chip--accent {
    background: rgba(20, 83, 45, 0.12);
    color: #14532d;
}

.app-nav {
    display: grid;
    gap: 0.8rem;
}

.app-nav__group {
    display: grid;
    gap: 0.35rem;
}

.app-nav__search {
    display: grid;
    gap: 0.55rem;
}

.app-nav__search input {
    width: 100%;
    padding: 0.72rem 0.85rem;
    border: 1px solid rgba(15, 23, 40, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-ink);
    font: inherit;
}

.app-nav__search input:focus {
    outline: none;
    border-color: rgba(20, 83, 45, 0.32);
    box-shadow: 0 0 0 3px rgba(20, 83, 45, 0.1);
}

.app-nav__doc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.app-nav__doc-actions .button {
    padding: 0.72rem 0.95rem;
    font-size: 0.82rem;
}

.app-nav__doc-shortcut {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.72rem 0.9rem;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 40, 0.08);
    background: rgba(15, 23, 40, 0.04);
    color: var(--color-muted);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
}

.app-nav__doc-shortcut:hover,
.app-nav__doc-shortcut:focus-visible {
    color: var(--color-ink);
    background: rgba(15, 23, 40, 0.08);
    outline: none;
}

.app-nav__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.45rem;
}

.app-nav a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.68rem 0.8rem;
    border-radius: 16px;
    text-decoration: none;
    color: var(--color-muted);
    font-size: 0.92rem;
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.app-nav a:hover,
.app-nav a:focus-visible {
    color: var(--color-ink);
    background: rgba(15, 23, 40, 0.05);
}

.app-nav a.is-active {
    color: #14532d;
    background: linear-gradient(135deg, rgba(20, 83, 45, 0.11), rgba(20, 83, 45, 0.05));
    box-shadow: inset 3px 0 0 #22c55e, 0 2px 8px rgba(20, 83, 45, 0.07);
}

.app-nav__icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 1rem;
    line-height: 1;
}

.app-nav__icon--svg svg {
    width: 18px;
    height: 18px;
    display: block;
}

.app-nav a.is-active .app-nav__icon--svg svg {
    stroke: #14532d;
}

.app-nav__text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-nav__pin {
    min-width: 2.2rem;
    min-height: 2.2rem;
    border: 0;
    border-radius: 14px;
    background: rgba(15, 23, 40, 0.06);
    color: rgba(15, 23, 40, 0.5);
    font: inherit;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.app-nav__pin:hover,
.app-nav__pin:focus-visible {
    background: rgba(20, 83, 45, 0.12);
    color: var(--color-primary);
    outline: none;
}

.app-nav__pin.is-pinned {
    background: rgba(217, 119, 6, 0.12);
    color: #b45309;
}

.app-nav__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #dc2626;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    flex-shrink: 0;
    margin-left: auto;
}

.app-nav__dynamic-list {
    display: grid;
    gap: 0.35rem;
}

.app-sidebar__footer {
    display: grid;
    gap: 0.75rem;
}

.app-lang-switcher {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
}

.app-lang-switcher__btn {
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    border: 1px solid var(--color-border, rgba(0,0,0,0.12));
    background: transparent;
    color: var(--color-text-muted, #6b7280);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.app-lang-switcher__btn:hover {
    background: var(--color-surface-hover, rgba(0,0,0,0.05));
    color: var(--color-text, #111);
}

.app-lang-switcher__btn.is-active {
    background: var(--color-accent, #111);
    color: #fff;
    border-color: var(--color-accent, #111);
}

.app-main {
    min-width: 0;
    display: grid;
    align-content: start;
    grid-auto-rows: max-content;
    align-self: start;
    gap: 1rem;
}

.app-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(15, 23, 40, 0.08);
    border-radius: 18px;
    box-shadow: 0 8px 18px rgba(15, 23, 40, 0.06);
}

.app-topbar__headline {
    min-width: 0;
    display: grid;
    gap: 0.2rem;
}

.app-topbar__headline-copy {
    min-width: 0;
    display: grid;
    gap: 0.15rem;
}

.app-topbar__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-topbar__summary {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--color-muted);
    max-width: 56rem;
}

.app-topbar__eyebrow {
    margin: 0;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    white-space: nowrap;
}

.app-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    color: var(--color-muted);
}

.app-breadcrumbs a,
.app-breadcrumbs span {
    color: inherit;
    text-decoration: none;
}

.app-breadcrumbs a:hover,
.app-breadcrumbs a:focus-visible {
    color: var(--color-ink);
    outline: none;
}

.app-breadcrumbs span:last-child {
    color: var(--color-ink);
    font-weight: 700;
}

.app-breadcrumbs > * + *::before {
    content: "/";
    margin-right: 0.45rem;
    color: rgba(15, 23, 40, 0.28);
}

.app-topbar__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.35rem;
}

.app-topbar__meta span {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    background: rgba(15, 23, 40, 0.05);
    color: var(--color-muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.app-main__content {
    min-width: 0;
}

.app-main__content .app-shell {
    width: 100% !important;
    margin: 0;
}

.app-hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.app-hero-card__intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
}

.app-hero-card__body {
    margin: 0;
    max-width: 46rem;
    color: var(--color-muted);
    line-height: 1.8;
}

.app-hero-card__visual {
    margin: 0;
    width: clamp(86px, 14vw, 132px);
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    border-radius: 24px;
    border: 1px solid rgba(15, 23, 40, 0.1);
    background:
        radial-gradient(circle at 20% 20%, rgba(76, 139, 245, 0.18), transparent 62%),
        radial-gradient(circle at 80% 80%, rgba(255, 143, 92, 0.18), transparent 58%),
        rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 30px rgba(15, 23, 40, 0.12);
}

.app-hero-card__visual img {
    width: 100%;
    height: auto;
    display: block;
}

.app-hero-card__visual--wide {
    width: clamp(132px, 18vw, 196px);
}

.app-hero-card__billing {
    padding: 1rem 1.1rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(15, 23, 40, 0.08);
}

.app-hero-card__billing p,
.app-hero-card__billing strong {
    display: block;
    margin-bottom: 0.45rem;
}

.app-card-illustration {
    width: clamp(64px, 8vw, 82px);
    height: auto;
    display: block;
    margin: 0 0 0.8rem;
}

.analytics-metric-card {
    background:
        radial-gradient(circle at top right, rgba(76, 139, 245, 0.14), transparent 10rem),
        rgba(255, 255, 255, 0.92);
}

.analytics-metric-card__value {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    line-height: 1;
}

.analytics-metric-card__note {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.65;
}

.analytics-trend-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.analytics-trend-card {
    display: grid;
    gap: 0.9rem;
}

.analytics-trend-card__head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 0.75rem;
}

.analytics-trend-card__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.34rem 0.6rem;
    border-radius: 999px;
    background: rgba(76, 139, 245, 0.1);
    color: rgba(40, 77, 135, 0.88);
    font-size: 0.74rem;
    font-weight: 700;
}

.analytics-trend-card__empty {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.6;
}

.analytics-trend-list {
    display: grid;
    gap: 0.7rem;
}

.analytics-trend-list__item {
    padding: 0.9rem 0.95rem;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 40, 0.08);
    background: rgba(255, 255, 255, 0.74);
}

.analytics-trend-list__item strong {
    display: block;
    margin-bottom: 0.25rem;
}

.analytics-trend-list__item p {
    margin: 0.2rem 0 0;
    color: var(--color-muted);
    line-height: 1.55;
}

.billing-plan-card {
    background:
        radial-gradient(circle at top right, rgba(85, 214, 190, 0.18), transparent 10rem),
        rgba(255, 255, 255, 0.94);
}

/* Feature detail button in plan cards */
.feature-detail-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    font-size: inherit;
    color: inherit;
    cursor: pointer;
    text-align: left;
    line-height: inherit;
    transition: color 140ms ease;
}

.feature-detail-btn:hover {
    color: var(--color-accent, #0ea579);
}

.feature-detail-btn:hover .feature-detail-icon {
    background: var(--color-accent, #0ea579);
    color: #fff;
    border-color: transparent;
}

.feature-detail-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.1em;
    height: 1.1em;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    font-size: 0.68em;
    font-weight: 700;
    line-height: 1;
    opacity: 0.55;
    transition: opacity 140ms ease, background 140ms ease, color 140ms ease, border-color 140ms ease;
}

.feature-detail-btn:hover .feature-detail-icon {
    opacity: 1;
}

/* Feature popup overlay */
.feature-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 900;
    background: rgba(15, 23, 40, 0.45);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.feature-popup-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.feature-popup {
    position: relative;
    width: min(480px, 100%);
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 24px 64px rgba(15, 23, 40, 0.2), 0 2px 8px rgba(15, 23, 40, 0.08);
    overflow: hidden;
    transform: translateY(12px) scale(0.97);
    transition: transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-popup-overlay.is-open .feature-popup {
    transform: translateY(0) scale(1);
}

.feature-popup__image {
    width: 100%;
    height: 180px;
    object-fit: contain;
    background: linear-gradient(135deg, rgba(85, 214, 190, 0.12), rgba(14, 165, 121, 0.06));
    padding: 1.5rem 2rem 0;
    display: block;
}

.feature-popup__body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.feature-popup__title {
    margin: 0 0 0.6rem;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    line-height: 1.2;
    color: var(--color-heading, #0f1728);
    padding-right: 2rem;
}

.feature-popup__description {
    margin: 0;
    font-size: 0.93rem;
    color: var(--color-muted, #536078);
    line-height: 1.65;
}

.feature-popup__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(15, 23, 40, 0.06);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    color: var(--color-heading, #0f1728);
    transition: background 140ms ease;
}

.feature-popup__close:hover {
    background: rgba(15, 23, 40, 0.12);
}

.onboarding-progress {
    width: 100%;
    height: 0.72rem;
    margin: 0.8rem 0 0.95rem;
    border-radius: 999px;
    background: rgba(15, 23, 40, 0.08);
    overflow: hidden;
}

.onboarding-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--color-primary), var(--color-highlight));
}

.onboarding-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.onboarding-card {
    display: grid;
    gap: 0.9rem;
    padding: 1.15rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(15, 23, 40, 0.08);
    box-shadow: 0 14px 30px rgba(15, 23, 40, 0.06);
}

.onboarding-card--completed {
    background: linear-gradient(180deg, rgba(231, 245, 239, 0.95), rgba(255, 255, 255, 0.88));
}

.onboarding-card--in_progress {
    background: linear-gradient(180deg, rgba(231, 241, 255, 0.95), rgba(255, 255, 255, 0.88));
}

.onboarding-card__head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 0.8rem;
}

.onboarding-card__head strong {
    font-size: 1.08rem;
    line-height: 1.25;
}

.onboarding-card p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.7;
}

.onboarding-card__note,
.onboarding-focus-card__note,
.dash-card__meta {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.6;
}

.onboarding-focus-card {
    display: grid;
    gap: 0.85rem;
    align-content: start;
}

.documentation-layout {
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
}

.documentation-search {
    display: grid;
    gap: 0.85rem;
}

.documentation-search__field {
    display: grid;
    gap: 0.45rem;
}

.documentation-search__field input {
    width: 100%;
    padding: 0.85rem 0.95rem;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 40, 0.12);
    background: rgba(255, 255, 255, 0.88);
    font: inherit;
    color: var(--color-ink);
    transition: border-color 140ms ease, box-shadow 140ms ease;
}

.documentation-search__field input:focus {
    outline: none;
    border-color: rgba(20, 83, 45, 0.28);
    box-shadow: 0 0 0 3px rgba(20, 83, 45, 0.08);
}

.documentation-search__summary {
    margin: 0.85rem 0 0;
    color: var(--color-muted);
}

.documentation-list {
    display: grid;
    gap: 0.45rem;
}

.documentation-link {
    display: grid;
    gap: 0.2rem;
    padding: 0.6rem 0.8rem;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 40, 0.08);
    background: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    color: var(--color-ink);
}

.documentation-link p,
.documentation-link span {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.55;
}

.documentation-link span {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.documentation-link.is-active {
    border-color: rgba(20, 83, 45, 0.18);
    background: linear-gradient(180deg, rgba(231, 245, 239, 0.95), rgba(255, 255, 255, 0.88));
}

.documentation-panel--focus {
    border-color: rgba(20, 83, 45, 0.2);
    box-shadow:
        inset 3px 0 0 rgba(20, 83, 45, 0.7),
        var(--shadow-card);
}

.documentation-focus-banner {
    display: grid;
    gap: 0.7rem;
    margin-bottom: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(20, 83, 45, 0.14);
    background: linear-gradient(180deg, rgba(231, 245, 239, 0.9), rgba(255, 255, 255, 0.92));
}

.documentation-focus-banner__head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 1rem;
}

.documentation-focus-banner p,
.documentation-focus-banner strong {
    margin: 0;
}

.documentation-guide-card {
    gap: 0.9rem;
}

.documentation-guide-card__meta {
    display: block;
}

.documentation-guide-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.documentation-guide-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.documentation-guide-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.38rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 40, 0.08);
    background: rgba(15, 23, 40, 0.04);
    color: var(--color-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.documentation-reader {
    display: grid;
    gap: 0.9rem;
    align-content: start;
}

.documentation-reader__head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 1rem;
}

.documentation-reader__head span,
.documentation-reader__summary,
.documentation-reader__empty {
    margin: 0;
    color: var(--color-muted);
}

.documentation-reader__article {
    padding: 1.2rem 1.25rem;
    border-radius: 20px;
    background: rgba(15, 23, 40, 0.035);
    border: 1px solid rgba(15, 23, 40, 0.08);
}

.documentation-article {
    color: var(--color-ink);
    line-height: 1.72;
}

.documentation-article > :first-child {
    margin-top: 0;
}

.documentation-article > :last-child {
    margin-bottom: 0;
}

.documentation-article h1,
.documentation-article h2,
.documentation-article h3,
.documentation-article h4 {
    margin: 1.5rem 0 0.7rem;
    color: var(--color-ink);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.documentation-article h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3vw, 2.65rem);
}

.documentation-article h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 2.1vw, 1.85rem);
}

.documentation-article h3 {
    font-size: 1.08rem;
    font-weight: 800;
}

.documentation-article p,
.documentation-article ul,
.documentation-article ol,
.documentation-article pre {
    margin: 0 0 1rem;
}

.documentation-article ul,
.documentation-article ol {
    padding-left: 1.2rem;
}

.documentation-article li + li {
    margin-top: 0.42rem;
}

.documentation-article a {
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.documentation-article code {
    padding: 0.14rem 0.36rem;
    border-radius: 8px;
    background: rgba(15, 23, 40, 0.06);
    font-size: 0.92em;
}

.documentation-article pre {
    padding: 1rem 1.05rem;
    border-radius: 16px;
    background: rgba(15, 23, 40, 0.92);
    color: #edf2f7;
    overflow: auto;
}

.documentation-article pre code {
    padding: 0;
    background: transparent;
    color: inherit;
    font-size: 0.93rem;
}

.onboarding-status {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.onboarding-status--pending {
    background: rgba(15, 23, 40, 0.08);
    color: var(--color-muted);
}

.onboarding-status--in_progress {
    background: rgba(29, 78, 216, 0.12);
    color: #1d4ed8;
}

.onboarding-status--completed {
    background: rgba(20, 83, 45, 0.12);
    color: #14532d;
}

.auth-panel--story {
    background:
        radial-gradient(circle at top right, rgba(255, 143, 92, 0.18), transparent 14rem),
        linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(245, 239, 228, 0.92));
}

.auth-brand {
    display: inline-flex;
    margin-bottom: 1.4rem;
}

.auth-panel h1 {
    margin: 0 0 1rem;
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.auth-lead {
    margin: 0 0 1.5rem;
    color: var(--color-muted);
    line-height: 1.75;
    font-size: 1.02rem;
}

.auth-feature-list {
    display: grid;
    gap: 1rem;
}

.auth-feature-list article {
    padding: 1rem 1.1rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(15, 23, 40, 0.08);
}

.auth-feature-list strong {
    display: block;
    margin-bottom: 0.35rem;
}

.auth-feature-list p,
.auth-footnote {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.65;
}

.auth-footnote {
    margin-top: 1rem;
}

.auth-social {
    display: grid;
    gap: 0.85rem;
    margin-bottom: 1.2rem;
}

.button-social {
    width: 100%;
    justify-content: flex-start;
    padding: 0.95rem 1rem;
    border-radius: 20px;
}

.button-social--google {
    color: var(--color-ink);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(15, 23, 40, 0.1);
    box-shadow: 0 12px 28px rgba(15, 23, 40, 0.06);
}

.button-social--apple {
    color: #fff;
    background: linear-gradient(135deg, #111827, #020617);
    border: 1px solid rgba(17, 24, 39, 0.98);
    box-shadow: 0 14px 30px rgba(15, 23, 40, 0.18);
}

.button-social__icon {
    display: inline-grid;
    place-items: center;
    width: 1.2rem;
    height: 1.2rem;
    flex: 0 0 1.2rem;
}

.button-social__icon svg {
    width: 100%;
    height: 100%;
}

.auth-social__divider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.1rem 0 0.35rem;
    color: var(--color-muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.auth-social__divider::before {
    content: "";
    position: absolute;
    inset: 50% 0 auto;
    border-top: 1px solid rgba(15, 23, 40, 0.08);
}

.auth-social__divider span {
    position: relative;
    z-index: 1;
    padding: 0 0.8rem;
    background: rgba(255, 255, 255, 0.92);
}

.auth-social-pending {
    display: grid;
    gap: 0.45rem;
    margin-bottom: 1rem;
    padding: 1rem 1.05rem;
    border-radius: 22px;
    background: rgba(226, 245, 239, 0.9);
    border: 1px solid rgba(20, 83, 45, 0.12);
    color: #14532d;
}

.auth-social-pending p {
    margin: 0;
    line-height: 1.6;
}

.auth-input-readonly {
    background: rgba(243, 244, 246, 0.92);
    color: #475569;
}

.page-intro {
    display: grid;
    gap: 0.55rem;
    margin-bottom: 1.25rem;
}

.page-intro p {
    margin: 0;
    max-width: 58rem;
    color: var(--color-muted);
    line-height: 1.7;
}

.persona-switcher {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.9rem;
    margin: 0 0 1.25rem;
}

.persona-switcher a {
    display: grid;
    gap: 0.35rem;
    padding: 1rem 1.05rem;
    text-decoration: none;
    color: var(--color-muted);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(15, 23, 40, 0.08);
    border-radius: 22px;
    box-shadow: 0 12px 28px rgba(15, 23, 40, 0.06);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.persona-switcher a:hover,
.persona-switcher a:focus-visible {
    transform: translateY(-1px);
    color: var(--color-ink);
    border-color: rgba(20, 83, 45, 0.18);
}

.persona-switcher a strong {
    color: var(--color-ink);
    font-size: 1rem;
}

.persona-switcher a span,
.persona-switcher a small {
    line-height: 1.55;
}

.persona-switcher a small {
    color: var(--color-muted);
}

.persona-switcher a.is-active {
    color: #fff;
    background: linear-gradient(135deg, rgba(20, 83, 45, 0.96), rgba(18, 36, 79, 0.92));
    border-color: transparent;
    box-shadow: 0 18px 40px rgba(20, 83, 45, 0.18);
}

.persona-switcher a.is-active strong,
.persona-switcher a.is-active span,
.persona-switcher a.is-active small {
    color: inherit;
}

.form-row {
    display: grid;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
}

.form-row span {
    font-weight: 600;
}

.form-stack {
    display: grid;
    gap: 1.2rem;
}

.form-section {
    display: grid;
    gap: 1rem;
    padding: 1.15rem;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(15, 23, 40, 0.08);
    box-shadow: 0 10px 24px rgba(15, 23, 40, 0.05);
}

.form-section__header {
    display: grid;
    gap: 0.3rem;
}

.form-section__header h2 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    line-height: 1;
}

.form-section__header p {
    margin: 0;
    max-width: 58rem;
    color: var(--color-muted);
    line-height: 1.65;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 1rem;
}

.form-grid--single {
    grid-template-columns: 1fr;
}

.form-row--card {
    align-self: start;
    margin-bottom: 0;
    padding: 1rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(15, 23, 40, 0.08);
    box-shadow: 0 10px 22px rgba(15, 23, 40, 0.04);
}

.form-row--compact {
    margin-bottom: 0;
    padding: 0.9rem;
    border-radius: 18px;
    background: rgba(247, 244, 238, 0.9);
    border: 1px solid rgba(15, 23, 40, 0.08);
    box-shadow: none;
}

.form-row--wide {
    grid-column: 1 / -1;
}

.form-row__label {
    display: block;
    font-size: 0.98rem;
}

.form-row__help,
.form-row__example {
    display: block;
    margin: 0;
    font-weight: 400;
    line-height: 1.65;
}

.form-row__help {
    color: var(--color-muted);
    font-size: 0.94rem;
}

.form-row__example {
    color: var(--color-muted);
    font-size: 0.85rem;
}

.form-row input:not([type="checkbox"]):not([type="radio"]),
.form-row textarea,
.form-row select {
    width: 100%;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 40, 0.14);
    background: rgba(255, 255, 255, 0.96);
    font: inherit;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.form-row input:not([type="checkbox"]):not([type="radio"]):focus,
.form-row textarea:focus,
.form-row select:focus {
    outline: none;
    border-color: rgba(20, 83, 45, 0.5);
    box-shadow: 0 0 0 4px rgba(85, 214, 190, 0.16);
}

label.form-row {
    cursor: pointer;
}

label.form-row > span.form-row__label,
label.form-row > span.form-row__help,
label.form-row > span.form-row__example {
    display: block;
    width: 100%;
}

label.form-row > span:not(.form-row__label):not(.form-row__help):not(.form-row__example) {
    display: inline-flex;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 0.7rem;
    line-height: 1.45;
}

.form-row input[type="checkbox"],
.form-row input[type="radio"] {
    flex: 0 0 auto;
    width: 1.05rem;
    height: 1.05rem;
    margin: 0;
    padding: 0;
    accent-color: var(--color-primary);
}

.form-row input[type="file"] {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.color-field {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.color-field__picker {
    width: 3.25rem;
    height: 3.25rem;
    padding: 0;
    border: none;
    border-radius: 16px;
    background: transparent;
    cursor: pointer;
}

.color-field__picker::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-field__picker::-webkit-color-swatch {
    border: 1px solid rgba(15, 23, 40, 0.14);
    border-radius: 14px;
}

.color-field__picker::-moz-color-swatch {
    border: 1px solid rgba(15, 23, 40, 0.14);
    border-radius: 14px;
}

.color-field__value {
    display: inline-flex;
    align-items: center;
    min-height: 2.4rem;
    padding: 0.55rem 0.8rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(15, 23, 40, 0.08);
    color: var(--color-muted);
    font-weight: 600;
    letter-spacing: 0.04em;
}

.font-picker-layout {
    display: grid;
    grid-template-columns: minmax(220px, 300px) minmax(360px, 1fr);
    align-items: start;
    gap: 1rem;
}

.font-preview-card {
    display: grid;
    gap: 0.8rem;
    min-width: 0;
    min-height: 0;
    padding: 1rem 1.15rem;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(85, 214, 190, 0.14), transparent 10rem),
        rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 40, 0.08);
    box-shadow: 0 12px 26px rgba(15, 23, 40, 0.06);
}

.font-preview-card__label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary);
}

.font-preview-card__title {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.1;
}

.font-preview-card__body {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.65;
}

.font-preview-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 2.8rem;
    padding: 0.8rem 1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--color-primary), #1f7a45);
    color: #fff;
    font-weight: 700;
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.form-actions__note {
    margin: 0;
    max-width: 42rem;
    color: var(--color-muted);
    line-height: 1.65;
}

.source-card {
    display: grid;
    gap: 0.75rem;
}

.source-card__endpoint {
    margin: 0;
    word-break: break-word;
    color: var(--color-muted);
    line-height: 1.55;
}

.source-card__actions {
    margin: 0;
}

.info-tabs {
    display: grid;
    gap: 0.9rem;
}

.info-tabs__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 0.35rem;
    border-radius: 18px;
    background: rgba(20, 83, 45, 0.06);
    border: 1px solid rgba(20, 83, 45, 0.08);
    width: fit-content;
    max-width: 100%;
}

.info-tabs__button {
    appearance: none;
    border: 0;
    border-radius: 14px;
    padding: 0.62rem 0.9rem;
    background: transparent;
    color: rgba(16, 33, 47, 0.74);
    font: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.info-tabs__button:hover,
.info-tabs__button:focus-visible {
    background: rgba(20, 83, 45, 0.08);
    color: var(--color-ink);
    outline: none;
}

.info-tabs__button[aria-selected="true"] {
    background: #fff;
    color: var(--color-ink);
    box-shadow: 0 10px 24px rgba(15, 23, 40, 0.08);
}

.info-tabs__panel {
    display: grid;
    gap: 0.8rem;
    padding: 1rem;
    border-radius: 22px;
    border: 1px solid rgba(15, 23, 40, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 244, 238, 0.92)),
        radial-gradient(circle at top right, rgba(85, 214, 190, 0.12), transparent 14rem);
}

.info-tabs__panel[hidden] {
    display: none;
}

@media (max-width: 640px) {
    .info-tabs__nav {
        width: 100%;
    }

    .info-tabs__button {
        flex: 1 1 calc(50% - 0.45rem);
        justify-content: center;
        text-align: center;
    }
}

.workflow-rule-list {
    display: grid;
    gap: 1rem;
}

.workflow-rule-card {
    position: relative;
    overflow: hidden;
}

.workflow-rule-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(85, 214, 190, 0.12), transparent 14rem),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 55%);
    pointer-events: none;
}

.workflow-rule-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.workflow-rule-card__identity {
    display: grid;
    gap: 0.55rem;
}

.workflow-rule-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.workflow-rule-card__meta-item {
    display: inline-flex;
    align-items: center;
    padding: 0.32rem 0.58rem;
    border-radius: 999px;
    background: rgba(15, 23, 40, 0.06);
    color: var(--color-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.workflow-rule-card__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.55rem;
}

.workflow-rule-card__actions form {
    margin: 0;
}

.workflow-rule-card__action-btn {
    padding: 0.58rem 0.88rem;
    font-size: 0.8rem;
}

.workflow-rule-card__action-btn--danger {
    color: #b42318;
    border-color: rgba(180, 35, 24, 0.18);
    background: rgba(180, 35, 24, 0.05);
}

.workflow-rule-card__status-row {
    margin-top: 0.05rem;
}

.workflow-rule-card__state--enabled {
    background: rgba(22, 163, 74, 0.12);
    color: #166534;
}

.workflow-rule-card__state--disabled {
    background: rgba(148, 163, 184, 0.16);
    color: #475569;
}

.workflow-rule-card__body {
    display: grid;
    gap: 0.95rem;
}

.workflow-rule-card__description {
    max-width: 62rem;
}

.workflow-rule-card__summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.95rem;
}

.workflow-rule-card__panel {
    display: grid;
    gap: 0.35rem;
    padding: 1rem;
    border-radius: 22px;
    border: 1px solid rgba(15, 23, 40, 0.08);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 20px rgba(15, 23, 40, 0.04);
}

.workflow-rule-card__panel--accent {
    background:
        radial-gradient(circle at top right, rgba(85, 214, 190, 0.12), transparent 10rem),
        rgba(255, 255, 255, 0.92);
}

.workflow-rule-card__panel-label {
    margin: 0;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-primary);
    font-weight: 700;
}

.workflow-rule-card__panel h3 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.04rem;
    line-height: 1.05;
}

.workflow-rule-card__hint {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.6;
    font-size: 0.93rem;
}

.workflow-rule-chip-list {
    margin: 0.35rem 0 0;
}

.workflow-rule-card__editor {
    margin-top: 0.25rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(15, 23, 40, 0.08);
}

.workflow-builder-list {
    display: grid;
    gap: 0.6rem;
    margin-top: 0.2rem;
}

.workflow-condition-row,
.workflow-action-row {
    display: grid;
    align-items: center;
    gap: 0.55rem;
    padding: 0.82rem;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 40, 0.08);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 8px 18px rgba(15, 23, 40, 0.04);
}

.workflow-condition-row {
    grid-template-columns: minmax(0, 1fr) 7rem minmax(0, 1fr) auto;
}

.workflow-action-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
}

.workflow-row-remove {
    padding: 0.42rem 0.6rem;
    font-size: 0.78rem;
    color: #b42318;
    border-color: rgba(180, 35, 24, 0.18);
    background: rgba(180, 35, 24, 0.05);
}

.workflow-builder-add {
    justify-self: start;
    margin-top: 0.15rem;
    font-size: 0.82rem;
}

@media (max-width: 900px) {
    .workflow-rule-card__header,
    .workflow-rule-card__summary {
        display: grid;
        grid-template-columns: 1fr;
    }

    .workflow-rule-card__actions {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .workflow-condition-row,
    .workflow-action-row {
        grid-template-columns: 1fr;
    }

    .workflow-row-remove {
        justify-self: start;
    }
}

.knowledge-shell {
    width: min(1100px, calc(100vw - 2rem));
}

.knowledge-hero {
    margin-bottom: 1.2rem;
}

.knowledge-hero__title {
    margin: 0 0 0.8rem;
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 0.94;
}

.knowledge-grid {
    padding-bottom: 1.4rem;
}

.knowledge-card {
    display: grid;
    align-content: start;
}

.knowledge-card .form-section__header {
    margin-bottom: 0.1rem;
}

.knowledge-card .form-section__header h2,
.knowledge-card .form-row__label {
    white-space: nowrap;
}

.knowledge-sources-section {
    margin-top: 0.1rem;
}

.knowledge-source-card {
    display: grid;
    gap: 0.45rem;
}

.knowledge-source-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.knowledge-source-card p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.6;
}

.upload-picker {
    position: relative;
    display: grid;
    gap: 0.8rem;
    padding: 0.95rem;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(85, 214, 190, 0.14), transparent 12rem),
        rgba(250, 251, 248, 0.96);
    border: 1px solid rgba(15, 23, 40, 0.08);
    box-shadow: 0 14px 32px rgba(15, 23, 40, 0.06);
    overflow: hidden;
}

.upload-picker__input {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-picker__surface {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    min-height: 0;
    padding: 1rem 1.05rem;
    border-radius: 18px;
    border: 1px dashed rgba(20, 83, 45, 0.28);
    background: rgba(255, 255, 255, 0.74);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.upload-picker:hover .upload-picker__surface,
.upload-picker.is-dragging .upload-picker__surface,
.upload-picker.has-file .upload-picker__surface,
.upload-picker__input:focus-visible + .upload-picker__surface {
    transform: translateY(-1px);
    border-color: rgba(20, 83, 45, 0.46);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 34px rgba(20, 83, 45, 0.1);
}

.upload-picker__icon-shell {
    display: inline-grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 16px;
    color: var(--color-primary);
    background: rgba(20, 83, 45, 0.08);
    border: 1px solid rgba(20, 83, 45, 0.12);
}

.upload-picker__icon {
    width: 1.3rem;
    height: 1.3rem;
}

.upload-picker__content {
    display: grid;
    gap: 0.72rem;
    min-width: 0;
}

.upload-picker__copy {
    display: grid;
    gap: 0.28rem;
    min-width: 0;
}

.upload-picker__eyebrow {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary);
}

.upload-picker__title {
    color: var(--color-ink);
    font-size: 1.04rem;
    line-height: 1.22;
    max-width: 30rem;
}

.upload-picker__filename {
    display: inline-flex;
    align-items: center;
    min-height: 2.55rem;
    min-width: 0;
    max-width: 100%;
    padding: 0.58rem 0.78rem;
    border-radius: 12px;
    background: rgba(247, 244, 238, 0.92);
    border: 1px solid rgba(15, 23, 40, 0.08);
    color: var(--color-muted);
    font-size: 0.96rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.upload-picker__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 9.75rem;
    min-height: 2.75rem;
    padding: 0.76rem 1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--color-primary), #103c61);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 16px 30px rgba(20, 83, 45, 0.18);
    pointer-events: none;
}

.upload-picker__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
}

.upload-picker__footer {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.upload-picker__badge {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(20, 83, 45, 0.08);
    color: var(--color-primary);
    border: 1px solid rgba(20, 83, 45, 0.12);
    font-size: 0.83rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.upload-picker.has-file .upload-picker__badge {
    background: rgba(20, 83, 45, 0.12);
}

.upload-picker__meta {
    color: var(--color-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.upload-picker__preview {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    gap: 0.9rem;
    padding: 0.85rem 0.95rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(15, 23, 40, 0.08);
}

.upload-picker__preview[hidden] {
    display: none;
}

.upload-picker__preview img {
    display: block;
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 16px;
    background: rgba(15, 23, 40, 0.05);
    border: 1px solid rgba(15, 23, 40, 0.08);
}

.upload-picker__preview-copy {
    display: grid;
    gap: 0.2rem;
}

.upload-picker__preview-copy strong {
    color: var(--color-ink);
}

.upload-picker__preview-copy span {
    color: var(--color-muted);
    line-height: 1.55;
}

.upload-picker--knowledge {
    isolation: isolate;
    padding: 1.1rem;
    border-radius: 24px;
    border: 1px solid rgba(16, 38, 28, 0.14);
    background:
        radial-gradient(circle at 8% 10%, rgba(21, 94, 60, 0.14), transparent 36%),
        radial-gradient(circle at 92% 8%, rgba(20, 68, 108, 0.12), transparent 34%),
        linear-gradient(150deg, rgba(255, 255, 255, 0.96), rgba(244, 249, 247, 0.94));
    box-shadow: 0 20px 44px rgba(15, 23, 40, 0.1);
}

.upload-picker--knowledge::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background:
        linear-gradient(125deg, rgba(255, 255, 255, 0.5), transparent 40%),
        repeating-linear-gradient(
            -45deg,
            rgba(16, 38, 28, 0.015) 0 8px,
            rgba(16, 38, 28, 0) 8px 16px
        );
    z-index: -1;
}

.upload-picker--knowledge .upload-picker__surface {
    position: relative;
    padding: 1.18rem 1.22rem;
    border-radius: 20px;
    border: 1px dashed rgba(20, 83, 45, 0.42);
    background:
        linear-gradient(155deg, rgba(255, 255, 255, 0.92), rgba(250, 252, 251, 0.84));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.84),
        0 10px 24px rgba(12, 37, 28, 0.07);
}

.upload-picker--knowledge .upload-picker__surface::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.45);
    pointer-events: none;
}

.upload-picker--knowledge:hover .upload-picker__surface,
.upload-picker--knowledge.is-dragging .upload-picker__surface,
.upload-picker--knowledge.has-file .upload-picker__surface,
.upload-picker--knowledge .upload-picker__input:focus-visible + .upload-picker__surface {
    transform: translateY(-2px);
    border-color: rgba(16, 86, 58, 0.62);
    background:
        linear-gradient(155deg, rgba(255, 255, 255, 0.97), rgba(245, 252, 249, 0.9));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.94),
        0 18px 34px rgba(13, 47, 34, 0.15);
}

.upload-picker--knowledge .upload-picker__icon-shell {
    width: 3.3rem;
    height: 3.3rem;
    border-radius: 18px;
    border: 1px solid rgba(20, 83, 45, 0.2);
    color: #14532d;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.78), transparent 50%),
        linear-gradient(165deg, rgba(215, 230, 224, 0.95), rgba(230, 238, 235, 0.84));
}

.upload-picker--knowledge .upload-picker__eyebrow {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    min-height: 1.5rem;
    padding: 0.1rem 0.56rem;
    border-radius: 999px;
    background: rgba(20, 83, 45, 0.1);
    border: 1px solid rgba(20, 83, 45, 0.16);
    letter-spacing: 0.1em;
}

.upload-picker--knowledge .upload-picker__title {
    font-size: clamp(1.04rem, 1.6vw, 1.18rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.upload-picker--knowledge .upload-picker__filename {
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 40, 0.12);
    background: rgba(247, 245, 241, 0.92);
    font-weight: 600;
}

.upload-picker--knowledge .upload-picker__button {
    min-width: 10.25rem;
    min-height: 2.9rem;
    border-radius: 999px;
    font-size: 0.96rem;
    background: linear-gradient(135deg, #166534 0%, #0f4f81 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.24),
        0 14px 28px rgba(14, 70, 52, 0.24);
}

.upload-picker--knowledge .upload-picker__footer {
    margin-top: 0.1rem;
    padding-top: 0.36rem;
    border-top: 1px solid rgba(15, 23, 40, 0.08);
}

.upload-picker--knowledge .upload-picker__badge {
    background: rgba(98, 107, 131, 0.12);
    color: #334155;
    border-color: rgba(98, 107, 131, 0.22);
}

.upload-picker--knowledge.has-file .upload-picker__badge {
    background: rgba(15, 79, 129, 0.12);
    color: #0f4f81;
    border-color: rgba(15, 79, 129, 0.24);
}

.upload-picker--knowledge.is-image-file .upload-picker__badge {
    background: rgba(22, 101, 52, 0.14);
    color: #14532d;
    border-color: rgba(22, 101, 52, 0.26);
}

.upload-picker--knowledge .upload-picker__meta {
    font-size: 0.95rem;
    line-height: 1.52;
}

.upload-picker--knowledge .upload-picker__preview {
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 40, 0.1);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.detail-list {
    display: grid;
    gap: 0.65rem;
    margin: 0;
}

.detail-list div {
    display: grid;
    gap: 0.12rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(15, 23, 40, 0.08);
}

.detail-list dt {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary);
}

.detail-list dd {
    margin: 0;
    color: var(--color-ink);
    line-height: 1.5;
}

.code-block {
    margin: 0;
    padding: 1rem 1.05rem;
    overflow-x: auto;
    border-radius: 18px;
    background: rgba(15, 23, 40, 0.95);
    color: #f6f8fb;
    font-family: "SFMono-Regular", "Menlo", "Consolas", monospace;
    font-size: 0.92rem;
    line-height: 1.7;
    white-space: pre-wrap;
}

.snippet-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.snippet-copy-button {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.58rem 0.85rem;
    border: 1px solid rgba(15, 23, 40, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-ink);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.snippet-copy-button:hover,
.snippet-copy-button:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(20, 83, 45, 0.26);
    box-shadow: 0 10px 24px rgba(15, 23, 40, 0.08);
}

.snippet-copy-button svg {
    width: 1rem;
    height: 1rem;
    flex: 0 0 1rem;
}

.snippet-card__status {
    min-height: 1.15rem;
    margin: 0.7rem 0 0;
    font-size: 0.88rem;
    line-height: 1.4;
    color: var(--color-muted);
}

.snippet-card__status.is-success {
    color: var(--color-primary);
}

.snippet-card__status.is-error {
    color: #8d143c;
}

.assistant-current-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.9rem;
    border-radius: 20px;
    background: rgba(247, 244, 238, 0.92);
    border: 1px solid rgba(15, 23, 40, 0.08);
}

.assistant-current-card img {
    width: 4.25rem;
    height: 4.25rem;
    object-fit: cover;
    border-radius: 50%;
    flex: 0 0 4.25rem;
    box-shadow: 0 10px 22px rgba(15, 23, 40, 0.1);
}

.assistant-current-card strong {
    display: block;
    margin-bottom: 0.2rem;
}

.assistant-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.9rem;
}

.assistant-photo-card {
    display: grid;
    gap: 0.55rem;
    padding: 0.8rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(15, 23, 40, 0.08);
    box-shadow: 0 10px 22px rgba(15, 23, 40, 0.04);
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.assistant-photo-card:hover,
.assistant-photo-card:focus-within {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(15, 23, 40, 0.08);
    border-color: rgba(20, 83, 45, 0.22);
}

.assistant-photo-card.is-selected,
.assistant-photo-card:has(input:checked) {
    border-color: rgba(20, 83, 45, 0.34);
    box-shadow: 0 18px 34px rgba(20, 83, 45, 0.1);
}

.assistant-photo-card input[type="radio"] {
    accent-color: var(--color-primary);
}

.assistant-photo-card img {
    width: 100%;
    aspect-ratio: 1 / 1.15;
    object-fit: cover;
    border-radius: 18px;
}

.assistant-photo-card__label {
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.4;
}

.alert {
    margin-bottom: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    line-height: 1.6;
}

.alert-error {
    color: #8d143c;
    background: rgba(250, 227, 236, 0.92);
    border: 1px solid rgba(157, 18, 57, 0.12);
}

.alert-success {
    color: #0d4b3a;
    background: rgba(229, 247, 239, 0.95);
    border: 1px solid rgba(13, 75, 58, 0.12);
}

.field-error {
    color: #8d143c;
}

.data-list {
    display: grid;
    gap: var(--space-4);
}

.data-list article {
    padding: var(--space-5);
    background: white;
    border-radius: 18px;
    border: 1px solid var(--color-border);
}

.platform-frame {
    width: min(1440px, calc(100vw - 2rem));
}

.platform-sidebar {
    background:
        radial-gradient(circle at top right, rgba(85, 214, 190, 0.18), transparent 12rem),
        linear-gradient(180deg, rgba(16, 32, 52, 0.98), rgba(20, 33, 51, 0.96));
    color: rgba(255, 255, 255, 0.94);
}

.platform-sidebar .app-sidebar__workspace,
.platform-sidebar .app-sidebar__footer,
.platform-sidebar .app-nav__group {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.08);
}

.platform-sidebar .app-sidebar__subtle,
.platform-sidebar .app-nav a,
.platform-sidebar .brand-lockup__text small,
.platform-sidebar .brand-lockup__micro {
    color: rgba(235, 240, 247, 0.72);
}

.platform-sidebar .app-sidebar__eyebrow,
.platform-sidebar .app-nav__label,
.platform-topbar .app-topbar__eyebrow {
    color: rgba(85, 214, 190, 0.96);
}

.platform-sidebar .brand-lockup__text strong,
.platform-sidebar .brand-lockup__name-ai,
.platform-sidebar .brand-lockup__name-support,
.platform-sidebar .app-sidebar__workspace h2,
.platform-sidebar .app-nav a:hover,
.platform-sidebar .app-nav a:focus-visible,
.platform-sidebar .app-nav a.is-active {
    color: #fff;
}

.platform-sidebar .brand-lockup__mark-shell {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: none;
}

.platform-sidebar .app-nav a:hover,
.platform-sidebar .app-nav a:focus-visible {
    background: rgba(255, 255, 255, 0.08);
}

.platform-sidebar .app-nav a.is-active {
    background: linear-gradient(135deg, rgba(85, 214, 190, 0.35), rgba(22, 163, 74, 0.32));
    box-shadow: none;
}

.platform-shell {
    display: grid;
    gap: 1.2rem;
}

.platform-hero-card {
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
}

.platform-hero-card__aside {
    background:
        linear-gradient(180deg, rgba(16, 32, 52, 0.96), rgba(26, 49, 74, 0.94));
    color: rgba(255, 255, 255, 0.92);
}

.platform-hero-card__aside p,
.platform-hero-card__aside strong {
    color: inherit;
}

.platform-summary-grid {
    padding-bottom: 0;
}

.platform-summary-grid--compact {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.platform-stat-card {
    display: grid;
    gap: 0.5rem;
    background:
        radial-gradient(circle at top right, rgba(85, 214, 190, 0.14), transparent 10rem),
        rgba(255, 255, 255, 0.94);
}

.platform-stat-card__label {
    margin: 0;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-primary);
}

.platform-stat-card__value {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 0.9;
}

.platform-stat-card__note {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.65;
}

.platform-section {
    display: grid;
    gap: 1rem;
}

.platform-section__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.platform-section__head h2,
.platform-plan-card h2 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    line-height: 1;
}

.platform-table-card {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 26px;
    border: 1px solid rgba(15, 23, 40, 0.08);
    box-shadow: 0 14px 32px rgba(15, 23, 40, 0.05);
}

.platform-table-wrap {
    overflow-x: auto;
}

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

.platform-table th,
.platform-table td {
    padding: 1rem 0.9rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid rgba(15, 23, 40, 0.08);
}

.platform-table th {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary);
}

.platform-table__meta {
    margin-top: 0.3rem;
    color: var(--color-muted);
    line-height: 1.55;
    font-size: 0.92rem;
}

.platform-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.34rem 0.6rem;
    border-radius: 999px;
    background: rgba(15, 23, 40, 0.07);
    color: var(--color-ink);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.platform-badge--success {
    background: rgba(20, 83, 45, 0.12);
    color: #14532d;
}

.platform-badge--warning {
    background: rgba(217, 119, 6, 0.14);
    color: #9a5a03;
}

.platform-split-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}

.platform-split-grid--wide {
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
}

.platform-list-card {
    display: grid;
    gap: 0.45rem;
}

.platform-list-card p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.6;
}

.platform-list-card__head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.platform-list-card__time {
    color: var(--color-muted);
    font-size: 0.86rem;
}

.platform-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.35rem;
}

.platform-inline-actions form {
    margin: 0;
}

.platform-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.platform-empty-state {
    margin: 0;
    padding: 1rem 0;
    color: var(--color-muted);
    line-height: 1.7;
}

.platform-plan-card {
    display: grid;
    gap: 1rem;
}

.platform-plan-card__head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.platform-plan-card__pricing {
    display: grid;
    gap: 0.2rem;
    justify-items: end;
}

.platform-plan-card__pricing strong {
    font-size: 1.4rem;
}

.platform-plan-card__pricing span,
.platform-plan-card__pricing small,
.platform-plan-card__description {
    color: var(--color-muted);
}

.platform-plan-card__description {
    margin: 0;
    line-height: 1.7;
}

.platform-plan-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.platform-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.8rem;
}

.platform-feature-chip {
    display: grid;
    gap: 0.3rem;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    background: rgba(15, 23, 40, 0.03);
    border: 1px solid rgba(15, 23, 40, 0.06);
}

.platform-feature-chip span {
    color: var(--color-muted);
    line-height: 1.55;
}

@media (max-width: 900px) {
    .app-frame {
        grid-template-columns: 1fr;
    }

    .app-sidebar {
        position: static;
        max-height: none;
        overflow: visible;
    }

    .app-topbar {
        align-items: start;
        grid-template-columns: 1fr;
    }

    .app-topbar__meta {
        justify-content: flex-start;
    }

    .app-nav__doc-actions {
        flex-direction: column;
    }

    .app-topbar__title {
        white-space: normal;
    }

    .app-topbar__summary {
        max-width: none;
    }

    .app-topbar__headline {
        display: grid;
        gap: 0.12rem;
        align-items: start;
    }

    .app-hero-card {
        grid-template-columns: 1fr;
    }

    .app-hero-card__intro {
        grid-template-columns: 1fr;
    }

    .app-hero-card__visual {
        justify-self: start;
    }

    .documentation-focus-banner__head {
        flex-direction: column;
    }

    .onboarding-grid {
        grid-template-columns: 1fr;
    }

    .auth-topbar__inner {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .auth-topbar__nav {
        justify-content: flex-start;
    }

    .auth-topbar__actions {
        width: 100%;
    }

    .auth-shell--wide {
        grid-template-columns: 1fr;
    }

    .auth-footer-nav {
        justify-content: flex-start;
        margin-top: -2.5rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .font-picker-layout {
        grid-template-columns: 1fr;
    }

    .upload-picker__surface {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .upload-picker__content {
        gap: 0.82rem;
    }

    .upload-picker__actions {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .upload-picker__button {
        min-width: 0;
        width: 100%;
    }

    .upload-picker__preview {
        grid-template-columns: 1fr;
    }

    .knowledge-card .form-section__header h2,
    .knowledge-card .form-row__label {
        white-space: normal;
    }

    .platform-split-grid,
    .platform-split-grid--wide,
    .platform-detail-grid,
    .platform-hero-card {
        grid-template-columns: 1fr;
    }
}

/* ─── Dashboard enhancements ─────────────────────────────────────── */

@keyframes bar-rise {
    from { transform: scaleY(0); }
    to   { transform: scaleY(1); }
}

@keyframes chart-line-draw {
    from { clip-path: inset(0 100% 0 0); }
    to   { clip-path: inset(0 0% 0 0); }
}

@keyframes dash-orb-pulse {
    0%, 100% { opacity: 0.55; transform: scale(1); }
    50%       { opacity: 0.8;  transform: scale(1.12); }
}

/* Nav icon */
.app-nav__icon {
    font-size: 0.95em;
    line-height: 1;
    flex-shrink: 0;
}

/* Sidebar nav link — tighter row with icon */
.app-nav a {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.app-nav__text {
    min-width: 0;
}


/* ─── Dashboard cards ──────────────────────────────────────── */

.dash-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition:
        transform 200ms ease,
        box-shadow 200ms ease,
        border-color 200ms ease;
}

.dash-card:hover {
    transform: translateY(-3px);
    box-shadow:
        0 12px 28px rgba(15, 23, 40, 0.1),
        0 2px 6px rgba(15, 23, 40, 0.06);
    border-color: rgba(85, 214, 190, 0.35);
}

.dash-card > strong {
    display: block;
    font-size: 1rem;
    margin-top: 0.25rem;
}

.dash-card > p {
    flex: 1;
    color: var(--color-muted);
    line-height: 1.65;
    margin: 0;
}

.dash-card > .button {
    align-self: flex-start;
    margin-top: 0.5rem;
}

.dash-metric-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.dash-metric-card {
    display: grid;
    gap: 0.35rem;
    align-content: start;
}

.dash-metric-card__label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(20, 83, 45, 0.72);
}

.dash-metric-card__value {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 0.95;
}

.dash-metric-card__note {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.55;
}

.dash-ops-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.dash-ops-card {
    display: grid;
    gap: 0.9rem;
    align-content: start;
}

.dash-ops-card__head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 0.9rem;
}

.dash-ops-card__empty {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.6;
}

.dash-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dash-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.36rem 0.62rem;
    border-radius: 999px;
    background: rgba(20, 83, 45, 0.08);
    color: rgba(20, 83, 45, 0.92);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
}

.dash-inline-list {
    display: grid;
    gap: 0.7rem;
}

.dash-inline-list__item {
    padding: 0.85rem 0.95rem;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 40, 0.08);
    background: rgba(255, 255, 255, 0.74);
}

.dash-inline-list__item strong {
    display: block;
    margin-bottom: 0.25rem;
}

.dash-inline-list__item p {
    margin: 0.18rem 0 0;
    color: var(--color-muted);
    line-height: 1.55;
}

.dash-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.8rem;
}

/* ─── Card icon containers ─────────────────────────────────── */

.dash-card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    line-height: 1;
    margin-bottom: 0.25rem;
    border: 1px solid rgba(15, 23, 40, 0.07);
    box-shadow: 0 4px 12px rgba(15, 23, 40, 0.08);
}

.dash-card-icon--setup {
    background: linear-gradient(135deg, rgba(85, 214, 190, 0.22), rgba(20, 83, 45, 0.12));
}

.dash-card-icon--bot {
    background: linear-gradient(135deg, rgba(76, 139, 245, 0.22), rgba(85, 214, 190, 0.12));
}

.dash-card-icon--knowledge {
    background: linear-gradient(135deg, rgba(244, 142, 98, 0.22), rgba(255, 200, 100, 0.12));
}

.dash-card-icon--widget {
    background: linear-gradient(135deg, rgba(20, 83, 45, 0.16), rgba(85, 214, 190, 0.18));
}

.dash-card-icon--workflows {
    background: linear-gradient(135deg, rgba(255, 200, 60, 0.24), rgba(244, 142, 98, 0.16));
}

.dash-card-icon--analytics {
    background: linear-gradient(135deg, rgba(76, 139, 245, 0.24), rgba(130, 80, 230, 0.14));
}

/* ─── Hero card overrides ──────────────────────────────────── */

.dash-hero-card {
    position: relative;
    overflow: hidden;
}

.dash-hero-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        135deg,
        rgba(85, 214, 190, 0.07) 0%,
        transparent 60%
    );
    pointer-events: none;
}

/* ─── Mini chart visual ────────────────────────────────────── */

.dash-hero-visual {
    width: clamp(86px, 14vw, 132px);
    aspect-ratio: 1 / 1;
    border-radius: 24px;
    border: 1px solid rgba(15, 23, 40, 0.1);
    background:
        radial-gradient(circle at 20% 20%, rgba(85, 214, 190, 0.22), transparent 62%),
        radial-gradient(circle at 80% 80%, rgba(76, 139, 245, 0.18), transparent 58%),
        rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 30px rgba(15, 23, 40, 0.12);
    display: grid;
    place-items: center;
    padding: 0.8rem;
    overflow: hidden;
    position: relative;
}

.dash-hero-visual::before {
    content: '';
    position: absolute;
    width: 70%;
    height: 70%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(85, 214, 190, 0.18), transparent 70%);
    animation: dash-orb-pulse 3.5s ease-in-out infinite;
    pointer-events: none;
}

.dash-mini-chart {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.25rem;
}

.dash-mini-chart__bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 68%;
    flex: 0 0 auto;
}

.dash-mini-chart__bars span {
    flex: 1;
    height: var(--h, 50%);
    border-radius: 3px 3px 0 0;
    background: linear-gradient(
        to top,
        rgba(20, 83, 45, 0.7),
        rgba(85, 214, 190, 0.85)
    );
    transform-origin: bottom;
    animation: bar-rise 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.dash-mini-chart__bars span:nth-child(1) { animation-delay: 0.05s; }
.dash-mini-chart__bars span:nth-child(2) { animation-delay: 0.10s; }
.dash-mini-chart__bars span:nth-child(3) { animation-delay: 0.15s; }
.dash-mini-chart__bars span:nth-child(4) { animation-delay: 0.20s; }
.dash-mini-chart__bars span:nth-child(5) { animation-delay: 0.25s; }
.dash-mini-chart__bars span:nth-child(6) { animation-delay: 0.30s; }
.dash-mini-chart__bars span:nth-child(7) { animation-delay: 0.35s; }

.dash-mini-chart__line {
    width: 100%;
    height: 1.5px;
    background: linear-gradient(
        90deg,
        rgba(85, 214, 190, 0.7),
        rgba(76, 139, 245, 0.5)
    );
    border-radius: 2px;
    animation: chart-line-draw 0.8s ease 0.3s both;
}

.dash-mini-chart__label {
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: rgba(20, 83, 45, 0.7);
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ─── Page hero illustrations (replaces app-hero-*.png) ──────── */

.pvis-wrap {
    overflow: hidden;
    padding: 0;
}

.pvis {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem;
}

/* ── Language Settings ───────────────────────────────────── */

.pvis--lang {
    background:
        radial-gradient(circle at 30% 30%, rgba(85, 214, 190, 0.18), transparent 60%),
        radial-gradient(circle at 70% 70%, rgba(76, 139, 245, 0.12), transparent 55%);
}

.pvis-globe {
    font-size: 2.8rem;
    line-height: 1;
    filter: drop-shadow(0 4px 8px rgba(85, 214, 190, 0.35));
}

.pvis-lang-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.22rem;
}

.pvis-lang-tags span {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.42rem;
    border-radius: 999px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    border: 1px solid rgba(15, 23, 40, 0.12);
    background: rgba(255, 255, 255, 0.85);
    color: var(--color-primary);
}

.pvis-lang-tags span:nth-child(2) { background: rgba(85, 214, 190, 0.15); }
.pvis-lang-tags span:nth-child(3) { background: rgba(244, 142, 98, 0.12); }
.pvis-lang-tags span:nth-child(4) { background: rgba(76, 139, 245, 0.12); }

/* ── Widget ──────────────────────────────────────────────── */

.pvis--widget {
    background:
        radial-gradient(circle at 50% 30%, rgba(85, 214, 190, 0.14), transparent 55%);
    position: relative;
    gap: 0;
}

.pvis-chat-frame {
    width: 80%;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 40, 0.1);
    border-radius: 12px;
    padding: 0.5rem 0.5rem 0.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    box-shadow: 0 6px 16px rgba(15, 23, 40, 0.1);
}

.pvis-chat-bar {
    height: 0.22rem;
    width: 40%;
    background: linear-gradient(90deg, var(--color-primary), #55D6BE);
    border-radius: 2px;
    margin-bottom: 0.15rem;
}

.pvis-chat-bubble {
    height: 0.5rem;
    border-radius: 6px;
    width: 72%;
}

.pvis-chat-bubble--user {
    background: rgba(20, 83, 45, 0.15);
    align-self: flex-end;
    width: 58%;
}

.pvis-chat-bubble--ai {
    background: rgba(85, 214, 190, 0.25);
    width: 78%;
}

.pvis-chat-bubble--short {
    width: 50%;
}

.pvis-launcher {
    font-size: 1.4rem;
    align-self: flex-end;
    margin-top: 0.35rem;
    margin-right: 0.3rem;
    filter: drop-shadow(0 3px 6px rgba(20, 83, 45, 0.3));
}

/* ── Returns ─────────────────────────────────────────────── */

.pvis--returns {
    background:
        radial-gradient(circle at 60% 40%, rgba(244, 142, 98, 0.15), transparent 60%),
        radial-gradient(circle at 30% 70%, rgba(85, 214, 190, 0.12), transparent 55%);
}

.pvis-returns-arc {
    width: 70%;
    flex: 0 0 auto;
}

.pvis-returns-arc svg {
    width: 100%;
    height: auto;
    display: block;
}

.pvis-returns-icons {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.pvis-box {
    font-size: 1.6rem;
    line-height: 1;
}

.pvis-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.3rem;
    height: 1.3rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #42C9A0, #55D6BE);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1;
}

/* ── Products ────────────────────────────────────────────── */

.pvis--products {
    background:
        radial-gradient(circle at 70% 30%, rgba(244, 142, 98, 0.14), transparent 55%),
        radial-gradient(circle at 30% 70%, rgba(20, 83, 45, 0.08), transparent 55%);
}

.pvis-prod-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
    width: 85%;
}

.pvis-prod-card {
    border-radius: 8px;
    border: 1px solid rgba(15, 23, 40, 0.1);
    background: rgba(255, 255, 255, 0.9);
    padding: 0.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
    box-shadow: 0 3px 8px rgba(15, 23, 40, 0.07);
}

.pvis-prod-img {
    border-radius: 5px;
    height: 1.2rem;
}

.pvis-prod-card--a .pvis-prod-img { background: linear-gradient(135deg, #55D6BE, #42C9A0); }
.pvis-prod-card--b .pvis-prod-img { background: linear-gradient(135deg, #F48E62, #f4a87a); }
.pvis-prod-card--c .pvis-prod-img { background: linear-gradient(135deg, #4c8bf5, #6fa3f7); }
.pvis-prod-card--d .pvis-prod-img { background: linear-gradient(135deg, #14532d, #1f7a45); }

.pvis-prod-line {
    height: 0.25rem;
    background: rgba(15, 23, 40, 0.1);
    border-radius: 2px;
    width: 80%;
}

.pvis-prod-price {
    height: 0.25rem;
    background: rgba(15, 23, 40, 0.06);
    border-radius: 2px;
    width: 55%;
}

/* ── Knowledge Base ──────────────────────────────────────── */

.pvis--knowledge {
    background:
        radial-gradient(circle at 65% 25%, rgba(245, 158, 11, 0.13), transparent 55%),
        radial-gradient(circle at 25% 75%, rgba(85, 214, 190, 0.10), transparent 55%);
    gap: 0.5rem;
}

.pvis-doc-stack {
    width: 78%;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.pvis-doc-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 40, 0.09);
    border-radius: 8px;
    padding: 0.3rem 0.38rem;
    box-shadow: 0 2px 6px rgba(15, 23, 40, 0.07);
    display: flex;
    flex-direction: column;
    gap: 0.16rem;
}

.pvis-doc-card:nth-child(1) { opacity: 0.5; }
.pvis-doc-card:nth-child(2) { opacity: 0.72; }

.pvis-doc-titlebar {
    height: 0.28rem;
    width: 55%;
    background: rgba(15, 23, 40, 0.18);
    border-radius: 2px;
}

.pvis-doc-line {
    height: 0.2rem;
    background: rgba(15, 23, 40, 0.09);
    border-radius: 2px;
}

.pvis-doc-line--mid { width: 78%; }
.pvis-doc-line--short { width: 52%; }

.pvis-doc-line--accent {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.45), rgba(85, 214, 190, 0.3));
    width: 65%;
}

.pvis-doc-tags {
    display: flex;
    gap: 0.22rem;
    justify-content: center;
}

.pvis-doc-tags span {
    padding: 0.15rem 0.38rem;
    border-radius: 999px;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.22);
    color: #92400e;
}

.pvis-doc-tags span:nth-child(2) {
    background: rgba(85, 214, 190, 0.12);
    border-color: rgba(85, 214, 190, 0.25);
    color: #0f766e;
}

.pvis-doc-tags span:nth-child(3) {
    background: rgba(20, 83, 45, 0.08);
    border-color: rgba(20, 83, 45, 0.15);
    color: #14532d;
}

/* ── Bot / AI Persona ────────────────────────────────────── */

.pvis--bot {
    background:
        radial-gradient(circle at 50% 35%, rgba(85, 214, 190, 0.18), transparent 60%),
        radial-gradient(circle at 75% 65%, rgba(76, 139, 245, 0.12), transparent 55%);
    gap: 0.5rem;
}

.pvis-bot-bubble {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50% 50% 50% 8px;
    background: linear-gradient(135deg, #14532d, #1f7a45);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px rgba(20, 83, 45, 0.28);
}

.pvis-bot-bubble svg {
    width: 1.1rem;
    height: 1.1rem;
    stroke: rgba(255, 255, 255, 0.95);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pvis-bot-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #14532d;
    background: rgba(20, 83, 45, 0.08);
    padding: 0.12rem 0.42rem;
    border-radius: 999px;
    border: 1px solid rgba(20, 83, 45, 0.14);
}

.pvis-persona-types {
    display: flex;
    gap: 0.2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pvis-persona-types span {
    padding: 0.13rem 0.35rem;
    border-radius: 999px;
    font-size: 0.52rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    border: 1px solid rgba(15, 23, 40, 0.12);
    background: rgba(255, 255, 255, 0.82);
    color: var(--color-muted);
}

/* ── Workflows / Automation ──────────────────────────────── */

.pvis--workflows {
    background:
        radial-gradient(circle at 30% 40%, rgba(20, 83, 45, 0.10), transparent 55%),
        radial-gradient(circle at 70% 65%, rgba(245, 158, 11, 0.10), transparent 55%);
    gap: 0.55rem;
}

.pvis-flow {
    display: flex;
    align-items: center;
    gap: 0.28rem;
    width: 90%;
}

.pvis-flow-node {
    flex: 1;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 40, 0.1);
    border-radius: 8px;
    padding: 0.28rem 0.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.14rem;
    box-shadow: 0 2px 6px rgba(15, 23, 40, 0.07);
}

.pvis-flow-node--trigger { border-top: 2px solid rgba(20, 83, 45, 0.5); }
.pvis-flow-node--rule    { border-top: 2px solid rgba(245, 158, 11, 0.5); }
.pvis-flow-node--action  { border-top: 2px solid rgba(76, 139, 245, 0.5); }

.pvis-flow-icon {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pvis-flow-node--trigger .pvis-flow-icon { background: rgba(20, 83, 45, 0.12); }
.pvis-flow-node--rule    .pvis-flow-icon { background: rgba(245, 158, 11, 0.14); }
.pvis-flow-node--action  .pvis-flow-icon { background: rgba(76, 139, 245, 0.12); }

.pvis-flow-icon svg {
    width: 0.5rem;
    height: 0.5rem;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.pvis-flow-node--trigger .pvis-flow-icon svg { stroke: #14532d; }
.pvis-flow-node--rule    .pvis-flow-icon svg { stroke: #92400e; }
.pvis-flow-node--action  .pvis-flow-icon svg { stroke: #1d4ed8; }

.pvis-flow-label {
    height: 0.2rem;
    border-radius: 2px;
    width: 70%;
    background: rgba(15, 23, 40, 0.1);
}

.pvis-flow-arrow {
    color: rgba(15, 23, 40, 0.25);
    font-size: 0.55rem;
    flex-shrink: 0;
}

.pvis-flow-tags {
    display: flex;
    gap: 0.18rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pvis-flow-tags span {
    padding: 0.12rem 0.32rem;
    border-radius: 999px;
    font-size: 0.52rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: rgba(20, 83, 45, 0.08);
    border: 1px solid rgba(20, 83, 45, 0.13);
    color: #14532d;
}

/* ── Documentation ───────────────────────────────────────── */

.pvis--docs {
    background:
        radial-gradient(circle at 40% 30%, rgba(76, 139, 245, 0.12), transparent 55%),
        radial-gradient(circle at 70% 70%, rgba(85, 214, 190, 0.10), transparent 55%);
    gap: 0.5rem;
}

.pvis-guide-stack {
    width: 78%;
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
}

.pvis-guide-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 40, 0.09);
    border-radius: 8px;
    padding: 0.28rem 0.38rem;
    box-shadow: 0 2px 6px rgba(15, 23, 40, 0.07);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.pvis-guide-card:nth-child(1) { opacity: 0.55; }
.pvis-guide-card:nth-child(2) { opacity: 0.75; }

.pvis-guide-icon {
    width: 0.9rem;
    height: 1.1rem;
    border-radius: 3px;
    flex-shrink: 0;
}

.pvis-guide-card:nth-child(1) .pvis-guide-icon {
    background: linear-gradient(135deg, rgba(76, 139, 245, 0.35), rgba(76, 139, 245, 0.20));
}

.pvis-guide-card:nth-child(2) .pvis-guide-icon {
    background: linear-gradient(135deg, rgba(85, 214, 190, 0.35), rgba(85, 214, 190, 0.20));
}

.pvis-guide-card:nth-child(3) .pvis-guide-icon {
    background: linear-gradient(135deg, rgba(244, 142, 98, 0.35), rgba(244, 142, 98, 0.20));
}

.pvis-guide-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.14rem;
}

.pvis-guide-title {
    height: 0.26rem;
    width: 65%;
    background: rgba(15, 23, 40, 0.15);
    border-radius: 2px;
}

.pvis-guide-sub {
    height: 0.18rem;
    width: 80%;
    background: rgba(15, 23, 40, 0.08);
    border-radius: 2px;
}

.pvis-guide-badge {
    font-size: 0.5rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    padding: 0.1rem 0.28rem;
    border-radius: 4px;
    flex-shrink: 0;
}

.pvis-guide-badge--pdf {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.22);
    color: #b91c1c;
}

.pvis-guide-badge--md {
    background: rgba(76, 139, 245, 0.12);
    border: 1px solid rgba(76, 139, 245, 0.22);
    color: #1d4ed8;
}

.pvis-guide-badge--txt {
    background: rgba(15, 23, 40, 0.06);
    border: 1px solid rgba(15, 23, 40, 0.12);
    color: var(--color-muted);
}

/* ============================================================
   WIDGET LAYOUT PICKER (admin panel)
   ============================================================ */
.wlayout-grid {
    display: flex;
    flex-direction: row;
    gap: 0.85rem;
    overflow-x: auto;
    padding-bottom: 0.75rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(15, 23, 42, 0.15) transparent;
}

.wlayout-grid::-webkit-scrollbar {
    height: 4px;
}

.wlayout-grid::-webkit-scrollbar-track {
    background: transparent;
}

.wlayout-grid::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.15);
    border-radius: 999px;
}

.wlayout-card {
    --wlayout-accent: #14532d;
    --wlayout-accent-soft: rgba(20, 83, 45, 0.14);
    --wlayout-panel: #ffffff;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.78rem;
    padding: 0.95rem;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), var(--wlayout-panel));
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
    user-select: none;
    overflow: hidden;
    flex: 0 0 188px;
    width: 188px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.wlayout-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--wlayout-accent), transparent 82%);
    opacity: 0.92;
}

.wlayout-card::after {
    content: "";
    position: absolute;
    top: -1.25rem;
    right: -1.25rem;
    width: 5.8rem;
    height: 5.8rem;
    border-radius: 50%;
    background: radial-gradient(circle, var(--wlayout-accent-soft) 0%, transparent 68%);
    pointer-events: none;
}

.wlayout-card > * {
    position: relative;
    z-index: 1;
}

.wlayout-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.wlayout-card:hover {
    border-color: color-mix(in srgb, var(--wlayout-accent) 26%, rgba(15, 23, 42, 0.12));
    box-shadow: 0 14px 30px rgba(12, 22, 33, 0.08);
    transform: translateY(-2px);
}

.wlayout-card.is-selected {
    border-color: var(--wlayout-accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--wlayout-accent) 12%, transparent), 0 16px 34px rgba(12, 22, 33, 0.1);
}

.wlayout-card__check {
    display: none;
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--color-primary, #14532d);
    color: #ffffff;
    align-items: center;
    justify-content: center;
}

.wlayout-card__check svg {
    width: 12px;
    height: 12px;
    display: block;
}

.wlayout-card.is-selected .wlayout-card__check {
    display: inline-flex;
}

.wlayout-card__eyebrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

.wlayout-card__family,
.wlayout-card__template,
.wlayout-card__trait {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    padding: 0.28rem 0.52rem;
    border-radius: 999px;
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.wlayout-card__family {
    background: color-mix(in srgb, var(--wlayout-accent) 12%, #ffffff 88%);
    border: 1px solid color-mix(in srgb, var(--wlayout-accent) 18%, rgba(15, 23, 42, 0.08));
    color: color-mix(in srgb, var(--wlayout-accent) 78%, #10212f 22%);
}

.wlayout-card__template {
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: rgba(16, 33, 47, 0.54);
}

.wlayout-card.is-selected .wlayout-card__family {
    background: var(--wlayout-accent);
    border-color: transparent;
    color: #ffffff;
}

.wlayout-card__stage {
    display: grid;
    gap: 0.55rem;
    padding: 0.6rem;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.58));
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.wlayout-card__mockup {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.1);
    aspect-ratio: 4 / 3.4;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.wlayout-card__info {
    display: grid;
    gap: 0.24rem;
}

.wlayout-card__info strong {
    font-size: 0.92rem;
    color: #10212f;
    line-height: 1.2;
}

.wlayout-card__info span {
    font-size: 0.75rem;
    color: rgba(16, 33, 47, 0.6);
    line-height: 1.45;
    min-height: 2.15rem;
}

.wlayout-card__launcher {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    padding: 0.48rem 0.58rem;
    background: rgba(255, 255, 255, 0.76);
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--wlayout-accent) 12%, rgba(15, 23, 42, 0.08));
    min-height: 44px;
}

.wlayout-card__launcher-copy {
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.15;
    text-transform: uppercase;
    color: rgba(16, 33, 47, 0.56);
}

.wlayout-card__launcher.wll--elevated::after {
    content: none;
}

.wlayout-card__traits {
    display: flex;
    flex-wrap: wrap;
    gap: 0.38rem;
    margin-top: auto;
}

.wlayout-card__trait {
    padding-inline: 0.5rem;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: rgba(16, 33, 47, 0.6);
}

.wlayout-card[data-layout-surface="panel"] {
    --wlayout-accent: #14532d;
    --wlayout-accent-soft: rgba(20, 83, 45, 0.16);
    --wlayout-panel: #f7fbf6;
}

.wlayout-card[data-layout-surface="dashboard"] {
    --wlayout-accent: #2563eb;
    --wlayout-accent-soft: rgba(37, 99, 235, 0.16);
    --wlayout-panel: #f5f9ff;
}

.wlayout-card[data-layout-surface="editorial"] {
    --wlayout-accent: #a16207;
    --wlayout-accent-soft: rgba(161, 98, 7, 0.16);
    --wlayout-panel: #fffaf0;
}

.wlayout-card[data-layout-surface="showcase"] {
    --wlayout-accent: #7c3aed;
    --wlayout-accent-soft: rgba(124, 58, 237, 0.16);
    --wlayout-panel: #faf5ff;
}

.wlayout-card[data-layout-surface="playful"] {
    --wlayout-accent: #db2777;
    --wlayout-accent-soft: rgba(219, 39, 119, 0.16);
    --wlayout-panel: #fff5fa;
}

.wlayout-card[data-layout-surface="app"] {
    --wlayout-accent: #0f766e;
    --wlayout-accent-soft: rgba(15, 118, 110, 0.16);
    --wlayout-panel: #f2fbfb;
}

.wlayout-card[data-layout-family="context_panel"] {
    --wlayout-accent: #0f766e;
    --wlayout-accent-soft: rgba(15, 118, 110, 0.18);
    --wlayout-panel: #f1f7f7;
}

.wlayout-card[data-layout-template="compact_shell"] .wlayout-card__stage {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), #f4f7fb);
}

.wlayout-card[data-layout-template="anchored_sidebar"] .wlayout-card__stage {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), #f2f7f7);
}

.wlayout-card[data-layout-template="icon_launcher_shell"] .wlayout-card__stage {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), color-mix(in srgb, var(--wlayout-accent) 8%, #ffffff 92%));
}

/* ── Widget mockup (wlm) ── */
.wlm {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f0ece3;
}

.wlm__header {
    height: 32%;
    flex-shrink: 0;
}

.wlm__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 6px 8px;
}

.wlm__bubble {
    height: 18px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    width: 72%;
}

.wlm__bubble--user {
    align-self: flex-end;
    width: 58%;
    background: rgba(20, 83, 45, 0.45);
}

.wlm__bubble--short {
    width: 48%;
}

.wlm__footer {
    height: 22%;
    background: rgba(255, 255, 255, 0.9);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

/* classic */
.wlm--classic .wlm__header {
    background: linear-gradient(135deg, #14532d 0%, #0f3d22 100%);
}

/* modern */
.wlm--modern {
    background: #f4f5f7;
}

.wlm--modern .wlm__header {
    background: #ffffff;
    border-bottom: 3px solid #14532d;
    border-left: 4px solid #14532d;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.wlm--modern .wlm__bubble {
    border-radius: 4px 10px 10px 10px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.wlm--modern .wlm__bubble--user {
    border-radius: 10px 4px 10px 10px;
    background: rgba(20, 83, 45, 0.45);
    border: none;
}

.wlm--modern .wlm__footer {
    background: #ffffff;
}

/* elevated */
.wlm--elevated {
    background: #f5f4f0;
}

.wlm--elevated .wlm__header {
    background: #14532d;
    height: 38%;
    padding-top: 6px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 2px;
}

.wlm--elevated .wlm__header::after {
    content: '';
    display: block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    border: 2px solid rgba(255, 255, 255, 0.7);
    margin-bottom: -14px;
}

.wlm--elevated .wlm__body {
    padding-top: 18px;
}

.wlm--elevated .wlm__footer {
    background: #f5f4f0;
}

/* ── Launcher mockup (wll) ── */
.wll {
    display: flex;
    align-items: center;
    gap: 6px;
}

.wll__inner {
    display: inline-block;
}

/* classic launcher */
.wll--classic .wll__inner {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(160deg, #14532d, #d97706);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* modern launcher */
.wll--modern .wll__inner {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(12, 22, 33, 0.18);
}

/* elevated launcher */
.wll--elevated {
    background: linear-gradient(160deg, #14532d, #d97706);
    border-radius: 999px;
    padding: 3px 10px 3px 3px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 14px rgba(12, 22, 33, 0.24);
}

.wll--elevated .wll__inner {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.wll--elevated::after {
    content: 'Chat';
    font-size: 10px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.02em;
}

/* atlas */
.wlm--atlas {
    background:
        linear-gradient(180deg, #eef4f6, #ffffff 58%),
        repeating-linear-gradient(90deg, transparent 0 14px, rgba(148, 163, 184, 0.16) 14px 15px);
}

.wlm--atlas .wlm__header {
    position: relative;
    background: linear-gradient(180deg, #edf5f7, #ffffff);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.wlm--atlas .wlm__header::before {
    content: '';
    position: absolute;
    left: 8px;
    right: 8px;
    top: 7px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #0f766e, transparent 78%);
}

.wlm--atlas .wlm__bubble {
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.wlm--atlas .wlm__bubble--bot {
    width: 74%;
    border-left: 3px solid #0f766e;
}

.wlm--atlas .wlm__bubble--user {
    border-radius: 12px;
    background: rgba(15, 118, 110, 0.22);
    border: none;
}

.wlm--atlas .wlm__footer {
    background: linear-gradient(180deg, #ffffff, #f2f6f8);
    border-top-color: rgba(15, 23, 42, 0.08);
}

.wll--atlas {
    padding: 4px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0f766e, #334155);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.2);
}

.wll--atlas .wll__inner {
    position: relative;
    width: 30px;
    height: 30px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    overflow: hidden;
}

.wll--atlas .wll__inner::before,
.wll--atlas .wll__inner::after {
    content: '';
    position: absolute;
    inset: 50%;
    background: rgba(255, 255, 255, 0.88);
    transform: translate(-50%, -50%);
}

.wll--atlas .wll__inner::before {
    width: 12px;
    height: 2px;
    border-radius: 999px;
}

.wll--atlas .wll__inner::after {
    width: 2px;
    height: 12px;
    border-radius: 999px;
}

/* ============================================================
   WIDGET PREVIEW SPLIT (live preview panel)
   ============================================================ */
.wpreview-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    min-height: 680px;
}

@media (max-width: 900px) {
    .wpreview-split {
        grid-template-columns: 1fr;
    }
}

.wpreview-split__label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1rem;
    background: rgba(15, 23, 42, 0.04);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(16, 33, 47, 0.7);
    gap: 0.75rem;
}

.wpreview-shell {
    transition: box-shadow 180ms ease, transform 180ms ease;
}

.wpreview-shell.is-preview-active {
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.wpreview-shell:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.42);
    outline-offset: 3px;
}

.wpreview-split__label-main {
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
    min-width: 0;
}

.wpreview-layout-tip {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(16, 33, 47, 0.52);
    line-height: 1.45;
}

.wpreview-layout-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-left: auto;
}

.wpreview-layout-status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.42rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: rgba(16, 33, 47, 0.58);
    font-size: 0.73rem;
    line-height: 1;
    white-space: nowrap;
}

.wpreview-layout-status strong {
    color: #10212f;
    font-size: 0.78rem;
}

.wpreview-layout-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
}

.wpreview-nav-button {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #ffffff;
    color: #10212f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.wpreview-nav-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
    border-color: rgba(37, 99, 235, 0.2);
}

.wpreview-nav-button:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.42);
    outline-offset: 2px;
}

.wpreview-nav-button svg {
    width: 16px;
    height: 16px;
    display: block;
}

.wpreview-split__main {
    border-right: 1px solid rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
}

.wpreview-split__iframe-wrap {
    flex: 1;
}

.wpreview-split__aside {
    display: flex;
    flex-direction: column;
    background: rgba(15, 23, 42, 0.025);
}

.wpreview-launcher-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    padding: 2rem 1.5rem;
}

.wpreview-launcher {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wpreview-launcher-hint {
    margin: 0;
    font-size: 0.75rem;
    color: rgba(16, 33, 47, 0.52);
    text-align: center;
    line-height: 1.5;
    max-width: 200px;
}

@media (max-width: 900px) {
    .wpreview-split__label {
        align-items: flex-start;
        flex-direction: column;
    }

    .wpreview-layout-controls {
        justify-content: flex-start;
        margin-left: 0;
    }
}

/* btn aliases — maps btn/btn--* to the button system */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.88rem 1.3rem;
    border: 1px solid transparent;
    border-radius: var(--radius-button);
    text-decoration: none;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    font: inherit;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease,
        background-color 180ms ease;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-1px);
}

.btn--primary {
    color: #fff;
    background: linear-gradient(135deg, var(--color-primary), #1f7a45);
    box-shadow: 0 16px 36px rgba(20, 83, 45, 0.22);
}

.btn--secondary {
    color: var(--color-ink);
    background: rgba(255, 255, 255, 0.84);
    border-color: rgba(15, 23, 40, 0.12);
}

.btn--ghost {
    color: var(--color-ink);
    background: transparent;
    border-color: rgba(15, 23, 40, 0.1);
}

/* sa-list — list layout used on merchant ops pages */
.sa-list {
    display: grid;
    gap: 0.55rem;
}

.sa-list-card {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 0.95rem;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 40, 0.08);
    background: rgba(255, 255, 255, 0.78);
    transition: background-color 140ms ease, border-color 140ms ease;
}

.sa-list-card:hover {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(15, 23, 40, 0.18);
}

.sa-list-card p,
.sa-list-card strong {
    margin: 0;
}

.sa-list-card p {
    color: var(--color-muted);
    font-size: 0.88rem;
}

.sa-subtle {
    font-size: 0.82rem;
    color: var(--color-muted);
}

/* ─── App Pagination ────────────────────────────────────────── */

.app-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 0 0.25rem;
    flex-wrap: wrap;
}

.app-pagination__info {
    font-size: 0.84rem;
    color: var(--color-muted);
}

.app-pagination__pages {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.app-pagination__page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.1rem;
    height: 2.1rem;
    padding: 0 0.5rem;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    background: white;
    color: var(--color-text);
    font-size: 0.84rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 120ms ease, border-color 120ms ease;
    cursor: pointer;
}

.app-pagination__page:hover {
    background: rgba(20, 83, 45, 0.06);
    border-color: rgba(20, 83, 45, 0.2);
    color: var(--color-primary);
}

.app-pagination__page--current {
    background: var(--color-primary);
    border-color: transparent;
    color: #fff;
    font-weight: 700;
    pointer-events: none;
}

.app-pagination__page--ellipsis {
    border: none;
    background: none;
    color: var(--color-muted);
    pointer-events: none;
    min-width: 1.4rem;
}

.app-pagination__page--disabled {
    opacity: 0.35;
    pointer-events: none;
}

.app-paginated-section--loading {
    position: relative;
    pointer-events: none;
}

.app-paginated-section--loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: inherit;
    z-index: 5;
}

/* ── NEW LAYOUT MOCKUPS ─────────────────────────────────────── */

/* bubble */
.wlm--bubble { background: #f0f4ff; }
.wlm--bubble .wlm__header { background: #ffffff; border-bottom: 1.5px solid rgba(0,0,0,.07); }
.wlm--bubble .wlm__bubble { border-radius: 10px 10px 10px 2px; }
.wlm--bubble .wlm__bubble--user { border-radius: 10px 10px 2px 10px; background: #14532d; }
.wlm--bubble .wlm__footer { background: #ffffff; }

/* glass */
.wlm--glass { background: linear-gradient(165deg, #eef2ff, #f4f7fb); }
.wlm--glass .wlm__header { background: rgba(255,255,255,.75); border-bottom: 1px solid rgba(255,255,255,.5); }
.wlm--glass .wlm__bubble { background: rgba(255,255,255,.85); border: 1px solid rgba(255,255,255,.7); }
.wlm--glass .wlm__bubble--user { background: rgba(20,83,45,.78); }
.wlm--glass .wlm__footer { background: rgba(255,255,255,.75); }

/* dark */
.wlm--dark { background: #161b22; }
.wlm--dark .wlm__header { background: #0d1117; border-bottom: 1px solid rgba(255,255,255,.06); }
.wlm--dark .wlm__bubble { background: #21262d; }
.wlm--dark .wlm__bubble--user { background: #14532d; }
.wlm--dark .wlm__footer { background: #0d1117; }

/* minimal */
.wlm--minimal { background: #ffffff; }
.wlm--minimal .wlm__header { background: #ffffff; border-bottom: 1.5px solid rgba(0,0,0,.1); }
.wlm--minimal .wlm__bubble { background: #f5f5f5; border: 1px solid rgba(0,0,0,.08); border-radius: 5px; }
.wlm--minimal .wlm__bubble--user { background: #14532d; border: none; }
.wlm--minimal .wlm__footer { background: #ffffff; border-top: 1.5px solid rgba(0,0,0,.1); }

/* bold */
.wlm--bold { background: #f8f9fb; }
.wlm--bold .wlm__header { background: linear-gradient(160deg, #14532d 0%, #1e6b3a 100%); height: 42%; }
.wlm--bold .wlm__body { padding-top: 12px; }
.wlm--bold .wlm__footer { background: #f8f9fb; }

/* soft */
.wlm--soft { background: #fef9f2; }
.wlm--soft .wlm__header { background: linear-gradient(160deg, #f0faf5, #fef5e7); border-bottom: 1px solid rgba(0,0,0,.06); }
.wlm--soft .wlm__bubble { background: #ffffff; border-radius: 12px; box-shadow: 0 1px 4px rgba(12,22,33,.06); }
.wlm--soft .wlm__bubble--user { background: #14532d; border-radius: 12px; }
.wlm--soft .wlm__footer { background: #fef9f2; }

/* neon */
.wlm--neon { background: #0d1117; }
.wlm--neon .wlm__header { background: #0d1117; border-bottom: 2px solid #14532d; }
.wlm--neon .wlm__bubble { background: #161b22; border: 1px solid rgba(20,83,45,.3); }
.wlm--neon .wlm__bubble--user { background: #14532d; border: none; box-shadow: 0 0 8px rgba(20,83,45,.5); }
.wlm--neon .wlm__footer { background: #0d1117; border-top: 1px solid rgba(20,83,45,.2); }

/* compact */
.wlm--compact { background: #ffffff; }
.wlm--compact .wlm__header { background: linear-gradient(135deg, #14532d 0%, #0f3d22 100%); height: 20%; }
.wlm--compact .wlm__body { gap: 4px; padding: 5px 6px; }
.wlm--compact .wlm__bubble { height: 10px; margin-bottom: 0; }
.wlm--compact .wlm__bubble--short { width: 38%; }
.wlm--compact .wlm__footer { height: 18%; }

/* sidebar */
.wlm--sidebar { background: #f8f9fa; }
.wlm--sidebar .wlm__header { background: #ffffff; border-bottom: 1px solid rgba(0,0,0,.08); border-left: 3px solid #14532d; }
.wlm--sidebar .wlm__bubble { background: #ffffff; border-left: 2px solid rgba(20,83,45,.3); border-radius: 0 8px 8px 0; }
.wlm--sidebar .wlm__bubble--user { background: #14532d; border-left: none; border-radius: 8px 0 0 8px; }
.wlm--sidebar .wlm__footer { background: #ffffff; border-top: 1px solid rgba(0,0,0,.08); border-left: 3px solid #14532d; }

/* ── NEW LAYOUT LAUNCHER ICONS IN CARDS ─────────────────────── */

/* bubble */
.wll--bubble .wll__inner {
    width: 34px; height: 34px; border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(12,22,33,.12), 0 0 0 2.5px #14532d;
}

/* glass */
.wll--glass .wll__inner {
    width: 34px; height: 34px; border-radius: 999px;
    background: rgba(255,255,255,.82);
    border: 1.5px solid rgba(255,255,255,.7);
    box-shadow: 0 4px 16px rgba(12,22,33,.12);
    backdrop-filter: blur(8px);
}

/* dark */
.wll--dark .wll__inner {
    width: 34px; height: 34px; border-radius: 999px;
    background: #1a2035;
    box-shadow: 0 6px 18px rgba(0,0,0,.45);
}

/* minimal */
.wll--minimal .wll__inner {
    width: 24px; height: 24px; border-radius: 999px;
    background: #14532d;
}

/* bold */
.wll--bold {
    background: linear-gradient(160deg, #14532d, #d97706);
    border-radius: 999px;
    padding: 0 12px 0 4px;
    height: 34px;
    gap: 6px;
}
.wll--bold::after {
    content: 'Help';
    font-size: 10px; color: #fff; font-weight: 700;
}
.wll--bold .wll__inner {
    width: 26px; height: 26px; border-radius: 999px;
    background: rgba(255,255,255,.22);
}

/* soft */
.wll--soft .wll__inner {
    width: 36px; height: 36px; border-radius: 999px;
    background: linear-gradient(160deg, #14532d, #d97706);
    box-shadow: 0 6px 20px rgba(12,22,33,.14);
}

/* neon */
.wll--neon .wll__inner {
    width: 32px; height: 32px; border-radius: 999px;
    background: #0d1117;
    box-shadow: 0 0 0 2px #14532d, 0 0 16px rgba(20,83,45,.6);
}

/* compact */
.wll--compact .wll__inner {
    width: 28px; height: 28px; border-radius: 8px;
    background: #14532d;
}

/* sidebar */
.wll--sidebar {
    background: #14532d;
    border-radius: 8px 8px 0 0;
    width: 52px; height: 34px;
    padding: 0 8px;
}
.wll--sidebar .wll__inner {
    width: 20px; height: 20px; border-radius: 999px;
    background: rgba(255,255,255,.22);
}

/* ── 8 NEW LAYOUT MOCKUPS ────────────────────────────────────── */
.wlm--aurora { background: #f5f0ff; }
.wlm--aurora .wlm__header { background: linear-gradient(135deg, #4c1d95 0%, #0f766e 100%); }
.wlm--aurora .wlm__bubble--user { background: #7c3aed; }
.wlm--aurora .wlm__footer { border-top: 1px solid rgba(124,58,237,.1); }

.wlm--ocean { background: #f0f7ff; }
.wlm--ocean .wlm__header { background: linear-gradient(160deg, #1e3a5f 0%, #0284c7 100%); }
.wlm--ocean .wlm__bubble--user { background: #1e3a5f; }
.wlm--ocean .wlm__footer { border-top: 1px solid rgba(2,132,199,.1); }

.wlm--sunset { background: #fff7ed; }
.wlm--sunset .wlm__header { background: linear-gradient(160deg, #c2410c 0%, #d97706 100%); }
.wlm--sunset .wlm__bubble--user { background: #c2410c; }
.wlm--sunset .wlm__footer { background: #fff7ed; }

.wlm--forest { background: #f0fdf4; }
.wlm--forest .wlm__header { background: linear-gradient(160deg, #14532d 0%, #713f12 100%); }
.wlm--forest .wlm__bubble--user { background: #14532d; }
.wlm--forest .wlm__footer { background: #f0fdf4; }

.wlm--paper { background: #fdfcfa; }
.wlm--paper .wlm__header { background: #fafafa; border-bottom: 1px solid #e5e5e5; }
.wlm--paper .wlm__bubble { background: #f5f5f0; border: 1px solid #e8e8e4; border-radius: 4px; }
.wlm--paper .wlm__bubble--user { background: #14532d; border: none; }
.wlm--paper .wlm__footer { background: #fafafa; border-top: 1px solid #e5e5e5; }

.wlm--corporate { background: #f8fafc; }
.wlm--corporate .wlm__header { background: #1e3a8a; }
.wlm--corporate .wlm__bubble--user { background: #1e3a8a; }
.wlm--corporate .wlm__footer { background: #f8fafc; }

.wlm--candy { background: #fdf4ff; }
.wlm--candy .wlm__header { background: linear-gradient(135deg, #db2777 0%, #9333ea 100%); }
.wlm--candy .wlm__bubble { border-radius: 12px; }
.wlm--candy .wlm__bubble--user { background: #db2777; border-radius: 12px; }
.wlm--candy .wlm__footer { background: #fdf4ff; }

.wlm--midnight { background: #0f172a; }
.wlm--midnight .wlm__header { background: #0f172a; border-bottom: 1px solid rgba(148,163,184,.1); }
.wlm--midnight .wlm__bubble { background: #1e293b; }
.wlm--midnight .wlm__bubble--user { background: #334155; }
.wlm--midnight .wlm__footer { background: #0f172a; border-top: 1px solid rgba(148,163,184,.1); }

/* ── 8 NEW LAUNCHER ICONS IN CARDS ─────────────────────────────── */
.wll--aurora .wll__inner { width: 34px; height: 34px; border-radius: 999px; background: linear-gradient(135deg, #4c1d95, #0f766e); box-shadow: 0 6px 16px rgba(76,29,149,.3); }
.wll--ocean .wll__inner { width: 34px; height: 34px; border-radius: 999px; background: linear-gradient(160deg, #1e3a5f, #0284c7); box-shadow: 0 6px 16px rgba(30,58,95,.3); }
.wll--sunset .wll__inner { width: 34px; height: 34px; border-radius: 999px; background: linear-gradient(160deg, #c2410c, #d97706); box-shadow: 0 6px 16px rgba(194,65,12,.3); }
.wll--forest .wll__inner { width: 34px; height: 34px; border-radius: 999px; background: linear-gradient(160deg, #14532d, #713f12); box-shadow: 0 6px 16px rgba(20,83,45,.3); }
.wll--paper .wll__inner { width: 34px; height: 34px; border-radius: 999px; background: #fff; border: 1.5px solid #e5e5e5; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.wll--corporate .wll__inner { width: 30px; height: 30px; border-radius: 4px; background: #1e3a8a; box-shadow: 0 4px 12px rgba(30,58,138,.4); }
.wll--candy .wll__inner { width: 34px; height: 34px; border-radius: 999px; background: linear-gradient(135deg, #db2777, #9333ea); box-shadow: 0 6px 18px rgba(219,39,119,.35); }
.wll--midnight .wll__inner { width: 34px; height: 34px; border-radius: 999px; background: #1e293b; box-shadow: 0 8px 24px rgba(0,0,0,.5), 0 0 0 1.5px rgba(148,163,184,.15); }

/* ── PRESTINE / WARMCARD / NIGHTCARD MOCKUPS ─────────────────────── */
.wlm--prestine { background: #ffffff; border: 1px solid rgba(0,0,0,.07); }
.wlm--prestine .wlm__header { background: #ffffff; border-bottom: 1px solid rgba(0,0,0,.08); }
.wlm--prestine .wlm__bubble { background: #ffffff; border: 1px solid rgba(0,0,0,.08); border-radius: 4px; }
.wlm--prestine .wlm__bubble--user { background: #111111; border: none; }
.wlm--prestine .wlm__footer { background: #ffffff; border-top: 1px solid rgba(0,0,0,.08); }

.wlm--warmcard { background: #faf7f2; }
.wlm--warmcard .wlm__header { background: #faf7f2; border-bottom: 1px solid rgba(45,31,19,.09); }
.wlm--warmcard .wlm__bubble { background: #faf7f2; border: 1px solid rgba(45,31,19,.09); border-radius: 4px; }
.wlm--warmcard .wlm__bubble--user { background: #2d1f13; border: none; }
.wlm--warmcard .wlm__footer { background: #faf7f2; border-top: 1px solid rgba(45,31,19,.09); }

.wlm--nightcard { background: #0c0c0e; }
.wlm--nightcard .wlm__header { background: #0c0c0e; border-bottom: 1px solid rgba(255,255,255,.07); }
.wlm--nightcard .wlm__bubble { background: #1a1a1e; border: 1px solid rgba(255,255,255,.08); }
.wlm--nightcard .wlm__bubble--user { background: #f5f5f5; }
.wlm--nightcard .wlm__footer { background: #0c0c0e; border-top: 1px solid rgba(255,255,255,.07); }

/* ── PRESTINE / WARMCARD / NIGHTCARD LAUNCHERS ───────────────────── */
.wll--prestine .wll__inner { width: 34px; height: 34px; border-radius: 999px; background: #fff; border: 1.5px solid rgba(0,0,0,.12); box-shadow: 0 2px 12px rgba(0,0,0,.12); }
.wll--warmcard .wll__inner { width: 34px; height: 34px; border-radius: 999px; background: linear-gradient(160deg, #2d1f13, #c99d4f); box-shadow: 0 6px 16px rgba(45,31,19,.25); }
.wll--nightcard .wll__inner { width: 34px; height: 34px; border-radius: 999px; background: #0c0c0e; box-shadow: 0 0 0 1.5px rgba(255,255,255,.12), 0 8px 24px rgba(0,0,0,.55); }

/* ── ICON CHAT LAYOUTS — MOCKUPS ─────────────────────────────────────────── */
.wlm--purplechat { background: #ffffff; border: 1px solid rgba(0,0,0,.06); }
.wlm--purplechat .wlm__header { background: #4f46e5; }
.wlm--purplechat .wlm__bubble { background: #eef2ff; border: 1px solid rgba(79,70,229,.10); border-radius: 4px; }
.wlm--purplechat .wlm__bubble--user { background: #4f46e5; border: none; }
.wlm--purplechat .wlm__footer { background: #ffffff; border-top: 1px solid rgba(0,0,0,.07); }

.wlm--tealchat { background: #ffffff; border: 1px solid rgba(0,0,0,.06); }
.wlm--tealchat .wlm__header { background: #0891b2; }
.wlm--tealchat .wlm__bubble { background: #e0f7fa; border: 1px solid rgba(8,145,178,.10); border-radius: 4px; }
.wlm--tealchat .wlm__bubble--user { background: #0891b2; border: none; }
.wlm--tealchat .wlm__footer { background: #ffffff; border-top: 1px solid rgba(0,0,0,.07); }

.wlm--greenchat { background: #ffffff; border: 1px solid rgba(0,0,0,.06); }
.wlm--greenchat .wlm__header { background: #059669; }
.wlm--greenchat .wlm__bubble { background: #d1fae5; border: 1px solid rgba(5,150,105,.10); border-radius: 4px; }
.wlm--greenchat .wlm__bubble--user { background: #059669; border: none; }
.wlm--greenchat .wlm__footer { background: #ffffff; border-top: 1px solid rgba(0,0,0,.07); }

/* ── ICON CHAT LAYOUTS — LAUNCHERS ──────────────────────────────────────── */
.wll--purplechat .wll__inner { width: 34px; height: 34px; border-radius: 999px; background: #4f46e5; box-shadow: 0 6px 16px rgba(79,70,229,.40); }
.wll--tealchat .wll__inner { width: 34px; height: 34px; border-radius: 999px; background: #0891b2; box-shadow: 0 6px 16px rgba(8,145,178,.38); }
.wll--greenchat .wll__inner { width: 34px; height: 34px; border-radius: 999px; background: #059669; box-shadow: 0 6px 16px rgba(5,150,105,.38); }

/* SPARK — flat sky-blue, sharp corners */
.wlm--spark { background: #f8fafc; border-radius: 8px; }
.wlm--spark .wlm__header { background: #0ea5e9; border-radius: 7px 7px 0 0; }
.wlm--spark .wlm__bubble { background: #ffffff; border: 1px solid #e0f2fe; border-radius: 3px 8px 8px 8px; box-shadow: none; }
.wlm--spark .wlm__bubble--user { background: #0ea5e9; border: none; border-radius: 8px 3px 8px 8px; }
.wlm--spark .wlm__footer { background: #ffffff; border-top: 1px solid #e0f2fe; }

/* LINEN — dark editorial header, warm cream body */
.wlm--linen { background: #fdf8f0; }
.wlm--linen .wlm__header { background: #1c1917; }
.wlm--linen .wlm__bubble { background: #ffffff; border: 1px solid rgba(101,79,49,.12); border-radius: 3px 10px 10px 10px; box-shadow: none; }
.wlm--linen .wlm__bubble--user { background: #1c1917; border: none; border-radius: 10px 3px 10px 10px; }
.wlm--linen .wlm__footer { background: #fdfaf5; border-top: 1px solid rgba(101,79,49,.10); }

/* INDIGO — tall gradient header with overlap */
.wlm--indigo { background: #eef2ff; }
.wlm--indigo .wlm__header { background: linear-gradient(145deg, #312e81 0%, #4338ca 55%, #6366f1 100%); height: 42%; }
.wlm--indigo .wlm__body { padding-top: 10px; }
.wlm--indigo .wlm__bubble { background: #ffffff; border-left: 2px solid #818cf8; border-radius: 0 10px 10px 10px; box-shadow: none; }
.wlm--indigo .wlm__bubble--user { background: linear-gradient(135deg, #4338ca, #6366f1); border-left: none; border-radius: 10px 0 10px 10px; }
.wlm--indigo .wlm__footer { background: #eef2ff; border-top: 1px solid rgba(99,102,241,.14); }

/* Launcher previews */
.wll--spark .wll__inner { width: 32px; height: 32px; border-radius: 8px; background: #0ea5e9; box-shadow: 0 4px 14px rgba(14,165,233,.45); }
.wll--linen .wll__inner { width: 34px; height: 34px; border-radius: 999px; background: #1c1917; box-shadow: 0 6px 16px rgba(28,25,23,.40), 0 0 0 2px #c4a35a; }
.wll--indigo .wll__inner { width: 34px; height: 34px; border-radius: 999px; background: linear-gradient(135deg, #312e81, #6366f1); box-shadow: 0 6px 20px rgba(67,56,202,.50); }

/* ── Widget preview step 2 bubble ───────────────────────────────────────── */
.wpreview-step2 {
    width: 100%;
    padding: 0.75rem 1rem 0;
    box-sizing: border-box;
}
.wpreview-step2__card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.09);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.13);
    position: relative;
    font-family: system-ui, -apple-system, sans-serif;
}
.wpreview-step2__inner {
    padding: 14px 44px 10px 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.wpreview-step2__avatar-wrap {
    position: relative;
    flex-shrink: 0;
}
.wpreview-step2__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
.wpreview-step2__badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid #fff;
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.wpreview-step2__copy { min-width: 0; }
.wpreview-step2__name {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #111;
    margin-bottom: 4px;
    line-height: 1.25;
}
.wpreview-step2__msg {
    margin: 0;
    font-size: 11.5px;
    color: #555;
    line-height: 1.45;
}
.wpreview-step2__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #111;
    border: 0;
    cursor: default;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #fff;
    pointer-events: none;
}
.wpreview-step2__close svg { width: 10px; height: 10px; display: block; }
.wpreview-step2__actions {
    display: flex;
    justify-content: flex-end;
    padding: 2px 12px 12px;
}
.wpreview-step2__open {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #111;
    border: 0;
    cursor: default;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    padding: 0;
    pointer-events: none;
}
.wpreview-step2__open svg { width: 16px; height: 16px; display: block; }
.wpreview-step2-hint {
    margin: 0.5rem 0 0;
    font-size: 0.72rem;
    color: rgba(16,33,47,.50);
    text-align: center;
    line-height: 1.5;
    padding: 0 0.5rem;
}

/* ══════════════════════════════════════════════════════════════════════════
   SCROLL WRAPPER WITH ARROWS
   ══════════════════════════════════════════════════════════════════════════ */
.wscroll-wrap {
    position: relative;
    min-width: 0;          /* grid/flex item: allow shrink below content min-width */
    overflow: hidden;      /* clip scroll track so nothing bleeds out horizontally */
}

.wscroll-arrow {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid rgba(15, 23, 42, 0.13);
    background: #fff;
    box-shadow: 0 2px 10px rgba(12, 22, 33, 0.12), 0 1px 3px rgba(12, 22, 33, 0.08);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: box-shadow 120ms ease, border-color 120ms ease, transform 120ms ease;
    color: rgba(15, 23, 42, 0.7);
    flex-shrink: 0;
}

.wscroll-arrow.is-visible {
    display: inline-flex;
}

.wscroll-arrow:hover {
    box-shadow: 0 4px 16px rgba(12, 22, 33, 0.18), 0 1px 4px rgba(12, 22, 33, 0.1);
    border-color: rgba(15, 23, 42, 0.25);
    transform: translateY(-50%) scale(1.06);
    color: rgba(15, 23, 42, 0.9);
}

.wscroll-arrow:active {
    transform: translateY(-50%) scale(0.96);
}

.wscroll-arrow svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    pointer-events: none;
}

.wscroll-arrow--left { left: 8px; }
.wscroll-arrow--right { right: 8px; }

/* assistant picker → also horizontal scroll */
.assistant-picker-grid {
    display: flex;
    flex-direction: row;
    gap: 0.9rem;
    overflow-x: auto;
    padding-bottom: 0.75rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(15, 23, 42, 0.15) transparent;
}

.assistant-picker-grid::-webkit-scrollbar { height: 4px; }
.assistant-picker-grid::-webkit-scrollbar-track { background: transparent; }
.assistant-picker-grid::-webkit-scrollbar-thumb { background: rgba(15,23,42,.15); border-radius: 999px; }

.assistant-photo-card {
    flex: 0 0 130px;
    width: 130px;
}

.install-steps {
    margin: 0;
    padding-left: 1.4rem;
    display: grid;
    gap: 0.45rem;
    color: var(--color-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.install-steps li strong {
    color: var(--color-text);
}

/* ── File Dropzone ──────────────────────────────────────── */
.file-dropzone {
    position: relative;
    border: 2px dashed rgba(15, 23, 40, 0.14);
    border-radius: 16px;
    padding: 1.4rem 1.2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.6);
    transition: border-color 180ms ease, background 180ms ease;
    cursor: pointer;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
}

.file-dropzone:hover,
.file-dropzone.is-over {
    border-color: #0b6b7a;
    background: rgba(11, 107, 122, 0.04);
}

.file-dropzone.has-files {
    border-style: solid;
    border-color: rgba(20, 126, 84, 0.30);
    background: rgba(20, 126, 84, 0.03);
}

.file-dropzone__input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-dropzone__icon {
    color: #9ca3af;
    pointer-events: none;
    flex-shrink: 0;
}

.file-dropzone__primary {
    margin: 0;
    font-size: 0.875rem;
    color: #374151;
    pointer-events: none;
}

.file-dropzone__browse {
    color: #0b6b7a;
    text-decoration: underline;
}

.file-dropzone__hint {
    margin: 0;
    font-size: 0.75rem;
    color: #9ca3af;
    pointer-events: none;
}

.file-dropzone__list {
    margin: 0.65rem 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: center;
    pointer-events: none;
    position: relative;
    z-index: 1;
}

.file-dropzone__list li {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    padding: 0.2rem 0.65rem;
    background: rgba(20, 126, 84, 0.1);
    border: 1px solid rgba(20, 126, 84, 0.22);
    border-radius: 20px;
    color: #147e54;
    white-space: nowrap;
}

/* Merchant workspace: task navigation and progressive settings. */
.app-navigation-shell { min-width: 0; }
.app-mobile-menu { display: none; }
.app-nav__related summary { cursor: pointer; padding: .45rem .75rem; color: var(--color-muted); font-size: .8rem; }
.app-nav__related .app-nav__item { padding-left: .65rem; }
.app-nav [hidden] { display: none; }
.workspace-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: .5rem 0 1.4rem; }
.workspace-heading h1 { margin: .2rem 0 .5rem; font-family: var(--font-heading); font-size: clamp(1.7rem, 3vw, 2.4rem); }
.workspace-heading p, .workspace-action-row p, .workspace-next-step p { margin: .5rem 0; color: var(--color-muted); }
.workspace-overview > section, .workspace-attention > .card, .workspace-details > .card { margin-bottom: 1rem; }
.workspace-status, .workspace-action-row, .workspace-next-step { display: flex; align-items: center; justify-content: space-between; gap: 1.1rem; }
.workspace-status { justify-content: flex-start; }
.workspace-status p { margin: .4rem 0 0; }
.workspace-status__dot { width: .7rem; height: .7rem; flex-shrink: 0; border-radius: 50%; background: #ae6a20; }
.workspace-status__dot.is-online { background: #16815b; }
.workspace-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
.workspace-metrics .card { display: grid; gap: .55rem; }
.workspace-metrics strong { font-size: 2rem; }
.workspace-metrics small, .workspace-conversation-row__meta { color: var(--color-muted); }
.workspace-metric-link, .workspace-conversation-row { color: inherit; text-decoration: none; }
.workspace-quick-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin: 1rem 0; }
.workspace-details { border: 1px solid rgba(15, 23, 40, .12); border-radius: 16px; padding: 1rem; margin: 1rem 0; }
.workspace-details > summary { font-weight: 600; cursor: pointer; }
.workspace-details[open] > summary { margin-bottom: 1rem; }
.workspace-launch-phases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; padding: 0; list-style: none; }
.workspace-launch-phases li { display: flex; gap: .5rem; align-items: center; padding: .85rem; border-radius: 12px; background: rgba(16, 33, 47, .04); font-size: .88rem; }
.workspace-launch-phases .is-current { outline: 2px solid var(--color-accent); }
.workspace-launch-phases .is-complete { background: rgba(20, 126, 84, .09); }
.workspace-launch-phases span { font-weight: 700; }
.workspace-overview progress, .app-shell > progress { width: 100%; max-width: 420px; height: .6rem; margin: .5rem 0 1rem; accent-color: var(--color-accent); }
.workspace-filter-bar { display: flex; flex-wrap: wrap; align-items: end; gap: .85rem; margin: 1rem 0 1.5rem; }
.workspace-filter-bar label { display: grid; gap: .4rem; flex: 1 1 180px; }
.workspace-filter-bar input, .workspace-filter-bar select { width: 100%; }
.workspace-conversation-list { display: grid; gap: .7rem; }
.workspace-conversation-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.2rem; }
.workspace-conversation-row:hover { border-color: var(--color-accent); }
.workspace-conversation-row__message { min-width: 0; flex: 1; }
.workspace-conversation-row__message strong { overflow-wrap: anywhere; }
.workspace-conversation-row__message p { margin: .4rem 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--color-muted); }
.workspace-conversation-row__meta { display: grid; gap: .4rem; text-align: right; font-size: .8rem; }
.workspace-transcript { display: grid; gap: .9rem; margin: 1.5rem 0; }
.workspace-message { width: 88%; }
.workspace-message--customer { margin-left: auto; background: rgba(29, 78, 216, .035); }
.workspace-message header { display: flex; justify-content: space-between; gap: .8rem; font-size: .85rem; }
.workspace-message time { color: var(--color-muted); }
.workspace-message__body { margin-top: .7rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.workspace-tabs { display: flex; flex-wrap: wrap; gap: .5rem; padding: .5rem 0; margin-bottom: 1.2rem; }
.workspace-tabs a { padding: .7rem 1rem; color: inherit; border-radius: 12px; text-decoration: none; }
.workspace-tabs a[aria-selected="true"] { background: rgba(20, 126, 84, .09); font-weight: 700; }
.workspace-tabs-is-ready [data-workspace-panel][hidden] { display: none; }
.workspace-save-bar { position: sticky; bottom: .5rem; z-index: 5; background: var(--color-surface, #fff); border: 1px solid rgba(15, 23, 40, .12); padding: .85rem 1rem; border-radius: 16px; box-shadow: var(--shadow-card); }
.workspace-language-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: .65rem; border: 0; padding: .5rem 0; }
.workspace-language-options label { display: flex; align-items: center; gap: .5rem; }
.workspace-language-options input { width: auto; }
.app-pagination { display: flex; align-items: center; justify-content: center; gap: .8rem; margin: 1rem 0; }
@media (max-width: 900px) {
    .app-mobile-menu { display: flex; align-items: center; justify-content: space-between; cursor: pointer; border: 1px solid rgba(15, 23, 40, .12); padding: 1rem; border-radius: 16px; background: #fff; font-weight: 700; }
    .app-mobile-menu span { font-weight: 400; font-size: .85rem; }
    .app-navigation-shell[open] > .app-mobile-menu { margin-bottom: .65rem; }
    .app-topbar { padding: .4rem 0; }
}
@media (max-width: 640px) {
    .workspace-heading, .workspace-action-row, .workspace-next-step { flex-direction: column; align-items: stretch; }
    .workspace-metrics { grid-template-columns: 1fr; }
    .workspace-launch-phases { grid-template-columns: 1fr 1fr; }
    .workspace-conversation-row { align-items: flex-start; }
    .workspace-conversation-row__meta { max-width: 135px; }
    .workspace-message { width: 100%; }
    .workspace-message header { flex-wrap: wrap; }
    .workspace-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .workspace-tabs a { padding: .65rem .25rem; text-align: center; font-size: .85rem; }
}

.workspace-widget-editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr); gap: 1.25rem; align-items: start; }
.workspace-widget-controls, .workspace-widget-preview { min-width: 0; }
.workspace-widget-controls .font-picker-layout { grid-template-columns: minmax(0, 1fr); }
.workspace-widget-preview .widget-preview-grid { grid-template-columns: minmax(0, 1fr); }
.workspace-question-list { list-style: none; padding: 0; }
.workspace-question-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--color-border); }
.workspace-question-list small { flex: 0 0 auto; }
.workspace-settings-link { color: inherit; text-decoration: none; }
.workspace-settings-link:hover { border-color: var(--color-accent); }
.workspace-page > .card, .workspace-page > details { margin-bottom: 1rem; }
@media (max-width: 1150px) { .workspace-widget-editor { grid-template-columns: minmax(0, 1fr); } }

.workspace-widget-preview .wpreview-split { display: block; }
.workspace-widget-preview .wpreview-split__aside { border-left: 0; border-top: 1px solid rgba(12,22,33,.12); }
.workspace-widget-preview .wpreview-split__label { flex-wrap: wrap; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.app-navigation-shell { position: sticky; top: 1rem; }
.app-navigation-shell .app-sidebar { position: static; gap: .65rem; }
.app-navigation-shell .app-nav { gap: .4rem; }
.app-navigation-shell .app-nav__group { padding: 0; border: 0; background: none; box-shadow: none; gap: .15rem; }
.app-navigation-shell .app-nav__item a { padding: .5rem .6rem; }
.app-navigation-shell .app-nav__related > summary { padding: .25rem .6rem; }
.app-navigation-shell .app-sidebar__workspace { padding: .7rem; }
@media (max-width: 900px) { .app-navigation-shell { position: static; } }
