@font-face { font-family: 'Silkscreen'; src: url('fonts/silkscreen-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Silkscreen'; src: url('fonts/silkscreen-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'VT323'; src: url('fonts/vt323-latin-400-normal.woff2') format('woff2'); font-display: swap; }

:root {
  --night: #0b0e18; --panel: #111727; --panel2: #161e33; --line: #24304d; --line2: #33436a;
  --text: #e4ebfb; --dim: #94a1c2; --faint: #616e8f;
  --blue: #4aa3ff; --sky: #9cc8ff; --sodium: #ffa53a; --pink: #e99ab0; --green: #3ccf87; --red: #ff6b6b;
  --px: 'Silkscreen', 'Courier New', monospace; --vt: 'VT323', 'Courier New', monospace;
  --body: Verdana, 'DejaVu Sans', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--night); color: var(--text); font: 14px/1.6 var(--body); }
body { background-image: radial-gradient(ellipse at 50% -10%, rgba(74,163,255,.10), transparent 55%), linear-gradient(rgba(74,163,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(74,163,255,.03) 1px, transparent 1px); background-size: auto, 32px 32px, 32px 32px; min-height: 100vh; }
a { color: var(--sky); text-decoration: none; }
a:hover { color: #fff; }
img.px, .px img { image-rendering: pixelated; }
/* Pixeltypsnittet bara på loggan och sidrubriker */
h1 { font: 400 30px/1.15 var(--px); color: #fff; margin: 0 0 .35em; letter-spacing: .01em; }
h2 { font: 700 17px/1.3 var(--body); color: var(--sodium); margin: 1.8em 0 .6em; }
h2 .n { color: var(--faint); font-weight: 400; font-size: 14px; }
h3 { font: 700 14px/1.3 var(--body); color: var(--sky); margin: 0 0 .5em; }
h3.side { margin: 22px 0 8px; color: var(--sodium); }
.mt0 { margin-top: 0 !important; }
button, .btn { font: 600 12px/1 var(--body); background: var(--panel2); color: var(--text); border: 1px solid var(--line2); padding: 8px 12px; cursor: pointer; border-radius: 3px; display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
button:hover, .btn:hover { border-color: var(--blue); color: #fff; }
button.primary, .btn.primary { background: var(--blue); border-color: var(--blue); color: #04122e; }
button.primary:hover, .btn.primary:hover { background: var(--sky); }
button.danger { border-color: #6a2b35; color: #ffb0b0; }
button.ghost, .btn.ghost { background: transparent; }
button.small { padding: 4px 8px; font-size: 11px; }
button:disabled { opacity: .5; cursor: default; }
input, select, textarea { font: 14px var(--body); background: #0a0f1d; color: var(--text); border: 1px solid var(--line2); padding: 8px 10px; border-radius: 3px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 2px rgba(74,163,255,.18); }
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
textarea.code { font: 13px/1.5 ui-monospace, Menlo, monospace; }
label { display: block; font: 600 11px var(--body); color: var(--dim); margin: 14px 0 5px; text-transform: uppercase; letter-spacing: .06em; }

/* toppremsa: ticker + verktyg */
#topbar { display: flex; height: 28px; background: #070a12; border-bottom: 1px solid var(--line); }
#ticker { flex: 1; overflow: hidden; font: 18px/28px var(--vt); color: var(--sodium); white-space: nowrap; min-width: 0; }
#tickerInner { display: inline-block; padding-left: 100%; animation: tick 100s linear infinite; }
#tickerInner span { margin-right: 60px; }
#tickerInner span::before { content: '◆ '; color: var(--blue); }
@keyframes tick { to { transform: translateX(-100%); } }
#util { display: flex; align-items: center; gap: 2px; padding: 0 10px; font-size: 12px; background: #070a12; box-shadow: -20px 0 20px #070a12; flex-shrink: 0; }
#util a { color: var(--dim); padding: 3px 8px; border-radius: 3px; white-space: nowrap; }
#util a:hover, #util a.on { color: #fff; background: var(--panel); }
#util .cnt { background: var(--sodium); color: #1a1000; border-radius: 9px; padding: 0 6px; font-size: 11px; }
#util .me { color: var(--faint); margin: 0 6px 0 10px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#util button { padding: 3px 8px; font-size: 11px; }

/* huvudmeny */
#top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 18px; padding: 10px 22px; background: rgba(11,14,24,.95); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.logo { display: grid; grid-template-columns: auto auto; column-gap: 10px; align-items: center; color: #fff; flex-shrink: 0; }
.logo .eye { grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle, #04122e 0 22%, var(--blue) 24% 46%, #dfeeff 48% 56%, transparent 58%); box-shadow: 0 0 14px rgba(74,163,255,.6); }
.logo .l1 { font: 700 14px var(--px); letter-spacing: .06em; }
.logo .l2 { font: 10px var(--px); color: var(--sodium); letter-spacing: .16em; }
#nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
#nav::-webkit-scrollbar { display: none; }
#nav a { font: 600 13px var(--body); color: var(--dim); padding: 8px 11px; border-radius: 3px; white-space: nowrap; border-bottom: 2px solid transparent; }
#nav a:hover { color: #fff; background: var(--panel); }
#nav a.on { color: #fff; background: var(--panel); border-bottom-color: var(--ac, var(--blue)); }
#nav a.area::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ac); margin-right: 7px; vertical-align: 1px; }
.searchwrap { flex: 0 0 220px; }

main { max-width: 1320px; margin: 0 auto; padding: 24px 22px 90px; }
.boot { font: 16px var(--px); color: var(--dim); padding: 80px 0; text-align: center; }

/* inloggning */
.login { max-width: 400px; margin: 70px auto; background: var(--panel); border: 1px solid var(--line2); padding: 30px; box-shadow: 0 0 0 4px #070a12, 0 0 40px rgba(74,163,255,.12); }
.login h1 { font-size: 22px; }
.login p { color: var(--dim); }
.login .err { color: var(--red); min-height: 1.5em; margin-top: 10px; }

/* små delar */
.crumbs { font-size: 12px; color: var(--faint); margin-bottom: 8px; }
.crumbs a { color: var(--dim); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.spread h2 { margin-bottom: .6em; }
.muted { color: var(--dim); }
.small { font-size: 12px; }
.panel { background: var(--panel); border: 1px solid var(--line); padding: 16px 18px; border-radius: 4px; }
.panel + .panel { margin-top: 12px; }
.panel p { margin: 0 0 10px; }
.chip { display: inline-block; font: 600 11px var(--body); padding: 4px 9px; border: 1px solid var(--line2); color: var(--dim); margin: 0 4px 4px 0; background: #0c1222; border-radius: 12px; cursor: pointer; }
a.chip:hover, .chip:hover { color: #fff; border-color: var(--blue); }
.chip.on { background: var(--blue); color: #04122e; border-color: var(--blue); }
.achip { display: inline-flex; align-items: center; gap: 6px; font: 600 11px var(--body); padding: 3px 9px 3px 7px; border-radius: 12px; color: var(--text); background: color-mix(in srgb, var(--ac) 14%, transparent); border: 1px solid color-mix(in srgb, var(--ac) 45%, transparent); }
.achip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ac); }
.achip:hover { color: #fff; background: color-mix(in srgb, var(--ac) 28%, transparent); }
.apick { display: flex; flex-wrap: wrap; gap: 6px; }
.achk { display: inline-flex; margin: 0; text-transform: none; letter-spacing: 0; font: 600 12px var(--body); color: var(--text); cursor: pointer; }
.achk input { display: none; }
.achk span { padding: 6px 12px; border-radius: 14px; border: 1px solid var(--line2); }
.achk input:checked + span { background: color-mix(in srgb, var(--ac) 25%, transparent); border-color: var(--ac); color: #fff; }
.st { font: 700 10px var(--body); padding: 2px 7px; border-radius: 3px; text-transform: uppercase; letter-spacing: .05em; }
.st-kanon { background: rgba(60,207,135,.14); color: var(--green); }
.st-utkast { background: rgba(255,165,58,.14); color: var(--sodium); }
.st-ide { background: rgba(233,154,176,.14); color: var(--pink); }
.st-arkiv { background: rgba(141,154,187,.14); color: var(--dim); }

/* startsida */
.intro2 { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.intro2 p { color: #c5d2ef; max-width: 70ch; margin: 0; }
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.areacard { position: relative; display: block; height: 210px; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); background: #070a12; color: #fff; }
.areacard .aim { position: absolute; inset: 0; }
.areacard .aim img { width: 100%; height: 100%; object-fit: cover; opacity: .62; transition: opacity .2s, transform .4s; }
.areacard .aim img.px { object-fit: cover; }
.areacard::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 25%, rgba(7,10,18,.94)); }
.areacard .atx { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 18px; z-index: 1; border-left: 4px solid var(--ac); }
.areacard b { display: block; font: 400 22px var(--px); letter-spacing: .02em; }
.areacard span { display: block; color: #d4def5; font-size: 13px; }
.areacard small { color: var(--dim); font-size: 12px; }
.areacard small em { color: var(--ac); font-style: normal; font-weight: 700; }
.areacard:hover .aim img { opacity: .85; transform: scale(1.03); }
.areacard:hover { border-color: var(--ac); }
.two > *, .entry > *, .assets-layout > *, .asset-view > * { min-width: 0; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 26px; margin-top: 8px; }
.two aside { padding-top: 54px; }

/* nyheter */
.news { padding: 12px 0; border-top: 1px solid var(--line); }
.news .nh { display: flex; gap: 10px; align-items: baseline; margin-bottom: 6px; }
.news .nh b { font-size: 13px; }
.news .nh span { color: var(--faint); font-size: 12px; }
.news .nl { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 8px; }
.nstrip, .strip { display: flex; gap: 6px; align-items: center; overflow-x: auto; scrollbar-width: thin; }
.nth, .sth { flex: 0 0 auto; width: 64px; height: 64px; background: #070a12; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.sth { width: 92px; height: 92px; }
.strip.small .sth { width: 58px; height: 58px; }
.nth img, .sth img { width: 100%; height: 100%; object-fit: cover; }
.nth img.px, .sth img.px { object-fit: contain; }
.nth:hover, .sth:hover { border-color: var(--blue); }

/* områdessida */
.banner { position: relative; min-height: 300px; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 18px; display: flex; align-items: flex-end; background: #070a12; }
.banner .bim { position: absolute; inset: 0; }
.banner .bim img, .banner .bim video { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,10,18,.95) 0%, rgba(7,10,18,.7) 45%, transparent 85%), linear-gradient(0deg, rgba(7,10,18,.8), transparent 60%); }
.banner .btx { position: relative; z-index: 1; padding: 26px 28px; max-width: 700px; border-left: 5px solid var(--ac); }
.banner h1 { font-size: 40px; }
.banner .lead { font-size: 16px; color: #dfe7fa; }
.hubbody { margin-bottom: 8px; }
.jump { position: sticky; top: 61px; z-index: 10; display: flex; gap: 4px; flex-wrap: wrap; padding: 8px 0; background: rgba(11,14,24,.95); border-bottom: 1px solid var(--line); }
.jump a { font-size: 12px; color: var(--dim); padding: 4px 10px; border-radius: 12px; border: 1px solid var(--line); }
.jump a span { color: var(--faint); }
.jump a:hover { color: #fff; border-color: var(--blue); }
section[id^="sec-"] { scroll-margin-top: 120px; }
.colrow { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.colh { display: flex; justify-content: space-between; gap: 8px; color: var(--text); font-size: 13px; }
.colh span { color: var(--faint); }

/* kort */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.card { background: var(--panel); border: 1px solid var(--line); color: var(--text); display: flex; flex-direction: column; overflow: hidden; border-radius: 4px; }
.card:hover { border-color: var(--blue); color: #fff; }
.card.rev { border-color: color-mix(in srgb, var(--sodium) 60%, transparent); }
.card .im { aspect-ratio: 4/3; background: #070a12; display: flex; align-items: center; justify-content: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.card .im img { width: 100%; height: 100%; object-fit: contain; }
.card .im.cover img { object-fit: cover; }
.card .im .ph { font: 34px var(--vt); color: var(--line2); }
.card .tx { padding: 10px 12px 12px; }
.card .tx b { font: 700 13px var(--body); display: block; margin-bottom: 2px; }
.card .tx small { color: var(--dim); font-size: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .tx .st { display: inline-block; margin-top: 6px; }

/* post */
.entry { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; }
.entry .sub { color: var(--dim); margin: -4px 0 8px; }
.lead { font-size: 16px; color: #cdd8f2; max-width: 70ch; }
.entry .cover { background: #070a12; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; margin-bottom: 14px; }
.entry .cover img, .entry .cover video { width: 100%; display: block; max-height: 540px; object-fit: contain; }
.facts { width: 100%; border-collapse: collapse; font-size: 13px; }
.facts td { border-top: 1px solid var(--line); padding: 7px 4px; vertical-align: top; }
.facts tr:first-child td { border-top: 0; }
.facts td:first-child { font: 600 11px var(--body); color: var(--dim); width: 38%; padding-top: 9px; }
.md { max-width: 78ch; }
.md p { margin: 0 0 1em; }
.md h2 { font-size: 16px; }
.md h3 { margin-top: 1.4em; }
.md blockquote { margin: 0 0 1em; padding: 8px 14px; border-left: 3px solid var(--sodium); color: #d6dff5; background: rgba(255,165,58,.05); }
.md code { background: #070a12; padding: 1px 5px; font-size: 12px; border-radius: 3px; }
.md ul, .md ol { padding-left: 22px; margin: 0 0 1em; }
.tablewrap { overflow-x: auto; margin-bottom: 1em; }
.md table { border-collapse: collapse; font-size: 13px; }
.md th, .md td { border: 1px solid var(--line); padding: 6px 9px; text-align: left; vertical-align: top; }
.md th { background: var(--panel); }
.md hr { border: 0; border-top: 1px dashed var(--line2); margin: 1.5em 0; }
.codebox { position: relative; margin: 0 0 1em; }
.codebox pre, .help pre, .md pre { background: #070a12; border: 1px solid var(--line); padding: 12px 14px; padding-right: 92px; font: 12.5px/1.55 ui-monospace, Menlo, monospace; white-space: pre-wrap; word-break: break-word; border-radius: 4px; margin: 0 0 1em; max-height: 420px; overflow: auto; }
.codebox pre { margin: 0; }
.codebox .copy { position: absolute; right: 8px; top: 8px; padding: 5px 9px; font-size: 11px; }
.rel a { display: block; padding: 6px 0; border-top: 1px solid var(--line); }
.rel a:first-child { border-top: 0; }
.rel a small { color: var(--dim); font-size: 11px; margin-right: 6px; }
.source { font-size: 12px; color: var(--faint); margin-top: 28px; border-top: 1px dashed var(--line); padding-top: 10px; }
.audios { display: grid; gap: 8px; }
.aud { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 12px; align-items: center; background: var(--panel); border: 1px solid var(--line); padding: 8px 12px; border-radius: 4px; cursor: pointer; }
.aud audio { width: 100%; height: 32px; }
.files { display: grid; gap: 2px; }
.filerow { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 10px; background: var(--panel); border: 1px solid transparent; border-radius: 3px; cursor: pointer; }
.filerow:hover { border-color: var(--blue); }
.filerow .fic { font: 18px var(--vt); color: var(--sky); text-align: center; }
.filerow .fn { font-size: 13px; overflow: hidden; }
.filerow .fn small { display: block; color: var(--faint); font: 11px ui-monospace, Menlo, monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.filerow .fs { color: var(--faint); font-size: 12px; }

/* granska */
.reviewbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: rgba(255,165,58,.08); border: 1px solid rgba(255,165,58,.45); border-radius: 4px; padding: 12px 14px; margin-bottom: 16px; font-size: 13px; }
.revitem { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.rvthumb { width: 96px; height: 72px; background: #070a12; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.rvthumb img { width: 100%; height: 100%; object-fit: cover; }
.rvthumb img.px { object-fit: contain; }
.rvthumb .ph { font: 28px var(--vt); color: var(--line2); }
.rvtx b { display: block; margin: 2px 0; }
.rvbtn { display: flex; gap: 6px; flex-wrap: wrap; }

/* filer */
.assets-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 22px; }
.cols { max-height: calc(100vh - 140px); overflow: auto; position: sticky; top: 76px; padding: 10px; }
.cols a { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--dim); padding: 5px 8px; border-left: 2px solid transparent; cursor: pointer; border-radius: 0 3px 3px 0; }
.cols a:hover { color: #fff; background: var(--panel2); }
.cols a.on { color: #fff; border-left-color: var(--sodium); background: var(--panel2); }
.cols a span:last-child { color: var(--faint); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.grid.big { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.tile { background: var(--panel); border: 1px solid var(--line); cursor: pointer; position: relative; display: flex; flex-direction: column; border-radius: 4px; overflow: hidden; }
.tile:hover { border-color: var(--blue); }
.tile.rev { border-color: rgba(255,165,58,.6); }
.tile .th { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; background-color: #070a12; background-image: linear-gradient(45deg, #0d1222 25%, transparent 25%, transparent 75%, #0d1222 75%), linear-gradient(45deg, #0d1222 25%, transparent 25%, transparent 75%, #0d1222 75%); background-size: 16px 16px; background-position: 0 0, 8px 8px; }
.tile .th img { max-width: 100%; max-height: 100%; object-fit: contain; }
.tile .th .ic { font: 30px var(--vt); color: var(--sky); text-align: center; line-height: 1; }
.tile .th .ic small { display: block; font: 600 10px var(--body); color: var(--dim); margin-top: 6px; }
.tile .badge { position: absolute; top: 6px; left: 6px; font: 600 10px var(--body); background: rgba(7,10,18,.85); color: var(--sodium); padding: 2px 6px; border: 1px solid var(--line2); border-radius: 3px; }
.tile .cap { padding: 6px 8px; font-size: 12px; line-height: 1.35; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }

/* modal */
#modal { position: fixed; inset: 0; z-index: 50; }
.modal-bg { position: absolute; inset: 0; background: rgba(3,5,10,.84); }
.modal-box { position: relative; margin: 4vh auto; width: min(1120px, 94vw); max-height: 92vh; overflow: auto; background: var(--panel); border: 1px solid var(--line2); box-shadow: 0 20px 80px rgba(0,0,0,.6); padding: 22px; border-radius: 6px; }
.modal-box .x { position: absolute; right: 12px; top: 10px; z-index: 2; }
.asset-view { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 22px; }
.asset-view .stage { position: relative; background: #070a12; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; min-height: 300px; border-radius: 4px; }
.asset-view .stage img, .asset-view .stage video { max-width: 100%; max-height: 72vh; display: block; }
.asset-view .stage audio { width: 90%; }
.asset-view .stage pre { white-space: pre-wrap; max-height: 70vh; overflow: auto; font-size: 12px; padding: 12px; margin: 0; width: 100%; }
.stagenote { position: absolute; bottom: 6px; left: 0; right: 0; text-align: center; font-size: 12px; color: var(--dim); }
.path { display: flex; gap: 6px; align-items: stretch; }
.path code { flex: 1; background: #070a12; border: 1px solid var(--line); padding: 7px 9px; font-size: 11px; word-break: break-all; border-radius: 3px; }

/* inflöde */
.feed { list-style: none; padding: 0; margin: 0; }
.feed li { display: grid; grid-template-columns: 150px 80px minmax(0, 1fr) auto; gap: 12px; padding: 7px 4px; border-top: 1px solid var(--line); font-size: 13px; align-items: baseline; }
.feed time { color: var(--faint); font-size: 12px; }
.feed .op { font: 700 10px var(--body); text-transform: uppercase; }
.op-insert { color: var(--green); } .op-update { color: var(--sky); } .op-delete { color: var(--red); }
.feed .by { font-size: 11px; color: var(--faint); text-align: right; }

/* formulär */
.form { max-width: 1000px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form .three { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 16px; }
.linked { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.lnkitem .tile .rm { position: absolute; right: 4px; top: 4px; padding: 2px 6px; font-size: 10px; z-index: 1; }
.lnkitem .row { margin-top: 4px; gap: 4px; }
.lnkitem select { padding: 3px 4px; font-size: 11px; width: auto; }
.relrow { padding: 4px 0; border-top: 1px solid var(--line); }
.drop { border: 2px dashed var(--line2); padding: 26px; text-align: center; color: var(--dim); cursor: pointer; border-radius: 4px; }
.drop.over { border-color: var(--blue); color: #fff; background: rgba(74,163,255,.06); }

#toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 60; background: var(--panel2); border: 1px solid var(--blue); padding: 10px 18px; font-size: 13px; box-shadow: 0 6px 30px rgba(0,0,0,.5); border-radius: 4px; }
#toast.err { border-color: var(--red); }

@media (max-width: 1100px) {
  .areas { grid-template-columns: repeat(2, 1fr); }
  .two, .entry { grid-template-columns: minmax(0, 1fr); }
  .two aside { padding-top: 0; }
  .searchwrap { flex-basis: 160px; }
}
@media (max-width: 760px) {
  main { padding: 16px 14px 80px; }
  #top { flex-wrap: wrap; gap: 8px; padding: 8px 12px; }
  #nav { order: 3; flex-basis: 100%; }
  .searchwrap { flex: 1; }
  #ticker { display: none; }
  #util { flex: 1; overflow-x: auto; box-shadow: none; }
  #util .me { display: none; }
  h1 { font-size: 24px; }
  .banner h1 { font-size: 28px; }
  .areas { grid-template-columns: 1fr; }
  .areacard { height: 150px; }
  .assets-layout, .asset-view { grid-template-columns: minmax(0, 1fr); }
  html, body { overflow-x: hidden; }
  .cols { position: static; max-height: 220px; }
  .colrow { grid-template-columns: 1fr; gap: 6px; }
  .form .two, .form .three { grid-template-columns: 1fr; }
  .feed li { grid-template-columns: 1fr; gap: 2px; }
  .revitem { grid-template-columns: 72px minmax(0, 1fr); }
  .rvbtn { grid-column: 1 / -1; }
  .aud { grid-template-columns: 1fr; }
  .jump { top: 104px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .grid.big { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

/* 3D */
.mvwrap { background: radial-gradient(ellipse at 50% 35%, #1a2747, #070a12 70%); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.mvwrap model-viewer { width: 100%; height: 460px; --poster-color: transparent; background: transparent; }
.mvwrap.modal { width: 100%; border: 0; }
.mvwrap.modal model-viewer { height: 70vh; }
.mvwrap.hero model-viewer { height: 62vh; min-height: 380px; }
.mvbar { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding: 8px 10px; border-top: 1px solid var(--line); background: rgba(7,10,18,.7); }
.mvbar .muted { flex: 1; min-width: 160px; }
.mvbar select { width: auto; padding: 3px 6px; font-size: 12px; }
.mvanim { display: inline-flex; gap: 6px; align-items: center; }
@media (max-width: 760px) { .mvwrap model-viewer, .mvwrap.hero model-viewer { height: 52vh; min-height: 300px; } }

/* worldbuilding */
#nav a.wb { color: #fff; }
#nav a.wb::before { content: '◆'; color: var(--blue); margin-right: 6px; font-size: 10px; vertical-align: 1px; }
.wbhead p { max-width: 75ch; margin: 0 0 12px; }
.subtabs { position: sticky; top: 61px; z-index: 10; display: flex; gap: 2px; overflow-x: auto; background: rgba(11,14,24,.96); border-bottom: 1px solid var(--line); margin-bottom: 18px; scrollbar-width: none; }
.subtabs a { font: 600 13px var(--body); color: var(--dim); padding: 10px 14px; white-space: nowrap; border-bottom: 2px solid transparent; }
.subtabs a span { color: var(--faint); font-weight: 400; font-size: 12px; }
.subtabs a:hover { color: #fff; }
.subtabs a.on { color: #fff; border-bottom-color: var(--blue); }
.ogahero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.ogahero .mvwrap { min-width: 0; }
.ogainfo { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 4px; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.ogainfo h2 { margin: 2px 0 0; font: 400 26px var(--px); }
.ogainfo h2 a { color: #fff; }
.ogainfo .sub { color: var(--dim); margin: 0; }
.ogainfo p { margin: 6px 0; }
.ogainfo .row { margin-top: auto; padding-top: 10px; }
.vtag { font: 700 10px var(--body); text-transform: uppercase; letter-spacing: .1em; color: var(--blue); }
.adgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.adcard { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; color: var(--text); }
.adcard:hover, .adcard:focus { border-color: var(--ac); color: #fff; outline: none; }
.adcard.rev { border-color: color-mix(in srgb, var(--sodium) 60%, transparent); }
.adv { position: relative; aspect-ratio: 16/9; background: #05070d; overflow: hidden; border-bottom: 2px solid var(--ac); }
.adv img, .adv video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.adv.tall img, .adv.tall video { object-fit: contain; }
.adv video { opacity: 0; transition: opacity .25s; }
.adcard.playing .adv video { opacity: 1; }
.adv .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 34px var(--vt); color: var(--line2); }
.adv .badge { position: absolute; right: 8px; bottom: 8px; z-index: 1; background: rgba(5,7,13,.82); color: #fff; font: 600 11px var(--body); padding: 3px 7px; border-radius: 3px; }
.adcard .tx { padding: 11px 13px 13px; }
.adcard .tx b { display: block; font: 700 14px var(--body); }
.adcard .tx small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--dim); font-size: 12px; }
.admeta { display: flex; gap: 8px; align-items: center; margin-top: 7px; font-size: 11px; color: var(--faint); }
.wbtiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.wbtiles .areacard { height: 170px; }
.wbtiles .areacard b { font-size: 19px; }
@media (max-width: 900px) { .ogahero { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .subtabs { top: 104px; } .adgrid { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 761px) and (max-width: 1640px) {
  #top { gap: 12px; }
  #nav a { padding: 8px 8px; font-size: 12.5px; }
  #nav a.area::before { margin-right: 5px; }
  .searchwrap { flex-basis: 170px; }
}
#topbar { position: relative; z-index: 40; }
#fp-bar { flex: 0 0 auto; height: 28px; }
