
/* NUJIZ COLOUR PALETTE STUDIO V2 */

html body .ncp-controls:has(#ncpStudio)>:not(#ncpStudio){
    display:none!important;
}

html body #downloadButton,
html body #nujizPaletteActions{
    display:none!important;
}

html body #processButton.ncp-complete{
    display:none!important;
}

html body #ncpStudio{
    --ncp-bg:#ffffff;
    --ncp-soft:#f3f5fa;
    --ncp-text:#172033;
    --ncp-muted:#536176;
    --ncp-line:#d9e0eb;
    display:grid!important;
    gap:14px;
    width:100%;
    min-width:0;
}

html[data-theme="dark"] body #ncpStudio{
    --ncp-bg:#1b202c;
    --ncp-soft:#242b39;
    --ncp-text:#f5f7ff;
    --ncp-muted:#c5cedf;
    --ncp-line:#3b4557;
}

#ncpStudio *{
    box-sizing:border-box;
}

html body #ncpStudio .ncp-header{
    background:linear-gradient(
        135deg,#7545ed,#43259f
    )!important;
    border:1px solid #9775ff!important;
    border-radius:16px!important;
    padding:20px!important;
}

html body #ncpStudio .ncp-header *{
    color:#ffffff!important;
    -webkit-text-fill-color:#ffffff!important;
    opacity:1!important;
}

#ncpStudio .ncp-header span{
    font-size:12px!important;
    font-weight:800;
}

#ncpStudio .ncp-header h3{
    font-size:23px!important;
    font-weight:900!important;
    margin:10px 0 5px!important;
    line-height:1.6!important;
}

#ncpStudio .ncp-header p{
    font-size:15px!important;
    line-height:1.8!important;
    margin:0!important;
}

html body #ncpStudio .ncp-section{
    background:var(--ncp-bg)!important;
    border:1px solid var(--ncp-line)!important;
    padding:14px!important;
    border-radius:15px!important;
}

html body #ncpStudio h4,
html body #ncpStudio b,
html body #ncpStudio strong,
html body #ncpStudio button,
html body #ncpStudio select,
html body #ncpStudio input{
    color:var(--ncp-text)!important;
    -webkit-text-fill-color:var(--ncp-text)!important;
    opacity:1!important;
}

#ncpStudio h4{
    font-size:18px!important;
    font-weight:800!important;
    margin:12px 0!important;
}

#ncpStudio .ncp-label{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:8px;
    font-size:15px!important;
}

#ncpStudio .ncp-grid,
#ncpStudio .ncp-four{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
}

#ncpStudio .ncp-four{
    grid-template-columns:repeat(4,minmax(0,1fr));
    margin:12px 0;
}

html body #ncpStudio button,
html body #ncpStudio select,
html body #ncpStudio input[type=number]{
    background:var(--ncp-soft)!important;
    border:1px solid var(--ncp-line)!important;
    border-radius:10px!important;
    min-height:43px!important;
    padding:8px!important;
    font-size:15px!important;
    font-weight:750!important;
    cursor:pointer;
}

html body #ncpStudio button.selected{
    border:2px solid #9870ff!important;
    background:#7950f226!important;
    box-shadow:0 0 0 2px #7950f218!important;
}

#ncpStudio input[type=range]{
    width:100%;
    margin:15px 0;
    accent-color:#7950f2;
}

#ncpCountNumber{
    width:65px;
    text-align:center;
}

#ncpPicker,
#ncpCopyAll,
#ncpDownload,
#ncpExport{
    width:100%;
    margin-top:12px;
}

#ncpResults{
    display:grid;
    gap:14px;
}

#ncpBar{
    display:flex;
    height:80px;
    overflow:hidden;
    border-radius:11px;
    border:1px solid var(--ncp-line);
}

#ncpBar>div{
    min-width:0;
}

#ncpList{
    display:grid;
    gap:4px;
}

#ncpStudio .ncp-row,
#ncpPicked{
    display:flex;
    align-items:center;
    gap:9px;
    padding:10px 0;
    border-bottom:1px solid var(--ncp-line);
}

#ncpStudio .ncp-swatch{
    display:block;
    width:42px;
    height:42px;
    flex:0 0 42px;
    border-radius:9px;
    border:1px solid #9aa4b6;
}

#ncpStudio .ncp-info{
    flex:1;
    min-width:0;
}

#ncpStudio .ncp-info b{
    display:block;
    font-size:13px!important;
    overflow-wrap:anywhere;
    text-align:left;
    font-family:Arial,sans-serif;
}

#ncpStudio .ncp-row strong{
    font-size:13px!important;
    font-family:Arial,sans-serif;
}

#ncpStudio .ncp-track{
    height:5px;
    background:var(--ncp-line);
    border-radius:8px;
    overflow:hidden;
    margin-top:8px;
}

#ncpStudio .ncp-track i{
    display:block;
    height:100%;
    border-radius:8px;
}

html body #ncpStudio #ncpDownload{
    background:#b8ff35!important;
    color:#142509!important;
    -webkit-text-fill-color:#142509!important;
    font-size:17px!important;
    font-weight:900!important;
    min-height:52px!important;
    border-color:#b8ff35!important;
}

html body #ncpStatus,
html body #ncpStudio .ncp-privacy{
    background:var(--ncp-soft)!important;
    color:var(--ncp-text)!important;
    -webkit-text-fill-color:var(--ncp-text)!important;
    border:1px solid var(--ncp-line)!important;
    padding:12px!important;
    border-radius:11px!important;
    font-size:14px!important;
    line-height:1.8!important;
}

html body #ncpStudio [hidden]{
    display:none!important;
}

html body #previewCanvas.ncp-picking{
    cursor:crosshair!important;
    outline:2px solid #9870ff!important;
}

html body #statFormat,
html body #statSize,
html body #statDimensions{
    font-size:16px!important;
    font-weight:800!important;
    opacity:1!important;
}

html[data-theme="dark"] body #statFormat,
html[data-theme="dark"] body #statSize,
html[data-theme="dark"] body #statDimensions{
    color:#ffffff!important;
    -webkit-text-fill-color:#ffffff!important;
}

@media(max-width:600px){

    #ncpStudio .ncp-header h3{
        font-size:20px!important;
    }

    #ncpStudio .ncp-section{
        padding:11px!important;
    }

    #ncpStudio .ncp-four button{
        font-size:12px!important;
        padding:5px!important;
    }

    #ncpStudio .ncp-row{
        gap:6px;
    }

    #ncpStudio .ncp-swatch{
        width:35px;
        height:35px;
        flex-basis:35px;
    }
}


/* NUJIZ PALETTE COPY FEEDBACK V21 */

html body #ncpCopyToast{
    position:fixed!important;
    bottom:28px!important;
    left:50%!important;
    transform:translate(-50%,24px);
    z-index:2147483000!important;

    display:flex!important;
    align-items:center!important;
    gap:14px!important;

    width:max-content!important;
    max-width:calc(100vw - 28px)!important;

    padding:16px 22px!important;
    box-sizing:border-box!important;

    background:#142e23!important;
    border:1px solid #43c77a!important;
    border-radius:16px!important;

    box-shadow:0 12px 40px #00000045!important;

    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;

    transition:
        opacity .22s ease,
        transform .22s ease,
        visibility .22s ease!important;
}

html body #ncpCopyToast.ncp-toast-visible{
    opacity:1!important;
    visibility:visible!important;
    transform:translate(-50%,0);
}

html body #ncpCopyToast .ncp-toast-icon{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;

    width:42px!important;
    height:42px!important;
    flex:0 0 42px!important;

    background:#22c55e!important;
    border-radius:50%!important;

    color:#ffffff!important;
    -webkit-text-fill-color:#ffffff!important;

    font-size:25px!important;
    font-weight:900!important;
}

html body #ncpCopyToast .ncp-toast-content{
    min-width:0!important;
    display:grid!important;
    gap:4px!important;
}

html body #ncpCopyToast strong{
    color:#ffffff!important;
    -webkit-text-fill-color:#ffffff!important;
    font-size:17px!important;
    font-weight:800!important;
    opacity:1!important;
}

html body #ncpCopyToast small{
    color:#a7f3c0!important;
    -webkit-text-fill-color:#a7f3c0!important;
    font-size:15px!important;
    font-weight:700!important;
    overflow-wrap:anywhere!important;
    opacity:1!important;
}

html body #ncpCopyToast.ncp-error{
    background:#451c24!important;
    border-color:#ef4444!important;
}

html body #ncpCopyToast.ncp-error .ncp-toast-icon{
    background:#dc2626!important;
}

html body #ncpStudio button.ncp-copied,
html[data-theme="dark"] body #ncpStudio button.ncp-copied{
    background:#15803d!important;
    border-color:#22c55e!important;

    color:#ffffff!important;
    -webkit-text-fill-color:#ffffff!important;

    box-shadow:0 0 12px #22c55e35!important;
    font-weight:900!important;
}

@media(max-width:600px){

    html body #ncpCopyToast{
        bottom:calc(20px + env(safe-area-inset-bottom))!important;
        padding:13px 16px!important;
    }

    html body #ncpCopyToast strong{
        font-size:15px!important;
    }

    html body #ncpCopyToast small{
        font-size:13px!important;
    }
}

@media(prefers-reduced-motion:reduce){

    html body #ncpCopyToast{
        transition:none!important;
    }
}


/* NUJIZ PALETTE AUTO PRECISION V30 */

html body #ncpStudio{
    --ncp-v3-text:#172033;
    --ncp-v3-muted:#526079;
    --ncp-v3-card:#f8f9fc;
    --ncp-v3-line:#d9deea;
}

html[data-theme="dark"] body #ncpStudio{
    --ncp-v3-text:#f8fafc;
    --ncp-v3-muted:#bfc9dc;
    --ncp-v3-card:#202635;
    --ncp-v3-line:#39445a;
}

html body #ncpStudio .ncp-precision-title{
    font-size:18px!important;
    font-weight:900!important;
    color:var(--ncp-v3-text)!important;
    -webkit-text-fill-color:var(--ncp-v3-text)!important;
    margin:0 0 14px!important;
}

html body #ncpStudio .ncp-precision-list{
    display:grid!important;
    gap:11px!important;
}

html body #ncpStudio
button[data-ncp-precision]{
    display:flex!important;
    align-items:center!important;
    gap:12px!important;
    width:100%!important;
    min-height:90px!important;
    padding:14px!important;
    box-sizing:border-box!important;
    text-align:start!important;
    background:var(--ncp-v3-card)!important;
    border:1px solid var(--ncp-v3-line)!important;
    border-radius:13px!important;
    cursor:pointer!important;
    transition:background .18s,border-color .18s!important;
}

html body #ncpStudio
button[data-ncp-precision].selected{
    background:#7950f218!important;
    border:2px solid #9870ff!important;
    box-shadow:0 0 0 2px #7950f214!important;
}

html body #ncpStudio
button[data-ncp-precision] i{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:44px!important;
    height:44px!important;
    flex:0 0 44px!important;
    border-radius:12px!important;
    background:#7048e8!important;
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    font-size:25px!important;
    font-style:normal!important;
}

html body #ncpStudio
button[data-ncp-precision] span{
    display:grid!important;
    flex:1!important;
    min-width:0!important;
    gap:5px!important;
}

html body #ncpStudio
button[data-ncp-precision] strong{
    color:var(--ncp-v3-text)!important;
    -webkit-text-fill-color:var(--ncp-v3-text)!important;
    font-size:16px!important;
    font-weight:900!important;
    line-height:1.6!important;
}

html body #ncpStudio
button[data-ncp-precision] small{
    color:var(--ncp-v3-muted)!important;
    -webkit-text-fill-color:var(--ncp-v3-muted)!important;
    font-size:13px!important;
    font-weight:600!important;
    line-height:1.7!important;
    opacity:1!important;
}

html body #ncpStudio .ncp-recommended{
    width:max-content!important;
    background:#7048e8!important;
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    font-size:11px!important;
    font-weight:800!important;
    font-style:normal!important;
    padding:3px 9px!important;
    border-radius:20px!important;
}

html body #ncpStudio .ncp-precision-check{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:23px!important;
    height:23px!important;
    flex:0 0 23px!important;
    border:1px solid var(--ncp-v3-line)!important;
    border-radius:50%!important;
    color:transparent!important;
    -webkit-text-fill-color:transparent!important;
    font-style:normal!important;
    font-weight:900!important;
}

html body #ncpStudio
.selected .ncp-precision-check{
    background:#7950f2!important;
    border-color:#7950f2!important;
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
}

html body #ncpStudio #ncpAutoInfo{
    margin:15px 0 22px!important;
    padding:14px!important;
    border:1px solid var(--ncp-v3-line)!important;
    background:var(--ncp-v3-card)!important;
    border-radius:11px!important;
    color:var(--ncp-v3-text)!important;
    -webkit-text-fill-color:var(--ncp-v3-text)!important;
    font-size:15px!important;
    font-weight:800!important;
    line-height:1.8!important;
}

html body #ncpStudio #ncpAutoInfo.ncp-detected{
    background:#22c55e15!important;
    border-color:#22c55e55!important;
    color:#166534!important;
    -webkit-text-fill-color:#166534!important;
}

html[data-theme="dark"] body #ncpStudio
#ncpAutoInfo.ncp-detected{
    color:#86efac!important;
    -webkit-text-fill-color:#86efac!important;
}

html body #ncpStudio #ncpActualCount{
    font-size:17px!important;
    font-weight:900!important;
    color:var(--ncp-v3-text)!important;
    -webkit-text-fill-color:var(--ncp-v3-text)!important;
}

html body #ncpStudio #ncpStatus{
    font-size:15px!important;
    font-weight:700!important;
    color:var(--ncp-v3-text)!important;
    -webkit-text-fill-color:var(--ncp-v3-text)!important;
}

html body #ncpStudio #ncpCount,
html body #ncpStudio #ncpCountNumber{
    display:none!important;
}

@media(max-width:600px){

    html body #ncpStudio
    button[data-ncp-precision]{
        padding:11px!important;
        gap:9px!important;
    }

    html body #ncpStudio
    button[data-ncp-precision] strong{
        font-size:15px!important;
    }

    html body #ncpStudio
    button[data-ncp-precision] i{
        width:38px!important;
        height:38px!important;
        flex-basis:38px!important;
    }
}
