.asset-trigger {
  width: 42px;
  height: 42px;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1px solid #cbd6c7;
  border-radius: 8px;
  color: #245449;
  background: #fffef9;
}

.asset-trigger:hover {
  border-color: #97ac9b;
  background: #e9efe6;
}

.modal:has(.asset-download-panel) {
  max-height: calc(100dvh - 2rem);
  overscroll-behavior-y: contain;
}

.asset-download-panel {
  display: grid;
  gap: 12px;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.55;
}

.asset-download-summary { color: var(--ink); }
.asset-download-note { color: var(--muted); font-size: 12px; }

.asset-download-subject {
  display: grid;
  gap: 4px;
  color: #23493e;
  font-weight: 720;
}

.asset-download-subject select {
  width: 100%;
  min-height: 42px;
  font-size: 16px;
  font-weight: 600;
}

.asset-download-info {
  display: grid;
  align-items: baseline;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 8px;
  padding: 10px 12px;
  border: 1px solid #d3ddd0;
  border-radius: 9px;
  background: #f0f4ed;
  color: #23493e;
}

.asset-download-info [data-asset-state] { font-weight: 730; }
.asset-download-size { color: #3c6357; white-space: nowrap; }
.asset-download-info progress, .asset-download-numbers { grid-column: 1 / -1; }
.asset-download-info progress { width: 100%; height: 8px; accent-color: #296950; }
.asset-download-numbers { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.asset-download-numbers [data-asset-count] { margin-left: auto; }
.asset-download-numbers:not(:has(p:not(:empty))) { display: none; }
.asset-download-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.asset-download-actions .btn { align-items: center; }
.asset-download-message { color: #496553; font-size: 13px; }

.asset-download-confirm {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid #dbd4c5;
  border-radius: 9px;
  background: #f7f3e9;
}

@media (max-width: 540px) {
  .asset-trigger { width: 36px; height: 36px; }
  .head-in:has(.asset-trigger:not([hidden])) { gap: 8px; }
  .head-right:has(.asset-trigger:not([hidden])) { gap: 5px; }
}

@media (max-width: 370px) {
  .head-right:has(.asset-trigger:not([hidden])) .me { display: none; }
}
