.aisub-fin { display: none; }

.aisub-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 26px 14px;
    border: 1.5px dashed var(--ais-line, rgba(139, 92, 246, .35));
    border-radius: var(--cm-radius-md, 12px);
    background: var(--ais-soft, rgba(139, 92, 246, .05));
    cursor: pointer;
    text-align: center;
    transition: border-color .16s, background .16s;
}
.aisub-drop:hover,
.aisub-drop.over {
    border-color: var(--ais-accent, #8b5cf6);
    background: var(--ais-soft-hover, rgba(139, 92, 246, .11));
}
.aisub-drop-ic { font-size: 26px; color: var(--ais-accent, #8b5cf6); }
.aisub-drop-ten { font-size: 13px; font-weight: 600; color: var(--cm-text, #e5e7eb); }
.aisub-drop-sub { font-size: 11px; color: var(--cm-text-secondary, #a3b0c2); line-height: 1.5; }

.aisub-tep {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--ais-line, rgba(139, 92, 246, .3));
    border-radius: var(--cm-radius-md, 12px);
    background: var(--ais-soft, rgba(139, 92, 246, .05));
}
.aisub-tep.loi { border-color: var(--cm-danger, #ef4444); }
.aisub-tep-ic { font-size: 20px; color: var(--ais-accent, #8b5cf6); flex-shrink: 0; }
.aisub-tep-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.aisub-tep-ten {
    font-size: 13px;
    font-weight: 600;
    color: var(--cm-text, #e5e7eb);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.aisub-tep-sub { font-size: 11px; color: var(--cm-text-muted, #9ca3af); }
.aisub-tep-x {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--cm-text-muted, #9ca3af);
    cursor: pointer;
}
.aisub-tep-x:hover { background: rgba(239, 68, 68, .14); color: var(--cm-danger, #ef4444); }

.aisub-bar {
    height: 4px;
    border-radius: 3px;
    background: rgba(148, 163, 184, .25);
    overflow: hidden;
}
.aisub-bar-in {
    display: block;
    height: 100%;
    border-radius: 3px;
    background: var(--ais-accent, #8b5cf6);
    transition: width .2s;
}


.aisub-kho {
    display: flex;
    align-items: center;
    gap: var(--cm-space-sm);
    flex-wrap: wrap;
    margin-top: var(--cm-space-sm);
}
.aisub-kho > span {
    flex: 1 1 140px;
    min-width: 0;
    font-size: .74rem;
    line-height: 1.45;
    color: var(--cm-text-secondary, #a3b0c2);
}






.aisub-xem {
    margin: 0;
    padding: 12px 14px;
    max-height: 320px;
    overflow: auto;
    border-top: 1px solid var(--cm-border, rgba(148, 163, 184, .2));
    background: rgba(2, 6, 23, .35);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    line-height: 1.6;
    color: var(--cm-text, #e5e7eb);
    white-space: pre-wrap;
    word-break: break-word;
}

@media (max-width: 640px) {
    .aisub-drop { padding: 20px 10px; }
}

.aisub-xt {
  margin: var(--cm-space-sm) 0 0;
}

.aisub-xt-a {
  display: block;
  width: 100%;
  height: 38px;
}

.aisub-xt-v {
  display: block;
  width: 100%;
  max-height: 190px;
  border-radius: var(--cm-radius-md);
  background: #000;
}
