.pdf-rotate-container { max-width: 1280px; }
.pdf-rotate-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 24px; align-items: start; }
.pdf-rotate-main, .pdf-rotate-sidebar { min-width: 0; }
.pdf-rotate-upload-panel { padding: 26px; }
.pdf-rotate-dropzone { min-height: 170px; margin-top: 22px; }
.pdf-rotate-pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; margin-top: 20px; }
.pdf-rotate-empty { display: flex; min-height: 280px; grid-column: 1 / -1; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 28px; border: 1px dashed #c8d5da; background: #fbfcfc; color: #72818a; text-align: center; }
.pdf-rotate-empty i { color: #b5d334; font-size: 36px; }
.pdf-rotate-empty strong { color: #263740; }
.pdf-rotate-page-card { padding: 12px; border: 1px solid #dce6ea; background: #fff; box-shadow: 0 8px 22px rgba(22,33,43,.05); }
.pdf-rotate-page-card__header, .pdf-rotate-page-card__actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pdf-rotate-page-card__header { margin-bottom: 10px; color: #263740; font-size: 12px; }
.pdf-rotate-page-card__header span { color: #789300; font-weight: 800; }
.pdf-rotate-canvas-wrap { display: flex; min-height: 190px; align-items: center; justify-content: center; overflow: hidden; padding: 8px; border: 1px solid #e2e9ec; background: #f5f8fa; }
.pdf-rotate-canvas-wrap canvas { display: block; max-width: 100%; height: auto; background: #fff; box-shadow: 0 2px 8px rgba(22,33,43,.12); }
.pdf-rotate-page-card__actions { margin-top: 10px; }
.pdf-rotate-page-card__actions button, .pdf-secondary-button, .pdf-reset-button { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; gap: 8px; border: 1px solid #d5e0e4; background: #fff; color: #263740; cursor: pointer; font: inherit; font-size: 12px; font-weight: 800; }
.pdf-rotate-page-card__actions button { width: 50%; color: #789300; }
.pdf-rotate-page-card__actions button:hover, .pdf-secondary-button:hover, .pdf-reset-button:hover { border-color: #b5d334; background: #f5f9e5; }
.pdf-rotate-sidebar .pdf-upload-panel { position: sticky; top: 20px; }
.pdf-rotate-sidebar h2 { margin: 7px 0 12px; color: #16212b; font-size: 23px; }
.pdf-rotate-help { margin: 0; color: #687880; font-size: 13px; line-height: 1.6; }
.pdf-rotate-global-actions { display: grid; gap: 9px; margin-top: 22px; }
.pdf-secondary-button, .pdf-reset-button { width: 100%; }
.pdf-reset-button { color: #8e4545; }
.pdf-rotate-actions { display: grid; gap: 12px; }
.pdf-rotate-actions .pdf-primary-button { width: 100%; }
.pdf-rotate-actions .pdf-status { display: block; }
@media (max-width: 991px) { .pdf-rotate-workspace { grid-template-columns: 1fr; } .pdf-rotate-sidebar .pdf-upload-panel { position: static; } }
@media (max-width: 575px) { .pdf-rotate-upload-panel { padding: 20px; } .pdf-rotate-pages { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .pdf-rotate-page-card { padding: 8px; } }
