/* Review queue: warm paper, dark ink and compact controls inside the activity site. */
.hkv-review-desk {
  --sq-leaf: #13543d;
  --sq-muted: #5f6158;
  --sq-edge: #e5dfd1;
  margin-top: 1.3rem;
  color: #263428;
}
.hkv-review-desk .sq-head {display:flex; align-items:center; justify-content:space-between; gap:.65rem 1.25rem; flex-wrap:wrap; margin:0 0 1rem}
#content .portal-wrap .sq-head h2 {color:#253e32; font-size:clamp(1.32rem,2vw,1.75rem); margin:0}
.hkv-review-desk .sq-head label {display:flex; align-items:center; gap:.6rem}
.hkv-review-desk label {font-size:.84rem; line-height:1.45; font-weight:600}
.portal-wrap .hkv-review-desk label > :is(select,input) {background:#fffdf8; border:1px solid #a5aa98; border-radius:.45rem; color:#243b2f; margin-top:.25rem; padding:.55rem .7rem; min-height:2.6rem; width:100%; min-width:0; font-weight:400}
.portal-wrap .hkv-review-desk .sq-head select {width:auto; max-width:16rem; margin:0}
.sq-columns {display:grid; grid-template-columns:minmax(230px,.66fr) minmax(0,1.34fr); align-items:start; gap:clamp(.8rem,2vw,1.65rem)}
.sq-list {display:grid; gap:.75rem; min-width:0; padding:clamp(.8rem,1.5vw,1.15rem); border-radius:.75rem; background:#f3f1e6}
.sq-list label {min-width:0}
.sq-filters {display:grid; gap:.55rem; grid-template-columns:repeat(2,minmax(0,1fr))}
.hkv-review-desk .sq-total {margin:0; font-size:.79rem; color:var(--sq-muted)}
.hkv-review-desk .sq-items {padding:0; margin:0; list-style:none; display:grid; gap:.38rem}
.sq-items a {display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:baseline; gap:.18rem .35rem; background:#fffcf5; color:#263428; padding:.65rem .72rem; text-decoration:none; border-radius:.45rem; overflow-wrap:anywhere}
.sq-items a:hover,.sq-items a:focus-visible {background:#e4efdf}
.sq-items a[aria-current] {background:#d7ead9; box-shadow:inset 3px 0 var(--sq-leaf)}
.sq-items :is(.sq-meta,strong) {grid-column:1/-1}
.sq-items strong {font-size:1rem; line-height:1.4}
.sq-items small,.sq-meta,.sq-states {font-size:.74rem; color:var(--sq-muted); line-height:1.55}
.sq-states {display:flex; align-items:center; flex-wrap:wrap; gap:.3rem}
.hkv-review-desk .sq-states .pt-status {font-size:.7rem; padding:.1rem .38rem; border-radius:.28rem}
.sq-detail {background:#fffdf7; min-width:0; padding:clamp(.9rem,1.9vw,1.55rem); border-radius:.75rem}
.sq-record {min-width:0; scroll-margin-top:6rem}
.sq-placeholder {min-height:11rem; display:grid; place-content:center; text-align:center; color:var(--sq-muted); font-size:.9rem}
.sq-back,.sq-utils :is(a,button) {min-height:2.5rem; display:inline-flex; align-items:center; justify-content:center; padding:.4rem .66rem; border:0; border-radius:.4rem; background:#eaf0df; color:var(--sq-leaf); font:inherit; font-size:.84rem; font-weight:600; text-decoration:none}
.sq-back:hover,.sq-utils :is(a,button):hover {background:#d4e6ce}
.sq-back {display:none; scroll-margin-top:6rem}
.sq-record>.pt-tools {display:none}
.sq-record .pt-columns {display:flex; flex-direction:column; gap:1rem; margin:0}
.sq-record :is(.pt-columns > .pt-paper,.pt-columns > .pt-side) {width:100%}
.sq-record .pt-columns > .pt-paper {background:transparent; border:0; padding:0}
.sq-record .pt-details {display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 1rem}
.sq-record .pt-details > div {min-width:0; border-color:var(--sq-edge); overflow-wrap:anywhere}
.sq-record :is(.pt-review,.pt-note) {border:0; border-radius:.55rem; background:#f1f3e9; padding:1rem}
.sq-record .pt-side {display:grid; gap:.7rem}
.sq-record .pt-paper>[data-admin-edit] {margin-top:.75rem}
.sq-record .pt-line {gap:.55rem}
.sq-record .pt-sub {margin-top:.85rem}
.sq-record .sq-art {display:grid; max-width:25rem; gap:.28rem; margin:.8rem 0 .2rem}
.sq-art img {display:block; border-radius:.4rem; max-width:100%; max-height:16rem; width:auto; height:auto; object-fit:contain}
.sq-art figcaption {font-size:.78rem; color:var(--sq-muted)}
.sq-record .pt-review .pt-button,.sq-record .pt-note .pt-button {background:var(--sq-leaf); color:#fff; box-shadow:none; border:0; padding-inline:1rem}
.sq-record .pt-review .pt-button:hover,.sq-record .pt-note .pt-button:hover {background:#24724f}
.sq-utils {margin-top:1rem}
.sq-utils summary {display:list-item; cursor:pointer; padding:.55rem .05rem; color:var(--sq-leaf); font-weight:650; font-size:.89rem}
.sq-utils summary:hover {color:#28704d}
.sq-utils>div {display:flex; gap:.5rem; align-items:center; flex-wrap:wrap; padding:.2rem 0 .65rem}
.sq-utils>div>p {width:100%; color:var(--sq-muted); font-size:.82rem}
@media (max-width:849px) {
  .sq-columns {display:block}
  .sq-head {scroll-margin-top:6rem}
  .sq-list,.sq-detail {padding:.9rem; border-radius:.6rem}
  .hkv-review-desk:not(.sq-has-record) .sq-detail,.sq-has-record .sq-list {display:none}
  .sq-has-record .sq-back {display:inline-flex; margin-bottom:.8rem}
  .sq-has-record .sq-utils {display:none}
  .portal-wrap .hkv-review-desk :is(.sq-list,.sq-head) label>:is(input,select) {font-size:1rem}
  .portal-wrap .hkv-review-desk .sq-head select {max-width:12.5rem}
}
@media (max-width:440px) {
  .sq-record .pt-details {grid-template-columns:minmax(0,1fr)}
  .sq-utils :is(a,button),.sq-back {min-height:44px}
}
