.flat-list {
  display: grid;
}

.flat-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-card);
}

.list-box .flat-list-row { padding: 12px 16px; }

.flat-list-row:last-child { border-bottom: none; }
.flat-list-row:hover { background: var(--bg-surface); }
.flat-list-row:hover .btn-ghost { background: var(--bg-canvas); }
.flat-list-row:hover .btn-ghost:hover { background: var(--bg-hover); }

.flat-list-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.flat-list-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
}

.flat-list-meta,
.flat-list-side {
  font-size: 12px;
  color: var(--text-muted);
}

.flat-list-side {
  flex-shrink: 0;
}

.flat-list-empty {
  padding: 16px 4px;
  font-size: 13px;
  color: var(--text-muted);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  flex-shrink: 0;
}

.dot-success {
  background: var(--dot-success);
}

.dot-warning {
  background: var(--dot-warning);
}

.dot-danger {
  background: var(--dot-danger);
}

.flash {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-group-sm {
  grid-auto-columns: minmax(92px, 1fr);
}

.btn-group-sm .btn {
  height: var(--btn-sm-h);
  font-size: 12px;
}

@media (max-width: 768px) {
  .flat-list-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px 4px;
  }

  .btn-group-sm .btn {
    height: var(--btn-h-mobile);
  }
}

@media (max-width: 640px) {
  .btn-group-sm {
    width: 100%;
    grid-auto-columns: 1fr;
  }
}