/* Sonion Chat 2.1 redesign: the top bar, layout positions (like the Windows taskbar), and a cleaner, calmer look.
   Loaded after app.css, so it only adds to / replaces what's there. Phones keep their own layout. */

:root { --tb: 46px; --rail-h: 64px; --mw: var(--members); }
.shell.no-members { --mw: 0px; }
.shell.dm-wide { --mw: 300px; }
.shell.dm-wide.no-members { --mw: 0px; }

/* ---------- the top bar ---------- */
.topbar { grid-area: top; display: flex; align-items: center; gap: 12px; padding: 0 10px 0 14px; min-width: 0; height: var(--tb); color: var(--ink-2); -webkit-user-select: none; user-select: none; }
.tb-where { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 8px; font-size: .9rem; white-space: nowrap; overflow: hidden; }
.tb-where b { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.tb-where span { overflow: hidden; text-overflow: ellipsis; }
.tb-where .ic { width: 17px; height: 17px; color: var(--ink-3); }
.tb-where .tb-ic { width: 22px; height: 22px; border-radius: 7px; font-size: .55rem; flex: none; }
.tb-where .av { --s: 20px !important; }
.tb-sep { color: var(--ink-3); opacity: .7; }
.tb-search { flex: 0 1 380px; min-width: 150px; height: 32px; display: flex; align-items: center; gap: 8px; padding: 0 8px 0 12px; border-radius: 10px; background: color-mix(in srgb, var(--panel) 70%, transparent); color: var(--ink-3); font-size: .86rem; box-shadow: inset 0 0 0 1px var(--line); transition: background .15s, box-shadow .15s; }
.tb-search:hover { background: var(--panel); color: var(--ink-2); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-text, #a9b0ff) 35%, var(--line)); }
.tb-search .ic { width: 16px; height: 16px; }
.tb-search span { flex: 1; text-align: left; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tb-search kbd { font: 600 .7rem var(--font); padding: 2px 6px; border-radius: 6px; background: var(--panel-2); color: var(--ink-3); }
.tb-acts { flex: 1 1 0; display: flex; justify-content: flex-end; align-items: center; gap: 4px; }
.tb-btn { position: relative; height: 32px; min-width: 32px; padding: 0 8px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: var(--ink-2); font-size: .82rem; font-weight: 600; transition: background .15s, color .15s; }
.tb-btn:hover { background: var(--hover); color: var(--ink); }
.tb-btn .ic { width: 19px; height: 19px; }
.tb-btn.quiet { color: var(--ink-3); }
.tb-dot { position: absolute; top: 1px; right: 0; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--danger, #e0645e); color: #fff; font: 700 .64rem/16px var(--font); font-style: normal; box-shadow: 0 0 0 2px var(--sea, var(--bg)); }
.tb-btn.pulse { animation: tb-pulse 1.2s ease-in-out 4; }
@keyframes tb-pulse { 50% { background: var(--accent-soft); color: var(--accent-text); box-shadow: 0 0 0 4px var(--accent-soft); } }
@media (max-width: 1180px) { .tb-lbl { display: none; } .tb-search kbd { display: none; } }

/* ---------- layout: the server list (rail) left / right / top / bottom, the channel list left / right ---------- */
@media (min-width: 761px) {
  html:not(.ph-on) .shell { grid-template-rows: var(--tb) minmax(0, 1fr); row-gap: 0; column-gap: var(--gap, 8px); padding: 0 var(--gap, 8px) var(--gap, 8px) 0; }
  html:not(.ph-on) .shell > .rail { grid-area: rail; }
  html:not(.ph-on) .shell > .side { grid-area: side; }
  html:not(.ph-on) .shell > .main { grid-area: main; }
  html:not(.ph-on) .shell > .members { grid-area: members; }
  html:not(.ph-on) .shell.no-members > .members { display: none; }

  /* rail left (default) */
  html:not(.ph-on) .shell, html:not(.ph-on) .shell.no-members { grid-template-columns: var(--rail) var(--side) minmax(0, 1fr) var(--mw); grid-template-areas: "rail top top top" "rail side main members"; }
  html[data-sidebar="right"]:not(.ph-on) .shell { grid-template-columns: var(--rail) var(--mw) minmax(0, 1fr) var(--side); grid-template-areas: "rail top top top" "rail members main side"; }
  /* rail right */
  html[data-rail="right"]:not(.ph-on) .shell { grid-template-columns: var(--side) minmax(0, 1fr) var(--mw) var(--rail); grid-template-areas: "top top top rail" "side main members rail"; padding: 0 0 var(--gap, 8px) var(--gap, 8px); }
  html[data-rail="right"][data-sidebar="right"]:not(.ph-on) .shell { grid-template-columns: var(--mw) minmax(0, 1fr) var(--side) var(--rail); grid-template-areas: "top top top rail" "members main side rail"; }
  /* rail top / bottom: a row like a taskbar */
  html[data-rail="top"]:not(.ph-on) .shell, html[data-rail="bottom"]:not(.ph-on) .shell { padding: 0 var(--gap, 8px) var(--gap, 8px); }
  html[data-rail="top"]:not(.ph-on) .shell { grid-template-rows: var(--tb) var(--rail-h) minmax(0, 1fr); grid-template-columns: var(--side) minmax(0, 1fr) var(--mw); grid-template-areas: "top top top" "rail rail rail" "side main members"; }
  html[data-rail="top"][data-sidebar="right"]:not(.ph-on) .shell { grid-template-columns: var(--mw) minmax(0, 1fr) var(--side); grid-template-areas: "top top top" "rail rail rail" "members main side"; }
  html[data-rail="bottom"]:not(.ph-on) .shell { grid-template-rows: var(--tb) minmax(0, 1fr) var(--rail-h); grid-template-columns: var(--side) minmax(0, 1fr) var(--mw); grid-template-areas: "top top top" "side main members" "rail rail rail"; padding-bottom: 0; }
  html[data-rail="bottom"][data-sidebar="right"]:not(.ph-on) .shell { grid-template-columns: var(--mw) minmax(0, 1fr) var(--side); grid-template-areas: "top top top" "members main side" "rail rail rail"; }

  html[data-rail="top"]:not(.ph-on) .rail, html[data-rail="bottom"]:not(.ph-on) .rail { flex-direction: row; align-items: center; padding: 0 4px; gap: 8px; overflow-x: auto; overflow-y: hidden; height: var(--rail-h); }
  html[data-rail="top"]:not(.ph-on) .rail hr, html[data-rail="bottom"]:not(.ph-on) .rail hr { width: 2px; height: 32px; border: 0; border-left: 2px solid var(--panel-3); margin: 0 2px; }
  html[data-rail="top"]:not(.ph-on) .rail-btn .pill, html[data-rail="bottom"]:not(.ph-on) .rail-btn .pill { left: 50%; width: 0; height: 4px; transform: translateX(-50%); transition: width .18s; }
  html[data-rail="top"]:not(.ph-on) .rail-btn .pill { top: auto; bottom: -8px; border-radius: 4px 4px 0 0; }
  html[data-rail="bottom"]:not(.ph-on) .rail-btn .pill { top: -8px; border-radius: 0 0 4px 4px; }
  html[data-rail="top"]:not(.ph-on) .rail-btn.unread .pill, html[data-rail="bottom"]:not(.ph-on) .rail-btn.unread .pill { width: 8px; height: 4px; }
  html[data-rail="top"]:not(.ph-on) .rail-btn:hover .pill, html[data-rail="bottom"]:not(.ph-on) .rail-btn:hover .pill { width: 20px; height: 4px; }
  html[data-rail="top"]:not(.ph-on) .rail-btn.active .pill, html[data-rail="bottom"]:not(.ph-on) .rail-btn.active .pill { width: 36px; height: 4px; }
  html[data-rail="right"]:not(.ph-on) .rail-btn .pill { left: auto; right: -12px; border-radius: 4px 0 0 4px; }
}

/* ---------- desktop app: the top bar IS the window's title bar ---------- */
html.desktop body.has-shell::after, html.desktop body.has-shell::before { display: none; }
html.desktop body.has-shell .shell { padding-top: 0; }
html.desktop .topbar { -webkit-app-region: drag; }
html.desktop .topbar button, html.desktop .topbar a, html.desktop .topbar input { -webkit-app-region: no-drag; }
html.desktop-darwin .topbar { padding-left: 84px; }
html.desktop-darwin[data-rail="left"] .topbar, html.desktop-darwin:not([data-rail]) .topbar { padding-left: 14px; }
html.desktop-darwin:not([data-rail]) .shell > .rail, html.desktop-darwin[data-rail="left"] .shell > .rail { padding-top: 34px; }
html.desktop-win32 .topbar { padding-right: 150px; }
html.desktop-win32[data-rail="right"] .topbar { padding-right: 150px; }
html.desktop .rail { padding-top: 6px; }

/* ---------- a calmer, cleaner look ---------- */
@media (min-width: 761px) {
  html:not(.ph-on) .shell > .side, html:not(.ph-on) .shell > .main, html:not(.ph-on) .shell > .members { box-shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 8px 28px rgba(0,0,0,.18); }
}
.rail-btn .srv-icon { transition: border-radius .2s ease, transform .2s ease, box-shadow .2s; }
.rail-btn:hover .srv-icon { transform: translateY(-1px); }
.rail-btn.active .srv-icon { box-shadow: 0 0 0 2px var(--sea, var(--bg)), 0 0 0 4px color-mix(in srgb, var(--accent-text, #a9b0ff) 70%, transparent); }
.side .ch { border-radius: 9px; margin: 1px 8px; transition: background .12s, color .12s; }
.side .ch.active { background: var(--accent-soft, var(--active)); color: var(--ink); box-shadow: inset 3px 0 0 var(--accent-text, var(--ink)); }
.side .ch.active .ic { color: var(--accent-text, var(--ink)); }
.side .nav-item, .dm-row { border-radius: 10px; }
.dm-row.active { background: var(--accent-soft, var(--active)); }
.cat-btn { text-transform: uppercase; letter-spacing: .06em; font-size: .7rem; font-weight: 700; }
.mem-h { text-transform: uppercase; letter-spacing: .06em; font-size: .7rem; font-weight: 700; }
.main-h { min-height: 52px; }
.composer { box-shadow: 0 6px 22px rgba(0,0,0,.18); }
.me-panel { border-radius: 14px; margin: 8px; }

/* ---------- Inbox ---------- */
.popover.inbox-pop { padding: 0; max-height: min(620px, calc(100vh - 80px)); overflow: hidden; display: flex; }
.inbox { display: flex; flex-direction: column; width: 100%; min-height: 0; }
.ib-h { padding: 14px 16px 10px; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.ib-h b { display: flex; align-items: center; gap: 8px; font-size: 1rem; } .ib-h .ic { width: 18px; height: 18px; color: var(--accent-text); }
.ib-list { overflow-y: auto; padding: 6px; display: grid; gap: 2px; min-height: 120px; }
.ib-item { display: grid; grid-template-columns: 36px 1fr; gap: 10px; text-align: left; padding: 9px 10px; border-radius: 10px; position: relative; }
.ib-item:hover { background: var(--hover); }
.ib-item.unread::before { content: ''; position: absolute; left: 2px; top: 18px; width: 6px; height: 6px; border-radius: 50%; background: var(--danger, #e0645e); }
.ib-t { min-width: 0; display: grid; gap: 2px; }
.ib-top { display: flex; gap: 8px; align-items: baseline; min-width: 0; } .ib-top b { white-space: nowrap; } .ib-top small { color: var(--ink-3); font-size: .74rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ib-text { color: var(--ink-2); font-size: .88rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.ib-empty { display: grid; justify-items: center; gap: 4px; padding: 34px 12px; text-align: center; color: var(--ink-3); } .ib-empty .ic { width: 34px; height: 34px; color: var(--accent-text); } .ib-empty b { color: var(--ink); }
.ib-more { margin: 8px auto; }

/* ---------- Learn Sonion Chat ---------- */
.modal.learn-modal { width: min(820px, calc(100vw - 24px)); max-height: calc(100vh - 40px); overflow-y: auto; padding: 0; }
.learn-h { display: flex; align-items: center; gap: 14px; padding: 22px 24px 8px; } .learn-h > div { flex: 1; } .learn-h h2 { margin: 0; } .learn-h p { margin: 2px 0 0; }
.learn-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); } .learn-ic .ic { width: 26px; height: 26px; }
.learn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; padding: 14px 24px 24px; }
.learn-card { text-align: left; display: grid; gap: 4px; padding: 16px; border-radius: 16px; background: var(--panel-2); transition: transform .12s, background .12s; }
.learn-card:hover { transform: translateY(-2px); background: var(--panel-3); }
.learn-card .lc-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); margin-bottom: 6px; }
.learn-card small { color: var(--ink-3); } .learn-card em { font-style: normal; font-size: .76rem; color: var(--ink-3); margin-top: 4px; }
.learn-card.done em { color: var(--ok); }
.learn-lesson { padding: 8px 24px 24px; } .learn-lesson h3 { display: flex; align-items: center; gap: 8px; }
.learn-steps { padding-left: 22px; display: grid; gap: 10px; } .learn-steps li { padding-left: 4px; } .learn-steps li span { display: block; margin-bottom: 4px; }
.tour { position: fixed; inset: 0; z-index: 5000; }
.tour-hole { position: fixed; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(0,0,0,.62); outline: 2px solid var(--accent-text, #a9b0ff); transition: all .25s ease; pointer-events: none; }
.tour.no-target { background: rgba(0,0,0,.62); }
.tour-card { position: fixed; background: var(--panel); color: var(--ink); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); transition: left .25s ease, top .25s ease; }
.tour-n { color: var(--accent-text); font-weight: 700; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; }
.tour-t { margin: 6px 0 14px; line-height: 1.45; }
.tour-acts { display: flex; gap: 6px; align-items: center; } .tour-acts span { flex: 1; }

/* ---------- Settings → Layout ---------- */
.lay-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 8px 0 18px; }
.lay-opt { display: grid; gap: 8px; justify-items: center; padding: 10px; border-radius: 14px; background: var(--panel-2); box-shadow: inset 0 0 0 2px transparent; font-size: .84rem; font-weight: 600; color: var(--ink-2); }
.lay-opt.on { box-shadow: inset 0 0 0 2px var(--accent-text); color: var(--ink); }
.lay-pv { width: 100%; aspect-ratio: 16 / 10; border-radius: 8px; background: var(--sea, var(--bg)); display: grid; gap: 3px; padding: 4px; }
.lay-pv i { border-radius: 3px; background: var(--panel-3); } .lay-pv i.r { background: color-mix(in srgb, var(--accent-text) 55%, var(--panel-3)); } .lay-pv i.s { background: color-mix(in srgb, var(--ink-3) 60%, var(--panel-3)); } .lay-pv i.t { background: var(--panel-2); }
@media (max-width: 760px) { .lay-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* phones: no top bar (the phone layout has its own header) */
@media (max-width: 760px) { .topbar { display: none !important; } }
html.ph-on .topbar { display: none !important; }
/* the tester bug button stays clear of the profile bar / a bottom server list */
html[data-sidebar="right"] .tester-fab { bottom: calc(100px + env(safe-area-inset-bottom)); }
html[data-rail="bottom"] .tester-fab { bottom: calc(150px + env(safe-area-inset-bottom)); }

/* ---------- Discover ---------- */
.modal.disc-modal { width: min(1180px, calc(100vw - 24px)); max-height: calc(100vh - 32px); }
.disc-head { align-items: flex-start; } .disc-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; } .disc-head p { margin: 4px 0 0; }
.disc-q { width: 100%; height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2); font-size: 1rem; }
.disc-cats { display: flex; gap: 6px; overflow-x: auto; padding: 12px 0 4px; scrollbar-width: none; }
.chip { flex: none; padding: 6px 12px; border-radius: 99px; background: var(--panel-2); color: var(--ink-2); font-size: .82rem; font-weight: 600; white-space: nowrap; }
.chip:hover { background: var(--panel-3); color: var(--ink); } .chip.on { background: var(--accent); color: var(--on-accent, #fff); }
.disc-h { margin: 18px 0 10px; font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); }
.disc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.disc-list .disc { position: relative; display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--panel-2); padding: 0 14px 12px; text-align: left; transition: transform .14s, box-shadow .14s; min-height: 250px; }
.disc-list .disc:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,.28); }
.disc-list .disc.spot { box-shadow: inset 0 0 0 2px #f2b322; }
.disc-list .disc-banner { display: block; height: 96px; margin: 0 -14px; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 40%, #000)) center / cover; position: relative; }
.disc-flag { position: absolute; top: 8px; right: 8px; font-style: normal; font: 800 .68rem var(--font); padding: 3px 8px; border-radius: 99px; background: #f2b322; color: #2a1709; text-transform: uppercase; letter-spacing: .04em; }
.disc-ic { margin-top: -26px; } .disc-ic .srv-icon { box-shadow: 0 0 0 4px var(--panel-2); }
.disc-name { margin-top: 8px; font-size: 1rem; } .disc-desc { margin: 4px 0 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.disc-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.tag-chip { padding: 2px 8px; border-radius: 6px; background: var(--panel-3); color: var(--ink-2); font-size: .74rem; font-weight: 600; }
.disc-list .disc footer { margin-top: auto; display: flex; align-items: center; gap: 6px; } .disc-list .disc footer small { flex: 1; }
.disc-foot { text-align: center; margin-top: 18px; }
.dsc-card { padding: 14px 16px; border-radius: 14px; background: var(--panel-2); margin-bottom: 14px; } .dsc-card p { margin: 8px 0 0; }
.dsc-st { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: .74rem; font-weight: 700; margin-right: 6px; }
.dsc-st.pending { background: var(--lantern-soft, rgba(254,100,58,.15)); color: var(--lantern, #ff7a4f); } .dsc-st.ok { background: rgba(92,195,143,.16); color: var(--ok); } .dsc-st.bad { background: var(--danger-soft, rgba(217,83,79,.14)); color: var(--danger-text, #f08f88); } .dsc-st.spot { background: rgba(242,179,34,.16); color: #f2b322; }
.dsc-checks { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 6px; }
.dsc-checks li { display: flex; gap: 8px; align-items: center; } .dsc-checks li .ic { width: 18px; height: 18px; padding: 2px; border-radius: 50%; }
.dsc-checks li.ok .ic { background: rgba(92,195,143,.18); color: var(--ok); } .dsc-checks li.no .ic { background: var(--danger-soft, rgba(217,83,79,.14)); color: var(--danger-text, #f08f88); } .dsc-checks li.no span { color: var(--ink-2); }
.dsc-checks.inline { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .82rem; }
.check-row { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0 14px; font-size: .9rem; } .check-row input { margin-top: 3px; }

/* ---------- Admin: To review ---------- */
.rv-head h3 { margin: 4px 0 2px; }
.rv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-top: 14px; }
.rv-card { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; background: var(--panel-2); text-align: left; }
.rv-card:hover { background: var(--panel-3); } .rv-card.has { box-shadow: inset 3px 0 0 var(--lantern, #ff7a4f); }
.rv-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); flex: none; }
.rv-t { flex: 1; display: grid; gap: 2px; } .rv-t small { color: var(--ink-3); } .rv-card strong { font-size: 1.5rem; } .rv-card:not(.has) strong { color: var(--ink-3); }
.rv-filter { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.dx { padding: 14px; border-radius: 14px; background: var(--panel-2); margin-bottom: 10px; }
.dx header { display: flex; gap: 12px; align-items: center; } .dx header > div { flex: 1; display: grid; gap: 2px; min-width: 0; } .dx p { margin: 10px 0; }

/* ---------- Update Sonion Chat (the app is 2+ versions behind) ---------- */
.upd-screen { position: fixed; inset: 0; z-index: 4000; display: grid; place-items: center; padding: 24px; background: color-mix(in srgb, var(--sea, #12121c) 82%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); animation: fade .2s; }
.upd-s-in { width: min(460px, 100%); text-align: center; display: grid; justify-items: center; gap: 10px; padding: 32px 28px; border-radius: 22px; background: var(--panel); box-shadow: var(--shadow); }
.upd-s-mark { width: 54px; height: auto; margin-bottom: 4px; } .upd-s-in h1 { margin: 0; font-size: 1.6rem; } .upd-s-in p { margin: 0; color: var(--ink-2); }
.upd-s-list { text-align: left; margin: 6px 0; padding-left: 18px; color: var(--ink-2); font-size: .9rem; display: grid; gap: 4px; }
.btn.big { height: 48px; padding: 0 28px; font-size: 1rem; width: 100%; }
.tb-beta { flex: none; font: 800 .62rem var(--font); letter-spacing: .08em; padding: 3px 7px; border-radius: 6px; background: #f2b322; color: #2a1709; }

/* ---------- Admin: Storage ---------- */
.sto-meter { height: 12px; border-radius: 8px; background: var(--panel-3); overflow: hidden; margin: 8px 0; } .sto-meter i { display: block; height: 100%; background: var(--accent); border-radius: inherit; } .sto-meter i.hot { background: var(--danger, #e0645e); }
.sto-list { display: grid; gap: 8px; margin: 14px 0 20px; }
.sto-row { display: grid; grid-template-columns: minmax(180px, 1.2fr) 2fr 90px; gap: 12px; align-items: center; font-size: .9rem; } .sto-row small { display: block; color: var(--ink-3); font-size: .74rem; }
.sto-row i { height: 8px; border-radius: 6px; background: linear-gradient(90deg, var(--accent-text) var(--w), var(--panel-3) var(--w)); } .sto-row.sub { opacity: .75; } .sto-row b { text-align: right; }
.sto-acts { display: grid; gap: 8px; margin-bottom: 20px; } .sto-act { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 14px; border-radius: 12px; background: var(--panel-2); } .sto-act small { color: var(--ink-3); grid-column: 1; } .sto-act button, .sto-vers { grid-column: 2; grid-row: 1 / 3; align-self: center; } .sto-vers { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.sto-big { display: grid; gap: 4px; } .sto-big div { display: flex; gap: 10px; justify-content: space-between; font-size: .86rem; } .sto-big small { color: var(--ink-3); white-space: nowrap; }

/* ---------- Sonion Chat Lantern ---------- */
.ln-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; padding: 26px; border-radius: 20px; margin: 6px 0 16px; background: linear-gradient(135deg, #3a1a10, #5b2a12 40%, #2b1830); color: #fff4ea; }
.ln-glow { position: absolute; width: 360px; height: 360px; right: -80px; top: -140px; border-radius: 50%; background: radial-gradient(circle, rgba(255,184,77,.55), rgba(255,120,40,.15) 45%, transparent 70%); pointer-events: none; animation: ln-glow 4s ease-in-out infinite; }
@keyframes ln-glow { 50% { transform: scale(1.12); opacity: .8; } }
.ln-t { position: relative; } .ln-t small { font-weight: 800; letter-spacing: .1em; color: #ffc371; } .ln-t h2 { margin: 6px 0; font-size: 1.7rem; } .ln-t p { margin: 0; color: #f3d9c6; max-width: 520px; }
.ln-price { position: relative; display: grid; justify-items: center; padding: 14px 18px; border-radius: 16px; background: rgba(0,0,0,.25); box-shadow: inset 0 0 0 1px rgba(255,195,113,.35); }
.ln-price b { font-size: 1.9rem; } .ln-price small { color: #f3d9c6; } .ln-price span { font-size: .78rem; color: #ffc371; margin-top: 4px; }
.ln-buy { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.btn.ln-btn { background: linear-gradient(90deg, #ff8a3d, #ffc371); color: #2a1709; font-weight: 800; }
.btn.ln-btn:disabled { opacity: .5; }
.ln-perks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 16px 0; }
.ln-perk { display: grid; gap: 4px; padding: 14px; border-radius: 14px; background: var(--panel-2); } .ln-perk span { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,170,80,.16); color: #ffb35c; margin-bottom: 4px; } .ln-perk small { color: var(--ink-3); }
.ln-table { width: 100%; border-collapse: separate; border-spacing: 0; border-radius: 14px; overflow: hidden; background: var(--panel-2); font-size: .9rem; }
.ln-table th, .ln-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); } .ln-table tr:last-child td { border-bottom: 0; }
.ln-table th:last-child, .ln-table td:last-child { background: rgba(255,170,80,.08); color: #ffc371; font-weight: 700; }
.ln-levels { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; } .ln-levels div { padding: 12px; border-radius: 12px; background: var(--panel-2); display: grid; gap: 2px; } .ln-levels div.on { box-shadow: inset 0 0 0 2px #ffb35c; } .ln-levels small { color: var(--ink-3); }
@media (max-width: 760px) { .ln-hero { grid-template-columns: 1fr; } }

/* ---------- server sidebar: Invite people + "New here? Read the rules" ---------- */
.side-invite { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 10px 4px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); font-weight: 700; font-size: .88rem; transition: background .15s; }
.side-invite:hover { background: color-mix(in srgb, var(--accent-soft) 60%, var(--accent) 25%); } .side-invite .ic { width: 18px; height: 18px; }
.side-rules { display: flex; align-items: center; gap: 10px; margin: 6px 10px; padding: 10px 8px 10px 12px; border-radius: 10px; background: var(--panel-2); font-size: .85rem; color: var(--ink-2); cursor: pointer; }
.side-rules:hover { background: var(--panel-3); } .side-rules span { flex: 1; } .side-rules b { color: var(--ink); display: block; } .side-rules .ic { width: 18px; height: 18px; color: var(--accent-text); } .side-rules .icon-btn .ic { color: var(--ink-3); width: 14px; height: 14px; }
.sug-list { display: grid; }
.disc-list .disc .disc-ic { position: relative; z-index: 1; margin-top: -28px; } .disc-list .disc .disc-ic .srv-icon { margin-top: 0; border: 0; }
.side-invite { width: calc(100% - 20px); }

/* ---------- 3.1.6: staff panel user rows (name on top, the switches and buttons on their own line that wraps) ---------- */
.user-row { display: grid !important; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; column-gap: 10px; row-gap: 8px; padding: 10px; }
.user-row > span { min-width: 0; }
.user-row > span small { overflow-wrap: anywhere; }
.user-row .u-acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding-left: 28px; }
.user-row .u-acts .mini-switch { white-space: nowrap; }
.user-row + .user-row { border-top: 1px solid var(--line, rgba(255,255,255,.06)); border-radius: 0; }
@media (max-width: 560px) { .user-row .u-acts { padding-left: 0; } }
