/**
 * Agentrix SaaS — estilos de LP, auth e painéis
 * Usa tokens.css (tema light/dark + accent lime #9de136)
 */

.saas-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--success-border);
    background: var(--success-bg);
    color: var(--text-primary);
    margin: 0 0 16px;
    width: 100%;
    box-sizing: border-box;
    font-weight: 600;
    animation: ax-alert-in 0.22s ease-out;
}

@keyframes ax-alert-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.saas-alert--error {
    border-color: var(--danger-border);
    background: var(--danger-bg);
}

.saas-alert svg {
    flex-shrink: 0;
    color: var(--success);
}

.saas-alert--error svg {
    color: var(--danger);
}

/* ===== LP Hero ===== */
.saas-hero {
    padding: 48px 0 32px;
}

.saas-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--section-intro-eyebrow-gap);
}

.saas-hero__title {
    margin: 0 0 var(--section-intro-title-gap);
    font-size: var(--font-size-hero);
    line-height: var(--line-height-tight);
    font-weight: 800;
    color: var(--text-primary);
    max-width: 18ch;
}

.saas-hero__subtitle {
    margin: 0 0 var(--space-8);
    max-width: 42rem;
    font-size: var(--section-subtitle-size);
    color: var(--section-subtitle-color);
    line-height: var(--line-height-subtitle);
}

.saas-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: var(--space-12);
}

.saas-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    font-weight: 700;
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
    text-decoration: none;
}

.saas-btn:hover {
    transform: translateY(-1px);
}

.saas-btn--primary {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-fg);
}

.saas-btn--primary:hover {
    background: var(--btn-primary-hover-bg);
}

.saas-btn--ghost {
    background: transparent;
    border-color: var(--border);
    color: var(--text-primary);
}

.saas-btn--ghost:hover {
    background: var(--surface-hover);
}

.saas-btn--sm {
    padding: 8px 14px;
    font-size: var(--font-size-xs);
}

/* Plugin cards (estilo featured do blog) */
.saas-plugin-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: var(--featured-layout-gap);
    margin-bottom: var(--space-12);
}

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

.saas-plugin-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 280px;
    padding: 24px;
    border-radius: var(--featured-media-radius);
    border: 1px solid var(--featured-card-border);
    background:
        var(--featured-overlay),
        linear-gradient(145deg, #1c2a3a 0%, #152238 50%, #1a2f28 100%);
    color: var(--featured-overlay-text);
    box-shadow: var(--featured-card-shadow);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.saas-plugin-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
}

.saas-plugin-card--side {
    min-height: 132px;
}

.saas-plugin-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    background: var(--category-ribbon-bg);
    color: var(--category-ribbon-fg);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.saas-plugin-card__title {
    margin: 0 0 8px;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.25;
}

.saas-plugin-card--side .saas-plugin-card__title {
    font-size: 1.05rem;
}

.saas-plugin-card__excerpt {
    margin: 0 0 14px;
    color: rgba(248, 250, 252, 0.78);
    font-size: var(--font-size-sm);
}

.saas-plugin-card__meta {
    display: flex;
    gap: 16px;
    font-size: var(--font-size-xs);
    color: rgba(248, 250, 252, 0.55);
}

.saas-side-stack {
    display: flex;
    flex-direction: column;
    gap: var(--featured-layout-gap);
}

/* Newsletter band */
.saas-newsletter {
    background: var(--newsletter-bg);
    color: var(--newsletter-fg);
    border-radius: var(--radius-xl);
    padding: 40px 36px;
    margin: 48px auto;
    width: min(1140px, 92%);
}

.saas-newsletter h2 {
    margin: 0 0 10px;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.saas-newsletter p {
    margin: 0 0 20px;
    color: var(--newsletter-muted);
    max-width: 36rem;
}

.saas-newsletter__form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.saas-newsletter__form input[type="email"] {
    flex: 1 1 240px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--newsletter-input-border);
    background: var(--newsletter-input-bg);
    color: var(--newsletter-fg);
}

.saas-newsletter__form button {
    background: var(--newsletter-btn-bg);
    color: var(--btn-primary-fg);
    border: 0;
    border-radius: var(--radius-md);
    padding: 12px 20px;
    font-weight: 700;
    cursor: pointer;
}

/* Footer */
.saas-footer {
    background: var(--footer-main-bg);
    border-top: 1px solid var(--footer-main-border);
    color: var(--footer-main-text);
    padding: 48px 0 0;
    margin-top: 48px;
}

.saas-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
    width: min(1140px, 92%);
    margin: 0 auto 32px;
}

@media (max-width: 800px) {
    .saas-footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

.saas-footer__brand-desc {
    margin-top: 12px;
    color: var(--footer-main-text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

.saas-footer h4 {
    margin: 0 0 14px;
    font-size: var(--font-size-xs);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--footer-main-text-secondary);
}

.saas-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.saas-footer li + li {
    margin-top: 8px;
}

.saas-footer a {
    color: var(--footer-main-link);
    font-size: var(--font-size-sm);
}

.saas-footer a:hover {
    color: var(--footer-main-link-hover);
}

.saas-footer__bar {
    border-top: 1px solid var(--footer-bar-border);
    background: var(--footer-bar-bg);
    color: var(--footer-bar-text);
    font-size: var(--font-size-xs);
    padding: 14px 0;
}

.saas-footer__bar-inner {
    width: min(1140px, 92%);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

/* ===== Auth ===== */
.saas-auth {
    min-height: calc(100vh - var(--header-height));
    display: grid;
    place-items: center;
    padding: 40px 16px;
    background:
        radial-gradient(ellipse at 20% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 50%),
        var(--bg-primary);
}

.saas-auth__card {
    width: min(420px, 100%);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px 28px;
    box-shadow: var(--shadow-md);
}

.saas-auth__card h1 {
    margin: 0 0 6px;
    font-size: 1.5rem;
}

.saas-auth__card .saas-muted {
    margin: 0 0 24px;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.saas-field {
    margin-bottom: 14px;
}

.saas-field label {
    display: block;
    margin-bottom: 6px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-secondary);
}

.saas-field input,
.saas-field select,
.saas-field textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 11px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    color: var(--input-fg);
    font: inherit;
    display: block;
}

.saas-field textarea {
    min-height: 96px;
    resize: vertical;
    line-height: 1.45;
}

.saas-field small,
.saas-field .saas-muted {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--text-muted, var(--text-secondary));
}

.saas-auth__submit {
    width: 100%;
    margin-top: 8px;
}

.saas-auth__switch {
    margin-top: 18px;
    text-align: center;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.saas-auth__switch a {
    color: var(--accent-link);
    font-weight: 600;
}

/* ===== Admin / App shell ===== */
.saas-shell {
    min-height: 100vh;
    background: var(--admin-shell-bg);
}

.saas-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 20px;
    height: var(--header-height);
    background: var(--admin-topbar-bg);
    border-bottom: 1px solid var(--admin-topbar-border);
    box-shadow: var(--admin-topbar-shadow);
    color: var(--admin-topbar-fg);
}

.saas-topbar__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    text-decoration: none;
    color: inherit;
}

.saas-topbar__brand-text strong {
    display: block;
    font-size: 0.95rem;
}

.saas-topbar__brand-text span {
    display: block;
    font-size: 0.7rem;
    color: var(--header-tagline-fg);
}

.saas-topbar__nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    overflow-x: auto;
    margin: 0;
    padding: 0;
    list-style: none;
}

.saas-topbar__nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    color: var(--admin-topbar-link);
    font-size: var(--font-size-sm);
    white-space: nowrap;
}

.saas-topbar__nav a:hover {
    color: var(--admin-topbar-link-hover);
    background: var(--nav-hover-bg);
}

.saas-topbar__nav a.is-active {
    background: var(--admin-topbar-link-active-bg);
    color: var(--admin-topbar-link-active-fg);
}

.saas-topbar__utils {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.saas-topbar__utils a,
.saas-topbar__utils button {
    color: var(--admin-topbar-fg-muted);
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: var(--font-size-sm);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
}

.saas-topbar__utils a:hover,
.saas-topbar__utils button:hover {
    color: var(--admin-topbar-fg);
    background: var(--header-control-hover-bg);
}

.saas-content {
    width: min(var(--admin-content-max), var(--admin-content-width));
    margin: 0 auto;
    padding: 28px 16px 48px;
}

.saas-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.saas-section-head h1 {
    margin: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.saas-section-head p {
    margin: 6px 0 0;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.saas-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.saas-stat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px 16px;
    box-shadow: var(--admin-panel-shadow);
}

.saas-stat__value {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.1;
}

.saas-stat__label {
    margin-top: 6px;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.saas-stat__icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: var(--icon-badge-radius);
    background: var(--icon-badge-bg);
    color: var(--icon-accent);
    margin-bottom: 12px;
}

.saas-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--admin-panel-shadow);
    margin-bottom: 20px;
}

.saas-panel h2 {
    margin: 0 0 6px;
    font-size: 1.15rem;
}

.saas-panel > .saas-muted {
    margin: 0 0 16px;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.saas-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-sm);
}

.saas-table th,
.saas-table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
}

.saas-table th {
    background: var(--admin-table-head-bg);
    color: var(--text-secondary);
    font-weight: 600;
}

.saas-badge {
    display: inline-flex;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: var(--badge-bg);
    color: var(--badge-fg);
}

.saas-badge--muted {
    background: var(--surface-hover);
    color: var(--text-secondary);
}

.saas-badge--ok {
    background: var(--success-bg);
    color: var(--success);
}

.saas-badge--warn {
    background: color-mix(in srgb, #f59e0b 18%, transparent);
    color: #d97706;
}

.saas-catalog {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.saas-catalog-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: var(--admin-panel-shadow);
}

.saas-catalog-card h3 {
    margin: 0;
    font-size: 1.05rem;
}

.saas-catalog-card p {
    margin: 0;
    flex: 1;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.saas-catalog-card__price {
    font-weight: 800;
    font-size: 1.1rem;
}

.saas-catalog-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
}

/* ===== Marketplace master (plugins) ===== */
.ax-mkt-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.ax-mkt-search {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 280px;
    max-width: 420px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    box-shadow: var(--admin-panel-shadow);
}

.ax-mkt-search__icon {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1;
}

.ax-mkt-search input {
    border: 0;
    outline: 0;
    background: transparent;
    width: 100%;
    font: inherit;
    color: var(--text-primary);
}

.ax-mkt-toolbar__count {
    margin: 0;
    font-size: 0.875rem;
}

.ax-mkt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.ax-mkt-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--admin-panel-shadow);
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.ax-mkt-card:hover {
    border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
    transform: translateY(-1px);
}

.ax-mkt-card__top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.ax-mkt-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    object-fit: cover;
    flex-shrink: 0;
}

.ax-mkt-card__icon--letter {
    display: grid;
    place-items: center;
    background: var(--ax-icon-bg, #057932);
    color: #fff;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.ax-mkt-card__meta {
    flex: 1;
    min-width: 0;
}

.ax-mkt-card__title {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.25;
}

.ax-mkt-card__slug {
    display: block;
    margin-top: 2px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: transparent;
    padding: 0;
}

.ax-mkt-card__status {
    flex-shrink: 0;
    align-self: flex-start;
}

.ax-mkt-card__desc {
    margin: 0;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.5;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ax-mkt-card__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.ax-mkt-card__price {
    font-weight: 800;
    font-size: 1.05rem;
}

.ax-mkt-card__cat {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.ax-mkt-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.ax-mkt-empty {
    margin-top: 24px;
    text-align: center;
}

.ax-mkt-install {
    display: grid;
    gap: 20px;
    max-width: 720px;
}

.ax-mkt-install__app {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ax-mkt-install__app h2 {
    margin: 0 0 4px;
    font-size: 1.2rem;
}

.ax-mkt-install__toggle {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.ax-mkt-install__toggle button {
    appearance: none;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-secondary);
    font: inherit;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
}

.ax-mkt-install__toggle button.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--text-primary, #132308);
}

.ax-mkt-install__panel[hidden] {
    display: none !important;
}

/* Demo marketplace page — LP rica */
.ax-lp {
    --ax-lp-ink: #132308;
    --ax-lp-muted: #5b6b5e;
    --ax-lp-line: rgba(19, 35, 8, 0.1);
    --ax-lp-lime: #9de136;
    --ax-lp-forest: #057932;
    --ax-lp-bg: #f3f7ef;
    --ax-lp-surface: #ffffff;
    font-family: Manrope, 'Segoe UI', sans-serif;
    color: var(--ax-lp-ink);
    background:
        radial-gradient(ellipse 70% 45% at 0% 0%, rgba(157, 225, 54, 0.22), transparent 55%),
        radial-gradient(ellipse 55% 40% at 100% 8%, rgba(5, 121, 50, 0.1), transparent 50%),
        linear-gradient(180deg, #eef6e6 0%, var(--ax-lp-bg) 28%, #fff 100%);
}

.ax-lp h1,
.ax-lp h2,
.ax-lp h3,
.ax-lp__subnav-title {
    font-family: Sora, Manrope, sans-serif;
    letter-spacing: -0.03em;
}

.ax-lp__subnav {
    position: sticky;
    top: 64px;
    z-index: 30;
    background: color-mix(in srgb, #132308 94%, transparent);
    backdrop-filter: blur(8px);
    color: #fff;
}

.ax-lp__subnav-inner {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 0;
    flex-wrap: wrap;
}

.ax-lp__subnav-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-right: auto;
}

.ax-lp__subnav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
}

.ax-lp__subnav-links a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
}

.ax-lp__subnav-links a:hover {
    color: var(--ax-lp-lime);
}

.ax-lp__subnav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 10px;
    background: var(--ax-lp-lime);
    color: var(--ax-lp-ink);
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
}

.ax-lp__hero {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0 56px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 40px;
    align-items: center;
}

.ax-lp__eyebrow {
    margin: 0 0 12px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ax-lp-forest);
}

.ax-lp__hero-copy h1 {
    margin: 0 0 16px;
    font-size: clamp(2rem, 4.2vw, 3.15rem);
    line-height: 1.08;
    max-width: 14ch;
}

.ax-lp__lead {
    margin: 0 0 24px;
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--ax-lp-muted);
    max-width: 36rem;
}

.ax-lp__cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ax-lp__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 0.15s ease, background 0.15s ease;
}

.ax-lp__btn:hover {
    transform: translateY(-1px);
}

.ax-lp__btn--primary {
    background: var(--ax-lp-lime);
    color: var(--ax-lp-ink);
}

.ax-lp__btn--ghost {
    background: transparent;
    border-color: var(--ax-lp-line);
    color: var(--ax-lp-ink);
}

.ax-lp__note {
    margin: 12px 0 0;
    font-size: 0.84rem;
    color: var(--ax-lp-muted);
}

.ax-lp__price {
    margin: 8px 0 0;
    font-weight: 800;
    font-size: 1.05rem;
}

.ax-lp__hero-visual {
    min-height: 360px;
}

.ax-lp-mock {
    background: var(--ax-lp-surface);
    border: 1px solid var(--ax-lp-line);
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 24px 60px rgba(19, 35, 8, 0.1);
    display: grid;
    gap: 14px;
}

.ax-lp-mock__head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ax-lp-mock__avatar,
.ax-lp-mock__mark {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--ax-icon-bg, var(--ax-lp-forest));
    color: #fff;
    font-family: Sora, sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
}

.ax-lp-mock__head strong {
    display: block;
    font-size: 0.95rem;
}

.ax-lp-mock__head small {
    color: var(--ax-lp-forest);
    font-weight: 600;
}

.ax-lp-mock__score {
    margin-left: auto;
    font-weight: 800;
    color: #b45309;
}

.ax-lp-mock__summary {
    padding: 14px;
    border-radius: 14px;
    background: #f0f7eb;
}

.ax-lp-mock__summary strong {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.ax-lp-mock__summary ul {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--ax-lp-muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

.ax-lp-mock__chat {
    display: grid;
    gap: 8px;
}

.ax-lp-mock__bubble {
    max-width: 92%;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 0.88rem;
    line-height: 1.45;
}

.ax-lp-mock__bubble--bot {
    background: #e8f5ed;
    color: var(--ax-lp-ink);
    border-bottom-left-radius: 4px;
}

.ax-lp-mock__bubble--user {
    margin-left: auto;
    background: var(--ax-lp-forest);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.ax-lp-mock--generic {
    text-align: center;
    padding: 40px 28px;
    place-items: center;
}

.ax-lp-mock--generic h2 {
    margin: 0;
    font-size: 1.4rem;
}

.ax-lp-mock--generic p {
    margin: 0;
    color: var(--ax-lp-muted);
    line-height: 1.55;
    max-width: 28rem;
}

.ax-lp-mock__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.ax-lp-mock__pills span {
    padding: 6px 12px;
    border-radius: 999px;
    background: #eef6e6;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--ax-lp-forest);
}

.ax-lp__section {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 56px 0;
}

.ax-lp__section--tint {
    width: 100%;
    padding-left: max(16px, calc((100% - 1120px) / 2));
    padding-right: max(16px, calc((100% - 1120px) / 2));
    background: color-mix(in srgb, var(--ax-lp-lime) 8%, #fff);
    border-block: 1px solid var(--ax-lp-line);
}

.ax-lp__section-head {
    max-width: 40rem;
    margin-bottom: 28px;
}

.ax-lp__section-head h2 {
    margin: 0 0 12px;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.ax-lp__section-head p:last-child {
    margin: 0;
    color: var(--ax-lp-muted);
    line-height: 1.65;
    font-size: 1.02rem;
}

.ax-lp__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 24px;
}

.ax-lp__grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ax-lp__item h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
}

.ax-lp__item p {
    margin: 0;
    color: var(--ax-lp-muted);
    line-height: 1.55;
    font-size: 0.95rem;
}

.ax-lp__item--line {
    padding-top: 16px;
    border-top: 1px solid var(--ax-lp-line);
}

.ax-lp__examples {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.ax-lp__examples h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    color: var(--ax-lp-forest);
}

.ax-lp__examples p {
    margin: 0;
    color: var(--ax-lp-muted);
    line-height: 1.55;
}

.ax-lp__steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
    max-width: 640px;
}

.ax-lp__steps li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-weight: 600;
    line-height: 1.45;
}

.ax-lp__steps span {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--ax-lp-lime);
    color: var(--ax-lp-ink);
    font-family: Sora, sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
}

.ax-lp__try {
    padding: 24px 16px 80px;
}

.ax-lp__try-inner {
    width: min(720px, 100%);
    margin: 0 auto;
    text-align: center;
    padding: 36px 28px;
    background: var(--ax-lp-surface);
    border: 1px solid var(--ax-lp-line);
    border-radius: 22px;
    box-shadow: 0 18px 48px rgba(19, 35, 8, 0.08);
}

.ax-lp__try-inner:has(.ax-lp__ig-mount) {
    width: min(960px, 100%);
}

.ax-lp__ig-mount {
    width: 100%;
}

.ax-lp__try-inner h2 {
    margin: 0 0 12px;
    font-size: clamp(1.4rem, 3vw, 1.85rem);
}

.ax-lp__try-inner > p {
    margin: 0 auto;
    max-width: 36rem;
    color: var(--ax-lp-muted);
    line-height: 1.6;
}

.ax-lp__try-hint {
    display: block;
    width: 100%;
    margin-top: 16px !important;
    padding: 12px 14px;
    border: 0;
    border-radius: 12px;
    background: #e8f5ed;
    color: var(--ax-lp-forest) !important;
    font-weight: 700;
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    text-align: center;
}

.ax-lp__try-hint:hover {
    background: #d8efdf;
}

button.ax-lp__btn {
    appearance: none;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
}

@media (max-width: 900px) {
    .ax-lp__hero {
        grid-template-columns: 1fr;
        padding-top: 32px;
    }

    .ax-lp__hero-copy h1 {
        max-width: none;
    }

    .ax-lp__subnav-links {
        display: none;
    }

    .ax-lp__grid,
    .ax-lp__grid--2,
    .ax-lp__examples {
        grid-template-columns: 1fr;
    }
}


.logo-mark {
    width: var(--logo-mark-size);
    height: var(--logo-mark-size);
    flex-shrink: 0;
    border-radius: 12px;
    background: var(--header-logo-mark-bg);
    color: var(--header-logo-mark-fg);
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 1.25rem;
    position: relative;
    overflow: hidden;
}

.logo-mark::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, var(--header-logo-mark-sheen), transparent 55%),
        repeating-linear-gradient(0deg, transparent, transparent 6px, var(--header-logo-mark-grid) 6px, var(--header-logo-mark-grid) 7px);
    pointer-events: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-height);
    background: var(--header-bg);
    border-bottom: 1px solid var(--header-border);
    box-shadow: var(--header-shadow);
    color: var(--header-fg);
}

.site-header__inner {
    width: min(1140px, 92%);
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.site-header .logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--header-fg);
    text-decoration: none;
    font-weight: 700;
}

.site-header .logo small {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--header-tagline-fg);
}

.site-nav {
    display: flex;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.site-nav a {
    color: var(--header-fg-muted);
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
}

.site-nav a:hover {
    color: var(--header-fg-hover);
}

.site-header__cta {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--header-control-border);
    background: var(--header-control-bg);
    color: var(--header-control-fg);
    cursor: pointer;
    display: grid;
    place-items: center;
}

.theme-toggle:hover {
    background: var(--header-control-hover-bg);
    color: var(--header-control-hover-fg);
}

@media (max-width: 720px) {
    .site-nav {
        display: none;
    }
}

/* ===== Bot�o perigo ===== */
.saas-btn--danger {
    background: #dc2626;
    color: #fff;
    border-color: #dc2626;
}
.saas-btn--danger:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    color: #fff;
}

/* ===== Modais Agentrix ===== */
body.ax-modal-open { overflow: hidden; }

.ax-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.ax-modal.is-open { display: flex; }

.ax-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(2px);
}

.ax-modal__dialog {
    position: relative;
    width: min(420px, 100%);
    background: var(--surface, #fff);
    color: var(--text-primary, #0f172a);
    border-radius: 16px;
    border: 1px solid var(--border, #e2e8f0);
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.2);
    padding: 28px 24px 20px;
    text-align: center;
    animation: ax-modal-in 0.18s ease-out;
}

@keyframes ax-modal-in {
    from { opacity: 0; transform: translateY(8px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

.ax-modal__icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #eef6dd;
    color: #5a8a12;
}
.ax-modal[data-variant="danger"] .ax-modal__icon,
.ax-modal[data-variant="error"] .ax-modal__icon {
    background: #fee2e2;
    color: #dc2626;
}
.ax-modal[data-variant="warning"] .ax-modal__icon {
    background: #fef3c7;
    color: #d97706;
}
.ax-modal[data-variant="info"] .ax-modal__icon {
    background: #e2e8f0;
    color: #475569;
}

.ax-modal__title {
    margin: 0 0 8px;
    font-size: 1.15rem;
    font-weight: 700;
}
.ax-modal__body {
    margin: 0 0 20px;
    color: var(--text-secondary, #64748b);
    font-size: 0.95rem;
    line-height: 1.5;
}
.ax-modal__actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.ax-modal__actions .saas-btn { min-width: 120px; }

/* Token mascarado */
.ax-secret {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-md, 10px);
    border: 1px solid var(--border, #e2e8f0);
    background: var(--bg-secondary, #f8fafc);
}
.ax-secret__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary, #64748b);
    font-weight: 600;
}
.ax-secret__value {
    flex: 1;
    min-width: 120px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.85rem;
    color: var(--text-primary, #0f172a);
    letter-spacing: 0.04em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    user-select: none;
}
.ax-secret__actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}
.ax-secret__actions .saas-btn {
    padding: 6px 10px;
    font-size: 0.8rem;
}
.ax-code-masked {
    width: 100%;
    box-sizing: border-box;
    font-family: ui-monospace, monospace;
    font-size: 0.8rem;
    padding: 12px;
    border-radius: var(--radius-md, 10px);
    border: 1px solid var(--border, #e2e8f0);
    background: var(--bg-secondary, #f8fafc);
    color: var(--text-primary, #0f172a);
    white-space: pre-wrap;
    word-break: break-all;
    line-height: 1.45;
    margin: 0;
}

/* Alias BEM usado nas views de secret */
.ax-secret { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border, #e2e8f0); background: var(--bg-secondary, #f8fafc); }
.ax-secret__label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-secondary, #64748b); font-weight: 600; }
.ax-secret__value { flex: 1; min-width: 120px; font-family: ui-monospace, monospace; font-size: 0.85rem; letter-spacing: 0.04em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; user-select: none; }
.ax-secret__actions { display: flex; gap: 6px; flex-shrink: 0; }
.ax-secret__actions .saas-btn { padding: 6px 10px; font-size: 0.8rem; }

/* —— Atendente Virtual: layout, switch, tabs, pets, cores —— */
.ax-av-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
}
.ax-av-side { display: none; }
.ax-av-form { display: grid; gap: 18px; }
.ax-av-toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}
.ax-av-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.ax-av-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.ax-av-md {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.82rem;
    line-height: 1.45;
}
.ax-av-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
    padding-top: 0;
}

.ax-usage-panel h2 {
    margin-bottom: 4px;
}

.ax-usage-inline {
    margin-top: 8px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface-muted, #f8faf6);
}

.ax-usage-inline__title {
    margin: 0 0 10px;
    font-size: 0.9rem;
    font-weight: 600;
}

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

.ax-usage-grid--compact .ax-usage-item {
    padding: 10px 12px;
}

.ax-usage-item {
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md, 10px);
    background: var(--surface);
}

.ax-usage-item__label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.ax-usage-item__value {
    display: block;
    font-size: 1.25rem;
    line-height: 1.2;
    color: var(--text-primary);
}

.ax-usage-item__unit {
    display: inline-block;
    margin-left: 4px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.ax-usage-item__meta {
    display: block;
    margin-top: 6px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* iOS-style switch */
.ax-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    font-size: 0.9rem;
    color: var(--text-primary, #0f172a);
}
.ax-switch input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    pointer-events: none;
}
.ax-switch__track {
    position: relative;
    width: 44px;
    height: 26px;
    flex-shrink: 0;
    border-radius: 999px;
    background: #cbd5e1;
    border: 1px solid #b6c2d1;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.ax-switch__thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
    transition: transform 0.2s ease;
}
.ax-switch input:checked + .ax-switch__track {
    background: var(--accent, #9de136);
    border-color: color-mix(in srgb, var(--accent, #9de136) 70%, #057932);
}
.ax-switch input:checked + .ax-switch__track .ax-switch__thumb {
    transform: translateX(18px);
}
.ax-switch input:focus-visible + .ax-switch__track {
    outline: 2px solid var(--accent, #9de136);
    outline-offset: 2px;
}
.ax-switch__label { line-height: 1.3; }

/* Tabs */
.ax-tabs { display: grid; gap: 0; }
.ax-tabs--stretch { gap: 0; }
.ax-tabs__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0;
    width: 100%;
    padding: 0 2px;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border, #e2e8f0);
    overflow: visible;
}
.ax-tabs--stretch .ax-tabs__bar {
    margin-left: -20px;
    margin-right: -20px;
    width: calc(100% + 40px);
    padding-left: 12px;
    padding-right: 12px;
}
.ax-tabs__btn {
    appearance: none;
    border: 1px solid transparent;
    border-bottom: none;
    background: transparent;
    color: var(--text-secondary, #64748b);
    font: inherit;
    font-size: 0.84rem;
    font-weight: 600;
    padding: 9px 11px 8px;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
    flex: 0 0 auto;
    margin-bottom: -1px;
    position: relative;
    letter-spacing: -0.01em;
}
.ax-tabs__btn:hover {
    color: var(--text-primary, #0f172a);
    background: color-mix(in srgb, var(--bg-secondary, #f1f5f9) 80%, #fff);
}
.ax-tabs__btn.is-active {
    background: var(--accent, #9de136);
    color: #132308;
    border-color: color-mix(in srgb, var(--accent, #9de136) 65%, #057932);
    box-shadow: none;
    outline: none;
    font-weight: 700;
    z-index: 2;
}
.ax-tabs__btn.is-active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--accent, #9de136);
}
.ax-tabs__btn.is-active:hover {
    background: color-mix(in srgb, var(--accent, #9de136) 88%, #057932);
    color: #132308;
}

/* Ficheira: painel ligado à aba ativa */
.ax-tabs--folder .ax-tabs__body {
    border: 1px solid var(--border, #e2e8f0);
    border-top: none;
    border-radius: 0 0 14px 14px;
    background: var(--surface, #fff);
    padding: 18px 20px 4px;
    margin-top: 0;
}
.ax-tabs--folder.ax-tabs--stretch .ax-tabs__body {
    margin-left: -20px;
    margin-right: -20px;
    width: calc(100% + 40px);
    border-left: none;
    border-right: none;
    border-radius: 0;
    padding-left: 20px;
    padding-right: 20px;
}

.ax-tabs__panel {
    display: none;
    grid-gap: 12px;
}
.ax-tabs__panel.is-active {
    display: grid;
}

/* Toggles em cards (aba Geral) */
.ax-toggle-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.ax-toggle-grid--single {
    grid-template-columns: 1fr;
    max-width: 480px;
}
.ax-switch-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 12px;
    background: var(--bg-secondary, #f8fafc);
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    position: relative;
}
.ax-switch-card > input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    pointer-events: none;
}
.ax-switch-card:hover {
    border-color: color-mix(in srgb, var(--btn-primary-bg, #9de136) 35%, var(--border, #e2e8f0));
}
.ax-switch-card:has(input[type="checkbox"]:checked) {
    border-color: color-mix(in srgb, var(--btn-primary-bg, #9de136) 55%, var(--border, #e2e8f0));
    background: color-mix(in srgb, var(--btn-primary-bg, #9de136) 8%, #fff);
}
.ax-switch-card .ax-switch__track {
    flex-shrink: 0;
    margin-top: 2px;
}
.ax-switch-card > input[type="checkbox"]:checked + .ax-switch__track {
    background: var(--accent, #9de136);
    border-color: color-mix(in srgb, var(--accent, #9de136) 70%, #057932);
}
.ax-switch-card > input[type="checkbox"]:checked + .ax-switch__track .ax-switch__thumb {
    transform: translateX(18px);
}
.ax-switch-card > input[type="checkbox"]:focus-visible + .ax-switch__track {
    outline: 2px solid var(--accent, #9de136);
    outline-offset: 2px;
}
.ax-switch-card__text {
    display: grid;
    gap: 4px;
    min-width: 0;
}
.ax-switch-card__text strong {
    font-size: 0.88rem;
    color: var(--text-primary, #0f172a);
}
.ax-switch-card__text small {
    font-size: 0.78rem;
    line-height: 1.4;
    color: var(--text-secondary, #64748b);
}

/* Sub-abas (ex.: Personalidade) — ficheira compacta */
.ax-subtabs { display: grid; gap: 0; }
.ax-subtabs__bar {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 0;
    padding: 0 2px;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border, #e2e8f0);
    overflow-x: auto;
    scrollbar-width: thin;
}
.ax-subtabs__btn {
    appearance: none;
    border: 1px solid transparent;
    border-bottom: none;
    background: transparent;
    color: var(--text-secondary, #64748b);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 8px 12px 7px;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    white-space: nowrap;
    flex: 0 0 auto;
    margin-bottom: -1px;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.ax-subtabs__btn:hover {
    color: var(--text-primary, #0f172a);
    background: var(--bg-secondary, #f8fafc);
}
.ax-subtabs__btn.is-active {
    background: var(--accent, #9de136);
    color: #132308;
    border-color: color-mix(in srgb, var(--accent, #9de136) 65%, #057932);
    box-shadow: none;
    font-weight: 700;
}
.ax-subtabs__body {
    border: 1px solid var(--border, #e2e8f0);
    border-top: none;
    border-radius: 0 0 10px 10px;
    padding: 14px 0 0;
}
.ax-subtabs__panel { display: none; }
.ax-subtabs__panel.is-active { display: block; }

/* Layout único — config de plugins */
.ax-plugin-layout {
    max-width: 1280px;
    margin: 0 auto;
}
.ax-plugin-form { display: grid; gap: 18px; }
.saas-panel--tabs { padding-top: 12px; padding-bottom: 16px; }
.saas-panel--tabs .ax-tabs--stretch { margin-top: 0; }

/* Cabeçalho Google / docs de plugin */
.ax-setup-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}
.ax-setup-head__title {
    margin: 0;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

/* Box de documentação (passo a passo) */
.saas-shell .ax-doc-box {
    margin: 0 0 18px;
    padding: 0;
    border-radius: 12px;
    border: 1px solid rgba(5, 121, 50, 0.22);
    background: #edf7e8;
    overflow: hidden;
}
.saas-shell .ax-doc-box__head {
    padding: 12px 14px 10px;
    border-bottom: 1px solid rgba(5, 121, 50, 0.12);
    background: rgba(255, 255, 255, 0.45);
}
.saas-shell .ax-doc-box__eyebrow {
    margin: 0 0 2px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #057932;
}
.saas-shell .ax-doc-box__title {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 700;
    color: #132308;
    letter-spacing: -0.01em;
}
.saas-shell .ax-doc-box__lead {
    margin: 4px 0 8px;
    font-size: 0.75rem;
    line-height: 1.45;
    color: #4d5f4f;
}
.saas-shell .ax-doc-box__links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.saas-shell .ax-doc-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid rgba(5, 121, 50, 0.22);
    background: #fff;
    color: #057932;
    font-size: 0.72rem;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.2;
}
.saas-shell .ax-doc-link:hover {
    background: #f3faf0;
    border-color: rgba(5, 121, 50, 0.4);
}
.saas-shell .ax-doc-steps {
    margin: 0;
    padding: 10px 14px 4px;
    display: grid;
    gap: 0;
}
.saas-shell .ax-doc-step {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 10px;
    padding: 0 0 12px;
    position: relative;
}
.saas-shell .ax-doc-step:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 22px;
    bottom: 0;
    width: 1px;
    background: rgba(5, 121, 50, 0.22);
}
.saas-shell .ax-doc-step__num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.68rem;
    font-weight: 800;
    color: #fff;
    background: #057932;
    position: relative;
    z-index: 1;
}
.saas-shell .ax-doc-step__body {
    min-width: 0;
    padding-top: 1px;
}
.saas-shell .ax-doc-step__body strong {
    display: block;
    margin: 0 0 2px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #132308;
}
.saas-shell .ax-doc-step__body p {
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.45;
    color: #4d5f4f;
    font-weight: 500;
}
.saas-shell .ax-doc-step__body a {
    color: #057932;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.saas-shell .ax-doc-step__body em {
    font-style: normal;
    font-weight: 600;
    color: #132308;
}
.saas-shell .ax-doc-copy {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
}
.saas-shell .ax-doc-copy code {
    flex: 1;
    min-width: 0;
    font-size: 0.68rem;
    word-break: break-all;
    color: #132308;
    background: transparent;
    padding: 0;
}
.saas-shell .ax-setup-hint {
    margin: 8px 0 0;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.04);
    color: #5b6b5e;
    font-size: 0.75rem;
}

/* Upload Dropbox-style (cabeçalho Agenda) */
.saas-shell .ax-dropzone {
    position: relative;
    max-width: 520px;
    display: grid;
    gap: 0;
}
.saas-shell .ax-dropzone__file {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
.saas-shell .ax-dropzone__surface {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 5 / 2;
    margin: 0;
    padding: 0;
    border: 1.5px dashed rgba(15, 23, 42, 0.18);
    border-radius: 14px;
    background:
        linear-gradient(180deg, #f7faf5 0%, #eef4eb 100%);
    overflow: hidden;
    cursor: pointer;
    text-align: center;
    font: inherit;
    color: inherit;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.saas-shell .ax-dropzone__surface:hover,
.saas-shell .ax-dropzone__surface:focus-visible {
    border-color: rgba(5, 121, 50, 0.45);
    background: linear-gradient(180deg, #f3f9ef 0%, #e8f3e2 100%);
    box-shadow: 0 0 0 4px rgba(5, 121, 50, 0.08);
    outline: none;
}
.saas-shell .ax-dropzone.is-dragover .ax-dropzone__surface {
    border-color: #057932;
    border-style: solid;
    background: #e8f6e0;
    box-shadow: 0 0 0 4px rgba(5, 121, 50, 0.14);
    transform: scale(1.01);
}
.saas-shell .ax-dropzone.has-image .ax-dropzone__surface {
    border-style: solid;
    border-color: rgba(15, 23, 42, 0.1);
    background: #0f172a;
}
.saas-shell .ax-dropzone__preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.saas-shell .ax-dropzone__empty {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 4px;
    padding: 16px;
    color: #3f5344;
}
.saas-shell .ax-dropzone__art {
    display: grid;
    place-items: center;
    margin-bottom: 4px;
    color: #057932;
}
.saas-shell .ax-dropzone__title {
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #132308;
}
.saas-shell .ax-dropzone__sub {
    font-size: 0.8rem;
    color: #4d5f4f;
}
.saas-shell .ax-dropzone__meta {
    margin-top: 6px;
    font-size: 0.68rem;
    color: #6b7a6e;
    letter-spacing: 0.01em;
}
.saas-shell .ax-dropzone__hover {
    position: absolute;
    inset: 0;
    display: none;
    place-content: center;
    background: rgba(5, 121, 50, 0.88);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.saas-shell .ax-dropzone.is-dragover .ax-dropzone__hover {
    display: grid;
}
.saas-shell .ax-dropzone__bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.saas-shell .ax-dropzone__chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #fff;
    color: #1e293b;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
}
.saas-shell .ax-dropzone__chip:hover {
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.2);
}
.saas-shell .ax-dropzone__chip--danger {
    color: #b42318;
}
.saas-shell .ax-dropzone__chip--danger:hover {
    background: #fff5f4;
    border-color: rgba(180, 35, 24, 0.25);
}

/* legado (se ainda houver) */
.saas-shell .ax-img-field { display: none; }

/* Modal de corte */
body.ax-img-crop-open { overflow: hidden; }
.ax-img-crop {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: grid;
    place-items: center;
    padding: 16px;
}
.ax-img-crop[hidden] { display: none !important; }
.ax-img-crop__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}
.ax-img-crop__dialog {
    position: relative;
    width: min(720px, 100%);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
    overflow: hidden;
    display: grid;
}
.ax-img-crop__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px 10px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.ax-img-crop__head h3 {
    margin: 0;
    font-size: 1rem;
}
.ax-img-crop__sub {
    margin: 4px 0 0;
    font-size: 0.78rem;
    color: #64748b;
}
.ax-img-crop__x {
    border: 0;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
    border-radius: 8px;
}
.ax-img-crop__x:hover { background: #f1f5f9; color: #0f172a; }
.ax-img-crop__stage {
    position: relative;
    margin: 12px 16px 0;
    border-radius: 12px;
    overflow: hidden;
    background: #0f172a;
    cursor: grab;
    touch-action: none;
    user-select: none;
}
.ax-img-crop__stage:active { cursor: grabbing; }
.ax-img-crop__stage canvas {
    display: block;
    width: 100%;
    height: 100%;
}
.ax-img-crop__frame {
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 0 2px rgba(132, 204, 22, 0.95);
    pointer-events: none;
}
.ax-img-crop__tools {
    padding: 12px 16px 0;
    display: grid;
    gap: 6px;
}
.ax-img-crop__zoom {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    color: #475569;
    font-weight: 600;
}
.ax-img-crop__zoom input[type="range"] { width: 100%; }
.ax-img-crop__hint {
    margin: 0;
    font-size: 0.72rem;
    color: #94a3b8;
}
.ax-img-crop__foot {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 16px 16px;
}

/* Embed / ajuda tabs */
.ax-embed-tab { display: grid; gap: 12px; }
.ax-embed-tab__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary, #64748b);
    font-weight: 600;
}
.ax-embed-tab__code { margin: 0; max-height: 220px; overflow: auto; }
.ax-embed-tab__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.ax-embed-tab__alert { width: 100%; margin: 0; }
.ax-help-tab__steps {
    margin: 12px 0 0;
    padding-left: 1.25rem;
    color: var(--text-secondary, #475569);
    font-size: 0.92rem;
    line-height: 1.65;
}
.ax-help-tab__steps li + li { margin-top: 8px; }
.ax-help-tab__footer { margin-top: 16px; font-size: 0.85rem; }
.ax-help-tab__footer a { color: var(--accent-link, #057932); }

/* Dashboard / sessões / leads */
.ax-dash-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 12px 0 20px;
}
.ax-dash-card {
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 12px;
    padding: 14px 16px;
    background: var(--surface, #fff);
}
.ax-dash-card__label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary, #64748b);
    margin-bottom: 6px;
}
.ax-dash-card__value {
    display: block;
    font-size: 1.45rem;
    line-height: 1.15;
    color: var(--text-primary, #0f172a);
}
.ax-dash-card__meta {
    display: block;
    margin-top: 6px;
    font-size: 0.78rem;
    color: var(--text-secondary, #64748b);
}
.ax-dash-subtitle {
    margin: 8px 0 10px;
    font-size: 0.95rem;
}
.ax-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.ax-panel-head__text {
    margin: 0;
    flex: 1;
    min-width: 200px;
}
.ax-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 12px;
}
.ax-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.ax-table th,
.ax-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border, #e2e8f0);
    vertical-align: top;
}
.ax-table th {
    background: #f8fafc;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary, #64748b);
}
.ax-table tr:last-child td {
    border-bottom: none;
}
.ax-session-list {
    display: grid;
    gap: 10px;
}
.ax-session-item {
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}
.ax-session-item > summary {
    list-style: none;
    cursor: pointer;
    padding: 12px 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    align-items: baseline;
    justify-content: space-between;
}
.ax-session-item > summary::-webkit-details-marker {
    display: none;
}
.ax-session-item__who {
    font-weight: 600;
}
.ax-session-item__meta {
    font-size: 0.8rem;
    color: var(--text-secondary, #64748b);
}
.ax-session-thread {
    border-top: 1px solid var(--border, #e2e8f0);
    padding: 12px 14px 14px;
    display: grid;
    gap: 10px;
    background: #f8fafc;
}
.ax-session-bubble {
    max-width: 92%;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--border, #e2e8f0);
}
.ax-session-bubble--user {
    justify-self: end;
    background: #ecfdf3;
    border-color: #bbf7d0;
}
.ax-session-bubble--assistant {
    justify-self: start;
}
.ax-session-bubble__role {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary, #64748b);
    margin-bottom: 4px;
}
.ax-session-bubble__text {
    font-size: 0.88rem;
    line-height: 1.45;
    white-space: pre-wrap;
}
.ax-session-contact {
    font-size: 0.82rem;
    color: var(--text-secondary, #64748b);
    padding-top: 4px;
}

.ax-webhook-sample {
    margin-top: 8px;
    padding: 12px 14px;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 12px;
    background: #f8fafc;
}
.ax-webhook-sample__label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary, #64748b);
    margin-bottom: 8px;
}

@media (max-width: 900px) {
    .ax-dash-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 560px) {
    .ax-dash-grid {
        grid-template-columns: 1fr;
    }
}

/* Range slider (config Atendente Virtual) */
.ax-av-timing-fields {
    display: grid;
    gap: 16px;
}
.ax-range-field {
    padding: 14px 16px;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 12px;
    background: var(--surface, #fff);
    display: grid;
    gap: 10px;
}
.ax-range-field__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}
.ax-range-field__head label {
    font-weight: 600;
    font-size: 0.9rem;
}
.ax-range-field__value {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--eva-forest, #057932);
    white-space: nowrap;
}
.ax-range-field__slider {
    width: 100%;
    height: 6px;
    margin: 4px 0;
    accent-color: var(--btn-primary-bg, #9de136);
    cursor: pointer;
}
.ax-range-field__input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 160px;
}
.ax-range-field__number {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 8px;
    font: inherit;
    font-size: 0.9rem;
}
.ax-range-field__unit {
    font-size: 0.82rem;
    color: var(--text-secondary, #64748b);
    flex-shrink: 0;
}

/* Pet picker */
.ax-pet-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}
.ax-pet-card {
    display: grid;
    justify-items: center;
    gap: 4px;
    padding: 12px 8px;
    border-radius: 12px;
    border: 2px solid var(--border, #e2e8f0);
    background: #fff;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.ax-pet-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.ax-pet-card img {
    display: block;
    width: 72px;
    height: 72px;
    object-fit: contain;
}
.ax-pet-card__label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary, #0f172a);
}
.ax-pet-card__hint {
    font-size: 0.72rem;
    color: var(--text-secondary, #64748b);
}
.ax-pet-card:hover {
    border-color: color-mix(in srgb, var(--accent, #9de136) 50%, #e2e8f0);
}
.ax-pet-card.is-selected {
    border-color: var(--accent, #9de136);
    background: color-mix(in srgb, var(--accent, #9de136) 12%, #fff);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent, #9de136) 40%, transparent);
}

/* Aparência: cores + preview */
.ax-aparencia {
    display: grid;
    gap: 20px;
}
.ax-aparencia__main {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 360px);
    gap: 28px;
    align-items: start;
}
.ax-aparencia__hint {
    margin: 0 0 14px;
    font-size: 0.88rem;
}
.ax-aparencia__preview-col {
    min-width: 0;
    position: sticky;
    top: 12px;
}
.ax-aparencia .ax-color-swatches {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px;
}
.ax-aparencia .ax-swatch {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    text-align: left;
}
.ax-aparencia .ax-swatch__name {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-primary, #0f172a);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ax-aparencia .ax-swatch__row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}
.ax-aparencia .ax-swatch__chip-wrap {
    position: relative;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
    background: #fff;
}
.ax-aparencia .ax-swatch__picker {
    position: absolute;
    inset: -8px;
    width: calc(100% + 16px);
    height: calc(100% + 16px);
    padding: 0;
    border: 0;
    cursor: pointer;
    background: transparent;
}
.ax-aparencia .ax-swatch__hex {
    flex: 1;
    width: auto;
    max-width: none;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 10px;
    background: var(--bg-secondary, #f8fafc);
    text-align: left;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-primary, #0f172a);
    letter-spacing: -0.01em;
}
.ax-aparencia .ax-swatch__hex:hover {
    border-color: color-mix(in srgb, var(--accent, #9de136) 45%, #e2e8f0);
    background: #fff;
}
.ax-aparencia .ax-swatch__hex:focus {
    outline: none;
    border-color: var(--accent, #9de136);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, #9de136) 28%, transparent);
    background: #fff;
}

@media (max-width: 1100px) {
    .ax-aparencia__main {
        grid-template-columns: minmax(0, 1.2fr) minmax(240px, 300px);
        gap: 20px;
    }
}
@media (max-width: 900px) {
    .ax-aparencia__main {
        grid-template-columns: 1fr;
    }
    .ax-aparencia__preview-col {
        position: static;
    }
    .ax-aparencia .ax-color-swatches {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}
@media (max-width: 560px) {
    .ax-aparencia .ax-color-swatches {
        grid-template-columns: 1fr !important;
    }
}

.ax-widget-preview {
    position: relative;
    min-height: 340px;
    border-radius: 14px;
    border: 1px solid var(--border, #e2e8f0);
    background:
        linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
    overflow: hidden;
}
.ax-widget-preview__frame {
    position: absolute;
    inset: 12px;
}
.ax-widget-preview.is-right .ax-widget-preview__panel,
.ax-widget-preview.is-right .ax-widget-preview__fab,
.ax-widget-preview.is-right .ax-widget-preview__intro {
    right: 0;
    left: auto;
}
.ax-widget-preview.is-left .ax-widget-preview__panel,
.ax-widget-preview.is-left .ax-widget-preview__fab,
.ax-widget-preview.is-left .ax-widget-preview__intro {
    left: 0;
    right: auto;
}
/* Bolha de intro fica escondida na prévia aberta (evita sobrepor o chat) */
.ax-widget-preview__intro {
    display: none;
}
.ax-widget-preview__panel {
    position: absolute;
    bottom: 70px;
    width: min(220px, 78%);
    height: 250px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
}
.ax-widget-preview__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px 8px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    font-size: 0.78rem;
}
.ax-widget-preview__head span {
    opacity: 0.45;
    font-size: 1rem;
    line-height: 1;
}
.ax-widget-preview__msgs {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    overflow: hidden;
}
.ax-widget-preview__bot,
.ax-widget-preview__user {
    max-width: 88%;
    padding: 7px 9px;
    border-radius: 10px;
    font-size: 0.7rem;
    line-height: 1.35;
}
.ax-widget-preview__bot {
    align-self: flex-start;
}
.ax-widget-preview__user {
    align-self: flex-end;
    color: #fff;
}
.ax-widget-preview__input {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}
.ax-widget-preview__input span {
    flex: 1;
    font-size: 0.68rem;
    opacity: 0.45;
}
.ax-widget-preview__input button {
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    font-size: 0.7rem;
    cursor: default;
}
.ax-widget-preview__fab {
    position: absolute;
    bottom: 0;
    width: 58px;
    height: 58px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: default;
    filter: drop-shadow(0 6px 12px rgba(15, 23, 42, 0.18));
}
.ax-widget-preview__fab img {
    display: block;
    width: 58px;
    height: 58px;
}
.ax-aparencia__position {
    max-width: 280px;
    margin-bottom: 0;
}

.ax-voice-preview {
    display: flex;
    align-items: stretch;
    gap: 8px;
}
.ax-voice-preview select {
    flex: 1;
    min-width: 0;
}
.ax-voice-preview__btn {
    flex-shrink: 0;
    white-space: nowrap;
    min-width: 88px;
}
.ax-voice-preview__hint.is-error {
    color: var(--danger, #dc2626);
}

@media (max-width: 900px) {
    .ax-aparencia__main {
        grid-template-columns: 1fr;
    }
    .ax-pet-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 560px) {
    .ax-pet-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Legacy color cards (outros formulários) */
.ax-color-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.ax-color-item {
    display: grid;
    gap: 6px;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid var(--border, #e2e8f0);
    background: var(--bg-secondary, #f8fafc);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary, #64748b);
}
.ax-color-item input[type="color"] {
    width: 100%;
    height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.ax-color-item .ax-color-hex {
    font-family: ui-monospace, monospace;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 6px 8px;
}

/* Seletor de cor global: quadrado + hex/RGB */
.saas-shell .ax-colorfield {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 360px;
}
.saas-shell .ax-colorfield__chip {
    position: relative;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
    background:
        linear-gradient(45deg, #e2e8f0 25%, transparent 25%) 0 0 / 10px 10px,
        linear-gradient(-45deg, #e2e8f0 25%, transparent 25%) 0 5px / 10px 10px,
        #fff;
}
.saas-shell .ax-colorfield__picker {
    position: absolute;
    inset: -8px;
    width: calc(100% + 16px);
    height: calc(100% + 16px);
    padding: 0;
    margin: 0;
    border: 0;
    cursor: pointer;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
}
.saas-shell .ax-colorfield__picker::-webkit-color-swatch-wrapper {
    padding: 0;
}
.saas-shell .ax-colorfield__picker::-webkit-color-swatch {
    border: 0;
    border-radius: 0;
}
.saas-shell .ax-colorfield__picker::-moz-color-swatch {
    border: 0;
    border-radius: 0;
}
.saas-shell .ax-colorfield__value {
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 10px;
    background: #fff;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-primary, #0f172a);
    letter-spacing: -0.01em;
}
.saas-shell .ax-colorfield__value:focus {
    outline: none;
    border-color: var(--accent, #9de136);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, #9de136) 28%, transparent);
}
.saas-shell .ax-colorfield__hint {
    margin: 6px 0 0;
    font-size: 0.72rem;
    color: var(--text-secondary, #64748b);
}

/* Evita o "tracinho" nativo quando ainda não foi aprimorado */
.saas-shell .saas-field > input[type="color"] {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
}

@media (max-width: 900px) {
    .ax-av-layout { grid-template-columns: 1fr; }
    .ax-toggle-grid,
    .ax-av-grid-2,
    .ax-av-grid-3,
    .ax-color-row {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 560px) {
    .ax-toggle-grid,
    .ax-av-grid-2,
    .ax-av-grid-3,
    .ax-color-row {
        grid-template-columns: 1fr;
    }
}
