/*
  Buildly UI — camada final do design system.
  Carregada por último: unifica tipografia, cores e componentes.
  Painel e admin: claro por padrão (html[data-theme="light"]). Landing e acesso: escuros.
*/
:root{
  --ui-font:Inter,"Segoe UI",system-ui,-apple-system,Arial,sans-serif;
  --ui-display:Manrope,Inter,"Segoe UI",system-ui,sans-serif;
  --ui-bg:#f5f6f8;
  --ui-surface:#ffffff;
  --ui-surface-2:#f9fafb;
  --ui-surface-3:#f2f4f7;
  --ui-border:#e4e7ec;
  --ui-border-strong:#d0d5dd;
  --ui-text:#101828;
  --ui-text-2:#344054;
  --ui-muted:#667085;
  --ui-subtle:#98a2b3;
  --ui-brand:#079455;
  --ui-brand-hover:#067647;
  --ui-brand-strong:#05603a;
  --ui-brand-soft:#ecfdf3;
  --ui-brand-soft-2:#d1fadf;
  --ui-warn:#b54708;
  --ui-warn-soft:#fffaeb;
  --ui-danger:#b42318;
  --ui-danger-soft:#fef3f2;
  --ui-info:#175cd3;
  --ui-info-soft:#eff8ff;
  --ui-radius:12px;
  --ui-radius-sm:8px;
  --ui-shadow-xs:0 1px 2px rgba(16,24,40,.05);
  --ui-shadow-sm:0 1px 3px rgba(16,24,40,.08),0 1px 2px rgba(16,24,40,.04);
  --ui-shadow-md:0 8px 24px -6px rgba(16,24,40,.10),0 2px 6px -2px rgba(16,24,40,.05);
  --ui-ring:0 0 0 4px rgba(7,148,85,.14);
}

/* ---------- Tipografia global ---------- */
body{font-family:var(--ui-font);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility;font-feature-settings:"cv11","ss01"}
h1,h2,h3,h4{font-family:var(--ui-display)}
button,input,select,textarea{font-family:inherit}
.metric-grid strong,.plan-value,.price strong,td,.money,[class*="metric"] strong,[class*="stat"] strong{font-variant-numeric:tabular-nums}

/* =====================================================================
   PAINEL DO LOJISTA + MASTER — tema claro
   ===================================================================== */
html[data-theme="light"] body.panel{background:var(--ui-bg)!important;background-image:none!important;color:var(--ui-text-2)}
html[data-theme="light"] body.panel::before,html[data-theme="light"] body.panel::after{display:none!important}
html[data-theme="light"] body.panel h1,html[data-theme="light"] body.panel h2,html[data-theme="light"] body.panel h3{color:var(--ui-text)!important;text-shadow:none!important;font-family:var(--ui-display)!important}
html[data-theme="light"] body.panel .page-title h1{font-size:clamp(1.75rem,2.4vw,2.25rem)!important;font-weight:750!important;letter-spacing:-.025em!important}
html[data-theme="light"] body.panel .page-title p{color:var(--ui-muted)!important}
html[data-theme="light"] body.panel .eyebrow{color:var(--ui-brand)!important;letter-spacing:.08em!important;font-size:.7rem!important;font-weight:700!important}

/* Sidebar */
html[data-theme="light"] body.panel:not(.master) .panel-nav{background:var(--ui-surface)!important;border-right:1px solid var(--ui-border)!important;box-shadow:none!important;backdrop-filter:none!important}
html[data-theme="light"] body.panel .panel-nav .brand-copy b{color:var(--ui-text)!important}
html[data-theme="light"] body.panel .panel-nav .brand-copy small{color:var(--ui-subtle)!important}
html[data-theme="light"] body.panel .panel-nav .brand-symbol{background:var(--ui-text)!important;border-color:var(--ui-text)!important;box-shadow:none!important}
html[data-theme="light"] body.panel .workspace-state{background:var(--ui-surface-2)!important;border:1px solid var(--ui-border)!important;color:var(--ui-muted)!important;box-shadow:none!important}
html[data-theme="light"] body.panel .workspace-state i,html[data-theme="light"] body.panel .store-preview-link i{background:#12b76a!important;box-shadow:0 0 0 3px rgba(18,183,106,.15)!important}
html[data-theme="light"] body.panel .nav-section-label{color:var(--ui-subtle)!important;letter-spacing:.08em!important}
html[data-theme="light"] body.panel .panel-nav nav a{color:var(--ui-text-2)!important;background:transparent!important;border:1px solid transparent!important;box-shadow:none!important;border-radius:var(--ui-radius-sm)!important;font-weight:550!important}
html[data-theme="light"] body.panel .panel-nav nav a svg{color:var(--ui-muted)!important;stroke:currentColor}
html[data-theme="light"] body.panel .panel-nav nav a:hover{background:var(--ui-surface-3)!important;color:var(--ui-text)!important}
html[data-theme="light"] body.panel .panel-nav nav a.active{background:var(--ui-brand-soft)!important;color:var(--ui-brand-strong)!important;border-color:transparent!important;font-weight:650!important}
html[data-theme="light"] body.panel .panel-nav nav a.active::before,html[data-theme="light"] body.panel .panel-nav nav a.active::after{display:none!important}
html[data-theme="light"] body.panel .panel-nav nav a.active svg{color:var(--ui-brand)!important}
html[data-theme="light"] body.panel .panel-nav nav a em{background:var(--ui-surface-3)!important;color:var(--ui-muted)!important;border:0!important;box-shadow:none!important}
html[data-theme="light"] body.panel .store-preview-link{background:var(--ui-surface-2)!important;border:1px solid var(--ui-border)!important;box-shadow:none!important}
html[data-theme="light"] body.panel .store-preview-link b{color:var(--ui-text)!important}
html[data-theme="light"] body.panel .store-preview-link small{color:var(--ui-subtle)!important}
html[data-theme="light"] body.panel .store-preview-link strong{color:var(--ui-brand)!important}
html[data-theme="light"] body.panel .panel-profile{border-color:var(--ui-border)!important}
html[data-theme="light"] body.panel .profile-avatar{background:var(--ui-brand-soft)!important;color:var(--ui-brand-strong)!important;border:0!important;box-shadow:none!important}
html[data-theme="light"] body.panel .profile-copy b{color:var(--ui-text)!important}
html[data-theme="light"] body.panel .theme-toggle,html[data-theme="light"] body.panel .panel-logout{background:var(--ui-surface)!important;border:1px solid var(--ui-border)!important;color:var(--ui-muted)!important;box-shadow:none!important}

/* Barra superior do master */
html[data-theme="light"] body.panel.master .panel-nav{background:rgba(255,255,255,.92)!important;border-bottom:1px solid var(--ui-border)!important;box-shadow:none!important}

/* Cartões */
html[data-theme="light"] body.panel .card,
html[data-theme="light"] body.panel .metric-grid article,
html[data-theme="light"] body.panel [class*="-card"]:not(.store-preview-link):not(.message-card):not(.operation-ok),
html[data-theme="light"] body.panel [class*="-panel"]:not(.panel-nav):not(.panel-main){box-shadow:var(--ui-shadow-xs)!important;border-color:var(--ui-border)!important}
html[data-theme="light"] body.panel .card,
html[data-theme="light"] body.panel .metric-grid article{background:var(--ui-surface)!important;background-image:none!important;border:1px solid var(--ui-border)!important;border-radius:var(--ui-radius)!important}
html[data-theme="light"] body.panel .card::before,html[data-theme="light"] body.panel .card::after,
html[data-theme="light"] body.panel .metric-grid article::before,html[data-theme="light"] body.panel .metric-grid article::after{display:none!important}
html[data-theme="light"] body.panel .metric-grid article>span{color:var(--ui-muted)!important;font-size:.72rem!important;letter-spacing:.06em!important;font-weight:650!important}
html[data-theme="light"] body.panel .metric-grid article>strong{color:var(--ui-text)!important;font:700 1.7rem/1.15 var(--ui-display)!important;letter-spacing:-.02em!important;text-shadow:none!important}
html[data-theme="light"] body.panel .metric-grid article>strong small{font-size:.8rem!important;color:var(--ui-muted)!important;font-weight:600!important}
html[data-theme="light"] body.panel .metric-grid article>small{color:var(--ui-muted)!important}
html[data-theme="light"] body.panel .score div{background:var(--ui-surface-3)!important}
html[data-theme="light"] body.panel .score div i{background:var(--ui-brand)!important;box-shadow:none!important}
html[data-theme="light"] body.panel .card-title strong{color:var(--ui-text)!important}
html[data-theme="light"] body.panel .card-title>a,html[data-theme="light"] body.panel .card-title>span:not(.status):not(.live-dot){color:var(--ui-brand)!important;font-weight:600!important}
html[data-theme="light"] body.panel .retention-note{background:var(--ui-surface)!important;border:1px solid var(--ui-border)!important;border-radius:var(--ui-radius-sm)!important;color:var(--ui-muted)!important;padding:10px 14px!important}
html[data-theme="light"] body.panel .retention-note b{color:var(--ui-text-2)!important}

/* Listas e linhas */
html[data-theme="light"] body.panel .todo,html[data-theme="light"] body.panel .check-row,html[data-theme="light"] body.panel .product-row{background:transparent!important;border:0!important;border-top:1px solid var(--ui-border)!important;border-radius:0!important;box-shadow:none!important}
html[data-theme="light"] body.panel .todo>span{color:var(--ui-subtle)!important}
html[data-theme="light"] body.panel .todo>b{color:var(--ui-brand)!important}
html[data-theme="light"] body.panel .todo strong{color:var(--ui-text)!important}
html[data-theme="light"] body.panel .todo small{color:var(--ui-muted)!important}
html[data-theme="light"] body.panel .todo-action{background:var(--ui-surface)!important;border:1px solid var(--ui-border-strong)!important;color:var(--ui-text-2)!important;box-shadow:var(--ui-shadow-xs)!important;border-radius:var(--ui-radius-sm)!important}
html[data-theme="light"] body.panel .todo-action:hover{background:var(--ui-surface-2)!important}
html[data-theme="light"] body.panel .health-list span{background:var(--ui-surface-2)!important;border:1px solid var(--ui-border)!important;box-shadow:none!important;color:var(--ui-text-2)!important}
html[data-theme="light"] body.panel .health-list b{color:var(--ui-text)!important}
html[data-theme="light"] body.panel .health-list i{background:#12b76a!important;box-shadow:none!important}
html[data-theme="light"] body.panel .empty{background:var(--ui-surface-2)!important;border:1px dashed var(--ui-border-strong)!important;color:var(--ui-muted)!important;border-radius:var(--ui-radius-sm)!important}
html[data-theme="light"] body.panel .plan-value{color:var(--ui-text)!important;font:750 2.25rem/1 var(--ui-display)!important;text-shadow:none!important}
html[data-theme="light"] body.panel .plan-value small{color:var(--ui-muted)!important;font-size:.9rem!important}
html[data-theme="light"] body.panel .text-cta{color:var(--ui-brand)!important;border-color:currentColor!important}

/* Selos */
html[data-theme="light"] body.panel .status,html[data-theme="light"] body.panel .pill.on{background:var(--ui-brand-soft)!important;color:var(--ui-brand-strong)!important;border:1px solid var(--ui-brand-soft-2)!important;box-shadow:none!important;font-weight:600!important;letter-spacing:0!important;text-transform:none!important}
html[data-theme="light"] body.panel .pill:not(.on){background:var(--ui-surface-3)!important;color:var(--ui-muted)!important;border:1px solid var(--ui-border)!important}
html[data-theme="light"] body.panel .live-dot{background:var(--ui-brand-soft)!important;color:var(--ui-brand-strong)!important;border:1px solid var(--ui-brand-soft-2)!important;box-shadow:none!important;font-size:.7rem!important}

/* Botões */
html[data-theme="light"] body.panel .button,
html[data-theme="light"] body.panel button[type="submit"]:not(.panel-logout):not(.link-button):not(.todo-action),
html[data-theme="light"] body.panel .primary-button{background:var(--ui-brand)!important;background-image:none!important;color:#fff!important;border:1px solid var(--ui-brand)!important;box-shadow:var(--ui-shadow-xs)!important;text-shadow:none!important;border-radius:var(--ui-radius-sm)!important;font-weight:600!important}
html[data-theme="light"] body.panel .button:hover,
html[data-theme="light"] body.panel button[type="submit"]:not(.panel-logout):not(.link-button):not(.todo-action):hover{background:var(--ui-brand-hover)!important;border-color:var(--ui-brand-hover)!important;transform:none!important}
html[data-theme="light"] body.panel .button *{color:inherit!important}
html[data-theme="light"] body.panel .button.ghost,html[data-theme="light"] body.panel .button.secondary,html[data-theme="light"] body.panel .button-secondary{background:var(--ui-surface)!important;color:var(--ui-text-2)!important;border-color:var(--ui-border-strong)!important}
html[data-theme="light"] body.panel .period-filter{background:var(--ui-surface)!important;border:1px solid var(--ui-border)!important;box-shadow:var(--ui-shadow-xs)!important}
html[data-theme="light"] body.panel .period-filter button{background:transparent!important;color:var(--ui-muted)!important;border:0!important;box-shadow:none!important}
html[data-theme="light"] body.panel .period-filter button.active{background:var(--ui-surface-3)!important;color:var(--ui-text)!important}

/* Formulários */
html[data-theme="light"] body.panel input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]),
html[data-theme="light"] body.panel select,html[data-theme="light"] body.panel textarea{background:var(--ui-surface)!important;border:1px solid var(--ui-border-strong)!important;color:var(--ui-text)!important;box-shadow:var(--ui-shadow-xs)!important;border-radius:var(--ui-radius-sm)!important}
html[data-theme="light"] body.panel input::placeholder,html[data-theme="light"] body.panel textarea::placeholder{color:var(--ui-subtle)!important}
html[data-theme="light"] body.panel input:focus,html[data-theme="light"] body.panel select:focus,html[data-theme="light"] body.panel textarea:focus{outline:0!important;border-color:var(--ui-brand)!important;box-shadow:var(--ui-ring)!important}
html[data-theme="light"] body.panel label{color:var(--ui-text-2)}

/* Tabelas */
html[data-theme="light"] body.panel th{background:var(--ui-surface-2)!important;color:var(--ui-muted)!important;border-color:var(--ui-border)!important;letter-spacing:.04em}
html[data-theme="light"] body.panel td{border-color:var(--ui-border)!important;color:var(--ui-text-2)}
html[data-theme="light"] body.panel tbody tr:hover{background:var(--ui-surface-2)!important}

/* Gráfico */
html[data-theme="light"] body.panel .bar-chart .chart-column span{background:var(--ui-brand)!important;box-shadow:none!important;border-radius:4px 4px 0 0!important}
html[data-theme="light"] body.panel .bar-chart small{color:var(--ui-subtle)!important}

/* Alertas */
html[data-theme="light"] body.panel .flash{background:var(--ui-warn-soft)!important;color:var(--ui-warn)!important;border:1px solid #fedf89!important;box-shadow:none!important}
html[data-theme="light"] body.panel .flash.success{background:var(--ui-brand-soft)!important;color:var(--ui-brand-strong)!important;border-color:var(--ui-brand-soft-2)!important}
html[data-theme="light"] body.panel .flash.error{background:var(--ui-danger-soft)!important;color:var(--ui-danger)!important;border-color:#fecdca!important}

/* Remove brilhos decorativos no tema claro */
html[data-theme="light"] body.panel [class*="glow"],html[data-theme="light"] body.panel [class*="orb"]{display:none!important}
html[data-theme="light"] body.panel *{text-shadow:none!important}

/* =====================================================================
   ADMIN LEGADO — tema claro
   ===================================================================== */
html[data-theme="light"] body.admin-body{background:var(--ui-bg)!important;background-image:none!important;color:var(--ui-text-2)!important}
html[data-theme="light"] body.admin-body h1,html[data-theme="light"] body.admin-body h2,html[data-theme="light"] body.admin-body h3{color:var(--ui-text)!important;font-family:var(--ui-display)!important;letter-spacing:-.02em}
html[data-theme="light"] body.admin-body .buildly-lockup span{color:var(--ui-text)!important}
html[data-theme="light"] body.admin-body .admin-header,html[data-theme="light"] body.admin-body .admin-nav{background:var(--ui-surface)!important;border-color:var(--ui-border)!important;box-shadow:none!important}
html[data-theme="light"] body.admin-body .admin-nav a{color:var(--ui-muted)!important;border-radius:var(--ui-radius-sm)!important;box-shadow:none!important}
html[data-theme="light"] body.admin-body .admin-nav a:hover{background:var(--ui-surface-3)!important;color:var(--ui-text)!important}
html[data-theme="light"] body.admin-body .admin-nav a.active,html[data-theme="light"] body.admin-body .admin-nav a[aria-current="page"]{background:var(--ui-brand-soft)!important;color:var(--ui-brand-strong)!important;border:0!important}
html[data-theme="light"] body.admin-body .eyebrow{color:var(--ui-brand)!important}
html[data-theme="light"] body.admin-body .button:not(.button-secondary):not(.button-ghost){background:var(--ui-brand)!important;background-image:none!important;color:#fff!important;border-color:var(--ui-brand)!important;box-shadow:var(--ui-shadow-xs)!important}
html[data-theme="light"] body.admin-body .button:not(.button-secondary):not(.button-ghost):hover{background:var(--ui-brand-hover)!important}
html[data-theme="light"] body.admin-body .admin-card,html[data-theme="light"] body.admin-body .stat-card,html[data-theme="light"] body.admin-body .card,html[data-theme="light"] body.admin-body .metric-card,html[data-theme="light"] body.admin-body .dashboard-card,html[data-theme="light"] body.admin-body .chart-card{border-radius:var(--ui-radius)!important;box-shadow:var(--ui-shadow-xs)!important;border-color:var(--ui-border)!important}
html[data-theme="light"] body.admin-body input:focus,html[data-theme="light"] body.admin-body select:focus,html[data-theme="light"] body.admin-body textarea:focus{outline:0!important;border-color:var(--ui-brand)!important;box-shadow:var(--ui-ring)!important}
html[data-theme="light"] body.admin-body .site-footer{background:var(--ui-surface)!important;border-top:1px solid var(--ui-border)!important}

/* Ajustes pontuais do painel claro */
html[data-theme="light"] body.panel .health-list b,html[data-theme="light"] body.panel .status{text-transform:none!important}
html[data-theme="light"] body.panel .importer-v2 .import-url-form label>div{display:flex!important;gap:6px;background:var(--ui-surface)!important;border:1px solid var(--ui-border-strong)!important;box-shadow:var(--ui-shadow-xs)!important;border-radius:10px!important}
html[data-theme="light"] body.panel .importer-v2 .import-url-form label>div input{flex:1 1 auto!important;min-width:220px!important;border:0!important;box-shadow:none!important;background:transparent!important}
html[data-theme="light"] body.panel .importer-v2 .import-url-form label>div:focus-within{border-color:var(--ui-brand)!important;box-shadow:var(--ui-ring)!important}
html[data-theme="light"] body.panel .importer-visual{background:var(--ui-brand-soft)!important;border:1px solid var(--ui-brand-soft-2)!important;box-shadow:none!important}
html[data-theme="light"] body.panel .importer-visual span{color:var(--ui-brand)!important}
html[data-theme="light"] body.panel .importer-visual i{border-color:var(--ui-brand-soft-2)!important}
html[data-theme="light"] body.panel .section-count,html[data-theme="light"] body.panel .catalog-total{background:var(--ui-surface-2)!important;border-color:var(--ui-border)!important;color:var(--ui-muted)!important}
html[data-theme="light"] body.panel .section-count b,html[data-theme="light"] body.panel .catalog-total b{color:var(--ui-text)!important}
html[data-theme="light"] body.panel .catalog-toolbar{background:var(--ui-surface-2)!important;border-color:var(--ui-border)!important}
html[data-theme="light"] body.panel .catalog-toolbar label{background:var(--ui-surface)!important;border:1px solid var(--ui-border-strong)!important;color:var(--ui-subtle)!important}
html[data-theme="light"] body.panel .catalog-toolbar label input{border:0!important;box-shadow:none!important;background:transparent!important}
html[data-theme="light"] body.panel .catalog-toolbar button{font-size:.72rem!important;background:transparent!important;color:var(--ui-muted)!important;border:0!important}
html[data-theme="light"] body.panel .catalog-toolbar button.active{background:var(--ui-surface)!important;color:var(--ui-text)!important;box-shadow:var(--ui-shadow-xs)!important}
html[data-theme="light"] body.panel .seo-details{background:var(--ui-surface-2)!important;border-color:var(--ui-border)!important}
html[data-theme="light"] body.panel .seo-details summary{color:var(--ui-text-2)!important}
html[data-theme="light"] body.panel .seo-details summary small{color:var(--ui-subtle)!important}
html[data-theme="light"] body.panel .category-v2 .category-create{background:var(--ui-surface-2)!important;border-color:var(--ui-border)!important}

/* Superfícies: remove gradientes decorativos no tema claro (as regras antigas usam :nth-child + !important) */
html[data-theme="light"] body.panel .metric-grid article:nth-child(n),
html[data-theme="light"] body.panel .tracking-metrics article:nth-child(n),
html[data-theme="light"] body.panel .catalog-overview article:nth-child(n),
html[data-theme="light"] body.panel .settings-section:nth-child(n),
html[data-theme="light"] body.panel .integration-provider:nth-child(n),
html[data-theme="light"] body.panel .tracking-card,
html[data-theme="light"] body.panel .tracking-toolbar,
html[data-theme="light"] body.panel .importer-v2,
html[data-theme="light"] body.panel .support-center,
html[data-theme="light"] body.panel .social-setting,
html[data-theme="light"] body.panel .choice-card>span{background:var(--ui-surface)!important;background-image:none!important;border-color:var(--ui-border)!important;box-shadow:var(--ui-shadow-xs)!important}
html[data-theme="light"] body.panel .tracking-hero,
html[data-theme="light"] body.panel .master-hero,
html[data-theme="light"] body.panel .settings-hero,
html[data-theme="light"] body.panel .integrations-hero{background:var(--ui-surface)!important;background-image:none!important;border:1px solid var(--ui-border)!important;box-shadow:var(--ui-shadow-xs)!important;border-radius:16px!important;min-height:0!important}
html[data-theme="light"] body.panel .tracking-hero::before,html[data-theme="light"] body.panel .tracking-hero::after,
html[data-theme="light"] body.panel .master-hero::before,html[data-theme="light"] body.panel .master-hero::after,
html[data-theme="light"] body.panel .settings-hero::before,html[data-theme="light"] body.panel .settings-hero::after,
html[data-theme="light"] body.panel .integrations-hero::before,html[data-theme="light"] body.panel .integrations-hero::after,
html[data-theme="light"] body.panel .tracking-live-orb{display:none!important}
html[data-theme="light"] body.panel .tracking-hero h1,html[data-theme="light"] body.panel .master-hero h1,html[data-theme="light"] body.panel .settings-hero h1,html[data-theme="light"] body.panel .integrations-hero h1{font-size:clamp(1.75rem,2.6vw,2.4rem)!important;letter-spacing:-.025em!important;line-height:1.1!important;font-weight:750!important}
html[data-theme="light"] body.panel h1 span,html[data-theme="light"] body.panel h1 em{color:var(--ui-brand)!important;-webkit-text-fill-color:currentColor!important;background:none!important}
html[data-theme="light"] body.integrations-page,html[data-theme="light"] body.settings-page,html[data-theme="light"] body.tracking-page{background:var(--ui-bg)!important;background-image:none!important}
html[data-theme="light"] body.panel .social-settings{background:var(--ui-surface-2)!important;border-color:var(--ui-border)!important}
html[data-theme="light"] body.panel .settings-savebar{background:var(--ui-surface)!important;border-color:var(--ui-brand-soft-2)!important;box-shadow:var(--ui-shadow-md)!important}
html[data-theme="light"] body.panel .panel-nav::after{display:none!important}
html[data-theme="light"] body.panel .tracking-page,html[data-theme="light"] .tracking-page{--track-surface:#fff;--track-line:var(--ui-border)}

/* Gráfico de tracking */
html[data-theme="light"] .tracking-chart-grid line{stroke:var(--ui-border)!important}
html[data-theme="light"] .tracking-chart [data-chart-visitors]{stroke:var(--ui-brand)!important;filter:none!important}
html[data-theme="light"] .tracking-chart [data-chart-views]{stroke:#98a2b3!important}
html[data-theme="light"] .tracking-chart [data-chart-points] circle{fill:#fff!important;stroke:var(--ui-brand)!important}
html[data-theme="light"] .tracking-legend i.visitors{background:var(--ui-brand)!important;box-shadow:none!important}
html[data-theme="light"] .tracking-legend i.views{background:#98a2b3!important}

/* Editor de produto */
html[data-theme="light"] body.panel .media-item{background:var(--ui-surface)!important;border:1px solid var(--ui-border)!important;border-radius:var(--ui-radius-sm)!important}
html[data-theme="light"] body.panel .media-item button:not(.danger-link){width:100%;padding:6px 8px!important;font-size:.72rem!important;font-weight:600!important;background:var(--ui-surface)!important;color:var(--ui-text-2)!important;border:1px solid var(--ui-border-strong)!important;border-radius:6px!important;box-shadow:none!important;cursor:pointer}
html[data-theme="light"] body.panel .media-item button:not(.danger-link):hover{background:var(--ui-surface-2)!important}
html[data-theme="light"] body.panel .media-item b{color:var(--ui-brand)!important}
html[data-theme="light"] body.panel .danger-link{background:none!important;border:0!important;color:var(--ui-danger)!important;font-size:.72rem!important;font-weight:600!important;cursor:pointer;box-shadow:none!important}
html[data-theme="light"] body.panel .form .check,html[data-theme="light"] body.panel label.check{display:flex!important;align-items:center!important;gap:10px!important;font-weight:550!important}
html[data-theme="light"] body.panel .form .check input,html[data-theme="light"] body.panel label.check input{width:18px!important;height:18px!important;margin:0!important;padding:0!important;flex:none;accent-color:var(--ui-brand);box-shadow:none!important}
html[data-theme="light"] body.panel input[type="file"]{width:100%;padding:8px!important;background:var(--ui-surface)!important;border:1px dashed var(--ui-border-strong)!important;border-radius:var(--ui-radius-sm)!important;color:var(--ui-muted)!important}
html[data-theme="light"] body.panel input[type="file"]::file-selector-button{margin-right:10px;padding:6px 12px;border:1px solid var(--ui-border-strong);border-radius:6px;background:var(--ui-surface-2);color:var(--ui-text-2);font:600 .78rem var(--ui-font);cursor:pointer}
html[data-theme="light"] body.panel .editor-tabs{background:var(--ui-surface)!important;border-color:var(--ui-border)!important;box-shadow:var(--ui-shadow-xs)!important}
html[data-theme="light"] body.panel .editor-tabs a{color:var(--ui-muted)!important}
html[data-theme="light"] body.panel .editor-tabs a:hover{color:var(--ui-text)!important}
html[data-theme="light"] body.panel .offer-prices{background:var(--ui-surface-2)!important;border-color:var(--ui-border)!important}

/* Master: loja e ações */
html[data-theme="light"] body.panel.master .panel-logout{background:var(--ui-surface)!important;color:var(--ui-muted)!important;border:1px solid var(--ui-border)!important;transform:none!important;border-radius:var(--ui-radius-sm)!important}
html[data-theme="light"] body.panel .tracking-metrics article::before,html[data-theme="light"] body.panel .tracking-metrics article::after,
html[data-theme="light"] body.panel .operation-card::before,html[data-theme="light"] body.panel .operation-card::after{display:none!important}
html[data-theme="light"] body.panel .operation-card,html[data-theme="light"] body.panel .brand-asset,html[data-theme="light"] body.panel .seo-score-panel,html[data-theme="light"] body.panel .settings-nav{background:var(--ui-surface)!important;background-image:none!important;border-color:var(--ui-border)!important;box-shadow:var(--ui-shadow-xs)!important}

/* =====================================================================
   VITRINE DAS LOJAS — respeita o tema e a cor (--brand) de cada lojista
   ===================================================================== */
.tenant-store{--brand-ink:color-mix(in srgb,var(--brand) 55%,#fff);--brand-on:#fff}
.tenant-store.catalog-theme-light{--brand-ink:color-mix(in srgb,var(--brand) 85%,#000)}
.tenant-store .store-brand img{max-height:48px;border-radius:8px}
.tenant-store .store-hero{min-height:clamp(420px,56vh,560px)!important}
.tenant-store .store-hero h1{letter-spacing:-.035em!important;line-height:1!important;font-weight:750!important}
.tenant-store .store-hero span,.tenant-store .eyebrow{color:var(--brand-ink)!important;font-weight:700}
.tenant-store .button{background:var(--brand)!important;color:var(--brand-on)!important;border:0!important;border-radius:10px!important;font-weight:600!important;box-shadow:0 1px 2px rgba(0,0,0,.2)!important}
.tenant-store .button:hover{filter:brightness(1.08)}
.tenant-store .store-section h2,.tenant-store .about h2{letter-spacing:-.03em!important;font-weight:750!important}
.tenant-store .catalog-filters a{border-radius:999px;font-weight:600}
.tenant-store .catalog-filters a.active{background:var(--brand)!important;color:var(--brand-on)!important;border-color:var(--brand)!important}
.tenant-store .catalog{grid-template-columns:repeat(auto-fill,minmax(230px,1fr))!important;gap:20px!important}
.tenant-store.catalog-layout-editorial .catalog{grid-template-columns:repeat(auto-fill,minmax(min(100%,340px),1fr))!important;gap:28px!important}
.tenant-store.catalog-layout-compact .catalog{grid-template-columns:repeat(auto-fill,minmax(170px,1fr))!important;gap:12px!important}
@media(max-width:560px){.tenant-store .catalog,.tenant-store.catalog-layout-compact .catalog{grid-template-columns:1fr 1fr!important;gap:10px!important}.tenant-store.catalog-layout-editorial .catalog{grid-template-columns:1fr!important}}
.tenant-store .catalog-card{display:flex;flex-direction:column;padding:10px 10px 18px!important;border-radius:14px!important}
.tenant-store .catalog-card>div{height:auto!important;aspect-ratio:1/1;background:#fff!important;border-radius:10px!important}
.tenant-store .catalog-card img{object-fit:contain;padding:8px}
.tenant-store .catalog-card small,.tenant-store .catalog-card h3,.tenant-store .catalog-card .catalog-price{padding:0 6px}
.tenant-store .catalog-card h3{font:650 .98rem/1.35 var(--ui-display)!important;letter-spacing:-.01em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tenant-store .catalog-card strong,.tenant-store .product-price{color:var(--brand-ink)!important;font-family:var(--ui-display)!important;font-weight:750!important;font-variant-numeric:tabular-nums}
.tenant-store .catalog-card del{opacity:.6;font-size:.82rem;margin-right:6px}
.tenant-store .sale-badge{background:var(--brand)!important;color:var(--brand-on)!important;border-radius:6px!important;font-size:.65rem!important;letter-spacing:.06em}
.tenant-store .about::after{display:none}
.tenant-store .price-stack>strong,.tenant-store .conversion-price strong{color:var(--brand-ink)!important;font-variant-numeric:tabular-nums}
.tenant-store .stock{color:var(--brand-ink)!important}

/* Painel no celular: métricas em duas colunas */
@media(max-width:560px){
  body.panel .metric-grid,body.panel .tracking-metrics,body.panel .catalog-overview{grid-template-columns:1fr 1fr!important;gap:10px!important}
  body.panel .metric-grid article{min-height:0!important;padding:14px!important}
  body.panel .metric-grid article>strong{font-size:1.2rem!important}
  body.panel .metric-grid article>small{font-size:.7rem!important}
}

/* =====================================================================
   LANDING — card "Evolua": mostra as 3 placas de premiação inteiras.
   A imagem é 2:1; na metade lateral do card o cover cortava as placas.
   ===================================================================== */
.buildly-marketing .feature-bento .feature-evolve{display:flex!important;flex-direction:column!important;min-height:0!important}
.buildly-marketing .feature-bento .feature-evolve .evolve-copy{order:1;width:100%!important;max-width:none!important;min-height:0!important;margin:0!important;padding:64px 40px 32px!important;text-align:center}
.buildly-marketing .feature-bento .feature-evolve .evolve-copy p{max-width:560px;margin-left:auto;margin-right:auto}
.buildly-marketing .feature-bento .feature-evolve .evolve-awards-banner{order:2;position:relative!important;inset:auto!important;width:100%!important;height:auto!important;aspect-ratio:2/1;border-top:1px solid rgba(140,255,176,.08)!important}
.buildly-marketing .feature-bento .feature-evolve .evolve-awards-banner img{width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important}
.buildly-marketing .feature-bento .feature-evolve .evolve-awards-banner::after{background:linear-gradient(180deg,rgba(7,15,10,.55) 0,transparent 18%,transparent 82%,rgba(3,8,5,.45) 100%)!important}
.buildly-marketing .feature-bento .feature-evolve .evolve-awards-banner>span{left:50%!important;right:auto!important;transform:translateX(-50%);white-space:nowrap}
@media(max-width:600px){
  .buildly-marketing .feature-bento .feature-evolve .evolve-copy{padding:72px 22px 26px!important}
  .buildly-marketing .feature-bento .feature-evolve .evolve-awards-banner>span{display:none!important}
}

/* =====================================================================
   LANDING — planos (3 cards claros sobre o fundo escuro)
   ===================================================================== */
.buildly-plans{position:relative;max-width:1180px;margin:0 auto;padding:140px 24px 150px}
.buildly-plans .plans-head{text-align:center;max-width:720px;margin:0 auto 56px}
.buildly-plans .plans-head h2{margin:14px 0 14px;font-size:clamp(2rem,4vw,3.2rem);line-height:1.05;letter-spacing:-.03em;color:#f5f7f6}
.buildly-plans .plans-head h2 em{font-style:normal;color:#39f58a}
.buildly-plans .plans-head p{margin:0;color:#9aa8a0;font-size:1.02rem}
.plans-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;align-items:stretch}
.plan-card{display:flex;flex-direction:column;background:#fff;color:#344054;border:1px solid #e4e7ec;border-radius:20px;overflow:hidden;box-shadow:0 24px 60px rgba(0,0,0,.35)}
.plan-card.is-featured{border:2px solid #12b76a;box-shadow:0 24px 70px rgba(18,183,106,.22)}
.plan-card-top{padding:30px 28px 28px}
.plan-card header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.plan-card h3{margin:0;font:750 1.45rem/1.2 var(--ui-display);color:#101828;letter-spacing:-.02em}
.plan-badge{padding:4px 11px;border:1px solid #12b76a;border-radius:999px;color:#067647;background:#ecfdf3;font-size:.72rem;font-weight:650;white-space:nowrap}
.plan-audience{margin:6px 0 20px;color:#667085;font-size:.9rem}
.plan-card-price{display:flex;align-items:baseline;gap:6px;color:#079455;font-family:var(--ui-display);font-variant-numeric:tabular-nums}
.plan-card-price small{font-size:1.25rem;font-weight:750}
.plan-card-price strong{font-size:2.6rem;line-height:1;font-weight:800;letter-spacing:-.02em}
.plan-card-price span{color:#101828;font-size:1rem;font-weight:650}
.plan-note{margin:8px 0 24px;color:#667085;font-size:.82rem}
.plan-card-cta{display:flex;align-items:center;justify-content:center;min-height:52px;border-radius:999px;background:#079455;color:#fff!important;font-weight:650;font-size:1rem;text-decoration:none;transition:background .2s,transform .2s}
.plan-card-cta:hover{background:#067647;transform:translateY(-1px)}
.plan-card:not(.is-featured) .plan-card-cta{background:#fff;color:#067647!important;border:1.5px solid #079455}
.plan-card:not(.is-featured) .plan-card-cta:hover{background:#ecfdf3}
.plan-highlights,.plan-features{list-style:none;margin:0;padding:24px 28px;border-top:1px solid #e4e7ec;display:grid;gap:14px}
.plan-features{flex:1;align-content:start}
.plan-highlights li,.plan-features li{display:flex;align-items:flex-start;gap:12px;font-size:.9rem;line-height:1.4;color:#344054}
.plan-highlights svg,.plan-features svg{flex:none;width:20px;height:20px;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.plan-highlights svg{stroke:#079455}
.plan-features svg{stroke:#12b76a}
.plan-features-title strong{color:#101828;font-weight:650}
.plans-trust{display:flex;justify-content:center;flex-wrap:wrap;gap:10px 26px;margin:36px 0 0;color:#9aa8a0;font-size:.88rem}
.plans-trust span{white-space:nowrap}
@media(max-width:980px){.plans-grid{grid-template-columns:1fr;max-width:520px;margin:0 auto}.plan-card.is-featured{order:-1}}
@media(max-width:560px){.buildly-plans{padding:90px 16px 100px}.plan-card-top{padding:24px 20px}.plan-highlights,.plan-features{padding:20px}}

/* Financeiro (painel e master) */
.fin-grid{align-items:start}
.fin-notice{border-color:var(--ui-warn);background:var(--ui-warn-soft);color:var(--ui-text)}
.fin-form{display:grid;gap:12px;margin-bottom:18px}
.fin-form label{display:grid;gap:6px;font-weight:600;font-size:.8rem;color:var(--ui-text-2)}
.fin-form small,.fin-destination{color:var(--ui-muted);font-size:.78rem;margin:0}
.fin-list{display:grid}
.fin-row{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:13px 0;border-top:1px solid var(--ui-border)}
.fin-row:first-child{border-top:0}
.fin-row>div:first-child{display:grid;gap:3px;min-width:0}
.fin-row small{color:var(--ui-muted);overflow-wrap:anywhere}
.fin-row .status{justify-self:start}
.fin-note{color:var(--ui-danger)!important}
.fin-credit{color:var(--ui-brand-strong);white-space:nowrap}
.fin-debit{color:var(--ui-danger);white-space:nowrap}
.fin-status-completed{background:var(--ui-brand-soft)!important;color:var(--ui-brand-strong)!important}
.fin-status-rejected,.fin-status-failed{background:var(--ui-danger-soft)!important;color:var(--ui-danger)!important}
.fin-status-pending{background:var(--ui-warn-soft)!important;color:var(--ui-text)!important}
.fin-actions{display:grid;gap:8px;min-width:280px}
.fin-actions form{display:flex;gap:6px}
.fin-actions input,.fin-actions select{flex:1;min-width:0}
.fin-filter{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 14px}
.fin-filter a{padding:7px 12px;border:1px solid var(--ui-border);border-radius:var(--ui-radius-sm);color:var(--ui-text-2);font-size:.78rem;text-decoration:none}
.fin-filter a.active{background:var(--ui-brand-soft);border-color:var(--ui-brand);color:var(--ui-brand-strong)}
@media(max-width:760px){.fin-row{flex-direction:column;align-items:stretch}.fin-actions{min-width:0}.fin-actions form{flex-wrap:wrap}}

/* Checkout PIX das vitrines */
.checkout-box{margin-top:40px;align-items:start}
.checkout-box h2{font-size:clamp(2.2rem,4vw,3.4rem)!important}
.checkout-product{display:flex;gap:14px;align-items:center;margin:18px 0}
.checkout-product img{width:72px;height:72px;object-fit:contain;border-radius:12px;background:#fff}
.checkout-product div{display:grid;gap:3px}
.checkout-product small{opacity:.7}
.checkout-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.checkout-form label.checkout-terms{display:flex;gap:9px;align-items:flex-start;font-weight:600;line-height:1.4}
.checkout-form label.checkout-terms input{width:18px;height:18px;flex:none;margin-top:1px;padding:0}
.checkout-items{list-style:none;padding:0;margin:18px 0 0;display:grid;gap:8px}
.checkout-items li{display:flex;justify-content:space-between;gap:12px}
.checkout-status{display:inline-block;margin-top:14px}
.pix-box{justify-items:center}
.pix-qr{width:240px;height:240px;border-radius:12px;background:#fff;padding:8px}
.pix-box label{width:100%}
.pix-box textarea{width:100%;border:1px solid #2b3a32;border-radius:9px;background:#060b08;color:#f5f7f6;padding:10px;font:12px/1.4 ui-monospace,monospace;resize:none}
.catalog-theme-light .pix-box textarea{border-color:#ceddd3;background:#f9fbfa;color:#14261c}
.pix-box .button,.checkout-form .button{width:100%}
.lead-form>a.button{display:flex;justify-content:center}
@media(max-width:620px){.checkout-row{grid-template-columns:1fr}.checkout-box{margin-top:20px}}

/* Pagamento da mensalidade (Configurações) */
.billing-form{display:grid;gap:10px;margin-top:10px}
.billing-form label{display:grid;gap:5px;font-size:.78rem;font-weight:600;color:var(--ui-text-2)}
.billing-form small{color:var(--ui-muted);font-size:.74rem}
.billing-history{list-style:none;padding:0;margin:14px 0 0;display:grid;gap:6px;font-size:.78rem}
.billing-history li{display:flex;gap:10px;align-items:center;justify-content:space-between;padding-top:6px;border-top:1px solid var(--ui-border)}
.billing-history span{color:var(--ui-muted)}
.billing-history em{font-style:normal;color:var(--ui-text-2)}
.subscription-pay{display:grid;gap:12px;justify-items:center;max-width:460px}
.subscription-pay label{width:100%;display:grid;gap:6px}
.subscription-pay textarea{width:100%;font:12px/1.4 ui-monospace,monospace;resize:none}

/* Primeiros passos (painel do lojista) */
.onboarding-card{padding:26px 28px;margin-bottom:22px;border:1px solid var(--ui-border);background:linear-gradient(180deg,var(--ui-brand-soft),var(--ui-surface) 140px);scroll-margin-top:90px}
.onboarding-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}
.onboarding-head h2{margin:6px 0 4px;font-size:1.35rem}
.onboarding-head p{margin:0;color:var(--ui-muted);font-size:.88rem}
.onboarding-score{display:grid;justify-items:end;flex:none}
.onboarding-score strong{font:800 2rem var(--ui-display);color:var(--ui-brand-strong);line-height:1}
.onboarding-score strong small{font-size:1rem;color:var(--ui-muted)}
.onboarding-score span{font-size:.75rem;color:var(--ui-muted)}
.onboarding-progress{height:8px;margin:18px 0 20px;border-radius:99px;background:var(--ui-surface-3);overflow:hidden}
.onboarding-progress em{display:block;height:100%;border-radius:inherit;background:var(--ui-brand);transition:width .6s ease}
.onboarding-next{display:grid;grid-template-columns:auto 1fr auto;gap:18px;align-items:center;padding:18px 20px;border-radius:var(--ui-radius);border:1.5px solid var(--ui-brand);background:var(--ui-surface);box-shadow:var(--ui-shadow-sm)}
.onboarding-next-tag{align-self:start;padding:5px 9px;border-radius:6px;background:var(--ui-brand);color:#fff;font-size:.66rem;font-weight:800;letter-spacing:.08em;white-space:nowrap}
.onboarding-next-copy h3{margin:0 0 3px;font-size:1.05rem}
.onboarding-next-copy p{margin:0;color:var(--ui-text-2);font-size:.88rem;line-height:1.5}
.onboarding-next-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.onboarding-steps{list-style:none;margin:18px 0 0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.onboarding-steps li{display:grid;grid-template-columns:28px 1fr auto;gap:10px;align-items:start;padding:12px;border-radius:var(--ui-radius-sm);border:1px solid var(--ui-border);background:var(--ui-surface)}
.onboarding-steps li>div{display:grid;gap:2px;min-width:0}
.onboarding-steps b{font-size:.84rem;line-height:1.3}
.onboarding-steps small{font-size:.74rem;color:var(--ui-muted);line-height:1.4}
.onboarding-steps a{font-size:.76rem;font-weight:700;color:var(--ui-brand-strong);text-decoration:none;white-space:nowrap}
.onboarding-mark{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font-size:.78rem;font-weight:800;background:var(--ui-surface-3);color:var(--ui-muted)}
.onboarding-steps li.is-done{background:var(--ui-surface-2)}
.onboarding-steps li.is-done .onboarding-mark{background:var(--ui-brand);color:#fff}
.onboarding-steps li.is-done b{color:var(--ui-muted);text-decoration:line-through;text-decoration-color:var(--ui-border-strong)}
.onboarding-steps li.is-next{border-color:var(--ui-brand);box-shadow:var(--ui-ring)}
.onboarding-steps li.is-next .onboarding-mark{background:var(--ui-brand-soft);color:var(--ui-brand-strong);border:1.5px solid var(--ui-brand)}
.onboarding-mini{display:grid;gap:7px;margin-bottom:12px;padding:11px 12px;border-radius:var(--ui-radius-sm);border:1px solid var(--ui-border);background:var(--ui-brand-soft);text-decoration:none;color:var(--ui-text)}
.onboarding-mini span{display:grid;line-height:1.3}
.onboarding-mini small{font-size:.6rem;font-weight:800;letter-spacing:.1em;color:var(--ui-brand-strong)}
.onboarding-mini b{font-size:.78rem}
.onboarding-mini i{height:5px;border-radius:9px;background:var(--ui-surface-3);overflow:hidden}
.onboarding-mini em{display:block;height:100%;background:var(--ui-brand)}
@media(max-width:980px){.onboarding-steps{grid-template-columns:1fr 1fr}.onboarding-next{grid-template-columns:1fr}.onboarding-next-actions{justify-content:stretch}.onboarding-next-actions>*{flex:1}}
@media(max-width:620px){.onboarding-card{padding:20px 16px}.onboarding-steps{grid-template-columns:1fr}.onboarding-head h2{font-size:1.15rem}}

/* Mensagem com próximo passo */
.flash.flash-next{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center;justify-content:space-between}
.flash-next a{display:inline-flex;gap:6px;align-items:center;padding:6px 12px;border-radius:8px;background:var(--ui-surface);color:var(--ui-brand-strong);font-weight:700;font-size:.82rem;text-decoration:none;box-shadow:var(--ui-shadow-xs)}
.flash-next a small{font-weight:600;color:var(--ui-muted)}

/* Dicas contextuais */
.panel-tip{display:flex;gap:14px;align-items:flex-start;margin:0 0 18px;padding:14px 16px;border-radius:var(--ui-radius);border:1px solid var(--ui-border)}
.panel-tip p{margin:3px 0 0;font-size:.86rem;color:var(--ui-text-2);line-height:1.5}
.panel-tip a{color:var(--ui-brand-strong);font-weight:600}
.panel-tip-icon{width:28px;height:28px;flex:none;border-radius:50%;display:grid;place-items:center;font-weight:800;font-size:.85rem}
.panel-tip-warn{background:var(--ui-warn-soft);border-color:color-mix(in srgb,var(--ui-warn) 35%,transparent)}
.panel-tip-warn .panel-tip-icon{background:var(--ui-warn);color:#fff}
.panel-tip-ok{background:var(--ui-brand-soft);border-color:color-mix(in srgb,var(--ui-brand) 30%,transparent)}
.panel-tip-ok .panel-tip-icon{background:var(--ui-brand);color:#fff}
.field-hint{font-weight:500;color:var(--ui-muted);font-size:.72rem}
.fin-howto{padding:20px 24px;margin-bottom:18px}
.fin-howto h2{margin:0 0 14px;font-size:1.02rem}
.fin-howto ol{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.fin-howto li{display:flex;gap:11px;align-items:flex-start}
.fin-howto li>span{width:28px;height:28px;flex:none;border-radius:50%;display:grid;place-items:center;background:var(--ui-brand-soft);color:var(--ui-brand-strong);font-weight:800;font-size:.8rem;border:1px solid color-mix(in srgb,var(--ui-brand) 35%,transparent)}
.fin-howto li div{display:grid;gap:2px}
.fin-howto b{font-size:.86rem}
.fin-howto small{font-size:.78rem;color:var(--ui-muted);line-height:1.45}
@media(max-width:760px){.fin-howto ol{grid-template-columns:1fr}}
@media(max-height:760px){.onboarding-mini{display:none}}

/* Importação de produto: fontes aceitas e revisão */
.import-sources{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:10px 0 6px;font-size:.74rem;color:var(--ui-muted)}
.import-sources b{padding:3px 9px;border-radius:99px;background:var(--ui-surface-2);border:1px solid var(--ui-border);color:var(--ui-text-2);font-weight:600}
.import-url-form.is-loading input{opacity:.6}
.import-review .page-actions{display:flex;gap:10px;align-items:center}
.import-review .link-button{background:none;border:0;color:var(--ui-muted);font-weight:600;cursor:pointer;text-decoration:underline;padding:6px}
.import-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:20px;align-items:start}
.import-main,.import-side{display:grid;gap:18px;min-width:0}
.import-side{position:sticky;top:18px}
.import-section{padding:22px 24px}
.import-section-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:16px}
.import-section-head>div:first-child{display:flex;gap:12px;align-items:flex-start}
.import-section-head h2{margin:0;font-size:1.08rem}
.import-section-head p{margin:3px 0 0;color:var(--ui-muted);font-size:.84rem;line-height:1.45}
.import-step{width:28px;height:28px;flex:none;border-radius:50%;display:grid;place-items:center;background:var(--ui-brand);color:#fff;font-weight:800;font-size:.8rem}
.import-counter{flex:none;text-align:right;font-size:.9rem;color:var(--ui-text-2)}
.import-counter b{font:800 1.4rem var(--ui-display);color:var(--ui-brand-strong)}
.import-counter small{display:block;color:var(--ui-muted);font-size:.72rem}
.import-bulk{display:flex;gap:8px;margin-bottom:12px}
.import-bulk button{padding:6px 12px;border-radius:8px;border:1px solid var(--ui-border);background:var(--ui-surface);color:var(--ui-text-2);font-size:.78rem;font-weight:600;cursor:pointer}
.import-bulk button:hover{border-color:var(--ui-brand)}
.import-photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(128px,1fr));gap:12px}
.import-photo{position:relative;border-radius:12px;border:2px solid var(--ui-border);background:#fff;transition:border-color .15s,box-shadow .15s,opacity .15s}
.import-photo.is-selected{border-color:var(--ui-brand);box-shadow:0 0 0 3px color-mix(in srgb,var(--ui-brand) 18%,transparent)}
.import-photo.is-locked{opacity:.45}
.import-photo.is-broken{display:none}
.import-photo-pick{display:block;cursor:pointer;aspect-ratio:1;border-radius:10px;overflow:hidden}
.import-photo-pick input{position:absolute;opacity:0;pointer-events:none}
.import-photo-pick img{width:100%;height:100%;object-fit:contain;display:block;background:#fff}
.import-photo-check{position:absolute;top:8px;left:8px;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;font-size:.8rem;font-weight:800;border:2px solid #fff;background:rgba(15,23,41,.28);color:transparent;box-shadow:0 2px 6px rgba(0,0,0,.18)}
.import-photo.is-selected .import-photo-check{background:var(--ui-brand);color:#fff}
.import-photo-cover{position:absolute;right:6px;bottom:6px;cursor:pointer}
.import-photo-cover input{position:absolute;opacity:0}
.import-photo-cover span{display:inline-flex;gap:4px;align-items:center;padding:4px 8px;border-radius:99px;background:rgba(255,255,255,.92);border:1px solid var(--ui-border);color:var(--ui-muted);font-size:.72rem;font-weight:700;box-shadow:var(--ui-shadow-xs)}
.import-photo-cover em{font-style:normal;display:none}
.import-photo-cover:hover em,.import-photo-cover input:checked+span em{display:inline}
.import-photo-cover input:checked+span{background:#fff7d6;border-color:#f2c94c;color:#8a6100}
.import-photo-cover input:focus-visible+span{box-shadow:var(--ui-ring)}
.import-videos{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px}
.import-video{display:grid;gap:10px;padding:10px;border-radius:12px;border:2px solid var(--ui-border);cursor:pointer;transition:border-color .15s}
.import-video.is-selected{border-color:var(--ui-brand)}
.import-video-player{aspect-ratio:16/9;border-radius:8px;overflow:hidden;background:#0b0f14}
.import-video-player video,.import-video-player iframe{width:100%;height:100%;border:0;display:block;object-fit:contain}
.import-video-pick{display:flex;gap:8px;align-items:center;font-size:.84rem;font-weight:600}
.import-video-pick input{width:18px;height:18px;accent-color:var(--ui-brand)}
.import-video-pick small{margin-left:auto;padding:2px 8px;border-radius:99px;background:var(--ui-surface-3);color:var(--ui-muted);font-size:.68rem}
.import-texts{display:grid;gap:14px}
.money-input{display:flex;align-items:stretch;border:1px solid var(--ui-border-strong);border-radius:var(--ui-radius-sm);background:var(--ui-surface);overflow:hidden}
.money-input i{display:grid;place-items:center;padding:0 12px;font-style:normal;font-weight:700;color:var(--ui-muted);background:var(--ui-surface-2);border-right:1px solid var(--ui-border)}
.money-input input{border:0!important;box-shadow:none!important;flex:1;min-width:0;font-weight:700}
.money-input:focus-within{border-color:var(--ui-brand);box-shadow:var(--ui-ring)}
.money-input-strong input{font-size:1.15rem}
.money-input input.needs-value{background:var(--ui-warn-soft)}
.markup{display:grid;gap:6px}
.markup>span{font-size:.78rem;font-weight:600;color:var(--ui-text-2)}
.markup>div{display:flex;flex-wrap:wrap;gap:6px}
.markup button{flex:1;min-width:52px;padding:8px 6px;border-radius:8px;border:1px solid var(--ui-border);background:var(--ui-surface);font-weight:700;font-size:.8rem;color:var(--ui-text-2);cursor:pointer;transition:all .12s}
.markup button:hover{border-color:var(--ui-brand);color:var(--ui-brand-strong)}
.markup button.is-active{background:var(--ui-brand);border-color:var(--ui-brand);color:#fff}
.import-price .link-button{justify-self:start;font-size:.78rem;color:var(--ui-brand-strong)!important;padding:4px 0}
.profit{display:grid;gap:6px;padding:14px 16px;border-radius:12px;background:var(--ui-surface-2);border:1px solid var(--ui-border)}
.profit>div{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.profit span{font-size:.8rem;font-weight:600;color:var(--ui-text-2)}
.profit strong{font:800 1.3rem var(--ui-display)}
.profit small{font-size:.72rem;color:var(--ui-muted);line-height:1.4}
.profit.is-good{background:var(--ui-brand-soft);border-color:color-mix(in srgb,var(--ui-brand) 35%,transparent)}
.profit.is-good strong{color:var(--ui-brand-strong)}
.profit.is-low{background:var(--ui-warn-soft)}
.profit.is-loss{background:var(--ui-danger-soft)}
.profit.is-loss strong{color:var(--ui-danger)}
.import-submit{min-height:52px;font-size:1rem}
.import-side .button{width:100%;justify-content:center}
.import-loading{position:fixed;inset:0;z-index:100;display:grid;place-items:center;background:rgba(15,23,41,.45);backdrop-filter:blur(3px)}
.import-loading[hidden]{display:none}
.import-loading>div{display:grid;justify-items:center;gap:8px;padding:28px 34px;border-radius:16px;background:var(--ui-surface);box-shadow:var(--ui-shadow-md);text-align:center}
.import-loading small{color:var(--ui-muted)}
.import-spinner{width:34px;height:34px;border-radius:50%;border:3px solid var(--ui-surface-3);border-top-color:var(--ui-brand);animation:import-spin .8s linear infinite}
@keyframes import-spin{to{transform:rotate(360deg)}}
@media(max-width:1100px){.import-layout{grid-template-columns:1fr}.import-side{position:static}}
@media(max-width:620px){.import-section{padding:18px 16px}.import-photos{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.import-section-head{flex-direction:column}.import-counter{text-align:left}}

/* Botão de favoritos "Importar para Buildly" */
.bookmarklet-card{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:28px;align-items:center;padding:26px 28px;margin-top:18px;border:1px dashed color-mix(in srgb,var(--ui-brand) 45%,transparent);background:linear-gradient(135deg,var(--ui-brand-soft),var(--ui-surface) 60%);scroll-margin-top:90px}
.bookmarklet-copy h2{margin:6px 0 6px;font-size:1.25rem}
.bookmarklet-copy>p{margin:0 0 14px;color:var(--ui-text-2);font-size:.9rem;line-height:1.55;max-width:640px}
.bookmarklet-steps{margin:0;padding:0;list-style:none;counter-reset:bm;display:grid;gap:9px}
.bookmarklet-steps li{counter-increment:bm;display:grid;grid-template-columns:26px 1fr;column-gap:10px;font-size:.88rem;color:var(--ui-text-2);line-height:1.45}
.bookmarklet-steps li::before{content:counter(bm);grid-row:span 2;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:var(--ui-brand);color:#fff;font-weight:800;font-size:.78rem}
.bookmarklet-steps small{color:var(--ui-muted);font-size:.78rem}
.bookmarklet-steps kbd{padding:1px 6px;border-radius:5px;border:1px solid var(--ui-border-strong);background:var(--ui-surface);font:600 .72rem var(--ui-font);box-shadow:0 1px 0 var(--ui-border-strong)}
.bookmarklet-drag{display:grid;justify-items:center;gap:8px;text-align:center;padding:20px;border-radius:var(--ui-radius);background:var(--ui-surface);border:1px solid var(--ui-border)}
.bookmarklet-button{display:inline-flex;align-items:center;gap:8px;padding:14px 22px;border-radius:12px;background:var(--ui-brand);color:#fff!important;font-weight:800;font-size:1rem;text-decoration:none;cursor:grab;box-shadow:0 10px 24px -10px color-mix(in srgb,var(--ui-brand) 80%,transparent);animation:bm-pulse 2.4s ease-in-out infinite}
.bookmarklet-button:active{cursor:grabbing}
.bookmarklet-drag small{font-weight:700;color:var(--ui-brand-strong);font-size:.8rem}
.bookmarklet-drag em{font-style:normal;font-size:.74rem;color:var(--ui-muted)}
@keyframes bm-pulse{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
@media(prefers-reduced-motion:reduce){.bookmarklet-button{animation:none}}
@media(max-width:900px){.bookmarklet-card{grid-template-columns:1fr}}
.import-receive{max-width:520px;margin:60px auto;padding:40px 32px;display:grid;justify-items:center;gap:12px;text-align:center}
.import-receive h1{margin:8px 0 0;font-size:1.4rem}
.import-receive p{margin:0;color:var(--ui-muted)}
.bookmarklet-steps li>span{display:block}
.bookmarklet-steps li>span small{display:block;margin-top:2px}
