:root {
  --bg: #0f172a;
  --panel: #1a2436;
  --panel-2: #131c2e;
  --text: #e6ecf5;
  --muted: #93a1b8;
  --accent: #38bdf8;
  --accent-2: #22c55e;
  --border: #2b3a52;
  --error: #f87171;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

header.site {
  border-bottom: 1px solid var(--border);
  background: var(--panel-2);
}

.site-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
}
.brand span { color: var(--accent); }

nav.toollist {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.92rem;
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

h1 { font-size: 1.6rem; margin-bottom: 6px; }
.subtitle { color: var(--muted); margin-top: 0; margin-bottom: 24px; }

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 24px;
}

textarea, input[type="text"] {
  width: 100%;
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92rem;
  resize: vertical;
}

textarea { min-height: 160px; }

.row { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; align-items: center; }

button, .btn {
  background: var(--accent);
  color: #05202e;
  border: none;
  border-radius: 8px;
  padding: 9px 16px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
}
button.secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
button:hover { opacity: 0.9; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin: 16px 0;
}
.stat {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}
.stat .num { font-size: 1.4rem; font-weight: 700; color: var(--accent); }
.stat .label { font-size: 0.78rem; color: var(--muted); }

.error { color: var(--error); font-size: 0.88rem; margin-top: 8px; }
.ok { color: var(--accent-2); font-size: 0.88rem; margin-top: 8px; }

pre.output {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  overflow-x: auto;
  font-size: 0.88rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.uuid-list { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.uuid-item {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.content-block { color: var(--muted); font-size: 0.94rem; }
.content-block h2 { color: var(--text); font-size: 1.15rem; margin-top: 28px; }
.content-block code {
  background: var(--panel-2);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.86rem;
}

.other-tools {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.other-tools h2 { font-size: 1.05rem; margin-bottom: 10px; }
.other-tools ul { display: flex; gap: 16px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }

footer.site {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 24px 20px;
}

mark {
  background: rgba(56, 189, 248, 0.35);
  color: var(--text);
  border-radius: 3px;
}
