/* Functional preview wrapper. NOVA's own components, styles and renderers remain underneath. */
:root{font-size:16px;--preview-ease:cubic-bezier(.23,1,.32,1)}*{box-sizing:border-box}html{height:100%}body{font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;display:flex;flex-direction:column;height:100dvh;min-height:0;align-items:stretch;justify-content:flex-start;padding:0;overflow:hidden;color:var(--text-main);background:var(--bg-page)}button,input,select,textarea{font:inherit}button{touch-action:manipulation;cursor:pointer}button:active,[role=button]:active{transform:scale(.98);transition:transform 120ms ease-out}button,a,[role=button]{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,[role=button]:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--accent);outline-offset:3px}[hidden],.demo-view[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.preview-header{padding:14px 16px;display:flex;align-items:center;gap:8px;min-height:56px;flex-shrink:0;background:rgba(246,248,252,.94);backdrop-filter:blur(18px);border-bottom:1px solid #1420330d;font-size:13px;letter-spacing:.01em}.preview-header strong{font-weight:650}.preview-indicator{width:7px;height:7px;border-radius:50%;background:#24936b}#reset-preview{margin-left:auto;min-height:32px;padding:4px 9px;background:transparent;border:0;color:#64748b;font-size:12px;text-decoration:underline;text-underline-offset:3px}#demo-main{flex:1;min-height:0;overflow:auto;overscroll-behavior-y:contain;scroll-behavior:auto;scrollbar-width:thin;scrollbar-color:#bac1ce transparent}.demo-view{padding:14px;min-height:100%}.preview-dock{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;padding:10px 9px 12px;flex-shrink:0;background:rgba(247,249,252,.94);border-top:1px solid #fff;box-shadow:0 -5px 20px #1a253d08;backdrop-filter:blur(18px)}.preview-dock button{border:0;background:transparent;border-radius:12px;min-height:44px;padding:9px 3px;color:#52627b;font-size:13px;font-weight:600}.preview-dock button[aria-current=page]{background:var(--accent);color:white}.vcard-profile{max-width:420px;margin:0 auto;border-radius:26px;animation:none;box-shadow:0 15px 30px #2634500c}.vcard-content{padding-left:20px;padding-right:20px}.vcard-name{font-size:28px!important;line-height:1.1}.vcard-role{font-size:16px!important}.vcard-desc{font-size:15px!important}.vcard-img{width:116px!important;height:116px!important}.vcard-cover{height:142px!important}.vcard-list li,.vcard-link{font-size:15px!important}.vcard-link span{overflow-wrap:anywhere}.whatsapp-btn,.action-button,.btn-share{font-size:16px!important;min-height:48px}.social-list a{width:44px;height:44px}.profile-quick{display:grid;grid-template-columns:1fr 2fr;max-width:420px;margin:18px auto 4px;gap:10px}.profile-quick button{background:var(--accent);color:white;border:0;border-radius:14px;min-height:50px;padding:10px;font-size:14px;font-weight:650}.profile-quick button:last-child{background:#ffae52;color:#251d16}#crmEntry strong{display:block;font-size:14px}#crmEntry small{display:block;font-size:12px;margin-top:4px}#crmEntry button{font-family:inherit}.nova-sheet-bar{display:flex;align-items:center;gap:12px;margin-bottom:16px}.nova-sheet-bar small{display:block;font-size:13px;margin-top:2px;color:var(--text-muted)}.nova-sheet-bar strong{font-size:17px}.nova-sheet-back{font-size:14px}.crm-tab{font-size:14px;min-height:44px}.crm-tab.active{color:#fff}.crm-tab.active .crm-badge{background:white;color:var(--accent)}.crm-tab:hover:not(.active){background:rgba(0,0,0,.04);color:var(--text-main)}.crm-p{animation:none}.crm-chip{font-size:12px;min-height:40px}.crm-action{min-width:44px;height:44px;font-size:15px}.crm-pill{font-size:12px}.crm-contact-card{padding:14px}.crm-score{font-size:14px;width:42px;height:42px}.crm-lbl{font-size:12px;line-height:1.6}.crm-inp{font-size:16px;min-height:46px;background:#ffffff8c}#crmPanel{overflow:visible}#crmPanel>div:first-of-type{position:sticky;top:-14px;z-index:1;backdrop-filter:blur(16px);background:rgba(238,242,248,.94)!important;padding:7px!important}#crmC>div:nth-child(1){flex-wrap:wrap;gap:10px}#crmC>div:first-child button{min-height:40px!important;font-size:12px!important}#crmSI{font-size:16px!important;min-height:46px}.crm-contact-card [style*="font-size:10px"],.crm-contact-card [style*="font-size:11px"],#crmMC [style*="font-size:9px"],#crmMC [style*="font-size:11px"]{font-size:12px!important}#crmMC [style*="font-size:.72rem"]{font-size:13px!important}#crmMC [style*="font-size:1.6rem"]{font-size:30px!important}#crmMC [style*="font-size:.7rem"]{font-size:12px!important}#crmMC [style*="font-size:9px"]{white-space:normal!important}#crmMC>div:nth-child(2){grid-template-columns:repeat(2,1fr)!important}#crmE>button{color:#fff!important}
#view-qr{display:flex;flex-direction:column;align-items:center;justify-content:center}#novaQrModal{width:100%;display:block!important}#novaQrModal>div{width:100%!important;background:rgba(255,255,255,.75)!important;box-shadow:0 12px 24px #1725360d!important;margin:auto}#novaQrBox{width:min(220px,52vw);height:auto}#novaQrBox svg{width:100%;height:auto;display:block;background:#fff}.feature-note{font-size:13px;line-height:1.7;color:var(--text-muted);text-align:center;padding:0 8px;margin:20px 0}#novaQrModal button{font-size:14px!important;min-height:44px}#novaQrModal>div>div:nth-child(2)>div:first-child{padding:18px!important;background:#fff!important}
#exchange-view .scanner-modal-content{width:100%;max-width:480px;max-height:none;overflow:visible;transform:none;opacity:1;margin:auto;box-shadow:none;border-radius:20px}#exchange-view .modal-header{padding:18px}#exchange-view .modal-header h3{font-size:21px}#exchange-view .modal-body{padding:18px;overflow:visible;max-height:none}.btn-scan-camera{min-height:110px;padding:16px;cursor:pointer}.btn-scan-camera span{font-size:15px}.nova-exchange-label,.divider{font-size:12px!important}.btn-nova{cursor:pointer;min-height:48px}.btn-nova span{font-size:13px}.manual-input{font-size:16px!important;min-height:46px}.phone-prefix{font-size:14px;cursor:default;min-width:58px}.btn-send-manual{min-height:50px;font-size:15px}.phone-row{margin-bottom:12px}#view-acceso{display:flex;align-items:center;justify-content:center}#authMdl{width:100%}.nova-auth-card{width:100%;max-width:410px;background:rgba(255,255,255,.8);box-shadow:0 20px 45px #1e293b10;margin:auto;padding:24px}.nova-auth-primary{background:var(--accent);color:white;font-size:15px;min-height:48px;box-shadow:none}.nova-auth-secondary{font-size:14px;min-height:44px}.nova-auth-message{font-size:15px;line-height:1.7}.nova-auth-title{font-size:24px}.nova-auth-message strong{font-size:14px}.nova-auth-primary:hover{box-shadow:none;transform:none;filter:none}
#contact-dialog{width:min(560px,calc(100% - 18px));max-height:calc(100dvh - 30px);border:1px solid #ffffffc0;border-radius:23px;padding:0;background:#eef2f7;color:var(--text-main);box-shadow:0 25px 60px #16213535;overflow:auto}#contact-dialog::backdrop{background:#15223880;backdrop-filter:blur(6px)}#contact-form{padding:20px}#contact-form label{display:block}#contact-form .crm-grid2{grid-template-columns:1fr}.contact-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:18px}.contact-dialog-header h2{font-size:23px;margin:0;letter-spacing:-.02em}.dismiss-contact{width:44px;height:44px;font-size:28px;background:#fff6;border:0;border-radius:50%;color:var(--text-main)}.contact-form-actions{display:flex;gap:12px;justify-content:flex-end;position:sticky;bottom:-20px;background:#eef2f7;padding:15px 0 2px}.contact-form-actions button{border:1px solid var(--border-color);padding:12px 15px;min-height:46px;border-radius:12px;font-size:14px;color:var(--text-main);background:#fff}.contact-form-actions .primary{background:var(--accent);color:white;border-color:var(--accent)}#delete-contact{color:#b22d3c}#contact-error{font-size:14px;color:#a8283b;min-height:0}#preview-feedback{position:absolute;bottom:78px;left:14px;right:14px;background:#16232beb;color:#fff;border:1px solid #ffffff20;border-radius:14px;box-shadow:0 10px 30px #0002;padding:12px 15px;z-index:11000;font-size:13px;line-height:1.5;display:none;align-items:center;gap:8px;backdrop-filter:blur(12px)}#preview-feedback.visible{display:flex;animation:feedback-in 160ms ease-out}#undo-preview{padding:7px;background:transparent;color:#f5d4a1;border:0;font-size:13px;margin-left:auto;min-height:36px;font-weight:650}@keyframes feedback-in{from{opacity:0}to{opacity:1}}
@media(min-width:600px){.demo-view{padding:24px}.nova-sheet-bar,#crmPanel{max-width:720px;margin-left:auto;margin-right:auto}.vcard-profile{max-width:420px}#contact-form .crm-grid2{grid-template-columns:1fr 1fr}#view-crm .crm-contact-card{padding:18px}#view-crm .crm-p{max-width:700px;margin:auto}.preview-dock{padding-left:15%;padding-right:15%}.preview-header{padding-left:25px;padding-right:25px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;scroll-behavior:auto!important}button:active,[role=button]:active{transform:none}#preview-feedback.visible{animation:feedback-in 100ms linear!important}.crm-tab{transition:background 100ms linear,color 100ms linear}}
@media(prefers-reduced-transparency:reduce){.preview-header,.preview-dock,.nova-auth-card,#crmPanel>div:first-of-type{background:#f4f6fa!important;backdrop-filter:none}.vcard-profile{background:#fff}#preview-feedback{background:#16232b;backdrop-filter:none}}
@media(prefers-contrast:more){:root{--text-muted:#334155;--border-color:#8290a4;--card-bg:#fff;--input-bg:#fff}.preview-header,.preview-dock{background:#fff;border-color:#667085}.crm-pill{background:#20242e;color:#fff}.crm-inp{border-color:#64748b}}

/* Keep public-profile links readable in the app’s light theme. */
.vcard-link{background:#fff9;color:var(--text-main)}.vcard-link:hover,.vcard-link:active{background:#fff}.vcard-link span{white-space:normal}.preview-header,#demo-main,.preview-dock{width:100%}#reset-preview{min-height:44px}.crm-chip{min-height:44px}#crmC>div:first-child button{min-height:44px!important}#crmC>div:first-child button:first-child{color:#fff!important}#undo-preview{min-height:44px}.nova-sheet-back{min-height:44px}.crm-tab:active{transform:scale(.98)}

#crmMC [style*="font-size:1.6rem"]{color:var(--accent)!important}#crmMC [style*="font-size:1rem"]{color:#34445c!important}.metric-action{cursor:pointer;transition:background 140ms ease-out,border-color 140ms ease-out}.metric-action:hover{background:#fff!important;border-color:var(--accent)!important}.metric-action:active{transform:scale(.985)}#crmMC>div:first-child>div:last-child>div:last-child::after{content:' ↗'}#crmMC>div:nth-child(2)>div:not(:last-child)>div:last-child::after{content:' ↗'}

.embedded-preview .preview-header{display:none}

/* The preview uses Luxury Steel's own identity. */
.vcard-profile .vcard-btn-primary,.vcard-profile .btn-whatsapp{background:#222523;color:#fff;box-shadow:none}.vcard-role{color:#222523}.vcard-cover{background-color:#202321}.crm-field:focus{outline-color:#806b42}

.whatsapp-btn,.whatsapp-btn:hover,.multi-public-whatsapp{background:#222523;color:#fff;box-shadow:none}.nova-auth-primary{background:#222523;color:#fff;box-shadow:none;border-color:#222523}

@media(max-width:420px){.vcard-link{font-size:13px;padding:15px 12px;gap:10px}.vcard-link svg{width:18px;min-width:18px}}

/* Color choices belong to the vCard, leaving the CRM and QR readable. */
#view-perfil {
    --card-bg: #fffefb;
    --accent: #222523;
    --accent-rgb: 34,37,35;
    --profile-button: #222523;
    --btn-text: #ffffff;
    --icon-bg: #f2f0e9;
    --border-color: #e6e2d8;
}
#view-perfil[data-profile-color="yellow"] {
    --card-bg: #fffdf6;
    --accent: #805b0c;
    --accent-rgb: 128,91,12;
    --profile-button: #f9c741;
    --btn-text: #272216;
    --icon-bg: #fff0be;
    --border-color: #ecdfb7;
}
#view-perfil[data-profile-color="red"] {
    --card-bg: #fffafa;
    --accent: #b12d35;
    --accent-rgb: 177,45,53;
    --profile-button: #b12d35;
    --btn-text: #ffffff;
    --icon-bg: #f9e9e8;
    --border-color: #eedbda;
}
.profile-theme-picker {max-width:420px;margin:0 auto 16px;color:#222523}
.profile-theme-picker p {margin:0 0 9px;font-size:13px;font-weight:600}
.profile-theme-options {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.profile-theme-options button {
    display:flex;align-items:center;justify-content:center;gap:7px;
    min-height:44px;padding:7px 5px;border:1px solid #d8d6cc;border-radius:24px;
    background:#faf9f5;color:#353731;font-size:13px;font-weight:500;
}
.profile-theme-options button[aria-pressed="true"] {border-color:#353731;box-shadow:inset 0 0 0 1px #353731;background:#fff;font-weight:650}
.profile-theme-options button:focus-visible {outline-color:#222523}
.profile-color-dot {width:19px;height:19px;flex-shrink:0;border-radius:50%;background:#f0ede3;box-shadow:inset 0 0 0 1px #0002}
[data-profile-color-choice="yellow"] .profile-color-dot {background:#f9c741}
[data-profile-color-choice="red"] .profile-color-dot {background:#b12d35}
#view-perfil .vcard-role {color:var(--accent)}
#view-perfil .whatsapp-btn,
#view-perfil .btn-primary,
#view-perfil .profile-quick button:first-child {
    background:var(--profile-button);color:var(--btn-text);box-shadow:none;
}
#view-perfil .profile-quick button:last-child {background:var(--icon-bg);color:var(--accent);border:1px solid var(--border-color)}
#view-perfil .btn-share {color:var(--accent)}
