:root {
  --bg: #0b1020;
  --panel: #131a2e;
  --accent: #7be0ff;
  --accent2: #3ddc84;
  --text: #e6ecff;
  --muted: #8a94b8;
  --err: #ff4d6d;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 700px at 50% -10%, #182242 0%, var(--bg) 60%);
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.wrap {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
h1 {
  font-size: 2rem;
  letter-spacing: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sub { color: var(--muted); }
.card {
  width: 100%;
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
input {
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: #0b1020;
  color: var(--text);
  outline: none;
  width: 100%;
}
input:focus { border-color: var(--accent); }
.btn {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  padding: 12px 18px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  color: #04210f;
  background: linear-gradient(90deg, var(--accent2), #2bb673);
  transition: transform 0.06s ease;
}
.btn:active { transform: scale(0.97); }
.btn.primary { width: 100%; }
.btn.copy { background: var(--accent); color: #04212e; }
.err { color: var(--err); font-size: 0.9rem; min-height: 1.2em; text-align: center; }
.hidden { display: none !important; }
.result {
  width: 100%;
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.short-row { display: flex; gap: 8px; align-items: center; }
.short-row a {
  flex: 1;
  color: var(--accent);
  font-size: 1.1rem;
  text-decoration: none;
  word-break: break-all;
}
.meta { color: var(--muted); font-size: 0.9rem; }
.meta b { color: var(--text); }
.orig { color: var(--muted); word-break: break-all; }
.hint { color: var(--muted); font-size: 0.82rem; text-align: center; }
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 0.95rem;
  cursor: pointer;
  user-select: none;
}
.check input { width: auto; accent-color: var(--accent2); }
.eternal { margin-top: 4px; }
.eternal h2 { font-size: 1.15rem; margin-bottom: 2px; }
.eternal .sub { font-size: 0.8rem; margin-bottom: 10px; }
.list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.list li { display: flex; flex-direction: column; gap: 4px; }
.et-row { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.list a { color: var(--accent); text-decoration: none; word-break: break-all; flex: 1; }
.list .et-meta { color: var(--muted); font-size: 0.8rem; word-break: break-all; }
.del {
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 10px;
  border: 1px solid rgba(255,77,109,0.5);
  border-radius: 8px;
  background: transparent;
  color: var(--err);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.1s ease;
}
.del:hover { background: rgba(255,77,109,0.12); }
