.gc-bbcode-help{
    display:grid;
    gap:10px;
    margin-top:4px;
    padding:12px;
    border:1px solid rgba(148,163,184,.35);
    border-radius:14px;
    background:linear-gradient(180deg,#f8fafc,#ffffff);
}

.gc-bbcode-help-head{
    display:flex;
    flex-wrap:wrap;
    align-items:flex-start;
    justify-content:space-between;
    gap:8px 16px;
}

.gc-bbcode-help-title{
    display:grid;
    gap:2px;
}

.gc-bbcode-help-title strong{
    font-size:13px;
    color:#0f172a;
}

.gc-bbcode-help-title span{
    font-size:12px;
    color:#64748b;
}

.gc-bbcode-toolbar{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    align-items:center;
}

.gc-bbcode-toolbar button,
.gc-bbcode-image-insert,
.gc-bbcode-image-copy,
.gc-bbcode-image-delete,
.gc-bbcode-preview-button{
    border:1px solid rgba(148,163,184,.55);
    background:#ffffff;
    color:#0f172a;
    border-radius:9px;
    padding:7px 10px;
    font-size:12px;
    line-height:1;
    cursor:pointer;
    box-shadow:0 1px 1px rgba(15,23,42,.04);
}

.gc-bbcode-toolbar button:hover,
.gc-bbcode-image-insert:hover,
.gc-bbcode-image-copy:hover{
    background:#eef2ff;
    border-color:#818cf8;
}

.gc-bbcode-toolbar .gc-bbcode-strong{
    background:#0f172a;
    color:#fff;
    border-color:#0f172a;
}

.gc-bbcode-toolbar .gc-bbcode-strong:hover{
    background:#1e293b;
}

.gc-bbcode-toolbar .gc-bbcode-soft{
    background:#f8fafc;
    color:#334155;
}

.gc-bbcode-toolbar .gc-bbcode-separator{
    width:1px;
    height:24px;
    background:rgba(148,163,184,.45);
    margin:0 2px;
}

.gc-bbcode-samples{
    display:grid;
    gap:5px;
    font-size:12px;
    color:#64748b;
}

.gc-bbcode-samples code,
.gc-bbcode-images-list code{
    background:#f1f5f9;
    border-radius:6px;
    padding:2px 5px;
    color:#334155;
}

.gc-comment-bbcode-help{
    margin:14px 0 12px;
}

.gc-comment-bbcode-help .gc-bbcode-toolbar{
    gap:5px;
}

.gc-bbcode-preview-actions{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    align-items:center;
}

.gc-bbcode-preview-button{
    border-color:rgba(37,99,235,.35);
    background:#eff6ff;
    color:#1d4ed8;
}

.gc-bbcode-preview-button:hover{
    background:#dbeafe;
}

.gc-bbcode-preview-button:disabled{
    opacity:.6;
    cursor:wait;
}

.gc-bbcode-preview-box{
    display:grid;
    gap:8px;
    margin-top:6px;
    padding:12px;
    border:1px dashed rgba(148,163,184,.65);
    border-radius:12px;
    background:#ffffff;
}

.gc-bbcode-preview-title{
    font-size:12px;
    font-weight:700;
    color:#334155;
}

.gc-bbcode-preview-content{
    min-height:38px;
    font-size:14px;
    color:#0f172a;
}

.gc-bbcode-preview-content .muted{
    margin:0;
}

.gc-bbcode-images-help{
    display:grid;
    gap:10px;
    margin-top:10px;
}

.gc-bbcode-images-list{
    display:grid;
    gap:10px;
    font-size:12px;
    color:#64748b;
}

.gc-bbcode-images-title{
    display:grid;
    gap:2px;
}

.gc-bbcode-images-title strong{
    color:#0f172a;
    font-size:13px;
}

.gc-bbcode-images-title span{
    color:#64748b;
    font-size:12px;
}

.gc-bbcode-images-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
    gap:10px;
}

.gc-bbcode-image-card{
    display:grid;
    grid-template-columns:112px minmax(0,1fr);
    gap:10px;
    align-items:start;
    padding:10px;
    border:1px solid rgba(148,163,184,.35);
    border-radius:14px;
    background:#ffffff;
}

.gc-bbcode-image-thumb{
    position:relative;
    display:block;
    width:112px;
    height:84px;
    overflow:hidden;
    border:0;
    padding:0;
    border-radius:12px;
    background:#0f172a;
    cursor:pointer;
}

.gc-bbcode-image-thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    opacity:.9;
    transition:transform .16s ease, opacity .16s ease;
}

.gc-bbcode-image-thumb span{
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    padding:5px 6px;
    background:linear-gradient(180deg,rgba(15,23,42,0),rgba(15,23,42,.86));
    color:#fff;
    font-size:12px;
    font-weight:700;
    text-align:center;
}

.gc-bbcode-image-thumb:hover img{
    transform:scale(1.04);
    opacity:1;
}

.gc-bbcode-image-card-body{
    display:grid;
    gap:6px;
    min-width:0;
}

.gc-bbcode-image-card-body strong,
.gc-bbcode-image-card-body code{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.gc-bbcode-image-card-body strong{
    color:#0f172a;
    font-size:12px;
}

.gc-bbcode-image-card-body code{
    display:block;
}

.gc-bbcode-image-actions{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
}

.gc-bbcode-image-insert{
    background:#eff6ff;
    border-color:rgba(37,99,235,.35);
    color:#1d4ed8;
    font-family:inherit;
    width:auto;
    white-space:nowrap;
}

.gc-bbcode-image-copy{
    color:#334155;
}

.gc-bbcode-image-delete{
    color:#b91c1c;
    border-color:rgba(248,113,113,.45);
    background:#fff7f7;
}

.gc-bbcode-image-delete:hover{
    background:#fee2e2;
}

@media (max-width:720px){
    .gc-bbcode-images-grid{
        grid-template-columns:1fr;
    }

    .gc-bbcode-image-card{
        grid-template-columns:96px minmax(0,1fr);
    }

    .gc-bbcode-image-thumb{
        width:96px;
        height:72px;
    }
}

.gc-screenshot-manager{
    display:grid;
    gap:12px;
}

.gc-screenshot-manager-empty{
    padding:12px;
    border:1px solid rgba(148,163,184,.35);
    border-radius:14px;
    background:#f8fafc;
    color:#64748b;
    font-size:13px;
}

.gc-screenshot-manager-empty p{
    margin:0;
}

.gc-screenshot-upload{
    display:grid;
    gap:8px;
}

.gc-screenshot-upload-label{
    display:grid;
    gap:5px;
    padding:14px;
    border:1px dashed rgba(37,99,235,.35);
    border-radius:14px;
    background:#f8fafc;
    cursor:pointer;
}

.gc-screenshot-upload-label:hover{
    background:#eef2ff;
    border-color:#6366f1;
}

.gc-screenshot-upload-label input{
    display:none;
}

.gc-screenshot-upload-label span{
    font-size:14px;
    font-weight:700;
    color:#1d4ed8;
}

.gc-screenshot-upload-label small{
    font-size:12px;
    color:#64748b;
}

.gc-screenshot-upload-status{
    min-height:18px;
    font-size:12px;
    color:#64748b;
}

.gc-screenshot-empty{
    margin:0;
    color:#64748b;
    font-size:12px;
}

/* Compact comment editor preview */
.gc-comment-editor-compact {
    margin: 0;
}

.gc-comment-editor-compact .gc-bbcode-preview-box[hidden] {
    display: none !important;
}

.gc-comment-editor-compact .gc-bbcode-preview-box {
    margin-top: 0;
}

.gc-comment-editor-compact .gc-bbcode-toolbar {
    gap: 5px;
}
