/* XDCHAT_NEWCORE05_SECOND_NICK_NATIVE_IPHONE_FINAL */

html body .xd-second-nick-launcher{
    display:none!important;
    visibility:hidden!important;
    pointer-events:none!important;
}

html.xd-newcore-sn-open,
html.xd-newcore-sn-open body{
    overscroll-behavior:none!important;
}

.xd-newcore-sn-overlay{
    position:fixed!important;
    top:var(--xd-sn-top,0px)!important;
    left:var(--xd-sn-left,0px)!important;
    width:var(--xd-sn-width,100vw)!important;
    height:var(--xd-sn-height,100dvh)!important;
    z-index:2147483200!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    box-sizing:border-box!important;
    padding:max(10px,env(safe-area-inset-top)) 10px max(10px,env(safe-area-inset-bottom))!important;
    background:rgba(1,8,14,.78)!important;
    backdrop-filter:blur(8px)!important;
    -webkit-backdrop-filter:blur(8px)!important;
}

.xd-newcore-sn-overlay[hidden]{display:none!important;}

.xd-newcore-sn-panel{
    width:min(620px,100%)!important;
    max-width:620px!important;
    max-height:calc(var(--xd-sn-height,100dvh) - 20px)!important;
    display:flex!important;
    flex-direction:column!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
    border:1px solid #1aa8d3!important;
    border-radius:18px!important;
    background:linear-gradient(180deg,#071d2a,#03121d)!important;
    color:#eef8ff!important;
    box-shadow:0 22px 70px rgba(0,0,0,.55),inset 0 1px 0 rgba(255,255,255,.07)!important;
}

.xd-newcore-sn-head{
    min-height:62px!important;
    flex:0 0 auto!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:12px!important;
    padding:10px 12px 10px 16px!important;
    border-bottom:1px solid rgba(68,188,224,.24)!important;
    background:#082331!important;
}

.xd-newcore-sn-head>div{display:flex!important;flex-direction:column!important;gap:2px!important;min-width:0!important;}
.xd-newcore-sn-head strong{color:#fff!important;font-size:18px!important;}
.xd-newcore-sn-head small{color:#83a9bb!important;font-size:12px!important;}

.xd-newcore-sn-body{
    flex:1 1 auto!important;
    min-height:0!important;
    overflow-y:auto!important;
    overscroll-behavior:contain!important;
    -webkit-overflow-scrolling:touch!important;
    padding:12px!important;
}

.xd-newcore-sn-loading{min-height:120px!important;display:grid!important;place-items:center!important;color:#8fb4c4!important;font-weight:800!important;}
.xd-newcore-sn-intro{margin:0 0 10px!important;color:#a8c3cf!important;font-size:12px!important;line-height:1.45!important;}

.xd-newcore-sn-card{
    display:flex!important;
    flex-direction:column!important;
    gap:10px!important;
    margin:0 0 12px!important;
    padding:13px!important;
    border:1px solid #143d51!important;
    border-radius:14px!important;
    background:#061a26!important;
}

.xd-newcore-sn-card.is-owner{border-color:#5a477b!important;background:#101829!important;}
.xd-newcore-sn-card-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;}
.xd-newcore-sn-card-head strong,.xd-newcore-sn-owner-title{color:#fff!important;font-size:14px!important;font-weight:900!important;}

.xd-newcore-sn-state{
    padding:4px 8px!important;
    border:1px solid #4c5962!important;
    border-radius:999px!important;
    background:#17242c!important;
    color:#b8c6ce!important;
    font-size:9px!important;
    font-weight:950!important;
}
.xd-newcore-sn-state.is-active{border-color:#238e64!important;background:#0b3c2a!important;color:#79efb5!important;}

.xd-newcore-sn-field{display:flex!important;flex-direction:column!important;gap:6px!important;color:#adc5d0!important;font-size:11px!important;font-weight:850!important;}
.xd-newcore-sn-field input[type="text"],.xd-newcore-sn-field select{
    width:100%!important;
    min-height:42px!important;
    box-sizing:border-box!important;
    padding:9px 11px!important;
    border:1px solid #225268!important;
    border-radius:10px!important;
    outline:none!important;
    background:#03121c!important;
    color:#fff!important;
    font-size:16px!important;
}
.xd-newcore-sn-field input[type="text"]:focus,.xd-newcore-sn-field select:focus{
    border-color:#24bde7!important;
    box-shadow:0 0 0 2px rgba(36,189,231,.13)!important;
}

.xd-newcore-sn-avatar-row{display:flex!important;align-items:center!important;gap:10px!important;}
.xd-newcore-sn-avatar{
    width:56px!important;min-width:56px!important;height:56px!important;
    display:grid!important;place-items:center!important;overflow:hidden!important;
    border:2px solid #2aa8ce!important;border-radius:50%!important;background:#0b2a3a!important;font-size:24px!important;
}
.xd-newcore-sn-avatar img{width:100%!important;height:100%!important;object-fit:cover!important;}
.xd-newcore-sn-avatar-row>div:last-child{display:flex!important;flex-direction:column!important;gap:2px!important;min-width:0!important;}
.xd-newcore-sn-avatar-row strong{color:#f5fbff!important;font-size:12px!important;}
.xd-newcore-sn-avatar-row small{color:#7fa4b4!important;font-size:10px!important;}

.xd-newcore-sn-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;}

.xd-newcore-sn-btn{
    min-height:40px!important;
    display:inline-flex!important;align-items:center!important;justify-content:center!important;
    padding:8px 13px!important;border:1px solid #23536a!important;border-radius:10px!important;
    background:#0b2938!important;color:#eaf8ff!important;
    font:800 12px/1.1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
}
.xd-newcore-sn-btn.is-primary{border-color:#18a8d5!important;background:linear-gradient(180deg,#18b7e4,#0988bb)!important;color:#fff!important;}
.xd-newcore-sn-btn.is-danger{border-color:#8e4050!important;background:#3c1b24!important;color:#ffdce2!important;}
.xd-newcore-sn-btn.is-close{width:42px!important;min-width:42px!important;height:42px!important;min-height:42px!important;padding:0!important;border-radius:12px!important;font-size:28px!important;line-height:1!important;}
.xd-newcore-sn-btn:disabled,.xd-newcore-sn-overlay.is-busy .xd-newcore-sn-btn{opacity:.48!important;cursor:not-allowed!important;}

.xd-newcore-sn-message{
    flex:0 0 auto!important;margin:10px 12px 0!important;padding:9px 11px!important;
    border:1px solid #236444!important;border-radius:10px!important;background:#0b3022!important;color:#9ff0c5!important;
    font-size:12px!important;font-weight:800!important;
}
.xd-newcore-sn-message.is-error{border-color:#8f3f4e!important;background:#341922!important;color:#ffc5cf!important;}
.xd-newcore-sn-message[hidden]{display:none!important;}

.xd-newcore-sn-note{
    margin:0!important;padding:8px 10px!important;border-radius:9px!important;background:#081f2b!important;
    color:#91b2c0!important;font-size:11px!important;line-height:1.4!important;
}

.xd-newcore-sn-check{
    min-height:40px!important;display:flex!important;align-items:center!important;gap:8px!important;
    padding:8px 10px!important;border:1px solid #324460!important;border-radius:10px!important;
    background:#0c1c2c!important;color:#e7eff6!important;font-size:12px!important;font-weight:850!important;
}
.xd-newcore-sn-check input{width:20px!important;height:20px!important;accent-color:#20b9e4!important;}

.xd-newcore-sn-field input[type="file"]{
    width:100%!important;box-sizing:border-box!important;padding:8px!important;
    border:1px dashed #28556a!important;border-radius:10px!important;background:#041722!important;color:#c9dce5!important;
}

@media(max-width:760px){
    .xd-newcore-sn-overlay{
        align-items:flex-end!important;
        padding:max(6px,env(safe-area-inset-top)) 6px max(6px,env(safe-area-inset-bottom))!important;
    }
    .xd-newcore-sn-panel{
        width:100%!important;max-width:none!important;
        max-height:calc(var(--xd-sn-height,100dvh) - 12px)!important;
        border-radius:16px 16px 12px 12px!important;
    }
    .xd-newcore-sn-head{min-height:58px!important;}
    .xd-newcore-sn-head strong{font-size:17px!important;}
    .xd-newcore-sn-body{padding:10px!important;}
    .xd-newcore-sn-card{padding:11px!important;}
    .xd-newcore-sn-actions{grid-template-columns:1fr!important;}
    .xd-newcore-sn-btn:not(.is-close){width:100%!important;min-height:44px!important;}
}
