/* Editor da bio — usa os mesmos tokens e componentes do painel. */
.be-dialog{color-scheme:dark;width:min(1080px,96vw)!important;max-width:1080px!important;height:min(780px,92dvh);max-height:92dvh;padding:0!important;border:1px solid var(--ring);border-radius:18px!important;background:#121419;color:var(--text);box-shadow:var(--raise),0 32px 100px #0009;overflow:hidden}
.be-dialog form{display:flex;flex-direction:column;height:100%;min-height:0}
.be-dialog form>.modal-head{flex-shrink:0;min-height:60px;padding:12px 20px;margin:0;border-bottom:1px solid var(--ring)}
.be-dialog .modal-head h2{font-size:17px;letter-spacing:-.3px}.be-dialog .modal-head .icon-btn{margin-left:auto}
.be-topline{display:flex;align-items:center;gap:14px;flex-shrink:0;padding:9px 20px;min-height:38px;border-bottom:1px solid var(--ring);background:#101216;font-size:11px;color:var(--muted)}
#be-save-state{margin-left:auto}.be-status{display:inline-flex;align-items:center;gap:7px;font-weight:600;color:var(--muted)}.be-status:before{content:'';width:6px;height:6px;border-radius:50%;background:var(--faint)}.be-status.is-live{color:var(--green)}.be-status.is-live:before{background:var(--green)}
.be-workspace{display:grid;grid-template-columns:minmax(0,1fr) 330px;flex:1;min-height:0;overflow:hidden}
.be-controls{min-width:0;overflow-y:auto;overscroll-behavior:contain;padding:0 20px 20px;scrollbar-width:thin;scroll-padding-top:65px}
.be-tabs{display:flex;gap:4px;position:sticky;top:0;z-index:3;margin:0 -20px 18px;padding:10px 20px;background:#121419;border-bottom:1px solid var(--ring)}
.be-tabs button{display:flex;align-items:center;justify-content:center;gap:7px;flex:1;min-width:0;padding:9px 7px;border-radius:8px;color:var(--muted);font-size:12px;font-weight:600;min-height:36px}
.be-tabs .icon{width:15px;height:15px}.be-tabs button:hover{background:#ffffff05;color:var(--text)}.be-tabs button[aria-selected=true]{color:var(--blue-text);background:#2f7bff18;box-shadow:inset 0 0 0 1px #2f7bff2b}
.be-section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px}.be-section-title h3{font-size:15px;letter-spacing:-.2px}.be-section-title>span{color:var(--muted);font-size:11px}
.be-group{border:1px solid var(--ring);border-radius:12px;padding:14px;background:#16191f;margin-bottom:12px}.be-group h4{margin:0 0 12px;font-size:12px;font-weight:650;color:#c9cfdb}
.be-dialog label{margin:12px 0 6px;font-size:12px;line-height:1.4}.be-dialog .be-field>label:first-child,.be-group>label:first-child{margin-top:0}.be-group>.be-field+.be-field{margin-top:12px}
.be-dialog input:not([type=checkbox]):not([type=file]):not([type=range]):not([type=color]),.be-dialog select,.be-dialog textarea{font-size:13px;min-height:38px;padding:9px 11px;border-radius:8px}.be-dialog select{padding-right:34px}.be-dialog textarea{min-height:70px;resize:vertical}.be-dialog input::placeholder,.be-dialog textarea::placeholder{color:#687183}
.be-dialog input[type=checkbox]{accent-color:var(--blue);width:16px;height:16px;flex-shrink:0}.be-dialog input[type=range]{accent-color:var(--blue);width:100%;padding:0;box-shadow:none}.be-dialog .help{font-size:11px;line-height:1.5;color:var(--muted)}
.be-two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.be-two>*{min-width:0}.be-dialog .be-two label{margin-top:0}.be-group>.be-two+.be-field{margin-top:12px}
.be-upload{display:flex;align-items:center;gap:12px;padding:10px 0;margin:0;min-width:0}.be-upload+.be-upload{border-top:1px solid var(--ring)}.be-upload>div:last-child{min-width:0;flex:1}.be-upload b{font-size:12px}.be-upload p{margin:3px 0 7px}.be-upload-thumb{width:46px;height:46px;border-radius:10px;background:var(--sunken);border:1px solid var(--ring);display:grid;place-items:center;flex-shrink:0;overflow:hidden;color:var(--faint);font-size:20px}.be-upload-thumb img{width:100%;height:100%;object-fit:cover}
.be-dialog .small{height:30px;min-height:30px;padding:0 10px;font-size:11px;border-radius:7px}.be-file-label{display:inline-flex!important;position:relative;overflow:hidden;cursor:pointer;margin:0!important;vertical-align:middle}.be-file{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%}.be-file-label:focus-within{outline:2px solid var(--blue);outline-offset:3px}
.be-details{border:1px solid var(--ring);border-radius:10px;background:#13161b;padding:11px 12px;margin:12px 0 0}.be-details>summary{font-size:12px;font-weight:550;color:var(--muted);cursor:pointer}.be-details[open]>summary{color:var(--text);margin-bottom:14px}.be-details .be-details{background:var(--sunken)}
.be-add-row{display:flex;gap:10px;align-items:center;padding:10px;border:1px solid var(--ring);border-radius:10px;background:#16191f;margin-bottom:12px}.be-add-row select{flex:1;min-width:0}.be-add-row .primary{height:36px;min-height:36px;flex-shrink:0}.be-add-row .icon{width:14px;height:14px}
.be-link-card{border:1px solid var(--ring);background:#16191f;padding:12px;border-radius:12px;margin:10px 0}.be-link-card>.section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}.be-link-title{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.be-link-card .row-actions{display:flex;gap:4px;flex-shrink:0}.be-dialog .be-link-card .icon-btn{height:28px;width:28px;font-size:15px;border-radius:7px;box-shadow:none;background:#ffffff05}.be-link-card button:disabled{cursor:default}.be-link-card .danger{color:var(--red)}
.be-link-fields{display:grid;grid-template-columns:minmax(110px,.8fr) minmax(0,1.2fr);gap:10px}.be-link-fields label{margin:0}.be-link-fields input{margin-top:6px}.be-link-card .be-details{margin-top:12px}.be-link-card .be-details>label input,.be-link-card .be-details>label select{margin-top:6px}.be-link-image{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:12px}.be-link-image img{width:32px;height:32px;border-radius:7px;object-fit:cover}.be-checks{display:flex;gap:10px 16px;flex-wrap:wrap;border-top:1px solid var(--ring);padding-top:12px;margin-top:12px}.be-checks label{display:flex;align-items:center;gap:6px;margin:0;font-size:11px}.be-empty{text-align:center;padding:36px 16px;border:1px dashed #ffffff1a;border-radius:12px;color:var(--muted);font-size:12px}.be-empty b{color:#c9cfdb}.be-empty p{margin:8px 0 0}
.be-theme-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:14px}.be-theme{display:flex;align-items:center;justify-content:center;gap:7px;border:1px solid var(--ring);border-radius:8px;min-height:38px;padding:8px 4px;font-size:11px;color:var(--muted);background:#101216}.be-theme span{height:12px;width:12px;border-radius:50%;background:#3b82f6;box-shadow:inset 0 0 0 1px #ffffff30}.be-theme-forest span{background:#059669}.be-theme-night span{background:#a78bfa}.be-theme-rose span{background:#e54c87}.be-theme[aria-pressed=true]{color:var(--text);border-color:var(--blue);background:#2f7bff12}
.be-color-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.be-color{display:flex!important;align-items:center;justify-content:space-between;gap:8px;margin:0!important;padding:7px 9px;border:1px solid var(--ring);border-radius:8px;font-size:11px!important}.be-color input{width:30px;height:26px;padding:0;border:0;background:transparent;cursor:pointer}.be-dialog #be-overlay-value{float:right;color:var(--muted);font-weight:400}
.be-address{display:flex;flex-direction:column;gap:6px;padding:12px;margin-top:14px;border:1px solid #2f7bff26;border-radius:8px;background:#2f7bff0b}.be-address>span{color:var(--muted);font-size:10px}.be-address strong{font-size:12px;color:var(--blue-text);font-weight:550;overflow-wrap:anywhere}.be-dialog .switch-row{display:flex;gap:12px;align-items:center;margin:0;padding:0;background:none;border:0;box-shadow:none}.be-dialog .switch-row span{display:flex;flex-direction:column;gap:4px}.be-dialog .switch-row b{font-size:13px}.be-dialog .switch-row small{font-size:11px;color:var(--muted);line-height:1.5}
.be-preview-panel{min-width:0;min-height:0;overflow-y:auto;padding:16px 22px;background:#0c0e12;border-left:1px solid var(--ring)}.be-preview-panel>.section-head{display:flex;justify-content:space-between;align-items:center;font-size:12px;margin-bottom:16px}.be-live-dot{color:var(--muted);font-size:10px}.be-live-dot:before{content:'●';color:var(--green);margin-right:5px}.be-phone{border:5px solid #2a2e38;border-radius:27px;height:490px;width:100%;overflow:hidden;background:#fff;box-shadow:0 16px 40px #0006}.be-phone iframe{display:block;border:0;width:100%;height:100%;color-scheme:light}.be-preview-panel>.help{text-align:center;font-size:10px;margin-top:12px}
.be-dialog .dialog-actions{flex-shrink:0;display:flex;justify-content:flex-end;gap:10px;position:relative;bottom:0;margin:0;padding:12px 20px;background:#121419;border-top:1px solid var(--ring);z-index:4}.be-dialog .dialog-actions>button{height:38px;font-size:12px;border-radius:9px}.be-dialog form>.error{flex-shrink:0;min-height:0;margin:0;padding:0 20px;font-size:12px;max-height:64px;overflow:auto}.be-dialog form>.error:not(:empty){padding-top:10px;padding-bottom:10px}.be-mobile-views{display:none}
@media(max-width:850px) and (min-width:701px){.be-workspace{grid-template-columns:minmax(0,1fr) 270px}.be-preview-panel{padding:16px 12px}.be-link-fields{grid-template-columns:1fr}.be-tabs button{gap:4px}.be-theme-grid{gap:4px}}
@media(max-width:700px){.be-dialog{width:100%!important;max-width:100%!important;height:100dvh;max-height:100dvh;margin:0;inset:0;border:0;border-radius:0!important;animation:none!important}.be-dialog form>.modal-head{padding:calc(10px + env(safe-area-inset-top)) 16px 10px;min-height:56px}.be-topline{padding:8px 16px;gap:8px;flex-wrap:wrap}#be-save-state{font-size:10px}.be-mobile-views{display:flex;width:100%;padding:3px;border-radius:8px;background:var(--sunken);gap:3px}.be-mobile-views button{flex:1;min-height:36px;font-size:12px;border-radius:6px;color:var(--muted)}.be-mobile-views button[aria-pressed=true]{background:#22262f;color:var(--text)}.be-workspace{display:block}.be-controls{height:100%;padding:0 16px 20px}.be-tabs{margin:0 -16px 16px;padding:9px 12px;gap:3px}.be-tabs button{gap:5px;padding:8px 3px;min-height:40px;font-size:11px}.be-tabs .icon{width:14px;height:14px}.be-preview-panel{height:100%;border:0;padding:16px;overflow:auto}.be-dialog[data-view=edit] .be-preview-panel{display:none}.be-dialog[data-view=preview] .be-controls{display:none}.be-phone{max-width:320px;height:clamp(300px,calc(100dvh - 290px),580px);margin:auto}.be-preview-panel>.section-head{max-width:320px;margin:0 auto 14px}.be-link-fields{grid-template-columns:1fr}.be-dialog input:not([type=checkbox]):not([type=file]):not([type=range]):not([type=color]),.be-dialog textarea,.be-dialog select{font-size:16px;min-height:42px}.be-dialog .dialog-actions{padding:12px 16px calc(12px + env(safe-area-inset-bottom))}.be-dialog .dialog-actions>button{height:42px}.be-dialog .dialog-actions>.primary{flex:1}.be-link-card .icon-btn{min-width:36px!important;height:36px!important}.be-checks label{min-height:36px}.be-add-row{gap:8px;padding:8px}.be-add-row .primary{height:42px;padding:0 9px;font-size:11px}.be-theme{min-height:42px}.be-two{gap:8px}.be-section-title>span{font-size:10px}}
@media(prefers-reduced-motion:reduce){.be-dialog,.be-dialog *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.be-models{padding:10px;border:1px solid var(--ring);border-radius:8px;margin-bottom:12px}.be-models summary{cursor:pointer;font-size:12px;color:var(--muted)}

/* Densidade compacta: campos básicos lado a lado, sem cartões repetidos. */
.be-dialog{height:min(710px,92dvh)}
.be-dialog form>.modal-head{min-height:50px;padding:8px 16px}
.be-dialog .modal-head h2{font-size:15px}
.be-topline{padding:6px 16px;min-height:30px}
.be-controls{padding:0 16px 16px}
.be-tabs{margin:0 -16px 12px;padding:7px 16px}
.be-tabs button{min-height:32px;padding:7px}
.be-section-title{margin-bottom:10px}.be-section-title>span{display:none}#be-link-count{display:inline}
.be-section-title h3{font-size:13px}
.be-group{padding:10px;margin-bottom:8px;border-radius:9px}
.be-group h4{margin-bottom:8px;font-size:11px}
.be-dialog label{font-size:11px;margin:8px 0 4px}
.be-dialog input:not([type=checkbox]):not([type=file]):not([type=range]):not([type=color]),.be-dialog select,.be-dialog textarea{min-height:34px;padding:7px 9px;font-size:12px;border-radius:7px}
.be-dialog select{padding-right:30px}.be-dialog textarea{min-height:34px;height:34px}
.be-two,.be-three{display:grid;gap:8px}.be-three{grid-template-columns:repeat(3,minmax(0,1fr))}.be-three .be-field{min-width:0}.be-dialog .be-three label{margin-top:0}
.be-upload-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0}
.be-upload-grid .be-upload{padding:8px;border:1px solid var(--ring);border-radius:8px;gap:8px;align-items:center}
.be-upload-grid .be-upload+.be-upload{border-top:1px solid var(--ring)}
.be-upload-grid .be-upload p{display:none}.be-upload-grid .be-upload b{display:block;margin-bottom:6px;font-size:11px}
.be-upload-grid .be-upload-thumb{width:38px;height:38px;border-radius:8px}
.be-upload-grid .be-upload .small{min-height:26px;height:26px;padding:0 7px;font-size:10px}
.be-profile-layout{padding-top:10px;border-top:1px solid var(--ring)}
.be-link-card{padding:9px;margin:7px 0;border-radius:9px}.be-link-card>.section-head{margin-bottom:7px}.be-link-fields{gap:8px}.be-link-fields input{margin-top:4px}
.be-details{padding:8px 10px;margin-top:8px;border-radius:8px}.be-details[open]>summary{margin-bottom:9px}.be-link-card .be-details{margin-top:8px}.be-details>summary{font-size:11px}
.be-link-options label{margin-top:0}.be-link-options input,.be-link-options select{margin-top:4px}.be-link-image{margin-top:8px}.be-checks{padding-top:8px;margin-top:8px;gap:8px 12px}
.be-add-row{padding:7px;gap:8px;margin-bottom:8px}.be-add-row .primary{height:32px;min-height:32px}
.be-theme-grid{gap:6px;margin-bottom:10px}.be-theme{min-height:32px;padding:6px;font-size:10px}
.be-color-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.be-color{padding:5px 7px;font-size:10px!important}
#be-slug-wrap{margin-top:8px}.be-address{flex-direction:row;align-items:center;gap:10px;padding:8px 10px;margin-top:10px}.be-address>span{flex-shrink:0}.be-address strong{min-width:0;font-size:11px}
.be-publish-row{border-top:1px solid var(--ring);margin-top:10px;padding-top:10px}.be-dialog .switch-row{gap:8px}.be-dialog .switch-row b{font-size:12px}.be-dialog .switch-row small{font-size:10px}
.be-preview-panel{padding:12px 20px}.be-preview-panel>.section-head{margin-bottom:12px}.be-phone{height:450px}
.be-dialog .dialog-actions{padding:9px 16px}.be-dialog .dialog-actions>button{height:34px;font-size:11px}
@media(max-width:850px) and (min-width:701px){.be-upload-grid{grid-template-columns:1fr}.be-three{grid-template-columns:1fr 1fr}.be-three .be-field:last-child{grid-column:1/-1}.be-link-fields{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
@media(max-width:700px){
 .be-dialog{height:100dvh;max-height:100dvh}.be-dialog form>.modal-head{min-height:48px;padding:calc(7px + env(safe-area-inset-top)) 12px 7px}
 .be-topline{padding:6px 12px}.be-mobile-views{width:auto;margin-left:auto;padding:2px}.be-mobile-views button{min-height:30px;padding:0 9px;font-size:11px}
 #be-save-state{flex:1;font-size:9px}.be-status{font-size:10px;gap:5px}.be-controls{padding:0 12px 12px}.be-tabs{margin:0 -12px 10px;padding:6px 10px}.be-tabs button{min-height:36px;padding:6px 3px}
 .be-dialog input:not([type=checkbox]):not([type=file]):not([type=range]):not([type=color]),.be-dialog textarea,.be-dialog select{font-size:16px;min-height:40px;padding:8px}.be-dialog select{padding-right:27px}.be-dialog textarea{height:40px;min-height:40px}
 .be-identity{grid-template-columns:1fr}.be-upload-grid{gap:6px}.be-upload-grid .be-upload{padding:7px;gap:6px;align-items:flex-start;flex-direction:column}.be-upload-grid .be-upload-thumb{width:32px;height:32px}.be-upload-grid .be-upload b{font-size:10px}.be-upload-grid .be-upload .small{min-height:30px;height:30px}.be-three{grid-template-columns:1fr 1fr}.be-three .be-field:last-child{grid-column:1/-1}.be-link-fields{grid-template-columns:1fr}.be-link-options{grid-template-columns:1fr}.be-color-grid{grid-template-columns:1fr 1fr}.be-address{align-items:flex-start;flex-direction:column;gap:4px}.be-dialog .dialog-actions{padding:9px 12px calc(9px + env(safe-area-inset-bottom))}.be-dialog .dialog-actions>button{height:40px}.be-phone{height:clamp(300px,calc(100dvh - 245px),580px)}
}
@media(max-width:360px){.be-topline{gap:5px}#be-save-state{flex-basis:50%;order:3;margin:0}.be-upload-grid .be-upload .small{padding:0 6px}}
.be-style-presets{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin:0 0 10px}.be-style-presets>span{font-size:10px;color:var(--muted);margin-right:4px}.be-style-presets button{border:1px solid var(--ring);padding:6px 8px;border-radius:6px;font-size:10px;background:#191d25;color:#c9cfdb}.be-style-presets button:hover{border-color:var(--blue);color:var(--blue-text)}.be-content-block>label{display:block}.be-content-block>label input,.be-content-block>label textarea{margin-top:5px}.be-content-block textarea{height:80px}.be-link-card .row-actions .icon{width:13px;height:13px}#be-preview-size{width:112px;min-height:28px;padding:5px 24px 5px 8px;font-size:10px}.be-dialog .be-three .be-field{margin:0}#be-gradient-angle-wrap{margin-top:8px}.be-phone iframe{max-width:none;max-height:none}
@media(max-width:700px){.be-preview-panel #be-preview-size{font-size:14px;width:125px;min-height:36px}.be-content-block textarea{height:90px}.be-tabs button{font-size:10px;gap:4px}.be-style-presets button{min-height:32px}.be-content-block .row-actions{gap:2px}}
.be-dialog[open]{animation:none!important}
@media(min-width:701px){.be-dialog{margin:auto;inset:0}}

.be-shape-label{display:block;color:#c9cfdb;font-size:11px;margin-bottom:4px}.be-shape-options{display:flex;gap:5px}.be-shape-options button{display:flex;align-items:center;justify-content:center;gap:6px;flex:1;min-height:34px;padding:6px;border:1px solid var(--ring);border-radius:7px;font-size:11px;color:var(--muted);background:var(--sunken)}.be-shape-options button[aria-pressed=true]{border-color:var(--blue);color:var(--blue-text);background:#2f7bff18}.be-shape-sample{width:15px;height:15px;border:1.5px solid currentColor;border-radius:4px;flex-shrink:0}.be-shape-sample.is-circle{border-radius:50%}@media(max-width:700px){.be-shape-options button{min-height:40px;font-size:10px}}
.be-shape-sample.is-original{border-radius:0;border-style:dashed}.be-shape-options button{font-size:10px;gap:4px}.be-shape-options .be-shape-sample{width:13px;height:13px}@media(max-width:700px){.be-profile-layout:has(.be-shape-options){grid-template-columns:1fr}.be-shape-options button{font-size:11px}}
.be-upload-grid .be-cover-upload{display:block;min-width:0}.be-cover-upload>div:first-child{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.be-cover-upload b{margin:0!important}.be-cover-upload .help{display:block!important;width:100%;margin:2px 0!important;font-size:10px}.be-cover-upload #be-cover-count{color:var(--muted);font-size:10px;font-weight:400}#be-covers{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px}.be-cover-item{width:64px;flex-shrink:0;border:1px solid var(--ring);border-radius:6px;overflow:hidden;background:var(--sunken)}.be-cover-item img{display:block;width:100%;height:42px;object-fit:contain}.be-cover-item>div{display:flex}.be-cover-item button{flex:1;min-height:24px;color:var(--muted);font-size:12px}.be-cover-item button:hover{color:var(--text);background:#ffffff0a}.be-cover-item button:disabled{cursor:default}.be-crop-frame{width:128px;height:128px;position:relative;overflow:hidden;margin:12px auto;background:var(--sunken);outline:1px dashed #ffffff40;cursor:grab;touch-action:none}.be-crop-frame:active{cursor:grabbing}.be-crop-frame[data-shape=circle]{border-radius:50%}.be-crop-frame[data-shape=rounded]{border-radius:24px}.be-crop-frame img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;user-select:none;transform-origin:center}.be-crop-group output{float:right;color:var(--blue-text);font-variant-numeric:tabular-nums}.be-crop-group .be-three{grid-template-columns:repeat(3,minmax(0,1fr))}.be-crop-group .be-field{grid-column:auto!important}@media(max-width:700px){.be-cover-item button{min-height:30px}.be-cover-item{width:58px}}
.be-dialog .be-badge-setting{display:flex;align-items:center;gap:8px;margin:10px 0 0;font-size:11px}.be-contact-fields label{min-width:0}.be-contact-fields input{margin-top:5px}
.be-dialog #be-about_text{height:140px;min-height:100px;line-height:1.6}

/* O estúdio usa a mesma textura e os mesmos níveis de profundidade do painel. */
.be-controls{background:var(--panel-dots),#121419}.be-preview-panel{background:var(--panel-dots),#0c0e12}.be-group,.be-link-card,.be-details,.be-add-row{box-shadow:inset 0 1px 0 #ffffff07,inset 0 -1px 0 #0003,0 3px 8px #0003}.be-tabs{box-shadow:0 3px 10px #0003}.be-dialog .dialog-actions{box-shadow:0 -5px 16px #0002}
