/* Cache-neutral, theme-independent Dark + Crimson post controls. */
.wpcum-engagement{color-scheme:dark;color:#f5f5f5;background:#171717;border:1px solid #333;border-radius:14px;padding:14px;margin:24px 0;font:500 14px/1.5 system-ui,sans-serif;box-sizing:border-box;min-width:0}
.wpcum-engagement-buttons{display:flex;gap:9px;flex-wrap:wrap}.wpcum-engagement button{appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:8px 15px;border:1px solid #454545;border-radius:10px;background:#202020;color:#f5f5f5;font:600 13px/1.3 system-ui,sans-serif;cursor:pointer;box-shadow:none;text-transform:none;letter-spacing:normal}.wpcum-engagement button:hover{border-color:#dc2626}.wpcum-engagement button[aria-pressed=true]{background:#381717;border-color:#dc2626;color:#ff9292}.wpcum-engagement button[aria-pressed=true] svg{fill:currentColor;stroke:currentColor}.wpcum-engagement button:disabled{opacity:.5;cursor:wait}.wpcum-engagement button:focus-visible{outline:2px solid #ff7777;outline-offset:3px}.wpcum-feedback{font-size:12px;color:#e5b5b5;margin-top:8px}.wpcum-feedback:empty{display:none}.wpcum-engagement a{color:#ff9292}.wpcum-library-item{display:flex;align-items:flex-start;gap:15px;border-top:1px solid #333;padding:18px 0}.wpcum-thumb{display:block;flex:0 0 92px;width:92px;height:76px;object-fit:cover;border-radius:10px;background:#252525}.wpcum-thumb-empty{display:grid;place-items:center;color:#ff7777}.wpcum-item-body{flex:1;min-width:0}.wpc-customer-root a.wpcum-item-title{font-size:16px;font-weight:700;text-decoration:none}.wpc-customer-root a.wpcum-item-title:hover{text-decoration:underline}.wpcum-item-body>small{display:block;font-size:12px;color:#b4b4b4;margin-top:4px}.wpcum-library .wpcum-engagement{padding:0;border:0;background:none;margin:10px 0 0}.wpcum-library .wpcum-engagement button{min-height:40px;padding:8px 12px}.wpcum-empty{text-align:center;padding:36px 12px}.wpcum-empty>svg{color:#ff7777;width:30px;height:30px;margin-bottom:12px}.wpcum-pagination{display:flex;flex-wrap:wrap;gap:14px;align-items:center;justify-content:center;border-top:1px solid #333;padding-top:16px;font-size:13px}.wpcum-overview-library{margin-top:16px}.wpcum-overview-library .wpc-quick-grid{margin-top:10px}.wpcum-overview-library .wpc-quick svg{color:#ff7777}@media(max-width:480px){.wpcum-thumb{flex-basis:64px;width:64px;height:60px}.wpcum-library-item{gap:10px}.wpcum-engagement-buttons{gap:6px}.wpcum-engagement button{padding:8px 10px}}
/* 3.4 compact editorial action strip, no oversized card or persistent success line. */
.wpcum-engagement{position:relative;background:transparent;border:0;border-block:1px solid #7775;border-radius:0;padding:12px 0;margin:20px 0;font:500 14px/1.4 system-ui,sans-serif;color:#f5f5f5}
.wpcum-engagement-buttons{align-items:center;gap:8px;flex-wrap:wrap}
.wpcum-engagement button,.wpcum-engagement a.wpcum-save-login{appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:9px 15px;border:1px solid #363636;border-radius:999px;background:#191919;color:#f5f5f5;font:600 13px/1.2 system-ui,sans-serif;box-shadow:none;text-decoration:none;cursor:pointer;transition:background .15s,border-color .15s,color .15s}
.wpcum-engagement button svg,.wpcum-engagement a.wpcum-save-login svg{width:18px;height:18px;flex:none}
.wpcum-engagement button:hover,.wpcum-engagement a.wpcum-save-login:hover{border-color:#dc2626;background:#251818;color:#fff}
.wpcum-engagement button[aria-pressed=true]{background:#371719;border-color:#dc2626;color:#ff9292}
.wpcum-engagement a.wpcum-save-login{background:#191919;color:#d4d4d4}
.wpcum-engagement button[hidden],.wpcum-engagement a[hidden]{display:none!important}
.wpcum-engagement button:focus-visible,.wpcum-engagement a:focus-visible{outline:2px solid #ef4444;outline-offset:3px}
.wpcum-feedback:not(:empty){display:block;position:absolute;z-index:2;top:calc(100% + 4px);left:0;max-width:100%;box-sizing:border-box;padding:6px 10px;border-radius:8px;background:#191919;border:1px solid #4a2828;color:#ffb4b4;margin:0;box-shadow:0 3px 10px #0002;overflow-wrap:anywhere}
.wpcum-library .wpcum-engagement{border:0;padding:0}.wpcum-library .wpcum-engagement button{min-height:38px;padding:7px 12px}
@media(max-width:480px){.wpcum-engagement{padding:10px 0;margin:16px 0}.wpcum-engagement button,.wpcum-engagement a.wpcum-save-login{min-height:42px;padding:8px 12px}.wpcum-engagement-buttons{gap:7px}}
@media(prefers-reduced-motion:reduce){.wpcum-engagement button,.wpcum-engagement a.wpcum-save-login{transition:none}}

/* 3.5 — responsive account collections; never changes single-post controls. */
.wpc-customer-root .wpcum-library{min-width:0;width:100%;padding:0;background:none;border:0;box-shadow:none}
.wpc-customer-root .wpcum-library-tabs{display:flex;gap:8px;border-bottom:1px solid #303030;padding-bottom:10px;margin:2px 0 14px}
.wpc-customer-root .wpcum-library-tabs>a{display:flex;align-items:center;justify-content:center;gap:7px;padding:10px 13px;min-width:0;min-height:44px;border:1px solid #333;border-radius:9px;background:#171717;color:#ededed;text-decoration:none;font-size:13px;font-weight:650;line-height:1.2}
.wpc-customer-root .wpcum-library-tabs>a[aria-current]{background:#b91c1c;border-color:#dc2626;color:#fff}
.wpcum-library-tabs svg{flex:none;width:18px;height:18px}.wpcum-library-count{background:#ffffff18;padding:3px 7px;border-radius:999px;font-size:11px;font-variant-numeric:tabular-nums}
.wpc-customer-root .wpcum-library-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 12px}
.wpc-customer-root .wpcum-library-search{display:flex;align-items:center;gap:8px;flex:1 1 180px;min-width:0;border:1px solid #383838;border-radius:9px;background:#171717;color:#bdbdbd;padding:0 10px;margin:0;min-height:42px}
.wpcum-library-search svg{flex:none}.wpc-customer-root .wpcum-library-search input{appearance:none;background:transparent;color:#f5f5f5;border:0;box-shadow:none;min-width:0;width:100%;font:inherit;font-size:14px;padding:8px 0;margin:0;min-height:40px;border-radius:0}
.wpc-customer-root .wpcum-library-toolbar select,.wpc-customer-root .wpcum-library-toolbar button{box-sizing:border-box;min-height:42px;border:1px solid #383838;border-radius:9px;background:#171717;color:#f5f5f5;font:600 12px/1.3 system-ui,sans-serif;padding:8px 10px;margin:0;box-shadow:none;width:auto;max-width:100%;text-transform:none}
.wpc-customer-root .wpcum-library-toolbar button{background:#b91c1c;border-color:#dc2626;cursor:pointer;padding-inline:14px}
.wpcum-library-summary{color:#b4b4b4;font-size:12px;font-weight:600;margin:0 0 10px;line-height:1.4}
.wpc-customer-root .wpcum-library-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;align-items:stretch;min-width:0}
.wpc-customer-root .wpcum-library-item{display:flex;flex-direction:column;align-items:stretch;gap:0;min-width:0;margin:0;padding:0;border:1px solid #303030;background:#171717;border-radius:11px;container-type:inline-size;transition:border-color .15s}
.wpc-customer-root .wpcum-library-item:hover{border-color:#666}
.wpc-customer-root .wpcum-thumb-link{display:block;position:relative;aspect-ratio:16/9;width:100%;min-width:0;overflow:hidden;border-radius:10px 10px 0 0;background:#252525;text-decoration:none}
.wpc-customer-root .wpcum-thumb-link .wpcum-thumb{display:block;width:100%;height:100%;max-width:none;max-height:none;position:absolute;inset:0;object-fit:cover;margin:0;border-radius:0;box-shadow:none}
.wpc-customer-root .wpcum-thumb-link .wpcum-thumb-empty{display:grid;place-items:center;background:linear-gradient(145deg,#292929,#181818);color:#f87171}
.wpcum-thumb-empty svg{width:27px;height:27px}
.wpc-customer-root .wpcum-item-body{padding:9px;display:flex;flex-direction:column;align-items:flex-start;gap:6px;flex:1;min-width:0;width:100%}
.wpcum-library-category{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:#491b1b;color:#ffb0b0;border-radius:5px;font-size:10px;font-weight:650;line-height:1.2;padding:4px 6px}
.wpc-customer-root .wpcum-library-item a.wpcum-item-title{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;line-height:1.35;font-size:13px;font-weight:700;color:#f5f5f5;text-decoration:none;margin:0;min-width:0}
.wpc-customer-root .wpcum-library-item a.wpcum-item-title:hover{color:#ff9292;text-decoration:underline}
.wpcum-library-date{display:block;color:#b4b4b4;font-size:10px;line-height:1.4;font-variant-numeric:tabular-nums}
.wpc-customer-root .wpcum-library .wpcum-engagement{padding:0;margin:auto 0 0;border:0;background:none;width:100%;padding-top:4px}
.wpc-customer-root .wpcum-library .wpcum-engagement-buttons{display:flex;gap:5px;flex-wrap:wrap}
.wpc-customer-root .wpcum-library .wpcum-engagement button{display:inline-flex;flex:0 1 auto;min-width:0;min-height:36px;padding:5px 7px;border-radius:7px;gap:4px;font-size:11px;line-height:1.2;white-space:nowrap}
.wpc-customer-root .wpcum-library .wpcum-engagement button svg{width:15px;height:15px}
.wpc-customer-root .wpcum-library .wpcum-feedback:not(:empty){position:static;margin-top:6px;padding:4px 6px;box-shadow:none;font-size:11px}
.wpc-customer-root .wpcum-library .wpcum-pagination{margin:18px 0 0;padding:0;border:0;gap:6px}
.wpc-customer-root .wpcum-pagination :is(a,span[aria-current]){min-width:35px;min-height:35px;display:grid;place-items:center;padding:5px;border:1px solid #383838;background:#171717;border-radius:8px;color:#eee;text-decoration:none;font-weight:600}
.wpc-customer-root .wpcum-pagination span[aria-current]{background:#b91c1c;border-color:#dc2626;color:#fff}
.wpc-customer-root .wpcum-library .wpcum-empty{border:1px dashed #383838;border-radius:12px;background:#171717;padding:30px 14px}
@media(max-width:1199px){.wpc-customer-root .wpcum-library-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}}
@media(max-width:767px){.wpc-customer-root .wpcum-library-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.wpc-customer-root .wpcum-library-tabs>a{flex:1;padding:9px 6px;gap:5px;font-size:12px}.wpc-customer-root .wpcum-library-toolbar{gap:6px}.wpc-customer-root .wpcum-library-search{flex-basis:100%}.wpc-customer-root .wpcum-library-toolbar select{flex:1}.wpc-customer-root .wpcum-item-body{padding:8px}.wpc-customer-root .wpcum-library .wpcum-engagement button{min-height:40px}}
/* Keep both actions usable in narrow cards without overflowing or tiny text. */
@container(max-width:172px){.wpc-customer-root .wpcum-library .wpcum-engagement button{flex:1 1 0;min-height:36px;padding:5px}.wpc-customer-root .wpcum-library .wpcum-engagement button span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.wpc-customer-root .wpcum-library .wpcum-engagement button svg{width:18px;height:18px}}
@media(prefers-reduced-motion:reduce){.wpcum-library-item{transition:none}}

/* 3.6 — independent library layout and image ratio, scoped to dashboard. */
.wpc-customer-root .wpcum-library.wpcum-ratio-poster .wpcum-thumb-link{aspect-ratio:2/3}
.wpc-customer-root .wpcum-library.wpcum-layout-list .wpcum-library-grid{grid-template-columns:minmax(0,1fr);gap:10px}
.wpc-customer-root .wpcum-library.wpcum-layout-list .wpcum-library-item{display:grid;grid-template-columns:minmax(0,clamp(120px,22%,200px)) minmax(0,1fr);gap:14px;align-items:start;padding:10px;border-radius:11px}
.wpc-customer-root .wpcum-library.wpcum-layout-list.wpcum-ratio-poster .wpcum-library-item{grid-template-columns:minmax(0,clamp(76px,14%,112px)) minmax(0,1fr)}
.wpc-customer-root .wpcum-library.wpcum-layout-list .wpcum-thumb-link{border-radius:8px}
.wpc-customer-root .wpcum-library.wpcum-layout-list .wpcum-item-body{padding:2px 0;gap:7px;align-self:stretch;justify-content:center}
.wpc-customer-root .wpcum-library.wpcum-layout-list .wpcum-item-title{font-size:clamp(13px,1.5vw,17px);-webkit-line-clamp:3}
.wpcum-layout-list .wpcum-library-date{font-size:12px}
.wpc-customer-root .wpcum-library.wpcum-layout-list .wpcum-engagement{margin:0;padding-top:3px}
@media(max-width:767px){
 .wpc-customer-root .wpcum-library.wpcum-layout-list .wpcum-library-item{grid-template-columns:minmax(0,clamp(84px,30%,140px)) minmax(0,1fr);gap:9px;padding:8px}
 .wpc-customer-root .wpcum-library.wpcum-layout-list.wpcum-ratio-poster .wpcum-library-item{grid-template-columns:minmax(0,clamp(66px,23%,92px)) minmax(0,1fr)}
 .wpc-customer-root .wpcum-library.wpcum-layout-list .wpcum-item-body{padding:0;gap:5px}
 .wpcum-layout-list .wpcum-library-date{font-size:11px}
 .wpc-customer-root .wpcum-library.wpcum-layout-list .wpcum-engagement button{min-height:40px}
}
