:root {
  color-scheme: dark;
  --primary: #e4e6eb;
  --background: #101113;
  --surface: #17191d;
  --raised: #202329;
  --border: #343941;
  --muted: #a3a9b4;
  --focus: #a8bfe8;
  --danger: #f3a7a7;
  --success: #a9ceb5;
  --font-sans: system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  --radius: .5rem;
  --page-max: 70rem;
  font: 15px/1.6 var(--font-sans);
  background: var(--background);
  color: var(--primary);
  scrollbar-gutter: stable;
}
* { box-sizing: border-box; scrollbar-color: var(--border) var(--background); scrollbar-width: thin; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-track { background: var(--background); }
*::-webkit-scrollbar-thumb { background: var(--border); border-radius: var(--radius); }
*::-webkit-scrollbar-thumb:hover { background: var(--muted); }
*::-webkit-scrollbar-thumb:active { background: var(--focus); }
body { margin: 0; min-width: 280px; }
a { color: inherit; text-underline-offset: 4px; }
a, button { -webkit-tap-highlight-color: transparent; }
button, input, textarea, select { font: inherit; }
button, .button { cursor: pointer; }
button, .button, input, select { min-height: 44px; }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--border); border-radius: var(--radius); padding: 9px 15px; background: var(--surface); color: var(--primary); font-size: 14px; font-weight: 500; text-decoration: none; transition: background 100ms, border-color 100ms; }
button:hover, .button:hover { background: var(--raised); border-color: var(--muted); }
button:active, .button:active { background: var(--border); }
button:disabled { cursor: default; opacity: .5; }
button.primary, .button.primary { background: var(--primary); border-color: var(--primary); color: var(--background); }
button.primary:hover, .button.primary:hover { background: var(--muted); }
button.danger { color: var(--danger); }
button.ghost { background: transparent; border-color: transparent; }
button.ghost:hover { background: var(--raised); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }
input, textarea, select { width: 100%; background: var(--background); color: var(--primary); border: 1px solid var(--border); border-radius: var(--radius); padding: 11px 12px; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }
input[type="radio"], input[type="checkbox"] { width: 17px; height: 17px; min-height: 0; accent-color: var(--primary); margin: 0; flex-shrink: 0; }
textarea { resize: none; font: 14px/1.8 var(--font-mono); tab-size: 2; }
label { display: block; font-size: 14px; margin-bottom: 7px; }
fieldset { padding: 0; border: 0; margin: 0; min-width: 0; }
legend { font-size: 14px; margin-bottom: 9px; }
h1 { font-size: 27px; font-weight: 600; line-height: 1.25; letter-spacing: -.6px; margin: 0 0 10px; }
h2 { font-size: 18px; line-height: 1.4; font-weight: 550; margin: 0 0 12px; }
p { margin: 0 0 18px; }
small, .muted { color: var(--muted); }
small { font-size: 12px; }
.mono { font-family: var(--font-mono); }
.skip { position: absolute; top: -70px; left: 16px; z-index: 10; background: var(--primary); color: var(--background); padding: 10px; }
.skip:focus { top: 8px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 550; text-decoration: none; letter-spacing: -.5px; }
.wordmark > span { font: 23px var(--font-mono); color: var(--muted); letter-spacing: -3px; margin-right: 3px; }
.top { height: 91px; display: flex; align-items: center; justify-content: space-between; max-width: var(--page-max); margin: auto; padding: 0 28px; }
.identity { color: var(--muted); font-size: 13px; display: flex; gap: 10px; align-items: center; }
.avatar { background: var(--raised); width: 28px; height: 28px; display: grid; place-items: center; border-radius: var(--radius); color: var(--primary); font-family: var(--font-mono); }
.shell { max-width: var(--page-max); margin: 25px auto 70px; display: grid; grid-template-columns: 172px minmax(0,1fr); gap: 42px; padding: 0 28px; }
.rail { display: flex; flex-direction: column; gap: 4px; align-self: start; }
.rail a, .rail button { display: flex; align-items: center; justify-content: flex-start; min-height: 44px; padding: 10px 13px; border: 1px solid transparent; border-radius: var(--radius); text-decoration: none; font-size: 14px; color: var(--muted); background: transparent; font-weight: 450; }
.rail a:hover, .rail button:hover { background: var(--surface); color: var(--primary); }
.rail a[aria-current="page"] { color: var(--primary); background: var(--raised); }
.rail .new { margin-bottom: 20px; border: 1px solid var(--border); color: var(--primary); }
.rail .separator { border-top: 1px solid var(--border); margin: 19px 10px 13px; }
main { min-width: 0; }
.page-head { display: flex; gap: 15px; align-items: start; justify-content: space-between; margin-bottom: 27px; }
.page-head p { color: var(--muted); font-size: 13px; margin-bottom: 0; }
.auth { width: min(100% - 36px, 370px); margin: 11vh auto 70px; }
.auth > .wordmark { margin-bottom: 52px; }
.auth h1 { margin-bottom: 8px; }
.auth > p { color: var(--muted); font-size: 14px; margin-bottom: 29px; }
.auth .field { margin-bottom: 19px; }
.auth .submit { width: 100%; margin-top: 8px; }
.auth-links { display: flex; justify-content: space-between; gap: 15px; font-size: 13px; margin-top: 24px; color: var(--muted); }
.field { margin-bottom: 22px; min-width: 0; }
.help { display: block; color: var(--muted); margin-top: 6px; font-size: 12px; }
.field-error { color: var(--danger); font-size: 12px; margin-top: 6px; }
.form-error { color: var(--danger); font-size: 13px; min-height: 23px; margin: 12px 0; overflow-wrap: anywhere; }
.secret { position: relative; }
.secret input { padding-right: 78px; font-family: var(--font-mono); font-size: 14px; }
.secret button { position: absolute; right: 1px; top: 1px; min-height: 43px; font-size: 12px; color: var(--muted); padding: 8px; border: 0; background: transparent; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.choice { cursor: pointer; border: 1px solid var(--border); border-radius: var(--radius); padding: 13px 15px; display: flex; gap: 12px; align-items: center; margin: 0; }
.choice:has(input:checked) { background: var(--raised); border-color: var(--muted); }
.choice small { display: block; font-size: 12px; }
.editor-heading { display: grid; grid-template-columns: minmax(0,1fr) 145px; gap: 14px; }
.code-editor { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); display: grid; grid-template-columns: 46px minmax(0,1fr); overflow: hidden; }
.line-numbers { padding: 16px 12px 16px 0; text-align: right; user-select: none; color: var(--muted); opacity: .65; font: 14px/1.8 var(--font-mono); margin: 0; overflow: hidden; height: 380px; }
.code-editor textarea { border: 0; border-radius: 0; background: transparent; padding: 16px 14px 16px 0; min-height: 380px; max-height: 65vh; height: 380px; outline-offset: -3px; }
.editor-footer { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-top: 16px; }
.actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.searchbar { display: flex; gap: 8px; margin-bottom: 18px; }
.search-input { position: relative; flex: 1; }
.search-input input { padding-right: 75px; }
.search-input button { position: absolute; top: 1px; right: 1px; border: 0; min-height: 43px; background: transparent; color: var(--muted); font-size: 12px; }
.results-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; color: var(--muted); font-size: 12px; min-height: 24px; }
.paste-list { border-top: 1px solid var(--border); }
.paste-row { padding: 20px 0; border-bottom: 1px solid var(--border); }
.paste-row h2 { font-size: 16px; font-weight: 500; margin: 0 0 5px; }
.paste-row h2 a { display: inline-block; padding: 2px 0; text-decoration: none; overflow-wrap: anywhere; }
.paste-row h2 a:hover { text-decoration: underline; }
.paste-row p { color: var(--muted); font: 12px/1.7 var(--font-mono); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; margin: 0 0 10px; }
.meta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: 12px; }
.tag { border: 1px solid var(--border); border-radius: .3rem; padding: 0 6px; font-size: 11px; }
.empty { padding: 65px 15px; text-align: center; border: 1px dashed var(--border); border-radius: var(--radius); }
.empty h2 { font-size: 16px; font-weight: 500; margin-bottom: 8px; }
.empty p { font-size: 13px; color: var(--muted); }
.pagination { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 20px; font-size: 12px; color: var(--muted); }
.code-view { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-top: 23px; overflow: auto; max-height: 75vh; }
.code-view pre { margin: 0; font: 13px/1.9 var(--font-mono); white-space: pre; tab-size: 2; }
.detail-title { overflow-wrap: anywhere; }
.detail-actions { margin-top: 23px; justify-content: space-between; }
.settings { max-width: 470px; }
.section-divider { border: 0; border-top: 1px solid var(--border); margin: 30px 0; }
.checkbox { display: flex; align-items: start; gap: 10px; font-size: 13px; margin-bottom: 20px; cursor: pointer; }
.checkbox input { margin-top: 3px; }
.invite-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); padding: 16px 0; }
.invite-row small { display: block; }
.key-box { margin: 22px 0 16px; }
.key-box input { font-size: 12px; }
dialog { background: var(--surface); color: var(--primary); border: 1px solid var(--border); border-radius: var(--radius); padding: 27px; width: min(30rem, calc(100% - 28px)); max-height: calc(100dvh - 36px); overflow: auto; }
dialog::backdrop { background: rgb(0 0 0 / 75%); }
dialog h2 { font-size: 20px; margin-bottom: 13px; }
dialog p { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
dialog .actions { justify-content: flex-end; margin-top: 22px; }
.status { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--raised); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 17px; font-size: 13px; z-index: 20; max-width: calc(100% - 32px); text-align: center; }
.status:empty { display: none; }
.network { padding: 9px 18px; background: var(--raised); text-align: center; font-size: 12px; color: var(--danger); }
.noscript { padding: 24px; text-align: center; }
@media (max-width: 720px) {
  .top { height: 75px; padding: 0 18px; }
  .shell { display: block; padding: 0 18px; margin-top: 0; }
  .rail { flex-direction: row; flex-wrap: wrap; gap: 3px; border-bottom: 1px solid var(--border); padding: 8px 0 16px; margin-bottom: 27px; }
  .rail a, .rail button { padding: 8px 11px; min-height: 40px; font-size: 12px; }
  .rail .new { margin: 0; }
  .rail .separator { display: none; }
  .page-head { margin-bottom: 22px; }
  h1 { font-size: 24px; }
  .auth { margin-top: 7vh; }
  .auth > .wordmark { margin-bottom: 38px; }
  .choices { gap: 8px; }
  .choice { padding: 12px; gap: 9px; }
  .editor-heading { grid-template-columns: minmax(0,1fr) 105px; gap: 10px; }
  .editor-footer { align-items: flex-start; }
  .editor-footer small { max-width: 120px; }
  .page-head > .actions { justify-content: flex-end; }
  .code-view { padding: 15px; }
  .identity { font-size: 12px; gap: 7px; }
  dialog { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
@media (forced-colors: active) { * { scrollbar-color: auto; } button, input, textarea, select, .choice { border: 1px solid CanvasText; } }

.onion-link { display:block; overflow-wrap:anywhere; line-height:1.9; font-size:14px; }
