* { box-sizing: border-box; }

body {
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: #f4f5f7;
  color: #222;
  margin: 0;
  padding: 24px;
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
}

h1 {
  font-size: 20px;
  margin-bottom: 20px;
  color: #1a1a1a;
}

.grid-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.grid-bottom {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.box {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
}

textarea, input[type="text"] {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  resize: vertical;
}

textarea.wide {
  min-height: 220px;
}

.btn {
  margin-top: 10px;
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}

.btn:hover { background: #1d4ed8; }

.btn.small {
  padding: 6px 12px;
  font-size: 13px;
  background: #6b7280;
}
.btn.small:hover { background: #4b5563; }

.btn.big {
  font-size: 16px;
  padding: 14px;
  width: 100%;
  background: #16a34a;
}
.btn.big:hover { background: #15803d; }

.hint {
  font-size: 12px;
  color: #888;
  margin-top: 6px;
}

.manage {
  margin-top: 10px;
  font-size: 13px;
}
.manage summary { cursor: pointer; color: #2563eb; }
.manage ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  max-height: 160px;
  overflow-y: auto;
}
.manage li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px dashed #eee;
}
.manage li span {
  white-space: pre-wrap;
  word-break: break-word;
}
.manage li button {
  border: none;
  background: #fee2e2;
  color: #b91c1c;
  border-radius: 4px;
  padding: 2px 8px;
  cursor: pointer;
  flex-shrink: 0;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #111827;
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.toast.show { opacity: 0.95; }
