/* Rustinsomnia v2 — one night world. Layout: a see-through header over a full-width live hero, then
   single-column blocks on a dark ground. Green is the bear's night-vision; orange is only for VIP / fire. */
:root {
  color-scheme: dark;
  --night: #070b0a; --ridge: #0e1513; --ridge-2: #151f1c; --line: #23302c;
  --fog: #8fa39b; --moon: #e6efe9; --nvg: #7dfa5a; --blast: #ff9a3c; --bad: #ff5d5d;
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--night); color: var(--moon); font-family: var(--body); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; letter-spacing: .01em; text-wrap: balance; }
p { margin: 0; }
a { color: var(--nvg); }
:focus-visible { outline: 2px solid var(--nvg); outline-offset: 2px; border-radius: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--nvg); color: #06210a; padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; top: 8px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; padding: 10px 20px; border-radius: 4px; border: 1px solid var(--line); background: rgba(14,21,19,.72); color: var(--moon); cursor: pointer; }
.btn:hover { filter: brightness(1.14); }
.btn.go { background: var(--nvg); color: #06210a; border-color: var(--nvg); }
.btn.sm { font-size: 14px; padding: 6px 12px; }

/* header */
.top { position: fixed; inset: 0 0 auto 0; z-index: 20; background: linear-gradient(rgba(7,11,10,.92), rgba(7,11,10,.55)); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-bottom: 1px solid rgba(35,48,44,.6); }
.top-in { display: flex; align-items: center; gap: 22px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--moon); font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: .08em; }
.brand b { color: var(--nvg); font-weight: 700; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
#nav { display: flex; gap: 22px; margin-right: auto; }
#nav a { color: var(--moon); text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: .07em; text-transform: uppercase; opacity: .82; padding: 6px 0; border-bottom: 2px solid transparent; }
#nav a:hover { opacity: 1; border-bottom-color: var(--nvg); }
.top-right { display: flex; align-items: center; gap: 10px; }
.burger { display: none; width: 40px; height: 40px; background: none; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; padding: 10px 9px; flex-direction: column; justify-content: space-between; }
.burger i { display: block; height: 2px; background: var(--moon); }
.langpick { position: relative; }
.langpick summary { list-style: none; cursor: pointer; font-family: var(--mono); font-size: 12.5px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 4px; color: var(--moon); background: rgba(14,21,19,.72); }
.langpick summary::-webkit-details-marker { display: none; }
.langpick summary::after { content: " ▾"; color: var(--fog); }
.langlist { position: absolute; right: 0; top: calc(100% + 6px); width: 300px; max-width: calc(100vw - 32px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 8px; background: var(--ridge); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 14px 40px rgba(0,0,0,.6); }
.langlist a { color: var(--fog); text-decoration: none; font-size: 14px; padding: 5px 8px; border-radius: 3px; }
.langlist a:hover { background: var(--ridge-2); color: var(--moon); }
.langlist a[aria-current] { color: #06210a; background: var(--nvg); font-weight: 600; }

/* hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: #060a12; }
.hero canvas { display: block; width: 100%; height: 100vh; height: 100svh; min-height: 480px; }
.hero-copy { position: absolute; inset: 0; display: flex; align-items: center; pointer-events: none; padding-top: 40px; }
.hero-copy .wrap { width: 100%; }
.hero h1 { font-size: clamp(46px, 8.4vw, 104px); line-height: .9; text-transform: uppercase; text-shadow: 0 2px 30px rgba(0,0,0,.5); }
.hero h1 span { color: var(--nvg); }
.cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; pointer-events: auto; }

/* blocks */
.block { padding-block: 64px 8px; }
.block-h { display: flex; flex-direction: column; gap: 6px; margin-bottom: 24px; max-width: 68ch; }
.block-h h2 { font-size: clamp(32px, 4.8vw, 48px); line-height: 1; text-transform: uppercase; }
.block-h p { color: var(--fog); }
.note { color: var(--fog); font-size: 14px; margin-top: 12px; max-width: 68ch; }

/* server cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.srv { background: var(--ridge); border: 1px solid var(--line); border-radius: 8px; display: flex; flex-direction: column; min-width: 0; }
.srv.off { opacity: .75; }
.srv-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 18px 0; }
.srv-rate { font-family: var(--display); font-weight: 700; font-size: 64px; line-height: .8; color: var(--nvg); }
.srv-rate.big { font-size: clamp(64px, 10vw, 112px); }
.srv-name { font-size: 25px; line-height: 1.1; font-weight: 600; margin-top: 4px; }
.srv-sub { font-size: 13.5px; color: var(--fog); }
.live { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11.5px; color: var(--nvg); }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--nvg); box-shadow: 0 0 8px var(--nvg); }
.live.off { color: var(--bad); } .live.off::before { background: var(--bad); box-shadow: none; }
.pop { padding: 16px 18px 0; }
.pop-bar { height: 6px; background: var(--night); border-radius: 3px; overflow: hidden; }
.pop-bar i { display: block; height: 100%; background: var(--nvg); }
.pop-row { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; color: var(--fog); margin-top: 6px; font-variant-numeric: tabular-nums; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); margin: 16px 0 0; border-block: 1px solid var(--line); }
.facts div { background: var(--ridge); padding: 10px 14px; display: flex; flex-direction: column; }
.facts dd { margin: 0; font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1; font-variant-numeric: tabular-nums; }
.facts dt { font-size: 11px; color: var(--fog); text-transform: uppercase; letter-spacing: .08em; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 18px 0; margin: 0; }
.chip { font-size: 12.5px; padding: 3px 10px; border-radius: 999px; background: var(--night); color: var(--fog); border: 1px solid var(--line); }
.chip.vip, .tagvip { color: var(--blast); border-color: color-mix(in srgb, var(--blast) 40%, transparent); }
.srv-act { display: flex; flex-direction: column; gap: 10px; padding: 18px; margin-top: auto; }
.srv-act .btn { width: 100%; }
.copyline { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12.5px; background: var(--night); border: 1px solid var(--line); border-radius: 4px; padding: 7px 9px; min-width: 0; }
.copyline code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--moon); font-family: inherit; }
.copyline button { font: inherit; color: var(--nvg); background: none; border: 0; cursor: pointer; padding: 0 2px; }
.copyline.wide { max-width: 420px; margin-top: 10px; }
.links { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14.5px; }
.links a { color: var(--moon); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.links a:hover { text-decoration-color: var(--nvg); }

/* server page */
.page-head { padding-top: 92px; }
.back { color: var(--fog); text-decoration: none; font-size: 14px; }
.back:hover { color: var(--moon); }
.ph { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 14px; }
.ph > div:nth-child(2) { flex: 1; min-width: 240px; }
.ph h1 { font-size: clamp(34px, 5.6vw, 60px); line-height: 1; text-transform: uppercase; margin-top: 4px; }
.tabs { display: flex; gap: 4px; margin-top: 28px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs a { font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: .05em; text-transform: uppercase; color: var(--fog); text-decoration: none; padding: 10px 14px; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--moon); border-bottom-color: var(--nvg); }
.feat { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.feat article { background: var(--ridge); border: 1px solid var(--line); border-radius: 6px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.feat h3 { font-size: 21px; font-weight: 600; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.feat p { font-size: 14.5px; color: var(--fog); }
.cmd { margin-left: auto; font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--nvg); background: var(--night); border: 1px solid var(--line); border-radius: 3px; padding: 1px 6px; white-space: nowrap; }
.tagvip { font-family: var(--mono); font-size: 10.5px; font-weight: 400; padding: 1px 6px; border: 1px solid; border-radius: 3px; }
.mini { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.mini li { font-size: 12.5px; padding: 2px 8px; border-radius: 3px; background: var(--night); border: 1px solid var(--line); color: var(--fog); }
.mini li.vip { color: var(--blast); border-color: color-mix(in srgb, var(--blast) 40%, transparent); }
.rates { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.rates div { background: var(--ridge); border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; display: flex; flex-direction: column; }
.rates b { font-family: var(--display); font-size: 34px; line-height: 1; color: var(--nvg); font-variant-numeric: tabular-nums; }
.rates span { font-size: 13px; color: var(--fog); }
.rates.wipe b { color: var(--moon); }
.rules { margin-top: 22px; max-width: 76ch; }
.rules h3 { font-size: 21px; text-transform: uppercase; color: var(--nvg); }
.rules ol { margin: 8px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 5px; color: var(--moon); }
.rules li::marker { color: var(--fog); font-family: var(--mono); font-size: 13px; }

/* the existing ScrapCoin block keeps its own styles; give it room */
.legacy-scrap { padding-top: 64px; }

/* email list */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.signup-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px 40px; align-items: center; padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(120deg, var(--ridge), color-mix(in srgb, var(--nvg) 6%, var(--ridge))); }
.signup h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1; text-transform: uppercase; }
.signup p { color: var(--fog); margin-top: 6px; }
.nl-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.nl-form input[type=email] { font: inherit; font-size: 16px; color: var(--moon); background: var(--night); border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; min-width: 0; }
.nl-form input[type=email]:focus { border-color: var(--nvg); outline: none; }
.nl-form .nl-msg, .nl-form .fine { grid-column: 1 / -1; margin: 0; }
.nl-msg { font-size: 14.5px; color: var(--blast); min-height: 1.4em; }
.nl-msg.ok { color: var(--nvg); }
.nl-msg:empty { display: none; }
.notice { padding-block: 140px 60px; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.notice h1 { font-size: clamp(30px, 5vw, 52px); text-transform: uppercase; }
@media (max-width: 760px) { .signup-in { grid-template-columns: 1fr; padding: 20px; } .nl-form { grid-template-columns: 1fr; } }

/* footer */
.foot { margin-top: 80px; border-top: 1px solid var(--line); background: var(--ridge); }
.foot-in { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-block: 34px; text-align: center; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.foot nav a { color: var(--fog); text-decoration: none; font-size: 14.5px; }
.foot nav a:hover { color: var(--moon); }
.fine { font-size: 12.5px; color: var(--fog); max-width: 70ch; }

@media (max-width: 860px) {
  .burger { display: flex; margin-left: auto; }
  #nav { display: none; position: absolute; left: 0; right: 0; top: 60px; flex-direction: column; gap: 0; background: var(--ridge); border-bottom: 1px solid var(--line); padding: 8px 20px 14px; }
  #nav.open { display: flex; }
  #nav a { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .top-in { gap: 10px; }
  .brand span { display: none; }
  .hero canvas { height: 100vh; height: 100svh; min-height: 420px; }
  .hero-copy { align-items: flex-start; padding-top: 96px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn:hover { filter: none; } }

/* news */
.block.first { padding-top: 104px; }
.h-page { font-size: clamp(38px, 6vw, 60px); line-height: 1; text-transform: uppercase; }
.ngrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.ncard { display: flex; flex-direction: column; background: var(--ridge); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; min-width: 0; }
.ncard-img { display: block; aspect-ratio: 16 / 9; background: var(--ridge-2); overflow: hidden; }
.ncard-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.ncard:hover .ncard-img img { transform: scale(1.04); }
.ncard-b { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.ncard time, .art-h time { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--fog); }
.ncard h3 { font-size: 23px; line-height: 1.12; }
.ncard h3 a { color: var(--moon); text-decoration: none; }
.ncard h3 a:hover { color: var(--nvg); }
.ncard p { color: var(--fog); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ncard .more { margin-top: auto; padding-top: 6px; font-family: var(--display); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.allnews { margin-top: 22px; }
.art { max-width: 820px; }
.art-h { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 22px; }
.art-h h1 { font-size: clamp(34px, 5.4vw, 54px); line-height: 1.02; }
.art-h .lead { color: var(--fog); font-size: 19px; }
.art-fig { margin: 0 0 26px; }
.art-fig img { display: block; width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--line); }
.art-fig figcaption { margin-top: 6px; font-size: 12px; color: var(--fog); }
.art-b { display: flex; flex-direction: column; gap: 14px; font-size: 17px; max-width: 68ch; }
.art-b h2 { font-size: 28px; margin-top: 14px; text-transform: uppercase; }
.art-b ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.art-b li::marker { color: var(--nvg); }
.art-b .ours { margin-top: 14px; padding: 18px 20px; background: var(--ridge); border: 1px solid var(--line); border-left: 3px solid var(--nvg); border-radius: 4px; }
.art-b .ours h2 { margin: 0 0 6px; font-size: 22px; color: var(--nvg); }
.art-b .src { font-size: 14px; color: var(--fog); margin-top: 8px; }
@media (prefers-reduced-motion: reduce) { .ncard-img img { transition: none; } }

/* shared page pieces: sub headings, states, forms */
.block.narrow { max-width: 860px; }
.h-sub { font-size: 30px; line-height: 1.1; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.state { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 28px; background: var(--ridge); border: 1px solid var(--line); border-radius: 6px; }
.state h2 { font-size: 26px; }
.state p { color: var(--fog); }
.state.bad { border-left: 3px solid var(--bad); }
.alert { margin: 12px 0; padding: 10px 14px; border: 1px solid rgba(255,93,93,.45); background: rgba(255,93,93,.08); color: #ffb3b3; border-radius: 4px; }
.note { margin-top: 16px; color: var(--fog); }
.card { background: var(--ridge); border: 1px solid var(--line); border-radius: 6px; padding: 20px; }
.form { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; }
.form label > span { font-family: var(--display); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: 15px; color: var(--fog); }
.form input[type=text], .form input[type=email], .form input[type=number], .form input[type=search], .form select, .form textarea, .inp {
  width: 100%; font: inherit; color: var(--moon); background: var(--night); border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; }
.form textarea { resize: vertical; min-height: 110px; }
.form input:focus, .form select:focus, .form textarea:focus, .inp:focus { outline: 2px solid var(--nvg); outline-offset: 1px; border-color: transparent; }
::placeholder { color: #5f736b; opacity: 1; }

/* tickets */
.tk-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tk-list a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--ridge); border: 1px solid var(--line); border-radius: 6px; color: var(--moon); text-decoration: none; }
.tk-list a:hover { border-color: #3a4d45; background: var(--ridge-2); }
.tk-t { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.tk-t b { font-weight: 600; overflow-wrap: anywhere; }
.tk-t small { color: var(--fog); font-size: 13px; }
.tk-id { font-family: var(--mono); color: var(--fog); font-weight: 400; }
.tk-list .arrow { color: var(--fog); }
.st { flex: none; font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 3px; border: 1px solid var(--line); color: var(--fog); white-space: nowrap; }
.st-open { color: var(--nvg); border-color: rgba(125,250,90,.45); }
.st-in_progress { color: var(--blast); border-color: rgba(255,154,60,.45); }
.st-resolved { color: #8fc7ff; border-color: rgba(143,199,255,.4); }
.st-rejected { color: var(--bad); border-color: rgba(255,93,93,.45); }
.tk-head { margin: 14px 0 18px; display: flex; flex-direction: column; gap: 8px; }
.tk-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--fog); font-size: 14px; }
.thread { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.msg { background: var(--ridge); border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; }
.msg.staff { border-left: 3px solid var(--nvg); background: rgba(125,250,90,.04); }
.msg-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.msg-h img { border-radius: 50%; }
.msg-h time { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--fog); }
.msg-b { overflow-wrap: anywhere; }
.tagstaff { font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #06210a; background: var(--nvg); padding: 1px 7px; border-radius: 3px; }

/* leaderboard */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lb-top { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.seg button { font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: .06em; text-transform: uppercase; padding: 8px 16px; background: var(--ridge); color: var(--fog); border: 0; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-selected="true"] { background: var(--nvg); color: #06210a; }
.lb-search { flex: 0 1 280px; }
.tabs button { font: inherit; background: none; border: 0; cursor: pointer; }
.lb-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--ridge); }
.lb-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lb-table th, .lb-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.lb-table tbody tr:last-child td { border-bottom: 0; }
.lb-table tbody tr:hover { background: var(--ridge-2); }
.lb-table th { font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--fog); background: #0b110f; position: sticky; top: 0; }
.lb-table th button { font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; gap: 5px; align-items: center; }
.lb-table th button:hover, .lb-table th.on button { color: var(--nvg); }
.lb-table th i { font-style: normal; font-size: 9px; width: 9px; }
.lb-table .num { text-align: right; font-family: var(--mono); font-size: 14px; }
.lb-table th.num { font-family: var(--display); }
.lb-table th.num button { flex-direction: row-reverse; }
.lb-table td.on { color: var(--nvg); }
.lb-table .rk { width: 1%; color: var(--fog); font-family: var(--mono); font-size: 13px; text-align: right; }
.lb-table .rk.top1 { color: #ffd66b; font-weight: 600; } .lb-table .rk.top2 { color: #d5dde0; font-weight: 600; } .lb-table .rk.top3 { color: #d99a6c; font-weight: 600; }
.lb-table .pl a { display: inline-flex; align-items: center; gap: 10px; color: var(--moon); text-decoration: none; max-width: 260px; }
.lb-table .pl a span { overflow: hidden; text-overflow: ellipsis; }
.lb-table .pl a:hover span { color: var(--nvg); }
.lb-table .pl img, .lb-table .noav { width: 24px; height: 24px; border-radius: 50%; flex: none; background: var(--ridge-2); }
.lb-table .none { text-align: center; color: var(--fog); padding: 36px 14px; }
.lb.busy tbody { opacity: .45; }
.lb-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; color: var(--fog); font-size: 14px; flex-wrap: wrap; }
.lb-pager { display: inline-flex; gap: 8px; }
.btn:disabled { opacity: .4; cursor: default; filter: none; }
.tabs button { font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: .05em; text-transform: uppercase; color: var(--fog); padding: 10px 14px; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button:hover { color: var(--moon); border-bottom-color: var(--nvg); }
.tabs button[aria-current] { color: var(--nvg); border-bottom-color: var(--nvg); }
.lb-views { margin: 0 0 14px; }

/* ── admin panel ── */
body.adm main { padding-top: 60px; }
.adm-wrap { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 32px; padding-block: 28px 80px; max-width: 1240px; }
.adm-menu { position: sticky; top: 84px; align-self: start; }
.adm-menu h2 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #5f736b; margin: 18px 0 6px; font-weight: 600; }
.adm-menu h2:first-child { margin-top: 0; }
.adm-menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.adm-menu a { display: flex; align-items: center; justify-content: space-between; padding: 7px 10px; border-radius: 4px; color: var(--fog); text-decoration: none; border-left: 2px solid transparent; }
.adm-menu a:hover { color: var(--moon); background: var(--ridge); }
.adm-menu a[aria-current] { color: var(--moon); background: var(--ridge); border-left-color: var(--nvg); }
.adm-menu a b { font-family: var(--mono); font-size: 12px; font-weight: 600; color: #06210a; background: var(--blast); border-radius: 9px; padding: 0 7px; }
.adm-main { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.adm-main form[data-main] { display: flex; flex-direction: column; gap: 16px; }
.adm-main [data-rows] { display: flex; flex-direction: column; gap: 16px; }
.adm-h { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.adm-h h1 { font-size: 40px; line-height: 1; text-transform: uppercase; }
.adm-h p { color: var(--fog); max-width: 70ch; }
.adm-flash { padding: 10px 14px; border-radius: 4px; border: 1px solid rgba(125,250,90,.4); background: rgba(125,250,90,.07); color: #c9f7bb; }
.adm-flash.bad { border-color: rgba(255,93,93,.45); background: rgba(255,93,93,.08); color: #ffb3b3; }
.adm-card { display: flex; flex-direction: column; gap: 14px; }
.adm-card > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.adm-card h3 { font-size: 22px; }
.adm-card .title { font-family: var(--display); font-weight: 700; font-size: 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px 20px; align-items: start; }
.f { display: flex; flex-direction: column; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; }
.f.wide { grid-column: 1 / -1; }
.f > span, .f > legend { font-family: var(--display); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: 14px; color: var(--fog); padding: 0; }
.f small, .hint { color: #6f837b; font-size: 13px; font-weight: 400; letter-spacing: 0; text-transform: none; font-family: var(--body); }
.f input[type=text], .f input[type=number], .f input[type=url], .f input[type=password], .f input[type=email], .f textarea, .f select {
  width: 100%; font: inherit; color: var(--moon); background: var(--night); border: 1px solid var(--line); border-radius: 4px; padding: 9px 12px; }
.f textarea { resize: vertical; }
.f input:focus, .f textarea:focus, .f select:focus { outline: 2px solid var(--nvg); outline-offset: 1px; border-color: transparent; }
.f.chips > div { display: flex; flex-wrap: wrap; gap: 6px; }
.f.chips label { cursor: pointer; }
.f.chips input { position: absolute; opacity: 0; pointer-events: none; }
.f.chips label span { display: inline-block; padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--fog); background: var(--night); font-size: 14px; }
.f.chips input:checked + span { color: #06210a; background: var(--nvg); border-color: var(--nvg); font-weight: 600; }
.f.chips input:focus-visible + span { outline: 2px solid var(--nvg); outline-offset: 2px; }
.f.sw { flex-direction: row; align-items: flex-start; gap: 12px; cursor: pointer; }
.f.sw input[type=checkbox] { position: absolute; opacity: 0; }
.f.sw i { flex: none; width: 40px; height: 22px; border-radius: 11px; background: var(--ridge-2); border: 1px solid var(--line); position: relative; margin-top: 2px; transition: background .15s; }
.f.sw i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--fog); transition: transform .15s, background .15s; }
.f.sw input:checked + i { background: rgba(125,250,90,.25); border-color: var(--nvg); }
.f.sw input:checked + i::after { transform: translateX(18px); background: var(--nvg); }
.f.sw input:focus-visible + i { outline: 2px solid var(--nvg); outline-offset: 2px; }
.f.sw > span { display: flex; flex-direction: column; gap: 2px; text-transform: none; letter-spacing: 0; font-family: var(--body); font-size: 16px; color: var(--moon); font-weight: 400; }
.btn.ghost { background: transparent; }
.btn.danger, .btn.armed { color: var(--bad); border-color: rgba(255,93,93,.45); }
.btn.armed { background: rgba(255,93,93,.12); }
.rowline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rowline .inp { flex: 1 1 220px; }
.inp.auto { flex: 0 0 auto; width: auto; }
.mono, td.mono { font-family: var(--mono); font-size: 14px; }
.you { font-family: var(--mono); font-size: 12px; color: var(--nvg); padding: 0 8px; }
.seg a { font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: .06em; text-transform: uppercase; padding: 8px 16px; background: var(--ridge); color: var(--fog); text-decoration: none; }
.seg a + a { border-left: 1px solid var(--line); }
.seg a[aria-current] { background: var(--nvg); color: #06210a; }
.adm-seg { align-self: flex-start; margin-top: 6px; }
.savebar { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 30; display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 18px; background: #111a17; border: 1px solid var(--nvg); border-radius: 8px; box-shadow: 0 12px 40px rgba(0,0,0,.6); }
.savebar[hidden] { display: none; }
.savebar span { color: var(--moon); margin-right: 8px; white-space: nowrap; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.tile { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; background: var(--ridge); border: 1px solid var(--line); border-radius: 6px; color: var(--fog); text-decoration: none; font-size: 14px; }
.tile b { font-family: var(--display); font-size: 28px; line-height: 1.1; color: var(--moon); }
a.tile:hover { border-color: var(--nvg); }
.adm-table td.wrapcell { white-space: normal; min-width: 260px; }
.adm-table td.act { text-align: right; }
.adm-table form { display: inline; }
.adm-split { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; align-items: start; }
.adm-side { display: flex; flex-direction: column; gap: 12px; }
.adm-side .card { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.adm-side h3 { font-size: 18px; text-transform: uppercase; letter-spacing: .06em; color: var(--fog); }
.adm-side h4 { font-size: 14px; color: var(--fog); font-family: var(--body); font-weight: 600; margin: 4px 0 0; }
.adm-side .who { display: flex; gap: 10px; align-items: center; }
.adm-side .who img { border-radius: 50%; }
.adm-side .who span { display: flex; flex-direction: column; min-width: 0; }
.adm-side code { font-family: var(--mono); font-size: 12px; color: var(--fog); }
.stack { display: flex; flex-direction: column; gap: 8px; }
ul.plain { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.adm-filter { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.adm-filter .inp { flex: 0 1 300px; }
.chipnav { display: flex; flex-wrap: wrap; gap: 6px; }
.chipnav a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--fog); text-decoration: none; font-size: 14px; }
.chipnav a b { font-family: var(--mono); font-weight: 400; font-size: 12px; opacity: .8; }
.chipnav a[aria-current] { color: #06210a; background: var(--nvg); border-color: var(--nvg); }
.tk-row { display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: var(--ridge); border: 1px solid var(--line); border-radius: 6px; }
.tk-row img { border-radius: 4px; object-fit: cover; flex: none; }
.tk-row.off { opacity: .55; }
@media (max-width: 860px) {
  .adm-wrap { grid-template-columns: 1fr; gap: 16px; }
  .adm-menu { position: static; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
  .adm-menu h2 { display: none; } .adm-menu ul { flex-direction: row; flex-wrap: wrap; }
  .adm-split { grid-template-columns: 1fr; }
}
.terms .art-b { font-size: 16px; }
.terms .art-b h2 { font-size: 24px; text-transform: none; }
.art-m { margin: 2px 0 4px; }
.art-m img, .art-m video { display: block; width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--line); background: var(--ridge); }
