.distribution-page {
  color: #1e293b;
}
.dist-heading,
.dist-task-head,
.dist-filters,
.dist-tabs,
.dist-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.dist-heading {
  justify-content: space-between;
  margin: 16px 0;
}
.dist-heading h2 {
  margin: 0;
}
.dist-heading p {
  color: #64748b;
}
.dist-tabs {
  margin: 16px 0;
}
.dist-tabs .active {
  background: #2457c5;
  color: white;
}
.distribution-page button {
  padding: 8px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}
.distribution-page button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.dist-notice {
  padding: 12px;
  background: #edf8ef;
  border-radius: 8px;
}
.dist-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.distribution-page label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.distribution-page input,
.distribution-page select,
.distribution-page textarea {
  padding: 9px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  max-width: 100%;
  background: white;
  color: #1e293b;
}
.distribution-page textarea {
  min-height: 90px;
  resize: vertical;
}
.distribution-page small {
  display: block;
  color: #64748b;
  overflow-wrap: anywhere;
}
.dist-columns,
.dist-task-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px;
}
.dist-quotas {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.dist-task {
  padding: 18px;
  border: 1px solid #dce3ef;
  border-radius: 12px;
  background: #fff;
}
.dist-task-head {
  justify-content: space-between;
}
.dist-task p,
.dist-copy p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.dist-copy {
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 0;
}
.dist-table {
  overflow: auto;
}
.dist-table table {
  width: 100%;
  border-collapse: collapse;
}
.dist-table th,
.dist-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}
.dist-filters {
  margin-bottom: 16px;
}
.dist-backdrop {
  position: fixed;
  inset: 0;
  background: #0f172a88;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}
.dist-dialog {
  background: white;
  border-radius: 14px;
  padding: 24px;
  width: 560px;
  max-width: 100%;
  max-height: 90vh;
  overflow: auto;
}
.dist-close {
  float: right;
}
@media (max-width: 600px) {
  .dist-task-grid,
  .dist-columns {
    grid-template-columns: 1fr;
  }
  .dist-actions button {
    flex: 1 0 auto;
  }
  .dist-heading {
    align-items: flex-start;
  }
}

.dist-download progress {width:100%;height:16px;accent-color:#176853;}
.dist-download-name {overflow-wrap:anywhere;font-weight:600;}
.dist-save-file {display:inline-block;padding:9px 16px;background:#176853;color:white;border-radius:8px;text-decoration:none;}

.dist-media-preview {display:block;width:100%;max-height:48vh;object-fit:contain;background:#111;border-radius:8px;}
