.content-section {
  gap: 22px;
}

.sender-card {
  padding: 28px;
}

.sender-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.9fr);
  gap: 22px;
  align-items: start;
}

.sender-stack {
  display: grid;
  gap: 22px;
}

.sender-form {
  display: grid;
  gap: 18px;
}

.sender-form .row,
.sender-form .triple-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.sender-form .double-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.sender-form label {
  display: grid;
  gap: 6px;
  color: var(--theme-muted);
  font-size: .94rem;
}

.sender-form label strong {
  color: var(--theme-text);
  font-size: .95rem;
}

.dropzone {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(51, 170, 238, .45);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.dropzone.drag {
  background: rgba(51, 170, 238, .06);
  border-color: var(--theme-accent);
  transform: translateY(-1px);
}

.dropzone-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.dropzone-copy {
  display: grid;
  gap: 6px;
}

.dropzone-copy h3 {
  font-size: 1.12rem;
}

.dropzone-copy p {
  color: var(--theme-muted);
  line-height: 1.55;
}

.file-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: var(--theme-accent);
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all .2s ease;
}

.file-trigger:hover {
  background: var(--theme-accent-hover);
  transform: translateY(-1px);
}

.file-trigger input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-list-box {
  border: 1px solid var(--theme-border);
  border-radius: var(--radius-md);
  background: #ffffff;
  overflow: hidden;
}

.file-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 285px;
  overflow: auto;
}

.file-list.empty li {
  justify-content: center;
  color: var(--theme-muted);
  padding: 18px;
}

.file-list li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--theme-border);
}

.file-list li:last-child {
  border-bottom: none;
}

.btn-remove {
  width: 32px;
  height: 32px;
  border: 1px solid var(--theme-border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--theme-danger);
  cursor: pointer;
  transition: all .2s ease;
}

.btn-remove:hover {
  background: var(--theme-danger-soft);
  border-color: rgba(239, 68, 68, .24);
}

.file-list .name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--theme-text);
  font-weight: 600;
}

.file-list .size {
  color: var(--theme-muted);
  font-size: .88rem;
}

.progress-wrap {
  position: relative;
  height: 16px;
  border-radius: 999px;
  overflow: hidden;
  background: #e8eff7;
  border: 1px solid var(--theme-border);
}

.progress {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, #33aaee 0%, #6bc4f4 100%);
  border-radius: inherit;
  transition: width .18s ease;
}

.progress-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  font-weight: 700;
  color: #0f172a;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.result {
  display: grid;
  gap: 14px;
  margin-top: 6px;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(16, 185, 129, .2);
  background: rgba(16, 185, 129, .05);
}

.result h3 {
  font-size: 1rem;
}

.result-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.email-results {
  display: grid;
  gap: 8px;
}

.email-res {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.email-res li {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--theme-border);
  background: #ffffff;
}

.email-res li.ok {
  border-color: rgba(16, 185, 129, .22);
}

.email-res li.fail {
  border-color: rgba(239, 68, 68, .22);
}

.sender-summary {
  display: grid;
  gap: 16px;
}

.info-card {
  padding: 18px;
}

.info-card .muted {
  line-height: 1.55;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.feature-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--theme-text);
  line-height: 1.5;
}

.feature-list i {
  color: var(--theme-accent);
  margin-top: 3px;
}

.metric-box {
  display: grid;
  gap: 12px;
}

.metric-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
}

.metric-line span:last-child {
  color: var(--theme-muted);
}

.status {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--theme-border);
  background: #f8fbff;
  color: var(--theme-text);
}

.status.info {
  border-color: rgba(51, 170, 238, .22);
  background: rgba(51, 170, 238, .06);
}

.status.err {
  border-color: rgba(239, 68, 68, .22);
  background: rgba(239, 68, 68, .06);
  color: #991b1b;
}

.status.ok {
  border-color: rgba(16, 185, 129, .22);
  background: rgba(16, 185, 129, .06);
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.meta-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 15px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--theme-border);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.meta-item i {
  color: var(--theme-accent);
  font-size: 1.2rem;
}

.meta-item .label {
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
  color: var(--theme-muted);
  margin-bottom: 4px;
}

.message-box {
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(51, 170, 238, .18);
  background: rgba(51, 170, 238, .06);
  line-height: 1.6;
}

.file-review {
  border: 1px solid var(--theme-border);
  border-radius: var(--radius-md);
  background: #ffffff;
  overflow: hidden;
}

.file-review-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--theme-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.file-review-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.file-review-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--theme-border);
}

.file-review-list li:last-child {
  border-bottom: none;
}

.file-review-name {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.file-review-name span {
  min-width: 0;
  word-break: break-word;
}

.file-review-name i {
  color: var(--theme-accent);
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
}

.admin-toolbar .field-inline {
  min-width: 280px;
  flex: 1 1 280px;
  display: grid;
  gap: 6px;
}

.table-responsive {
  overflow: auto;
  border: 1px solid var(--theme-border);
  border-radius: var(--radius-md);
  background: #ffffff;
}

.table-responsive table {
  width: 100%;
  min-width: 1100px;
  border-collapse: collapse;
}

.table-responsive th,
.table-responsive td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--theme-border);
  text-align: left;
  vertical-align: top;
}

.table-responsive th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #ffffff;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--theme-muted);
}

.table-responsive td code,
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .85rem;
}

.inline-action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .78rem;
  border: 1px solid var(--theme-border);
}

.badge.active {
  color: #047857;
  background: rgba(16, 185, 129, .08);
  border-color: rgba(16, 185, 129, .2);
}

.badge.expired {
  color: #b45309;
  background: rgba(245, 158, 11, .08);
  border-color: rgba(245, 158, 11, .2);
}

.badge.deleted {
  color: #b91c1c;
  background: rgba(239, 68, 68, .08);
  border-color: rgba(239, 68, 68, .2);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  padding: 12px 16px;
  border-radius: 999px;
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .18);
  z-index: 9999;
  transition: all .2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.err {
  background: #991b1b;
}

.toast.ok {
  background: #0f172a;
}

@media (max-width: 1280px) {
  .sender-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 840px) {
  .sender-form .row,
  .sender-form .double-row,
  .sender-form .triple-row,
  .result-row {
    grid-template-columns: 1fr;
  }

  .dropzone-head,
  .admin-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .sender-card {
    padding: 22px;
  }
}
