.pk-workspace {
  display: grid;
  gap: .85rem;
  min-width: 0;
  container-type: inline-size;
}

.pk-panel { min-width: 0; }
.pk-heading { display: flex; align-items: center; gap: .65rem; }
.pk-panel .pk-heading h2 { margin: 0; }
.pk-hint {
  margin: .3rem 0 .8rem;
  color: var(--mut, #506570);
  font-size: .875rem;
  line-height: 1.45;
}
.pk-source-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(7.4rem, 100%), 1fr));
  gap: .5rem;
}
.pk-source {
  position: relative;
  display: grid;
  gap: .25rem;
  min-width: 0;
  padding: .6rem .7rem;
  color: var(--ink, #172e38);
  background: #fff;
  border: 1px solid #d9e3e6;
  border-radius: .65rem;
  cursor: pointer;
}
.pk-source:hover, .pk-source:focus-within {
  border-color: #167480;
  background: #f4fafb;
}
.pk-source:focus-within {
  outline: 2px solid #00798b;
  outline-offset: 2px;
}
.pk-source input[type=file] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  margin: 0;
  cursor: pointer;
  padding: 0;
  border: 0;
}
.pk-source-top, .pk-add {
  display: flex;
  align-items: center;
}
.pk-source-top { justify-content: space-between; gap: .3rem; }
.pk-source b { font-size: .9rem; font-weight: 650; }
.pk-glyph {
  display: inline-grid;
  width: 1.9rem;
  height: 1.9rem;
  place-items: center;
  border-radius: .45rem;
  background: var(--pk-bg, #e6eff2);
  color: var(--pk-fg, #315464);
}
.pk-glyph svg { width: 1.05rem; height: 1.05rem; }
.pk-gold   { --pk-bg: #fff1c4; --pk-fg: #805900; }
.pk-blue   { --pk-bg: #e7f0ff; --pk-fg: #285c9f; }
.pk-orange { --pk-bg: #fff0e1; --pk-fg: #914700; }
.pk-violet { --pk-bg: #f1ebfc; --pk-fg: #674194; }
.pk-teal   { --pk-bg: #ddf3f2; --pk-fg: #16646b; }
.pk-green  { --pk-bg: #e3f4e9; --pk-fg: #276644; }
.pk-slate  { --pk-bg: #eaf0f3; --pk-fg: #415867; }
.pk-issuer { --pk-bg: #dff1f4; --pk-fg: #075966; }
.pk-file-count, .pk-total {
  color: #516975;
  font-size: .77rem;
  font-weight: 550;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.pk-add {
  gap: .2rem;
  color: #006675;
  font-size: .8rem;
  font-weight: 650;
}
.pk-add svg { width: .82rem; height: .82rem; }
.pk-total { padding: .15rem .5rem; border-radius: 1rem; background: #edf3f5; }
.pk-order-list { margin: 0; padding: 0; list-style: none; }
.pk-order-row {
  display: grid;
  grid-template-columns: 1.45rem 1.9rem minmax(0, 1fr) auto;
  align-items: center;
  gap: .55rem;
  min-height: 3.3rem;
  padding: .42rem 0;
  border-top: 1px solid #e4eaec;
}
.pk-number { text-align: center; color: #56717a; font-weight: 650; font-variant-numeric: tabular-nums; }
.pk-file-title { display: grid; gap: .1rem; min-width: 0; }
.pk-file-title b { overflow-wrap: anywhere; font-size: .91rem; font-weight: 650; line-height: 1.25; }
.pk-file-title small { color: #536773; font-size: .8rem; line-height: 1.3; }
.pk-order-controls { display: flex; gap: .2rem; }
.pk-order-controls .iconbtn { min-width: 2rem; min-height: 2rem; width: 2rem; height: 2rem; padding: 0; }
.pk-order-controls .iconbtn:focus-visible { outline: 2px solid #00798b; outline-offset: 2px; }
.pk-output { display: flex; flex-wrap: wrap; gap: .5rem; padding-top: .75rem; border-top: 1px solid #e4eaec; }
@container (max-width: 29rem) {
  .pk-order-row { grid-template-columns: 1.3rem minmax(0,1fr) auto; gap: .35rem; }
  .pk-order-row > .pk-glyph { display: none; }
  .pk-order-controls { display: grid; grid-template-columns: repeat(2, 2.1rem); }
  .pk-order-controls .iconbtn { width: 2.1rem; height: 2.1rem; }
}
@container (min-width: 58rem) {
  .pk-workspace > .pk-panel { padding: 1.1rem 1.3rem; }
}
