* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #111;
  color: #e5e5e5;
}

.app {
  width: 420px;
  max-height: 640px;
  padding: 14px;
  overflow-y: auto;
}

h1 {
  margin: 0 0 12px;
  font-size: 18px;
}

.panel {
  border: 1px solid #222;
  border-radius: 8px;
  background: #171717;
  padding: 10px;
  margin-bottom: 10px;
}

label {
  display: block;
  margin-bottom: 6px;
  color: #a0a0a0;
  font-size: 12px;
}

input,
textarea {
  width: 100%;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  background: #0f0f0f;
  color: #e5e5e5;
  padding: 8px;
  font-size: 13px;
}

textarea {
  resize: vertical;
}

.row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.row.spread {
  justify-content: space-between;
  align-items: center;
}

.actions {
  flex-wrap: wrap;
}

button {
  border: 1px solid #333;
  border-radius: 6px;
  background: #222;
  color: #e5e5e5;
  padding: 8px 10px;
  font-size: 12px;
  cursor: pointer;
}

button:hover {
  background: #2b2b2b;
}

button.primary {
  background: #2f3f2f;
  border-color: #3f5a3f;
}

button.primary:hover {
  background: #3a513a;
}

button.ghost {
  background: transparent;
}

#status {
  font-size: 12px;
  color: #a0a0a0;
}

.links-list {
  margin-top: 8px;
  max-height: 210px;
  overflow-y: auto;
  border: 1px solid #222;
  border-radius: 6px;
  padding: 4px;
}

.link-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px;
  border-bottom: 1px solid #1f1f1f;
}

.link-item:last-child {
  border-bottom: none;
}

.link-text {
  display: block;
  color: #a0a0a0;
  text-decoration: none;
  line-break: anywhere;
  font-size: 12px;
}
