:root {
  --bg: #050505;
  --panel: #0b0b0b;
  --panel2: #0f0f0f;
  --text: #e8e8e8;
  --muted: #a0a0a0;
  --line: rgba(255, 255, 255, 0.08);
  --line2: rgba(255, 255, 255, 0.12);
  --accent: #2aa6ff;
  --danger: #ff4d4d;
  --shadow: rgba(0, 0, 0, 0.7);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  background: radial-gradient(1000px 700px at 50% -100px, #101010 0%, var(--bg) 55%)
    fixed;
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.03), transparent);
}

.brand {
  font-weight: 700;
  letter-spacing: 0.5px;
  opacity: 0.95;
}

.nav {
  display: flex;
  gap: 14px;
  font-size: 13px;
  opacity: 0.95;
}

.nav a {
  padding: 4px 6px;
  border-radius: 4px;
  color: #d8d8d8;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.04);
}

.auth {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
}

.content {
  width: min(980px, calc(100% - 24px));
  margin: 22px auto 48px;
  flex: 1;
}

.hero {
  text-align: center;
  padding: 26px 12px 10px;
}

.ascii {
  margin: 0 auto 8px;
  padding: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  line-height: 10px;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.08);
  white-space: pre;
  overflow-x: auto;
}

.title {
  margin: 0;
  color: var(--accent);
  font-size: 28px;
  font-weight: 700;
  text-shadow: 0 0 18px rgba(42, 166, 255, 0.15);
}

.subtitle {
  margin: 8px 0 16px;
  color: var(--muted);
  font-size: 13px;
}

.searchRow {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 12px;
  width: min(420px, 100%);
}

.search {
  flex: 1;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.4);
  border-radius: 3px;
  padding: 6px 8px;
  font-size: 12px;
  outline: none;
}

.btn {
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  color: #eaeaea;
  border-radius: 3px;
  padding: 6px 10px;
  font-size: 12px;
  box-shadow: 0 10px 24px var(--shadow);
}

.btn:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
}

.btnPrimary {
  border-color: rgba(42, 166, 255, 0.45);
  background: linear-gradient(to bottom, rgba(42, 166, 255, 0.22), rgba(42, 166, 255, 0.06));
}

.btnDanger {
  border-color: rgba(255, 77, 77, 0.5);
  background: linear-gradient(to bottom, rgba(255, 77, 77, 0.22), rgba(255, 77, 77, 0.06));
}

.ctaRow {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.view {
  margin-top: 18px;
}

.panel {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.panelHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.15);
}

.panelHeader .h {
  font-size: 13px;
  color: #dcdcdc;
}

.panelHeader .meta {
  font-size: 12px;
  color: var(--muted);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.table th {
  color: #cfcfcf;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--line2);
}

.table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.smallLink {
  color: #dcdcdc;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.18);
}

.smallLink:hover {
  color: #ffffff;
  text-decoration-color: rgba(255, 255, 255, 0.35);
}

.author {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.35);
}

.owner {
  color: #ff3b3b;
  text-shadow:
    0 0 10px rgba(255, 59, 59, 0.35),
    0 0 24px rgba(255, 59, 59, 0.18);
  position: relative;
}

.owner::after {
  content: "";
  position: absolute;
  inset: -6px -8px;
  background:
    radial-gradient(circle at 20% 35%, rgba(255, 59, 59, 0.55) 0 1px, transparent 2px),
    radial-gradient(circle at 70% 30%, rgba(255, 120, 120, 0.45) 0 1px, transparent 2px),
    radial-gradient(circle at 55% 80%, rgba(255, 59, 59, 0.4) 0 1px, transparent 2px),
    radial-gradient(circle at 35% 75%, rgba(255, 170, 170, 0.35) 0 1px, transparent 2px);
  opacity: 0.35;
  filter: blur(0.2px);
  pointer-events: none;
  animation: sparkle 1.6s linear infinite;
}

.ownerTag {
  color: #ffd2d2;
  border-color: rgba(255, 59, 59, 0.45);
  background: rgba(255, 59, 59, 0.08);
  box-shadow: 0 0 18px rgba(255, 59, 59, 0.15);
}

@keyframes sparkle {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: 0.18;
  }
  35% {
    transform: translate3d(1px, -1px, 0);
    opacity: 0.45;
  }
  70% {
    transform: translate3d(-1px, 1px, 0);
    opacity: 0.25;
  }
  100% {
    transform: translate3d(0, 0, 0);
    opacity: 0.18;
  }
}

.form {
  padding: 12px;
  display: grid;
  gap: 10px;
}

.field {
  display: grid;
  gap: 6px;
}

.label {
  font-size: 12px;
  color: #d6d6d6;
}

.input,
.textarea {
  width: 100%;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  padding: 8px 10px;
  font-size: 12px;
  outline: none;
}

.textarea {
  min-height: 220px;
  resize: vertical;
  line-height: 1.4;
}

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

.pastePre {
  margin: 0;
  padding: 12px;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12px;
  line-height: 1.5;
  background: rgba(0, 0, 0, 0.35);
}

.footer {
  text-align: center;
  padding: 18px 0 26px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
}

.link {
  color: var(--accent);
}

.srOnly {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 520px) {
  .nav {
    gap: 8px;
  }
  .table th:nth-child(3),
  .table td:nth-child(3),
  .table th:nth-child(4),
  .table td:nth-child(4) {
    display: none;
  }
}
