:root {
  --bg: #0b1020;
  --panel: #121931;
  --panel-2: #1b2545;
  --text: #ecf2ff;
  --muted: #a7b3d1;
  --accent: #7dd3fc;
  --accent-2: #38bdf8;
  --border: #263252;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #08101f 0%, #0f172a 100%);
  color: var(--text);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: min(1100px, calc(100vw - 2rem)); margin: 0 auto; }
.topbar {
  border-bottom: 1px solid var(--border);
  background: rgba(8, 16, 31, 0.9);
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; gap: 1rem; }
.brand { font-weight: 800; color: white; letter-spacing: 0.02em; }
nav, .actions { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
main.wrap { padding: 2rem 0 3rem; }
.hero { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-bottom: 1.5rem; }
.card {
  background: rgba(18, 25, 49, 0.95);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 14px 30px rgba(0,0,0,0.2);
}
.narrow { max-width: 460px; margin: 4rem auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.two-col { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 1rem; }
.stack { display: grid; gap: 1rem; }
label { display: grid; gap: 0.4rem; color: var(--muted); font-size: 0.95rem; }
input[type="text"], input[type="password"], textarea {
  width: 100%; border-radius: 12px; border: 1px solid var(--border);
  background: #0c1429; color: var(--text); padding: 0.9rem 1rem; font: inherit;
}
textarea { resize: vertical; min-height: 260px; }
button, .button {
  border: 0; border-radius: 999px; padding: 0.8rem 1.1rem; font: inherit;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #07101e;
  font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.button.secondary, .link-button {
  background: transparent; color: var(--accent); border: 1px solid var(--border);
}
.inline-form { display: inline-flex; margin: 0; }
.link-button { padding: 0.45rem 0.8rem; }
.alert { background: rgba(248,113,113,.15); border: 1px solid rgba(248,113,113,.4); color: #fecaca; padding: 0.85rem 1rem; border-radius: 12px; }
.muted, .eyebrow { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
.markdown-body h1, .markdown-body h2, .markdown-body h3 { margin-top: 1.2em; }
.markdown-body h1:first-child, .markdown-body h2:first-child, .markdown-body h3:first-child { margin-top: 0; }
.markdown-body p, .markdown-body li { line-height: 1.65; }
.markdown-body code, .raw-content {
  background: #0c1429; border: 1px solid var(--border); border-radius: 8px;
}
.markdown-body code { padding: 0.15rem 0.35rem; }
.markdown-body pre { overflow-x: auto; padding: 1rem; background: #0c1429; border-radius: 12px; border: 1px solid var(--border); }
.share-link { margin-bottom: 0.75rem; }
.raw-content { padding: 1rem; white-space: pre-wrap; word-break: break-word; }
.shared-wrap { padding-top: 3rem; padding-bottom: 3rem; }
.sidebar input { font-size: 0.9rem; }
@media (max-width: 860px) {
  .hero, .two-col, .topbar-inner { grid-template-columns: 1fr; display: grid; }
}
