.po-editor {
    margin: 20px 0;
}
.po-editor-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
}
.po-editor-bar .tool-secondary-button {
    min-height: 46px;
}
.po-editor-bar input[type="number"] {
    width: 88px;
}
.po-editor-bar label {
    display: flex;
    gap: 8px;
    align-items: center;
    min-height: 46px;
}
.po-editor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
}
.po-page-card {
    border: 1px solid var(--site-border, #dbe3ee);
    border-radius: 10px;
    padding: 10px;
    background: var(--site-surface, #fff);
    min-width: 0;
    position: relative;
    transition: box-shadow 0.15s;
}
.po-page-card.is-selected {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px #2563eb25;
}
.po-page-card.is-drop-target {
    outline: 3px solid #2563eb;
}
.po-page-card > label {
    display: flex;
    gap: 8px;
    align-items: center;
    font-weight: 600;
    min-height: 32px;
}
.po-page-card img {
    width: 100%;
    height: 190px;
    object-fit: contain;
    display: block;
    background: var(--site-surface-muted, #f1f5f9);
    margin-bottom: 8px;
}
.po-page-card .po-thumbnail {
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--site-surface-muted, #f1f5f9);
    margin-bottom: 8px;
    border-radius: 4px;
    overflow: hidden;
}
.po-page-card small {
    display: block;
    overflow-wrap: anywhere;
    color: var(--site-muted, #64748b);
    line-height: 1.4;
    font-size: 12px;
    min-height: 34px;
}
.po-page-card input {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.po-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 14px;
}
.po-editor-insert {
    margin-top: 14px;
}
.po-editor-insert summary {
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 12px;
}
.po-editor-insert .tool-input,
.po-editor-insert .tool-select {
    min-height: 46px;
}
.po-candidate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin-top: 12px;
}
.po-candidate-grid label {
    border: 1px solid var(--site-border, #dbe3ee);
    border-radius: 8px;
    padding: 8px;
    overflow-wrap: anywhere;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.po-candidate-grid img {
    width: 100%;
    height: 130px;
    object-fit: contain;
}
.po-editor select,
.po-editor-options select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-position: right 8px center;
    background-repeat: no-repeat;
    padding-right: 32px;
}
@media (max-width: 600px) {
    .po-editor-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .po-page-card {
        padding: 8px;
    }
    .po-page-card img,
    .po-page-card .po-thumbnail {
        height: 155px;
    }
    .po-editor-bar {
        gap: 6px;
    }
    .po-editor-bar label {
        width: 100%;
    }
}
.po-editor-options{margin-top:16px;border-top:1px solid var(--site-border);padding-top:14px}.po-editor-options>summary{font-weight:600;cursor:pointer;margin-bottom:16px}
