/* ============ grym som fan — design system ============ */
:root {
  --paper: #f6f5fa;
  --surface: #ffffff;
  --surface-2: #f0eef7;
  --ink: #181527;
  --muted: #6b6680;
  --faint: #9a95ad;
  --line: #eceaf3;
  --iris: #5a40e6;
  --iris-2: #7b5cf0;
  --coral: #ff6a5a;
  --mint: #1fc9a0;
  --amber: #ffb454;
  --danger: #e5484d;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(24, 21, 39, 0.04), 0 8px 24px rgba(24, 21, 39, 0.06);
  --shadow-lg: 0 12px 40px rgba(24, 21, 39, 0.14);
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --display: "Bricolage Grotesque", var(--font);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.5;
}
#app { height: 100vh; }
button, input, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
a { color: var(--iris); text-decoration: none; }
::selection { background: var(--iris); color: #fff; }

/* ---- primitives ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px; font-weight: 600;
  background: var(--iris); color: #fff; transition: transform .12s ease, filter .15s ease, background .15s;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: var(--surface-2); color: var(--ink); }
.btn.ghost:hover { background: var(--line); filter: none; }
.btn.outline { background: transparent; color: var(--iris); box-shadow: inset 0 0 0 1.5px var(--iris); }
.btn.sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn.danger { background: var(--danger); }
.btn.block { width: 100%; }

.input, .textarea {
  width: 100%; height: 46px; padding: 0 14px; background: var(--surface);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; padding: 11px 14px; resize: vertical; min-height: 46px; }
.input:focus, .textarea:focus { outline: none; border-color: var(--iris); box-shadow: 0 0 0 4px rgba(90,64,230,.12); }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 6px; letter-spacing: .01em; }

.avatar {
  border-radius: 50%; background: linear-gradient(135deg, var(--iris-2), var(--coral));
  color: #fff; display: grid; place-items: center; font-weight: 700; flex: none;
  overflow: hidden; user-select: none;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.s { width: 34px; height: 34px; font-size: 13px; }
.avatar.m { width: 44px; height: 44px; font-size: 16px; }
.avatar.l { width: 72px; height: 72px; font-size: 26px; }
.avatar.xl { width: 104px; height: 104px; font-size: 38px; }

.tag { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 999px;
  background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 600; }
.tag.mint { background: rgba(31,201,160,.14); color: #0f9c7c; }
.tag.coral { background: rgba(255,106,90,.14); color: #d63b2c; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 3px rgba(31,201,160,.18); }

.muted { color: var(--muted); }
.faint { color: var(--faint); }
.empty { text-align: center; color: var(--faint); padding: 48px 20px; }
.empty .big { font-size: 30px; margin-bottom: 8px; }

/* ============ AUTH ============ */
.auth { height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.auth-art { position: relative; overflow: hidden; background: #0f0c1d; display: grid; place-items: center; }
.aurora { position: absolute; inset: -30%; filter: blur(70px); opacity: .9;
  background:
    radial-gradient(40% 40% at 30% 30%, var(--iris) 0%, transparent 60%),
    radial-gradient(38% 38% at 72% 38%, var(--coral) 0%, transparent 62%),
    radial-gradient(42% 42% at 55% 78%, var(--mint) 0%, transparent 60%);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift {
  0% { transform: translate(0,0) scale(1) rotate(0deg); }
  100% { transform: translate(4%, -3%) scale(1.12) rotate(8deg); }
}
.auth-art .pitch { position: relative; z-index: 2; color: #fff; max-width: 420px; padding: 48px; }
.auth-art .wordmark { font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: .14em;
  text-transform: uppercase; opacity: .85; margin-bottom: 28px; }
.auth-art h1 { font-family: var(--display); font-weight: 800; font-size: 54px; line-height: .98; letter-spacing: -.02em; }
.auth-art h1 em { font-style: normal; background: linear-gradient(90deg,#fff,#ffd9d2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-art p { margin-top: 18px; font-size: 16px; opacity: .82; line-height: 1.55; }
.auth-form-wrap { display: grid; place-items: center; padding: 32px; }
.auth-card { width: 100%; max-width: 380px; }
.auth-card .brand { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -.01em; margin-bottom: 4px; }
.auth-card .sub { color: var(--muted); margin-bottom: 26px; }
.auth-switch { margin-top: 18px; text-align: center; color: var(--muted); font-size: 14px; }
.auth-switch button { color: var(--iris); font-weight: 600; }
.invite-banner { display: flex; align-items: center; gap: 12px; background: linear-gradient(100deg, rgba(90,64,230,.1), rgba(31,201,160,.08)); border: 1px solid var(--line); border-radius: 13px; padding: 12px 14px; margin-bottom: 20px; font-size: 14px; }

/* ============ APP SHELL ============ */
.shell { height: 100vh; display: grid; grid-template-columns: 248px 1fr; }
.rail { background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 18px 14px; }
.rail .logo { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -.01em; padding: 6px 10px 22px; display: flex; align-items: center; gap: 9px; }
.rail .logo .spark { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg,var(--iris),var(--coral)); display: grid; place-items: center; color: #fff; font-size: 15px; }
.nav { display: flex; flex-direction: column; gap: 3px; }
.nav button { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; color: var(--muted);
  font-weight: 600; font-size: 14.5px; text-align: left; transition: background .14s, color .14s; position: relative; }
.nav button .ic { font-size: 17px; width: 20px; text-align: center; }
.nav button:hover { background: var(--surface-2); color: var(--ink); }
.nav button.active { background: linear-gradient(100deg, rgba(90,64,230,.12), rgba(255,106,90,.08)); color: var(--iris); }
.nav button .badge { margin-left: auto; background: var(--coral); color: #fff; font-size: 11px; font-weight: 700;
  min-width: 19px; height: 19px; border-radius: 999px; display: grid; place-items: center; padding: 0 5px; }
.nav button .badge[hidden] { display: none; }
.rail .me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--surface-2); }
.rail .me .nm { font-weight: 600; font-size: 13.5px; line-height: 1.2; overflow: hidden; }
.rail .me .nm small { display: block; color: var(--muted); font-weight: 500; }
.rail .me button { margin-left: auto; color: var(--faint); font-size: 17px; }
.rail .me button:hover { color: var(--danger); }

.main { overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.topbar { height: 64px; flex: none; display: flex; align-items: center; gap: 14px; padding: 0 26px; border-bottom: 1px solid var(--line); background: var(--surface); }
.topbar h2 { font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -.01em; }
.content { flex: 1; overflow: auto; }
.pad { padding: 26px; }

/* ---- generic list cards ---- */
.list { display: flex; flex-direction: column; gap: 8px; max-width: 720px; }
.row { display: flex; align-items: center; gap: 13px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); transition: border-color .14s, box-shadow .14s; }
.row:hover { border-color: #ddd8ec; box-shadow: var(--shadow); }
.row .grow { min-width: 0; flex: 1; }
.row .grow .t { font-weight: 600; }
.row .grow .s { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .acts { display: flex; gap: 7px; align-items: center; }
.section-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin: 22px 0 10px; }
.section-label:first-child { margin-top: 0; }

/* ============ CHAT ============ */
.chat-wrap { display: grid; grid-template-columns: 320px 1fr; height: 100%; min-height: 0; }
.rooms { border-right: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; min-height: 0; }
.rooms .head { padding: 18px 18px 12px; display: flex; align-items: center; justify-content: space-between; }
.rooms .head h2 { font-family: var(--display); font-weight: 700; font-size: 20px; }
.rooms .scroll { overflow: auto; padding: 4px 10px 14px; }
.room-item { display: flex; gap: 12px; align-items: center; padding: 11px; border-radius: 13px; cursor: pointer; transition: background .14s; }
.room-item:hover { background: var(--surface-2); }
.room-item.active { background: linear-gradient(100deg, rgba(90,64,230,.12), rgba(255,106,90,.07)); }
.room-item .grow { min-width: 0; flex: 1; }
.room-item .nm { font-weight: 600; display: flex; align-items: center; gap: 7px; }
.room-item .last { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-item .unread { background: var(--coral); color: #fff; font-size: 11px; font-weight: 700; min-width: 20px; height: 20px;
  border-radius: 999px; display: grid; place-items: center; padding: 0 5px; }

.conv { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--paper); }
.conv-head { height: 64px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 22px; border-bottom: 1px solid var(--line); background: var(--surface); }
.conv-head .nm { font-weight: 700; }
.conv-head .acts { margin-left: auto; display: flex; gap: 8px; }
.msgs { flex: 1; overflow: auto; padding: 22px 26px 8px; display: flex; flex-direction: column; gap: 3px; }
.msg { display: flex; gap: 10px; max-width: 76%; align-self: flex-start; position: relative; padding: 1px 0; }
.msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.msg .av-slot { width: 30px; flex: none; align-self: flex-end; }
.bubble-wrap { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.msg.mine .bubble-wrap { align-items: flex-end; }
.sender { font-size: 12px; font-weight: 600; color: var(--iris); margin: 0 4px 1px; }
.bubble { padding: 9px 13px; border-radius: 17px; background: var(--surface); border: 1px solid var(--line);
  border-bottom-left-radius: 5px; word-wrap: break-word; overflow-wrap: anywhere; position: relative; }
.msg.mine .bubble { background: linear-gradient(135deg, var(--iris), var(--iris-2)); color: #fff; border: none;
  border-bottom-left-radius: 17px; border-bottom-right-radius: 5px; }
.bubble img.media { max-width: 260px; max-height: 280px; border-radius: 11px; display: block; margin: 2px 0; }
.bubble .meta { font-size: 10.5px; opacity: .6; margin-top: 3px; display: flex; gap: 6px; }
.msg.mine .bubble .meta { color: #fff; opacity: .75; justify-content: flex-end; }
.reply-quote { border-left: 3px solid var(--iris); background: rgba(90,64,230,.07); padding: 5px 9px; border-radius: 7px;
  margin-bottom: 5px; font-size: 12.5px; }
.msg.mine .reply-quote { border-left-color: rgba(255,255,255,.7); background: rgba(255,255,255,.16); }
.reply-quote .rq-name { font-weight: 700; font-size: 11px; opacity: .85; }
.reply-quote .rq-body { opacity: .8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* message hover actions */
.msg .tools { position: absolute; top: -12px; display: none; gap: 2px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px; box-shadow: var(--shadow); z-index: 3; }
.msg:hover .tools { display: flex; }
.msg.mine .tools { left: -6px; }
.msg:not(.mine) .tools { right: -6px; }
.msg .tools button { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; }
.msg .tools button:hover { background: var(--surface-2); }

/* reactions */
.reactions { display: flex; gap: 5px; flex-wrap: wrap; margin: 4px 2px 2px; }
.msg.mine .reactions { justify-content: flex-end; }
.reaction { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 8px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 600; transition: transform .1s; }
.reaction:hover { transform: translateY(-1px); }
.reaction.me { background: rgba(90,64,230,.12); border-color: rgba(90,64,230,.4); color: var(--iris); }
.reaction .pop { animation: pop .3s ease; }
@keyframes pop { 0% { transform: scale(.4); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }

.emoji-pick { display: flex; gap: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 7px; box-shadow: var(--shadow-lg); }
.emoji-pick button { font-size: 19px; width: 32px; height: 32px; border-radius: 50%; transition: transform .1s, background .1s; }
.emoji-pick button:hover { transform: scale(1.25); background: var(--surface-2); }

.typing { padding: 2px 26px 6px; height: 22px; color: var(--muted); font-size: 12.5px; font-style: italic; }
.typing .d { display: inline-block; animation: blink 1.2s infinite; }
.typing .d:nth-child(2){ animation-delay:.2s } .typing .d:nth-child(3){ animation-delay:.4s }
@keyframes blink { 0%,60%,100%{opacity:.25} 30%{opacity:1} }

.composer { flex: none; padding: 12px 22px 18px; border-top: 1px solid var(--line); background: var(--surface); }
.composer .reply-bar { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border-radius: 10px;
  padding: 8px 12px; margin-bottom: 9px; font-size: 13px; }
.composer .reply-bar .x { margin-left: auto; cursor: pointer; color: var(--faint); font-size: 16px; }
.composer .box { display: flex; align-items: flex-end; gap: 10px; }
.composer .box .input { border-radius: 22px; min-height: 46px; max-height: 130px; }
.composer .icon-btn { width: 46px; height: 46px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center;
  font-size: 19px; flex: none; transition: background .14s; }
.composer .icon-btn:hover { background: var(--line); }
.composer .send { background: var(--iris); color: #fff; }
.composer .send:hover { filter: brightness(1.08); }

/* ============ PROFILE ============ */
.profile { max-width: 560px; }
.profile .hero { display: flex; gap: 20px; align-items: center; margin-bottom: 26px; }
.profile .hero .nm { font-family: var(--display); font-weight: 700; font-size: 26px; }
.avatar-edit { position: relative; cursor: pointer; }
.avatar-edit .ov { position: absolute; inset: 0; border-radius: 50%; background: rgba(24,21,39,.5); color: #fff;
  display: grid; place-items: center; font-size: 12px; opacity: 0; transition: opacity .15s; }
.avatar-edit:hover .ov { opacity: 1; }
.switch { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 13px 0; border-top: 1px solid var(--line); }
.toggle { width: 46px; height: 27px; border-radius: 999px; background: var(--line); position: relative; transition: background .18s; flex: none; }
.toggle.on { background: var(--mint); }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .18s; }
.toggle.on::after { transform: translateX(19px); }

/* ============ HOME / ANSLAGSTAVLA ============ */
.welcome { font-family: var(--display); font-weight: 700; font-size: 23px; letter-spacing: -.01em; margin-bottom: 6px; }
.welcome-sub { color: var(--muted); margin-bottom: 8px; }
.hsec { display: flex; align-items: baseline; justify-content: space-between; margin: 26px 0 13px; max-width: 920px; }
.hsec h3 { font-family: var(--display); font-weight: 700; font-size: 18px; }
.hsec a { font-size: 13.5px; font-weight: 600; cursor: pointer; color: var(--iris); }
.people { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 8px; max-width: 920px; scrollbar-width: thin; }
.person { flex: none; width: 132px; background: var(--surface); border: 1px solid var(--line); border-radius: 15px; padding: 16px 12px; text-align: center; cursor: pointer; transition: border-color .14s, box-shadow .14s, transform .12s; }
.person:hover { border-color: #ddd8ec; box-shadow: var(--shadow); transform: translateY(-2px); }
.person .avatar { margin: 0 auto; }
.person .nm2 { font-weight: 600; font-size: 13.5px; margin-top: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person .un { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person .when2 { color: var(--faint); font-size: 11px; margin-top: 3px; }
.person .new-badge { display: inline-block; margin-top: 6px; font-size: 10.5px; font-weight: 700; color: var(--mint); background: rgba(31,201,160,.14); padding: 2px 7px; border-radius: 999px; }

/* ============ COMMUNITIES ============ */
.comm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; max-width: 920px; }
.comm-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 10px; transition: border-color .14s, box-shadow .14s; }
.comm-card:hover { border-color: #ddd8ec; box-shadow: var(--shadow); }
.comm-card .ct { display: flex; align-items: center; gap: 11px; }
.comm-card .badge-img { width: 46px; height: 46px; border-radius: 13px; background: linear-gradient(135deg, var(--iris), var(--mint)); display: grid; place-items: center; color: #fff; font-family: var(--display); font-weight: 800; font-size: 18px; flex: none; }
.comm-card h3 { font-family: var(--display); font-weight: 700; font-size: 17px; line-height: 1.15; cursor: pointer; }
.comm-card .desc { color: var(--muted); font-size: 13.5px; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.comm-card .foot { display: flex; align-items: center; justify-content: space-between; }

.comm-header { display: flex; align-items: center; gap: 16px; padding: 22px 26px; background: var(--surface); border-bottom: 1px solid var(--line); }
.comm-header .badge-img { width: 64px; height: 64px; border-radius: 18px; font-size: 26px; }
.comm-header .nm { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -.01em; }
.comm-header .meta { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.comm-header .acts { margin-left: auto; display: flex; gap: 8px; align-items: center; }

.tabs { display: flex; gap: 4px; padding: 0 26px; background: var(--surface); border-bottom: 1px solid var(--line); }
.tabs .tab { padding: 13px 16px; font-weight: 600; color: var(--muted); border-bottom: 2.5px solid transparent; margin-bottom: -1px; transition: color .14s, border-color .14s; }
.tabs .tab.active { color: var(--iris); border-bottom-color: var(--iris); }

.post-composer { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; max-width: 720px; }
.post-composer input.title { font-family: var(--display); font-weight: 700; font-size: 17px; border: none; width: 100%; margin-bottom: 6px; }
.post-composer input.title:focus { outline: none; }
.post-composer .crow { display: flex; gap: 8px; align-items: center; margin-top: 10px; }

.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 12px; max-width: 720px; cursor: pointer; transition: border-color .14s, box-shadow .14s; }
.post-card:hover { border-color: #ddd8ec; box-shadow: var(--shadow); }
.post-card .ph { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.post-card .ph .who { font-weight: 600; font-size: 14px; }
.post-card .ph .when { color: var(--faint); font-size: 12px; }
.post-card .pin { margin-left: auto; color: var(--amber); font-size: 13px; }
.post-card h3 { font-family: var(--display); font-weight: 700; font-size: 18px; margin-bottom: 4px; }
.post-card .pbody { color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.post-card img.pmedia { max-width: 100%; max-height: 320px; border-radius: 12px; margin-top: 10px; display: block; }
.post-card .pfoot { margin-top: 11px; color: var(--muted); font-size: 13px; display: flex; gap: 16px; align-items: center; }
.post-card .pfoot .act:hover { color: var(--iris); }

.comment { display: flex; gap: 11px; padding: 11px 0; border-top: 1px solid var(--line); }
.comment .cwho { font-weight: 600; font-size: 13.5px; }
.comment .cwhen { color: var(--faint); font-size: 11.5px; margin-left: 6px; }
.comment .cbody { margin-top: 2px; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment .cdel { margin-left: auto; color: var(--faint); font-size: 13px; cursor: pointer; opacity: 0; }
.comment:hover .cdel { opacity: 1; }
.comment .cdel:hover { color: var(--danger); }

.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.back-link:hover { color: var(--iris); }
.embed-chat { height: calc(100vh - 64px - 49px); }
.embed-chat > .conv { height: 100%; }

/* ============ misc ============ */
.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff;
  padding: 12px 20px; border-radius: 12px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow-lg); opacity: 0;
  pointer-events: none; transition: opacity .2s, transform .2s; z-index: 100; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: var(--danger); }

.modal-bg { position: fixed; inset: 0; background: rgba(24,21,39,.45); display: grid; place-items: center; z-index: 50; padding: 20px;
  animation: fade .15s ease; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--surface); border-radius: 20px; padding: 26px; width: 100%; max-width: 420px; box-shadow: var(--shadow-lg); }
.modal h3 { font-family: var(--display); font-weight: 700; font-size: 21px; margin-bottom: 16px; }
.modal .actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

.spinner { width: 22px; height: 22px; border: 2.5px solid var(--line); border-top-color: var(--iris); border-radius: 50%;
  animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.center { display: grid; place-items: center; height: 100%; }

@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; } .auth-art { display: none; }
  .shell { grid-template-columns: 64px 1fr; } .rail .logo span, .nav button span:not(.ic):not(.badge), .rail .me .nm { display: none; }
  .nav button { justify-content: center; } .chat-wrap { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
