#packshotphoto-upload-panel {
    clear: both;
    display: block;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    padding: 20px 24px 24px;
    margin: 24px 0 !important;
    max-width: 760px;
    box-shadow: 0 1px 3px rgba(0,0,0,.07);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
}
#packshotphoto-upload-panel .packshotphoto-panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    border-bottom: 1px solid #f0f0f1;
    padding-bottom: 14px;
}
#packshotphoto-upload-panel .packshotphoto-panel-icon {
    font-size: 22px;
    line-height: 1;
}
#packshotphoto-upload-panel .packshotphoto-panel-title {
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
    margin: 0;
}
#packshotphoto-upload-panel .packshotphoto-panel-subtitle {
    font-size: 12px;
    color: #8c8f94;
    margin: 2px 0 0;
}
#packshotphoto-upload-panel .packshotphoto-panel-badge {
    margin-left: auto;
    background: #f0f0f1;
    border: 1px solid #c3c4c7;
    color: #3c434a;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .5px;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}
#packshotphoto-upload-panel .packshotphoto-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f6f7f7;
    gap: 12px;
}
#packshotphoto-upload-panel .packshotphoto-toggle-row:last-of-type {
    border-bottom: none;
}
#packshotphoto-upload-panel .packshotphoto-toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}
#packshotphoto-upload-panel .packshotphoto-toggle-label-icon { font-size: 16px; }
#packshotphoto-upload-panel .packshotphoto-toggle-label-text {
    font-size: 13px;
    color: #1d2327;
    font-weight: 500;
}
#packshotphoto-upload-panel .packshotphoto-toggle-label-desc {
    font-size: 11px;
    color: #8c8f94;
    display: block;
    margin-top: 1px;
}
/* Toggle switch */
.packshotphoto-switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 22px;
    flex-shrink: 0;
}
.packshotphoto-switch input { opacity: 0; width: 0; height: 0; }
.packshotphoto-switch-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #d0d5dd;
    border-radius: 22px;
    transition: background .2s;
}
.packshotphoto-switch-slider:before {
    content: "";
    position: absolute;
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.packshotphoto-switch input:checked + .packshotphoto-switch-slider { background: #2271b1; }
.packshotphoto-switch input:checked + .packshotphoto-switch-slider:before { transform: translateX(16px); }
.packshotphoto-switch input:disabled + .packshotphoto-switch-slider { opacity: .45; cursor: not-allowed; }

/* Resize width inline input */
#packshotphoto-upload-panel .packshotphoto-resize-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
#packshotphoto-upload-panel .packshotphoto-resize-inline input[type=number] {
    width: 80px;
    height: 28px;
    border: 1px solid #d0d5dd;
    border-radius: 4px;
    padding: 0 8px;
    font-size: 12px;
    color: #1d2327;
    text-align: center;
}
#packshotphoto-upload-panel .packshotphoto-resize-inline span {
    font-size: 11px;
    color: #8c8f94;
}

/* Context textarea */
#packshotphoto-upload-panel .packshotphoto-context-section {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f1;
}
#packshotphoto-upload-panel .packshotphoto-context-label {
    font-size: 13px;
    font-weight: 600;
    color: #1d2327;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}
#packshotphoto-upload-panel .packshotphoto-context-label-hint {
    font-size: 11px;
    color: #8c8f94;
    font-weight: 400;
    margin-bottom: 8px;
}
#packshotphoto-upload-panel #packshotphoto-upload-context {
    width: 100%;
    min-height: 80px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 13px;
    color: #1d2327;
    resize: vertical;
    font-family: inherit;
    line-height: 1.5;
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
}
#packshotphoto-upload-panel #packshotphoto-upload-context:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34,113,177,.15);
}
#packshotphoto-upload-panel .packshotphoto-panel-note {
    font-size: 11px;
    color: #8c8f94;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Real-time PMM Upload Dashboard Styles */
#media-items .media-item {
    position: relative !important;
    padding-bottom: 24px !important;
    border-bottom: 1px solid #dcdcde !important;
}
.packshotphoto-upload-item-dashboard {
    margin-top: 12px !important;
    padding: 16px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
    clear: both !important;
}
.packshotphoto-upload-item-dashboard:hover {
    border-color: #cbd5e1 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
}
.packshotphoto-dashboard-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding-bottom: 8px !important;
    margin-bottom: 4px !important;
}
.packshotphoto-dashboard-title {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
}
.packshotphoto-dashboard-status-badge {
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 3px 9px !important;
    border-radius: 99px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    line-height: 1 !important;
}
.packshotphoto-dashboard-status-badge.status-processing {
    background: #f0f6fc !important;
    color: #0969da !important;
    border: 1px solid #c8e2f8 !important;
    animation: packshotphoto-pulse 2s infinite ease-in-out !important;
}
.packshotphoto-dashboard-status-badge.status-complete {
    background: #ecfdf5 !important;
    color: #047857 !important;
    border: 1px solid #a7f3d0 !important;
}
.packshotphoto-dashboard-status-badge.status-idle {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0 !important;
}
.packshotphoto-spinner-bullet {
    width: 8px !important;
    height: 8px !important;
    border: 2px solid #0969da !important;
    border-top-color: transparent !important;
    border-radius: 50% !important;
    display: inline-block !important;
    animation: packshotphoto-spin 0.8s infinite linear !important;
    box-sizing: border-box !important;
}
@keyframes packshotphoto-spin {
    to { transform: rotate(360deg); }
}
@keyframes packshotphoto-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
.packshotphoto-dashboard-fields-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
}
@media screen and (max-width: 782px) {
    .packshotphoto-dashboard-fields-grid {
        grid-template-columns: 1fr !important;
    }
}
.packshotphoto-dashboard-field-box {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
}
.packshotphoto-dashboard-field-label {
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: #64748b !important;
}
.packshotphoto-dashboard-field-box .packshotphoto-cell-wrapper {
    position: relative !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    background: #fff !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05) !important;
    transition: all 0.2s ease !important;
}
.packshotphoto-dashboard-field-box .packshotphoto-cell-wrapper:focus-within {
    border-color: #2271b1 !important;
    box-shadow: 0 0 0 3px rgba(34,113,177,0.15), inset 0 1px 2px rgba(0,0,0,0.05) !important;
}
.packshotphoto-dashboard-field-box .packshotphoto-cell-wrapper textarea {
    width: 100% !important;
    min-height: 54px !important;
    max-height: 120px !important;
    border: none !important;
    padding: 6px 8px !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    box-sizing: border-box !important;
    background: transparent !important;
    color: #1e293b !important;
    resize: vertical !important;
    box-shadow: none !important;
    outline: none !important;
    margin: 0 !important;
}
.packshotphoto-dashboard-actions {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    border-top: 1px solid #f1f5f9 !important;
    padding-top: 10px !important;
    margin-top: 4px !important;
}
.packshotphoto-dashboard-actions button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    height: 26px !important;
    padding: 0 10px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    box-sizing: border-box !important;
    border: 1px solid #d0d5dd !important;
    background: #fff !important;
    color: #344054 !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important;
}
.packshotphoto-dashboard-actions button:hover {
    background: #f9fafb !important;
    border-color: #cbd5e1 !important;
    color: #1d2939 !important;
}
.packshotphoto-dashboard-actions .packshotphoto-ai-btn {
    background: #2271b1 !important;
    border-color: #135e96 !important;
    color: #fff !important;
    box-shadow: 0 1px 2px rgba(34,113,177,0.15) !important;
}
.packshotphoto-dashboard-actions .packshotphoto-ai-btn:hover {
    background: #135e96 !important;
    border-color: #0c3d61 !important;
    color: #fff !important;
}
