.profile-screen {
    --profile-phone-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23ff7829%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m7%203%203%205-2.5%202a15%2015%200%200%200%206.5%206.5L16%2014l5%203-.8%203.3c-.2.9-1.1%201.4-2%201.2C9.8%2019.9%204.1%2014.2%202.5%205.8c-.2-.9.3-1.8%201.2-2L7%203Z%22%2F%3E%3C%2Fsvg%3E");
    --profile-person-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23ff7829%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%227%22%20r%3D%224%22%2F%3E%3Cpath%20d%3D%22M4%2022v-3a8%208%200%200%201%2016%200v3%22%2F%3E%3C%2Fsvg%3E");
    --profile-document-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23ff7829%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%225%22%20y%3D%222%22%20width%3D%2214%22%20height%3D%2220%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M8%207h8M8%2011h8M8%2015h5M8%2018h5%22%2F%3E%3C%2Fsvg%3E");
    --profile-shield-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23ff7829%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m12%202%209%204v6c0%205-5%208-9%2010-4-2-9-5-9-10V6l9-4Z%22%2F%3E%3C%2Fsvg%3E");
    --profile-face-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23ff7829%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%208V3h5m8%200h5v5m0%208v5h-5M8%2021H3v-5M8%209v3m8-3v3m-8%204c2%203%206%203%208%200%22%2F%3E%3C%2Fsvg%3E");
    --profile-bell-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23ff7829%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%2018h16l-2-3v-5a6%206%200%200%200-12%200v5l-2%203Zm5%203a3%203%200%200%200%206%200M12%202v2%22%2F%3E%3C%2Fsvg%3E");
    --profile-lock-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23ff7829%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%224%22%20y%3D%2210%22%20width%3D%2216%22%20height%3D%2212%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M7%2010V7a5%205%200%200%201%2010%200v3M12%2015v3%22%2F%3E%3C%2Fsvg%3E");
    --profile-info-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23ff7829%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%2210%22%20fill%3D%22%23ff7829%22%20stroke%3D%22none%22%2F%3E%3Cpath%20d%3D%22M12%2010v7M12%207v.1%22%20stroke%3D%22%23fff%22%20stroke-width%3D%222.4%22%2F%3E%3C%2Fsvg%3E");
    max-width: 425px;
    padding: 0 16px 20px;
    border-radius: 0 0 20px 20px;
    background: linear-gradient(to bottom, transparent 55px, #fff 55px);
    box-shadow: none;
    color: #1e2943;
}

.profile-screen > .row:first-child > .page-title {
    padding-right: 16px;
    padding-left: 16px;
    color: #fff;
    font-size: 20px;
}

.profile-screen .page-title button > .text-danger {
    color: #fff !important;
}

.profile-screen .profile-phone-row {
    padding-top: 8px;
    padding-bottom: 8px;
}

.profile-screen .change-phone-new {
    position: relative;
    padding-left: 48px;
    color: #1e2943;
    font-size: 16px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.profile-screen .change-phone-new::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 50%;
    width: 23px;
    height: 26px;
    transform: translateY(-50%);
    background: var(--profile-phone-icon) center / contain no-repeat;
}

.profile-screen [data-profile-phone-toggle] {
    min-height: 40px;
    padding: 8px 6px;
    border: 0;
    border-radius: 12px;
    background: #fff1e9;
    color: #f36c24;
    font-size: 16px;
}

.profile-screen hr {
    margin: 18px 0;
    border-color: #e9e9ed;
}

.profile-screen .change-phone {
    padding: 14px;
    border-radius: 14px;
    background: #fffaf6;
}

.profile-screen .change-phone form > .row > .col-6 {
    flex: 0 0 100%;
    max-width: 100%;
}

.profile-screen .change-phone [data-profile-phone-input] {
    height: 48px;
    padding-left: 42px;
    background: #fff var(--profile-phone-icon) 13px center / 20px no-repeat;
}

.profile-screen .change-phone .text-xs {
    margin-top: 8px;
    padding-left: 4px;
    color: #7a818d;
    font-size: 16px;
    line-height: 1.5;
}

.profile-screen .change-phone .text-xs br {
    display: none;
}

.profile-screen #profile-form > .row:has(input[readonly]) > .col-4,
.profile-screen .profile-pin-row > .col-4:first-child {
    position: relative;
    flex: 0 0 42%;
    max-width: 42%;
    padding-left: 54px;
    padding-right: 5px;
    font-size: 16px !important;
    line-height: 1.35;
}

.profile-screen #profile-form > .row:has(input[readonly]) > .col-8 {
    flex: 0 0 58%;
    max-width: 58%;
    padding-left: 4px;
}

.profile-screen #profile-form input.form-control:not([type="file"]),
.profile-screen .change-phone input.form-control {
    min-width: 0;
    width: 100%;
    height: 44px;
    padding: 9px 10px;
    border: 1px solid #e1e3e9;
    border-radius: 11px;
    background: #fff;
    color: #4e5a72;
    font-size: 16px;
    box-shadow: none;
}

.profile-screen #profile-form input[readonly] {
    background: #f2f3f5;
}

.profile-screen #profile-form > .row:has(input[readonly]) > .col-4::before,
.profile-screen .profile-pin-row > .col-4:first-child::before,
.profile-screen .profile-face-row > .col-9::before,
.profile-screen .profile-notifications > .row > .col-8::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 15px;
    width: 30px;
    height: 34px;
    border-radius: 9px;
    transform: translateY(-50%);
    background: #fff3eb var(--profile-person-icon) center / 22px no-repeat;
}

.profile-screen #profile-form > .row:has(#profile-iin) > .col-4::before {
    background-image: var(--profile-document-icon);
}

.profile-screen .profile-personal-notice {
    position: relative;
    margin: 6px 0 20px;
    padding: 14px 12px 14px 50px;
    border-radius: 12px;
    background: #fff4ee;
    color: #d75817;
    font-size: 16px;
    line-height: 1.5;
}

.profile-screen .profile-personal-notice::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 14px;
    width: 24px;
    height: 28px;
    transform: translateY(-50%);
    background: var(--profile-shield-icon) center / contain no-repeat;
}

.profile-screen .profile-face-row {
    padding: 18px 0;
    border-top: 1px solid #e9e9ed;
    border-bottom: 1px solid #e9e9ed;
}

.profile-screen .profile-face-row > .col-9 {
    position: relative;
    padding-left: 44px;
    font-size: 16px !important;
}

.profile-screen .profile-face-row > .col-9::before {
    left: 0;
    background-image: var(--profile-face-icon);
}

.profile-screen .face-id-icon {
    width: 100%;
    max-width: 100%;
    padding: 8px 4px;
    border: 1px dashed #ffc9aa;
    border-radius: 12px;
    background: #fffaf6;
    color: #ff6f28;
    cursor: pointer;
}

.profile-screen .face-id-icon::before {
    content: '';
    display: block;
    width: 100%;
    height: 38px;
    margin-bottom: 5px;
    background: var(--profile-face-icon) center / 36px no-repeat;
}

.profile-screen .face-id-icon > img,
.profile-screen .face-id-icon > br {
    display: none;
}

.profile-screen .face-id-icon > span:not(.text-danger) {
    color: #f16b24 !important;
    font-size: 16px;
}

@media (max-width: 767px) {
    html body .profile-screen .profile-face-row .face-id-icon {
        display: inline-flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        width: max-content;
        min-width: 88px;
        max-width: 100%;
        min-height: 64px;
        padding: 8px 12px;
        box-sizing: border-box;
    }

    html body .profile-screen .profile-face-row .face-id-icon::before {
        flex: 0 0 24px;
        width: 24px;
        height: 24px;
        margin: 0;
        background-size: 24px;
    }

    html body .profile-screen .profile-face-row .face-id-icon > span {
        font-size: 14px;
        line-height: 1.25;
    }
}

.profile-screen .profile-notifications {
    padding: 4px 0 8px;
}

.profile-screen .profile-notifications > .row > .col-8 {
    position: relative;
    padding-left: 54px;
    font-size: 16px !important;
}

.profile-screen .profile-notifications > .row > .col-8::before {
    background-image: var(--profile-bell-icon);
}

.profile-screen #enable-push {
    min-height: 38px;
    padding: 8px 4px;
    border: 1px solid #ffd5bd;
    border-radius: 10px;
    background: #fff4ec;
    color: #dd631e;
    font-size: 16px;
}

.profile-screen [data-push-install-hint]:not([hidden]),
.profile-screen [data-push-status]:not([hidden]) {
    display: block;
    position: relative;
    margin: 12px 0 0;
    padding: 13px 12px 13px 42px;
    border-radius: 12px;
    background: #f3f4f8 var(--profile-info-icon) 13px 16px / 20px no-repeat;
    color: #3d4d72;
    font-size: 16px !important;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.profile-screen .profile-pin-row > .col-4:not(:first-child) {
    flex: 0 0 29%;
    max-width: 29%;
    padding-left: 4px;
    padding-right: 4px;
}

.profile-screen .profile-pin-row > .col-4:first-child::before {
    background-image: var(--profile-lock-icon);
}

.profile-screen .profile-actions > .col-6 {
    padding-left: 5px;
    padding-right: 5px;
}

.profile-screen .profile-actions {
    margin: 20px -5px 0;
}

.profile-screen .profile-actions .btn,
.profile-screen .change-phone button[type="submit"] {
    min-height: 48px;
    padding: 12px 8px;
    border: 0;
    border-radius: 13px;
    color: #fff;
    font-size: 16px !important;
    font-weight: 700;
}

.profile-screen .profile-actions .btn-primary,
.profile-screen .change-phone button[type="submit"] {
    background: linear-gradient(110deg, #ff9818, #ff5c25);
    box-shadow: 0 5px 15px rgb(255 111 34 / 15%);
}

.profile-screen .profile-actions .btn-danger {
    background: linear-gradient(110deg, #ff6050, #ff264a);
    box-shadow: 0 5px 15px rgb(255 55 71 / 12%);
}

.profile-screen input:focus-visible,
.profile-screen button:focus-visible,
.profile-screen a:focus-visible {
    outline: 2px solid #ff9b5b;
    outline-offset: 2px;
}

.profile-screen .profile-delete-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 20px auto 0;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #d83d49;
    font: inherit;
    font-size: 16px;
    cursor: pointer;
}

.profile-screen .profile-delete-trigger svg {
    flex-shrink: 0;
}

#profile-face-modal .legacy-popup-panel {
    border-radius: 20px;
    overflow: hidden;
    border-top: 5px solid #ff892a;
}

#profile-face-modal .legacy-popup-body {
    padding: 16px;
    overflow-y: auto;
    min-height: 0;
}

#profile-face-modal .face-camera-frame {
    border-radius: 14px;
}

#profile-face-modal .face-camera-frame::after {
    border-color: #ff892a;
    max-width: 80%;
    max-height: 90%;
}

#profile-face-modal .face-id-actions {
    gap: 12px;
    padding: 0 16px 16px;
    border: 0;
    flex-shrink: 0;
}

#profile-face-modal .face-id-actions .btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 46px;
    margin: 0;
    padding: 11px 8px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(110deg, #ff9818, #ff5c25);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    white-space: normal;
}

#profile-face-modal .face-id-actions [data-face-edit] {
    background: #fff1e9;
    color: #df601f;
}

#profile-face-modal .face-id-actions .btn:focus-visible {
    outline: 2px solid #bf4a15;
    outline-offset: 2px;
}

@media (max-width: 360px) {
    .profile-screen { padding-right: 12px; padding-left: 12px; }
    .profile-screen .change-phone-new { font-size: 16px; }
    .profile-screen #profile-form input.form-control:not([type="file"]) { font-size: 16px; padding: 8px; }
    .profile-screen #profile-form > .row:has(input[readonly]) > .col-4,
    .profile-screen .profile-pin-row > .col-4:first-child { padding-left: 48px; font-size: 16px !important; }
}

/* Keep the profile action border at exactly the same position on hover. */
html body main.page[data-organization-actions] .profile-screen .profile-actions .btn,
html body main.page[data-organization-actions] .profile-screen .profile-actions .btn:is(:hover, :focus, :active, :disabled) {
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    box-sizing:border-box !important;
    height:48px !important;
    min-height:48px !important;
    max-height:48px !important;
    padding:10px 16px !important;
    margin:0 !important;
    border-width:1px !important;
    border-style:solid !important;
    line-height:24px !important;
    font-size:16px !important;
    font-weight:700 !important;
    text-decoration:none !important;
    top:auto !important;
    bottom:auto !important;
    transform:none !important;
    transition:none !important;
    animation:none !important;
    box-shadow:none !important;
}
html body .profile-screen .profile-actions .btn::before,
html body .profile-screen .profile-actions .btn::after { content:none !important; display:none !important; }
