/* Cursor Studio layout upgrade, Patch 017. Scoped so the rest of SerraForge is unchanged. */
.pa-cursor-studio { --pcs-ink:#153f36; --pcs-border:#c9dfcb; --pcs-muted:#45675e; }
.pa-cursor-studio .pcs-shortcuts { display:flex; flex-wrap:wrap; align-items:center; gap:9px; margin:16px 0 18px; }
.pa-cursor-studio .pcs-shortcut { display:inline-flex; text-decoration:none; font-size:.9rem; font-weight:750; color:var(--pcs-ink); background:#f8fbf4; border:1px solid var(--pcs-border); border-radius:99px; padding:10px 14px; transition:background .15s,transform .15s; }
.pa-cursor-studio .pcs-shortcut:hover,.pa-cursor-studio .pcs-shortcut:focus-visible { background:#e2f1e4; transform:translateY(-1px); }
.pa-cursor-studio .pcs-workshop-intro { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin:16px 0 24px; }
.pa-cursor-studio .pcs-workshop-panel { padding:0; min-width:0; overflow:hidden; }
.pa-cursor-studio .pcs-workshop-panel>summary { display:flex; justify-content:space-between; align-items:center; gap:12px; cursor:pointer; list-style:none; padding:19px 21px; font-weight:800; color:var(--pcs-ink); }
.pa-cursor-studio .pcs-workshop-panel>summary::-webkit-details-marker { display:none; }
.pa-cursor-studio .pcs-workshop-panel>summary small { display:block; margin-top:4px; font-size:.77rem; font-weight:500; color:var(--pcs-muted); }
.pa-cursor-studio .pcs-workshop-panel[open]>summary { background:#edf6e9; border-bottom:1px solid var(--pcs-border); }
.pa-cursor-studio .pcs-workshop-panel>form,.pa-cursor-studio .pcs-workshop-panel>p,.pa-cursor-studio .pcs-workshop-panel>.pa-workflow { margin:15px 20px 18px; }
.pa-cursor-studio .pcs-workshop-panel .pa-workflow { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.pa-cursor-studio #pa-sets { scroll-margin-top:24px; }
.pa-cursor-studio .pcs-filters { display:grid; grid-template-columns:minmax(170px,1.7fr) repeat(3,minmax(130px,1fr)) auto; align-items:end; gap:11px; margin:15px 0 12px; padding:16px; }
.pa-cursor-studio .pcs-filters label { display:grid; align-content:end; gap:6px; min-width:0; font-size:.81rem; font-weight:750; }
.pa-cursor-studio .pcs-filters input,.pa-cursor-studio .pcs-filters select { display:block; width:100%; min-width:0; min-height:41px; border:1px solid #b9d0bd; border-radius:10px; background:#fff; padding:8px 9px; color:#183f36; font:inherit; }
.pa-cursor-studio .pcs-filter-actions { display:flex; gap:7px; align-items:center; flex-wrap:wrap; }
.pa-cursor-studio .pcs-count { margin:10px 2px 13px; font-size:.85rem; color:var(--pcs-muted); }
.pa-cursor-studio .pcs-cursor-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:15px; }
.pa-cursor-studio .pcs-cursor-card { padding:0; overflow:hidden; min-width:0; }
.pa-cursor-studio .pcs-entry>summary { list-style:none; cursor:pointer; padding:16px 17px 14px; display:block; }
.pa-cursor-studio .pcs-entry>summary::-webkit-details-marker { display:none; }
.pa-cursor-studio .pcs-entry>summary:hover,.pa-cursor-studio .pcs-entry>summary:focus-visible { background:#f3f9f0; outline-offset:-3px; }
.pa-cursor-studio .pcs-card-title { display:grid; gap:3px; margin-bottom:10px; }
.pa-cursor-studio .pcs-card-kicker { font-size:.69rem; letter-spacing:.09em; text-transform:uppercase; font-weight:750; color:#537267; }
.pa-cursor-studio .pcs-card-title strong { font-size:1.13rem; overflow-wrap:anywhere; color:var(--pcs-ink); }
.pa-cursor-studio .pcs-card-title small { font-size:.8rem; color:var(--pcs-muted); }
.pa-cursor-studio .pcs-preview-strip { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:7px; }
.pa-cursor-studio .pcs-preview { display:flex; flex-direction:column; align-items:center; justify-content:space-between; min-width:0; padding:5px; background:repeating-conic-gradient(#e5ebe3 0 25%,#f7f9f5 0 50%) 50%/15px 15px; border:1px solid #d8e6d8; border-radius:9px; }
.pa-cursor-studio .pcs-preview img { width:52px; height:52px; max-width:100%; object-fit:contain; image-rendering:auto; }
.pa-cursor-studio .pcs-preview small { margin-top:3px; font-size:.64rem; font-weight:750; color:#35564b; background:#f8fff7e8; padding:1px 3px; border-radius:4px; }
.pa-cursor-studio .pcs-expand-label { display:flex; margin-top:13px; align-items:center; justify-content:space-between; gap:10px; padding:10px 12px; border-radius:9px; background:#e8f5e4; color:#205d46; font-size:.84rem; font-weight:800; }
.pa-cursor-studio .pcs-entry[open] .pcs-expand-label span { transform:rotate(180deg); }
.pa-cursor-studio .pcs-entry-tools { border-top:1px solid var(--pcs-border); background:#fffefa; padding:15px 17px 17px; }
.pa-cursor-studio .pcs-entry-tools .pcs-note { margin:2px 0 12px; font-size:.82rem; }
.pa-cursor-studio .pcs-entry-tools .pcs-attribution { font-size:.8rem; overflow-wrap:anywhere; }
.pa-cursor-studio .pcs-tool-links { display:flex; gap:7px; flex-wrap:wrap; margin-bottom:10px; }
.pa-cursor-studio .pcs-tool-links a { background:#edf5e9; border:1px solid #d0dfcd; border-radius:10px; color:#285f49; font-size:.78rem; padding:8px 10px; font-weight:700; text-decoration:none; }
.pa-cursor-studio .pcs-entry-tools details { padding:10px 0; border-top:1px solid #dbe9d9; }
.pa-cursor-studio .pcs-entry-tools details>summary { cursor:pointer; font-size:.87rem; font-weight:800; color:#275c49; padding:5px 2px; }
.pa-cursor-studio .pcs-entry-tools details[open]>summary { margin-bottom:9px; }
.pa-cursor-studio .pcs-entry-tools input[type="text"],.pa-cursor-studio .pcs-entry-tools input[type="number"] { max-width:100%; }
.pa-cursor-studio .pcs-entry-tools .pa-cursor-upload-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.pa-cursor-studio .pcs-entry-tools .pa-cursor-upload { min-width:0; }
.pa-cursor-studio .pcs-entry-tools .pa-hotspot { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
.pa-cursor-studio .pcs-pages { display:flex; gap:8px; flex-wrap:wrap; align-items:center; justify-content:center; margin:22px 0 30px; }
.pa-cursor-studio .pcs-page-number { display:inline-grid; place-items:center; min-width:39px; height:39px; border-radius:10px; border:1px solid var(--pcs-border); background:#fffdf9; text-decoration:none; font-weight:750; color:var(--pcs-ink); }
.pa-cursor-studio .pcs-page-number.is-current { background:#236d51; color:#fff; }
.pa-cursor-studio input:focus-visible,.pa-cursor-studio select:focus-visible { outline:3px solid #88bba2; outline-offset:2px; }
@media (max-width:1050px) { .pa-cursor-studio .pcs-filters { grid-template-columns:repeat(2,minmax(0,1fr)); } .pa-cursor-studio .pcs-filter-actions { justify-content:start; } }
@media (max-width:720px) { .pa-cursor-studio .pcs-workshop-intro,.pa-cursor-studio .pcs-cursor-grid { grid-template-columns:1fr; } .pa-cursor-studio .pcs-filters { grid-template-columns:1fr; } .pa-cursor-studio .pcs-preview img { width:46px; height:46px; } }
@media (prefers-reduced-motion:reduce) { .pa-cursor-studio .pcs-shortcut { transition:none; } }

/* Patch 018: admin-only gifting username autocomplete */
.pa-cursor-studio .pcs-user-picker-label { display:block; min-width:0; }
.pa-cursor-studio .pcs-user-picker { display:block; position:relative; margin-top:6px; }
.pa-cursor-studio .pcs-user-picker input { width:100%; }
.pa-cursor-studio .pcs-user-results:not([hidden]) { position:absolute; z-index:80; display:flex; flex-direction:column; top:calc(100% + 4px); left:0; right:0; max-height:260px; overflow-y:auto; background:#fffefa; border:1px solid #93baa0; border-radius:12px; box-shadow:0 14px 32px #153f3629; padding:5px; }
.pa-cursor-studio .pcs-user-option { display:flex; flex-direction:column; text-align:left; align-items:flex-start; gap:2px; width:100%; background:transparent; color:#163f34; border:0; border-radius:8px; padding:10px 12px; font:inherit; cursor:pointer; }
.pa-cursor-studio .pcs-user-option:hover,.pa-cursor-studio .pcs-user-option[aria-selected="true"],.pa-cursor-studio .pcs-user-option:focus-visible { background:#e8f4e7; outline:0; }
.pa-cursor-studio .pcs-user-option strong { font-weight:800; }
.pa-cursor-studio .pcs-user-option small { font-size:.79rem; color:#4a675c; }
.pa-cursor-studio .pcs-user-help { display:block; margin:7px 0 4px; color:#4c685e; line-height:1.35; font-size:.79rem; }

.pa-cursor-studio .pcs-cursor-card.pcs-user-picker-open { overflow:visible; position:relative; z-index:30; }
