.pdf-metadata-editor-wrapper {
    --pme-bg: #ffffff;
    --pme-panel: #ffffff;
    --pme-panel-alt: #f8fafc;
    --pme-border: #e2e8f0;
    --pme-border-light: #cbd5e1;
    --pme-text: #0f172a;
    --pme-text-muted: #475569;
    --pme-text-dim: #64748b;
    --pme-blue: #1b2fe7;
    --pme-blue-hover: #1424b8;
    --pme-green: #16a34a;
    --pme-danger: #dc2626;
    --pme-mono: 'JetBrains Mono', monospace;
    --pme-display: 'Space Grotesk', sans-serif;
    --pme-body: 'Inter', sans-serif;

    width: 100%;
    max-width: 920px;
    margin: 0 auto 30px auto;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
    font-family: var(--pme-body);
    color: var(--pme-text);
}

.pdf-metadata-editor-wrapper * {
    box-sizing: border-box;
}

.pdf-metadata-editor-wrapper button {
    font-family: inherit;
    cursor: pointer;
}

.pdf-metadata-editor-wrapper input,
.pdf-metadata-editor-wrapper textarea {
    font-family: inherit;
}

.pme-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: var(--pme-display);
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 20px;
    color: #0f172a;
}

.pme-brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1b2fe7;
    border: 1px solid #1b2fe7;
    color: #ffffff;
    font-family: var(--pme-mono);
    font-size: 14px;
    font-weight: 600;
}

/* file bar */
.pme-filebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 24px;
}

.pme-filebar .fname {
    font-family: var(--pme-mono);
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pme-filebar .fsize {
    color: #64748b;
    font-size: 12px;
    margin-left: 8px;
}

.pme-btn {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    transition: all .2s ease;
}

.pme-btn:hover {
    border-color: #1b2fe7;
    color: #1b2fe7;
    background: #f8fafc;
}

.pme-btn-primary {
    background: #1b2fe7;
    border-color: #1b2fe7;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(27, 47, 231, 0.25);
}

.pme-btn-primary:hover {
    background: #1424b8;
    border-color: #1424b8;
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(27, 47, 231, 0.4);
}

.pme-btn-small {
    padding: 6px 14px;
    font-size: 12.5px;
}

.pme-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 760px) {
    .pme-grid {
        grid-template-columns: 1fr;
    }
}

.pme-panel-title {
    font-family: var(--pme-mono);
    font-size: 11.5px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 600;
    margin: 0 0 16px;
}

.pme-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.pme-field {
    margin-bottom: 16px;
}

.pme-field label {
    display: block;
    font-family: var(--pme-mono);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .3px;
    text-transform: uppercase;
    color: #475569;
    margin-bottom: 7px;
}

.pme-field input,
.pme-field textarea {
    width: 100%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #0f172a;
    padding: 10px 14px;
    font-size: 14px;
    outline: none;
    transition: border-color .2s ease;
}

.pme-field textarea {
    resize: vertical;
    min-height: 72px;
}

.pme-field input:focus,
.pme-field textarea:focus {
    outline: none;
    border-color: #1b2fe7;
    box-shadow: 0 0 0 3px rgba(27, 47, 231, 0.1);
}

.pme-readonly-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pme-ro-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.pme-ro-row:last-child {
    border-bottom: none;
}

.pme-ro-key {
    font-family: var(--pme-mono);
    font-size: 11.5px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.pme-ro-val {
    font-family: var(--pme-mono);
    font-size: 13px;
    font-weight: 500;
    color: #0f172a;
    text-align: right;
}

.pme-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.pme-status {
    font-size: 13px;
    font-weight: 600;
    color: #16a34a;
    margin-top: 14px;
    display: none;
}

.home-top-h1 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

