/* InstantChat - interfaccia */

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 500; font-display: swap; src: url("fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-display: swap; src: url("fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); }

:root {
	--bg: #F4F5FA;
	--surface: #FFFFFF;
	--ink: #14162B;
	--ink-2: #3A3F58;
	--muted: #5B6078;
	--line: #E3E5EF;
	--line-2: #D6D9E6;
	--soft: #EEF0F7;
	--accent: #4F46E5;
	--accent-ink: #3730A3;
	--accent-soft: #E0E7FF;
	--warm: #FF7A45;
	--ok: #16A34A;
	--danger: #B91C1C;
	--radius: 16px;
	--display: "Space Grotesk", "Inter", system-ui, sans-serif;
	--emoji: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 15px;
	-webkit-font-smoothing: antialiased;
	-webkit-tap-highlight-color: transparent;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent-ink); }
a:hover { color: #312E81; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #A5B4FC; outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.app {
	height: 100%;
	height: 100dvh;
	max-width: 760px;
	margin: 0 auto;
	background: var(--bg);
	display: flex;
	flex-direction: column;
	position: relative;
	overflow: hidden;
}
@media (min-width: 800px) {
	body { background: #E7E9F2; }
	.app { box-shadow: 0 0 0 1px var(--line), 0 20px 60px rgba(20, 22, 43, 0.08); }
}

.view { flex: 1; display: flex; flex-direction: column; min-height: 0; }

/* ------------------------------------------------ elementi comuni */

.btn {
	height: 48px; border: 1px solid var(--line-2); border-radius: 14px;
	background: var(--surface); font-weight: 600; font-size: 14px;
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px;
}
.btn-primary { background: var(--accent); border-color: var(--accent); color: #FFFFFF; font-weight: 700; }
.btn-primary:disabled { opacity: 0.6; cursor: default; }
.btn-big { height: 54px; font-size: 17px; border-radius: 16px; }
.btn-danger { color: var(--danger); }
.icon-btn {
	width: 44px; height: 44px; flex: 0 0 auto; border: none; border-radius: 12px; background: transparent;
	display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn.soft { background: var(--soft); }
.icon-btn svg, .btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.field-label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.input {
	width: 100%; height: 48px; border: 1px solid var(--line-2); border-radius: 14px; padding: 0 14px;
	background: var(--surface); outline: none; font-size: 16px;
}
.input:focus { border-color: var(--accent); }
.error-text { color: var(--danger); font-size: 13px; min-height: 18px; margin: 0; }
.hint { font-size: 12px; line-height: 1.45; color: var(--muted); margin: 0; }
.avatar {
	border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
	font-family: var(--emoji); flex: 0 0 auto; line-height: 1;
}

/* ------------------------------------------------ ingresso */

.entry { overflow-y: auto; padding: 28px 24px 24px; gap: 22px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--accent); display: flex; align-items: center; justify-content: center; }
.brand-mark svg { width: 22px; height: 22px; stroke: #FFFFFF; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.3px; }
.entry h1 { margin: 0 0 6px; font-family: var(--display); font-size: 30px; line-height: 1.1; letter-spacing: -0.5px; }
.entry .lead { margin: 0; font-size: 15px; line-height: 1.45; color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 8px; }
.nick-box {
	display: flex; align-items: center; gap: 8px; background: var(--surface);
	border: 1.5px solid var(--accent); border-radius: 14px; padding: 4px 4px 4px 14px;
}
.nick-box input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-size: 17px; font-weight: 600; height: 44px; }
.code-chip { font-size: 15px; font-weight: 600; color: var(--muted); background: var(--soft); border-radius: 10px; padding: 8px 10px; font-variant-numeric: tabular-nums; }
.avatar-grid {
	display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px;
	max-height: 232px; overflow-y: auto; padding: 4px; margin: -4px; scrollbar-width: thin;
}
.avatar-grid button {
	height: 48px; border-radius: 14px; font-size: 24px; font-family: var(--emoji);
	background: #EAECF4; border: 2px solid transparent;
}
.avatar-grid button[aria-pressed="true"] { background: var(--surface); border-color: var(--accent); box-shadow: 0 4px 12px rgba(79, 70, 229, 0.18); }
.preview-card { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: var(--radius); padding: 14px 16px; border: 1px solid var(--line); }
.preview-card .avatar { width: 48px; height: 48px; background: var(--soft); font-size: 26px; }
.preview-card small { display: block; font-size: 12px; color: var(--muted); }
.preview-card strong { font-size: 17px; }
.preview-card strong span, .code { color: var(--muted); font-weight: 500; }
.entry-actions { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.entry-actions .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.entry-foot { text-align: center; }
.invite-banner { display: flex; gap: 10px; align-items: center; background: var(--accent-soft); color: var(--accent-ink); border-radius: 14px; padding: 12px 14px; font-size: 14px; font-weight: 600; }

/* ------------------------------------------------ chat */

.topbar { background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px 10px 10px; display: flex; flex-direction: column; gap: 10px; }
.topbar-row { display: flex; align-items: center; gap: 4px; }
.room-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; padding-left: 2px; }
.room-title strong { font-family: var(--display); font-weight: 700; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-title span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.people {
	display: flex; gap: 12px; overflow-x: auto; padding: 0 4px 2px; scrollbar-width: none;
	mask-image: linear-gradient(90deg, #000 85%, transparent);
	-webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
}
.people::-webkit-scrollbar { display: none; }
.person { border: none; background: transparent; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 0 0 auto; width: 56px; }
.person .avatar { position: relative; width: 46px; height: 46px; font-size: 23px; }
.person .avatar::after { content: ""; position: absolute; right: 1px; bottom: 1px; width: 11px; height: 11px; border-radius: 50%; background: var(--ok); border: 2px solid #FFFFFF; }
.person.me .avatar { box-shadow: 0 0 0 2px var(--accent); }
.person span { font-size: 11px; font-weight: 600; color: var(--ink-2); max-width: 56px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.messages { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 64px 10px 12px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; scrollbar-width: thin; }
.messages .spacer { flex: 1; }
.day { align-self: center; font-size: 11px; font-weight: 600; color: var(--muted); background: #E6E8F1; border-radius: 999px; padding: 4px 10px; }
.sys { align-self: center; font-size: 12px; color: var(--muted); text-align: center; max-width: 90%; }
.msg { display: flex; gap: 8px; align-items: flex-end; width: 100%; }
.msg .avatar { width: 32px; height: 32px; font-size: 17px; }
.msg-body { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; max-width: min(78%, 440px); }
.msg-name { font-size: 12px; font-weight: 700; }
.bubble {
	background: var(--surface); border: 1px solid var(--line); border-radius: 18px 18px 18px 6px;
	padding: 9px 13px; font-size: 15px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: break-word; word-break: normal; max-width: 100%;
}
.bubble a { color: inherit; text-decoration: underline; }
.bubble.big { background: transparent; border: none; padding: 0; font-size: 52px; line-height: 1.05; font-family: var(--emoji); }
.msg.mine { flex-direction: row-reverse; }
.msg.mine .msg-body { align-items: flex-end; }
.msg.mine .bubble:not(.big) { background: var(--accent); border-color: var(--accent); color: #FFFFFF; border-radius: 18px 18px 6px 18px; }
.msg.mentioned .bubble:not(.big) { border-color: var(--warm); box-shadow: 0 0 0 1px var(--warm); }
.mention { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; border-radius: 6px; padding: 0 4px; }
.msg.mine .mention { background: rgba(255, 255, 255, 0.22); color: #FFFFFF; }
.msg-meta { font-size: 10px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.msg-meta button { border: none; background: transparent; color: var(--muted); font-size: 11px; padding: 2px 0; text-decoration: underline; }
.typing { min-height: 22px; font-size: 12px; color: var(--muted); padding: 0 12px 6px 52px; display: flex; align-items: center; gap: 8px; }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: #8A8FA8; animation: blink 1.2s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: 0.15s; }
.dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.3; } 40% { opacity: 1; } }

.rail {
	position: absolute; right: 8px; bottom: 76px; width: 48px; max-height: 50%;
	display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; overflow-y: auto; scrollbar-width: none;
	mask-image: linear-gradient(180deg, transparent, #000 30%);
	-webkit-mask-image: linear-gradient(180deg, transparent, #000 30%);
	padding-top: 40px;
}
.rail::-webkit-scrollbar { display: none; }
.rail button {
	width: 44px; height: 44px; flex: 0 0 auto; border: none; border-radius: 14px; background: var(--surface);
	box-shadow: 0 2px 8px rgba(20, 22, 43, 0.08); font-size: 23px; font-family: var(--emoji);
	transition: transform 0.12s;
}
.rail button:active { transform: scale(0.9); }
.rail.open { max-height: 72%; }

.composer { background: var(--surface); border-top: 1px solid var(--line); padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: flex-end; gap: 8px; }
.composer textarea {
	flex: 1; min-width: 0; min-height: 44px; max-height: 140px; resize: none; border: 1px solid var(--line-2); border-radius: 22px;
	padding: 11px 16px; background: #F8F9FC; outline: none; font-size: 15px; line-height: 1.4;
}
.composer textarea:focus { border-color: var(--accent); background: #FFFFFF; }
.send-btn { width: 44px; height: 44px; border: none; border-radius: 50%; background: var(--accent); color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.send-btn svg { width: 20px; height: 20px; stroke: #FFFFFF; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.counter { font-size: 11px; color: var(--muted); text-align: right; padding: 0 14px 4px; background: var(--surface); }
.counter.warn { color: var(--danger); }

/* ------------------------------------------------ stanze */

.page-head { display: flex; align-items: center; gap: 6px; padding: 14px 12px; background: var(--surface); border-bottom: 1px solid var(--line); }
.page-head h1 { flex: 1; margin: 0; font-family: var(--display); font-size: 22px; letter-spacing: -0.3px; }
.scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.section-label { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: 0.6px; text-transform: uppercase; margin: 6px 2px 0; }
.room-item {
	display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line);
	border-radius: var(--radius); padding: 12px 14px; text-align: left; width: 100%;
}
.room-item.current { border: 1.5px solid var(--accent); }
.room-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--soft); display: flex; align-items: center; justify-content: center; font-size: 22px; font-family: var(--emoji); flex: 0 0 auto; }
.room-item .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.room-item strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-item small { font-size: 12px; color: var(--muted); }
.pill { font-size: 12px; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); border-radius: 999px; padding: 4px 9px; white-space: nowrap; }

/* ------------------------------------------------ fogli (dialog) */

dialog.sheet {
	border: none; padding: 0; margin: auto auto 0; width: 100%; max-width: 760px; max-height: 92dvh;
	background: var(--surface); color: var(--ink); border-radius: 26px 26px 0 0;
	box-shadow: 0 -10px 40px rgba(20, 22, 43, 0.2);
}
dialog.sheet::backdrop { background: rgba(20, 22, 43, 0.45); }
@media (min-width: 800px) {
	dialog.sheet { margin: auto; max-width: 460px; border-radius: 24px; }
}
.sheet-body { padding: 10px 22px calc(22px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; }
.grabber { width: 40px; height: 5px; border-radius: 3px; background: var(--line-2); align-self: center; }
.sheet h2 { margin: 0; font-family: var(--display); font-size: 20px; text-align: center; }
.sheet .sub { margin: -8px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
.sheet .actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 10px; }
.qr-box { align-self: center; padding: 14px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 8px 24px rgba(20, 22, 43, 0.08); }
.qr-box canvas { display: block; width: 220px; height: 220px; image-rendering: pixelated; }
.room-code { align-self: center; display: flex; align-items: center; gap: 8px; background: var(--bg); border-radius: 12px; padding: 8px 12px; }
.room-code span { font-size: 12px; color: var(--muted); }
.room-code strong { font-family: var(--display); font-size: 18px; letter-spacing: 1.5px; }
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; background: var(--soft); border-radius: 14px; padding: 4px; }
.seg button { height: 40px; border: none; border-radius: 10px; background: transparent; font-size: 13px; font-weight: 700; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--accent-ink); box-shadow: 0 1px 4px rgba(20, 22, 43, 0.12); }
.icon-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.icon-pick button { width: 44px; height: 44px; border-radius: 12px; border: 2px solid transparent; background: var(--soft); font-size: 21px; font-family: var(--emoji); }
.icon-pick button[aria-pressed="true"] { border-color: var(--accent); background: var(--surface); }
.menu-list { display: flex; flex-direction: column; }
.menu-list button { height: 52px; border: none; border-bottom: 1px solid var(--line); background: transparent; text-align: left; font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 12px; padding: 0 4px; }
.menu-list button:last-child { border-bottom: none; }
.menu-list svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------------------------ info */

.tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; background: var(--soft); border-radius: 14px; padding: 4px; margin: 0 12px 12px; }
.tabs button { height: 40px; border: none; border-radius: 10px; background: transparent; font-size: 13px; font-weight: 700; color: var(--muted); }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--accent-ink); box-shadow: 0 1px 4px rgba(20, 22, 43, 0.12); }
.info-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.card h3 { margin: 0; font-size: 15px; }
.card p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); white-space: pre-line; }
.credits { font-size: 12px; color: var(--muted); text-align: center; line-height: 1.5; padding: 8px 0 16px; white-space: pre-line; margin: 0; }

/* ------------------------------------------------ avvisi */

.toast {
	position: absolute; left: 50%; top: 14px; transform: translateX(-50%); z-index: 50; max-width: calc(100% - 32px);
	background: var(--ink); color: #FFFFFF; font-size: 14px; font-weight: 600; border-radius: 12px; padding: 10px 14px;
	box-shadow: 0 8px 24px rgba(20, 22, 43, 0.25);
}
.offline { background: #FEF3C7; color: #92400E; font-size: 12px; font-weight: 600; text-align: center; padding: 6px; }

/* ------------------------------------------------ 0.2: inviti, persone, emoji */

.seg-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.invites { display: flex; flex-direction: column; gap: 8px; padding: 0 12px; }
.invites:not(:empty) { padding-top: 10px; }
.invite-card {
	display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1.5px solid var(--warm);
	border-radius: var(--radius); padding: 10px 12px; box-shadow: 0 6px 18px rgba(255, 122, 69, 0.15);
}
.invite-card .room-icon { width: 40px; height: 40px; font-size: 20px; }
.invite-card .txt { flex: 1; min-width: 0; font-size: 13px; line-height: 1.35; }
.invite-card .txt strong { display: block; font-size: 14px; }
.invite-card .btn { height: 38px; padding: 0 12px; font-size: 13px; }
.person-head { display: flex; align-items: center; gap: 12px; justify-content: center; }
.person-head .avatar { width: 48px; height: 48px; font-size: 26px; }
.person-head h2 { text-align: left; }
.badge { font-size: 11px; font-weight: 700; color: #7C2D12; background: #FFEDD5; border-radius: 999px; padding: 2px 8px; margin-left: 6px; vertical-align: middle; }
.emoji-sheet { max-height: 80dvh; }
.emoji-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.emoji-tabs::-webkit-scrollbar { display: none; }
.emoji-tabs button {
	flex: 0 0 auto; height: 36px; border: none; border-radius: 999px; padding: 0 14px; background: var(--soft);
	font-size: 13px; font-weight: 700; color: var(--muted);
}
.emoji-tabs button[aria-selected="true"] { background: var(--accent); color: #FFFFFF; }
.emoji-grid {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 6px;
	max-height: 46dvh; overflow-y: auto; padding: 2px;
}
.emoji-grid button {
	height: 52px; border: none; border-radius: 14px; background: var(--bg); font-size: 28px; font-family: var(--emoji);
	display: flex; align-items: center; justify-content: center; padding: 0;
}
.emoji-grid button:active { transform: scale(0.92); }
.emoji-grid img { width: 40px; height: 40px; }
.anim-emoji { width: 96px; height: 96px; display: block; }
.bubble.big .anim-emoji { margin: -4px 0; }
.rail img { width: 30px; height: 30px; }
@media (prefers-reduced-motion: reduce) {
	.dots i { animation: none; }
}

/* ------------------------------------------------ 0.3: avvio, installazione, download */

.boot { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 32px; text-align: center; }
.boot .brand-mark { width: 56px; height: 56px; border-radius: 16px; }
.boot .brand-mark svg { width: 30px; height: 30px; }
.boot p { margin: 0; font-weight: 600; }
.boot .hint { font-weight: 400; max-width: 320px; }
.boot-error #boot-text { color: var(--danger); }
.install-btn { align-self: center; height: 40px; font-size: 13px; color: var(--accent-ink); border-color: var(--accent-soft); background: var(--accent-soft); }
.steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.45; }
.steps svg { width: 18px; height: 18px; vertical-align: -3px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dl-item { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; text-decoration: none; color: inherit; }
.dl-item:hover { border-color: var(--accent); color: inherit; }
.dl-item .room-icon svg { width: 22px; height: 22px; stroke: var(--accent-ink); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dl-item .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dl-item strong { font-size: 15px; }
.dl-item small { font-size: 12px; color: var(--muted); line-height: 1.4; }
.tabs button { padding: 0 2px; }

/* ------------------------------------------------ 0.4: dentro un iframe (WordPress) */

body.embed { background: var(--bg); }
body.embed .app { max-width: none; box-shadow: none; }
@media (min-width: 800px) {
	body.embed { background: var(--bg); }
}

/* ------------------------------------------------ 0.5: messaggi privati */

.inbox-btn { position: relative; }
.inbox-badge {
	position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box;
	border-radius: 9px; background: var(--warm); color: #14162B; font-size: 11px; font-weight: 700;
	display: flex; align-items: center; justify-content: center; border: 2px solid #FFFFFF;
}
.pill.unread { background: #FFEDD5; color: #7C2D12; }
.toast.clickable { cursor: pointer; display: flex; gap: 10px; align-items: center; }
.toast.clickable::after { content: "Apri"; font-size: 12px; font-weight: 700; background: rgba(255, 255, 255, 0.18); border-radius: 8px; padding: 4px 8px; }
.msg .who { cursor: pointer; }
.msg .who:hover { text-decoration: underline; }
.msg .avatar.who:hover { text-decoration: none; filter: brightness(0.96); }
.dm-head { display: flex; align-items: center; gap: 8px; padding: 8px 6px 0; font-size: 12px; color: var(--muted); }
