#lic-v3-toolbar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 999999;
    max-width: 980px;
    margin: auto;
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 10px 12px;
    border: 2px solid #f5b720;
    border-radius: 10px;
    background: #082b55;
    color: #fff;
    box-shadow: 0 8px 28px rgba(0,0,0,.3);
    font: 14px/1.2 Arial,sans-serif;
}

#lic-v3-toolbar strong {
    margin-right: auto;
}

#lic-v3-toolbar button,
#lic-v3-panel button,
#lic-v3-images button {
    border: 1px solid #c9d2dc;
    border-radius: 6px;
    padding: 8px 11px;
    background: #fff;
    color: #082b55;
    font-weight: 700;
    cursor: pointer;
}

#lic-v3-toolbar .primary {
    background: #f5b720;
    border-color: #f5b720;
    color: #172232;
}

#lic-v3-toolbar button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

#lic-v3-status {
    min-width: 145px;
    font-size: 12px;
}

#lic-v3-panel,
#lic-v3-images {
    position: fixed;
    z-index: 999998;
    background: #fff;
    color: #17212b;
    border: 1px solid #ccd5df;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
    font: 14px/1.4 Arial,sans-serif;
}

#lic-v3-panel {
    top: 90px;
    right: 16px;
    width: 285px;
    padding: 14px;
    transform: translateX(340px);
    transition: transform .2s ease;
}

#lic-v3-panel.open {
    transform: translateX(0);
}

#lic-v3-images {
    top: 45px;
    right: 12px;
    bottom: 85px;
    width: min(430px, calc(100vw - 24px));
    padding: 14px;
    overflow-y: auto;
    transform: translateX(470px);
    transition: transform .2s ease;
}

#lic-v3-images.open {
    transform: translateX(0);
}

#lic-v3-panel .head,
#lic-v3-images .head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 9px;
}

#lic-v3-panel .head button,
#lic-v3-images .head button {
    padding: 3px 8px;
    font-size: 20px;
}

#lic-v3-name {
    padding: 7px;
    background: #f1f4f6;
    border-radius: 5px;
    font-size: 12px;
    word-break: break-word;
}

#lic-v3-panel .actions {
    display: grid;
    gap: 8px;
    margin-top: 11px;
}

#lic-v3-panel p,
#lic-v3-images .intro {
    font-size: 12px;
    color: #64707c;
}

.image-card {
    display: grid;
    grid-template-columns: 115px 1fr;
    gap: 10px;
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid #dde3e9;
    border-radius: 8px;
}

.image-card img {
    width: 115px;
    height: 78px;
    object-fit: cover;
    border-radius: 5px;
    background: #e9edf1;
}

.image-card .meta {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
}

.image-card small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #697582;
}

.image-card button {
    margin-top: auto;
    padding: 6px 8px;
}

body.lic-v3-editing main *,
body.lic-v3-editing .site-main *,
body.lic-v3-editing .content-area *,
body.lic-v3-editing .entry-content * {
    cursor: pointer;
}

body.lic-v3-editing [contenteditable="true"] {
    cursor: text !important;
    outline: 3px solid #25a1e8 !important;
    outline-offset: 3px;
}

.lic-v3-selected {
    outline: 3px solid #f5b720 !important;
    outline-offset: 3px !important;
}

@media (max-width: 780px) {
    #lic-v3-toolbar {
        left: 6px;
        right: 6px;
        bottom: 6px;
        flex-wrap: wrap;
        padding: 8px;
    }

    #lic-v3-toolbar strong {
        width: 100%;
    }

    #lic-v3-toolbar button {
        flex: 1 1 30%;
        font-size: 12px;
        padding: 7px;
    }

    #lic-v3-status {
        width: 100%;
    }

    #lic-v3-panel {
        top: 55px;
        right: 7px;
        width: min(285px, calc(100vw - 14px));
    }

    #lic-v3-images {
        top: 40px;
        right: 6px;
        bottom: 120px;
        width: calc(100vw - 12px);
    }
}
