.apn-customizer-overlay{position:fixed;inset:0;z-index:99999;background:#f5f6f8;color:#17191d;overflow:auto}.apn-customizer{max-width:1180px;margin:auto;padding:28px}.apn-customizer>header{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;margin-bottom:24px}.apn-customizer header small{font-weight:800;letter-spacing:.15em;color:#17191d}.apn-customizer header h1{margin:6px 0}.apn-customizer header p{margin:0;color:#6b7280}.apn-customizer-close,.apn-clear{border:1px solid #d2d5db;background:#fff;color:#17191d;border-radius:10px;padding:11px 16px;font-weight:700}.apn-customizer-grid{display:grid;grid-template-columns:minmax(340px,.9fr) minmax(400px,1.1fr);gap:30px;align-items:start}.apn-phone-stage{display:flex;justify-content:center;position:sticky;top:24px;padding:28px;border:1px solid #dfe2e7;border-radius:24px;background:linear-gradient(145deg,#fff,#e9ecf1)}.apn-phone{width:330px;height:650px;padding:13px;border-radius:38px;background:#101216;box-shadow:0 24px 55px rgba(0,0,0,.24);position:relative}.apn-phone>i{position:absolute;z-index:2;width:76px;height:7px;border-radius:9px;background:#333842;top:12px;left:50%;transform:translateX(-50%)}.apn-phone-scroll{height:100%;overflow:auto;border-radius:28px;padding:34px 18px 28px;background:#fff;color:#17191d}.apn-phone-scroll>small{letter-spacing:.16em;color:#7350c9;font-weight:800}.apn-phone-scroll>h2{margin:8px 0 5px;font-size:21px}.apn-phone-scroll>p{font-size:12px;color:#6b7280}.apn-phone-scroll>nav{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:18px 0 14px}.apn-phone-scroll>nav button{border:1px solid #dddfe5;background:#f5f6f8;padding:9px;border-radius:10px}.apn-phone-scroll>nav button.active{background:#14161a;color:#fff}.apn-preview-body h3{font-size:16px}.apn-preview-body>div{padding:13px 11px;margin:8px 0;border:1px solid #e3e5e8;border-radius:10px;font-size:12px}.apn-preview-fixed{margin-top:18px;padding:14px;border-radius:12px;background:#14161a;color:#fff;text-align:center;font-weight:800;font-size:12px}.apn-editor{border:1px solid #dfe2e7;border-radius:20px;background:#fff;padding:22px;box-shadow:0 12px 35px rgba(15,23,42,.06)}.apn-editor label{display:grid;gap:7px;margin:17px 0;font-weight:700}.apn-editor input:not([type=checkbox]):not([type=color]),.apn-editor select{width:100%;padding:12px;border:1px solid #ccd0d7;border-radius:10px;background:#fff;color:#17191d;font:inherit}.apn-editor small{font-weight:400;color:#69707c}.apn-slot-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.apn-slot-tabs button{padding:10px 6px;border:1px solid #d6d9df;border-radius:10px;background:#f5f6f8}.apn-slot-tabs button.active{background:#15171b;color:#fff}.apn-switch{display:flex!important;align-items:center;gap:10px!important;padding:12px;border-radius:10px;background:#f3f0fb}.apn-switch input{width:18px;height:18px}.apn-colors{display:grid;grid-template-columns:1fr 1fr;gap:12px}.apn-colors label{margin:0}.apn-colors input{width:100%;height:46px;border:0;padding:0;background:transparent}.apn-editor-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.apn-publish{border:0;border-radius:10px;padding:11px 16px;background:#17191d;color:#fff;font-weight:800}.apn-notice{padding:11px 13px;border-radius:10px;background:#fff0f0;color:#a12626;font-weight:700}.apn-notice:empty{display:none}.apn-notice.success{background:#e9f8ef;color:#176b39}.apn-custom-patient-actions,.apn-preview-custom{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin:18px 0}.apn-custom-patient-actions button,.apn-preview-custom button{border:0;border-radius:14px;padding:15px 18px;display:flex;align-items:center;justify-content:center;gap:9px;font-weight:800;font-size:14px;box-shadow:0 8px 20px rgba(0,0,0,.12);cursor:pointer}.apn-preview-custom{grid-template-columns:1fr;margin-top:10px}.apn-preview-custom button{padding:12px;font-size:12px}
html[data-theme=dark] .apn-customizer-overlay{background:#0f1114;color:#f3f4f6}html[data-theme=dark] .apn-customizer header p{color:#a3a7af}html[data-theme=dark] .apn-editor{background:#15171b;border-color:#30343b}html[data-theme=dark] .apn-editor input:not([type=checkbox]):not([type=color]),html[data-theme=dark] .apn-editor select{background:#0f1114;color:#eee;border-color:#3b4049}html[data-theme=dark] .apn-customizer-close,html[data-theme=dark] .apn-clear{background:#202329;color:#eee;border-color:#3b4049}html[data-theme=dark] .apn-slot-tabs button{background:#202329;color:#eee;border-color:#3b4049}html[data-theme=dark] .apn-slot-tabs button.active{background:#eee;color:#111}html[data-theme=dark] .apn-switch{background:#242031}
@media(max-width:900px){.apn-customize-launch{display:none!important}.apn-customizer-grid{grid-template-columns:1fr}.apn-phone-stage{position:static}}@media(max-width:560px){.apn-customizer{padding:14px}.apn-slot-tabs,.apn-colors{grid-template-columns:1fr}.apn-editor-actions{flex-direction:column}.apn-custom-patient-actions{grid-template-columns:1fr}}

/* APN V143 — identidade automática e personalizador disponível no desktop retrato. */
.apn-custom-patient-actions button,.apn-preview-custom button{background:var(--brand-primary,#17191d)!important;color:#fff!important;box-shadow:0 8px 20px color-mix(in srgb,var(--brand-primary,#17191d) 25%,transparent)!important}
.apn-color-note{margin:14px 0;padding:11px 13px;border-radius:10px;background:#f4f1fb;color:#5f6470;font-size:13px}
html[data-theme=dark] .apn-color-note{background:#242031;color:#c9cbd0}
@media(min-width:561px) and (max-width:900px){.apn-customize-launch{display:inline-flex!important}}

/* APN V145 — acessos personalizados no mesmo padrão dos cards de download. */
.apn-editor textarea{width:100%;padding:12px;border:1px solid #ccd0d7;border-radius:10px;background:#fff;color:#17191d;font:inherit;resize:vertical}
.apn-custom-patient-actions,.apn-preview-custom{grid-template-columns:1fr;gap:16px}
.apn-custom-patient-card{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;margin:0;padding:28px 30px;border:1.5px solid #34383d;border-radius:24px;background:#fff;color:#17191d;box-shadow:none}
.apn-custom-patient-card h2{margin:0 0 10px;font-size:clamp(22px,3.5vw,32px);line-height:1.15;color:#17191d}
.apn-custom-patient-card p{margin:0;color:#6b7178;font-size:clamp(16px,2.6vw,23px);line-height:1.48}
.apn-custom-patient-card>button{justify-self:stretch;width:100%;min-height:52px;margin-top:2px;padding:13px 18px!important;border:0!important;border-radius:14px!important;background:#111318!important;color:#fff!important;font-size:clamp(15px,2.4vw,20px)!important;font-weight:700!important;box-shadow:0 8px 18px rgba(0,0,0,.13)!important}
.apn-preview-custom{gap:10px}
.apn-preview-custom .apn-custom-patient-card{gap:9px;padding:14px;border-radius:14px}
.apn-preview-custom .apn-custom-patient-card>.patient-download-icon{display:none}
.apn-preview-custom .apn-custom-patient-card h2{margin-bottom:5px;font-size:14px}
.apn-preview-custom .apn-custom-patient-card p{font-size:11px;line-height:1.35}
.apn-preview-custom .apn-custom-patient-card>button{min-height:38px;padding:9px 11px!important;border-radius:10px!important;font-size:11px!important}
html[data-theme=dark] .apn-editor textarea{background:#0f1114;color:#eee;border-color:#3b4049}
html[data-theme=dark] .apn-custom-patient-card{background:#141619;color:#f4f5f6;border-color:#777b82}
html[data-theme=dark] .apn-custom-patient-card h2{color:#f4f5f6}
html[data-theme=dark] .apn-custom-patient-card p{color:#b2b6bc}
@media(max-width:560px){.apn-custom-patient-card{padding:24px 20px;border-radius:22px}.apn-custom-patient-card>button{min-height:50px}}

/* APN V146 — card personalizado herda o padrão visual nativo da plataforma. */
.apn-custom-patient-actions .apn-custom-patient-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:18px;margin:0;padding:22px 24px;border:1px solid #484d52;border-radius:21px;background:#fff;color:#17191d;box-shadow:none}
.apn-custom-patient-actions .apn-custom-patient-card>div{min-width:0}
.apn-custom-patient-actions .apn-custom-patient-card h2{margin:0;color:#17191d;font-size:19px;line-height:1.25}
.apn-custom-patient-actions .apn-custom-patient-card p{max-width:720px;margin:7px 0 0;color:#687079;font-size:13px;line-height:1.5}
.apn-custom-patient-actions .apn-custom-patient-card>button{display:inline-flex;align-items:center;justify-content:center;justify-self:auto;width:auto;min-height:0;margin:0;padding:13px 16px!important;border:1px solid var(--brand-primary,#17191d)!important;border-radius:13px!important;background:var(--brand-gradient,linear-gradient(135deg,var(--brand-primary,#17191d),var(--brand-primary,#17191d)))!important;color:#fff!important;font-size:inherit!important;font-weight:850!important;white-space:nowrap;box-shadow:0 6px 18px color-mix(in srgb,var(--brand-primary,#17191d) 24%,transparent)!important}
.apn-custom-patient-actions .apn-custom-patient-card>button:hover{filter:brightness(1.08)}
html[data-theme=dark] .apn-custom-patient-actions .apn-custom-patient-card{background:linear-gradient(135deg,#202326,#111315);color:#f5f6f7}
html[data-theme=dark] .apn-custom-patient-actions .apn-custom-patient-card h2{color:#f5f6f7}
html[data-theme=dark] .apn-custom-patient-actions .apn-custom-patient-card p{color:#aeb3b8}
@media(max-width:760px){.apn-custom-patient-actions .apn-custom-patient-card{grid-template-columns:1fr;padding:19px 17px;gap:13px}.apn-custom-patient-actions .apn-custom-patient-card>.patient-download-icon{display:none}.apn-custom-patient-actions .apn-custom-patient-card h2{font-size:17px}.apn-custom-patient-actions .apn-custom-patient-card p{font-size:13px}.apn-custom-patient-actions .apn-custom-patient-card>button{width:100%;min-height:0;padding:13px 16px!important;font-size:inherit!important}}

/* Acessos personalizados acompanham a marca e a prévia respeita a tela. */
html[data-theme="light"] .apn-custom-patient-actions .apn-custom-patient-card>button,html[data-theme="dark"] .apn-custom-patient-actions .apn-custom-patient-card>button,.apn-preview-custom .apn-custom-patient-card>button{background:var(--brand-primary,var(--primary,#111214))!important;background-color:var(--brand-primary,var(--primary,#111214))!important;background-image:none!important;border-color:var(--brand-primary,var(--primary,#111214))!important;color:#fff!important}.apn-phone,.apn-phone-scroll,.apn-phone-scroll *{box-sizing:border-box}.apn-phone-scroll{overflow-x:hidden;overflow-y:auto}.apn-phone-scroll>small{color:var(--brand-primary,var(--primary,#111214))!important}.apn-phone-scroll>nav button.active,.apn-preview-fixed,.apn-slot-tabs button.active,.apn-publish{background:var(--brand-primary,var(--primary,#111214))!important;color:#fff!important}.apn-preview-custom,.apn-preview-custom .apn-custom-patient-card,.apn-preview-custom .apn-custom-patient-card>div,.apn-preview-custom .apn-custom-patient-card>button{min-width:0!important;max-width:100%!important}.apn-preview-custom{display:grid!important;grid-template-columns:minmax(0,1fr)!important;overflow:hidden}.apn-preview-custom .apn-custom-patient-card{display:grid!important;width:100%!important;grid-template-columns:minmax(0,1fr)!important;gap:9px!important;padding:14px!important;overflow:hidden}.apn-preview-custom .apn-custom-patient-card>.patient-download-icon{display:none!important}.apn-preview-custom .apn-custom-patient-card h2,.apn-preview-custom .apn-custom-patient-card p{overflow-wrap:anywhere;word-break:break-word}.apn-preview-custom .apn-custom-patient-card>button{display:flex!important;width:100%!important;justify-content:center!important;white-space:normal!important;overflow-wrap:anywhere;text-align:center}html[data-theme="light"] .apn-phone-scroll{background:#fff!important;color:#17191d!important}html[data-theme="light"] .apn-preview-custom .apn-custom-patient-card{background:#fff!important;color:#17191d!important}html[data-theme="light"] .apn-preview-custom .apn-custom-patient-card h2{color:#17191d!important}html[data-theme="light"] .apn-preview-custom .apn-custom-patient-card p{color:#687079!important}html[data-theme="dark"] .apn-phone-stage{background:linear-gradient(145deg,#202226,#141619)!important;border-color:#34373d!important}html[data-theme="dark"] .apn-phone-scroll{background:#0d0e10!important;color:#f4f5f6!important}html[data-theme="dark"] .apn-phone-scroll>h2,html[data-theme="dark"] .apn-preview-body h3{color:#f4f5f6!important}html[data-theme="dark"] .apn-phone-scroll>p{color:#aeb3b8!important}html[data-theme="dark"] .apn-phone-scroll>nav button:not(.active),html[data-theme="dark"] .apn-preview-body>div{background:#15171a!important;color:#f4f5f6!important;border-color:#34373d!important}html[data-theme="dark"] .apn-preview-custom .apn-custom-patient-card{background:#15171a!important;color:#f4f5f6!important;border-color:#34373d!important}html[data-theme="dark"] .apn-preview-custom .apn-custom-patient-card h2{color:#f4f5f6!important}html[data-theme="dark"] .apn-preview-custom .apn-custom-patient-card p{color:#aeb3b8!important}
