:root { color-scheme: dark; --bg: hsl(0,0%,7%); --card: hsl(240,2%,13%); --fg: hsl(0,0%,84%); --muted: hsla(0,0%,84%,.6); --acc: hsl(45,100%,72%); --line: hsl(240,2%,18%); }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--acc); text-decoration: none; } a:hover { text-decoration: underline; }
code, .lines, .tag { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.muted { color: var(--muted); font-size: .9rem; }
.bar { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: baseline; padding: .75rem 1.25rem; background: var(--card); border-bottom: 1px solid var(--line); }
.bar .title { font-weight: 600; }
.bar .meta { color: var(--muted); font-size: .85rem; }
.tag { background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 0 .4em; font-size: .8em; }
main { padding: 0; }
.lines { list-style: none; margin: 0; padding: .75rem 0; counter-reset: l; font-size: 13px; line-height: 1.55; overflow-x: auto; }
.lines li { counter-increment: l; display: flex; white-space: pre; }
.lines li::before { content: counter(l); color: var(--muted); text-align: right; min-width: 3.5em; padding-right: 1em; user-select: none; flex: none; }
.lines li:hover { background: var(--card); }
footer { padding: 1rem 1.25rem; border-top: 1px solid var(--line); }

/* global site header (canonical copy of voyager shared/sitenav.css) */
.sitenav{position:sticky;top:0;z-index:50;display:flex;align-items:center;justify-content:space-between;gap:12px 20px;flex-wrap:wrap;padding:10px 20px;background:hsl(240,2%,13%);border-bottom:1px solid hsl(0,0%,22%);font-family:Poppins,ui-sans-serif,system-ui,sans-serif}
.sitenav-brand{color:hsl(45,100%,72%);font-weight:600;font-size:15px;letter-spacing:.01em;text-decoration:none;display:inline-block}
.sitenav-links{display:flex;flex-wrap:wrap;gap:4px 16px}
.sitenav-links a{color:hsl(0,0%,84%);font-size:14px;text-decoration:none;padding:4px 0;display:inline-block}
.sitenav-links a:hover,.sitenav-links a.is-active{color:hsl(45,100%,72%)}
@media(max-width:580px){.sitenav{padding:8px 12px}.sitenav-links{gap:2px 12px}.sitenav-links a{font-size:13px}}

/* ---- landing pages (go./paste.) ------------------------------------------------ */
.landing { max-width: 64rem; margin: 0 auto; padding: 2rem 1.25rem 3rem; }
.landing h2 { font-size: 1.25rem; margin: 2.5rem 0 1rem; letter-spacing: -.01em; }
.landing h3 { font-size: 1rem; margin: 0 0 .5rem; }
.landing code { background: var(--card); padding: .1em .35em; border-radius: 4px; font-size: .92em; }
.landing pre { margin: 0 0 .5rem; padding: .75rem .9rem; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; overflow-x: auto; font-size: 12.5px; line-height: 1.5; }
.landing pre code { background: none; padding: 0; font-size: inherit; }
.hero .eyebrow { color: var(--acc); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; margin: 0 0 .4rem; letter-spacing: .04em; }
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 .75rem; letter-spacing: -.02em; line-height: 1.15; }
.hero .dim, .dim { color: var(--muted); font-weight: 400; }
.lead { font-size: 1.05rem; max-width: 46rem; margin: 0 0 .5rem; }
.lead.sub { font-size: .95rem; color: var(--muted); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem; display: grid; grid-template-columns: auto 1fr; gap: .15rem .75rem; align-items: baseline; }
.steps .n { grid-row: span 2; color: var(--acc); font-weight: 700; font-size: 1.4rem; line-height: 1; }
.steps strong { font-size: .95rem; }
.steps span:last-child { color: var(--muted); font-size: .88rem; line-height: 1.45; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; margin: 0 0 .9rem; }
.card.ok { border-color: hsla(45,100%,72%,.45); }
.hidden { display: none !important; }
.row { display: flex; flex-wrap: wrap; gap: .6rem .8rem; align-items: flex-end; }
.row.end { justify-content: flex-end; align-items: center; }
.row.between { justify-content: space-between; align-items: center; }
.grow { flex: 1 1 14rem; }
label { display: flex; flex-direction: column; gap: .3rem; font-size: .82rem; color: var(--muted); }
input[type=text], input[type=url], input[type=password], select, textarea {
  font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: .5rem .65rem; width: 100%; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid hsla(45,100%,72%,.55); outline-offset: 1px; border-color: transparent; }
textarea { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.5; resize: vertical; min-height: 8rem; }
.btn { font: inherit; font-size: .9rem; font-weight: 600; color: hsl(0,0%,7%); background: var(--acc); border: 1px solid var(--acc); border-radius: 8px; padding: .5rem .9rem; cursor: pointer; white-space: nowrap; }
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--acc); color: var(--acc); }
.btn.danger { background: transparent; color: hsl(0,70%,70%); border-color: var(--line); }
.btn.danger:hover { border-color: hsl(0,70%,60%); }
.btn.small { font-size: .8rem; padding: .3rem .6rem; font-weight: 500; }
.small { font-size: .85rem; }
.muted.ok { color: hsl(140,50%,65%); }
.muted.err { color: hsl(0,70%,70%); }
.flash { margin: 0 0 .75rem; padding: .6rem .8rem; border-radius: 8px; background: var(--card); border: 1px solid var(--line); font-size: .9rem; }
.flash.err { border-color: hsl(0,60%,45%); color: hsl(0,70%,75%); }
.result-url { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.05rem; word-break: break-all; }
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { text-align: left; padding: .45rem .5rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-weight: 500; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
td.actions { white-space: nowrap; text-align: right; }
td.actions .btn { margin-left: .3rem; }
.cols { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.cols .card { margin: 0; }
.foot { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.foot p { margin: 0; }

/* anonymous pastes (public mode) */
.badge { display: inline-block; margin: 0 0 .7rem; padding: .25rem .6rem; border-radius: 999px; background: hsla(45,100%,72%,.12); border: 1px solid hsla(45,100%,72%,.45); color: var(--acc); font-size: .82rem; }
.token-details summary { cursor: pointer; color: var(--muted); font-size: .9rem; }
.token-details summary:hover { color: var(--acc); }
.token-details[open] summary { margin-bottom: .8rem; }
.muted.over { color: hsl(0,70%,70%); font-weight: 600; }
.foot .aup { margin: 0 0 .5rem; }

/* anonymous link interstitial (GET /{slug} from a browser) */
.interstitial { max-width: 44rem; }
.interstitial h1 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0 0 .75rem; letter-spacing: -.01em; }
.interstitial .dest { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem; margin: 1rem 0; overflow-wrap: anywhere; }
.interstitial .dest strong { font-size: 1.1rem; }
.interstitial .dest .full { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; }
.interstitial .actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0; }
.interstitial .btn.go { font-size: 1rem; padding: .6rem 1.1rem; }
.interstitial .foot { margin-top: 2rem; }
/* anonymous links (public mode) */
.anon-note { color: var(--muted); font-size: .85rem; margin: .2rem 0 0; flex-basis: 100%; }

/* "name your own URL": custom id field + create page */
.custom-id .idgroup { display: flex; align-items: stretch; }
.custom-id .prefix { display: flex; align-items: center; padding: 0 .55rem; background: var(--card); border: 1px solid var(--line); border-right: 0; border-radius: 8px 0 0 8px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; white-space: nowrap; }
.custom-id input { border-radius: 0 8px 8px 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.custom-id input[readonly] { color: var(--acc); background: var(--card); }
.custom-id input:invalid { outline: 2px solid hsl(0,70%,55%); }
.create .hero h1 .free { font-size: .8em; background: var(--card); padding: .1em .4em; border-radius: 8px; color: var(--acc); }
.create .hero .eyebrow a { color: inherit; }

/* accounts: header user area, plan pill, account page */
.sitenav-user { display: flex; align-items: center; gap: 12px; margin-left: auto; font-size: 14px; }
.sitenav-user a { color: hsl(0,0%,84%); text-decoration: none; }
.sitenav-user a:hover { color: var(--acc); }
.sitenav-user .sitenav-acct { max-width: 18ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sitenav-user .sitenav-cta { border: 1px solid var(--acc); color: var(--acc); border-radius: 999px; padding: 2px 10px; }
.sitenav-user .sitenav-cta:hover { background: var(--acc); color: hsl(0,0%,7%); }
.plan-pill { display: inline-block; border: 1px solid hsla(45,100%,72%,.45); color: var(--acc); border-radius: 999px; padding: 0 .5em; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; vertical-align: middle; }
.plan-pill.big { font-size: .85rem; padding: .1em .7em; }
table.plan { width: auto; }
table.plan th { text-align: left; font-weight: 500; text-transform: none; letter-spacing: 0; font-size: .9rem; color: var(--muted); padding-right: 1.5rem; }
.account .hero h1 .dim { font-size: .6em; display: block; }
@media (max-width: 580px) { .sitenav-user { margin-left: 0; width: 100%; justify-content: flex-end; } }
