.cc-hero{
    margin:14px 0 20px;
    padding:25px 18px;
    text-align:center;
    background:linear-gradient(
        120deg,#eff6ff,#fff,#f3e8ff
    );
    border:1px solid #e4e8f3;
    border-radius:13px;
    box-shadow:var(--shadow);
}

.cc-hero h1{
    font-size:clamp(27px,4vw,39px);
    letter-spacing:-1px;
    margin:0 0 8px;
}

.cc-hero p{
    margin:0;
    color:#64748b;
    font-size:13px;
}

.cc-workspace{
    max-width:1000px;
    margin:auto;
}

.cc-heading{
    display:flex;
    align-items:center;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:10px;
    margin-bottom:13px;
}

.cc-heading h2{
    font-size:17px;
    margin:0;
}

.cc-label{
    display:block;
    font-size:12px;
    color:#64748b;
    margin-bottom:8px;
}

#cc-input{
    display:block;
    width:100%;
    min-height:280px;
    padding:15px;
    resize:vertical;
    border:1px solid #dce2ec;
    border-radius:9px;
    background:#fcfdff;
    color:#17203a;
    font-size:15px;
    line-height:1.8;
    transition:border-color .2s,box-shadow .2s;
}

#cc-input:focus{
    outline:none;
    border-color:#a78bfa;
    box-shadow:0 0 0 4px #7c3aed12;
}

#cc-input::placeholder{
    color:#94a3b8;
}

.cc-stats{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:8px 18px;
    padding:11px 0;
    color:#64748b;
    font-size:12px;
}

.cc-stats strong{
    color:#17203a;
    font-variant-numeric:tabular-nums;
}

.cc-modes{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:9px;
    margin:10px 0 17px;
}

.cc-mode{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:4px;
    min-height:57px;
    padding:9px;
    background:linear-gradient(
        120deg,#fff,#f5f3ff
    );
    border:1px solid #e5e0f4;
    border-radius:8px;
    color:#6d28d9;
    font-size:13px;
    font-weight:650;
    transition:
        background .2s,
        transform .2s,
        box-shadow .2s;
}

.cc-mode small{
    color:#64748b;
    font-size:10px;
    font-weight:400;
}

.cc-mode:hover:not(:disabled){
    transform:translateY(-2px);
    border-color:#c4b5fd;
    box-shadow:0 4px 12px #7c3aed18;
}

.cc-mode[aria-pressed="true"]{
    background:var(--gradient);
    color:#fff;
    border-color:transparent;
    box-shadow:0 4px 12px #7c3aed25;
}

.cc-mode[aria-pressed="true"] small{
    color:#ede9fe;
}

.cc-toolbar{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:8px;
}

.cc-toolbar .btn{
    min-height:35px;
}

.cc-privacy{
    color:#047857!important;
    font-size:12px;
    margin:12px 0 0;
}

#cc-status{
    font-size:12px;
    color:#475569;
    min-height:20px;
    margin:8px 0 0;
}

.cc-content{
    max-width:1000px;
    margin:25px auto;
}

.cc-content h3{
    margin-top:23px;
}

.cc-examples{
    display:grid;
    gap:9px;
}

.cc-example{
    padding:12px;
    background:#f8fafc;
    border:1px solid #e2e8f0;
    border-radius:8px;
}

.cc-example strong{
    display:block;
    color:#6d28d9;
    margin-bottom:5px;
}

.cc-example code{
    color:#334155;
    white-space:pre-wrap;
    overflow-wrap:anywhere;
}

@media(max-width:620px){

    .cc-modes{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    #cc-input{
        min-height:220px;
        font-size:16px;
    }

    .cc-mode{
        min-height:57px;
        font-size:12px;
    }

    .cc-toolbar .btn,
    .cc-heading .btn{
        min-height:44px;
    }

    .cc-hero{
        padding:20px 14px;
    }
}

@media(pointer:coarse){
    .cc-toolbar .btn,
    .cc-heading .btn{
        min-height:44px;
    }
}

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

    .cc-mode:hover{
        transform:none;
    }

    .cc-mode{
        transition:none;
    }
}
