:root {
  font-family: "Segoe UI", Arial, sans-serif;
}

body {
  margin: 0;
  background: #f5f7fb;
  color: #1f2937;
}

.container {
  max-width: 880px;
  margin: 24px auto;
  padding: 0 16px;
}

.card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  padding: 20px;
  margin-bottom: 16px;
}

h1 {
  font-size: 28px;
  margin: 0 0 16px;
}

h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

label {
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
}

input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 14px;
}

button {
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  background: #2563eb;
}

button.secondary {
  background: #4b5563;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
}

.query-actions {
  margin-top: 10px;
}

.items-section {
  margin-top: 14px;
}

.items-section h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

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

.items-list li {
  background: #f8fafc;
  border: 1px solid #dbe2ea;
  border-radius: 10px;
  padding: 10px 12px;
}

.item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.item-file {
  display: block;
  font-size: 12px;
  color: #4b5563;
  margin-bottom: 4px;
  word-break: break-all;
}

.item-key {
  display: block;
  font-size: 14px;
  color: #0f172a;
  word-break: break-all;
}

.item-meta {
  display: block;
  font-size: 13px;
  color: #0f172a;
  word-break: break-all;
}

.copy-btn {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #1e3a8a;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.copy-btn:hover {
  background: #eff6ff;
}

.item-empty {
  color: #6b7280;
  font-size: 13px;
}

.result {
  min-height: 90px;
  margin: 10px 0 0;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 8px;
  padding: 12px;
  overflow-x: auto;
}

.message {
  min-height: 24px;
  font-weight: 600;
}

.hidden {
  display: none;
}
