.packet-work, .packet-options {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.packet-work > h2 { margin-bottom: 12px; }
.packet-work .packet-files { margin: 0 0 18px; }
.packet-files li {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto auto;
  gap: 4px 12px;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid transparent;
}
.packet-name { grid-column: 2; min-width: 0; }
.packet-files li:not(:has(.packet-grip)) .packet-name { grid-column: 1 / 3; }
.packet-grip {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 7px;
  color: #777b71;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.packet-grip::before {
  content: '';
  width: 12px;
  height: 18px;
  background: radial-gradient(circle, currentColor 1.4px, transparent 1.6px) 0 0 / 6px 6px;
}
@media (hover: hover) { .packet-grip:hover { color: var(--ink); background: #e8e9e2; } }
.packet-dragging .packet-grip { cursor: grabbing; }
.packet-files .packet-dragging { border-color: #a6ae9f; background: #ebeee6; }
.packet-before::before, .packet-after::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  height: 3px;
  border-radius: 2px;
  background: var(--red);
  pointer-events: none;
}
.packet-before::before { top: -5px; }
.packet-after::after { bottom: -5px; }
.packet-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: .93rem;
  cursor: pointer;
}
.packet-check input { width: 17px; height: 17px; margin: 0; accent-color: #456b50; }
.packet-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr));
  align-items: start;
  gap: 4px 20px;
  border-top: 1px solid var(--line);
  padding-top: 4px;
}
.packet-options legend { padding: 0 10px 0 0; font-weight: 650; }
.packet-options .hint { margin: 0 0 8px; padding-left: 25px; line-height: 1.45; }
.packet-work > .hint { margin: 4px 0 14px; }
.feature:has(.packet-work) + .result { overflow-wrap: anywhere; }
@media(max-width: 780px) {
  .packet-files li { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 2px 6px; }
  .packet-files .button-row { grid-column: 2 / -1; gap: 5px; }
  .packet-files .button-row .control { padding-inline: 10px; }
}
@media(max-width: 480px) {
  .packet-files .button-row { grid-column: 1 / -1; justify-content: flex-end; }
}
