:root {
  --css-version: "V1.00.04";
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #0b1020;
  color: white;
}

.wrap {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.left {
  width: 280px;
  padding: 14px;
  background: #111827;
  box-sizing: border-box;
  border-right: 1px solid #374151;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.right {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
}

textarea {
  width: 100%;
  box-sizing: border-box;
  background: #020617;
  color: #22c55e;
  border: 1px solid #374151;
  padding: 10px;
  font-family: monospace;
  border-radius: 6px;
}

#rawData {
  height: 185px;
  overflow-y: auto;
}

#bookmarkletCode {
  height: 140px;
  color: #cbd5e1;
  font-size: 12px;
}

#linksContainer {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  padding-right: 4px;
}

button {
  padding: 10px 14px;
  margin: 10px 0;
  cursor: pointer;
  background: #4f46e5;
  color: white;
  border: 0;
  border-radius: 6px;
  font-weight: bold;
}

button:hover {
  background: #4338ca;
}

.bookmarklet-link {
  display: inline-block;
  padding: 12px 16px;
  margin: 10px 0;
  background: #16a34a;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: grab;
}

.bookmarklet-link:hover {
  background: #15803d;
}

.card {
  padding: 8px;
  margin: 6px 0;
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.15s;
  font-size: 12px;
}

.card:hover {
  background: #312e81;
}

.card.clicked {
  background: #bbf7d0;
  color: #052e16;
  border-color: #22c55e;
}

.card.clicked .small {
  color: #166534;
}

.card-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  white-space: nowrap;
}

.card-code {
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-pin {
  flex-shrink: 0;
}

.small {
  color: #9ca3af;
  font-size: 13px;
}

.ok {
  color: #22c55e;
}

.version-box {
  color: #9ca3af;
  font-size: 12px;
  background: #020617;
  border: 1px solid #374151;
  border-radius: 6px;
  padding: 8px;
  margin-bottom: 12px;
  line-height: 1.5;
  width: 100%;
  box-sizing: border-box;
}

.version-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

h1,
h2,
h3 {
  margin-top: 0;
}

ol li {
  margin-bottom: 8px;
}
