.po-files { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.po-file { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border: 1px solid var(--cc-line); border-radius: 12px; background: var(--cc-card); }
.po-file.is-err { border-color: rgba(239, 68, 68, .45); }
.po-letter { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 9px; background: var(--cc-teal); color: #fff; font-size: .8rem; font-weight: 800; }
.po-file.is-err .po-letter { background: #EF4444; }
.po-file-meta { display: grid; gap: 2px; min-width: 0; }
.po-file-meta b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .82rem; font-weight: 600; color: var(--cc-ink); }
.po-file-meta .pm-sub { grid-area: auto; }
.po-file .pm-del { grid-area: auto; }
.po-file .pm-pass { grid-area: auto; grid-column: 2 / -1; margin: 2px 0 0; }
.po-file .pm-pass .pm-pass-in { max-width: 260px; }

.po-hist { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.po-hist .pm-hbtn { height: 32px; }
.po-hist .pm-hbtn:disabled { opacity: .4; pointer-events: none; }

.po-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.po-tg { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--cc-line); border-radius: 11px; background: var(--cc-soft); }
.po-tg button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 30px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--cc-ink-2); font: 600 .74rem 'Poppins', sans-serif; white-space: nowrap; cursor: pointer; transition: background .2s, color .2s, opacity .2s; -webkit-tap-highlight-color: transparent; }
.po-tg button i { font-size: 12px; }
.po-tg button:hover { background: var(--cc-card); color: var(--cc-teal); }
html:not(.cf-light) .po-tg button:hover { color: var(--cc-bright); }
.po-tg button:disabled { opacity: .35; pointer-events: none; }
.po-tg .po-ic { width: 32px; padding: 0; }
.po-tg .po-ic-del:hover { color: #EF4444; }
.po-tg .po-ic-del.is-on { background: #EF4444; color: #fff; }
.po-tg .po-delsel { background: #EF4444; color: #fff; margin-left: 2px; }
.po-tg .po-delsel:hover { background: #DC2626; color: #fff; }
.po-tg .po-delsel[hidden] { display: none; }
.po-app .ps-pa-rm { display: none; }
.po-app.is-del .ps-pa-rm { display: flex; }
.po-app.is-del .ps-pa-rot { display: none; }

.po-app .ps-pg-acts { justify-content: center; gap: 6px; }
.po-app .ps-pa-rot { background: #0F172A; }
.po-app .ps-pa-rot:hover { background: #1E293B; }
html:not(.cf-light) .po-app .ps-pa-rot { background: #334155; }
.po-app .ps-pa-rm { background: #EF4444; }
.po-app .ps-pa-rm:hover { background: #DC2626; }
.po-app .ps-pg-box img { transition: transform .25s ease; }
.po-app .ps-pg-chk { cursor: pointer; }
.po-app .ps-pg { cursor: grab; }
.po-blank { width: calc(100% - 22px); height: calc(100% - 22px); max-width: 76%; aspect-ratio: 1 / 1.414; display: flex; align-items: center; justify-content: center; background: #fff; box-shadow: 0 1px 4px rgba(15, 23, 42, .12); color: #94A3B8; font-size: .66rem; font-weight: 600; transition: transform .25s ease; }
.po-rot { position: absolute; left: 6px; top: 6px; min-width: 22px; height: 22px; padding: 0 6px; display: flex; align-items: center; justify-content: center; gap: 3px; border-radius: 7px; background: var(--cc-teal); color: #fff; font-size: .62rem; font-weight: 800; }
.po-rot:empty { display: none; }

.po-tips { display: grid; gap: 8px; margin: 0; padding: 12px 14px; border: 1px dashed var(--cc-line); border-radius: 12px; list-style: none; }
.po-tips li { display: flex; align-items: center; gap: 10px; font-size: .72rem; line-height: 1.4; color: var(--cc-ink-3); }
.po-tips i { width: 14px; flex-shrink: 0; text-align: center; color: var(--cc-teal); font-size: 12px; }
html:not(.cf-light) .po-tips i { color: var(--cc-bright); }

.po-page #poPreview { flex: 1.7 1 0; }
.po-page #poRedo { flex: 1 1 0; }
.po-page #poShareFile { flex: 0 0 44px; padding: 0; }
.po-page #poShareFile span { display: none; }

@media (min-width: 761px) {
    .po-page .qg-note { gap: 6px; font-size: .68rem; white-space: nowrap; letter-spacing: -.01em; }
}
@media (max-width: 760px) {
    .po-file .pm-pass .pm-pass-in { max-width: none; }
    .po-tips { display: none; }
}
@media (max-width: 600px) {
    .po-tools { gap: 8px; }
    .po-tg { flex: 1 1 100%; }
    .po-tg button { flex: 1 1 auto; padding: 0 6px; }
    .po-tg .po-ic { flex: 0 0 34px; }
    .po-hist { order: 2; }
    .po-hist .pm-hbtn { padding: 0 8px; }
}