/* ============================================================
   ClutchTick — web app (matches the product mockup exactly)
   4 zones: rail · contextual sidebar · main · profile panel
   + bottom voice dock. Vanilla, no build step.
   ============================================================ */
:root {
  --bg: #070a11;
  --bg-2: #0a0e16;
  --panel: #0d131d;
  --panel-2: #111a26;
  --surface: #142031;
  --surface-2: #18283c;
  --line: #1b2738;
  --line-2: #223046;
  --muted: #8a9bb2;
  --muted-2: #5d6e84;
  --text: #e8eef6;
  --accent: #2f7bff;
  --accent-2: #1e63e6;
  --accent-soft: rgba(47, 123, 255, 0.14);
  --cyan: #2ee6ff;
  --good: #36d399;
  --warn: #f7b955;
  --danger: #f76d6d;
  --pro: #b06cff;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background:
    radial-gradient(1100px 600px at 78% -10%, rgba(47, 123, 255, 0.10), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  user-select: none;
  font-size: 14px;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input { font-family: inherit; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #1d2b3d; border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: #2a3d54; background-clip: padding-box; }
.app { display: flex; flex-direction: column; height: 100vh; overflow-x: hidden; }

/* ---------------- TOP BAR ---------------- */
.topbar {
  height: 60px; flex: none; display: flex; align-items: center; gap: 14px; padding: 0 14px;
  background: linear-gradient(180deg, #0c1320, #080c14);
  border-bottom: 1px solid var(--line);
  position: relative; z-index: 40;
}
.brand { display: flex; align-items: center; gap: 11px; width: 196px; flex: none; }
.brand .mk { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: radial-gradient(130% 130% at 28% 18%, rgba(47,123,255,0.35), rgba(46,230,255,0.10) 70%);
  border: 1px solid rgba(47,123,255,0.5); box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 8px 22px -8px rgba(46,230,255,0.8); }
.brand .mk svg { width: 22px; height: 22px; filter: drop-shadow(0 0 6px rgba(46,230,255,0.55)); }
.brand .wm { font-weight: 800; font-size: 20px; letter-spacing: -0.04em; line-height: 1; }
.brand .wm i { font-style: normal; display: block; font-size: 11px; letter-spacing: 0.32em; font-weight: 700; color: var(--muted); margin-top: 2px; }
.brand .wm b { background: linear-gradient(92deg, #5ea0ff, #2ee6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }

.searchbar { flex: 1; max-width: 430px; margin-left: 8px; display: flex; align-items: center; gap: 10px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 11px; padding: 9px 13px; color: var(--muted); cursor: text; position: relative; }
.searchbar input { flex: 1; background: none; border: 0; outline: none; color: var(--text); font-size: 13.5px; }
.searchbar input::placeholder { color: var(--muted); }
.searchbar kbd { font-size: 10px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 5px; padding: 2px 7px; color: var(--muted-2); }

/* global search dropdown */
.search-results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 13px; box-shadow: 0 26px 60px -24px #000, 0 0 0 1px rgba(46,230,255,0.05); padding: 7px; z-index: 60; max-height: 60vh; overflow-y: auto; display: none; }
.search-results.show { display: block; }
.search-results .sr-h { font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); padding: 9px 9px 5px; }
.sr-item { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; padding: 8px 9px; border-radius: 9px; transition: background .12s; }
.sr-item:hover { background: var(--surface); }
.sr-item .sr-ic { width: 30px; height: 30px; border-radius: 8px; flex: none; display: grid; place-items: center; font-size: 15px; background: var(--accent-soft); color: var(--accent); }
.sr-item .sr-ic .ico { width: 17px; height: 17px; }
.sr-item .sr-l { display: flex; flex-direction: column; min-width: 0; }
.sr-item .sr-l b { font-size: 13.5px; font-weight: 600; color: var(--text); }
.sr-item .sr-l i { font-style: normal; font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-results .sr-empty { padding: 16px 12px; color: var(--muted); font-size: 13px; text-align: center; }

.createwrap { position: relative; }
.create-btn { display: flex; align-items: center; gap: 8px; background: linear-gradient(135deg, #2f7bff, #1e63e6); color: #fff; font-weight: 700; font-size: 14px; padding: 9px 16px; border-radius: 11px; box-shadow: 0 8px 22px -10px rgba(46,230,255,0.7), inset 0 1px 0 rgba(255,255,255,0.22); }
.create-btn:hover { filter: brightness(1.08); }
.create-caret { border-left: 1px solid rgba(255,255,255,0.25); margin-left: 2px; padding-left: 8px; }

.modetabs { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.modetab { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--muted); padding: 9px 15px; border-radius: 10px; transition: all .15s; }
.modetab:hover { color: #fff; background: var(--panel); }
.modetab.on { color: #fff; background: var(--surface); }
.modetab.on[data-mode="esports"] { color: #fff; background: linear-gradient(135deg, rgba(47,123,255,0.95), rgba(30,99,230,0.95)); box-shadow: 0 6px 18px -8px rgba(46,230,255,0.8); }
.modetab .md-ic { width: 17px; height: 17px; }

.wctl { display: flex; align-items: center; gap: 2px; margin-left: 10px; }
.wctl button { width: 34px; height: 34px; border-radius: 8px; color: var(--muted); display: grid; place-items: center; font-size: 13px; }
.wctl button:hover { background: var(--panel); color: #fff; }
.wctl button.close:hover { background: #e23b3b; color: #fff; }

/* ---------------- ZONES ---------------- */
.zones { flex: 1; display: flex; min-height: 0; }

/* left rail */
.rail { width: 92px; flex: none; background: var(--bg-2); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 10px 0; }
.rail .nav { display: flex; flex-direction: column; align-items: stretch; gap: 2px; padding: 0 10px; flex: 1; overflow-y: auto; }
.rail .nav::-webkit-scrollbar { width: 0; }
.rnav { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 11px 0 9px; border-radius: 13px; color: var(--muted); font-size: 11px; font-weight: 600; transition: all .14s; }
.rnav .ic { width: 22px; height: 22px; }
.rnav:hover { color: #fff; background: var(--panel); }
.rnav.on { color: #fff; background: var(--accent-soft); }
.rnav.on::before { content: ""; position: absolute; left: -10px; top: 50%; transform: translateY(-50%); width: 4px; height: 26px; border-radius: 4px; background: linear-gradient(var(--accent), var(--cyan)); }
.rnav .nbadge { position: absolute; top: 6px; right: 18px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 9px; font-weight: 800; display: grid; place-items: center; }
.rail .usercard { margin: 8px 8px 4px; padding: 11px 6px 9px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; min-width: 0; transition: border-color .14s, background .14s; }
.rail .usercard:hover { border-color: var(--line-2); background: var(--accent-soft); }
.rail .usercard > div { min-width: 0; width: 100%; text-align: center; }
.rail .usercard .nm { font-size: 11.5px; font-weight: 700; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail .usercard .st { font-size: 9.5px; color: var(--good); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.rail .usercard .cv { display: none; }

/* contextual sidebar */
.sidebar { width: 230px; flex: none; background: var(--bg-2); border-right: 1px solid var(--line); overflow-y: auto; padding: 16px 12px; }
.side-sec { margin-bottom: 18px; }
.side-h { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); padding: 0 6px 9px; }
.side-h .star { color: var(--warn); }
.side-h .plus { margin-left: auto; font-size: 15px; color: var(--muted); cursor: pointer; line-height: 1; }
.side-h .plus:hover { color: #fff; }
.side-item { display: flex; align-items: center; gap: 10px; padding: 8px 7px; border-radius: 9px; cursor: pointer; transition: background .12s; }
.side-item:hover { background: var(--panel); }
.side-item.on { background: var(--accent-soft); }
.side-ic { width: 30px; height: 30px; border-radius: 8px; flex: none; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff; }
.side-item .lbl { font-size: 13px; font-weight: 600; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-item .sub { font-size: 11px; color: var(--muted); }
.side-badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; }
.side-dm .nm { font-size: 13px; font-weight: 600; }
.side-dm .pr { font-size: 11px; }
.side-see { display: flex; align-items: center; justify-content: space-between; padding: 8px 7px 2px; font-size: 12px; color: var(--muted); cursor: pointer; }
.side-see:hover { color: #fff; }

/* main */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.main-scroll { flex: 1; overflow-y: auto; padding: 22px 26px 26px; }

/* avatars */
.av { border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; flex: none; background-size: cover; background-position: center; }
.av.xl { width: 90px; height: 90px; font-size: 30px; }
.av.l { width: 52px; height: 52px; font-size: 18px; }
.av.m { width: 44px; height: 44px; font-size: 15px; }
.av.s { width: 34px; height: 34px; font-size: 12px; }
.av.xs { width: 26px; height: 26px; font-size: 10px; }
.avw { position: relative; flex: none; }
.avw .pres { position: absolute; right: -1px; bottom: -1px; width: 13px; height: 13px; border-radius: 50%; border: 3px solid var(--bg-2); }
.avw.onmain .pres { border-color: var(--panel); }
.pres.online { background: var(--good); } .pres.idle { background: var(--warn); } .pres.dnd { background: var(--danger); } .pres.offline { background: var(--muted-2); }
.vmark { color: var(--cyan); }

/* friends view */
.page-head { display: flex; align-items: center; gap: 12px; }
.page-head .pic { width: 30px; height: 30px; color: var(--accent); }
.page-head h1 { font-size: 23px; font-weight: 800; letter-spacing: -0.02em; }
.ftabs { display: flex; align-items: center; gap: 4px; margin-top: 18px; border-bottom: 1px solid var(--line); padding-bottom: 0; }
.ftab { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--muted); padding: 10px 13px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.ftab:hover { color: #fff; }
.ftab.on { color: #fff; border-bottom-color: var(--accent); }
.ftab .cnt { font-size: 11px; font-weight: 800; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center; background: var(--surface); color: var(--muted); }
.ftab.on .cnt { background: var(--accent); color: #fff; }
.sortby { margin-left: auto; display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 9px; padding: 7px 12px; cursor: pointer; }
.filterbox { margin-top: 16px; display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 11px; padding: 11px 14px; color: var(--muted); }
.filterbox input { flex: 1; background: none; border: 0; outline: none; color: var(--text); font-size: 13.5px; }

.frow { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-radius: 14px; background: var(--panel); border: 1px solid transparent; margin-top: 11px; transition: all .14s; cursor: pointer; }
.frow:hover { border-color: var(--line-2); background: var(--panel-2); }
.frow.sel { border-color: rgba(47,123,255,0.4); background: var(--panel-2); }
.frow .fmeta { flex: 1; min-width: 0; }
.frow .fn { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 15px; }
.frow .fs { display: flex; align-items: center; gap: 6px; font-size: 13px; margin-top: 2px; }
.fs .ps { font-weight: 600; }
.fs .ps.online { color: var(--good); } .fs .ps.idle { color: var(--warn); } .fs .ps.dnd { color: var(--danger); } .fs .ps.offline { color: var(--muted-2); }
.fs .dot-sep { color: var(--muted-2); }
.fs .where { color: var(--muted); display: flex; align-items: center; gap: 5px; }

/* inline "in voice" sound-wave icon (replaces old box glyph) */
.wave { width: 14px; height: 14px; flex: none; color: var(--cyan); vertical-align: -2px; }
.wave.mini { width: 11px; height: 11px; opacity: .85; }
.fs .where .wave { color: var(--cyan); }
.pf-status .ic .wave { width: 16px; height: 16px; }
.pf-vstatus .conn .wave { color: var(--good); }
.fbtn.primary .wave, .btn-join .wave { width: 16px; height: 16px; }
@keyframes wavepulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }
.wave { animation: wavepulse 1.8s ease-in-out infinite; }
.frow .facts { display: flex; align-items: center; gap: 8px; }
.fbtn { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--muted); border: 1px solid var(--line-2); border-radius: 9px; padding: 8px 13px; transition: all .14s; white-space: nowrap; }
.fbtn:hover { color: #fff; border-color: rgba(47,123,255,0.5); background: var(--accent-soft); }
.fbtn .bi { width: 15px; height: 15px; }
.fbtn.primary { color: #fff; border-color: rgba(47,123,255,0.6); background: var(--accent-soft); }
.fbtn.primary:hover { background: rgba(47,123,255,0.22); }
.fbtn.icon { padding: 8px 10px; }
.fbtn.split { padding: 8px 9px; }

/* generic room/community cards */
.grid { display: grid; gap: 13px; }
.grid.c2 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid.c3 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.sec-h { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); margin: 26px 0 13px; }
.sec-h .ct { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; font-size: 10px; letter-spacing: 0; color: var(--muted); }
.card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 17px; transition: all .16s; overflow: hidden; display: flex; flex-direction: column; }
.card:hover { border-color: rgba(47,123,255,0.45); transform: translateY(-2px); box-shadow: 0 18px 44px -28px rgba(46,230,255,0.55); }
.card .ctop { display: flex; align-items: center; gap: 12px; }
.card .cic { width: 46px; height: 46px; border-radius: 12px; flex: none; display: grid; place-items: center; font-size: 20px; background: var(--accent-soft); color: var(--accent); }
.card h4 { font-size: 15.5px; font-weight: 700; }
.card .cmeta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.card .live { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; color: var(--good); }
.card .live .d { width: 6px; height: 6px; border-radius: 50%; background: var(--good); box-shadow: 0 0 8px var(--good); animation: blink 1.7s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.4} }
.card .mem { margin-top: 14px; display: flex; align-items: center; }
.card .mem .av { margin-left: -8px; border: 2px solid var(--panel); } .card .mem .av:first-child { margin-left: 0; }
.card .mem .more { margin-left: 9px; font-size: 12px; color: var(--muted); }
.card .cact { margin-top: auto; padding-top: 15px; display: flex; gap: 9px; }
.mini { font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 9px; transition: all .14s; }
.mini.join { flex: 1; text-align: center; color: #fff; background: linear-gradient(135deg, #2f7bff, #1e63e6); box-shadow: inset 0 1px 0 rgba(255,255,255,0.2); }
.mini.join:hover { filter: brightness(1.1); }
.mini.ghost { border: 1px solid var(--line-2); color: var(--muted); }
.mini.ghost:hover { color: #fff; border-color: rgba(47,123,255,0.5); }

/* ---------------- RIGHT PROFILE PANEL ---------------- */
.profile { width: 340px; flex: none; background: var(--bg-2); border-left: 1px solid var(--line); overflow-y: auto; display: none; }
.profile.show { display: block; }
.pf-banner { height: 118px; position: relative; background: linear-gradient(120deg, #15356e, #0c1f3e 55%, #0a1830); overflow: hidden; }
.pf-banner::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1.4px); background-size: 16px 16px; opacity: .5; -webkit-mask-image: linear-gradient(120deg, #000, transparent 70%); mask-image: linear-gradient(120deg, #000, transparent 70%); }
.pf-banner::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 82% 8%, rgba(46,230,255,0.30), transparent 55%), radial-gradient(80% 80% at 12% 120%, rgba(47,123,255,0.28), transparent 60%); }
.pf-banner .pf-x, .pf-banner .pf-more { position: absolute; top: 12px; width: 30px; height: 30px; border-radius: 8px; background: rgba(8,12,20,0.5); color: #fff; display: grid; place-items: center; backdrop-filter: blur(4px); z-index: 2; }
.pf-banner .pf-x { right: 12px; } .pf-banner .pf-more { right: 50px; }
.pf-av { position: absolute; left: 22px; bottom: -34px; z-index: 2; }
.pf-av .av { border: 4px solid var(--bg-2); }
.pf-body { padding: 44px 22px 26px; }
.pf-name { display: flex; align-items: center; gap: 8px; font-size: 21px; font-weight: 800; }
.pf-name .pro { margin-left: auto; font-size: 11px; font-weight: 800; color: var(--pro); background: rgba(176,108,255,0.15); border: 1px solid rgba(176,108,255,0.4); border-radius: 999px; padding: 3px 10px; display: flex; align-items: center; gap: 5px; }
.pf-handle { color: var(--muted); font-size: 14px; margin-top: 2px; }
.pf-status { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13.5px; color: var(--text); }
.pf-status .ic { color: var(--accent); }
.pf-mutual { display: flex; align-items: center; gap: 10px; margin-top: 13px; }
.pf-mutual .ms { font-size: 13px; color: var(--muted); }
.pf-mutual .avs { display: flex; }
.pf-mutual .avs .av { margin-left: -7px; border: 2px solid var(--bg-2); } .pf-mutual .avs .av:first-child { margin-left: 0; }
.pf-mutual .more { font-size: 11px; color: var(--muted); margin-left: 7px; }
.pf-sec { margin-top: 24px; }
.pf-sec .hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.pf-sec .hd h5 { font-size: 13px; font-weight: 800; }
.pf-sec .hd .va { font-size: 12px; color: var(--accent); cursor: pointer; }
.qa { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.qa button { border: 1px solid var(--line-2); border-radius: 12px; padding: 13px 4px; display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 11px; color: var(--muted); transition: all .14s; }
.qa button .ic { width: 19px; height: 19px; }
.qa button:hover { color: #fff; border-color: rgba(47,123,255,0.5); background: var(--accent-soft); }
.pf-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.pf-item .pic { width: 36px; height: 36px; border-radius: 9px; flex: none; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 800; }
.pf-item .t { font-size: 13.5px; font-weight: 600; }
.pf-item .s { font-size: 12px; color: var(--muted); }
.pf-item .when { margin-left: auto; font-size: 12px; color: var(--muted-2); display: flex; align-items: center; gap: 7px; }
.pf-vstatus { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.pf-vstatus .row { display: flex; align-items: center; justify-content: space-between; }
.pf-vstatus h5 { font-size: 13px; font-weight: 800; }
.pf-vstatus .ok { font-size: 13px; color: var(--good); display: flex; align-items: center; gap: 6px; }
.pf-vstatus .conn { margin-top: 10px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }

/* ---------------- CHAT (room/DM) ---------------- */
.chat { display: flex; flex-direction: column; height: 100%; }
.chat-head { flex: none; display: flex; align-items: center; gap: 13px; padding: 16px 24px; border-bottom: 1px solid var(--line); }
.chat-head .ci { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-size: 18px; background: var(--accent-soft); color: var(--accent); }
.chat-head h2 { font-size: 17px; font-weight: 800; }
.chat-head .cs { font-size: 12.5px; color: var(--muted); }
.chat-head .ch-act { margin-left: auto; display: flex; gap: 8px; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 18px 24px; display: flex; flex-direction: column; gap: 3px; }
.msg { display: flex; gap: 12px; padding: 6px 0; }
.msg .av { margin-top: 2px; }
.msg .mc .mh { display: flex; align-items: baseline; gap: 9px; }
.msg .mc .mn { font-weight: 700; font-size: 14px; }
.msg .mc .mt { font-size: 11px; color: var(--muted-2); }
.msg .mc .mb { font-size: 14px; color: #d4deea; margin-top: 2px; line-height: 1.5; }
.msg.sys { justify-content: center; }
.msg.sys .sysb { font-size: 12px; color: var(--muted-2); background: var(--panel); padding: 5px 12px; border-radius: 999px; }
.chat-input { flex: none; padding: 14px 24px 20px; }
.chat-inbox { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 13px; padding: 12px 16px; }
.chat-inbox input { flex: 1; background: none; border: 0; outline: none; color: var(--text); font-size: 14.5px; }
.chat-inbox .send { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg,#2f7bff,#1e63e6); color: #fff; }
.chat-inbox .send:hover { filter: brightness(1.1); }
.chat-inbox .tool { color: var(--muted); width: 22px; height: 22px; } .chat-inbox .tool:hover { color: #fff; }

/* ---------------- FOCUS (pomodoro) ---------------- */
.focuswrap { max-width: 560px; margin: 10px auto; text-align: center; }
.pomo { margin: 26px auto; width: 250px; height: 250px; border-radius: 50%; display: grid; place-items: center; position: relative; background: conic-gradient(var(--accent) var(--pomo-deg, 0deg), var(--surface) 0); transition: background .4s; }
.pomo::before { content: ""; position: absolute; inset: 14px; border-radius: 50%; background: var(--bg); }
.pomo .pin { position: relative; text-align: center; }
.pomo .time { font-size: 52px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.pomo .lbl { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.14em; margin-top: 4px; }
.pomo-ctrl { display: flex; justify-content: center; gap: 12px; }
.pomo-ctrl button { font-weight: 700; font-size: 14px; padding: 12px 26px; border-radius: 12px; }
.pomo-ctrl .go { background: linear-gradient(135deg,#2f7bff,#1e63e6); color: #fff; }
.pomo-ctrl .rs { border: 1px solid var(--line-2); color: var(--muted); }
.tasks { margin-top: 30px; text-align: left; }
.task { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; margin-top: 9px; }
.task .cb { width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--line-2); flex: none; cursor: pointer; display: grid; place-items: center; font-size: 12px; color: transparent; }
.task.done .cb { background: var(--accent); border-color: var(--accent); color: #fff; }
.task.done .tx { color: var(--muted-2); text-decoration: line-through; }
.task .tx { flex: 1; font-size: 14px; }
.task-add { display: flex; gap: 10px; margin-top: 12px; }
.task-add input { flex: 1; background: var(--panel); border: 1px solid var(--line-2); border-radius: 11px; padding: 12px 15px; color: var(--text); outline: none; }

/* ---------------- ESPORTS perf meter ---------------- */
.perf { margin-top: 8px; }
.perf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 13px; }
.perf-box { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 17px; }
.perf-box .pl { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; }
.perf-box .pv { font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; margin-top: 6px; }
.perf-box .pbar { height: 6px; border-radius: 999px; background: var(--surface); margin-top: 11px; overflow: hidden; }
.perf-box .pbar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--good), var(--cyan)); transition: width .5s; }
.share-card { margin-top: 22px; background: linear-gradient(135deg, var(--panel-2), var(--panel)); border: 1px solid rgba(47,123,255,0.3); border-radius: 18px; padding: 22px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.share-card .big { font-size: 17px; font-weight: 700; }
.share-card .sub { color: var(--muted); font-size: 13.5px; margin-top: 4px; }

/* ---------------- VOICE DOCK ---------------- */
.dock { height: 78px; flex: none; display: none; align-items: center; gap: 16px; padding: 0 18px;
  background: linear-gradient(180deg, #0c1320, #080c14); border-top: 1px solid var(--line-2); position: relative; z-index: 40;
  box-shadow: 0 -18px 50px -34px rgba(46,230,255,0.7); }
.dock.show { display: flex; }
.dock .droom { display: flex; align-items: center; gap: 11px; width: 300px; }
.dock .di { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; font-size: 18px; background: var(--accent-soft); color: var(--accent); }
.dock .dn { font-size: 14.5px; font-weight: 700; }
.dock .dsub { font-size: 12px; color: var(--muted); }
.dock .dfav { color: var(--muted); width: 18px; height: 18px; } .dock .dfav:hover { color: var(--warn); }
.dock .dmem { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--muted); padding: 6px 10px; border-radius: 9px; }
.dock .dmem:hover { background: var(--panel); color: #fff; }
.dock .dinv { width: 34px; height: 34px; border-radius: 9px; color: var(--muted); display: grid; place-items: center; }
.dock .dinv:hover { background: var(--panel); color: #fff; }
.dctrls { display: flex; align-items: center; gap: 20px; margin: 0 auto; }
.dctl { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.dctl .btn { width: 48px; height: 48px; border-radius: 14px; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--text); transition: all .14s; }
.dctl .btn:hover { border-color: rgba(47,123,255,0.5); }
.dctl.active .btn { background: rgba(247,109,109,0.16); border-color: rgba(247,109,109,0.45); color: var(--danger); }
.dctl.ptt .btn { width: 76px; height: 56px; border-radius: 16px; border: 0; color: #fff; background: linear-gradient(135deg, #2f7bff, #2ee6ff); box-shadow: 0 0 0 3px rgba(46,230,255,0.25), 0 10px 30px -8px rgba(46,230,255,0.8); }
.dctl.ptt .btn svg { width: 26px; height: 26px; }
.dctl.ptt.live .btn { background: linear-gradient(135deg, #36d399, #2ee6ff); transform: scale(0.96); }
.dright { width: 300px; display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.vol { display: flex; align-items: center; gap: 9px; color: var(--muted); }
.vol input[type=range] { width: 110px; -webkit-appearance: none; height: 5px; border-radius: 999px; background: var(--surface); outline: none; }
.vol input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 15px; height: 15px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(47,123,255,0.25); cursor: pointer; }
.dright .di2 { width: 36px; height: 36px; border-radius: 9px; color: var(--muted); display: grid; place-items: center; }
.dright .di2:hover { background: var(--panel); color: #fff; }

/* ---------------- modal ---------------- */
.overlay { position: fixed; inset: 0; background: rgba(4,7,12,0.74); backdrop-filter: blur(6px); z-index: 100; display: none; align-items: center; justify-content: center; padding: 24px; }
.overlay.show { display: flex; }
.modal { width: 100%; max-width: 760px; max-height: 88vh; overflow-y: auto; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 22px; padding: 28px; box-shadow: 0 40px 90px -30px #000; }
.modal h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.modal .x { float: right; width: 36px; height: 36px; border-radius: 9px; color: var(--muted); font-size: 18px; display: grid; place-items: center; }
.modal .x:hover { background: var(--panel); color: #fff; }
.modal .sub { color: var(--muted); margin-top: 4px; font-size: 14px; }
.tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 13px; margin-top: 22px; }
.tpl { border: 1px solid var(--line-2); border-radius: 15px; padding: 17px; text-align: left; background: var(--panel); transition: all .16s; }
.tpl:hover { border-color: rgba(47,123,255,0.6); transform: translateY(-3px); background: var(--surface); box-shadow: 0 16px 36px -22px rgba(46,230,255,0.7); }
.tpl .ti { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: var(--accent-soft); color: var(--accent); }
.tpl h4 { margin-top: 13px; font-size: 15px; }
.tpl p { margin-top: 4px; font-size: 12px; color: var(--muted); line-height: 1.45; }

/* settings */
.set-card { background: var(--panel); border: 1px solid var(--line); border-radius: 15px; padding: 8px 20px; margin-bottom: 14px; }
.set-row { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid var(--line); }
.set-row:last-child { border: 0; }
.set-row .l { font-size: 14.5px; } .set-row .l .d { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* ---------------- community + rewards ---------------- */
.cm-head { display: flex; align-items: center; gap: 14px; }
.cm-ic { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; font-size: 18px; font-weight: 800; color: #06121e; letter-spacing: -0.02em; flex: none; }
.cm-title { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; }
.cm-lvlbadge { font-size: 11.5px; font-weight: 700; color: var(--cyan); background: rgba(46,230,255,0.12); border: 1px solid rgba(46,230,255,0.3); padding: 3px 10px; border-radius: 999px; letter-spacing: 0.01em; }
.cm-sub { color: var(--muted); font-size: 13px; margin-top: 4px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.cm-health { font-weight: 600; } .cm-health.good { color: var(--good); } .cm-health.watch { color: var(--warn); } .cm-health.flagged { color: var(--danger); }
.cm-tabs { display: flex; gap: 4px; margin: 20px 0 6px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.cm-tab { position: relative; padding: 10px 15px; font-size: 13.5px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.cm-tab:hover { color: var(--text); }
.cm-tab.on { color: #fff; border-bottom-color: var(--accent); }
.cm-tabdot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.cm-body { padding-top: 18px; }
.cm-lead { color: var(--muted); font-size: 14px; }
.cm-members { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-top: 14px; }
.cm-mem { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); }

.cr-banner { display: flex; align-items: center; gap: 20px; padding: 22px 24px; border-radius: 20px; border: 1px solid rgba(46,230,255,0.22); background: linear-gradient(120deg, rgba(47,123,255,0.16), rgba(46,230,255,0.06) 60%, transparent), var(--panel); }
.cr-kick { font-size: 11px; font-weight: 800; letter-spacing: 0.16em; color: var(--cyan); }
.cr-h { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; margin-top: 7px; }
.cr-p { color: var(--muted); font-size: 13.5px; line-height: 1.5; margin-top: 7px; max-width: 600px; }
.cr-p b { color: var(--text); }
.cr-levelchip { flex: none; width: 118px; text-align: center; padding: 16px 12px; border-radius: 16px; background: rgba(7,12,20,0.5); border: 1px solid var(--line-2); }
.cr-levelchip .lv { font-size: 40px; font-weight: 800; line-height: 1; background: linear-gradient(135deg, #2f7bff, #2ee6ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.cr-levelchip .lt { font-size: 11.5px; color: var(--muted); margin-top: 7px; font-weight: 600; }

.cr-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.cr-card { background: var(--panel); border: 1px solid var(--line); border-radius: 17px; padding: 19px; }
.cr-card-h { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; color: var(--muted-2); text-transform: uppercase; }
.cr-bignum { font-size: 38px; font-weight: 800; letter-spacing: -0.03em; margin-top: 8px; } .cr-bignum span { font-size: 15px; font-weight: 600; color: var(--muted); margin-left: 6px; }
.cr-scoremeta { font-size: 12.5px; color: var(--muted); margin-top: 2px; display: flex; align-items: center; gap: 7px; }
.cr-bd { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.cr-bdrow { display: flex; align-items: center; justify-content: space-between; font-size: 13px; padding: 5px 0; color: var(--muted); }
.cr-bdrow i { font-style: normal; color: var(--muted-2); font-size: 11px; }
.cr-bdrow b { color: var(--good); font-weight: 700; } .cr-bdrow b.z { color: var(--muted-2); }
.cr-nextname { font-size: 17px; font-weight: 700; margin-top: 9px; display: flex; align-items: center; gap: 9px; }
.cr-nx-ic { font-size: 20px; }
.cr-nx-tier { font-size: 12px; color: var(--cyan); font-weight: 600; margin-top: 3px; }
.cr-prog { margin-top: 14px; display: grid; gap: 11px; }
.cr-sig-top { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-bottom: 5px; }
.cr-sig-top b { color: var(--text); font-weight: 600; } .cr-sig-top b.ok { color: var(--good); }
.cr-bar { height: 7px; border-radius: 999px; background: var(--surface); overflow: hidden; }
.cr-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #2f7bff, #2ee6ff); transition: width .5s ease; }
.cr-bar i.ok { background: linear-gradient(90deg, #36d399, #2ee6ff); }
.cr-bar.big { height: 9px; }
.cr-overall { display: flex; align-items: center; gap: 11px; margin-top: 16px; }
.cr-overall-l { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.cr-overall .cr-bar { flex: 1; } .cr-overall-v { font-size: 13px; font-weight: 700; color: var(--cyan); }

.cr-cat-h { font-size: 15px; font-weight: 700; margin: 24px 0 13px; }
.cr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.cr-rw { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 17px; display: flex; flex-direction: column; transition: border-color .15s, transform .15s; }
.cr-rw:hover { border-color: var(--line-2); transform: translateY(-2px); }
.cr-rw.claimed { border-color: rgba(54,211,153,0.32); background: linear-gradient(160deg, rgba(54,211,153,0.07), transparent 60%), var(--panel); }
.cr-rw.eligible { border-color: rgba(46,230,255,0.4); box-shadow: 0 12px 34px -22px rgba(46,230,255,0.8); }
.cr-rw.locked { opacity: 0.74; }
.cr-rw-top { display: flex; align-items: center; justify-content: space-between; }
.cr-rw-ic { font-size: 26px; }
.cr-risk { font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; letter-spacing: 0.02em; }
.cr-risk.low { color: var(--good); background: rgba(54,211,153,0.14); }
.cr-risk.medium { color: var(--warn); background: rgba(247,185,85,0.14); }
.cr-risk.high { color: var(--danger); background: rgba(247,109,109,0.14); }
.cr-rw h4 { font-size: 15px; margin-top: 13px; }
.cr-rw p { font-size: 12.5px; color: var(--muted); line-height: 1.45; margin-top: 5px; flex: 1; }
.cr-usage { margin-top: 13px; }
.cr-usage-top { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); margin-bottom: 5px; } .cr-usage-top b { color: var(--text); font-weight: 600; }
.cr-acts { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; }
.cr-active { font-size: 12px; font-weight: 700; color: var(--good); }
.cr-prov { font-size: 12px; font-weight: 700; color: var(--cyan); }
.cr-ready { font-size: 12px; font-weight: 700; color: var(--cyan); }
.cr-soon { font-size: 12px; font-weight: 600; color: var(--warn); }
.cr-lock { font-size: 12px; font-weight: 600; color: var(--muted-2); }
.cr-note { margin-top: 20px; padding: 14px 17px; border-radius: 13px; background: rgba(47,123,255,0.07); border: 1px solid var(--line); font-size: 12.5px; color: var(--muted); line-height: 1.5; }

@media (max-width: 1180px) { .cr-row { grid-template-columns: 1fr; } .cr-banner { flex-direction: column; align-items: flex-start; } }

.toggle { width: 46px; height: 26px; border-radius: 999px; background: var(--line-2); position: relative; transition: background .16s; flex: none; cursor: pointer; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .16s; }
.toggle.on { background: linear-gradient(90deg, var(--accent), var(--cyan)); }
.toggle.on::after { left: 23px; }
.pillrow { display: flex; gap: 9px; flex-wrap: wrap; }
.fpill { font-size: 13px; font-weight: 600; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 15px; cursor: pointer; transition: all .14s; }
.fpill.on, .fpill:hover { color: #fff; border-color: rgba(47,123,255,0.5); background: var(--accent-soft); }
.set-input { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 13px; color: var(--text); font-size: 13.5px; min-width: 200px; outline: none; transition: border-color .14s; }
.set-input:focus { border-color: rgba(47,123,255,0.6); }
.set-input::placeholder { color: var(--muted-2); }

/* preferences that actually take effect */
body.rmotion *, body[data-mode="esports"] .wave { animation: none !important; }
body.rmotion * { transition: none !important; scroll-behavior: auto !important; }
body.compact .main-scroll { padding: 18px 22px; }
body.compact .frow { padding: 8px 10px; }
body.compact .card { padding: 14px; }
body.compact .set-row { padding: 11px 0; }

/* toast + empty */
.toast { position: fixed; bottom: 96px; left: 50%; transform: translateX(-50%) translateY(18px); background: var(--panel-2); border: 1px solid rgba(47,123,255,0.45); border-radius: 13px; padding: 13px 19px; font-size: 13.5px; font-weight: 600; z-index: 200; opacity: 0; pointer-events: none; transition: all .25s; box-shadow: 0 20px 50px -20px #000; display: flex; align-items: center; gap: 10px; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast .ti { color: var(--cyan); }

/* install-as-app (PWA) button */
#pwaInstall { position: fixed; right: 20px; bottom: 20px; z-index: 210; align-items: center; gap: 9px; padding: 11px 17px; border-radius: 999px; color: #fff; font-size: 13.5px; font-weight: 700; background: linear-gradient(135deg, #2f7bff, #1e63e6); box-shadow: 0 14px 34px -12px rgba(46,230,255,0.85), inset 0 1px 0 rgba(255,255,255,0.22); animation: pwaIn .3s ease; }
#pwaInstall:hover { filter: brightness(1.09); transform: translateY(-1px); }
#pwaInstall svg { width: 17px; height: 17px; }
@keyframes pwaIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 760px) { #pwaInstall { bottom: 72px; right: 14px; } }

.empty { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty .ei { font-size: 42px; opacity: .4; }
.empty h3 { margin-top: 14px; font-size: 18px; color: var(--text); }
.empty p { margin-top: 6px; font-size: 13.5px; color: var(--muted); max-width: 420px; margin-left: auto; margin-right: auto; line-height: 1.55; }
.empty-acts { margin-top: 18px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.empty-acts .mini { flex: none; padding: 9px 20px; }
.guestbar { background: linear-gradient(90deg, rgba(176,108,255,0.16), rgba(47,123,255,0.16)); border: 1px solid rgba(176,108,255,0.3); border-radius: 14px; padding: 14px 18px; display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.guestbar .gt { font-weight: 700; font-size: 14px; } .guestbar .gs { font-size: 12.5px; color: var(--muted); }
.guestbar .gb { margin-left: auto; background: var(--pro); color: #fff; font-weight: 700; font-size: 13px; padding: 9px 16px; border-radius: 10px; }

@media (max-width: 1280px) { .profile { position: absolute; right: 0; top: 60px; bottom: 78px; z-index: 35; box-shadow: -30px 0 60px -20px rgba(0,0,0,0.7); } }
/* tablet: when the profile slide-over is open, dim the content behind it so it
   reads as an intentional panel (not a box awkwardly covering the friend row) */
@media (min-width: 761px) and (max-width: 1280px) {
  .zones:has(.profile.show)::after { content: ""; position: fixed; inset: 60px 0 0 0; background: rgba(4,7,11,0.55); z-index: 34; pointer-events: none; }
}
@media (max-width: 1080px) { .sidebar { display: none; } }
@media (max-width: 1280px) { .wctl { display: none; } }
@media (max-width: 900px) { .modetab span { display: none; } }

/* ============================================================
   phone layout (<=760px): full-width main + bottom tab bar
   ============================================================ */
@media (max-width: 760px) {
  /* top bar: keep brand + Create only */
  .topbar { height: 54px; gap: 8px; padding: 0 12px; }
  .searchbar, .modetabs, .wctl { display: none; }
  .brand { width: auto; }
  .brand .wm { display: none; }
  .createwrap { margin-left: auto; }
  .create-btn { padding: 8px 13px; font-size: 13px; }
  .create-caret { display: none; }

  /* stack: main fills, rail becomes a bottom tab bar */
  .zones { flex-direction: column; }
  .main { order: 1; min-height: 0; }
  .main-scroll { padding: 16px 14px 22px; }
  .rail { order: 2; width: 100%; height: 60px; flex-direction: row; padding: 0;
    border-right: 0; border-top: 1px solid var(--line); background: var(--bg-2); }
  .rail .nav { flex-direction: row; gap: 0; padding: 0 4px; flex: 1; overflow-x: auto; }
  .rail .nav::-webkit-scrollbar { display: none; }
  .rnav { flex: 1 0 auto; min-width: 54px; padding: 7px 2px 6px; gap: 3px; font-size: 9.5px; border-radius: 11px; }
  .rnav .ic { width: 21px; height: 21px; }
  .rnav.on::before { display: none; }
  .rnav .nbadge { top: 4px; right: calc(50% - 18px); }
  .rail .usercard { display: none; }

  /* the contextual profile becomes a full-screen sheet when opened */
  .profile { top: 54px; bottom: 60px; width: 100%; max-width: 100%; }
  .dock { height: 66px; gap: 10px; padding: 0 12px; }
  .dock .droom { gap: 9px; }
  .toast { bottom: 80px; }
}


/* ===== auth gate (real accounts) ===== */
.authgate { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px; background: radial-gradient(1100px 600px at 70% -10%, rgba(47,123,255,0.18), transparent 60%), rgba(4,7,12,0.92); backdrop-filter: blur(8px); }
.authgate.show { display: flex; }
.authcard { width: 100%; max-width: 400px; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 20px; padding: 30px 28px; box-shadow: 0 40px 90px -30px #000; }
.auth-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 20px; }
.auth-brand .mk { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: radial-gradient(130% 130% at 28% 18%, rgba(47,123,255,0.35), rgba(46,230,255,0.10) 70%); border: 1px solid rgba(47,123,255,0.5); }
.auth-brand .mk svg { width: 23px; height: 23px; }
.auth-brand .wm { font-weight: 800; font-size: 21px; letter-spacing: -0.03em; }
.auth-brand .wm b { background: linear-gradient(92deg,#5ea0ff,#2ee6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.authcard h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.auth-sub { color: var(--muted); font-size: 13.5px; margin-top: 5px; }
.auth-fields { display: grid; gap: 10px; margin-top: 20px; }
.auth-fields input { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 11px; padding: 12px 14px; color: var(--text); font-size: 14px; outline: none; transition: border-color .14s; }
.auth-fields input:focus { border-color: rgba(47,123,255,0.6); }
.auth-err { color: var(--danger); font-size: 12.5px; margin-top: 8px; min-height: 4px; transition: min-height .1s; }
.auth-err:not(:empty) { min-height: 16px; margin-bottom: 2px; }
.auth-go { width: 100%; margin-top: 14px; background: linear-gradient(135deg,#2f7bff,#1e63e6); color: #fff; font-weight: 700; font-size: 15px; padding: 12px; border-radius: 12px; box-shadow: 0 8px 22px -10px rgba(46,230,255,0.7); }
.auth-go:hover { filter: brightness(1.08); }
.auth-go:disabled { opacity: .6; cursor: default; }
.auth-switch { margin-top: 16px; text-align: center; font-size: 13px; color: var(--muted); }
.auth-switch button { color: var(--accent); font-weight: 600; margin-left: 5px; }
.auth-switch button:hover { text-decoration: underline; }
.auth-guest { width: 100%; margin-top: 14px; color: var(--muted); font-size: 13px; padding: 9px; border-radius: 10px; }
.auth-guest:hover { color: #fff; background: var(--panel); }

/* ===== real community channels ===== */
.cm-chans { margin-top: 16px; max-width: 640px; }
.cm-chan-h { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 8px; }
.cm-chan { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; padding: 12px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); margin-bottom: 7px; transition: all .14s; }
.cm-chan:hover { border-color: rgba(47,123,255,0.5); background: var(--surface); transform: translateX(2px); }
.cm-chan-ic { width: 26px; height: 26px; display: grid; place-items: center; color: var(--muted); font-weight: 700; flex: none; }
.cm-chan-ic .wave { color: var(--cyan); width: 16px; height: 16px; }
.cm-chan-n { flex: 1; font-size: 14.5px; font-weight: 600; }
.cm-chan-go { font-size: 12px; color: var(--accent); font-weight: 600; }
.cm-chan-empty { color: var(--muted); font-size: 13px; padding: 8px 4px; }

/* ===== add friend / pending ===== */
.addfriend-bar { display: flex; align-items: center; gap: 10px; margin: 16px 0 4px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; padding: 8px 10px 8px 14px; }
.addfriend-bar input { flex: 1; background: none; border: 0; outline: none; color: var(--text); font-size: 14px; }
.addfriend-bar input::placeholder { color: var(--muted-2); }
.addfriend-bar .mini { flex: none; padding: 9px 18px; }
.addfriend-msg { font-size: 12.5px; }
.addfriend-msg.ok { color: var(--good); }
.addfriend-msg.err { color: var(--danger); }
.pend-tag { font-size: 12.5px; color: var(--muted); align-self: center; }
.side-empty { font-size: 12px; color: var(--muted-2); padding: 6px 8px; }

/* ===================================================================== */
/* custom icon system — unique stroke-based glyphs (no emoji)            */
/* ===================================================================== */
.ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1em; height: 1em; flex: none; vertical-align: -0.14em;
  stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; fill: none;
}
.ico.dn { width: 11px; height: 11px; }
.ico.lf { transform: rotate(180deg); width: 14px; height: 14px; }
/* icon tiles — glyph sized to ~46% of the tile, perfectly centered */
.card .cic .ico { width: 22px; height: 22px; }
.dock .di .ico { width: 21px; height: 21px; }
.dock .di svg { width: 21px; height: 21px; }
.pf-item .pic .ico { width: 18px; height: 18px; }
.side-ic .ico { width: 16px; height: 16px; }
.chat-head .ci .ico { width: 20px; height: 20px; }
.cm-chan-ic .ico { width: 16px; height: 16px; }
.cr-rw-ic .ico, .cr-nx-ic .ico { width: 19px; height: 19px; }
.tpl .ti .ico { width: 25px; height: 25px; }
.notifs-ic .ico { width: 20px; height: 20px; }
.notifs-ic { width: 42px; height: 42px; border-radius: 11px; flex: none; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
/* inline icons inside text / buttons */
.qa button .ic .ico { width: 19px; height: 19px; }
.pf-status .ic .ico { width: 16px; height: 16px; }
.pf-name .vmark .ico { width: 14px; height: 14px; }
.pf-name .pro .ico { width: 12px; height: 12px; }
.pf-mutual .ms .ico { width: 14px; height: 14px; vertical-align: -0.22em; margin-right: 2px; }
.fn .vmark .ico, .cm-mem .vmark .ico { width: 13px; height: 13px; }
.fbtn .ico, .mini .ico { width: 14px; height: 14px; }
.cm-chan-go .ico, .side-see .ico, .sortby .ico { width: 13px; height: 13px; vertical-align: -0.1em; }
.cr-acts .ico { width: 14px; height: 14px; vertical-align: -0.12em; margin-right: 1px; }
.cr-note .ico { width: 17px; height: 17px; vertical-align: -0.24em; margin-right: 3px; }
.cr-sig-top b .ico { width: 12px; height: 12px; }
.task .cb .ico { width: 13px; height: 13px; }
.guestbar .gb-spark .ico { width: 20px; height: 20px; color: var(--accent); }
.empty .ei .ico { width: 30px; height: 30px; stroke-width: 1.5; }
.side-h .star .ico { width: 13px; height: 13px; }
.chat-inbox .tool .ico { width: 21px; height: 21px; }
/* window + dock control buttons now hold SVGs */
.wctl button svg { width: 15px; height: 15px; }
.dock .dinv svg { width: 16px; height: 16px; }
.dock .di2 svg { width: 17px; height: 17px; }
.dock #moreCtl .btn svg { width: 20px; height: 20px; }
.rail .usercard .cv { width: 14px; height: 14px; }
.create-caret { width: 13px; height: 13px; border-left: 1px solid rgba(255,255,255,0.25); margin-left: 4px; padding-left: 8px; box-sizing: content-box; }
.modal .x svg { width: 16px; height: 16px; }
.toast .ti .ico, .toast .ti svg { width: 15px; height: 15px; }

