.scc-shell{
    min-height:760px;
    display:grid;
    grid-template-columns:340px 1fr;
    border-radius:24px;
    overflow:hidden;
    background:
        radial-gradient(circle at top left, rgba(99,102,241,.12), transparent 30%),
        linear-gradient(180deg, #f7f8fc 0%, #eef2ff 100%);
    box-shadow:0 20px 50px rgba(15,23,42,.12);
    border:1px solid rgba(148,163,184,.25);
}

.scc-sidebar{
    padding:18px;
    background:rgba(255,255,255,.74);
    backdrop-filter: blur(18px);
    border-right:1px solid rgba(148,163,184,.25);
    display:flex;
    flex-direction:column;
    gap:14px;
}

.scc-brand{
    display:flex;
    align-items:center;
    gap:12px;
    padding:8px 2px 14px;
}

.scc-logo{
    width:48px;
    height:48px;
    border-radius:16px;
    display:grid;
    place-items:center;
    color:#fff;
    font-weight:800;
    letter-spacing:.04em;
    background:linear-gradient(135deg, #7c3aed, #2563eb);
    box-shadow:0 10px 25px rgba(37,99,235,.25);
}

.scc-title{
    font-size:18px;
    font-weight:800;
    color:#0f172a;
}

.scc-subtitle{
    font-size:13px;
    color:#64748b;
}

.scc-card{
    padding:14px;
    border-radius:20px;
    background:rgba(255,255,255,.86);
    border:1px solid rgba(148,163,184,.18);
    box-shadow:0 10px 30px rgba(15,23,42,.05);
}

.scc-label{
    display:block;
    margin-bottom:8px;
    font-size:12px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.08em;
    color:#64748b;
}

.scc-badge{
    display:inline-flex;
    align-items:center;
    padding:8px 12px;
    border-radius:999px;
    background:#111827;
    color:#fff;
    font-weight:700;
    letter-spacing:.04em;
}

.scc-wallet{
    font-size:32px;
    font-weight:900;
    color:#111827;
    line-height:1;
}

.scc-input,
.scc-textarea{
    width:100%;
    box-sizing:border-box;
    border:1px solid #dbe3f0;
    background:#fff;
    color:#0f172a;
    border-radius:16px;
    padding:12px 14px;
    outline:none;
    transition:.2s ease;
}

.scc-input:focus,
.scc-textarea:focus{
    border-color:#6366f1;
    box-shadow:0 0 0 4px rgba(99,102,241,.12);
}

.scc-textarea{
    resize:vertical;
    min-height:112px;
}

.scc-button{
    width:100%;
    margin-top:10px;
    border:0;
    border-radius:16px;
    padding:12px 14px;
    font-weight:800;
    color:#fff;
    cursor:pointer;
    background:linear-gradient(135deg, #7c3aed, #2563eb);
    box-shadow:0 12px 24px rgba(37,99,235,.22);
}

.scc-button-secondary{
    background:linear-gradient(135deg, #334155, #475569);
}

.scc-button-alt{
    background:linear-gradient(135deg, #0f766e, #06b6d4);
}

.scc-main{
    display:flex;
    flex-direction:column;
    min-width:0;
}

.scc-topbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:20px 22px;
    background:rgba(255,255,255,.78);
    backdrop-filter: blur(18px);
    border-bottom:1px solid rgba(148,163,184,.18);
}

.scc-top-title{
    font-size:18px;
    font-weight:800;
    color:#0f172a;
}

.scc-top-subtitle{
    font-size:13px;
    color:#64748b;
    margin-top:4px;
}

.scc-thread{
    flex:1;
    overflow:auto;
    padding:24px;
    display:flex;
    flex-direction:column;
    gap:12px;
}

.scc-msg{
    max-width:min(72%, 640px);
    padding:14px 16px;
    border-radius:20px;
    box-shadow:0 8px 22px rgba(15,23,42,.08);
}

.scc-out{
    margin-left:auto;
    background:linear-gradient(180deg, #dcfce7, #d1fae5);
    border-bottom-right-radius:6px;
}

.scc-in{
    margin-right:auto;
    background:#fff;
    border-bottom-left-radius:6px;
}

.scc-meta{
    font-size:12px;
    color:#64748b;
    margin-bottom:8px;
    font-weight:700;
}

.scc-text{
    font-size:15px;
    color:#0f172a;
    line-height:1.55;
    white-space:pre-wrap;
    word-break:break-word;
}

.scc-product-card{
    display:flex;
    flex-direction:column;
    gap:10px;
    margin-bottom:10px;
    padding:12px;
    border-radius:18px;
    background:#fff;
    border:1px solid #e5e7eb;
}

.scc-product-card img{
    width:100%;
    max-width:280px;
    height:auto;
    border-radius:14px;
    object-fit:cover;
}

.scc-product-title{
    font-weight:800;
    font-size:15px;
    color:#0f172a;
}

.scc-product-price{
    color:#0f766e;
    font-weight:700;
}

.scc-product-link{
    display:inline-flex;
    width:max-content;
    text-decoration:none;
    color:#2563eb;
    font-weight:700;
}

.scc-results{
    margin-top:10px;
    max-height:260px;
    overflow:auto;
    display:flex;
    flex-direction:column;
    gap:8px;
}

.scc-product-item{
    display:grid;
    grid-template-columns:56px 1fr;
    gap:10px;
    padding:10px;
    border-radius:16px;
    border:1px solid #e5e7eb;
    background:#fff;
    cursor:pointer;
}

.scc-product-item:hover{
    background:#f8fafc;
}

.scc-product-thumb img{
    width:56px;
    height:56px;
    object-fit:cover;
    border-radius:12px;
}

.scc-product-name{
    font-weight:800;
    color:#0f172a;
}

.scc-product-info{
    min-width:0;
}

.scc-contacts{
    display:flex;
    flex-direction:column;
    gap:10px;
    max-height:320px;
    overflow:auto;
}

.scc-contact{
    display:grid;
    grid-template-columns:48px 1fr;
    gap:12px;
    align-items:center;
    padding:10px;
    border-radius:16px;
    cursor:pointer;
    background:#fff;
    border:1px solid #e5e7eb;
    transition:.15s ease;
}

.scc-contact:hover{
    transform:translateY(-1px);
    box-shadow:0 10px 22px rgba(15,23,42,.08);
}

.scc-contact-avatar{
    width:48px;
    height:48px;
    border-radius:50%;
    object-fit:cover;
}

.scc-contact-name{
    font-weight:800;
    color:#0f172a;
}

.scc-contact-number{
    font-size:12px;
    color:#64748b;
    margin-top:2px;
}

.scc-contact-preview{
    font-size:13px;
    color:#334155;
    margin-top:4px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.scc-composer{
    padding:16px 22px 22px;
    border-top:1px solid rgba(148,163,184,.18);
    background:rgba(255,255,255,.78);
    backdrop-filter: blur(18px);
}

.scc-login,
.scc-empty{
    padding:18px;
    border-radius:18px;
    background:#fff;
    border:1px solid #e5e7eb;
}

@media (max-width: 980px){
    .scc-shell{
        grid-template-columns:1fr;
    }

    .scc-sidebar{
        border-right:0;
        border-bottom:1px solid rgba(148,163,184,.25);
    }

    .scc-msg{
        max-width:88%;
    }
}

.scc-book{
    display:flex;
    flex-direction:column;
    gap:14px;
}

.scc-book-section{
    border-radius:18px;
    overflow:hidden;
    border:1px solid #e5e7eb;
    background:#fff;
}

.scc-book-title{
    padding:10px 12px;
    font-weight:900;
    font-size:13px;
    letter-spacing:.06em;
    text-transform:uppercase;
    background:linear-gradient(90deg, #f1f5f9, #ffffff);
    border-bottom:1px solid #e5e7eb;
    color:#0f172a;
}

.scc-book-list{
    padding:10px;
    display:flex;
    flex-direction:column;
    gap:10px;
}

/* BOOK VISUAL EFFECT */
.scc-book-section.open{
    border-left:4px solid #22c55e;
}

.scc-book-section.closed{
    border-left:4px solid #94a3b8;
    opacity:0.95;
}

/* MINI EMPTY STATE */
.scc-empty-mini{
    font-size:12px;
    color:#94a3b8;
    padding:8px;
}