/* scrollnews – App-Styles. Ein Spalten-Layout wie man es kennt:
   Desktop = Seitenleiste + Feed + Extra-Spalte, Handy = Feed + Tab-Leiste. */

:root {
  --bg: #ffffff;
  --bg-2: #f5f6f8;
  --bg-hover: rgba(15, 20, 30, .04);
  --card: #ffffff;
  --text: #0f1419;
  --text-2: #5b6470;
  --line: #e7e9ec;
  --accent: #6d5ef5;
  --accent-2: #5848e8;
  --accent-soft: rgba(109, 94, 245, .12);
  --like: #f0396a;
  --like-soft: rgba(240, 57, 106, .12);
  --repost: #12a66a;
  --repost-soft: rgba(18, 166, 106, .12);
  --danger: #e0244a;
  --overlay: rgba(10, 12, 18, .45);
  --shadow: 0 8px 30px rgba(15, 20, 30, .16);
  --radius: 16px;
  --tabbar-h: 56px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0d12; --bg-2: #151821; --bg-hover: rgba(255, 255, 255, .04); --card: #11141b;
    --text: #e8eaef; --text-2: #8b93a3; --line: #232835;
    --accent: #8576ff; --accent-2: #9a8dff; --accent-soft: rgba(133, 118, 255, .16);
    --overlay: rgba(0, 0, 0, .6); --shadow: 0 8px 30px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0d12; --bg-2: #151821; --bg-hover: rgba(255, 255, 255, .04); --card: #11141b;
  --text: #e8eaef; --text-2: #8b93a3; --line: #232835;
  --accent: #8576ff; --accent-2: #9a8dff; --accent-soft: rgba(133, 118, 255, .16);
  --overlay: rgba(0, 0, 0, .6); --shadow: 0 8px 30px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
svg.i { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.i.fill { fill: currentColor; stroke: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* --- Shell ---------------------------------------------------------------- */
.shell { display: flex; justify-content: center; min-height: 100vh; }
.side { width: 260px; flex: none; position: sticky; top: 0; height: 100vh; padding: 8px 16px; display: flex; flex-direction: column; gap: 2px; }
.col { width: 100%; max-width: 600px; min-height: 100vh; border-left: 1px solid var(--line); border-right: 1px solid var(--line); outline: none; }
.extra { width: 320px; flex: none; padding: 12px 20px; position: sticky; top: 0; height: 100vh; }
.tabbar { display: none; }

.logo { display: flex; align-items: center; gap: 10px; padding: 12px; font-weight: 800; font-size: 21px; letter-spacing: -.02em; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo img { width: 32px; height: 32px; }
.nav-item { display: flex; align-items: center; gap: 16px; padding: 12px; border-radius: 999px; color: var(--text); font-size: 19px; position: relative; width: fit-content; }
.nav-item:hover { background: var(--bg-hover); text-decoration: none; }
.nav-item.on { font-weight: 700; }
.nav-item svg.i { width: 26px; height: 26px; }
.nav-item.on svg.i { stroke-width: 2.4; }
.badge { position: absolute; top: 6px; left: 26px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--bg); }
.side .btn-primary { margin-top: 14px; width: 90%; padding: 14px; font-size: 17px; }
.side .me-chip { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 999px; color: var(--text); }
.side .me-chip:hover { background: var(--bg-hover); text-decoration: none; }
.me-chip .names { min-width: 0; line-height: 1.2; }

/* --- Bausteine ------------------------------------------------------------ */
.btn { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 8px 16px; font-weight: 700; white-space: nowrap; }
.btn:hover { background: var(--bg-hover); }
.btn-primary { border: 0; background: var(--accent); color: #fff; border-radius: 999px; padding: 9px 18px; font-weight: 700; }
.btn-primary:hover { background: var(--accent-2); }
.btn-primary:disabled, .btn:disabled { opacity: .5; cursor: default; }
.btn-dark { border: 0; background: var(--text); color: var(--bg); border-radius: 999px; padding: 8px 16px; font-weight: 700; }
.btn-danger { border: 1px solid var(--danger); color: var(--danger); background: transparent; border-radius: 999px; padding: 8px 16px; font-weight: 700; }
.icon-btn { border: 0; background: transparent; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--text); }
.icon-btn:hover { background: var(--bg-hover); }
.avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex: none; background: var(--bg-2); display: grid; place-items: center; font-weight: 700; color: #fff; overflow: hidden; font-size: 17px; }
.avatar.sm { width: 34px; height: 34px; font-size: 14px; }
.avatar.lg { width: 92px; height: 92px; font-size: 36px; border: 4px solid var(--bg); }
.muted { color: var(--text-2); }
.name { font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.handle { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; color: var(--text-2); font-weight: 600; }
.input { width: 100%; border: 1px solid var(--line); background: var(--bg); border-radius: 10px; padding: 12px 14px; outline: none; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea.input { resize: vertical; min-height: 80px; }
.hint { font-size: 13px; color: var(--text-2); }
.err { color: var(--danger); font-size: 14px; min-height: 1em; }
.empty { padding: 48px 24px; text-align: center; color: var(--text-2); }
.empty h3 { color: var(--text); margin: 0 0 6px; font-size: 20px; }
.boot, .loading { display: grid; place-items: center; padding: 40px; }
.spinner { width: 26px; height: 26px; border: 3px solid var(--accent-soft); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Kopfzeile + Tabs ----------------------------------------------------- */
.head { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 16px; min-height: 53px; padding: 0 16px; }
.head-row h1 { font-size: 20px; margin: 0; font-weight: 800; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.head-row .sub { font-size: 13px; color: var(--text-2); font-weight: 400; }
.head-logo { display: none; }
.tabs { display: flex; }
.tab { flex: 1; border: 0; background: transparent; padding: 15px 8px; color: var(--text-2); font-weight: 600; position: relative; }
.tab:hover { background: var(--bg-hover); }
.tab.on { color: var(--text); font-weight: 700; }
.tab.on::after { content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 56px; height: 4px; border-radius: 2px; background: var(--accent); }

/* --- Composer ------------------------------------------------------------- */
.composer { display: flex; gap: 12px; padding: 14px 16px 10px; border-bottom: 1px solid var(--line); }
.composer .body { flex: 1; min-width: 0; }
.composer textarea { width: 100%; border: 0; background: transparent; resize: none; outline: none; font-size: 19px; line-height: 1.4; padding: 8px 0; min-height: 52px; max-height: 50vh; }
.composer .bar { display: flex; align-items: center; gap: 4px; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 6px; }
.composer .bar .icon-btn { color: var(--accent); }
.composer .bar .spacer { flex: 1; }
.counter { font-size: 13px; color: var(--text-2); margin-right: 8px; font-variant-numeric: tabular-nums; }
.counter.warn { color: #e08a00; }
.counter.over { color: var(--danger); font-weight: 700; }
.previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin: 6px 0; }
.preview { position: relative; border-radius: 12px; overflow: hidden; background: var(--bg-2); aspect-ratio: 1; }
.preview img, .preview video { width: 100%; height: 100%; object-fit: cover; display: block; }
.preview .rm { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; display: grid; place-items: center; }
.preview .rm svg.i { width: 16px; height: 16px; }
.preview .prog { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--accent); transition: width .2s; }
.preview.busy::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.25); }

/* --- Beitrag -------------------------------------------------------------- */
.post { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .15s; position: relative; }
.post:hover { background: var(--bg-hover); }
.post .main { flex: 1; min-width: 0; }
.post .meta { display: flex; align-items: baseline; gap: 4px; min-width: 0; }
.post .meta .name { flex: 0 1 auto; max-width: 62%; }
.post .meta .handle { min-width: 0; }
.post .meta .handle { flex: 0 1 auto; }
.post .meta .dot { color: var(--text-2); }
.post .meta time { color: var(--text-2); white-space: nowrap; }
.post .meta .more { margin-left: auto; margin-top: -6px; margin-right: -8px; width: 34px; height: 34px; color: var(--text-2); }
.post .ctx { font-size: 13px; color: var(--text-2); font-weight: 700; display: flex; align-items: center; gap: 6px; margin: -2px 0 4px 30px; }
.post .ctx svg.i { width: 16px; height: 16px; }
.post-wrap { border-bottom: 1px solid var(--line); }
.post-wrap .post { border-bottom: 0; }
.post-wrap > .ctx-row { padding: 10px 16px 0 44px; font-size: 13px; color: var(--text-2); font-weight: 700; display: flex; align-items: center; gap: 6px; }
.post-wrap > .ctx-row svg.i { width: 15px; height: 15px; }
.post-wrap > .ctx-row a { color: var(--text-2); }
.replying { font-size: 14px; color: var(--text-2); margin: 1px 0 2px; }
.text { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; margin-top: 2px; }
.text a { overflow-wrap: anywhere; }
.media { display: grid; gap: 2px; margin-top: 10px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.media.n1 { grid-template-columns: 1fr; }
.media.n2 { grid-template-columns: 1fr 1fr; aspect-ratio: 16/9; }
.media.n3 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 16/9; }
.media.n3 > :first-child { grid-row: span 2; }
.media.n4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 16/9; }
.media img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; background: var(--bg-2); }
.media.n1 img { max-height: 520px; object-fit: contain; background: var(--bg-2); height: auto; }
.media video { width: 100%; max-height: 560px; display: block; background: #000; }
.actions { display: flex; justify-content: space-between; max-width: 430px; margin: 8px 0 -4px -8px; }
.act { display: flex; align-items: center; gap: 2px; border: 0; background: transparent; color: var(--text-2); font-size: 13px; padding: 0; border-radius: 999px; }
.act .ring { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; transition: background .15s, color .15s; }
.act svg.i { width: 19px; height: 19px; }
.act.reply:hover { color: var(--accent); } .act.reply:hover .ring { background: var(--accent-soft); }
.act.share:hover { color: var(--accent); } .act.share:hover .ring { background: var(--accent-soft); }
.act.repost:hover, .act.repost.on { color: var(--repost); } .act.repost:hover .ring { background: var(--repost-soft); }
.act.like:hover, .act.like.on { color: var(--like); } .act.like:hover .ring { background: var(--like-soft); }
.act.like.pop svg { animation: pop .35s ease; }
@keyframes pop { 40% { transform: scale(1.35); } }
.tomb { padding: 14px 16px; margin: 8px 16px; background: var(--bg-2); border-radius: 12px; color: var(--text-2); }

/* Detailansicht: großer Hauptbeitrag */
.post.big { cursor: default; flex-direction: column; gap: 0; }
.post.big:hover { background: transparent; }
.post.big .who { display: flex; gap: 12px; align-items: center; }
.post.big .who .names { flex: 1; min-width: 0; line-height: 1.25; }
.post.big .text { font-size: 18px; margin-top: 12px; }
.post.big .stamp { color: var(--text-2); padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.post.big .stats { display: flex; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--text-2); }
.post.big .stats b { color: var(--text); }
.post.big .actions { max-width: none; justify-content: space-around; margin: 4px 0; }
.thread-line { position: absolute; left: 36px; top: 60px; bottom: 0; width: 2px; background: var(--line); }
.post.ancestor { border-bottom: 0; }

/* --- Profil --------------------------------------------------------------- */
.banner { height: 150px; background: linear-gradient(135deg, var(--accent) 0%, #c86dd7 55%, #ff9a6b 100%); opacity: .9; }
.profile { padding: 0 16px 14px; border-bottom: 1px solid var(--line); }
.profile .top { position: relative; display: flex; justify-content: space-between; align-items: flex-end; margin-top: -48px; min-height: 60px; }
.profile .top .btns { display: flex; gap: 8px; align-items: center; padding-bottom: 4px; }
.profile h2 { margin: 10px 0 0; font-size: 21px; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.profile .bio { margin: 10px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.profile .facts { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--text-2); font-size: 14px; align-items: center; }
.profile .facts span { display: inline-flex; align-items: center; gap: 4px; }
.profile .facts svg.i { width: 17px; height: 17px; }
.profile .counts { display: flex; gap: 18px; margin-top: 10px; font-size: 14px; }
.profile .counts a { color: var(--text-2); }
.profile .counts b { color: var(--text); }
.pill { font-size: 12px; background: var(--bg-2); color: var(--text-2); padding: 2px 8px; border-radius: 6px; margin-left: 6px; font-weight: 600; }
.blocked-note { margin: 12px 16px; padding: 14px; border-radius: 12px; background: var(--bg-2); }

/* --- Listen (Nutzer, Mitteilungen, Chats) --------------------------------- */
.row { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); align-items: flex-start; color: var(--text); cursor: pointer; }
.row:hover { background: var(--bg-hover); text-decoration: none; }
.row .grow { flex: 1; min-width: 0; }
.row .line1 { display: flex; gap: 4px; align-items: baseline; min-width: 0; }
.row .line1 time { margin-left: auto; color: var(--text-2); font-size: 13px; white-space: nowrap; padding-left: 8px; }
.row .preview-text { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row.unread { background: var(--accent-soft); }
.row .dotu { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); align-self: center; flex: none; }
.notif-icon { width: 34px; display: flex; justify-content: flex-end; flex: none; padding-top: 4px; }
.notif-icon svg.i { width: 26px; height: 26px; }
.notif-icon.like { color: var(--like); } .notif-icon.repost { color: var(--repost); }
.notif-icon.follow, .notif-icon.reply, .notif-icon.mention { color: var(--accent); }
.notif-text { margin-top: 6px; }
.notif-quote { color: var(--text-2); margin-top: 4px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* --- Chat ----------------------------------------------------------------- */
.chat { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.chat .msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.bubble { max-width: 78%; padding: 9px 14px; border-radius: 20px; white-space: pre-wrap; overflow-wrap: anywhere; align-self: flex-start; background: var(--bg-2); }
.bubble.mine { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 6px; }
.bubble:not(.mine) { border-bottom-left-radius: 6px; }
.bubble.mine a { color: #fff; text-decoration: underline; }
.bubble-time { font-size: 12px; color: var(--text-2); margin: 2px 6px 10px; align-self: flex-start; }
.bubble-time.mine { align-self: flex-end; }
.bubble .shared { display: block; margin-top: 6px; background: var(--card); color: var(--text); border-radius: 14px; border: 1px solid var(--line); padding: 10px; text-decoration: none; }
.bubble .shared .text { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.chat form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); align-items: flex-end; background: var(--bg); }
.chat form textarea { flex: 1; resize: none; border-radius: 22px; padding: 10px 16px; max-height: 140px; min-height: 44px; }
.chat .closed { padding: 14px 16px; border-top: 1px solid var(--line); color: var(--text-2); text-align: center; }

/* --- Overlay: Modal, Menü, Sheet, Lightbox ------------------------------- */
.overlay { position: fixed; inset: 0; background: var(--overlay); z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 5vh 16px; animation: fade .15s ease; overflow-y: auto; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--bg); width: 100%; max-width: 600px; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; animation: rise .18s ease; }
@keyframes rise { from { transform: translateY(12px); opacity: 0; } }
.modal .mhead { display: flex; align-items: center; gap: 12px; padding: 8px 12px; min-height: 52px; }
.modal .mhead h2 { font-size: 19px; margin: 0; flex: 1; }
.modal .mbody { padding: 4px 20px 20px; }
.modal .composer { border-bottom: 0; }
.menu { position: fixed; z-index: 60; background: var(--bg); border-radius: 14px; box-shadow: var(--shadow); border: 1px solid var(--line); min-width: 220px; padding: 6px 0; animation: fade .12s ease; }
.menu button { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: transparent; padding: 11px 16px; text-align: left; font-weight: 600; }
.menu button:hover { background: var(--bg-hover); }
.menu button.danger { color: var(--danger); }
.menu svg.i { width: 19px; height: 19px; }
.menu-bg { position: fixed; inset: 0; z-index: 59; }
.lightbox { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.92); display: grid; place-items: center; animation: fade .15s; }
.lightbox img { max-width: 100vw; max-height: 100vh; object-fit: contain; }
.lightbox .icon-btn { position: absolute; top: 12px; left: 12px; color: #fff; background: rgba(255,255,255,.12); }
.lightbox .nav-l, .lightbox .nav-r { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; background: rgba(255,255,255,.12); }
.lightbox .nav-l { left: 12px; } .lightbox .nav-r { right: 12px; }
.share-target { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-radius: 10px; cursor: pointer; }
.share-target:hover { background: var(--bg-hover); }

#toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--accent); color: #fff; padding: 11px 18px; border-radius: 10px; font-weight: 600; opacity: 0; pointer-events: none; transition: .25s; z-index: 80; max-width: calc(100vw - 32px); text-align: center; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }
#toast.bad { background: var(--danger); }

/* --- Login ---------------------------------------------------------------- */
.auth { max-width: 400px; margin: 0 auto; padding: 48px 24px; }
.auth .logo { justify-content: center; font-size: 30px; padding: 0 0 8px; }
.auth .logo img { width: 52px; height: 52px; }
.auth .claim { text-align: center; font-size: 24px; font-weight: 800; line-height: 1.2; margin: 18px 0 28px; letter-spacing: -.02em; }
.auth .switch { text-align: center; margin-top: 18px; color: var(--text-2); }
.auth .switch button { border: 0; background: none; color: var(--accent); font-weight: 700; padding: 0; }
.auth .btn-primary { width: 100%; padding: 13px; font-size: 16px; margin-top: 6px; }
.guest-bar { position: sticky; bottom: 0; background: var(--accent); color: #fff; padding: 14px 16px; display: flex; gap: 12px; align-items: center; justify-content: space-between; z-index: 6; }
.guest-bar .btn-dark { background: #fff; color: var(--accent); }

/* --- Einstellungen -------------------------------------------------------- */
.section { padding: 16px; border-bottom: 1px solid var(--line); }
.section h3 { margin: 0 0 4px; font-size: 17px; }
.section p { margin: 0 0 12px; }
.switch-row { display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.toggle { position: relative; width: 48px; height: 28px; flex: none; }
.toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle span { position: absolute; inset: 0; background: var(--line); border-radius: 14px; transition: .2s; cursor: pointer; }
.toggle span::after { content: ""; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.toggle input:checked + span { background: var(--accent); }
.toggle input:checked + span::after { transform: translateX(20px); }
.toggle input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-soft); }
.av-edit { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }

/* --- Extra-Spalte --------------------------------------------------------- */
.search-box { position: relative; }
.search-box svg.i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-2); width: 18px; height: 18px; }
.search-box input { width: 100%; border: 1px solid transparent; background: var(--bg-2); border-radius: 999px; padding: 11px 16px 11px 42px; outline: none; }
.search-box input:focus { border-color: var(--accent); background: var(--bg); }
.box { background: var(--bg-2); border-radius: var(--radius); margin-top: 16px; overflow: hidden; }
.box h3 { margin: 0; padding: 12px 16px; font-size: 19px; font-weight: 800; }
.box p { margin: 0; padding: 0 16px 14px; color: var(--text-2); font-size: 14px; }
.foot { padding: 14px 4px; font-size: 13px; color: var(--text-2); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.foot a { color: var(--text-2); }

.fab { display: none; }
.sentinel { height: 1px; }

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 1180px) { .extra { display: none; } }
@media (max-width: 1000px) {
  .side { width: 88px; align-items: center; padding: 8px; }
  .side .label, .side .logo span, .me-chip .names { display: none; }
  .side .btn-primary { width: 52px; height: 52px; padding: 0; display: grid; place-items: center; }
  .side .btn-primary .label { display: none; }
  .side .btn-primary svg { display: block !important; }
}
@media (max-width: 640px) {
  .side { display: none; }
  .col { border: 0; padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .tabbar a { flex: 1; display: grid; place-items: center; color: var(--text); position: relative; }
  .tabbar a svg.i { width: 26px; height: 26px; }
  .tabbar a.on svg.i { stroke-width: 2.4; }
  .tabbar .badge { top: 8px; left: calc(50% + 4px); }
  .fab { display: grid; place-items: center; position: fixed; right: 16px; bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom)); width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; box-shadow: var(--shadow); z-index: 19; }
  .fab svg.i { width: 26px; height: 26px; stroke-width: 2.4; }
  .head-logo { display: block; width: 28px; height: 28px; }
  .overlay { padding: 0; align-items: stretch; }
  .modal { border-radius: 0; max-width: none; min-height: 100%; }
  .menu.sheet { left: 0 !important; right: 0; bottom: 0; top: auto !important; border-radius: 16px 16px 0 0; padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
  .chat { height: calc(100dvh - var(--tabbar-h) - env(safe-area-inset-bottom)); }
  .post.big .text { font-size: 17px; }
  .composer textarea { font-size: 17px; }
  .guest-bar { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
  #toast { bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom)); }
}
