/* AvenueRP website — themes, layout, components and animations */
@font-face { font-family: 'Inter'; src: url('/fonts/inter.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Inter Tight'; src: url('/fonts/inter-tight.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('/fonts/geist-mono.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root, [data-theme="dark"] {
  --bg: #000; --card: #0a0a0a; --card-2: #111; --elev: #121212; --border: #1c1c1c; --border-2: #2a2a2a;
  --input: #0d0d0d; --input-border: #262626; --text: #fafafa; --text-2: #d4d4d8; --muted: #a1a1aa; --subtle: #71717a;
  --hover: rgba(255,255,255,.06); --active: rgba(255,255,255,.1); --primary: #ededed; --primary-text: #0a0a0a; --primary-hover: #ffffff;
  --danger: #b23b44; --danger-hover: #c7444e; --green: #22c55e; --blue: #3b82f6; --red: #ef4444; --amber: #f59e0b; --purple: #a855f7;
  --ring: rgba(255,255,255,.22); --nav: rgba(0,0,0,.72); --overlay: rgba(0,0,0,.65); --shadow: 0 16px 40px rgba(0,0,0,.55);
  --grad-a: #ffffff; --grad-b: #8f8f8f; --dc-bg: #313338; --dc-embed: #2b2d31; --dc-text: #dbdee1; --dc-muted: #949ba4; --dc-select: #1e1f22;
  --banner-a: #1d4ed8; --banner-b: #06b6d4; --dc-border: #1e1f22; color-scheme: dark;
}
[data-theme="dim"] {
  --bg: #17181b; --card: #1d1e22; --card-2: #232429; --elev: #25262b; --border: #2c2d33; --border-2: #3a3b42;
  --input: #1a1b1f; --input-border: #34353c; --hover: rgba(255,255,255,.06); --nav: rgba(23,24,27,.78); --grad-b: #9a9aa2;
}
[data-theme="midnight"] {
  --bg: #070b16; --card: #0c1222; --card-2: #111a2e; --elev: #121c33; --border: #18233d; --border-2: #253456;
  --input: #0a1020; --input-border: #22304f; --text: #eef2ff; --text-2: #cdd5ee; --muted: #93a0c2; --subtle: #6b789c;
  --hover: rgba(130,160,255,.08); --active: rgba(130,160,255,.14); --primary: #e3e9ff; --nav: rgba(7,11,22,.78); --grad-b: #8796c4;
}
[data-theme="light"] {
  --bg: #f7f7f4; --card: #ffffff; --card-2: #f3f3f0; --elev: #ffffff; --border: #e6e6e1; --border-2: #d6d6d0;
  --input: #ffffff; --input-border: #dcdcd6; --text: #121212; --text-2: #2b2b2b; --muted: #66666a; --subtle: #8d8d92;
  --hover: rgba(0,0,0,.05); --active: rgba(0,0,0,.08); --primary: #111111; --primary-text: #ffffff; --primary-hover: #000;
  --ring: rgba(0,0,0,.18); --nav: rgba(247,247,244,.82); --overlay: rgba(20,20,20,.35); --shadow: 0 16px 40px rgba(0,0,0,.12);
  --grad-a: #111; --grad-b: #7a7a7a; --dc-bg: #ffffff; --dc-embed: #f2f3f5; --dc-text: #313338; --dc-muted: #5c5e66; --dc-select: #ebedef; --dc-border: #e3e5e8; color-scheme: light;
}
[data-theme="sage"] {
  --bg: #eef1ea; --card: #f8faf5; --card-2: #e9eee3; --elev: #fbfcf9; --border: #d8dfcf; --border-2: #c6d0bb;
  --input: #fbfcf9; --input-border: #ccd5c2; --text: #1d2a1f; --text-2: #2c3a2e; --muted: #5e6b5b; --subtle: #85917f;
  --hover: rgba(40,70,40,.06); --active: rgba(40,70,40,.1); --primary: #2f4a35; --primary-text: #f4f8f1; --primary-hover: #243b29;
  --ring: rgba(47,74,53,.25); --nav: rgba(238,241,234,.84); --overlay: rgba(20,30,20,.35); --shadow: 0 16px 40px rgba(30,50,30,.12);
  --grad-a: #1d2a1f; --grad-b: #6f7f6b; --dc-bg: #ffffff; --dc-embed: #f2f3f5; --dc-text: #313338; --dc-muted: #5c5e66; --dc-select: #ebedef; color-scheme: light;
}
@media (prefers-color-scheme: light) {
  [data-theme="system"] {
    --bg: #f7f7f4; --card: #ffffff; --card-2: #f3f3f0; --elev: #ffffff; --border: #e6e6e1; --border-2: #d6d6d0;
    --input: #ffffff; --input-border: #dcdcd6; --text: #121212; --text-2: #2b2b2b; --muted: #66666a; --subtle: #8d8d92;
    --hover: rgba(0,0,0,.05); --active: rgba(0,0,0,.08); --primary: #111111; --primary-text: #ffffff; --primary-hover: #000;
    --ring: rgba(0,0,0,.18); --nav: rgba(247,247,244,.82); --overlay: rgba(20,20,20,.35); --shadow: 0 16px 40px rgba(0,0,0,.12);
    --grad-a: #111; --grad-b: #7a7a7a; --dc-bg: #ffffff; --dc-embed: #f2f3f5; --dc-text: #313338; --dc-muted: #5c5e66; --dc-select: #ebedef; color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 14px/1.5 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; min-height: 100vh; transition: background-color .25s ease, color .25s ease; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img { display: block; max-width: 100%; }
::selection { background: rgba(120,140,255,.35); }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.mono, code, kbd { font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.muted { color: var(--muted); } .subtle { color: var(--subtle); }
.hidden { display: none !important; }
.noscript { padding: 40px; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 10px; border: 2px solid var(--bg); } ::-webkit-scrollbar-track { background: transparent; }

/* ── Animations ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes popIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes shimmer { 0% { background-position: -460px 0; } 100% { background-position: 460px 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.page-enter { animation: fadeUp .38s cubic-bezier(.2,.8,.2,1) both; }
.stagger > * { animation: fadeUp .7s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 90ms); }
.reveal { opacity: 0; transform: translateY(26px); filter: blur(6px); transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1), filter .9s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after, ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; } .reveal { opacity: 1; transform: none; filter: none; } }

/* ── Buttons & inputs ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 34px; padding: 0 13px; border-radius: 8px; border: 1px solid var(--border-2); background: transparent; color: var(--text); font-weight: 600; font-size: 14px; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s, transform .1s, opacity .15s; }
.btn:hover { background: var(--hover); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--primary); color: var(--primary-text); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: var(--danger-hover); border-color: var(--danger-hover); }
.btn-ghost { border-color: transparent; }
.btn-sm { height: 28px; padding: 0 10px; font-size: 13px; border-radius: 7px; }
.btn-lg { height: 42px; padding: 0 18px; font-size: 15px; }
.btn-block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; color: var(--muted); transition: background-color .15s, color .15s; }
.icon-btn:hover { background: var(--hover); color: var(--text); }
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn.danger:hover { color: var(--red); }
.input, .select, .textarea { width: 100%; background: var(--input); border: 1px solid var(--input-border); border-radius: 8px; color: var(--text); padding: 0 13px; height: 38px; font-size: 14px; transition: border-color .15s, box-shadow .15s, background-color .15s; }
.textarea { padding: 10px 13px; height: auto; min-height: 84px; resize: vertical; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: var(--subtle); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--border-2); box-shadow: 0 0 0 3px var(--hover); }
.input[readonly] { color: var(--muted); }
.select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23a1a1aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > label, .label { font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.help { font-size: 12.5px; color: var(--muted); }
.row { display: flex; align-items: center; gap: 10px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; cursor: pointer; user-select: none; }
.check input { width: 15px; height: 15px; accent-color: var(--primary); }
.color-field { display: flex; gap: 10px; align-items: center; }
.swatch { width: 38px; height: 30px; border-radius: 6px; border: 1px solid var(--input-border); padding: 0; background: none; cursor: pointer; flex: none; }
.swatch::-webkit-color-swatch-wrapper { padding: 3px; } .swatch::-webkit-color-swatch { border: 0; border-radius: 4px; }
.toggle { position: relative; width: 38px; height: 22px; border-radius: 999px; background: var(--border-2); flex: none; transition: background-color .2s; }
.toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fafafa; box-shadow: 0 1px 2px rgba(0,0,0,.35); transition: transform .22s cubic-bezier(.3,.7,.3,1), background-color .2s; }
.toggle[aria-checked="true"] { background: var(--primary); }
.toggle[aria-checked="true"]::after { transform: translateX(16px); background: var(--primary-text); }
.toggle::after { transition: transform .32s cubic-bezier(.34,1.56,.64,1), background-color .2s, width .2s; } .toggle:active::after { width: 20px; } .toggle[aria-checked="true"]:active::after { transform: translateX(12px); }
.toggle:disabled { opacity: .45; cursor: not-allowed; }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--card-2); color: var(--muted); border: 1px solid var(--border); }
.badge.green { color: var(--green); background: rgba(34,197,94,.1); border-color: rgba(34,197,94,.18); }
.badge.blue { color: var(--blue); background: rgba(59,130,246,.1); border-color: rgba(59,130,246,.2); }
.badge.red { color: var(--red); background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.2); }
.badge.amber { color: var(--amber); background: rgba(245,158,11,.1); border-color: rgba(245,158,11,.2); }
.badge.purple { color: var(--purple); background: rgba(168,85,247,.1); border-color: rgba(168,85,247,.2); }
.badge.gold { color: #eab308; background: rgba(234,179,8,.12); border-color: rgba(234,179,8,.22); }
.kbd-pill { display: inline-flex; align-items: center; height: 26px; padding: 0 9px; border-radius: 6px; background: var(--card-2); border: 1px solid var(--border); font-size: 13px; color: var(--text-2); font-family: 'Geist Mono', ui-monospace, monospace; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border-2); border-top-color: var(--text); animation: spin .7s linear infinite; }
.loading { display: grid; place-items: center; gap: 12px; padding: 80px 20px; color: var(--muted); font-size: 13.5px; }
.skel { border-radius: 6px; background: linear-gradient(90deg, var(--card-2) 0%, var(--border-2) 40%, var(--card-2) 80%); background-size: 920px 100%; animation: shimmer 1.4s linear infinite; }
.avatar { border-radius: 50%; object-fit: cover; background: var(--card-2); flex: none; }

/* ── Cards ── */
.card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 20px 22px; }
.card-title { font-size: 15px; font-weight: 600; color: var(--text-2); margin: 0 0 14px; }
.section-head { border-left: 2px solid var(--border-2); padding-left: 14px; margin-bottom: 18px; }
.section-head h3 { margin: 0; font-size: 15px; font-weight: 600; }
.section-head p { margin: 3px 0 0; font-size: 13px; color: var(--muted); }
.empty { display: grid; place-items: center; text-align: center; padding: 56px 20px; gap: 4px; }
.empty h3 { margin: 0; font-size: 16px; font-weight: 700; }
.empty p { margin: 0; color: var(--muted); font-size: 13.5px; }
.empty .empty-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--card-2); border: 1px solid var(--border); color: var(--muted); margin-bottom: 10px; }
.divider { height: 1px; background: var(--border); margin: 28px 0; border: 0; }

/* ── Menus, modals, toasts ── */
.menu { position: fixed; z-index: 60; min-width: 220px; background: var(--card); border: 1px solid var(--border-2); border-radius: 10px; padding: 5px; box-shadow: var(--shadow); animation: pop .15s cubic-bezier(.2,.8,.2,1) both; transform-origin: top right; }
.menu-head { padding: 9px 10px 10px; border-bottom: 1px solid var(--border); margin: -1px -5px 5px; }
.menu-head strong { display: block; font-size: 14px; } .menu-head span { font-size: 12.5px; color: var(--muted); }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 6px; font-size: 14px; font-weight: 500; text-align: left; color: var(--text); transition: background-color .12s, color .12s; }
.menu-item:hover, .menu-item:focus-visible { background: var(--hover); outline: none; }
.menu-item svg { width: 16px; height: 16px; color: var(--muted); }
.menu-item.danger:hover { color: #ef4444; } .menu-item.danger:hover svg { color: #ef4444; }
.menu-sep { height: 1px; background: var(--border); margin: 5px -5px; }
.menu-item .mi-text strong { display: block; font-weight: 600; } .menu-item .mi-text span { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.menu-item.soon { opacity: .6; }
.overlay { position: fixed; inset: 0; z-index: 80; background: var(--overlay); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 20px; animation: fadeIn .18s ease both; }
.modal { width: min(440px, 100%); background: var(--card); border: 1px solid var(--border-2); border-radius: 14px; padding: 20px; box-shadow: var(--shadow); animation: popIn .2s cubic-bezier(.2,.8,.2,1) both; }
.modal h3 { margin: 0 0 4px; font-size: 16px; } .modal > p { margin: 0 0 16px; color: var(--muted); font-size: 13.5px; }
.modal-body { display: flex; flex-direction: column; gap: 14px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
#toasts { position: fixed; left: 18px; bottom: 18px; z-index: 100; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 10px; max-width: 380px; padding: 12px 14px; background: var(--card); border: 1px solid var(--border-2); border-radius: 10px; box-shadow: var(--shadow); font-size: 13.5px; animation: toastIn .25s cubic-bezier(.2,.8,.2,1) both; transition: opacity .25s, transform .25s; }
.toast.out { opacity: 0; transform: translateY(8px); }
.toast svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.toast.success svg { color: var(--green); } .toast.error svg { color: var(--red); } .toast.warn svg { color: var(--amber); }

/* ── Public site ── */
.pnav { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 50; width: min(1070px, calc(100vw - 28px)); height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px 0 28px; border: 1px solid var(--border); border-radius: 20px; background: var(--nav); backdrop-filter: blur(14px) saturate(140%); transition: width .45s cubic-bezier(.2,.8,.2,1), height .3s, top .3s, background-color .3s; }
.pnav.compact { width: min(684px, calc(100vw - 28px)); height: 52px; top: 18px; padding: 0 16px 0 22px; }
.pnav .logo-link { display: inline-flex; align-items: center; color: var(--text); }
.pnav-links { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 2px; padding: 4px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); }
.pnav-links a, .pnav-links button { padding: 6px 15px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); transition: background-color .15s, color .15s; }
.pnav-links a:hover, .pnav-links button:hover { background: var(--hover); color: var(--text); }
.avatar-btn { border-radius: 50%; padding: 2px; transition: box-shadow .15s, transform .15s; }
.avatar-btn:hover { box-shadow: 0 0 0 2px var(--border-2); }
.avatar-btn img { width: 34px; height: 34px; }
.login-btn { height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border-2); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; transition: background-color .15s; }
.login-btn:hover { background: var(--hover); }
.hero { min-height: 92vh; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 140px 20px 40px; }
.hero h1 { margin: 0; font-family: 'Inter Tight', 'Inter', sans-serif; font-weight: 800; font-size: clamp(42px, 5.6vw, 78px); line-height: 1.04; letter-spacing: -0.028em; }
.grad { background: linear-gradient(180deg, var(--grad-a) 0%, var(--grad-b) 110%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { margin: 30px auto 0; max-width: 680px; font-size: clamp(16px, 1.35vw, 18.5px); line-height: 1.75; color: var(--muted); }
.hero-actions { display: flex; gap: 18px; justify-content: center; margin-top: 46px; flex-wrap: wrap; }
.pill-btn { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 34px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--bg); font-weight: 600; font-size: 17px; transition: background-color .2s, transform .15s, border-color .2s; }
.pill-btn:hover { background: var(--card-2); border-color: var(--border-2); }
.pill-btn:active { transform: scale(.98); }
.hero-second { margin-top: 180px; }
.hero-second h2, .sec-title { margin: 0; font-family: 'Inter Tight', 'Inter', sans-serif; font-weight: 800; font-size: clamp(34px, 4.1vw, 62px); line-height: 1.06; letter-spacing: -0.03em; }
.hero-second p, .sec-lead { margin: 26px auto 0; max-width: 720px; font-size: clamp(15.5px, 1.25vw, 18.5px); line-height: 1.7; color: var(--muted); }
.section { width: min(1120px, calc(100vw - 40px)); margin: 0 auto; padding: 110px 0 40px; }
.section-center { text-align: center; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; text-align: left; }
.feature { padding: 26px; border-radius: 16px; border: 1px solid var(--border); background: var(--card); transition: border-color .25s, transform .25s, background-color .25s; }
.feature:hover { border-color: var(--border-2); transform: translateY(-3px); background: var(--card-2); }
.feature .f-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--border-2); background: var(--bg); margin-bottom: 18px; }
.feature .f-icon svg { width: 19px; height: 19px; }
.feature h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.solution { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; margin-top: 50px; text-align: left; }
.solution ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.solution li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); font-size: 15.5px; }
.solution li svg { width: 18px; height: 18px; margin-top: 3px; color: var(--green); flex: none; }
.mock { border: 1px solid var(--border-2); border-radius: 16px; background: var(--card); padding: 16px; box-shadow: var(--shadow); animation: float 7s ease-in-out infinite; }
.mock-bar { display: flex; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-2); }
.mock-tabs { display: flex; gap: 6px; margin-bottom: 14px; } .mock-tabs span { font-size: 12px; padding: 5px 10px; border-radius: 6px; color: var(--muted); } .mock-tabs span.on { background: var(--card-2); color: var(--text); font-weight: 600; }
.mock-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; } .mock-head img, .mock-head .mock-av { width: 44px; height: 44px; border-radius: 50%; background: var(--card-2); border: 1px solid var(--border-2); }
.mock-head strong { display: block; font-size: 15px; } .mock-head span { font-size: 12px; color: var(--muted); }
.mock-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; } .mock-grid > div { border: 1px solid var(--border); border-radius: 10px; padding: 12px; min-height: 92px; }
.mock-line { height: 8px; border-radius: 4px; background: var(--card-2); margin: 8px 0; } .mock-line.w60 { width: 60%; } .mock-line.w80 { width: 80%; } .mock-line.w40 { width: 40%; }
.mock-short { height: 22px; border-radius: 6px; background: var(--card-2); margin-bottom: 7px; }
.faq { max-width: 760px; margin: 50px auto 0; text-align: left; display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--border); border-radius: 12px; background: var(--card); overflow: hidden; }
.faq-q { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 18px 20px; font-size: 15.5px; font-weight: 600; text-align: left; }
.faq-q svg { width: 18px; height: 18px; color: var(--muted); transition: transform .25s; }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s cubic-bezier(.2,.8,.2,1); }
.open > .acc-body { grid-template-rows: 1fr; }
.acc-body > div { overflow: hidden; min-height: 0; }
.faq-a { padding: 0 20px 18px; color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.pricing-card { max-width: 560px; margin: 46px auto 0; padding: 34px; border: 1px solid var(--border-2); border-radius: 18px; background: var(--card); text-align: center; }
.pricing-card h3 { margin: 10px 0 8px; font-size: 22px; letter-spacing: -0.02em; } .pricing-card p { margin: 0 0 22px; color: var(--muted); line-height: 1.65; }
.footer { width: min(1034px, calc(100vw - 40px)); margin: 120px auto 0; padding-top: 30px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { max-width: 420px; } .footer-brand p { color: var(--muted); font-size: 15px; line-height: 1.65; margin: 18px 0 0; }
.footer-cols { display: flex; gap: 44px; }
.footer-cols h4 { margin: 0 0 14px; font-size: 15px; font-weight: 600; }
.footer-cols a { display: block; color: var(--muted); font-size: 15px; margin-bottom: 12px; transition: color .15s; }
.footer-cols a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; border-top: 1px solid var(--border); margin-top: 48px; padding: 22px 0 30px; font-size: 13.5px; color: var(--muted); }
.footer-bottom .ver { color: #ea7a2a; font-family: 'Geist Mono', ui-monospace, monospace; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-family: 'Inter Tight', 'Inter', sans-serif; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }

/* Docs & legal */
.doc-wrap { width: min(892px, calc(100vw - 32px)); margin: 0 auto; padding: 118px 0 20px; }
.doc-wrap h1 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.doc-updated { color: var(--muted); font-size: 13px; margin: 6px 0 24px; }
.doc-box { border: 1px solid var(--border); background: var(--card); border-radius: 10px; padding: 16px 18px; margin-bottom: 16px; color: var(--text-2); font-size: 14px; line-height: 1.7; }
.doc-box strong { color: var(--text); }
.doc-box code, .doc-wrap p code { padding: 1px 6px; border-radius: 5px; background: var(--card-2); border: 1px solid var(--border); font-size: 12.5px; }
.doc-search { position: relative; margin: 26px 0 30px; } .doc-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); }
.doc-search input { height: 46px; padding-left: 46px; font-size: 15px; border-radius: 10px; }
.doc-cat { margin: 40px 0 14px; } .doc-cat-head { display: flex; align-items: center; gap: 12px; } .doc-cat-head .ci { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; border: 1px solid var(--border-2); background: var(--card); }
.doc-cat-head .ci svg { width: 16px; height: 16px; } .doc-cat-head h2 { margin: 0; font-size: 20px; font-weight: 700; } .doc-cat-head .count { color: var(--muted); font-size: 13px; }
.doc-cat > p { margin: 6px 0 0 42px; color: var(--muted); font-size: 13.5px; }
.tpl-card { border: 1px solid var(--border); border-radius: 10px; background: var(--card); margin-top: 14px; overflow: hidden; }
.tpl-card-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); background: var(--card-2); flex-wrap: wrap; }
.tpl-card-head .tpl-id { font-family: 'Geist Mono', ui-monospace, monospace; font-weight: 700; font-size: 15px; }
.tpl-card-head .tpl-desc { color: var(--muted); font-size: 13.5px; flex: 1; min-width: 160px; }
.tpl-card-head .tags { display: flex; gap: 6px; margin-left: auto; }
.var-row { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 10px 18px; border-top: 1px solid var(--border); font-size: 13.5px; }
.var-row:first-of-type { border-top: 0; }
.var-row code { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 13px; color: var(--text); font-weight: 600; } .var-row span { color: var(--text-2); }
.doc-help { text-align: center; margin: 60px 0 0; color: var(--muted); } .doc-help a { color: var(--text); font-weight: 600; }
.legal h2 { font-size: 19px; margin: 34px 0 10px; letter-spacing: -0.01em; } .legal p, .legal li { color: var(--text-2); font-size: 15px; line-height: 1.75; } .legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 14px; } .legal th, .legal td { text-align: left; border: 1px solid var(--border); padding: 10px 12px; vertical-align: top; color: var(--text-2); } .legal th { background: var(--card-2); color: var(--text); }

/* ── Dashboard chrome ── */
.topbar { position: sticky; top: 0; z-index: 40; height: 62px; display: flex; align-items: center; justify-content: space-between; padding: 0 26px 0 22px; border-bottom: 1px solid var(--border); background: var(--bg); }
.topbar-left { display: flex; align-items: center; gap: 22px; min-width: 0; }
.topbar .logo-link { color: var(--text); display: inline-flex; padding: 4px; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 15px; min-width: 0; }
.crumbs a { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 500; transition: color .15s; white-space: nowrap; }
.crumbs a:hover { color: var(--text); } .crumbs img { width: 20px; height: 20px; }
.crumbs svg { width: 15px; height: 15px; color: var(--muted); flex: none; }
.crumbs .current { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.topbar-right .docs-link { font-size: 15px; font-weight: 500; color: var(--muted); padding: 6px 10px; border-radius: 7px; transition: color .15s, background-color .15s; }
.topbar-right .docs-link:hover { color: var(--text); background: var(--hover); }
.bell { position: relative; } .bell .dot { position: absolute; top: 5px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px var(--bg); }
.tabs { position: sticky; top: 62px; z-index: 35; display: flex; align-items: center; gap: 4px; padding: 0 20px; height: 44px; border-bottom: 1px solid var(--border); background: var(--bg); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 17px; border-radius: 6px; font-size: 15px; font-weight: 600; color: var(--text); white-space: nowrap; transition: background-color .15s, color .15s; }
.tab:hover { background: var(--hover); }
.tab.active { background: var(--card-2); }
.tab svg { width: 14px; height: 14px; color: var(--muted); transition: transform .2s; }
.tab[aria-expanded="true"] svg { transform: rotate(180deg); }
.tabs.underline { gap: 10px; } .tabs.underline .tab { height: 44px; border-radius: 0; padding: 0 17px; color: var(--muted); font-weight: 500; position: relative; }
.tabs.underline .tab:hover { background: transparent; color: var(--text); }
.tabs.underline .tab.active { background: transparent; color: var(--text); font-weight: 600; }
.tabs.underline .tab.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--text); border-radius: 2px; animation: fadeIn .2s both; }
.page { padding: 56px 44px 80px; }
.page-narrow { width: min(908px, calc(100vw - 32px)); margin: 0 auto; padding: 50px 0 80px; }
.page-title { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; } .page-sub { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

/* Bots list */
.greet h1 { margin: 0; font-size: 30px; font-weight: 700; letter-spacing: -0.015em; } .greet h1 .phrase { color: var(--text-2); }
.greet p { margin: 8px 0 0; font-size: 20px; color: var(--muted); } .greet p strong { color: var(--text-2); }
.bot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 600px)); gap: 16px; margin-top: 36px; }
.bot-card { position: relative; display: flex; align-items: center; gap: 16px; padding: 18px 18px; border-radius: 10px; border: 1px solid var(--border); background: var(--card); transition: background-color .18s, border-color .18s, transform .18s; }
.bot-card:hover { background: var(--card-2); border-color: var(--border-2); }
.bot-card img { width: 50px; height: 50px; }
.bot-card strong { display: block; font-size: 16px; font-weight: 600; } .bot-card span { font-size: 14px; color: var(--muted); }
.bot-card .pin { position: absolute; top: 12px; right: 12px; color: var(--subtle); } .bot-card .pin.on { color: var(--text); }
.no-bots { margin-top: 64px; text-align: center; } .no-bots strong { display: block; font-size: 20px; font-weight: 800; } .no-bots small { display: block; margin-top: 6px; font-size: 13.5px; color: var(--muted); }

/* Overview */
.ov-head { display: flex; align-items: center; gap: 22px; padding-bottom: 34px; border-bottom: 1px solid var(--border); }
.ov-head img { width: 86px; height: 86px; }
.ov-head h1 { margin: 0; font-size: 27px; font-weight: 700; letter-spacing: -0.015em; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ov-head .ov-id { font-family: 'Geist Mono', ui-monospace, monospace; color: var(--muted); font-size: 13px; margin-top: 4px; } .ov-head .ov-exp { color: var(--muted); font-size: 14.5px; margin-top: 2px; }
.add-bot { height: 28px; padding: 0 11px; border-radius: 7px; background: var(--primary); color: var(--primary-text); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; transition: background-color .15s; }
.add-bot:hover { background: var(--primary-hover); }
.ov-grid { display: grid; grid-template-columns: 1fr 600px; gap: 18px; margin-top: 34px; }
.ov-desc { font-size: 14.5px; line-height: 1.7; color: var(--text); }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.card-head h2 { margin: 0; font-size: 15px; font-weight: 600; color: var(--text-2); }
.shortcut { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px 10px 10px; margin-bottom: 9px; border-radius: 10px; background: var(--card-2); border: 1px solid var(--border); transition: background-color .15s, border-color .15s, transform .15s; }
.shortcut:hover { background: var(--elev); border-color: var(--border-2); }
.shortcut .sc-icon { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; border: 1px solid var(--border-2); background: var(--bg); color: var(--text-2); flex: none; }
.shortcut .sc-text { flex: 1; min-width: 0; } .shortcut .sc-text strong { display: block; font-size: 14.5px; font-weight: 600; } .shortcut .sc-text small { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shortcut > svg { width: 15px; height: 15px; color: var(--muted); opacity: 0; transform: translateX(-4px); transition: opacity .15s, transform .15s; flex: none; }
.shortcut:hover > svg { opacity: 1; transform: none; }
.details { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 4px; }
.details .dl { font-size: 13px; color: var(--muted); margin-bottom: 6px; } .details .dv { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 14.5px; font-weight: 600; word-break: break-all; }
.md-toolbar { display: flex; gap: 2px; padding: 4px; border: 1px solid var(--input-border); border-bottom: 0; border-radius: 8px 8px 0 0; background: var(--card-2); }
.md-toolbar + .textarea { border-radius: 0 0 8px 8px; }
.preview-label { font-size: 12px; color: var(--muted); margin: 14px 0 6px; }

/* Audit log */
.audit-list { margin-top: 34px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); overflow: hidden; }
.audit-row { border-top: 1px solid var(--border); } .audit-row:first-child { border-top: 0; }
.audit-main { display: grid; grid-template-columns: auto 1fr auto 20px; align-items: center; gap: 16px; padding: 15px 20px; width: 100%; text-align: left; transition: background-color .15s; }
button.audit-main:hover { background: var(--hover); }
.audit-who strong { font-weight: 700; font-size: 15px; } .audit-who .h { font-family: 'Geist Mono', ui-monospace, monospace; color: var(--muted); font-size: 13px; margin-left: 6px; }
.audit-who .s { display: block; font-family: 'Geist Mono', ui-monospace, monospace; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.audit-time { color: var(--muted); font-size: 13.5px; white-space: nowrap; }
.audit-main > svg { width: 16px; height: 16px; color: var(--muted); transition: transform .2s; } .audit-row.open .audit-main > svg { transform: rotate(180deg); }
.changes { padding: 0 20px 16px 20px; display: grid; gap: 6px; }
.change { display: grid; grid-template-columns: 200px 1fr; gap: 12px; font-size: 13px; padding: 8px 12px; border-radius: 8px; background: var(--card-2); border: 1px solid var(--border); }
.change code { color: var(--text-2); } .change .from { color: var(--red); text-decoration: line-through; } .change .to { color: var(--green); }

/* Settings */
.settings-wrap { width: min(1182px, calc(100vw - 40px)); margin: 0 auto; padding: 50px 0 90px; }
.settings-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 40px; flex-wrap: wrap; }
.settings-top .actions { display: flex; gap: 10px; }
.settings-grid { display: grid; grid-template-columns: 270px 1fr; gap: 36px; align-items: start; }
.side-nav { position: sticky; top: 130px; display: flex; flex-direction: column; gap: 10px; }
.side-top { display: flex; align-items: center; height: 44px; padding: 0 13px; border-radius: 10px; border: 1px solid var(--border); background: var(--card); font-size: 15px; font-weight: 500; color: var(--text-2); transition: background-color .15s; text-align: left; }
.side-top:hover { background: var(--card-2); } .side-top.active { color: var(--text); font-weight: 600; background: var(--card-2); }
.side-group { border: 1px solid var(--border); border-radius: 10px; background: var(--card); overflow: hidden; }
.side-group-head { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 38px; padding: 0 13px; font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.side-group-head .cnt { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); } .side-group-head svg { width: 14px; height: 14px; transition: transform .25s; }
.side-group.open .side-group-head svg { transform: rotate(180deg); }
.side-group.open .side-group-head { border-bottom: 1px solid var(--border); }
.side-items { padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.side-item { display: flex; align-items: center; justify-content: space-between; height: 38px; padding: 0 11px; border-radius: 6px; font-size: 15px; color: var(--muted); text-align: left; transition: background-color .15s, color .15s; }
.side-item:hover { background: var(--hover); color: var(--text); } .side-item.active { background: var(--active); color: var(--text); font-weight: 500; }
.side-item .soon-dot { font-size: 10.5px; color: var(--subtle); font-weight: 500; }
.panel { border: 1px solid var(--border); background: var(--card); border-radius: 12px; padding: 26px 26px 30px; min-height: 300px; }
.panel-sec + .panel-sec { margin-top: 34px; }
.form-stack { display: flex; flex-direction: column; gap: 20px; }
.person { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--border); border-radius: 10px; background: var(--card-2); }
.person img { width: 44px; height: 44px; } .person .pn strong { font-size: 15px; display: inline-flex; align-items: center; gap: 8px; } .person .pn small { display: block; color: var(--muted); font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12px; margin-top: 2px; }
.person .grow { flex: 1; }
.empty-row { padding: 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--card-2); text-align: center; color: var(--muted); font-size: 13.5px; }
.refresh-box { border: 1px solid var(--border); border-radius: 10px; padding: 18px; background: var(--card-2); }
.refresh-box h4 { margin: 0 0 6px; font-size: 15px; } .refresh-box p { margin: 0 0 14px; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.banner-preview { width: 100%; aspect-ratio: 5 / 1; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); background: var(--card-2); }
.cmd-layout { display: grid; grid-template-columns: 260px 1fr; gap: 20px; }
.cmd-list { border: 1px solid var(--border); border-radius: 10px; overflow: auto; max-height: 560px; background: var(--card); }
.cmd-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; height: 40px; padding: 0 12px; border-top: 1px solid var(--border); font-family: 'Geist Mono', ui-monospace, monospace; font-size: 13.5px; text-align: left; transition: background-color .12s; }
.cmd-row:first-child { border-top: 0; } .cmd-row:hover { background: var(--hover); } .cmd-row.active { background: var(--active); }
.cmd-row.off .cmd-name { text-decoration: line-through; color: var(--muted); } .cmd-row small { color: var(--subtle); font-size: 11px; margin-left: 4px; }
.cmd-detail { border: 1px solid var(--border); border-radius: 10px; padding: 20px; background: var(--card); align-self: start; }
.cmd-detail h4 { margin: 0; font-family: 'Geist Mono', ui-monospace, monospace; font-size: 16px; } .cmd-detail .st { color: var(--muted); font-size: 13px; margin-top: 2px; }
.sub-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--border); background: var(--card-2); margin-top: 8px; font-family: 'Geist Mono', ui-monospace, monospace; font-size: 13.5px; }
.soon-panel { display: grid; place-items: center; text-align: center; padding: 60px 20px; gap: 6px; } .soon-panel strong { font-size: 17px; } .soon-panel span { color: var(--muted); font-size: 13.5px; max-width: 420px; }

/* Templates editor */
.tpl-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr) minmax(360px, 44%); height: calc(100vh - 107px); }
.tpl-side { border-right: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; }
.tpl-side-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 10px 14px 16px; border-bottom: 1px solid var(--border); }
.tpl-side-head strong { font-size: 13.5px; font-weight: 600; color: var(--text-2); } .tpl-side-head .row { gap: 0; }
.tpl-side-list { flex: 1; overflow: auto; padding: 10px 8px; }
.tpl-group { font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--subtle); padding: 12px 10px 6px; font-weight: 600; }
.tpl-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 8px 12px; border-radius: 6px; font-size: 14.5px; color: var(--text-2); text-align: left; transition: background-color .12s, color .12s; }
.tpl-item:hover { background: var(--hover); color: var(--text); } .tpl-item.active { background: var(--active); color: var(--text); }
.tpl-item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); flex: none; }
.tpl-side-foot { padding: 12px 14px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); } .tpl-side-foot a { text-decoration: underline; color: var(--muted); }
.tpl-main { overflow: auto; min-height: 0; border-right: 1px solid var(--border); }
.tpl-bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 16px 40px; background: var(--bg); border-bottom: 1px solid var(--border); }
.tpl-bar .btn-save { flex: 1; max-width: 490px; height: 42px; border-radius: 6px; font-size: 15px; font-weight: 500; }
.tpl-bar .btn-danger { height: 42px; border-radius: 6px; padding: 0 22px; font-size: 15px; }
.tpl-body { padding: 26px 50px 80px; display: flex; flex-direction: column; gap: 22px; max-width: 880px; }
.tpl-sec { border: 1px solid var(--border); border-radius: 12px; padding: 24px 26px; background: var(--card); }
.tpl-sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.tpl-sec-head h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; } .tpl-sec-head .help { margin-top: 2px; }
.sub-card { border: 1px solid var(--border-2); border-radius: 10px; background: var(--bg); margin-top: 12px; }
.sub-card.open { border-color: var(--text-2); box-shadow: 0 0 0 1px var(--border-2); }
.sub-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px 10px 16px; }
.sub-head .t { flex: 1; display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14.5px; text-align: left; }
.sub-head .t svg { width: 14px; height: 14px; color: var(--muted); transition: transform .2s; } .sub-card.open .sub-head .t svg { transform: rotate(90deg); }
.sub-content { padding: 6px 18px 20px; display: flex; flex-direction: column; gap: 16px; }
.vars { display: flex; flex-wrap: wrap; gap: 6px; } .var-chip { height: 26px; padding: 0 9px; border-radius: 6px; border: 1px solid var(--border-2); background: var(--card-2); font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12px; color: var(--text-2); transition: background-color .12s, border-color .12s; }
.var-chip:hover { background: var(--hover); border-color: var(--text-2); }
.tpl-preview { overflow: auto; min-height: 0; padding: 0 30px 40px; }
.tpl-preview-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0 16px; background: var(--bg); font-weight: 600; font-size: 15px; border-bottom: 1px solid var(--border); margin-bottom: 40px; }
.emoji-picker { width: 340px; padding: 10px; } .emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; max-height: 240px; overflow: auto; margin-top: 8px; }
.emoji-grid button { aspect-ratio: 1; border-radius: 6px; display: grid; place-items: center; transition: background-color .12s; } .emoji-grid button:hover { background: var(--hover); } .emoji-grid img { width: 26px; height: 26px; object-fit: contain; }
.tpl-empty { height: 100%; display: grid; place-items: center; text-align: center; } .tpl-empty strong { display: block; font-size: 15px; } .tpl-empty span { color: var(--muted); font-size: 13px; }

/* Discord message preview */
.dc { background: var(--dc-bg); color: var(--dc-text); border-radius: 8px; padding: 18px 18px 18px 16px; display: grid; grid-template-columns: 42px 1fr; gap: 14px; font-family: 'gg sans', 'Inter', 'Helvetica Neue', Arial, sans-serif; font-size: 15px; line-height: 1.375; }
.dc .dc-av { width: 42px; height: 42px; border-radius: 50%; } .dc-name { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; } .dc-name strong { color: var(--text); font-weight: 600; font-size: 15.5px; }
[data-theme="light"] .dc-name strong, [data-theme="sage"] .dc-name strong { color: #060607; }
.dc-app { background: #5865f2; color: #fff; font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 4px; letter-spacing: .02em; } .dc-time { color: var(--dc-muted); font-size: 12px; }
.dc-content { white-space: pre-wrap; word-wrap: break-word; }
.dc-embed { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin-top: 8px; max-width: 520px; padding: 10px 16px 16px 12px; background: var(--dc-embed); border-left: 4px solid #e5c6a7; border-radius: 4px; }
.dc-embed .e-main { min-width: 0; display: flex; flex-direction: column; gap: 6px; } .dc-embed .e-author { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; } .dc-embed .e-author img { width: 24px; height: 24px; border-radius: 50%; }
.dc-embed .e-title { font-weight: 700; font-size: 16px; } .dc-embed .e-desc { font-size: 14px; white-space: pre-wrap; word-wrap: break-word; }
.dc-embed .e-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 12px; } .dc-embed .e-field { grid-column: 1 / -1; font-size: 14px; } .dc-embed .e-field.inline { grid-column: auto; }
.dc-embed .e-field b { display: block; font-weight: 600; margin-bottom: 2px; } .dc-embed .e-thumb { width: 80px; height: 80px; border-radius: 4px; object-fit: cover; grid-row: 1 / 3; grid-column: 2; }
.dc-embed .e-image { grid-column: 1 / -1; border-radius: 4px; max-height: 300px; object-fit: cover; margin-top: 8px; } .dc-embed .e-footer { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--dc-muted); margin-top: 4px; } .dc-embed .e-footer img { width: 20px; height: 20px; border-radius: 50%; }
.dc-buttons { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.dc-btn { height: 32px; padding: 0 16px; border-radius: 8px; font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; color: #fff; background: #4e5058; } .dc-btn.primary { background: #5865f2; } .dc-btn.success { background: #248046; } .dc-btn.danger { background: #da373c; } .dc-btn svg { width: 14px; height: 14px; }
.dc-btn img { width: 18px; height: 18px; }
.dc-select { display: flex; align-items: center; justify-content: space-between; height: 40px; max-width: 520px; padding: 0 12px; margin-top: 8px; background: var(--dc-select); border-radius: 8px; color: var(--dc-muted); font-size: 14px; } .dc-select svg { width: 18px; height: 18px; }
.md h1 { font-size: 22px; margin: 6px 0 2px; line-height: 1.3; } .md h2 { font-size: 19px; margin: 6px 0 2px; line-height: 1.3; } .md h3 { font-size: 16px; margin: 6px 0 2px; line-height: 1.3; }
.md .sub { font-size: 12px; color: var(--dc-muted); display: block; }
.md blockquote { margin: 2px 0; padding-left: 12px; border-left: 4px solid #4e5058; } .md ul, .md ol { margin: 2px 0; padding-left: 22px; }
.md code { background: rgba(0,0,0,.25); padding: 1px 4px; border-radius: 4px; font-size: 85%; } .md pre { background: rgba(0,0,0,.25); padding: 8px; border-radius: 4px; overflow: auto; } .md pre code { background: none; padding: 0; }
.md a { color: #00a8fc; } .md a:hover { text-decoration: underline; }
.md .mention { background: rgba(88,101,242,.3); color: #c9cdfb; padding: 0 3px; border-radius: 3px; font-weight: 500; }
[data-theme="light"] .md .mention, [data-theme="sage"] .md .mention { color: #505cdc; background: rgba(88,101,242,.15); }
.md .var { background: rgba(250,166,26,.16); color: #f0b232; padding: 0 3px; border-radius: 3px; font-family: 'Geist Mono', ui-monospace, monospace; font-size: 90%; }
.md .spoiler { background: #1e1f22; color: transparent; border-radius: 3px; cursor: pointer; } .md .spoiler.shown { color: inherit; background: rgba(255,255,255,.1); }
.md img.emoji { display: inline-block; width: 1.375em; height: 1.375em; vertical-align: -0.3em; object-fit: contain; }
.ov-desc.md .mention { color: inherit; }
.ov-desc.md u, .dc u { text-underline-offset: 2px; }

/* Profile */
.profile-banner { height: 300px; background: linear-gradient(100deg, var(--banner-a), var(--banner-b)); background-size: cover; background-position: center; }
.profile-wrap { width: min(1120px, calc(100vw - 32px)); margin: -56px auto 0; padding-bottom: 80px; position: relative; }
.profile-av { width: 112px; height: 112px; border-radius: 50%; border: 6px solid var(--bg); background: var(--card-2); }
.profile-wrap h1 { margin: 18px 0 6px; font-size: 27px; font-weight: 700; letter-spacing: -0.015em; }
.joined { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 15px; } .joined svg { width: 16px; height: 16px; }
.theme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
.theme-card { text-align: left; padding: 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--card); transition: border-color .15s, background-color .15s, transform .15s; }
.theme-card:hover { border-color: var(--border-2); transform: translateY(-1px); } .theme-card.active { background: var(--card-2); border-color: var(--border-2); }
.theme-swatch { height: 68px; border-radius: 6px; border: 1px solid rgba(128,128,128,.25); display: flex; align-items: center; gap: 12px; padding: 0 12px; overflow: hidden; position: relative; }
.theme-swatch .blk { width: 60px; height: 46px; border-radius: 5px; } .theme-swatch .lines { flex: 1; } .theme-swatch .lines i { display: block; height: 4px; border-radius: 3px; margin: 5px 0; } .theme-swatch .lines i:first-child { width: 80%; } .theme-swatch .lines i:last-child { width: 55%; opacity: .6; }
.theme-name { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-weight: 600; font-size: 15px; } .theme-name svg { width: 16px; height: 16px; } .theme-name .ok { margin-left: auto; }
.theme-card small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.sw-dark { background: #000; } .sw-dark .blk { background: #262626; } .sw-dark .lines i { background: #e5e5e5; }
.sw-dim { background: #2a2b2f; } .sw-dim .blk { background: #3a3b40; } .sw-dim .lines i { background: #d4d4d8; }
.sw-midnight { background: #141c33; } .sw-midnight .blk { background: #222c48; } .sw-midnight .lines i { background: #cdd5ee; }
.sw-light { background: #f4f4ef; } .sw-light .blk { background: #fcfcf9; border: 1px solid #e3e3dd; } .sw-light .lines i { background: #2b2b2b; }
.sw-sage { background: #e7eddf; } .sw-sage .blk { background: #f2f6ee; border: 1px solid #d4dccb; } .sw-sage .lines i { background: #3e5a43; }
.sw-system { background: linear-gradient(90deg, #f4f4ef 50%, #1f2023 50%); } .sw-system .blk { background: #262626; } .sw-system .lines i { background: #9a9a9a; }
.login-gate { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 120px 20px 40px; }
.login-gate h1 { margin: 0 0 8px; font-size: 26px; letter-spacing: -0.02em; } .login-gate p { margin: 0 0 22px; color: var(--muted); }
.discord-btn { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 22px; border-radius: 10px; background: #5865f2; color: #fff; font-weight: 600; font-size: 15px; transition: background-color .15s, transform .1s; } .discord-btn:hover { background: #4752c4; } .discord-btn svg { width: 20px; height: 20px; }

/* ── Live updates, status chips and polish ── */
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); } 70% { box-shadow: 0 0 0 7px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
@keyframes flash { 0% { background-color: rgba(59,130,246,.16); } 100% { background-color: transparent; } }
@keyframes slideUp { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }
.live-chip { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; flex: none; transition: color .2s, border-color .2s; }
.live-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--subtle); transition: background-color .2s; }
.live-chip[data-status="live"] { color: var(--text-2); } .live-chip[data-status="live"] i { background: var(--green); animation: pulse 2.2s ease-out infinite; }
.live-chip[data-status="connecting"] i, .live-chip[data-status="offline"] i { background: var(--amber); }
.av-wrap { position: relative; display: inline-block; flex: none; line-height: 0; }
.presence { position: absolute; right: -1px; bottom: -1px; width: 14px; height: 14px; border-radius: 50%; background: var(--subtle); border: 3px solid var(--card); }
.presence.on { background: var(--green); } .presence.lg { width: 22px; height: 22px; border-width: 4px; border-color: var(--bg); right: 2px; bottom: 2px; }
.bot-card .presence { border-color: var(--card); } .bot-card:hover .presence { border-color: var(--card-2); }
.ov-head .grow { flex: 1; min-width: 0; }
.ov-head .ov-id { display: inline-flex; align-items: center; gap: 4px; }
.icon-btn.sm { width: 24px; height: 24px; } .icon-btn.sm svg { width: 13px; height: 13px; }
.ov-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--text-2); font-size: 13px; font-weight: 500; }
.chip svg { width: 13px; height: 13px; color: var(--muted); } .chip > i { width: 7px; height: 7px; border-radius: 50%; background: var(--subtle); }
.chip.ok > i { background: var(--green); animation: pulse 2.2s ease-out infinite; }
.flash { animation: flash 1.6s ease-out both; border-radius: 6px; }
.audit-row.new { animation: flash 2s ease-out both; }
.md .ts { background: rgba(78,80,88,.28); padding: 0 3px; border-radius: 3px; }
[data-theme="light"] .md .ts, [data-theme="sage"] .md .ts { background: rgba(78,80,88,.1); }
.tpl-item .ti-text { min-width: 0; display: flex; flex-direction: column; } .tpl-item .ti-text > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tpl-item small { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 11px; color: var(--subtle); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.unsaved { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--amber); white-space: nowrap; animation: fadeIn .2s both; }
.unsaved i { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.conflict-bar { display: flex; align-items: center; gap: 10px; margin: 16px 50px 0; padding: 10px 14px; border-radius: 10px; border: 1px solid rgba(245,158,11,.3); background: rgba(245,158,11,.08); color: var(--text-2); font-size: 13.5px; animation: fadeUp .25s both; }
.conflict-bar svg { color: var(--amber); flex: none; } .conflict-bar span { flex: 1; } .conflict-bar .btn { flex: none; }
.pv-state { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.pv-state::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--subtle); }
.pv-state[data-state="ok"]::before { background: var(--green); } .pv-state[data-state="busy"]::before { background: var(--blue); animation: pulse 1s ease-out infinite; } .pv-state[data-state="error"]::before { background: var(--amber); }
.pv-note { margin-top: 14px; }
.dc { transition: opacity .2s; } .dc.pending { opacity: .72; }
.dc .dc-msg { min-width: 0; }
.dc-embed { border-left-color: var(--dc-border); }
.dc-btn .emoji { width: 18px; height: 18px; object-fit: contain; }
.save-bar { position: fixed; left: 50%; bottom: 22px; z-index: 70; display: flex; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s, transform .34s cubic-bezier(.2,.8,.2,1), visibility 0s .34s; align-items: center; justify-content: space-between; gap: 24px; width: min(620px, calc(100vw - 32px)); padding: 10px 10px 10px 18px; border-radius: 14px; border: 1px solid var(--border-2); background: var(--card); box-shadow: var(--shadow); font-size: 14px; font-weight: 600; transform: translate(-50%, 22px) scale(.97); }
.save-bar.show { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); transition: opacity .2s, transform .42s cubic-bezier(.34,1.56,.64,1), visibility 0s; }
.save-bar > span { display: inline-flex; align-items: center; gap: 9px; } .save-bar > span i { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
@media (max-width: 860px) { .live-chip span { display: none; } .live-chip { padding: 0 9px; } .conflict-bar { margin: 12px 18px 0; } }

/* ── Motion: page transitions, loading bar, micro-interactions ── */
:root { --ease-out: cubic-bezier(.2,.8,.2,1); --ease-spring: cubic-bezier(.34,1.56,.64,1); }
@keyframes blurUp { from { opacity: 0; transform: translateY(16px); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes vtOut { to { opacity: 0; transform: translateY(-6px) scale(.995); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(8px); } }
@keyframes navProgress { 0% { transform: scaleX(0); } 30% { transform: scaleX(.45); } 100% { transform: scaleX(.9); } }
@keyframes sheen { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes glowDrift { 0%, 100% { transform: translate(-50%, 0) scale(1); opacity: .5; } 50% { transform: translate(-47%, 22px) scale(1.1); opacity: .85; } }
@keyframes toastBar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes modalOut { to { opacity: 0; transform: translateY(6px) scale(.96); } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes tabIn { from { opacity: .4; transform: scale(.92); } to { opacity: 1; transform: none; } }
@keyframes underlineIn { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }
@keyframes rowIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }

/* Page changes cross-fade while the header and tab bar stay put. */
::view-transition-old(root) { animation: vtOut .16s ease-in both; }
::view-transition-new(root) { animation: vtIn .34s var(--ease-out) both; }
.topbar { view-transition-name: topbar; } .tabs { view-transition-name: tabs; }
::view-transition-group(topbar), ::view-transition-group(tabs) { animation-duration: .34s; animation-timing-function: var(--ease-out); }
::view-transition-old(topbar), ::view-transition-old(tabs) { animation: fadeOut .18s ease both; }
::view-transition-new(topbar), ::view-transition-new(tabs) { animation: fadeIn .26s ease both; }

/* Thin loading bar at the top while a page loads. */
#nav-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; pointer-events: none; transform-origin: 0 50%; transform: scaleX(0); opacity: 0; background: linear-gradient(90deg, #3b82f6, #8b5cf6 55%, #22c55e); box-shadow: 0 0 10px rgba(99,102,241,.6); }
#nav-progress.active { opacity: 1; animation: navProgress 2.6s var(--ease-out) forwards; }
#nav-progress.done { opacity: 0; transform: scaleX(1); animation: none; transition: transform .22s var(--ease-out), opacity .4s .18s; }

/* Buttons, cards and tabs respond to every touch. */
.btn, .icon-btn, .pill-btn, .tab, .menu-item, .tpl-item, .chip { transition: background-color .15s, border-color .15s, color .15s, opacity .15s, transform .16s var(--ease-out), box-shadow .22s; }
.btn:active:not(:disabled), .icon-btn:active, .pill-btn:active, .menu-item:active, .tpl-item:active { transform: scale(.965); }
.btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 20px -10px rgba(0,0,0,.65); }
.btn-primary:active:not(:disabled) { transform: translateY(0) scale(.97); box-shadow: none; }
.pill-btn { transition: background-color .15s, border-color .15s, color .15s, translate .2s var(--ease-out), transform .16s var(--ease-out); } .pill-btn:hover { translate: 0 -2px; }
/* Hover lifts use `translate`, so they still work after an entrance animation has finished. */
.bot-card, .shortcut { transition: background-color .2s, border-color .2s, translate .3s var(--ease-out), box-shadow .3s; }
.feature.reveal { transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), filter .9s var(--ease-out), translate .3s var(--ease-out), background-color .2s, border-color .2s, box-shadow .3s; }
.bot-card:hover, .feature:hover { translate: 0 -3px; box-shadow: 0 18px 36px -22px rgba(0,0,0,.75); }
.shortcut:hover { translate: 3px 0; }
.shortcut:hover .sc-icon { border-color: var(--text-2); color: var(--text); }
.shortcut .sc-icon { transition: border-color .2s, color .2s, transform .3s var(--ease-spring); } .shortcut:hover .sc-icon { transform: rotate(-6deg) scale(1.06); }
.tabs .tab.active { animation: tabIn .32s var(--ease-out) both; }
.tabs.underline .tab.active::after { animation: underlineIn .38s var(--ease-out) both; }
.input, .textarea, .select { transition: border-color .15s, box-shadow .2s, background-color .15s; }
.input:focus, .textarea:focus, .select:focus { box-shadow: 0 0 0 3px rgba(59,130,246,.18); }
.avatar { transition: transform .35s var(--ease-spring); } .bot-card:hover .avatar, .ov-head .av-wrap:hover .avatar { transform: scale(1.05) rotate(-2deg); }
.audit-main svg, .acc-head svg { transition: transform .3s var(--ease-out); }

/* A soft light follows the cursor across cards. */
.spot { position: relative; isolation: isolate; }
.spot::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.075), transparent 46%); }
.spot:hover::before { opacity: 1; }
[data-theme="light"] .spot::before, [data-theme="sage"] .spot::before { background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(0,0,0,.045), transparent 46%); }

/* Lists come in one item after another. */
.stagger-auto > *, .menu > * { animation: fadeUp .46s var(--ease-out) both; animation-delay: calc(min(var(--i, 0), 14) * 32ms); }
.menu > * { animation-duration: .24s; animation-delay: calc(min(var(--i, 0), 10) * 16ms); }
.audit-list.stagger-auto > * { animation-name: rowIn; }
:is(.stagger-auto, .menu) > :nth-child(2) { --i: 1; } :is(.stagger-auto, .menu) > :nth-child(3) { --i: 2; } :is(.stagger-auto, .menu) > :nth-child(4) { --i: 3; } :is(.stagger-auto, .menu) > :nth-child(5) { --i: 4; }
:is(.stagger-auto, .menu) > :nth-child(6) { --i: 5; } :is(.stagger-auto, .menu) > :nth-child(7) { --i: 6; } :is(.stagger-auto, .menu) > :nth-child(8) { --i: 7; } :is(.stagger-auto, .menu) > :nth-child(9) { --i: 8; }
:is(.stagger-auto, .menu) > :nth-child(10) { --i: 9; } :is(.stagger-auto, .menu) > :nth-child(11) { --i: 10; } :is(.stagger-auto, .menu) > :nth-child(12) { --i: 11; } :is(.stagger-auto, .menu) > :nth-child(n+13) { --i: 12; }

/* Landing hero: soft blur-in and a slowly drifting glow. */
.hero { position: relative; isolation: isolate; }
.hero::before { content: ''; position: absolute; z-index: -1; top: 70px; left: 50%; width: min(980px, 92vw); height: 460px; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, rgba(99,102,241,.2), rgba(59,130,246,.08) 55%, transparent); filter: blur(30px); animation: glowDrift 14s ease-in-out infinite; }
[data-theme="light"] .hero::before, [data-theme="sage"] .hero::before { background: radial-gradient(closest-side, rgba(99,102,241,.12), transparent); }
.hero .stagger > * { animation-name: blurUp; animation-duration: 1s; }
.grad { background-size: 100% 220%; animation: gradShift 6s ease-in-out infinite alternate; }
@keyframes gradShift { from { background-position: 0 0; } to { background-position: 0 100%; } }

/* Dialogs, toasts and menus open with a little spring and close smoothly. */
.modal { animation: popIn .32s var(--ease-spring) both; }
.overlay.closing { animation: fadeOut .17s ease both; } .overlay.closing .modal { animation: modalOut .17s ease both; }
.toast { position: relative; overflow: hidden; animation: toastIn .42s var(--ease-spring) both; transition: opacity .26s, transform .26s var(--ease-out); }
.toast.out { transform: translateX(16px) scale(.98); }
.toast-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; transform-origin: 0 50%; background: var(--green); opacity: .55; animation: toastBar var(--dur, 3.8s) linear both; }
.toast.error .toast-bar { background: var(--red); } .toast.warn .toast-bar { background: var(--amber); }
.menu { transform-origin: top right; animation: pop .2s var(--ease-out) both; }

/* Loading placeholders shimmer instead of a spinner. */
.skel { display: block; border-radius: 8px; background: linear-gradient(90deg, var(--card) 0%, var(--card-2) 45%, var(--card) 90%); background-size: 200% 100%; animation: sheen 1.5s linear infinite; }
.skel-row { height: 56px; border-radius: 0; border-bottom: 1px solid var(--border); }
.skel-list { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.dc.dc-in { animation: fadeUp .32s var(--ease-out) both; }
.e-image { animation: fadeIn .4s ease both; }

/* Switching theme fades the colors instead of snapping. */
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after { transition: background-color .38s ease, color .38s ease, border-color .38s ease, fill .38s ease, box-shadow .38s ease !important; }

@media (max-width: 1100px) {
  .ov-grid { grid-template-columns: 1fr; } .tpl-layout { grid-template-columns: 220px 1fr; } .tpl-preview { display: none; }
  .features { grid-template-columns: 1fr 1fr; } .solution { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .pnav-links { display: none; } .settings-grid { grid-template-columns: 1fr; } .side-nav { position: static; }
  .cmd-layout { grid-template-columns: 1fr; } .details { grid-template-columns: 1fr 1fr; } .grid-2 { grid-template-columns: 1fr; }
  .page { padding: 34px 18px 60px; } .tpl-layout { grid-template-columns: 1fr; height: auto; } .tpl-side { border-right: 0; border-bottom: 1px solid var(--border); max-height: 260px; }
  .tpl-bar, .tpl-body { padding-left: 18px; padding-right: 18px; } .theme-grid { grid-template-columns: 1fr 1fr; } .features { grid-template-columns: 1fr; }
  .crumbs a span { display: none; } .var-row { grid-template-columns: 1fr; gap: 4px; } .change { grid-template-columns: 1fr; }
  .audit-main { grid-template-columns: 1fr auto; } .audit-main .badge { grid-column: 1 / -1; justify-self: start; } .audit-main > svg { display: none; }
}

/* ═══════════════ Profile cosmetics (AvenueRP Shop) ═══════════════ */
/* Decorated avatars: the art sits in a box 40% larger than the picture, centered on it. */
.av-deco { position: relative; display: inline-block; flex: none; border-radius: 50%; vertical-align: middle; line-height: 0; }
.av-deco > img.avatar { width: 100%; height: 100%; display: block; }
.av-deco .deco { position: absolute; inset: -20%; pointer-events: none; z-index: 1; }
.av-deco .deco > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.av-deco.still .deco, .av-deco.still .deco * { animation-play-state: paused !important; }
.deco svg * { transform-box: view-box; transform-origin: 0 0; }
.deco .spin-slow, .deco .spin-rev, .deco .orbit, .deco .orbit-fast { transform-origin: 50% 50%; }
.deco .spin-slow { animation: czSpin 18s linear infinite; } .deco .spin-rev { animation: czSpin 14s linear infinite reverse; }
.deco .orbit { animation: czSpin 26s linear infinite; } .deco .orbit-fast { animation: czSpin 7s linear infinite; }
.deco .bob { animation: czBob 2.4s ease-in-out infinite; }
.deco .wl, .fx .wl { animation: czFlapL .32s ease-in-out infinite alternate; } .deco .wr, .fx .wr { animation: czFlapR .32s ease-in-out infinite alternate; }
.deco .ear-l, .deco .ear-r { transform-box: fill-box; transform-origin: 50% 100%; }
.deco .ear-l { animation: czEarL 5s ease-in-out infinite; } .deco .ear-r { animation: czEarR 5s ease-in-out 1.3s infinite; }
.deco .spark > * { transform-box: fill-box; transform-origin: center; animation: czTwinkle 2.6s ease-in-out infinite; }
.deco .spark > :nth-child(2) { animation-delay: -.9s; } .deco .spark > :nth-child(3) { animation-delay: -1.7s; } .deco .spark > :nth-child(4) { animation-delay: -.4s; }
.deco .spark > :nth-child(5) { animation-delay: -2.1s; } .deco .spark > :nth-child(6) { animation-delay: -1.2s; } .deco .spark > :nth-child(7) { animation-delay: -.6s; }
.deco .crown { animation: czBob 3.2s ease-in-out infinite; }
.deco .pf { transform-box: fill-box; transform-origin: center; animation: czPetal 4.5s ease-in infinite; } .deco .pf.p2 { animation-delay: -2.2s; }
.deco .leaf { animation: czSway 3.4s ease-in-out infinite; }
.deco .siren-ring { animation: czSirenStroke .9s steps(1) infinite; }
.deco .lightbar .lr { animation: czBlink .45s steps(1) infinite; } .deco .lightbar .lb { animation: czBlink .45s steps(1) -.225s infinite; }
.deco .shine { animation: czShine 3.6s ease-in-out infinite; }
.deco .crown-bob { animation: czBob 2.8s ease-in-out infinite; }
.deco .halo { animation: czHalo 3s ease-in-out infinite; }
.deco .horns { animation: czPulse 2.2s ease-in-out infinite; }
.deco .fl { animation: czFlame .55s ease-in-out infinite alternate; }
.deco .flake { animation: czSpin 9s linear infinite; }
.deco .rise { animation: czRise 3.4s ease-in-out infinite; }
.deco.deco-flames { filter: drop-shadow(0 0 3px rgba(249,115,22,.7)); }
.deco.deco-horns { filter: drop-shadow(0 0 3px rgba(239,68,68,.65)); }
.deco.deco-halo, .deco.deco-crown { filter: drop-shadow(0 0 3px rgba(251,191,36,.6)); }
.deco.deco-snowflakes { filter: drop-shadow(0 0 2px rgba(191,219,254,.9)); }
.deco.deco-hearts { filter: drop-shadow(0 0 2px rgba(244,114,182,.7)); }
.deco.deco-orbit, .deco.deco-twinkle { filter: drop-shadow(0 0 2px rgba(199,210,254,.9)); }
.deco.deco-siren { filter: drop-shadow(0 0 4px rgba(96,165,250,.55)); }
/* Ring decorations drawn with CSS */
.deco .ring-wrap { position: absolute; inset: 0; }
.deco .ring { position: absolute; inset: 11%; border-radius: 50%; }
.deco .ring-galaxy, .deco .ring-rainbow { -webkit-mask: radial-gradient(closest-side, transparent 88%, #000 89.5%, #000 98%, transparent 100%); mask: radial-gradient(closest-side, transparent 88%, #000 89.5%, #000 98%, transparent 100%); }
.deco .ring-galaxy { background: conic-gradient(from 0deg, #7c3aed, #ec4899, #f0abfc, #3b82f6, #22d3ee, #7c3aed); animation: czSpin 6s linear infinite; }
.deco .ring-rainbow { background: conic-gradient(#f43f5e, #f59e0b, #facc15, #22c55e, #06b6d4, #6366f1, #a855f7, #f43f5e); animation: czSpin 4s linear infinite; }
.deco .ring-wrap.glow-purple { filter: drop-shadow(0 0 4px rgba(168,85,247,.8)); }
.deco.deco-rainbow .ring-wrap { filter: drop-shadow(0 0 3px rgba(255,255,255,.35)); }
.deco .ring-neon { inset: 12.5%; border: 2px solid #22d3ee; box-shadow: 0 0 6px #22d3ee, 0 0 14px rgba(34,211,238,.6), inset 0 0 6px rgba(34,211,238,.7); animation: czNeon 3s ease-in-out infinite; }
.deco .ring-glitch { inset: 12.5%; border: 2px solid #fff; mix-blend-mode: screen; }
.deco .ring-glitch.g1 { translate: -1px .5px; border-color: #f43f5e; animation: czGlitch1 2.2s steps(1) infinite; } .deco .ring-glitch.g2 { translate: 1px -.5px; border-color: #22d3ee; animation: czGlitch2 2.2s steps(1) infinite; } .deco .ring-glitch.g3 { border-color: #f5f5f5; }
.av-deco.still .ring, .av-deco.still .ring-wrap { animation-play-state: paused !important; }

@keyframes czSpin { to { transform: rotate(360deg); } }
@keyframes czBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2.2px); } }
@keyframes czFlapL { from { transform: scaleX(1); } to { transform: scaleX(.38); } }
@keyframes czFlapR { from { transform: scaleX(1); } to { transform: scaleX(.38); } }
@keyframes czEarL { 0%, 84%, 100% { transform: rotate(0); } 88% { transform: rotate(-9deg); } 92% { transform: rotate(4deg); } 96% { transform: rotate(-2deg); } }
@keyframes czEarR { 0%, 84%, 100% { transform: rotate(0); } 88% { transform: rotate(9deg); } 92% { transform: rotate(-4deg); } 96% { transform: rotate(2deg); } }
@keyframes czTwinkle { 0%, 100% { opacity: .25; transform: scale(.55); } 50% { opacity: 1; transform: scale(1.1); } }
@keyframes czPetal { 0% { opacity: 0; transform: translate(0, -4px) rotate(0); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(-6px, 26px) rotate(260deg); } }
@keyframes czSway { 0%, 100% { transform: rotate(-9deg); } 50% { transform: rotate(9deg); } }
@keyframes czSirenStroke { 0% { stroke: #ef4444; } 50% { stroke: #3b82f6; } }
@keyframes czBlink { 0% { opacity: 1; } 50% { opacity: .18; } }
@keyframes czShine { 0%, 55% { transform: translateX(-34px); } 100% { transform: translateX(40px); } }
@keyframes czHalo { 0%, 100% { transform: translateY(0); opacity: .9; } 50% { transform: translateY(-2px); opacity: 1; } }
@keyframes czPulse { 0%, 100% { opacity: .82; } 50% { opacity: 1; } }
@keyframes czFlame { from { transform: scale(1, 1); } to { transform: scale(.86, 1.18); } }
@keyframes czRise { 0% { transform: translateY(3px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-9px); opacity: 0; } }
@keyframes czNeon { 0%, 100% { border-color: #22d3ee; box-shadow: 0 0 6px #22d3ee, 0 0 14px rgba(34,211,238,.6), inset 0 0 6px rgba(34,211,238,.7); } 50% { border-color: #e879f9; box-shadow: 0 0 6px #e879f9, 0 0 16px rgba(232,121,249,.65), inset 0 0 6px rgba(232,121,249,.7); } }
@keyframes czGlitch1 { 0%, 100% { transform: translate(0, 0); } 10% { transform: translate(-1.5px, .5px); } 20% { transform: translate(1px, -1px); } 30% { transform: translate(0, 0); } 62% { transform: translate(2px, 0); } 66% { transform: translate(0, 0); } }
@keyframes czGlitch2 { 0%, 100% { transform: translate(0, 0); } 10% { transform: translate(1.5px, -.5px); } 20% { transform: translate(-1px, 1px); } 30% { transform: translate(0, 0); } 62% { transform: translate(-2px, 0); } 66% { transform: translate(0, 0); } }

/* ── Profile effects ── */
.fx { position: absolute; inset: 0; z-index: 4; overflow: hidden; pointer-events: none; border-radius: inherit; container-type: size; }
.fx > i, .fx > b { position: absolute; display: block; left: var(--x, 50%); top: var(--y, 0); animation-delay: var(--delay, 0s); will-change: transform; }
.fx-snow > i { top: -6%; width: calc(var(--s) * 1px); height: calc(var(--s) * 1px); border-radius: 50%; background: #fff; opacity: .85; box-shadow: 0 0 4px rgba(255,255,255,.8); animation: czFall var(--d) linear var(--delay) infinite; }
.fx-rain > i { top: -8%; width: 1.5px; height: calc(var(--s) * 1px); border-radius: 2px; background: linear-gradient(transparent, rgba(186,230,253,.9)); transform: rotate(10deg); animation: czRain var(--d) linear var(--delay) infinite; }
.fx-hearts > i { top: 102%; width: calc(var(--s) * 1px); height: calc(var(--s) * 1px); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 18'%3E%3Cpath d='M10 17.5C-4 8.6 2.3-2.6 10 3.7 17.7-2.6 24 8.6 10 17.5Z' fill='%23fb7185'/%3E%3C/svg%3E") center / contain no-repeat; filter: drop-shadow(0 0 3px rgba(251,113,133,.8)); animation: czFloatUp var(--d) ease-in var(--delay) infinite; }
.fx-hearts > i:nth-child(3n) { filter: hue-rotate(-25deg) drop-shadow(0 0 3px rgba(244,114,182,.8)); } .fx-hearts > i:nth-child(4n) { filter: hue-rotate(20deg) saturate(.7) brightness(1.2); }
.fx-sakura > i { top: -6%; width: calc(var(--s) * 1px); height: calc(var(--s) * .7px); border-radius: 100% 0 100% 0; background: linear-gradient(135deg, #fff1f2, #f9a8d4 60%, #f472b6); opacity: .95; animation: czDrift var(--d) linear var(--delay) infinite; }
.fx-butterflies > i { left: -12%; width: calc(var(--s) * 34px); height: calc(var(--s) * 29px); animation: czFly var(--d) linear var(--delay) infinite; }
.fx-butterflies > i svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 3px rgba(255,255,255,.35)); }
.fx .wl, .fx .wr { transform-box: view-box; transform-origin: 0 0; }
.fx-fireflies > i { width: calc(var(--s) * 1px); height: calc(var(--s) * 1px); border-radius: 50%; background: #fef08a; box-shadow: 0 0 6px 2px rgba(250,204,21,.75); animation: czWander var(--d) ease-in-out var(--delay) infinite alternate, czGlow 1.8s ease-in-out var(--delay) infinite; }
.fx-stars > i { width: calc(var(--s) * 1px); height: 2px; border-radius: 2px; background: linear-gradient(90deg, #fff, rgba(255,255,255,0)); transform-origin: 0 50%; opacity: 0; animation: czShoot var(--d) ease-out var(--delay) infinite; }
.fx-stars > b { width: 2px; height: 2px; border-radius: 50%; background: #fff; animation: czStar 2.6s ease-in-out var(--delay) infinite; }
.fx-aurora > i { top: -25%; width: 90%; height: 70%; left: var(--x); border-radius: 50%; filter: blur(14px); opacity: .55; mix-blend-mode: screen; background: radial-gradient(closest-side, #34d399, transparent); animation: czAurora var(--d) ease-in-out var(--delay) infinite alternate; }
.fx-aurora > i:nth-child(2) { background: radial-gradient(closest-side, #22d3ee, transparent); top: -10%; } .fx-aurora > i:nth-child(3) { background: radial-gradient(closest-side, #a78bfa, transparent); top: -30%; }
.fx-digital > i { top: -170px; font: 600 10px/1.05 'Geist Mono', ui-monospace, monospace; white-space: pre; color: #4ade80; text-shadow: 0 0 6px rgba(74,222,128,.9); opacity: .75; animation: czCode var(--d) linear var(--delay) infinite; }
.fx-confetti > i { top: -6%; width: calc(var(--s) * 1px); height: calc(var(--s) * .45px); border-radius: 1px; animation: czConfetti var(--d) linear var(--delay) infinite; }
.fx-embers > i { top: 102%; width: calc(var(--s) * 1px); height: calc(var(--s) * 1px); border-radius: 50%; background: #fdba74; box-shadow: 0 0 6px 2px rgba(249,115,22,.8); animation: czEmber var(--d) ease-out var(--delay) infinite; }
.fx-bubbles > i { top: 104%; width: calc(var(--s) * 1px); height: calc(var(--s) * 1px); border-radius: 50%; border: 1px solid rgba(255,255,255,.6); background: radial-gradient(circle at 32% 30%, rgba(255,255,255,.75) 0 12%, rgba(186,230,253,.18) 30%, rgba(56,189,248,.08) 70%); animation: czBubble var(--d) ease-in var(--delay) infinite; }
.fx-lightning .flash { position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 0%, rgba(254,249,195,.85), rgba(186,230,253,.35) 45%, transparent 75%); opacity: 0; animation: czFlash 6.5s linear infinite; }
.fx-lightning .bolt { position: absolute; right: 16%; top: -4%; height: 62%; opacity: 0; filter: drop-shadow(0 0 6px #fde047); animation: czFlash 6.5s linear infinite; }
.fx-siren .sr-red, .fx-siren .sr-blue { position: absolute; top: -30%; width: 75%; height: 80%; border-radius: 50%; filter: blur(16px); mix-blend-mode: screen; }
.fx-siren .sr-red { left: -20%; background: radial-gradient(closest-side, rgba(239,68,68,.9), transparent); animation: czSiren 1s steps(1) infinite; }
.fx-siren .sr-blue { right: -20%; background: radial-gradient(closest-side, rgba(59,130,246,.95), transparent); animation: czSiren 1s steps(1) -.5s infinite; }
.fx-siren .sr-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, #ef4444 0 50%, #3b82f6 50% 100%); background-size: 200% 100%; opacity: .9; animation: czBar .5s steps(2) infinite; }

@keyframes czFall { from { transform: translate(0, 0); } to { transform: translate(var(--dx, 0), 115cqh); } }
@keyframes czRain { from { transform: translate(0, 0) rotate(10deg); } to { transform: translate(var(--dx, 0), 118cqh) rotate(10deg); } }
@keyframes czFloatUp { 0% { transform: translate(0, 0) scale(.6); opacity: 0; } 12% { opacity: 1; } 100% { transform: translate(var(--dx, 0), -118cqh) scale(1.05); opacity: 0; } }
@keyframes czDrift { 0% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(calc(var(--dx) * .4), 58cqh) rotate(220deg); } 100% { transform: translate(var(--dx), 116cqh) rotate(480deg); } }
@keyframes czFly { 0% { transform: translate(0, 0) rotate(8deg); } 25% { transform: translate(34cqw, var(--dy)) rotate(-6deg); } 50% { transform: translate(66cqw, 0) rotate(8deg); } 75% { transform: translate(98cqw, calc(var(--dy) * -1)) rotate(-6deg); } 100% { transform: translate(132cqw, 0) rotate(8deg); } }
@keyframes czWander { from { transform: translate(0, 0); } to { transform: translate(var(--dx), var(--dy)); } }
@keyframes czGlow { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
@keyframes czShoot { 0% { opacity: 0; transform: translate(0, 0) rotate(-35deg); } 4% { opacity: 1; } 22% { opacity: 0; transform: translate(-52cqw, 37cqw) rotate(-35deg); } 100% { opacity: 0; transform: translate(-52cqw, 37cqw) rotate(-35deg); } }
@keyframes czStar { 0%, 100% { opacity: .15; } 50% { opacity: .95; } }
@keyframes czAurora { from { transform: translate(-12%, 0) scale(1, .85) rotate(-6deg); } to { transform: translate(14%, 12%) scale(1.15, 1.1) rotate(6deg); } }
@keyframes czCode { from { transform: translateY(0); } to { transform: translateY(calc(100cqh + 180px)); } }
@keyframes czConfetti { 0% { transform: translate(0, 0) rotate(0) rotateX(0); } 100% { transform: translate(var(--dx), 116cqh) rotate(var(--r)) rotateX(720deg); } }
@keyframes czEmber { 0% { transform: translate(0, 0) scale(1); opacity: 0; } 10% { opacity: 1; } 100% { transform: translate(var(--dx), -105cqh) scale(.3); opacity: 0; } }
@keyframes czBubble { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: 1; } 50% { transform: translate(var(--dx), -55cqh); } 100% { transform: translate(calc(var(--dx) * -1), -112cqh); opacity: .2; } }
@keyframes czFlash { 0%, 86%, 100% { opacity: 0; } 87% { opacity: 1; } 88% { opacity: .1; } 89.5% { opacity: .85; } 92% { opacity: 0; } }
@keyframes czSiren { 0% { opacity: 1; } 50% { opacity: .08; } }
@keyframes czBar { from { background-position: 0 0; } to { background-position: 200% 0; } }

/* ── Name styles ── */
.nm { display: inline; min-width: 0; }
.nm.f-bold { font-weight: 800; letter-spacing: -.01em; }
.nm.f-mono { font-family: 'Geist Mono', ui-monospace, monospace; letter-spacing: -.02em; }
.nm.f-serif { font-family: Georgia, 'Iowan Old Style', 'Times New Roman', serif; font-weight: 600; letter-spacing: .005em; }
.nm.f-rounded { font-family: ui-rounded, 'SF Pro Rounded', 'Nunito', 'Arial Rounded MT Bold', 'Varela Round', system-ui, sans-serif; font-weight: 800; }
.nm.f-script { font-family: 'Segoe Script', 'Snell Roundhand', 'Brush Script MT', 'Apple Chancery', cursive; font-weight: 700; font-style: italic; letter-spacing: .01em; }
.nm.e-solid.has-color { color: var(--n1); }
.nm.e-gradient, .nm.e-shimmer, .nm.e-rainbow { -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding-right: .06em; }
.nm.e-gradient { background-image: linear-gradient(90deg, var(--n1, #a5b4fc), var(--n2, #f0abfc)); }
.nm.e-shimmer { background-image: linear-gradient(100deg, var(--n1, #a5b4fc) 0 38%, #fff 48%, var(--n2, #f0abfc) 58% 100%); background-size: 260% 100%; animation: czNameShine 3.2s linear infinite; }
.nm.e-rainbow { background-image: linear-gradient(90deg, #f43f5e, #f59e0b, #facc15, #22c55e, #06b6d4, #8b5cf6, #f43f5e); background-size: 200% 100%; animation: czNameRainbow 4s linear infinite; }
.nm.e-neon { color: #fff; text-shadow: 0 0 4px var(--n1, #22d3ee), 0 0 10px var(--n1, #22d3ee), 0 0 18px var(--n2, #e879f9); animation: czNameNeon 4s ease-in-out infinite; }
.nm.e-pop { color: var(--n1, #fde047); text-shadow: 1.5px 1.5px 0 var(--n2, #f43f5e), 3px 3px 0 rgba(0,0,0,.25); }
[data-theme="light"] .nm.e-neon, [data-theme="sage"] .nm.e-neon { color: var(--n1, #0891b2); text-shadow: 0 0 8px color-mix(in srgb, var(--n1, #22d3ee) 60%, transparent); }
@keyframes czNameShine { from { background-position: 100% 0; } to { background-position: -160% 0; } }
@keyframes czNameRainbow { from { background-position: 0 0; } to { background-position: 200% 0; } }
@keyframes czNameNeon { 0%, 100% { opacity: 1; } 47% { opacity: 1; } 48% { opacity: .65; } 49% { opacity: 1; } 51% { opacity: .8; } 52% { opacity: 1; } }

/* ── Nameplates: a background behind someone's name; text always stays readable ── */
.np { position: relative; isolation: isolate; overflow: hidden; color: #fff; }
.np::before { content: ''; position: absolute; inset: 0; z-index: -2; background: var(--np, #27272a); background-size: var(--np-size, cover); animation: var(--np-anim, none); }
.np::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0,0,0,.62), rgba(0,0,0,.28) 55%, rgba(0,0,0,.08)); }
.np small, .np .h, .np .s, .np .menu-sub, .np .pn small { color: rgba(255,255,255,.78) !important; }
.np-patrol { --np: linear-gradient(110deg, #1e3a8a 0%, #111827 42%, #111827 58%, #7f1d1d 100%); }
.np-patrol::before { background: radial-gradient(60% 120% at 0% 50%, rgba(59,130,246,.75), transparent 60%), radial-gradient(60% 120% at 100% 50%, rgba(239,68,68,.75), transparent 60%), #0b1020; animation: czPlateSiren 1.2s steps(1) infinite; }
.np-checker { --np: repeating-conic-gradient(#0a0a0a 0 25%, #e5e5e5 0 50%); --np-size: 14px 14px; }
.np-checker::after { background: linear-gradient(90deg, rgba(0,0,0,.82), rgba(0,0,0,.55) 50%, rgba(0,0,0,.25)); }
.np-candy { --np: repeating-linear-gradient(45deg, #ec4899 0 10px, #fbcfe8 10px 20px); --np-size: 200% 200%; --np-anim: czPlateSlide 3s linear infinite; }
.np-sakura { --np: radial-gradient(circle at 78% 30%, #fce7f3 0 3px, transparent 4px), radial-gradient(circle at 90% 70%, #fbcfe8 0 2.5px, transparent 3.5px), radial-gradient(circle at 62% 76%, #fdf2f8 0 2px, transparent 3px), linear-gradient(120deg, #831843, #db2777 55%, #f9a8d4); }
.np-forest { --np: radial-gradient(120% 90% at 85% 10%, rgba(190,242,100,.35), transparent 50%), linear-gradient(160deg, #052e16, #166534 55%, #3f6212); }
.np-galaxy { --np: radial-gradient(circle at 20% 30%, #fff 0 .8px, transparent 1.5px), radial-gradient(circle at 70% 20%, #fff 0 1px, transparent 1.8px), radial-gradient(circle at 85% 75%, #e9d5ff 0 1px, transparent 1.8px), radial-gradient(circle at 45% 80%, #fff 0 .7px, transparent 1.4px), radial-gradient(80% 140% at 80% 50%, rgba(217,70,239,.55), transparent 60%), linear-gradient(120deg, #1e1b4b, #4c1d95 60%, #0f172a); }
.np-aurora { --np: linear-gradient(100deg, #064e3b, #0e7490, #6d28d9, #0e7490, #064e3b); --np-size: 300% 100%; --np-anim: czPlateFlow 8s ease-in-out infinite alternate; }
.np-neon { --np: linear-gradient(90deg, transparent 10%, rgba(34,211,238,.28) 50%, transparent 90%), #09090b; --np-size: 200% 100%, auto; --np-anim: czPlateFlow 3.5s linear infinite; box-shadow: inset 0 0 0 1px rgba(34,211,238,.65), inset 0 0 14px rgba(232,121,249,.35) !important; }
.np-ocean { --np: radial-gradient(18px 8px at 25% 100%, rgba(186,230,253,.35), transparent 70%), radial-gradient(18px 8px at 75% 100%, rgba(186,230,253,.35), transparent 70%), linear-gradient(180deg, #075985, #0c4a6e 60%, #082f49); --np-size: 60px 100%, 60px 100%, 100% 100%; --np-anim: czPlateWave 4s linear infinite; }
.np-gold { --np: linear-gradient(110deg, #713f12, #b45309 28%, #fde68a 48%, #b45309 68%, #713f12); --np-size: 260% 100%; --np-anim: czPlateFlow 4.5s ease-in-out infinite alternate; }
.np-lava { --np: linear-gradient(120deg, #450a0a, #b91c1c, #f97316, #b91c1c, #450a0a); --np-size: 300% 100%; --np-anim: czPlateFlow 6s ease-in-out infinite alternate; }
.np-midnight { --np: radial-gradient(circle at 88% 40%, #fef9c3 0 9px, rgba(254,249,195,.25) 10px, transparent 20px), radial-gradient(circle at 70% 25%, #fff 0 .8px, transparent 1.5px), radial-gradient(circle at 60% 70%, #fff 0 .7px, transparent 1.4px), linear-gradient(120deg, #020617, #1e293b); }
.np-sunset { --np: linear-gradient(100deg, #7c2d12, #ea580c 40%, #f472b6 75%, #7e22ce); }
@keyframes czPlateSlide { from { background-position: 0 0; } to { background-position: 56px 0; } }
@keyframes czPlateFlow { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes czPlateWave { from { background-position: 0 0, 30px 0, 0 0; } to { background-position: 60px 0, 90px 0, 0 0; } }
@keyframes czPlateSiren { 0% { background: radial-gradient(60% 120% at 0% 50%, rgba(59,130,246,.85), transparent 60%), radial-gradient(60% 120% at 100% 50%, rgba(239,68,68,.25), transparent 60%), #0b1020; } 50% { background: radial-gradient(60% 120% at 0% 50%, rgba(59,130,246,.25), transparent 60%), radial-gradient(60% 120% at 100% 50%, rgba(239,68,68,.85), transparent 60%), #0b1020; } }
.person.np { border-color: transparent; background: none; }
.person.np .badge { background: rgba(0,0,0,.35); }
.menu-head.np { margin: -6px -6px 5px; padding: 12px 12px 12px; border-radius: 9px 9px 0 0; border-bottom: 0; }

/* ── Where decorated avatars and names appear ── */
.avatar-btn .av-deco > img.avatar { width: 34px; height: 34px; }
.avatar-btn:has(.deco) { padding: 2px; }
.menu-head { display: flex; align-items: center; gap: 10px; }
.menu-head .mh-text { min-width: 0; } .menu-head .mh-text strong, .menu-head .mh-text span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-head .mh-text strong { font-size: 14px; } .menu-head .mh-text span { font-size: 12.5px; color: var(--muted); }
.menu-head.np .mh-text span { color: rgba(255,255,255,.78); }
.menu-head.clickable { cursor: pointer; } .menu-head.clickable:hover .mh-text strong { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.person .person-av { border: 0; padding: 0; background: none; cursor: pointer; border-radius: 50%; line-height: 0; }
.person .person-av:focus-visible, .audit-av:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }
.person .person-av .av-deco > img.avatar { width: 44px; height: 44px; }
.audit-av { border: 0; padding: 0; background: none; cursor: pointer; border-radius: 50%; line-height: 0; margin-right: 2px; flex: none; }
.audit-av .av-deco > img.avatar { width: 28px; height: 28px; }
.audit-who .nm { font-weight: 700; font-size: 15px; }
.who-link { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.who-link:hover .nm { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ── Profile card (opens when you click someone) ── */
.pc-overlay { z-index: 85; }
.pc-pop { animation: popIn .24s var(--ease-spring, cubic-bezier(.34,1.56,.64,1)) both; }
.pc-overlay.closing .pc-pop { animation: modalOut .17s ease both; }
.pcard { --t1: #27272a; --t2: #18181b; --pc-bg: color-mix(in srgb, var(--t1) 22%, #0e0e11); width: 340px; max-width: calc(100vw - 40px); border-radius: 18px; padding: 4px; background: linear-gradient(165deg, var(--t1), var(--t2)); box-shadow: 0 24px 60px rgba(0,0,0,.55); color: #fafafa; text-align: left; }
.pcard.plain { --pc-bg: var(--card); padding: 0; background: var(--card); border: 1px solid var(--border-2); color: var(--text); }
.pc-inner { position: relative; border-radius: 14px; overflow: hidden; background: linear-gradient(180deg, var(--pc-bg) 0 40%, color-mix(in srgb, var(--t2) 30%, var(--pc-bg))); }
.pcard.plain .pc-inner { background: var(--card); border-radius: 17px; }
.pc-banner { height: 118px; background: linear-gradient(120deg, var(--t1), var(--t2)); background-size: cover; background-position: center; }
.pcard.plain .pc-banner { background: linear-gradient(120deg, var(--banner-a, #3f3f46), var(--banner-b, #18181b)); background-size: cover; background-position: center; }
.pc-av { position: absolute; top: 70px; left: 18px; z-index: 2; }
.pc-av .av-deco > img.avatar { box-shadow: 0 0 0 6px var(--pc-bg); }
.pc-body { padding: 56px 20px 20px; position: relative; z-index: 1; }
.pc-name { font-size: 21px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; overflow-wrap: anywhere; }
.pc-handle { font-size: 13.5px; color: rgba(255,255,255,.7); margin-top: 3px; font-family: 'Geist Mono', ui-monospace, monospace; }
.pcard.plain .pc-handle, .pcard.plain .pc-label { color: var(--muted); }
.pc-chips { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.pc-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.12); }
.pcard.plain .pc-chip { background: var(--card-2); border-color: var(--border); }
.pc-sep { height: 1px; background: rgba(255,255,255,.12); margin: 16px 0 12px; } .pcard.plain .pc-sep { background: var(--border); }
.pc-label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.6); margin: 10px 0 6px; }
.pc-since { font-size: 14px; }
.pc-plate { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 9px; font-weight: 600; font-size: 14px; }
.pc-plate .av-deco > img.avatar { width: 26px; height: 26px; }
.pc-edit { position: absolute; top: 12px; right: 14px; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); color: inherit; text-decoration: none; transition: background .15s; }
.pc-edit:hover { background: rgba(255,255,255,.18); } .pcard.plain .pc-edit { background: var(--card-2); border-color: var(--border); }
.pc-inner > .fx { z-index: 5; }

/* ── Profile page header ── */
.profile-head { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "av . btn" "txt txt txt"; align-items: end; column-gap: 18px; }
.profile-head > .av-deco { grid-area: av; } .profile-head > .btn { grid-area: btn; margin-bottom: 4px; } .profile-head > .ph-text { grid-area: txt; margin-top: 16px; }
.profile-av-deco > img.avatar { box-shadow: 0 0 0 6px var(--bg); }
.shop-pills::-webkit-scrollbar { display: none; }
.profile-head h1 { margin: 0 0 6px; font-size: 27px; font-weight: 700; letter-spacing: -0.015em; }
.profile-head .ph-plate { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border-radius: 999px; font-size: 13px; font-weight: 600; margin-top: 8px; }
.profile-head .ph-plate:not(.np) { display: none; }
.profile-head .ph-plate .av-deco > img.avatar { width: 22px; height: 22px; }
.profile-banner.themed { background: linear-gradient(110deg, var(--t1), var(--t2)); background-size: cover; background-position: center; }

/* ── The shop ── */
.shop { margin-top: 34px; }
.shop-hero { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px 32px; border-radius: 18px; border: 1px solid var(--border); background: radial-gradient(120% 140% at 100% 0%, rgba(168,85,247,.22), transparent 55%), radial-gradient(100% 140% at 0% 100%, rgba(59,130,246,.18), transparent 55%), var(--card); }
.shop-hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.06) 45%, transparent 60%); background-size: 250% 100%; animation: sheen 7s ease-in-out infinite; }
.sh-kicker { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #c4b5fd; }
[data-theme="light"] .sh-kicker, [data-theme="sage"] .sh-kicker { color: #7c3aed; }
.shop-hero h2 { margin: 10px 0 8px; font-size: 30px; font-weight: 800; letter-spacing: -.025em; line-height: 1.1; }
.shop-hero p { margin: 0; color: var(--muted); max-width: 520px; font-size: 15px; line-height: 1.55; }
.sh-art { position: relative; width: 200px; height: 120px; flex: none; }
.sh-art .av-deco { position: absolute; } .sh-art .a1 { left: 64px; top: 22px; z-index: 2; animation: float 5s ease-in-out infinite; }
.sh-art .a2 { left: 0; top: 52px; animation: float 6s ease-in-out -2s infinite; } .sh-art .a3 { right: 0; top: 0; animation: float 5.5s ease-in-out -1s infinite; }
.shop-layout { display: grid; grid-template-columns: minmax(0, 1fr) 356px; gap: 26px; margin-top: 24px; align-items: start; }
.shop-main, .shop-side { min-width: 0; }
.shop-pills { display: flex; gap: 6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; position: sticky; top: 0; z-index: 5; padding: 12px 0; margin: -12px 0 0; background: color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.shop-pill { flex: none; white-space: nowrap; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--text-2); font-size: 13.5px; font-weight: 600; transition: background .15s, color .15s, border-color .15s, translate .2s; }
.shop-pill:hover { border-color: var(--border-2); color: var(--text); translate: 0 -1px; }
.shop-pill.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.shop-sec { margin-top: 10px; margin-bottom: 30px; }
.shop-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.shop-sec-head h3 { margin: 0; font-size: 18px; font-weight: 750; letter-spacing: -.01em; }
.shop-sec-head p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
.shop-sec-head.tinted h3 { background: linear-gradient(90deg, var(--c1), var(--c2)); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; width: fit-content; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 12px; }
.shop-item { position: relative; display: flex; flex-direction: column; text-align: left; border-radius: 14px; border: 1px solid var(--border); background: var(--card); overflow: hidden; padding: 0; color: var(--text); transition: translate .25s var(--ease-spring, ease), border-color .15s, box-shadow .2s; }
.shop-item:hover { translate: 0 -3px; border-color: var(--border-2); box-shadow: 0 12px 30px rgba(0,0,0,.3); }
.shop-item.sel { border-color: color-mix(in srgb, var(--c1, #a855f7) 30%, #a855f7); box-shadow: 0 0 0 2px rgba(168,85,247,.55), 0 12px 30px rgba(88,28,135,.25); }
.si-stage { --c1: #3f3f46; --c2: #18181b; position: relative; height: 128px; display: grid; place-items: center; overflow: hidden; background: radial-gradient(90% 80% at 50% 110%, color-mix(in srgb, var(--c1) 45%, transparent), transparent 70%), radial-gradient(70% 60% at 50% 0%, color-mix(in srgb, var(--c2) 35%, transparent), transparent 75%), #0d0d10; }
[data-theme="light"] .si-stage, [data-theme="sage"] .si-stage { background: radial-gradient(90% 80% at 50% 110%, color-mix(in srgb, var(--c1) 40%, transparent), transparent 70%), radial-gradient(70% 60% at 50% 0%, color-mix(in srgb, var(--c2) 30%, transparent), transparent 75%), #18181b; }
.shop-item:not(:hover):not(.sel) .si-stage .deco, .shop-item:not(:hover):not(.sel) .si-stage .deco *, .shop-item:not(:hover):not(.sel) .si-stage .fx *, .shop-item:not(:hover):not(.sel) .si-stage .np::before { animation-play-state: paused !important; }
.si-stage > .av-deco { margin-top: 18px; } .si-stage .av-deco { transition: scale .3s var(--ease-spring, ease); } .shop-item:hover .si-stage .av-deco { scale: 1.06; }
.si-mini { position: relative; width: 108px; height: 104px; border-radius: 12px; overflow: hidden; background: #1a1a1f; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 8px 22px rgba(0,0,0,.4); }
.si-mini > i { display: block; height: 34px; background: linear-gradient(120deg, var(--c1), var(--c2)); opacity: .75; }
.si-mini > b { display: block; height: 6px; margin: 8px 12px 0; border-radius: 3px; background: rgba(255,255,255,.14); } .si-mini > b:nth-of-type(1) { width: 52%; margin-top: 22px; } .si-mini > b:nth-of-type(2) { width: 70%; } .si-mini > b:nth-of-type(3) { width: 40%; }
.si-plate { display: flex; align-items: center; gap: 8px; width: calc(100% - 22px); padding: 9px 10px; border-radius: 10px; font-weight: 650; font-size: 13.5px; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.si-plate span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.si-plate .av-deco > img.avatar { width: 24px; height: 24px; }
.si-info { display: flex; align-items: center; gap: 8px; padding: 11px 12px 2px; min-width: 0; }
.si-stage .rar { position: absolute; top: 9px; left: 9px; z-index: 6; background: rgba(0,0,0,.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.si-info strong { font-size: 14px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rar { flex: none; font-size: 10.5px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; border: 1px solid; }
.rar.r-common { color: #a1a1aa; border-color: rgba(161,161,170,.3); } .rar.r-rare { color: #60a5fa; border-color: rgba(96,165,250,.35); background: rgba(59,130,246,.08); }
.rar.r-epic { color: #c084fc; border-color: rgba(192,132,252,.38); background: rgba(168,85,247,.08); } .rar.r-legendary { color: #fbbf24; border-color: rgba(251,191,36,.42); background: rgba(245,158,11,.1); }
.si-foot { display: flex; justify-content: space-between; gap: 8px; padding: 4px 12px 12px; font-size: 12px; color: var(--muted); }
.si-foot .si-col { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.si-foot .si-act { flex: none; font-weight: 650; } .shop-item.sel .si-act { color: #c084fc; }
.si-check { position: absolute; top: 9px; right: 9px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #a855f7; color: #fff; box-shadow: 0 4px 12px rgba(168,85,247,.5); animation: popIn .25s var(--ease-spring, ease) both; }
.style-panel { border: 1px solid var(--border); border-radius: 14px; background: var(--card); padding: 18px 20px 20px; }
.sp-label { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 16px 0 9px; } .sp-label:first-child { margin-top: 0; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.style-chip { padding: 9px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--card-2); color: var(--text); font-size: 15px; transition: border-color .15s, translate .2s, box-shadow .15s; }
.style-chip:hover { border-color: var(--border-2); translate: 0 -1px; }
.style-chip.on { border-color: #a855f7; box-shadow: 0 0 0 2px rgba(168,85,247,.35); }
.color-pick { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 10px; border: 1px solid var(--border); background: var(--card-2); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.color-pick input[type="color"] { width: 30px; height: 30px; padding: 0; border: 0; border-radius: 7px; background: none; cursor: pointer; }
.color-pick input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; } .color-pick input[type="color"]::-webkit-color-swatch { border: 1px solid rgba(255,255,255,.2); border-radius: 7px; }
.theme-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.theme-sw { display: flex; flex-direction: column; gap: 7px; padding: 7px; border-radius: 12px; border: 1px solid var(--border); background: var(--card-2); color: var(--text); font-size: 13px; font-weight: 600; text-align: center; transition: border-color .15s, translate .2s, box-shadow .15s; }
.theme-sw:hover { translate: 0 -2px; border-color: var(--border-2); }
.theme-sw.on { border-color: #a855f7; box-shadow: 0 0 0 2px rgba(168,85,247,.35); }
.theme-sw .tsw { display: block; height: 46px; border-radius: 8px; background: linear-gradient(165deg, var(--c1), var(--c2)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.check-line { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 14px; color: var(--text-2); cursor: pointer; }
.check-line input { width: 17px; height: 17px; accent-color: #a855f7; }
.shop-side { position: sticky; top: 16px; }
.shop-side-in { border: 1px solid var(--border); border-radius: 18px; background: var(--card); padding: 16px; }
.side-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 2px 2px 14px; } .side-title strong { font-size: 15px; } .side-title .muted { font-size: 12.5px; }
.shop-preview-card { display: grid; place-items: center; }
.shop-preview-card .pcard { width: 100%; max-width: 100%; box-shadow: 0 14px 34px rgba(0,0,0,.35); }
.shop-equipped { margin-top: 14px; display: grid; gap: 6px; }
.eq-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--card-2); border: 1px solid var(--border); font-size: 13.5px; min-height: 40px; }
.eq-label { color: var(--muted); width: 86px; flex: none; } .eq-val { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-btn.sm { width: 26px; height: 26px; }
.shop-side .row .btn { flex: 1; justify-content: center; }
@media (max-width: 980px) {
  .shop-layout { grid-template-columns: minmax(0, 1fr); }
  .shop-side { position: static; order: -1; }
  .sh-art { display: none; }
}
@media (max-width: 560px) { .shop-grid { gap: 10px; } .si-stage { height: 112px; } .profile-head { grid-template-areas: "av btn" "txt txt"; grid-template-columns: auto 1fr; } .profile-head > .btn { justify-self: end; } .shop-hero { padding: 22px; } .shop-hero h2 { font-size: 24px; } .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) {
  .deco, .deco *, .fx *, .nm, .np::before, .shop-hero::after, .sh-art .av-deco { animation-play-state: paused !important; }
}
.audit-who.with-av { display: flex; align-items: center; gap: 12px; min-width: 0; }
.audit-who .aw-text { min-width: 0; }
.deco .whisk-l, .deco .whisk-r { transform-box: fill-box; animation: czWhisk 3.2s ease-in-out infinite; }
.deco .whisk-l { transform-origin: 100% 50%; } .deco .whisk-r { transform-origin: 0% 50%; animation-direction: reverse; }
.deco.deco-whiskers { filter: drop-shadow(0 0 1px rgba(0,0,0,.55)); }
.deco.deco-bloombunny { filter: drop-shadow(0 1px 1.5px rgba(0,0,0,.35)); }
.fx-peekaboo > i { top: auto; bottom: -3px; width: calc(var(--s) * clamp(28px, 15cqw, 58px)); aspect-ratio: 40 / 46; transform: translateY(105%); animation: czPeek var(--d) ease-in-out var(--delay) infinite; filter: drop-shadow(0 -2px 6px rgba(0,0,0,.25)); }
.fx-peekaboo > i svg { width: 100%; height: 100%; overflow: visible; }
.fx-peekaboo .pb-ears { transform-box: fill-box; transform-origin: 50% 100%; animation: czEarWiggle 1.6s ease-in-out infinite; }
@keyframes czWhisk { 0%, 70%, 100% { transform: rotate(0); } 78% { transform: rotate(-5deg); } 86% { transform: rotate(3deg); } }
@keyframes czPeek { 0%, 6% { transform: translateY(105%); } 15% { transform: translateY(14%); } 19% { transform: translateY(22%); } 23%, 38% { transform: translateY(18%); } 48%, 100% { transform: translateY(105%); } }
@keyframes czEarWiggle { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-7deg); } 80% { transform: rotate(6deg); } 90% { transform: rotate(-3deg); } }
