#jpgtopptx-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    font-family: sans-serif;
}

#jpgtopptx-wrapper h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.jpgtopptx-hint {
    text-align: center;
    color: #6e6e73;
    font-size: 13px;
    margin: 0 0 1rem;
    line-height: 1.5;
}

#jpgtopptx-drop {
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    margin: 1rem 0;
    cursor: pointer;
}

#jpgtopptx-drop.dragover { background: #f8f9ff; }

#jpgtopptx-pick {
    margin-top: 10px;
    padding: 0.5rem 1rem;
    border: none;
    background: #4e73df;
    color: white;
    border-radius: 6px;
    cursor: pointer;
}

#jpgtopptx-options {
    margin-bottom: 1.25rem;
}

.jpgtopptx-options-label {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.jpgtopptx-orientation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.jpgtopptx-orient {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 10px 12px;
    border: 2px solid #e5e5ea;
    border-radius: 12px;
    background: #fafafa;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.jpgtopptx-orient:hover {
    border-color: #b8c4f0;
    background: #f8f9ff;
}

.jpgtopptx-orient.is-active {
    border-color: #4e73df;
    background: #f0f4ff;
    box-shadow: 0 0 0 1px #4e73df;
}

.jpgtopptx-orient-icon {
    display: block;
    border: 2px solid #4e73df;
    border-radius: 4px;
    background: linear-gradient(135deg, #dbe4ff 0%, #c7d4ff 100%);
}

.jpgtopptx-orient-icon--landscape {
    width: 56px;
    height: 32px;
}

.jpgtopptx-orient-icon--portrait {
    width: 32px;
    height: 56px;
}

.jpgtopptx-orient-text {
    font-size: 15px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.2;
}

.jpgtopptx-orient-sub {
    font-size: 12px;
    color: #6e6e73;
    line-height: 1.2;
}

#jpgtopptx-filenames {
    margin-bottom: 1rem;
    color: #333;
    max-height: 280px;
    overflow-y: auto;
}

.jpgtopptx-file-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.jpgtopptx-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    background: #f0f0f0;
    border: 1px solid #e5e5ea;
}

.jpgtopptx-file-meta {
    min-width: 0;
    flex: 1;
}

.jpgtopptx-file-name {
    display: block;
    font-size: 13px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jpgtopptx-file-size {
    display: block;
    font-size: 12px;
    color: #6e6e73;
    margin-top: 2px;
}

#jpgtopptx-start,
.jpgtopptx-reset {
    padding: 0.6rem 1.2rem;
    background: #4e73df;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.jpgtopptx-reset {
    display: block;
    margin: 1rem auto 0;
    background: #6c757d;
}

.jpgtopptx-bar-track {
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

#jpgtopptx-bar {
    height: 100%;
    width: 0%;
    background: #4e73df;
    transition: width 0.4s;
}

#jpgtopptx-status {
    text-align: center;
    margin-top: 0.5rem;
    color: #333;
    font-size: 14px;
}

#jpgtopptx-result {
    text-align: center;
    margin-top: 1.5rem;
}

#jpgtopptx-result-info {
    margin: 0 0 1rem;
    color: #333;
    font-size: 14px;
}

#jpgtopptx-link {
    background: #28a745;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
}

#jpgtopptx-warning {
    color: #856404;
    background: #fff8e1;
    border: 1px solid #ffe08a;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-top: 1rem;
    font-size: 13px;
    line-height: 1.5;
}

#jpgtopptx-error {
    color: #e74c3c;
    text-align: center;
    margin-top: 1rem;
    font-size: 14px;
    line-height: 1.5;
}

#jpgtopptx-progress { margin-top: 1.5rem; }
