.smart-collection-card{
    margin:14px 0;
    padding:15px;
    border:1px solid var(--theme-border);
    border-radius:18px;
    background:var(--theme-surface);
    box-shadow:0 12px 30px rgba(0,0,0,.16);
}

.smart-collection-head{
    display:grid;
    grid-template-columns:auto 1fr auto;
    gap:10px;
    align-items:center;
}

.smart-k-icon{
    width:38px;
    height:38px;
    display:grid;
    place-items:center;
    border:1px solid rgba(81,230,136,.32);
    border-radius:12px;
    background:rgba(39,185,92,.09);
    color:#79efa4;
    font-weight:900;
}

.smart-collection-head>div:nth-child(2){
    min-width:0;
}

.smart-collection-head span:not(.smart-count){
    display:block;
    font-size:12px;
    letter-spacing:.12em;
    color:rgba(174,228,194,.64);
}

.smart-collection-head strong{
    display:block;
    margin-top:2px;
    font-size:15px;
    color:#f3f8f4;
}

.smart-count{
    min-width:34px;
    padding:6px 9px;
    border-radius:999px;
    background:rgba(58,207,113,.12);
    color:#79efa4;
    text-align:center;
    font-weight:850;
    font-size:13px;
}

.smart-collection-card>p{
    margin:12px 0;
    font-size:12.5px;
    line-height:1.45;
    color:var(--theme-muted);
}

.smart-primary-button,
.smart-next-button{
    width:100%;
    min-height:47px;
    border:1px solid var(--theme-border-strong);
    border-radius:14px;
    background:var(--theme-accent-soft);
    color:var(--theme-accent);
    font:inherit;
    font-weight:800;
    cursor:pointer;
}

.smart-primary-button{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 15px;
}

.smart-primary-button b{
    color:#80f0a9;
    font-size:18px;
}

.smart-primary-button:disabled,
.smart-next-button:disabled{
    opacity:.45;
    cursor:not-allowed;
}

.smart-safety-note{
    display:block;
    margin-top:9px;
    color:rgba(205,220,210,.52);
    font-size:12px;
    line-height:1.4;
}

.smart-collection-modal{
    position:fixed;
    inset:0;
    z-index:12000;
    display:none;
    align-items:flex-end;
    justify-content:center;
    padding:18px 12px max(18px,env(safe-area-inset-bottom));
    background:rgba(0,0,0,.7);
    backdrop-filter:blur(8px);
}

.smart-collection-modal.open{
    display:flex;
}

.smart-modal-card{
    width:min(720px,100%);
    max-height:min(86vh,820px);
    overflow:auto;
    border:1px solid rgba(83,224,135,.22);
    border-radius:22px;
    background:var(--theme-surface);
    box-shadow:0 28px 80px rgba(0,0,0,.55);
    padding:16px;
}

.smart-modal-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:14px;
}

.smart-modal-head span{
    display:block;
    color:rgba(112,232,156,.7);
    font-size:12px;
    letter-spacing:.12em;
}

.smart-modal-head strong{
    display:block;
    margin-top:3px;
    color:#f1f7f3;
    font-size:18px;
}

.smart-modal-head button{
    flex:0 0 38px;
    height:38px;
    border:1px solid rgba(255,255,255,.1);
    border-radius:12px;
    background:rgba(255,255,255,.04);
    color:#e9f0eb;
    font-size:24px;
    cursor:pointer;
}

.smart-batch-summary{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:9px;
    margin:14px 0;
}

.smart-batch-summary>div{
    padding:11px 12px;
    border:1px solid var(--theme-border);
    border-radius:13px;
    background:var(--theme-surface-2);
}

.smart-batch-summary span{
    display:block;
    color:var(--theme-muted);
    font-size:12px;
}

.smart-batch-summary strong{
    display:block;
    margin-top:3px;
    color:var(--theme-text);
    font-size:17px;
}

.smart-message-list{
    display:grid;
    gap:10px;
}

.smart-message-row{
    border:1px solid rgba(255,255,255,.075);
    border-radius:15px;
    background:rgba(255,255,255,.028);
    padding:12px;
}

.smart-message-row.opened{
    border-color:rgba(70,215,123,.23);
    background:rgba(46,178,94,.05);
}

.smart-message-row-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:9px;
}

.smart-message-row-head>div{
    min-width:0;
}

.smart-message-row-head strong{
    display:block;
    color:#f1f6f2;
    font-size:13.5px;
}

.smart-message-row-head div span{
    display:block;
    margin-top:2px;
    color:rgba(213,228,218,.5);
    font-size:12px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.smart-situation{
    flex:0 0 auto;
    padding:5px 7px;
    border-radius:999px;
    font-size:12px;
    font-weight:850;
    letter-spacing:.04em;
    background:rgba(255,255,255,.06);
    color:#dce6df;
}

.smart-situation.soft{
    background:rgba(57,205,112,.1);
    color:#79efa4;
}

.smart-situation.medium{
    background:rgba(220,177,65,.1);
    color:#ead077;
}

.smart-situation.firm,
.smart-situation.urgent{
    background:rgba(224,82,82,.11);
    color:#ff9d9d;
}

.smart-message-row>p{
    margin:10px 0 11px;
    padding:10px;
    border-radius:11px;
    background:rgba(0,0,0,.15);
    color:rgba(231,239,233,.76);
    font-size:12px;
    line-height:1.48;
    white-space:pre-wrap;
}

.smart-message-row-foot{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
}

.smart-message-row-foot>span{
    color:#7eeea6;
    font-size:12px;
    font-weight:800;
}

.smart-message-row-foot button{
    border:1px solid rgba(69,217,123,.22);
    border-radius:10px;
    background:rgba(45,181,94,.08);
    color:#dffff0;
    min-height:34px;
    padding:0 10px;
    font:inherit;
    font-size:12px;
    font-weight:800;
    cursor:pointer;
}

.smart-next-button{
    margin-top:13px;
}

.smart-modal-note{
    margin:10px 3px 0;
    color:rgba(204,218,208,.5);
    font-size:12px;
    line-height:1.4;
    text-align:center;
}

@media(min-width:700px){
    .smart-collection-modal{
        align-items:center;
    }
}

@media(max-width:480px){
    .smart-collection-card{
        padding:13px;
        border-radius:16px;
    }

    .smart-modal-card{
        padding:14px;
        border-radius:19px;
    }

    .smart-message-row-head{
        align-items:center;
    }
}
