:root {
  --bg: #0b0b12;
  --bg2: #11111b;
  --panel: #161622;
  --panel2: #1c1c2b;
  --line: #262638;
  --line2: #33334a;
  --text: #ecebf5;
  --muted: #9a99b3;
  --dim: #6c6b85;
  --accent: #8b5cf6;
  --accent2: #ec4899;
  --ok: #22c55e;
  --warn: #f59e0b;
  --err: #ef4444;
  --grad: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  --radius: 14px;
  --shadow: 0 10px 40px -12px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  background-image: radial-gradient(1200px 600px at 100% -10%, rgba(139, 92, 246, 0.12), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(236, 72, 153, 0.08), transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  font: 14px/1.5 Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(139, 92, 246, 0.4); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 10px; border: 2px solid var(--bg); }

.boot { height: 100vh; display: grid; place-items: center; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line2); border-top-color: var(--accent); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- LOGIN ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login-card { width: min(440px, 100%); background: rgba(22, 22, 34, 0.8); backdrop-filter: blur(20px); border: 1px solid var(--line); border-radius: 22px; padding: 40px 32px; text-align: center; box-shadow: var(--shadow); animation: rise 0.4s ease; }
.logo { width: 76px; height: 76px; border-radius: 22px; margin: 0 auto 18px; display: grid; place-items: center; font-size: 40px; background: var(--grad); box-shadow: 0 12px 40px -8px rgba(139, 92, 246, 0.7); }
.login h1 { margin: 0 0 6px; font-size: 26px; letter-spacing: -0.02em; }
.login p { margin: 0 0 26px; color: var(--muted); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--dim); font-size: 12px; margin: 18px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.feature-pills { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 26px; }
.feature-pills span { font-size: 12px; padding: 4px 10px; border-radius: 99px; background: var(--panel2); border: 1px solid var(--line); color: var(--muted); }

/* ---------- BUTTONS ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line2); background: var(--panel2); cursor: pointer; font-weight: 600; transition: 0.15s; white-space: nowrap; }
.btn:hover { border-color: var(--accent); background: #232336; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.primary { background: var(--grad); border: 0; color: #fff; box-shadow: 0 6px 20px -6px rgba(139, 92, 246, 0.7); }
.btn.primary:hover { filter: brightness(1.1); }
.btn.discord { background: #5865f2; border: 0; color: #fff; width: 100%; padding: 13px; font-size: 15px; }
.btn.discord:hover { background: #4752c4; }
.btn.danger { color: #fca5a5; border-color: rgba(239, 68, 68, 0.4); }
.btn.danger:hover { background: rgba(239, 68, 68, 0.15); border-color: var(--err); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: var(--panel2); }
.btn.sm { padding: 6px 10px; font-size: 13px; border-radius: 8px; }
.btn.full { width: 100%; }

/* ---------- LAYOUT ---------- */
.shell { display: grid; grid-template-columns: 270px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: rgba(17, 17, 27, 0.85); backdrop-filter: blur(12px); border-right: 1px solid var(--line); padding: 16px 12px 24px; display: flex; flex-direction: column; gap: 4px; }
.guild-switch { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); margin-bottom: 10px; cursor: pointer; }
.guild-switch:hover { border-color: var(--line2); }
.guild-switch .name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.gicon { width: 38px; height: 38px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; font-weight: 800; flex-shrink: 0; overflow: hidden; }
.gicon img { width: 100%; height: 100%; object-fit: cover; }
.nav-group { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); font-weight: 700; padding: 14px 10px 6px; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: var(--muted); cursor: pointer; font-weight: 500; transition: 0.12s; }
.nav-item:hover { background: var(--panel); color: var(--text); }
.nav-item.active { background: linear-gradient(90deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.04)); color: #fff; box-shadow: inset 2px 0 0 var(--accent); }
.nav-item .ico { width: 22px; text-align: center; }
.nav-item .dot { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--line2); }
.nav-item .dot.on { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.side-foot { margin-top: auto; padding-top: 16px; display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--panel2); object-fit: cover; display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }
.main { min-width: 0; padding: 28px clamp(16px, 4vw, 44px) 120px; }
.topbar { display: none; }
.content { max-width: 1050px; margin: 0 auto; animation: rise 0.3s ease; }

/* ---------- HEADERS ---------- */
.page-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head .big-ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; background: var(--panel2); border: 1px solid var(--line); flex-shrink: 0; }
.page-head h1 { margin: 0; font-size: 26px; letter-spacing: -0.02em; }
.page-head p { margin: 4px 0 0; color: var(--muted); max-width: 640px; }
.page-head .grow { flex: 1; min-width: 200px; }

/* ---------- CARDS ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; }
.card h2 { margin: 0 0 4px; font-size: 16px; }
.card h3 { margin: 22px 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.card h3::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.card h3:first-child { margin-top: 0; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.grid { display: grid; gap: 14px; }
.grid.stats { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.grid.mods { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid.guilds { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; position: relative; overflow: hidden; }
.stat .label { color: var(--muted); font-size: 12px; font-weight: 600; display: flex; gap: 6px; align-items: center; }
.stat .value { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat::after { content: ''; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: var(--grad); opacity: 0.08; }
.hero { position: relative; overflow: hidden; border-radius: 20px; padding: 28px; margin-bottom: 18px; border: 1px solid var(--line2); background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(236, 72, 153, 0.12)), var(--panel); display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.hero .gicon { width: 72px; height: 72px; border-radius: 20px; font-size: 28px; }
.hero h1 { margin: 0; font-size: 28px; letter-spacing: -0.02em; }
.modcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; cursor: pointer; transition: 0.15s; display: flex; flex-direction: column; gap: 8px; }
.modcard:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.modcard .top { display: flex; align-items: center; gap: 10px; }
.modcard .top .ico { font-size: 22px; width: 40px; height: 40px; border-radius: 12px; background: var(--panel2); display: grid; place-items: center; }
.modcard .top b { flex: 1; }
.modcard p { margin: 0; color: var(--muted); font-size: 13px; }
.guildcard { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 22px; text-align: center; cursor: pointer; transition: 0.15s; }
.guildcard:hover { border-color: var(--accent); transform: translateY(-3px); }
.guildcard .gicon { width: 72px; height: 72px; border-radius: 22px; margin: 0 auto 12px; font-size: 26px; }

/* ---------- FORM ---------- */
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field > label { font-weight: 600; font-size: 13px; }
.field .help { color: var(--dim); font-size: 12px; }
.input, select.input, textarea.input { width: 100%; background: var(--bg2); border: 1px solid var(--line2); border-radius: 10px; padding: 10px 12px; outline: none; transition: 0.12s; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2); }
textarea.input { min-height: 96px; resize: vertical; line-height: 1.45; }
select.input { cursor: pointer; }
.color-row { display: flex; gap: 8px; }
.color-row input[type='color'] { width: 46px; height: 42px; border: 1px solid var(--line2); border-radius: 10px; background: var(--bg2); padding: 3px; cursor: pointer; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.toggle-row span { font-weight: 600; font-size: 13px; }
.switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; cursor: pointer; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; inset: 0; background: var(--line2); border-radius: 99px; transition: 0.2s; }
.switch .slider::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: 0.2s; }
.switch input:checked + .slider { background: var(--ok); }
.switch input:checked + .slider::before { transform: translateX(20px); }
.switch input:focus-visible + .slider { outline: 2px solid var(--accent); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; background: var(--bg2); border: 1px solid var(--line2); border-radius: 10px; padding: 7px; min-height: 42px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--panel2); border: 1px solid var(--line2); border-radius: 7px; padding: 3px 4px 3px 9px; font-size: 13px; max-width: 100%; }
.chip .cdot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.chip .x { cursor: pointer; border: 0; background: none; color: var(--dim); padding: 0 5px; font-size: 15px; line-height: 1; }
.chip .x:hover { color: var(--err); }
.chips select, .chips input { flex: 1; min-width: 130px; border: 0; background: transparent; outline: none; padding: 4px; }
.chips select option { background: var(--panel); }
.placeholders { display: flex; flex-wrap: wrap; gap: 4px; }
.placeholders code { font-size: 11px; padding: 2px 6px; background: var(--panel2); border: 1px solid var(--line); border-radius: 5px; color: #c4b5fd; cursor: pointer; }
.placeholders code:hover { border-color: var(--accent); }

.list { display: flex; flex-direction: column; gap: 12px; }
.list-item { border: 1px solid var(--line2); border-radius: 12px; background: rgba(11, 11, 18, 0.5); }
.list-item > .li-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); cursor: pointer; user-select: none; }
.list-item > .li-head b { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-item > .li-body { padding: 14px; }
.list-item.collapsed > .li-body { display: none; }
.list-item.collapsed > .li-head { border-bottom: 0; }
.problem { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line2); border-left: 4px solid var(--warn); border-radius: 10px; }
.problem.bad { border-left-color: var(--err); }
.bot-identity { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
.bot-avatar { width: 120px; height: 120px; border-radius: 50%; overflow: hidden; background: var(--panel2); border: 3px solid var(--line2); display: grid; place-items: center; font-size: 48px; flex-shrink: 0; }
.bot-avatar img { width: 100%; height: 100%; object-fit: cover; }
.li-thumb { width: 30px; height: 30px; flex-shrink: 0; }
.li-num { width: 24px; height: 24px; border-radius: 7px; background: var(--panel2); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--muted); flex-shrink: 0; }
.actions-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* ---------- SAVE BAR ---------- */
.savebar { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 140%); transition: 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2); background: #1f1f30; border: 1px solid var(--line2); border-radius: 14px; padding: 10px 10px 10px 18px; display: flex; align-items: center; gap: 14px; box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.8); z-index: 50; width: min(620px, calc(100% - 32px)); }
.savebar.show { transform: translate(-50%, 0); }
.savebar .grow { flex: 1; font-weight: 600; }

/* ---------- TABLE ---------- */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.06em; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.user-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.user-cell .avatar { width: 30px; height: 30px; }
.rank { font-weight: 800; width: 40px; }
.bar { height: 8px; background: var(--bg2); border-radius: 99px; overflow: hidden; min-width: 80px; }
.bar > i { display: block; height: 100%; background: var(--grad); border-radius: 99px; }
.table-wrap { overflow-x: auto; }

/* ---------- DISCORD PREVIEW ---------- */
.preview { background: #313338; border-radius: 12px; padding: 16px; display: flex; gap: 14px; color: #dbdee1; font-size: 15px; }
.preview .pav { width: 40px; height: 40px; border-radius: 50%; background: var(--grad); flex-shrink: 0; display: grid; place-items: center; font-size: 20px; overflow: hidden; }
.preview .pav img { width: 100%; height: 100%; }
.preview .pname { font-weight: 600; color: #fff; display: flex; align-items: center; gap: 6px; }
.preview .tag { background: #5865f2; color: #fff; font-size: 10px; padding: 1px 5px; border-radius: 4px; font-weight: 700; }
.preview .ptime { color: #949ba4; font-size: 12px; font-weight: 400; }
.preview .pbody { min-width: 0; flex: 1; }
.preview .pcontent { white-space: pre-wrap; word-break: break-word; margin-top: 2px; }
.preview .mention { background: rgba(88, 101, 242, 0.3); color: #c9cdfb; padding: 0 3px; border-radius: 3px; font-weight: 500; }
.pembed { margin-top: 6px; background: #2b2d31; border-left: 4px solid var(--accent); border-radius: 4px; padding: 12px 16px 14px; max-width: 520px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; }
.pembed .pe-main { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pembed .pauthor { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #fff; }
.pembed .pai { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.pembed .ptitle { font-weight: 700; color: #fff; font-size: 16px; word-break: break-word; }
.pembed .ptitle.link { color: #00a8fc; }
.pembed .pdesc { white-space: pre-wrap; font-size: 14px; word-break: break-word; }
.pembed .pfields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pembed .pfield { grid-column: 1 / -1; font-size: 14px; min-width: 0; }
.pembed .pfield.inline { grid-column: auto; }
.pembed .pfname { font-weight: 700; color: #fff; }
.pembed .pfval { white-space: pre-wrap; word-break: break-word; }
.pembed .pthumb { width: 80px; height: 80px; border-radius: 4px; object-fit: cover; grid-row: 1; grid-column: 2; }
.pembed .pimage { grid-column: 1 / -1; max-width: 100%; max-height: 300px; border-radius: 4px; object-fit: contain; justify-self: start; }
.pembed .ph { display: grid; place-items: center; background: #1e1f22; color: #949ba4; font-size: 12px; }
.pembed .pimage.ph { width: 100%; height: 160px; }
.pembed .pthumb.ph { font-size: 10px; text-align: center; }
.pembed .pfoot { grid-column: 1 / -1; font-size: 12px; color: #b5bac1; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pembed .pfi { width: 20px; height: 20px; border-radius: 50%; }
.preview code { background: #1e1f22; padding: 1px 4px; border-radius: 4px; font-size: 0.88em; }
.preview .quote { display: inline-block; border-left: 4px solid #4e5058; padding-left: 10px; }
.pbtns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pbtn { background: #4e5058; color: #fff; padding: 6px 14px; border-radius: 4px; font-size: 14px; font-weight: 500; }

/* ---------- EDITOR MESSAGGI ---------- */
.msg-editor { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; background: rgba(11, 11, 18, 0.45); border: 1px solid var(--line2); border-radius: 12px; padding: 16px; }
.msg-preview { position: sticky; top: 16px; align-self: start; }
.embed-box { border-left: 3px solid var(--accent); padding-left: 14px; }
.embed-box .fields { gap: 12px 14px; }
.img-input { display: flex; align-items: center; gap: 6px; }
.img-input .input { flex: 1; min-width: 0; }
.img-thumb { width: 42px; height: 42px; border-radius: 8px; background: var(--bg2); border: 1px solid var(--line2); display: grid; place-items: center; overflow: hidden; flex-shrink: 0; font-size: 16px; }
.img-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.gal-item { background: var(--bg2); border: 1px solid var(--line2); border-radius: 10px; padding: 0; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; }
.gal-item:hover { border-color: var(--accent); }
.gal-item.static { cursor: default; }
.gal-item img { width: 100%; height: 110px; object-fit: cover; display: block; }
.gal-foot { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px; }

/* ---------- MISC ---------- */
.badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--panel2); border: 1px solid var(--line2); color: var(--muted); }
.badge.on { background: rgba(34, 197, 94, 0.12); color: #86efac; border-color: rgba(34, 197, 94, 0.3); }
.notice { display: flex; gap: 10px; padding: 12px 14px; border-radius: 10px; background: rgba(139, 92, 246, 0.08); border: 1px solid rgba(139, 92, 246, 0.25); color: #ddd6fe; font-size: 13px; margin-bottom: 16px; }
.notice.warn { background: rgba(245, 158, 11, 0.08); border-color: rgba(245, 158, 11, 0.3); color: #fde68a; }
.log { background: #07070c; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font: 12.5px/1.7 ui-monospace, Consolas, monospace; max-height: 260px; overflow: auto; margin-top: 14px; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .e-ico { font-size: 40px; margin-bottom: 8px; }
#toasts { position: fixed; top: 18px; right: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 100; max-width: calc(100% - 36px); }
.toast { background: #1f1f30; border: 1px solid var(--line2); border-left: 4px solid var(--ok); border-radius: 10px; padding: 12px 16px; box-shadow: var(--shadow); animation: rise 0.25s ease; font-weight: 500; }
.toast.err { border-left-color: var(--err); }
.modal-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); display: grid; place-items: center; z-index: 90; padding: 16px; animation: rise 0.2s; }
.modal { background: var(--panel); border: 1px solid var(--line2); border-radius: 18px; padding: 24px; width: min(460px, 100%); box-shadow: var(--shadow); }
.modal h2 { margin: 0 0 8px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.sticky { position: sticky; top: 20px; }

/* ---------- MOBILE ---------- */
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; z-index: 80; transform: translateX(-100%); transition: transform 0.25s; }
  .side.open { transform: none; box-shadow: var(--shadow); }
  .topbar { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 40; background: rgba(11, 11, 18, 0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding: 10px 16px; }
  .main { padding: 20px 16px 120px; }
  .fields, .split, .msg-editor { grid-template-columns: 1fr; }
  .msg-preview { position: static; }
  .msg-editor { padding: 12px; }
  .sticky { position: static; }
  .scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); z-index: 70; }
  .hero { padding: 20px; }
}
