/* Reel.Паста — палитра и логотип экосистемы Reel (как на megabitee.ru) */
@font-face { font-family: 'Advaken Sans'; src: url(/ui/advaken-sans.otf) format('opentype'); font-display: swap; }
:root {
  --bg: #050a05; --bg-1: #0a110a; --bg-2: #0f180f; --bg-3: #152115;
  --bg-hover: rgba(226, 236, 223, .06);
  --line: rgba(143, 195, 31, .12); --line-strong: rgba(143, 195, 31, .22);
  --text: #e2ecdf; --text-2: #a9b8a4; --text-3: #6f8068;
  --green: #8fc31f; --green-bright: #a8dc3a; --green-dim: #46621a; --danger: #e25c50;
  --radius-s: 6px; --radius: 10px; --radius-l: 16px;
  --font: "Space Grotesk", "Golos Text", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --font-logo: 'Advaken Sans', var(--font);
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; position: relative; overflow-x: hidden;
  background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, p, pre { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.glow { position: absolute; inset: 0 0 auto; height: 560px; pointer-events: none;
  background: radial-gradient(600px 380px at 18% 0%, rgba(143, 195, 31, .15), transparent 60%), radial-gradient(520px 340px at 88% 0%, rgba(224, 160, 112, .09), transparent 60%); }
.dim { color: var(--text-2); }

.top { position: relative; z-index: 2; display: flex; align-items: center; gap: 18px; padding: 16px 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 26px; height: 26px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 50% 50%, var(--bg) 0 22%, transparent 23%), conic-gradient(from 200deg, var(--green-bright), var(--green-dim), var(--green-bright));
  box-shadow: 0 0 18px rgba(143, 195, 31, .35); }
.brand-name, .logo { font-family: var(--font-logo); font-weight: 400; letter-spacing: .01em; color: var(--green); }
.brand-name { font-size: 18px; }
.svc { color: var(--text); }
.top-nav { display: flex; gap: 2px; margin-left: 8px; }
.top-nav a { padding: 6px 12px; border-radius: 999px; text-decoration: none; color: var(--text-2); font-size: 13.5px; font-weight: 500; transition: background-color .15s, color .15s; }
.top-nav a:hover { background: var(--bg-hover); color: var(--text); }
.top-user { margin-left: auto; display: flex; align-items: center; }
.user-chip { display: flex; align-items: center; gap: 8px; padding: 3px 12px 3px 3px; border-radius: 999px; background: rgba(0, 0, 0, .35); text-decoration: none; font-weight: 600; font-size: 13.5px; }
.user-chip:hover { background: var(--bg-3); }
.avatar { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-weight: 700; font-size: 13px; background: linear-gradient(135deg, var(--green), #4fa6a0); color: #0b1406; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(143, 195, 31, .2); border-top-color: var(--green-bright); animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

main { position: relative; z-index: 1; flex: 1; width: 100%; }
.page { width: 100%; max-width: 1000px; margin: 0 auto; padding: 24px 24px 40px; display: flex; flex-direction: column; gap: 18px; animation: fade-up .4s var(--ease) both; }
@keyframes fade-up { 0% { opacity: 0; transform: translateY(8px); } }
h1 { font-size: clamp(24px, 4vw, 34px); line-height: 1.1; letter-spacing: -.02em; overflow-wrap: anywhere; }
.sub { color: var(--text-2); font-size: 16px; max-width: 60ch; }
.kicker { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-2); }
.note, .meta { color: var(--text-3); font-size: 13px; }
.meta { margin-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; cursor: pointer;
  font-weight: 600; font-size: 14px; white-space: nowrap; text-decoration: none; transition: background-color .16s var(--ease), box-shadow .16s; }
.btn:hover { background: var(--bg-hover); }
.btn:disabled { opacity: .6; cursor: default; }
.btn-primary { background: var(--green); border-color: transparent; color: #0b1406; }
.btn-primary:hover { background: var(--green-bright); box-shadow: 0 6px 22px rgba(143, 195, 31, .3); }
.btn-sm { height: 32px; padding: 0 14px; font-size: 13px; }
.btn.danger { color: var(--danger); border-color: rgba(226, 92, 80, .35); }
.btn:focus-visible, .input:focus-visible, a:focus-visible { outline: 2px solid var(--green-bright); outline-offset: 2px; }
.pill { font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--bg-3); color: var(--text-2); white-space: nowrap; }

.editor { display: flex; flex-direction: column; gap: 12px; }
.input { width: 100%; padding: 10px 14px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--bg-1); }
.input::placeholder { color: var(--text-3); }
select.input { height: 40px; padding: 0 10px; }
.code { min-height: 46vh; resize: vertical; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.55; tab-size: 2; white-space: pre; overflow: auto; }
.row-fields { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.row-fields label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-3); flex: 1 1 180px; }
.row-fields .btn { flex: none; }

.paste-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.viewer { display: flex; border-radius: var(--radius-l); border: 1px solid var(--line); background: var(--bg-1); overflow: auto; max-width: 100%; }
.viewer pre { font-family: var(--font-mono); font-size: 13.5px; line-height: 1.55; padding: 16px 0; tab-size: 2; }
.gutter { flex: none; padding-left: 14px !important; padding-right: 12px !important; text-align: right; color: var(--text-3); user-select: none; border-right: 1px solid var(--line); position: sticky; left: 0; background: var(--bg-1); }
.text { flex: 1; padding-left: 14px !important; padding-right: 18px !important; white-space: pre; }

.list { display: flex; flex-direction: column; border-radius: var(--radius-l); border: 1px solid var(--line); background: var(--bg-1); overflow: hidden; }
.row { display: flex; align-items: center; gap: 16px; padding: 14px 18px; text-decoration: none; border-top: 1px solid var(--line); transition: background-color .15s; }
.row:first-child { border-top: 0; }
.row:hover { background: var(--bg-2); }
.row-main { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.row-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-main .dim { font-size: 13px; }
.row-side { display: flex; gap: 6px; flex: none; }

.guest { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; padding: 8vh 0; }
.guest .logo { font-size: clamp(40px, 9vw, 72px); }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 10; padding: 10px 18px; border-radius: 999px; background: var(--bg-3); border: 1px solid var(--line-strong); font-size: 14px; box-shadow: 0 12px 34px rgba(0, 0, 0, .5); }
.toast.bad { border-color: rgba(226, 92, 80, .5); color: var(--danger); }

.foot { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px 16px; color: var(--text-3); font-size: 12px; font-family: var(--font-mono); text-align: center; }
.foot nav { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.foot a { color: inherit; text-decoration: none; }
.foot a:hover { color: var(--text-2); }

@media (max-width: 720px) {
  .top { padding: 12px 16px; flex-wrap: wrap; gap: 10px; }
  .top-nav { order: 3; width: 100%; margin: 0 -6px; overflow-x: auto; }
  .page { padding: 14px 16px 32px; }
  .row-side { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Ссылка на пасту, своя ссылка (Reel.Прайм), пароль */
.pill-prime { background: rgba(143, 195, 31, .16); color: var(--green-bright); }
.pill-warn { background: rgba(224, 168, 58, .16); color: #e0a83a; }
.user-chip .pill { margin-left: 2px; }
.share { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-l); border: 1px solid var(--line); background: var(--bg-1); }
.share-label { font-size: 12px; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; flex: none; }
.share-link { flex: 1; min-width: 0; height: 34px; padding: 0 10px; font-family: var(--font-mono); font-size: 13.5px; background: var(--bg-2); }
.slug-field { flex: 2 1 320px !important; }
.slug-box { display: flex; align-items: center; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--bg-1); overflow: hidden; }
.slug-box > span { padding: 0 2px 0 12px; color: var(--text-3); font-family: var(--font-mono); font-size: 13px; white-space: nowrap; }
.slug-box .input { border: 0; background: transparent; padding-left: 0; font-family: var(--font-mono); font-size: 13.5px; height: 38px; }
.slug-field.locked .slug-box { opacity: .55; }
.pass-form { display: flex; gap: 10px; width: 100%; max-width: 420px; }
@media (max-width: 720px) { .share { flex-wrap: wrap; } .share-link { flex-basis: 100%; order: 3; } }
