#contact-name-editor.full-page-dialog{width:min(440px,calc(100vw - 32px));height:auto;min-height:0;max-height:90dvh;padding:0;background:var(--bg);color:var(--text);border-radius:24px;overflow:auto}
#contact-name-form{margin:0;padding:0;min-width:0}
#contact-name-form>.page-head{position:sticky;top:0;z-index:2;display:grid;grid-template-columns:76px minmax(0,1fr) 76px;align-items:center;gap:4px;min-height:58px;margin:0;padding:8px 16px;background:var(--bg);border-bottom:1px solid var(--line)}
#contact-name-form>.page-head strong{text-align:center;font-size:17px;font-weight:600}
#contact-name-form>.page-head .text-button{padding:8px 0;margin:0;min-height:40px;font-size:16px;color:var(--blue);background:transparent}
#contact-name-cancel{text-align:left}#contact-name-done{text-align:right;font-weight:600}#contact-name-done:disabled{opacity:.4}
.contact-name-body{padding:24px 16px max(24px,env(safe-area-inset-bottom))}
.contact-name-person{display:flex;align-items:center;gap:16px;margin:0 8px 24px;min-width:0}
.contact-name-person .avatar{width:64px;height:64px;flex:none;font-size:26px}
.contact-name-info{min-width:0;display:flex;flex-direction:column;gap:5px}.contact-name-info strong{font-size:19px;font-weight:500;overflow-wrap:anywhere}.contact-name-info .help{font-size:14px;margin:0;overflow-wrap:anywhere}
.contact-name-fields{background:var(--panel);border-radius:18px;padding:0 16px}
.contact-name-fields label{display:block;margin:0;padding:12px 0 10px;font-size:13px;font-weight:400;color:var(--muted)}
.contact-name-fields label+label{border-top:1px solid var(--line)}
#contact-name-form .contact-name-fields input{display:block;width:100%;min-width:0;margin:4px 0 0;padding:0;height:28px;min-height:28px;border:0;border-radius:0;background:transparent;color:var(--text);font-size:17px;line-height:28px;box-shadow:none}
.contact-name-fields input:focus-visible{outline:0!important}.contact-name-fields label:focus-within{color:var(--blue)}
.contact-name-help{font-size:13px;line-height:1.45;margin:12px 16px 0;color:var(--muted)}
#contact-name-error{color:#f26770;margin:16px 8px 0;font-size:14px;overflow-wrap:anywhere}#contact-name-error:empty{display:none}
@media(max-width:700px){#contact-name-editor.full-page-dialog{width:100%;max-width:none;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0}#contact-name-form>.page-head{padding-top:max(8px,env(safe-area-inset-top));min-height:calc(58px + env(safe-area-inset-top))}}
