/* PDF Studio: sheets on a sorting mat. */
.st-shell.st-modern[data-studio=pdf-studio] .st-pdf-grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,190px),1fr));
  gap:16px;padding:16px;align-items:start;
}
.st-shell.st-modern[data-studio=pdf-studio] [hidden]{display:none}
.st-shell.st-modern .st-pdf-card{
  position:relative;min-width:0;padding:0;border:1px solid var(--line-2);border-radius:7px;
  background:var(--st-felt);box-shadow:none;
}
.st-shell.st-modern .st-pdf-card:has(input:checked){
  outline:2px solid var(--st-acc);outline-offset:-2px;
  background:color-mix(in srgb,var(--st-acc) 12%,var(--st-felt));
}
.st-shell.st-modern .st-pdf-preview{
  position:relative;box-sizing:border-box;block-size:clamp(144px,20vw,208px);
  padding:12px;overflow:hidden;cursor:grab;
}
.st-shell.st-modern .st-pdf-preview:active{cursor:grabbing}
.st-shell.st-modern .st-pdf-thumb{
  display:block;width:100%;height:100%;object-fit:contain;
  background:transparent;box-shadow:none;filter:drop-shadow(0 2px 3px #12090c75);
}
.st-shell.st-modern .st-pdf-page-number{
  position:static;flex:none;margin-inline-start:auto;padding:0;background:none;color:var(--ink-2);
  font-variant-numeric:tabular-nums;font-size:.76rem;
}
.st-shell.st-modern .st-pdf-select{
  display:flex;align-items:center;gap:7px;min-height:44px;padding:0 8px;cursor:pointer;
  border-block-start:1px solid var(--line);font-size:.8rem;
}
.st-shell.st-modern .st-pdf-select span:first-of-type{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.st-shell.st-modern .st-pdf-select input[type=checkbox]{
  flex:none;min-height:0;margin:0;width:18px;height:18px;accent-color:var(--st-acc);
}
.st-shell.st-modern .st-pdf-actions{
  display:grid;grid-template-columns:repeat(6,minmax(0,1fr));margin:0;padding:0 3px 3px;
}
.st-shell.st-modern .st-pdf-actions button{
  min-width:0;width:100%;height:36px;padding:0;justify-content:center;
}
@media(min-width:761px) and (hover:hover) and (pointer:fine){
  .st-shell.st-modern .st-pdf-card:not(:hover,:focus-within,:has(input:checked)) .st-pdf-actions{
    opacity:0;pointer-events:none;
  }
}
.st-shell.st-modern .st-pdf-action:hover{color:var(--st-acc)}
.st-shell.st-modern .st-pdf-tiles{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin:0;
}
.st-shell.st-modern .st-pdf-tiles .st-btn{
  justify-content:flex-start;min-width:0;min-height:44px;height:auto;padding:5px 7px;
  border-color:var(--line);background:var(--st-panel);text-align:start;line-height:1.2;
}
.st-shell.st-modern .st-pdf-tiles .st-ico{flex:none}
.st-shell.st-modern .st-pdf-tiles .st-btn-lbl{min-width:0;white-space:normal;overflow-wrap:anywhere}
.st-shell.st-modern .st-pdf-tiles .st-btn:disabled{opacity:.45;cursor:default}
.st-shell.st-modern .st-pdf-tiles .st-btn:enabled:hover{border-color:var(--line-2);background:var(--field)}
.st-shell.st-modern .st-pdf-summary{margin:0;font-size:.84rem;font-variant-numeric:tabular-nums}
.st-shell.st-modern .st-pdf-field{display:grid;grid-template-columns:minmax(0,1fr);gap:4px;margin:0}
.st-shell.st-modern .st-pdf-field :is(input,select){min-height:44px;max-width:100%}
.st-shell.st-modern .st-pdf-field input[type=checkbox]{min-height:20px;justify-self:start}
.st-shell.st-modern .st-pdf-field input[type=color]{justify-self:start}
@media(max-width:760px), (any-pointer:coarse){
  .st-shell.st-modern[data-studio=pdf-studio] .st-pdf-grid{
    grid-template-columns:repeat(auto-fill,minmax(min(100%,272px),1fr));gap:8px;padding:8px;
  }
  .st-shell.st-modern .st-pdf-actions{gap:0}
  .st-shell.st-modern .st-pdf-actions button{min-height:44px;height:44px}
  .st-shell.st-modern .st-pdf-card:not(:hover,:focus-within,:has(input:checked)) .st-pdf-actions{opacity:1;pointer-events:auto}
}
@media(max-width:760px){
  .st-shell.st-modern .st-pdf-preview{block-size:176px}
}
.st-shell.st-modern[data-studio=pdf-studio] .st-shell-stage:focus-visible{outline:1px solid var(--cream);outline-offset:-2px}
.st-shell.st-modern[data-studio=pdf-studio] .st-shell-stage.st-pdf-file-over{outline:3px solid var(--mint);outline-offset:-3px}
.st-shell.st-modern[data-studio=pdf-studio] .st-empty-mat{min-block-size:220px;gap:20px}
.st-pdf-paper-stack{position:relative;isolation:isolate;width:86px;height:104px;justify-self:center}
.st-pdf-paper-stack span{position:absolute;inset:7px 11px;display:grid;place-items:center;border:1px solid var(--st-acc);border-radius:3px;background:var(--st-panel)}
.st-pdf-paper-stack span:first-child{transform:translate(-8px,1px) rotate(-13deg)}
.st-pdf-paper-stack span:nth-child(2){transform:translate(8px,1px) rotate(12deg)}
.st-pdf-paper-stack span:last-child{background:var(--cream);color:var(--deep);border-color:var(--cream)}
.st-shell.st-modern .st-pdf-paper-stack svg{width:31px;height:31px}
