* { box-sizing: border-box; }
body {
  margin: 0;
  padding: 14px;
  font-family: Arial, sans-serif;
  background: #f2f4f7;
  color: #1d2a34;
}
.app {
  width: 400px;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.box {
  background: #fff;
  border: 1px solid #d8e0e8;
  border-radius: 10px;
  padding: 10px;
}
.box-header {
  background: #bfe9ff;
}
.line1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.line1 h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
}
.sr-link {
  background: #000;
  color: #fff;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
}
.line2 {
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}
h2 {
  margin: 0 0 8px 0;
  font-size: 17px;
}
.list {
  list-style: none;
  margin: 0;
  padding: 0;
  min-height: 36px;
}
.item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 8px;
  border: 1px solid #e4ebf2;
  border-radius: 8px;
  margin-bottom: 6px;
  background: #fbfdff;
}
.item.selected {
  border-color: #58aaf7;
  background: #eaf5ff;
}
.item .left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.badge {
  display: inline-block;
  background: #edf2f8;
  border: 1px solid #d7e1ec;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 11px;
}
.text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 190px;
}
.actions {
  display: flex;
  gap: 4px;
}
.actions button {
  border: 1px solid #ced8e3;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  padding: 4px 7px;
}
.row-form {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr 80px 76px;
  gap: 6px;
}
.row-form input, .row-form button, select {
  border: 1px solid #ccd7e2;
  border-radius: 6px;
  padding: 7px 8px;
  font-size: 13px;
}
.row-form button {
  cursor: pointer;
  background: #1f7be5;
  color: #fff;
  border-color: #1f7be5;
}
.entries-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.dragging {
  opacity: 0.5;
}
.drop-hover {
  outline: 2px dashed #58aaf7;
}
.empty {
  color: #7a8a9b;
  font-size: 13px;
  padding: 4px 0 8px;
}
