*{margin:0;padding:0;box-sizing:border-box}
/* ── Tema Cream (default — identidade 49imob) ──── */
:root,[data-theme="cream"]{--bg:#FBF8F3;--surface:#ffffff;--surface2:#F5F0E8;--surface3:#EFE8D8;--border:#E8DFD0;--border-accent:#D4C5A9;--gold:#B8956A;--gold-light:#E8D9BE;--gold-dim:#A07F56;--blue:#5B7A9A;--green:#5A7D4F;--red:#A84438;--orange:#C48B3C;--text:#2A2520;--text-dim:#6B6359;--text-muted:#9B9389;--on-accent:#FFFFFF;--success-bg:#E8EFE3;--warning-bg:#FBF0DC;--danger-bg:#F5DCD8;--info-bg:#DFE7EF;--login-bg:linear-gradient(135deg,#FBF8F3 0%,#F5EEDD 50%,#EFE4CC 100%);--topbar-bg:rgba(255,253,247,.92);--toast-success-bg:#E8EFE3;--toast-error-bg:#F5DCD8;--toast-info-bg:#DFE7EF;--glow:none;--shadow-sm:0 1px 2px rgba(42,37,32,.04);--shadow-md:0 4px 12px rgba(42,37,32,.06);--shadow-lg:0 12px 32px rgba(42,37,32,.08);--radius:12px;--radius-sm:8px;--font:'Inter','Segoe UI',system-ui,-apple-system,sans-serif}
/* ── Tema Dark ──── */
[data-theme="dark"]{--bg:#0a0a0f;--surface:#12121a;--surface2:#1a1a28;--surface3:#222236;--border:#2a2a40;--border-accent:#3d3d5c;--gold:#c8a96e;--gold-light:#e0c88a;--gold-dim:#8a7548;--blue:#4a7dff;--green:#34d399;--red:#f87171;--orange:#fbbf24;--text:#e8e6f0;--text-dim:#8888a8;--text-muted:#555570;--on-accent:#0a0a0f;--success-bg:rgba(52,211,153,.1);--warning-bg:rgba(251,191,36,.1);--danger-bg:rgba(248,113,113,.1);--info-bg:rgba(74,125,255,.1);--login-bg:linear-gradient(135deg,#0a0a1a 0%,#111128 50%,#0d0d1a 100%);--topbar-bg:rgba(10,10,15,.85);--toast-success-bg:#1a3a2a;--toast-error-bg:#3a1a1a;--toast-info-bg:#1a2a3a;--glow:none;--shadow-sm:0 1px 2px rgba(0,0,0,.2);--shadow-md:0 4px 12px rgba(0,0,0,.3);--shadow-lg:0 12px 32px rgba(0,0,0,.4)}
/* ── Tema Claro (minimalista branco) ──── */
[data-theme="light"]{--bg:#f5f5f0;--surface:#ffffff;--surface2:#f0ede6;--surface3:#e8e3d7;--border:#d8d2c2;--border-accent:#b8ad95;--gold:#a88a52;--gold-light:#c8a96e;--gold-dim:#806438;--blue:#2952cc;--green:#0e9f6e;--red:#d64545;--orange:#b8861b;--text:#2a2520;--text-dim:#6b6558;--text-muted:#a39d90;--on-accent:#ffffff;--success-bg:rgba(14,159,110,.08);--warning-bg:rgba(184,134,27,.08);--danger-bg:rgba(214,69,69,.08);--info-bg:rgba(41,82,204,.08);--login-bg:linear-gradient(135deg,#f5f0e6 0%,#ede6d0 50%,#e8dfc6 100%);--topbar-bg:rgba(255,255,255,.9);--toast-success-bg:#d4efdf;--toast-error-bg:#f5c6c6;--toast-info-bg:#cfd9f0;--glow:none;--shadow-sm:0 1px 2px rgba(42,37,32,.05);--shadow-md:0 4px 12px rgba(42,37,32,.08);--shadow-lg:0 12px 32px rgba(42,37,32,.12)}
/* ── Tema Neon ──── */
[data-theme="neon"]{--bg:#05050a;--surface:#0a0a18;--surface2:#120f24;--surface3:#1a1535;--border:#2a1f55;--border-accent:#7a3fff;--gold:#00ffd5;--gold-light:#5effe5;--gold-dim:#00c8aa;--blue:#7a3fff;--green:#00ff9f;--red:#ff3fa0;--orange:#ffb500;--text:#e8f0ff;--text-dim:#8a85b8;--text-muted:#4a4575;--on-accent:#05050a;--login-bg:radial-gradient(circle at 20% 30%,rgba(122,63,255,.15),transparent 50%),radial-gradient(circle at 80% 70%,rgba(0,255,213,.1),transparent 50%),linear-gradient(135deg,#05050a 0%,#0a0a18 50%,#080818 100%);--topbar-bg:rgba(10,10,24,.85);--toast-success-bg:rgba(0,255,159,.15);--toast-error-bg:rgba(255,63,160,.15);--toast-info-bg:rgba(122,63,255,.15);--glow:0 0 20px rgba(0,255,213,.4),0 0 40px rgba(122,63,255,.2);--radius:12px;--radius-sm:8px;--font:'Segoe UI',system-ui,-apple-system,sans-serif}
[data-theme="neon"] .stat-card::before,[data-theme="neon"] .kpi-card::before{background:linear-gradient(90deg,#00ffd5,#7a3fff,#ff3fa0)!important;height:2px;box-shadow:0 0 10px #00ffd5}
[data-theme="neon"] .btn-gold{box-shadow:var(--glow)}
[data-theme="neon"] .stat-card .value.gold,[data-theme="neon"] .topbar h1{text-shadow:0 0 10px rgba(0,255,213,.5)}
[data-theme="neon"] .tab.active,[data-theme="neon"] .crm-subtab.active{box-shadow:0 0 15px rgba(0,255,213,.4)}
[data-theme="neon"] .iris-fab{background:linear-gradient(135deg,#7a3fff,#ff3fa0);box-shadow:0 0 25px rgba(122,63,255,.6)}
html{font-size:15px}body{font-family:var(--font);background:var(--bg);color:var(--text);min-height:100vh;overflow-x:hidden;font-feature-settings:'cv02','cv03','cv04','cv11';-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
/* ── Typography utilities ──── */
.text-xs{font-size:.72rem;line-height:1.4}
.text-sm{font-size:.85rem;line-height:1.5}
.text-base{font-size:.95rem;line-height:1.55}
.text-lg{font-size:1.1rem;line-height:1.4}
.text-xl{font-size:1.35rem;line-height:1.3;letter-spacing:-.01em}
.text-2xl{font-size:1.7rem;line-height:1.2;letter-spacing:-.02em}
.font-medium{font-weight:500}.font-semibold{font-weight:600}.font-bold{font-weight:700}
.page-title{font-size:1.7rem;font-weight:700;color:var(--text);letter-spacing:-.02em;margin-bottom:.2rem}
.page-subtitle{font-size:.9rem;color:var(--text-dim);margin-bottom:1.5rem;line-height:1.5}
.section-label{font-size:.68rem;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.08em}
::-webkit-scrollbar{width:6px}::-webkit-scrollbar-track{background:var(--surface)}::-webkit-scrollbar-thumb{background:var(--border-accent);border-radius:3px}
#login-screen{display:flex;align-items:center;justify-content:center;min-height:100vh;background:var(--login-bg)}
.login-box{background:var(--surface);border:1px solid var(--border);border-radius:20px;padding:3rem 2.5rem;width:min(420px,92vw);text-align:center;box-shadow:0 20px 60px rgba(0,0,0,.5)}
.login-box h1{font-size:1.8rem;color:var(--gold);margin-bottom:.3rem;letter-spacing:1px}
.login-box .subtitle{color:var(--text-dim);font-size:.85rem;margin-bottom:2rem}
.login-box input{width:100%;padding:.85rem 1.2rem;background:var(--surface2);border:1px solid var(--border);border-radius:var(--radius-sm);color:var(--text);font-size:1rem;outline:none;transition:border-color .2s;margin-bottom:.6rem}
.login-box input:focus{border-color:var(--gold)}
.login-box input::placeholder{color:var(--text-muted)}
.login-box button{width:100%;padding:.85rem;margin-top:.5rem;background:linear-gradient(135deg,var(--gold),var(--gold-dim));color:var(--on-accent);font-weight:700;font-size:1rem;border:none;border-radius:var(--radius-sm);cursor:pointer;transition:transform .15s,box-shadow .15s}
.login-box button:hover{transform:translateY(-1px);box-shadow:0 6px 20px rgba(200,169,110,.3)}
.login-error{color:var(--red);font-size:.85rem;margin-top:.8rem;min-height:1.2rem}
#app{display:none}
#app.show{display:flex;min-height:100vh}
/* ── Sidebar ──── */
.sidebar{width:240px;background:var(--surface);border-right:1px solid var(--border);display:flex;flex-direction:column;position:sticky;top:0;height:100vh;flex-shrink:0;z-index:90;transition:transform .25s ease}
.sidebar-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:85;opacity:0;pointer-events:none;transition:opacity .25s}
.sidebar.sidebar-open ~ .sidebar-overlay,body.sidebar-open .sidebar-overlay{opacity:1;pointer-events:auto}
.sidebar-header{padding:1.1rem 1.1rem .9rem;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border)}
.sidebar-logo{display:flex;align-items:center;gap:.65rem}
.sidebar-logo-mark{width:36px;height:36px;border-radius:10px;background:linear-gradient(135deg,var(--gold),var(--gold-dim));color:var(--on-accent);display:flex;align-items:center;justify-content:center}
.sidebar-logo-mark svg{width:18px;height:18px}
.sidebar-brand{font-weight:700;font-size:1rem;color:var(--text);letter-spacing:.02em}
.sidebar-brand-sub{font-size:.7rem;color:var(--text-muted);font-weight:500}
.sidebar-close{background:none;border:none;color:var(--text-muted);cursor:pointer;padding:.3rem;display:none}
.sidebar-close:hover{color:var(--text)}
.sidebar-nav{flex:1;overflow-y:auto;padding:.8rem .6rem;display:flex;flex-direction:column;gap:.4rem}
.sidebar-section{display:flex;flex-direction:column;gap:2px}
.sidebar-section-label{font-size:.65rem;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.1em;padding:.5rem .8rem .2rem}
.sidebar-link{display:flex;align-items:center;gap:.65rem;padding:.55rem .8rem;border-radius:var(--radius-sm);font-size:.85rem;color:var(--text-dim);cursor:pointer;background:transparent;border:none;text-align:left;transition:all .15s;width:100%;position:relative;font-family:inherit}
.sidebar-link svg{width:16px;height:16px;flex-shrink:0;stroke-width:2}
.sidebar-link span{flex:1}
.sidebar-link:hover:not(.active){background:var(--surface2);color:var(--text)}
.sidebar-link.active{background:var(--gold-light);color:var(--gold-dim);font-weight:600}
.sidebar-link.active::before{content:'';position:absolute;left:0;top:25%;bottom:25%;width:3px;border-radius:0 2px 2px 0;background:var(--gold)}
[data-theme="dark"] .sidebar-link.active,[data-theme="neon"] .sidebar-link.active{background:rgba(200,169,110,.12);color:var(--gold-light)}
.sidebar-badge{font-size:.65rem;font-weight:700;padding:.1rem .4rem;border-radius:10px;background:var(--danger-bg);color:var(--red);min-width:18px;text-align:center}
.sidebar-badge:empty{display:none}
.sidebar-user{padding:.7rem;border-top:1px solid var(--border);display:flex;gap:.4rem;align-items:center}
.sidebar-user-btn{flex:1;display:flex;align-items:center;gap:.6rem;padding:.5rem .6rem;background:transparent;border:1px solid transparent;border-radius:var(--radius-sm);cursor:pointer;font-family:inherit;color:var(--text);transition:all .15s;min-width:0}
.sidebar-user-btn:hover{background:var(--surface2);border-color:var(--border)}
.sidebar-user-avatar{width:32px;height:32px;border-radius:50%;background:linear-gradient(135deg,var(--gold),var(--gold-dim));color:var(--on-accent);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.8rem;flex-shrink:0}
.sidebar-user-info{flex:1;min-width:0;text-align:left}
.sidebar-user-name{font-size:.82rem;font-weight:600;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sidebar-user-role{font-size:.7rem;color:var(--text-muted);text-transform:capitalize}
.sidebar-user-cog{width:14px;height:14px;color:var(--text-muted);flex-shrink:0}
.sidebar-logout{width:36px;height:36px;border-radius:var(--radius-sm);border:1px solid var(--border);background:transparent;color:var(--text-muted);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .15s;flex-shrink:0}
.sidebar-logout:hover{background:var(--danger-bg);color:var(--red);border-color:var(--red)}
.sidebar-logout svg{width:16px;height:16px}
/* ── Main ──── */
.main{flex:1;min-width:0;display:flex;flex-direction:column}
.topbar{position:sticky;top:0;z-index:50;background:var(--topbar-bg);backdrop-filter:blur(16px);border-bottom:1px solid var(--border);padding:.7rem 1.5rem;display:flex;align-items:center;gap:1rem}
.topbar-menu-btn{background:none;border:1px solid var(--border);border-radius:var(--radius-sm);width:36px;height:36px;display:none;align-items:center;justify-content:center;cursor:pointer;color:var(--text-dim);flex-shrink:0}
.topbar-menu-btn:hover{background:var(--surface2);color:var(--text)}
.topbar-menu-btn svg{width:18px;height:18px}
.topbar-heading{flex:1;min-width:0;display:flex;align-items:center;gap:.7rem}
.topbar-title{font-size:1.1rem;font-weight:600;color:var(--text);letter-spacing:-.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.topbar-actions{display:flex;align-items:center;gap:.5rem;flex-shrink:0}
.topbar-search{position:relative;width:240px;display:flex;align-items:center}
.topbar-search svg{position:absolute;left:.6rem;width:15px;height:15px;color:var(--text-muted);pointer-events:none}
.topbar-search input{width:100%;padding:.45rem .7rem .45rem 2rem;background:var(--surface2);border:1px solid var(--border);border-radius:var(--radius-sm);color:var(--text);font-size:.82rem;outline:none;font-family:inherit;transition:border-color .15s}
.topbar-search input:focus{border-color:var(--gold)}
.topbar-search input::placeholder{color:var(--text-muted)}
.icon-btn{width:36px;height:36px;border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--surface);color:var(--text-dim);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .15s;text-decoration:none;flex-shrink:0}
.icon-btn:hover{background:var(--surface2);color:var(--text);border-color:var(--border-accent)}
.icon-btn svg{width:16px;height:16px}
.btn-sm{padding:.45rem .9rem;border-radius:var(--radius-sm);font-size:.78rem;border:1px solid var(--border);background:var(--surface2);color:var(--text-dim);cursor:pointer;transition:all .2s;font-family:inherit}
.btn-sm:hover{border-color:var(--gold-dim);color:var(--gold-light)}.btn-sm.danger:hover{border-color:var(--red);color:var(--red)}
.container{max-width:1400px;margin:0 auto;padding:1.5rem;width:100%}
/* Esconde a barra de tabs horizontal antiga (agora é sidebar) */
.tabs{display:flex;gap:.3rem;padding:.3rem;background:var(--surface);border-radius:var(--radius);margin-bottom:1.2rem;overflow-x:auto;border:1px solid var(--border)}
.tab{padding:.6rem 1rem;border-radius:var(--radius-sm);font-size:.82rem;color:var(--text-dim);cursor:pointer;white-space:nowrap;transition:all .2s;border:none;background:transparent;font-family:inherit}
.tab:not(.sidebar-link).active{background:var(--gold);color:var(--on-accent);font-weight:600}.tab:not(.sidebar-link):not(.active):hover{color:var(--text);background:var(--surface2)}.tab.hidden{display:none}
.tab-content{display:none}.tab-content.active{display:block}
.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:.8rem;margin-bottom:1.5rem}
.stat-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1.2rem;position:relative;overflow:hidden}
.stat-card::before{content:'';position:absolute;top:0;left:0;right:0;height:2px;background:linear-gradient(90deg,var(--gold),transparent)}
.stat-card .label{font-size:.72rem;color:var(--text-muted);text-transform:uppercase;letter-spacing:1px}
.stat-card .value{font-size:1.8rem;font-weight:700;color:var(--text);margin-top:.2rem}
.stat-card .value.gold{color:var(--gold)}.stat-card .detail{font-size:.75rem;color:var(--text-dim);margin-top:.3rem}
.section{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);margin-bottom:1rem;overflow:hidden;box-shadow:var(--shadow-sm)}
.section-header{padding:1rem 1.2rem;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:.5rem;flex-wrap:wrap}
.section-header h2{font-size:.92rem;color:var(--text);font-weight:600;letter-spacing:-.005em}.section-body{padding:1.2rem}
[data-theme="dark"] .section-header h2,[data-theme="neon"] .section-header h2{color:var(--gold-light)}
.badge{display:inline-block;padding:.2rem .6rem;border-radius:20px;font-size:.7rem;font-weight:600}
.badge.pendente{background:rgba(251,191,36,.15);color:var(--orange)}.badge.aprovado,.badge.completo{background:rgba(52,211,153,.15);color:var(--green)}
.badge.rejeitado{background:rgba(248,113,113,.15);color:var(--red)}.badge.drive{background:rgba(74,125,255,.15);color:var(--blue)}
.badge.painel{background:rgba(200,169,110,.15);color:var(--gold)}.badge.whatsapp{background:rgba(52,211,153,.15);color:var(--green)}
.badge.admin{background:rgba(200,169,110,.15);color:var(--gold)}.badge.corretor{background:rgba(74,125,255,.15);color:var(--blue)}
.badge.parcial{background:rgba(251,191,36,.15);color:var(--orange)}
.item-list{display:flex;flex-direction:column;gap:.5rem}
.item-row{display:flex;align-items:center;gap:.8rem;padding:.8rem 1rem;background:var(--surface2);border-radius:var(--radius-sm);border:1px solid transparent;transition:border-color .2s;flex-wrap:wrap}
.item-row:hover{border-color:var(--border-accent)}.item-info{flex:1;min-width:200px}
.item-info .name{font-weight:600;font-size:.88rem}.item-info .meta{font-size:.75rem;color:var(--text-dim);margin-top:.15rem}
.item-actions{display:flex;gap:.4rem;flex-shrink:0}
.btn{padding:.5rem 1rem;border-radius:var(--radius-sm);font-size:.8rem;font-weight:600;border:none;cursor:pointer;transition:all .2s}
.btn-gold{background:linear-gradient(135deg,var(--gold),var(--gold-dim));color:var(--on-accent)}.btn-gold:hover{box-shadow:0 4px 15px rgba(200,169,110,.3)}
.btn-green{background:rgba(52,211,153,.15);color:var(--green);border:1px solid rgba(52,211,153,.3)}.btn-green:hover{background:rgba(52,211,153,.25)}
.btn-red{background:rgba(248,113,113,.1);color:var(--red);border:1px solid rgba(248,113,113,.25)}.btn-red:hover{background:rgba(248,113,113,.2)}
.btn-blue{background:rgba(74,125,255,.12);color:var(--blue);border:1px solid rgba(74,125,255,.25)}.btn-blue:hover{background:rgba(74,125,255,.22)}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:.8rem}.form-group{display:flex;flex-direction:column;gap:.3rem}.form-group.span-2{grid-column:span 2}
.form-group label{font-size:.75rem;color:var(--text-dim);text-transform:uppercase;letter-spacing:.5px}
.form-group input,.form-group select,.form-group textarea{padding:.7rem .9rem;background:var(--surface2);border:1px solid var(--border);border-radius:var(--radius-sm);color:var(--text);font-size:.88rem;outline:none;transition:border-color .2s;font-family:var(--font)}
.form-group input:focus,.form-group select:focus,.form-group textarea:focus{border-color:var(--gold)}
.form-group textarea{resize:vertical;min-height:80px}.form-group input::placeholder,.form-group textarea::placeholder{color:var(--text-muted)}
.upload-zone{border:2px dashed var(--border-accent);border-radius:var(--radius);padding:2rem;text-align:center;cursor:pointer;transition:all .2s;background:var(--surface2)}
.upload-zone:hover,.upload-zone.dragover{border-color:var(--gold);background:rgba(200,169,110,.05)}
.upload-zone p{color:var(--text-dim);font-size:.85rem}.upload-zone .icon{font-size:2rem;margin-bottom:.5rem;color:var(--gold-dim)}
.upload-preview{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.8rem}
.upload-preview img{width:60px;height:60px;object-fit:cover;border-radius:var(--radius-sm);border:1px solid var(--border)}
.toast-container{position:fixed;bottom:1.5rem;right:1.5rem;z-index:9999;display:flex;flex-direction:column;gap:.5rem;pointer-events:none}
.toast{padding:.75rem .9rem;border-radius:var(--radius-sm);font-size:.85rem;box-shadow:var(--shadow-lg);display:flex;align-items:center;gap:.6rem;max-width:380px;min-width:260px;animation:toastSlideIn .25s cubic-bezier(.3,1.2,.4,1);pointer-events:auto;border:1px solid}
.toast.toast-out{animation:toastSlideOut .2s ease forwards}
.toast-icon{width:18px;height:18px;flex-shrink:0}
.toast-body{flex:1;line-height:1.4;font-weight:500}
.toast-close{background:none;border:none;color:currentColor;opacity:.5;cursor:pointer;padding:.2rem;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.toast-close:hover{opacity:1}.toast-close svg{width:14px;height:14px}
.toast-success{background:var(--toast-success-bg);border-color:var(--green);color:var(--green)}
.toast-error{background:var(--toast-error-bg);border-color:var(--red);color:var(--red)}
.toast-info{background:var(--toast-info-bg);border-color:var(--blue);color:var(--blue)}
.toast-warning{background:var(--warning-bg);border-color:var(--orange);color:var(--orange)}
@keyframes toastSlideIn{from{opacity:0;transform:translateX(50px) scale(.95)}to{opacity:1;transform:translateX(0) scale(1)}}
@keyframes toastSlideOut{to{opacity:0;transform:translateX(50px) scale(.95)}}
/* ── Loading / skeletons ──── */
.skeleton{background:linear-gradient(90deg,var(--surface2) 0%,var(--surface3) 50%,var(--surface2) 100%);background-size:200% 100%;animation:skeleton 1.4s ease-in-out infinite;border-radius:var(--radius-sm);color:transparent!important}
@keyframes skeleton{0%{background-position:-100% 0}100%{background-position:100% 0}}
.btn:disabled,.btn-sm:disabled{opacity:.65;cursor:not-allowed}
.btn.is-loading,.btn-sm.is-loading{position:relative;color:transparent!important;pointer-events:none}
.btn.is-loading::after,.btn-sm.is-loading::after{content:'';position:absolute;top:50%;left:50%;width:14px;height:14px;margin:-7px 0 0 -7px;border:2px solid currentColor;border-top-color:transparent;border-radius:50%;animation:spin .6s linear infinite;color:var(--text)}
.empty{text-align:center;padding:2.5rem;color:var(--text-muted);font-size:.9rem}.empty .icon{font-size:2.5rem;margin-bottom:.5rem;opacity:.5}
.pulse{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--green);margin-right:.5rem;animation:pulse 2s infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.4}}
.spinner{width:18px;height:18px;border:2px solid var(--border);border-top-color:var(--gold);border-radius:50%;animation:spin .6s linear infinite;display:inline-block}
@keyframes spin{to{transform:rotate(360deg)}}
.construtora-tag{display:inline-block;padding:.15rem .5rem;border-radius:4px;font-size:.7rem;background:var(--surface3);color:var(--text-dim);font-weight:600}
.user-badge{display:inline-block;padding:.2rem .7rem;border-radius:20px;font-size:.72rem;font-weight:600;margin-left:.5rem}
/* ── CRM / Kanban ──── */
.crm-subtabs{display:flex;gap:.3rem;margin-bottom:1rem}
.crm-subtab{padding:.5rem .9rem;border-radius:var(--radius-sm);font-size:.78rem;color:var(--text-dim);cursor:pointer;border:1px solid var(--border);background:var(--surface2);transition:all .2s}
.crm-subtab.active{background:var(--gold);color:var(--on-accent);border-color:var(--gold);font-weight:600}
.crm-subtab:not(.active):hover{border-color:var(--border-accent);color:var(--text)}
.crm-panel{display:none}.crm-panel.active{display:block}
.kanban{display:flex;gap:.6rem;overflow-x:auto;padding-bottom:.5rem;min-height:400px}
.kanban-col{min-width:220px;max-width:260px;flex:1;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);display:flex;flex-direction:column}
.kanban-col-header{padding:.7rem .8rem;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center}
.kanban-col-header .title{font-size:.78rem;font-weight:600;color:var(--text-dim);text-transform:uppercase;letter-spacing:.5px}
.kanban-col-header .count{font-size:.72rem;background:var(--surface3);color:var(--text-muted);padding:.15rem .5rem;border-radius:10px}
.kanban-col-body{padding:.5rem;flex:1;min-height:60px;overflow-y:auto}
.kanban-col-body.drag-over{background:rgba(200,169,110,.05);border-radius:0 0 var(--radius) var(--radius)}
.kanban-card{background:var(--surface2);border:1px solid var(--border);border-radius:var(--radius-sm);padding:.7rem .8rem;margin-bottom:.4rem;cursor:grab;transition:all .15s;position:relative}
.kanban-card:hover{border-color:var(--border-accent);transform:translateY(-1px)}
.kanban-card.dragging{opacity:.5;transform:rotate(2deg)}
.kanban-card .kc-name{font-size:.82rem;font-weight:600;margin-bottom:.25rem}
.kanban-card .kc-imovel{font-size:.72rem;color:var(--text-dim)}
.kanban-card .kc-valor{font-size:.75rem;color:var(--gold);margin-top:.2rem}
.kanban-card .kc-meta{display:flex;justify-content:space-between;align-items:center;margin-top:.35rem}
.kanban-card .kc-corretor{font-size:.65rem;color:var(--text-muted)}
.kanban-card .kc-dias{font-size:.65rem;padding:.1rem .4rem;border-radius:10px;background:var(--surface3);color:var(--text-muted)}
.kanban-card .kc-dias.warn{background:rgba(248,113,113,.15);color:var(--red)}
.kc-tipo{position:absolute;top:.7rem;right:.7rem;width:8px;height:8px;border-radius:50%}
.kc-tipo.venda{background:var(--green)}.kc-tipo.compra{background:var(--blue)}.kc-tipo.permuta{background:var(--orange)}.kc-tipo.aluguel{background:#a78bfa}
.kc-agenda{font-size:.65rem;color:var(--blue);background:rgba(74,125,255,.1);padding:.15rem .4rem;border-radius:4px;margin-top:.25rem;display:inline-block}
/* ── Modal ──── */
.modal-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.7);z-index:200;align-items:center;justify-content:center;padding:1rem}
.modal-overlay.open{display:flex}
.modal{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);width:min(560px,95vw);max-height:85vh;overflow-y:auto}
.modal-header{padding:1rem 1.2rem;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center}
.modal-header h3{font-size:1rem;color:var(--gold-light)}.modal-close{background:none;border:none;color:var(--text-muted);font-size:1.3rem;cursor:pointer}
.modal-body{padding:1.2rem}
.timeline{display:flex;flex-direction:column;gap:.6rem;margin-top:.8rem}
.timeline-item{padding:.5rem .8rem;background:var(--surface2);border-radius:var(--radius-sm);border-left:3px solid var(--border-accent)}
.timeline-item .ti-date{font-size:.68rem;color:var(--text-muted)}.timeline-item .ti-text{font-size:.82rem;color:var(--text);margin-top:.15rem}
@media(max-width:640px){html{font-size:14px}.container{padding:.6rem}.form-grid{grid-template-columns:1fr}.form-group.span-2{grid-column:span 1}.stats-grid{grid-template-columns:1fr 1fr}.topbar{padding:.6rem 1rem}.tabs{gap:.15rem;padding:.2rem}.tab{padding:.5rem .7rem;font-size:.76rem}.item-row{padding:.7rem .8rem}}
/* ── Dashboard Performance ──── */
.kpi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.6rem;margin-bottom:1rem}
.kpi-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1rem;position:relative;overflow:hidden}
.kpi-card::before{content:'';position:absolute;top:0;left:0;right:0;height:2px;background:linear-gradient(90deg,var(--gold),transparent)}
.kpi-card .kpi-label{font-size:.68rem;color:var(--text-muted);text-transform:uppercase;letter-spacing:.8px}
.kpi-card .kpi-value{font-size:1.5rem;font-weight:700;margin-top:.15rem}
.kpi-card .kpi-delta{font-size:.7rem;margin-top:.2rem;display:inline-flex;align-items:center;gap:.2rem;padding:.1rem .4rem;border-radius:10px}
.kpi-card .kpi-delta.up{background:rgba(52,211,153,.12);color:var(--green)}
.kpi-card .kpi-delta.down{background:rgba(248,113,113,.12);color:var(--red)}
.kpi-card .kpi-delta.neutral{background:var(--surface3);color:var(--text-muted)}
.chart-container{position:relative;height:220px;margin-bottom:1rem}
.progress-bar-outer{height:10px;background:var(--surface2);border-radius:5px;overflow:hidden;margin-top:.3rem}
.progress-bar-inner{height:100%;border-radius:5px;transition:width .5s}
.ranking-row{display:flex;align-items:center;gap:.8rem;padding:.6rem .8rem;background:var(--surface2);border-radius:var(--radius-sm);margin-bottom:.4rem}
.ranking-pos{width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.75rem;font-weight:700;background:var(--surface3);color:var(--text-dim)}
.ranking-row:first-child .ranking-pos{background:linear-gradient(135deg,var(--gold),var(--gold-dim));color:var(--on-accent)}
/* ── DWV Construtoras ──── */
.dwv-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1.2rem;margin-bottom:.8rem;transition:border-color .2s}
.dwv-card:hover{border-color:var(--border-accent)}
.dwv-card-header{display:flex;align-items:center;gap:1rem}
.dwv-avatar{width:48px;height:48px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:1.1rem;font-weight:700;flex-shrink:0}
.dwv-avatar.no_site{background:rgba(52,211,153,.15);color:var(--green)}
.dwv-avatar.parcial{background:rgba(251,191,36,.15);color:var(--orange)}
.dwv-avatar.nao_cadastrada{background:var(--surface3);color:var(--text-muted)}
.dwv-card-info{flex:1;min-width:0}
.dwv-card-info .name{font-size:1rem;font-weight:700;color:var(--text)}
.dwv-card-info .meta{font-size:.78rem;color:var(--text-dim);margin-top:.2rem}
.dwv-status{display:inline-block;padding:.2rem .7rem;border-radius:20px;font-size:.72rem;font-weight:600}
.dwv-status.no_site{background:rgba(52,211,153,.15);color:var(--green)}
.dwv-status.parcial{background:rgba(251,191,36,.15);color:var(--orange)}
.dwv-status.nao_cadastrada{background:var(--surface3);color:var(--text-muted)}
.dwv-emp-list{margin-top:.8rem;display:flex;flex-direction:column;gap:.3rem}
.dwv-emp-row{display:flex;align-items:center;gap:.6rem;padding:.5rem .7rem;background:var(--surface2);border-radius:var(--radius-sm);font-size:.82rem}
.dwv-emp-row .dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}
.dwv-emp-row .dot.green{background:var(--green)}.dwv-emp-row .dot.gray{background:var(--text-muted)}
.dwv-progress-wrap{margin-top:.8rem}
.dwv-progress-outer{height:8px;background:var(--surface2);border-radius:4px;overflow:hidden;margin-top:.3rem}
.dwv-progress-inner{height:100%;border-radius:4px;background:var(--gold);transition:width .4s}
.dwv-log{max-height:200px;overflow-y:auto;background:var(--surface2);border-radius:var(--radius-sm);padding:.6rem .8rem;font-family:monospace;font-size:.72rem;color:var(--text-dim);margin-top:.6rem;line-height:1.5}
/* ── Agenda Calendar ──── */
.agenda-cal-header{display:flex;align-items:center;gap:.5rem;margin-bottom:.8rem;justify-content:center}
.agenda-cal-title{font-size:1rem;font-weight:700;color:var(--gold-light);min-width:180px;text-align:center}
.agenda-cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:2px}
.agenda-cal-weekday{text-align:center;font-size:.68rem;font-weight:600;color:var(--text-muted);text-transform:uppercase;padding:.4rem 0}
.agenda-cal-cell{position:relative;min-height:52px;background:var(--surface);border:1px solid var(--border);border-radius:6px;padding:.3rem;cursor:pointer;transition:all .15s;display:flex;flex-direction:column}
.agenda-cal-cell:hover{border-color:var(--border-accent);background:var(--surface2)}
.agenda-cal-cell.empty{background:transparent;border-color:transparent;cursor:default}
.agenda-cal-cell.today{border-color:var(--gold);background:rgba(200,169,110,.08)}
.agenda-cal-cell.today .agenda-cal-day{color:var(--gold);font-weight:700}
.agenda-cal-cell.selected{border-color:#6c5ce7;background:rgba(108,92,231,.1)}
.agenda-cal-cell.has-events{background:var(--surface2)}
.agenda-cal-day{font-size:.78rem;color:var(--text-dim);line-height:1}
.agenda-cal-dots{display:flex;gap:3px;margin-top:auto;flex-wrap:wrap}
.agenda-cal-dot{width:6px;height:6px;border-radius:50%;flex-shrink:0}
.agenda-cal-dot-more{font-size:.55rem;color:var(--text-muted);line-height:1}
@media(max-width:640px){#crm-agenda>div{grid-template-columns:1fr!important}.agenda-cal-cell{min-height:40px}}
/* ── Iris Chat ──── */
.iris-fab{position:fixed;bottom:1.5rem;right:1.5rem;z-index:300;width:56px;height:56px;border-radius:50%;background:linear-gradient(135deg,#6c5ce7,#a78bfa);color:#fff;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 20px rgba(108,92,231,.4);transition:all .3s}
.iris-fab:hover{transform:scale(1.08);box-shadow:0 6px 28px rgba(108,92,231,.55)}
.iris-fab-label{position:absolute;right:calc(100% + 8px);background:var(--surface);color:var(--text);padding:.3rem .7rem;border-radius:var(--radius-sm);font-size:.75rem;font-weight:600;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .2s;border:1px solid var(--border)}
.iris-fab:hover .iris-fab-label{opacity:1}
.iris-panel{position:fixed;bottom:0;right:1.5rem;z-index:350;width:min(420px,calc(100vw - 2rem));height:min(600px,calc(100vh - 5rem));background:var(--surface);border:1px solid var(--border);border-bottom:none;border-radius:var(--radius) var(--radius) 0 0;display:flex;flex-direction:column;transform:translateY(100%);opacity:0;pointer-events:none;transition:transform .35s cubic-bezier(.4,0,.2,1),opacity .25s;box-shadow:0 -10px 40px rgba(0,0,0,.5)}
.iris-panel.open{transform:translateY(0);opacity:1;pointer-events:all}
.iris-panel.iris-dragover{outline:2px dashed var(--gold);outline-offset:-4px}
.iris-header{padding:.8rem 1rem;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;background:rgba(108,92,231,.08);flex-shrink:0}
.iris-header-info{display:flex;align-items:center;gap:.6rem}
.iris-avatar{width:36px;height:36px;border-radius:50%;background:linear-gradient(135deg,#6c5ce7,#a78bfa);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:1rem}
.iris-name{font-weight:700;font-size:.9rem;color:#a78bfa}
.iris-status{font-size:.7rem;color:var(--text-muted)}
.iris-header-actions{display:flex;gap:.3rem}
.iris-header-actions button{background:none;border:none;color:var(--text-muted);cursor:pointer;padding:.3rem;border-radius:var(--radius-sm);transition:color .2s}
.iris-header-actions button:hover{color:var(--text)}
.iris-messages{flex:1;overflow-y:auto;padding:.8rem;display:flex;flex-direction:column;gap:.6rem}
.iris-msg{max-width:88%;padding:.7rem .9rem;border-radius:var(--radius);font-size:.85rem;line-height:1.5;word-break:break-word}
.iris-msg code{background:var(--surface3);padding:.1rem .3rem;border-radius:3px;font-size:.8rem}
.iris-user{align-self:flex-end;background:rgba(108,92,231,.2);border:1px solid rgba(108,92,231,.3);color:var(--text)}
.iris-assistant{align-self:flex-start;background:var(--surface2);border:1px solid var(--border);color:var(--text)}
.iris-actions{display:flex;flex-wrap:wrap;gap:.3rem;margin-top:.5rem}
.iris-action-chip{display:inline-flex;align-items:center;gap:.2rem;padding:.2rem .5rem;border-radius:12px;font-size:.7rem;font-weight:600}
.iris-action-chip.ok{background:rgba(52,211,153,.12);color:var(--green)}
.iris-action-chip.fail{background:rgba(248,113,113,.12);color:var(--red)}
.iris-typing .iris-dots{display:inline-flex;gap:4px;padding:4px 0}
.iris-typing .iris-dots span{width:7px;height:7px;background:var(--text-muted);border-radius:50%;animation:irisBounce 1.2s infinite}
.iris-typing .iris-dots span:nth-child(2){animation-delay:.2s}
.iris-typing .iris-dots span:nth-child(3){animation-delay:.4s}
@keyframes irisBounce{0%,80%,100%{transform:translateY(0)}40%{transform:translateY(-6px)}}
.iris-attachments{display:flex;gap:.4rem;padding:.4rem .8rem;border-top:1px solid var(--border);overflow-x:auto;flex-shrink:0}
.iris-thumb{position:relative;width:48px;height:48px;border-radius:var(--radius-sm);overflow:hidden;border:1px solid var(--border);flex-shrink:0}
.iris-thumb img{width:100%;height:100%;object-fit:cover}
.iris-thumb button{position:absolute;top:-2px;right:-2px;width:18px;height:18px;border-radius:50%;background:var(--red);color:#fff;border:none;cursor:pointer;font-size:.7rem;display:flex;align-items:center;justify-content:center;line-height:1}
.iris-input-bar{display:flex;align-items:flex-end;gap:.4rem;padding:.6rem .8rem;border-top:1px solid var(--border);flex-shrink:0;background:var(--surface)}
.iris-input-bar textarea{flex:1;resize:none;background:var(--surface2);border:1px solid var(--border);border-radius:var(--radius-sm);color:var(--text);padding:.55rem .8rem;font-size:.88rem;font-family:var(--font);outline:none;max-height:100px;line-height:1.4}
.iris-input-bar textarea:focus{border-color:#6c5ce7}
.iris-input-bar textarea::placeholder{color:var(--text-muted)}
.iris-attach-btn,.iris-send-btn,.iris-voice-btn{background:none;border:none;color:var(--text-muted);cursor:pointer;padding:.4rem;border-radius:var(--radius-sm);transition:all .2s;flex-shrink:0}
.iris-attach-btn:hover{color:var(--text)}
.iris-send-btn{color:#6c5ce7}.iris-send-btn:hover{color:#a78bfa}
.iris-voice-btn:hover{color:var(--red)}
.iris-voice-btn.recording{color:var(--red);animation:irisVoicePulse 1s infinite}
.iris-voice-btn.recording svg{filter:drop-shadow(0 0 4px rgba(248,113,113,.5))}
@keyframes irisVoicePulse{0%,100%{opacity:1}50%{opacity:.5}}
@media(max-width:640px){.iris-panel{right:0;width:100vw;height:calc(100vh - 3rem);border-radius:var(--radius) var(--radius) 0 0}.iris-fab{bottom:1rem;right:1rem;width:48px;height:48px}}
/* ── Responsivo: Tablet (641-1024) ──── */
@media(min-width:641px) and (max-width:1024px){.container{padding:1.2rem}.kanban-col{min-width:200px}.stats-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}.form-grid{grid-template-columns:1fr 1fr}.topbar-search{width:180px}}
/* ── Responsivo: Mobile (<=900) — sidebar vira drawer ──── */
@media(max-width:900px){
  .sidebar{position:fixed;top:0;left:0;transform:translateX(-100%);box-shadow:var(--shadow-lg)}
  .sidebar.sidebar-open{transform:translateX(0)}
  .sidebar-close{display:flex}
  .topbar-menu-btn{display:flex}
  .sidebar-overlay{display:block}
}
/* ── Responsivo: Mobile (<=640) ──── */
@media(max-width:640px){.container{padding:1rem}.topbar{padding:.6rem 1rem;gap:.5rem}.topbar-title{font-size:.95rem}.topbar-search{display:none}.icon-btn{width:32px;height:32px}.btn-sm{padding:.4rem .7rem;font-size:.72rem}.stats-grid{grid-template-columns:1fr 1fr;gap:.5rem}.stat-card{padding:.8rem}.stat-card .value{font-size:1.3rem}.kanban{flex-direction:column;overflow-x:hidden}.kanban-col{min-width:100%;max-width:100%}.modal{width:95vw;max-height:90vh}.section-body{padding:.8rem}.form-group input,.form-group select,.form-group textarea{padding:.6rem .7rem;font-size:.85rem}.login-box{padding:2rem 1.5rem}}
/* ── Responsivo: Extra pequeno (<=400) ──── */
@media(max-width:400px){.stats-grid{grid-template-columns:1fr}.kpi-grid{grid-template-columns:1fr 1fr}}
/* ── Responsivo: Desktop grande (>=1400) ──── */
@media(min-width:1400px){.container{max-width:1600px}.stats-grid{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}}
/* ── Page layout pattern ──── */
.page-header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-bottom:1.5rem}
.page-actions{display:flex;gap:.5rem;flex-wrap:wrap}
.btn{display:inline-flex;align-items:center;gap:.45rem;padding:.55rem 1rem;border-radius:var(--radius-sm);font-size:.82rem;font-weight:600;border:none;cursor:pointer;transition:all .2s;font-family:inherit;text-decoration:none}
.btn svg{width:15px;height:15px;flex-shrink:0}
.btn-ghost{background:var(--surface);color:var(--text-dim);border:1px solid var(--border)}
.btn-ghost:hover{background:var(--surface2);color:var(--text);border-color:var(--border-accent)}
.btn-gold{background:linear-gradient(135deg,var(--gold),var(--gold-dim));color:var(--on-accent);box-shadow:var(--shadow-sm)}
.btn-gold:hover{box-shadow:var(--shadow-md);transform:translateY(-1px)}
/* ── Filter bar ──── */
.filter-bar{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:.7rem 1rem;margin-bottom:1.2rem;display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.filter-pills{display:flex;gap:.3rem;flex-wrap:wrap}
.filter-pill{padding:.4rem .9rem;border-radius:20px;border:1px solid var(--border);background:var(--surface2);color:var(--text-dim);font-size:.78rem;cursor:pointer;display:inline-flex;align-items:center;gap:.4rem;font-family:inherit;font-weight:500;transition:all .15s}
.filter-pill:hover{background:var(--surface3);color:var(--text)}
.filter-pill.active{background:var(--gold);color:var(--on-accent);border-color:var(--gold)}
.pill-count{font-size:.68rem;font-weight:700;padding:.05rem .45rem;border-radius:10px;background:rgba(42,37,32,.1);min-width:20px;text-align:center}
.filter-pill.active .pill-count{background:rgba(255,255,255,.25);color:var(--on-accent)}
.filter-actions{display:flex;gap:.4rem;align-items:center;flex-wrap:wrap}
.search-input{position:relative;display:flex;align-items:center}
.search-input svg{position:absolute;left:.65rem;width:14px;height:14px;color:var(--text-muted);pointer-events:none}
.search-input input{padding:.5rem .7rem .5rem 1.95rem;background:var(--surface2);border:1px solid var(--border);border-radius:var(--radius-sm);color:var(--text);font-size:.82rem;outline:none;font-family:inherit;min-width:220px;transition:border-color .15s}
.search-input input:focus{border-color:var(--gold)}
.filter-actions select{padding:.5rem .7rem;background:var(--surface2);border:1px solid var(--border);border-radius:var(--radius-sm);color:var(--text);font-size:.82rem;font-family:inherit;cursor:pointer;outline:none}
.filter-actions select:focus{border-color:var(--gold)}
/* ── Cadastros cards ──── */
.card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:1rem}
.cad-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1rem;display:flex;gap:.9rem;transition:all .2s;position:relative}
.cad-card:hover{border-color:var(--gold);box-shadow:var(--shadow-md);transform:translateY(-1px)}
.cad-thumb{width:72px;height:72px;border-radius:var(--radius-sm);background:var(--surface3);flex-shrink:0;overflow:hidden;display:flex;align-items:center;justify-content:center;color:var(--text-muted)}
.cad-thumb img{width:100%;height:100%;object-fit:cover}
.cad-thumb-empty{font-size:1.6rem;opacity:.5}
.cad-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:.25rem}
.cad-head{display:flex;align-items:flex-start;justify-content:space-between;gap:.5rem}
.cad-name{font-size:.95rem;font-weight:600;color:var(--text);line-height:1.3;flex:1;min-width:0}
.cad-location{font-size:.78rem;color:var(--text-dim)}
.cad-meta{font-size:.72rem;color:var(--text-muted);display:flex;gap:.7rem;flex-wrap:wrap;margin-top:.15rem}
.cad-meta-item{display:inline-flex;align-items:center;gap:.25rem}
.cad-meta-item svg{width:12px;height:12px}
.cad-actions{display:flex;gap:.3rem;margin-top:.6rem;align-items:center}
.cad-actions .btn-sm{padding:.35rem .7rem;font-size:.72rem;display:inline-flex;align-items:center;gap:.3rem;text-decoration:none}
.cad-actions .btn-sm svg{width:13px;height:13px}
.cad-kebab{width:28px;height:28px;border-radius:6px;display:flex;align-items:center;justify-content:center;background:transparent;border:1px solid transparent;color:var(--text-muted);cursor:pointer}
.cad-kebab:hover{background:var(--surface2);color:var(--text);border-color:var(--border)}
.cad-kebab svg{width:14px;height:14px}
/* ── Status chips ──── */
.status-dot{display:inline-flex;align-items:center;gap:.3rem;padding:.15rem .55rem;border-radius:12px;font-size:.68rem;font-weight:600;flex-shrink:0;text-transform:capitalize}
.status-dot::before{content:'';width:6px;height:6px;border-radius:50%;background:currentColor;box-shadow:0 0 0 2px currentColor;opacity:.25}
.status-dot{position:relative}
.status-completo{background:var(--success-bg);color:var(--green)}
.status-parcial{background:var(--warning-bg);color:var(--orange)}
.status-pendente{background:var(--info-bg);color:var(--blue)}
.status-rejeitado{background:var(--danger-bg);color:var(--red)}
/* ── Dropdown ──── */
.dropdown{position:relative}
.dropdown-menu{position:absolute;top:calc(100% + 4px);right:0;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);box-shadow:var(--shadow-lg);min-width:200px;z-index:60;overflow:hidden;display:none}
.dropdown.open .dropdown-menu{display:block;animation:dropdownFade .15s ease}
@keyframes dropdownFade{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
.dropdown-item{display:flex;align-items:center;gap:.55rem;padding:.55rem .8rem;font-size:.82rem;color:var(--text);cursor:pointer;background:transparent;border:none;width:100%;text-align:left;font-family:inherit;text-decoration:none;transition:background .1s}
.dropdown-item:hover{background:var(--surface2)}
.dropdown-item.danger{color:var(--red)}
.dropdown-item.danger:hover{background:var(--danger-bg)}
.dropdown-item svg{width:14px;height:14px;color:var(--text-muted);flex-shrink:0}
.dropdown-item.danger svg{color:var(--red)}
/* ── Vitrine grid ──── */
.vitrine-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1rem}
.vit-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column;transition:all .2s;box-shadow:var(--shadow-sm)}
.vit-card:hover{border-color:var(--gold);box-shadow:var(--shadow-md);transform:translateY(-2px)}
.vit-thumb{height:170px;background:linear-gradient(135deg,var(--surface3),var(--surface2));display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}
.vit-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.vit-thumb-emoji{font-size:3rem;opacity:.35}
.vit-thumb-ph{width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:2.4rem;font-weight:700;letter-spacing:-.03em;color:var(--on-accent);background:linear-gradient(135deg,var(--gold),var(--gold-dim));text-shadow:0 2px 8px rgba(0,0,0,.15)}
.vit-thumb-ph[data-cons*="FG"]{background:linear-gradient(135deg,#5B7A9A,#3a5978)}
.vit-thumb-ph[data-cons*="Embraed"]{background:linear-gradient(135deg,#B8956A,#A07F56)}
.vit-thumb-ph[data-cons*="Procave"]{background:linear-gradient(135deg,#5A7D4F,#3a5530)}
.vit-thumb-badges{position:absolute;top:.55rem;left:.55rem;right:.55rem;display:flex;justify-content:space-between;gap:.4rem;pointer-events:none}
.vit-badge{display:inline-flex;align-items:center;gap:.25rem;padding:.2rem .55rem;border-radius:20px;font-size:.68rem;font-weight:700;backdrop-filter:blur(6px)}
.vit-badge svg{width:11px;height:11px}
.vit-badge-pub{background:rgba(90,125,79,.92);color:#fff}
.vit-badge-draft{background:rgba(196,139,60,.92);color:#fff}
.vit-avail{display:inline-flex;align-items:center;padding:.2rem .55rem;border-radius:20px;font-size:.68rem;font-weight:700;background:rgba(255,255,255,.92);color:var(--text)}
.vit-card-draft{opacity:.78}
.vit-card-draft:hover{opacity:1}
.vit-body{padding:1rem;display:flex;flex-direction:column;gap:.35rem;flex:1}
.vit-construtora{font-size:.68rem;font-weight:700;color:var(--gold);letter-spacing:.1em;text-transform:uppercase}
.vit-name{font-size:1.05rem;font-weight:700;color:var(--text);line-height:1.3;letter-spacing:-.01em}
.vit-loc{font-size:.78rem;color:var(--text-dim);display:flex;align-items:center;gap:.3rem}
.vit-loc svg{width:12px;height:12px}
.vit-price{font-size:1rem;font-weight:700;color:var(--gold-dim);margin-top:.3rem}
.vit-price-empty{color:var(--text-muted);font-weight:500;font-style:italic}
.vit-meta{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.2rem;font-size:.72rem;color:var(--text-dim)}
.vit-meta span{display:inline-flex;align-items:center;gap:.25rem}
.vit-meta svg{width:12px;height:12px}
.vit-actions{display:flex;gap:.4rem;margin-top:auto;padding-top:.8rem}
.vit-actions .btn{flex:1;padding:.5rem .7rem;font-size:.78rem}
/* ── Share modal ──── */
.share-channels{display:grid;grid-template-columns:repeat(3,1fr);gap:.4rem;margin-bottom:1rem}
.share-channel-btn{display:flex;flex-direction:column;align-items:center;gap:.3rem;padding:.8rem .5rem;background:var(--surface2);border:2px solid var(--border);border-radius:var(--radius-sm);cursor:pointer;color:var(--text-dim);font-family:inherit;transition:all .15s;font-size:.78rem;font-weight:500}
.share-channel-btn:hover{border-color:var(--border-accent);color:var(--text)}
.share-channel-btn.active{background:var(--gold-light);border-color:var(--gold);color:var(--gold-dim);font-weight:600}
.share-channel-btn svg{width:20px;height:20px}
[data-theme="dark"] .share-channel-btn.active,[data-theme="neon"] .share-channel-btn.active{background:rgba(200,169,110,.12);color:var(--gold-light)}
.share-form .form-group{margin-bottom:.7rem}
/* ── Theme Selector ──── */
.theme-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.8rem}
.theme-card{background:var(--surface2);border:2px solid var(--border);border-radius:var(--radius);padding:.8rem;cursor:pointer;transition:all .2s;text-align:left;font-family:inherit;color:var(--text)}
.theme-card:hover{border-color:var(--border-accent);transform:translateY(-2px)}
.theme-card.active{border-color:var(--gold);box-shadow:0 0 0 1px var(--gold) inset}
[data-theme="neon"] .theme-card.active{box-shadow:0 0 0 1px var(--gold) inset,var(--glow)}
.theme-preview{display:flex;gap:4px;border-radius:var(--radius-sm);padding:8px;margin-bottom:.6rem;height:56px}
.theme-preview span{flex:1;border-radius:4px}
.theme-preview-cream{background:#FBF8F3;border:1px solid #E8DFD0}
.theme-preview-cream span:nth-child(1){background:#B8956A}
.theme-preview-cream span:nth-child(2){background:#F5F0E8}
.theme-preview-cream span:nth-child(3){background:#FFFFFF;border:1px solid #E8DFD0}
.theme-preview-dark{background:#0a0a0f}
.theme-preview-dark span:nth-child(1){background:#c8a96e}
.theme-preview-dark span:nth-child(2){background:#1a1a28}
.theme-preview-dark span:nth-child(3){background:#222236}
.theme-preview-light{background:#f5f5f0}
.theme-preview-light span:nth-child(1){background:#a88a52}
.theme-preview-light span:nth-child(2){background:#e8e3d7}
.theme-preview-light span:nth-child(3){background:#ffffff;border:1px solid #d8d2c2}
.theme-preview-neon{background:#05050a;box-shadow:inset 0 0 15px rgba(122,63,255,.3)}
.theme-preview-neon span:nth-child(1){background:#00ffd5;box-shadow:0 0 8px #00ffd5}
.theme-preview-neon span:nth-child(2){background:#7a3fff;box-shadow:0 0 8px #7a3fff}
.theme-preview-neon span:nth-child(3){background:#ff3fa0;box-shadow:0 0 8px #ff3fa0}
.theme-name{font-weight:700;font-size:.9rem;color:var(--text)}
.theme-desc{font-size:.72rem;color:var(--text-dim);margin-top:.15rem}