/* oolibuzz - one stylesheet, no build step (shared hosting). Light and dark follow the phone/PC setting. */
:root {
  --bg: #f4f5f8; --card: #ffffff; --text: #16181d; --muted: #667085; --line: #e4e7ec;
  --brand: #ff5a1f; --brand-2: #ffb020; --brand-ink: #ffffff; --danger: #d92d20; --ok: #12b76a;
  --radius: 14px; --shadow: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.08);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f1115; --card: #181b21; --text: #eceef2; --muted: #98a2b3; --line: #2a2f38; --shadow: none; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img, video { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }

/* top bar */
.top { position: sticky; top: 0; z-index: 10; background: var(--card); border-bottom: 1px solid var(--line); }
.top .in { max-width: 1040px; margin: 0 auto; padding: 8px 16px; display: flex; gap: 12px; align-items: center; }
.logo { font-weight: 800; font-size: 22px; letter-spacing: -.5px; background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo:hover { text-decoration: none; }
.logo-mark { display: inline-block; width: 1.3em; height: 1.3em; border-radius: 22%; vertical-align: -.3em; margin: 0 .3em 0 0; }   /* the official logo */
.auth .logo .logo-mark { display: inline-block; margin: 0 .3em 0 0; }
.top form.search { flex: 1; max-width: 360px; }
.top input[type=search] { width: 100%; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); }
.top nav { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.top nav a, .top nav button { padding: 8px 12px; border-radius: 10px; color: var(--text); background: none; border: 0; cursor: pointer; }
.top nav a:hover, .top nav button:hover { background: var(--bg); text-decoration: none; }
.top nav a.on { color: var(--brand); font-weight: 600; }
.me { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }

/* page */
.wrap { max-width: 640px; margin: 20px auto; padding: 0 16px 80px; }
.wide { max-width: 1040px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 16px; }
h1 { font-size: 22px; margin: 0 0 16px; }
h2 { font-size: 18px; margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.flash { padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; background: color-mix(in srgb, var(--ok) 14%, var(--card)); border: 1px solid color-mix(in srgb, var(--ok) 40%, transparent); }
.errors { padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; background: color-mix(in srgb, var(--danger) 12%, var(--card)); border: 1px solid color-mix(in srgb, var(--danger) 40%, transparent); }
.errors ul { margin: 0; padding-left: 18px; }

/* forms */
label { display: block; font-weight: 600; margin: 12px 0 6px; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], textarea, select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
input:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--brand) 45%, transparent); border-color: var(--brand); }
textarea { resize: vertical; min-height: 80px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border-radius: 10px; border: 0;
  background: var(--brand); color: var(--brand-ink); font-weight: 600; cursor: pointer; }
.btn:hover { filter: brightness(1.05); text-decoration: none; }
.btn:disabled { opacity: .55; cursor: default; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.danger { background: var(--danger); }
.btn.small { padding: 6px 12px; font-size: 13px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }   /* bot trap */
.auth { max-width: 420px; margin: 48px auto; padding: 0 16px; }
.auth .logo { display: block; text-align: center; font-size: 34px; margin-bottom: 18px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }

/* composer + drag and drop */
.composer textarea { border: 0; padding: 4px 0; min-height: 70px; background: transparent; }
.composer textarea:focus { outline: none; }
.drop { border: 2px dashed var(--line); border-radius: 12px; padding: 14px; text-align: center; color: var(--muted); cursor: pointer; transition: .15s; margin-top: 8px; }
.drop.over { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, transparent); color: var(--text); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; margin-top: 10px; }
.thumbs .t { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--bg); }
.thumbs .t img, .thumbs .t video { width: 100%; height: 100%; object-fit: cover; }
.thumbs .t button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; cursor: pointer; line-height: 1; }
.progress { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; margin-top: 10px; display: none; }
.progress i { display: block; height: 100%; width: 0; background: var(--brand); transition: width .2s; }

/* posts */
.post .head { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: var(--bg); flex: none; }
.post .who { font-weight: 600; color: var(--text); }
.post .body { white-space: normal; overflow-wrap: anywhere; }
.gallery { display: grid; gap: 4px; margin: 12px -16px 0; }
.gallery.n1 { grid-template-columns: 1fr; }
.gallery.n2, .gallery.n4 { grid-template-columns: 1fr 1fr; }
.gallery.n3 { grid-template-columns: 1fr 1fr 1fr; }
.gallery.many { grid-template-columns: 1fr 1fr 1fr; }
.gallery img { width: 100%; height: 100%; max-height: 640px; object-fit: cover; aspect-ratio: 1; cursor: zoom-in; }
.gallery.n1 img { aspect-ratio: auto; object-fit: contain; background: #000; }
.gallery video { width: 100%; max-height: 720px; background: #000; }
.actions { display: flex; gap: 6px; margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
.actions button, .actions a { background: none; border: 0; padding: 6px 10px; border-radius: 8px; cursor: pointer; color: var(--muted); font-weight: 600; }
.actions button:hover, .actions a:hover { background: var(--bg); text-decoration: none; }
.actions .liked { color: var(--brand); }
.comment { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.comment .avatar { width: 32px; height: 32px; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; background: var(--bg); color: var(--muted); }
.pill.held { background: color-mix(in srgb, var(--brand-2) 25%, transparent); color: var(--text); }

/* profile */
.cover { height: 200px; border-radius: var(--radius) var(--radius) 0 0; background: linear-gradient(120deg, var(--brand), var(--brand-2)) center/cover; margin: -16px -16px 0; }
.profile-head { display: flex; gap: 16px; align-items: flex-end; margin-top: -48px; }
.profile-head .avatar { width: 112px; height: 112px; border: 4px solid var(--card); }
.stats { display: flex; gap: 18px; margin: 10px 0; }
.stats b { color: var(--text); }

/* admin + tables */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.stat { font-size: 26px; font-weight: 800; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.checks li { list-style: none; padding: 6px 0; }
.checks .ok::before { content: "✓ "; color: var(--ok); font-weight: 800; }
.checks .bad::before { content: "✗ "; color: var(--danger); font-weight: 800; }
.pager { display: flex; gap: 8px; justify-content: center; margin: 20px 0; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.9); display: flex; align-items: center; justify-content: center; z-index: 50; cursor: zoom-out; }
.lightbox img { max-width: 96vw; max-height: 96vh; }

/* phase 1: menus, reactions, shares, notifications */
details.menu { position: relative; }
details.menu > summary { list-style: none; cursor: pointer; padding: 2px 8px; border-radius: 8px; color: var(--muted); }
details.menu > summary::-webkit-details-marker { display: none; }
details.menu[open] > summary { background: var(--bg); }
.menu-box { position: absolute; right: 0; top: 100%; z-index: 30; min-width: 240px; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 6px 24px rgba(0,0,0,.15); padding: 10px; display: grid; gap: 8px; }
details.menu.share .menu-box { left: 0; right: auto; }
button.link { background: none; border: 0; padding: 4px 0; color: var(--text); cursor: pointer; text-align: left; font: inherit; }
.report-form { display: grid; gap: 6px; border-top: 1px solid var(--line); padding-top: 8px; }
.react { position: relative; display: inline-flex; }
.react-pick { display: none; position: absolute; bottom: 100%; left: 0; background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 6px; box-shadow: 0 4px 16px rgba(0,0,0,.15); white-space: nowrap; z-index: 20; }
.react:hover .react-pick, .react:focus-within .react-pick { display: flex; }
.react-pick button { font-size: 22px; background: none; border: 0; cursor: pointer; transition: transform .1s; }
.react-pick button:hover { transform: scale(1.3); }
.react > button i { font-style: normal; }
a.shared, div.shared { display: grid; gap: 6px; margin-top: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); }
a.shared:hover { text-decoration: none; background: var(--bg); }
a.shared img, a.shared video { max-width: 100%; max-height: 360px; border-radius: 8px; object-fit: cover; }
.bell { position: relative; }
.badge { position: absolute; top: -4px; left: 14px; min-width: 18px; padding: 0 5px; border-radius: 999px; background: var(--danger);
  color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.notice { color: var(--text); border-radius: 10px; padding: 8px; }
.notice:hover { text-decoration: none; background: var(--bg); }
.notice.unread { background: color-mix(in srgb, var(--brand) 8%, var(--card)); }

/* phase 2: chat, calls, features */
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.group-ico { display: inline-flex; align-items: center; justify-content: center; background: var(--bg); font-size: 20px; }
.badge.static { position: static; display: inline-block; }
.chat { display: flex; flex-direction: column; height: calc(100vh - 140px); min-height: 420px; padding: 0; }
.chat-head { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.chat-body { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.bubble { display: flex; gap: 8px; align-items: flex-end; max-width: 80%; }
.bubble .avatar { width: 28px; height: 28px; }
.bubble .b { background: var(--bg); border-radius: 16px; padding: 8px 12px; overflow-wrap: anywhere; position: relative; }
.bubble .b img, .bubble .b video { max-width: 260px; max-height: 320px; border-radius: 10px; display: block; margin-bottom: 4px; }
.bubble .b > span.small { font-size: 11px; }
.bubble.mine { align-self: flex-end; }
.bubble.mine .b { background: var(--brand); color: var(--brand-ink); }
.bubble.mine .b a, .bubble.mine .b .muted { color: var(--brand-ink); opacity: .85; }
.bubble.system { align-self: center; max-width: 90%; font-size: 13px; color: var(--muted); text-align: center; display: block; }
details.menu.inline { display: inline-block; }
details.menu.inline > summary { padding: 0 4px; }
.seen { text-align: right; padding: 0 14px; }
.chat-form { padding: 10px 12px; border-top: 1px solid var(--line); align-items: flex-end; }
.chat-form textarea { resize: none; max-height: 120px; }
.call-frame { width: 100%; height: calc(100vh - 220px); min-height: 420px; border: 0; border-radius: var(--radius); background: #000; }
.feature { padding: 10px 0; border-bottom: 1px solid var(--line); }

/* phase 3: stories, reels, polls, GIFs, live */
.composer-tools { margin-top: 10px; gap: 8px; }
.poll-box input[type=text] { margin-bottom: 6px; }
.gif-box { width: min(360px, 90vw); }
.gif-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; max-height: 300px; overflow-y: auto; }
.gif-grid img { width: 100%; height: 90px; object-fit: cover; border-radius: 6px; cursor: pointer; }
.gif-chosen { margin-top: 8px; }
.gif-chosen img, img.gif { max-width: 100%; max-height: 320px; border-radius: 10px; display: block; margin-top: 8px; }
.stories { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 12px; margin-bottom: 4px; }
.story { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 72px; flex: 0 0 auto; color: var(--text); text-align: center; position: relative; }
.story:hover { text-decoration: none; }
.story label { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; }
.story .ring { width: 64px; height: 64px; border-radius: 50%; padding: 3px; background: var(--line); display: block; }
.story .ring.on { background: linear-gradient(45deg, var(--brand), var(--brand-2)); }
.story .ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid var(--card); display: block; }
.story.add b { position: absolute; top: 44px; left: 46px; background: var(--brand); color: #fff; border-radius: 50%; width: 22px; height: 22px;
  line-height: 20px; text-align: center; border: 2px solid var(--card); }
.story .small { max-width: 72px; }
.story-viewer { position: relative; background: #000; border-radius: var(--radius); overflow: hidden; height: calc(100vh - 140px); min-height: 480px; color: #fff; }
.story-bars { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; gap: 4px; z-index: 3; }
.story-bars i { flex: 1; height: 3px; background: rgba(255,255,255,.35); border-radius: 2px; }
.story-bars i.done, .story-bars i.now { background: #fff; }
.story-top { position: absolute; top: 18px; left: 10px; right: 10px; z-index: 3; }
.story-top a { color: #fff; }
.story-slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.story-slide img, .story-slide video { max-width: 100%; max-height: 100%; }
.story-caption { position: absolute; bottom: 56px; left: 0; right: 0; text-align: center; padding: 8px 16px; background: rgba(0,0,0,.4); }
.story-foot { position: absolute; bottom: 14px; left: 14px; right: 14px; z-index: 4; }
.story-foot .link { color: #fff; }
.story-nav { position: absolute; top: 70px; bottom: 60px; width: 35%; background: none; border: 0; z-index: 2; cursor: pointer; }
.story-nav.prev { left: 0; } .story-nav.next { right: 0; }
.reels { height: calc(100vh - 140px); overflow-y: auto; scroll-snap-type: y mandatory; border-radius: var(--radius); background: #000; }
.reel { height: calc(100vh - 140px); scroll-snap-align: start; position: relative; display: flex; align-items: center; justify-content: center; }
.reel video { max-width: 100%; max-height: 100%; }
.reel-info { position: absolute; left: 12px; right: 60px; bottom: 16px; color: #fff; text-shadow: 0 1px 3px #000; }
.reel-info a { color: #fff; }
.reel-sound { position: absolute; right: 12px; bottom: 16px; font-size: 22px; background: rgba(0,0,0,.4); border: 0; border-radius: 50%; width: 44px; height: 44px; cursor: pointer; }
.poll { display: grid; gap: 6px; margin: 10px 0; }
.poll-opt { position: relative; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; overflow: hidden; cursor: pointer; }
.poll-opt input { width: auto; position: relative; z-index: 1; }
.poll-opt .bar { position: absolute; left: 0; top: 0; bottom: 0; background: color-mix(in srgb, var(--brand) 18%, transparent); transition: width .3s; }
.poll-opt.mine { border-color: var(--brand); }
.poll-opt .t { flex: 1; position: relative; } .poll-opt .p { position: relative; font-weight: 700; }
.live-player { width: 100%; max-height: 70vh; background: #000; border-radius: var(--radius); }

/* phase 4: groups, pages, events, the More menu */
.nav-more .menu-box { min-width: 200px; }
.nav-more .menu-box a, .nav-more .menu-box .link { display: block; padding: 6px 4px; color: var(--text); }
.nav-more > summary { color: inherit; }
.date-chip { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px;
  background: color-mix(in srgb, var(--brand) 14%, var(--card)); font-size: 11px; text-transform: uppercase; color: var(--brand); flex: 0 0 auto; }
.date-chip b { font-size: 18px; line-height: 1; }

/* phase 5: blogs, forums, jobs, marketplace, albums, discovery, library */
.nav-more .menu-box { max-height: 70vh; overflow-y: auto; }
.chips { gap: 6px; margin-bottom: 12px; }
.verified { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin-left: 4px; border-radius: 50%;
  background: #1d9bf0; color: #fff; font-size: 11px; font-weight: 800; vertical-align: middle; }
.article-row { display: flex; gap: 14px; color: var(--text); }
.article-row:hover { text-decoration: none; border-color: var(--brand); }
.article-row img { width: 160px; height: 110px; object-fit: cover; border-radius: 10px; flex: 0 0 auto; }
.article-row h2 { margin: 6px 0; }
.article-cover { width: 100%; max-height: 380px; object-fit: cover; border-radius: 10px; margin-bottom: 12px; }
.article-body { font-size: 17px; line-height: 1.7; overflow-wrap: anywhere; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 16px; }
.product { display: flex; flex-direction: column; gap: 4px; color: var(--text); padding: 10px; margin: 0; }
.product:hover { text-decoration: none; border-color: var(--brand); }
.product img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.album-empty { width: 100%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 48px; background: var(--bg); border-radius: 10px; }
.price { font-size: 24px; font-weight: 800; color: var(--brand); margin: 4px 0; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.photo-grid .photo { position: relative; }
.photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; cursor: zoom-in; }
.photo-grid form { position: absolute; top: 6px; right: 6px; }
.suggest { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-top: 10px; }
.suggest-item { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; border: 1px solid var(--line); border-radius: 12px; padding: 10px; min-width: 0; }
.suggest-item .ellipsis { max-width: 100%; }
@media (max-width: 640px) { .article-row img { width: 96px; height: 80px; } }

/* phase 6: languages (right-to-left), social login */
.lang-form select { width: auto; padding: 4px 8px; font-size: 13px; }
[dir="rtl"] .menu-box { right: auto; left: 0; }
[dir="rtl"] details.menu.share .menu-box { left: auto; right: 0; }
[dir="rtl"] .badge { left: auto; right: 14px; }
[dir="rtl"] .bubble.mine { align-self: flex-start; }
[dir="rtl"] .bubble:not(.mine):not(.system) { align-self: flex-end; }
.social-login { display: grid; gap: 8px; margin: 12px 0; }
.social-login .btn { width: 100%; }
.or { text-align: center; color: var(--muted); font-size: 13px; margin: 8px 0; }

/* phase 7: money */
.pro-badge { display: inline-block; margin-left: 4px; padding: 0 5px; border-radius: 5px; background: linear-gradient(45deg, var(--brand), var(--brand-2));
  color: #fff; font-size: 10px; font-weight: 800; vertical-align: middle; letter-spacing: .5px; }
.progress-bar { height: 10px; background: var(--bg); border-radius: 999px; overflow: hidden; margin: 8px 0; }
.progress-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.sponsored { margin-bottom: 16px; }
.sponsored > .muted { display: block; margin: 0 0 4px 4px; }
.sponsored .card { margin-bottom: 0; border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }

/* affiliate programme, legal pages, footer, cookie banner */
.admin-nav { margin: 0 0 16px; }
.admin-nav a.on { font-weight: 800; }
label.check { display: flex; gap: 8px; align-items: flex-start; font-weight: normal; margin: 8px 0; }
label.check input { width: auto; margin-top: 3px; }
details.card summary { cursor: pointer; }
.legal h2 { margin-top: 24px; }
.legal li { margin: 6px 0; }
.foot { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; padding: 24px 16px 96px; font-size: 13px; }
.foot a { color: var(--muted); }
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 640px; margin: 0 auto; z-index: 40;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 6px 24px rgba(0,0,0,.18); padding: 12px 16px; }
.cookie-banner p { margin: 0 0 8px; }

@media (max-width: 640px) {
  .top form.search { display: none; }
  .top nav a span { display: none; }
  .wrap { margin-top: 12px; }
  .gallery { margin: 12px -16px 0; }
}

/* the AI section (13 Oct 2026): every AI carries this label */
.ai-badge { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 6px; font-size: 11px; font-weight: 700;
    letter-spacing: .04em; vertical-align: middle; background: #5b3fd6; color: #fff; }
.ai-thread .reply { border-top: 1px solid var(--line, #eee); padding: 10px 0; }
.ai-thread .reply:first-child { border-top: 0; }
.ai-note { background: color-mix(in srgb, #5b3fd6 8%, transparent); border-radius: 10px; padding: 10px 12px; }
.ai-key { font-family: ui-monospace, Consolas, monospace; word-break: break-all; background: var(--bg); padding: 8px; border-radius: 8px; }

/* the old site's left menu (partials/sections): a sidebar on wide screens, inside the ☰ menu on narrow ones */
.side-sections { display: none; }
.menu-box hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
@media (min-width: 1200px) {
  .side-sections { display: flex; flex-direction: column; position: fixed; top: 64px; bottom: 0; overflow-y: auto; width: 210px;
    left: max(12px, calc(50% - 320px - 250px)); padding: 8px 0 24px; }
  .side-sections a { padding: 7px 12px; border-radius: 10px; color: var(--text); }
  .side-sections a:hover { background: var(--card); text-decoration: none; }
  .side-sections a.on { background: var(--card); color: var(--brand); font-weight: 600; }
  .menu-sections, .menu-sections + hr { display: none; }
  /* wide pages (Market, Movies, Albums, Admin) start right of the menu instead of under it (user, 14 Oct 2026) */
  .side-sections ~ main.wide { margin-left: max(250px, calc(50% - 330px)); margin-right: 16px; }
}

/* show / hide password eye */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 46px !important; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center;
  border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; padding: 0; }
.pw-toggle:hover, .pw-toggle:focus-visible { color: var(--text); background: var(--bg); }

/* "make a strong password for me" */
.pw-make { margin-top: 8px; }
.pw-made { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--ok) 12%, var(--card)); border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); }
.pw-made code { font-size: 16px; font-weight: 700; letter-spacing: .5px; user-select: all; word-break: break-all; }
.pw-made p { margin: 6px 0 0; }
