:root {
  color-scheme: dark;
  --bg: #100e16;
  --surface: #191622;
  --surface-2: #211c2d;
  --surface-3: #302542;
  --text: #f5f0fc;
  --muted: #aaa0bb;
  --line: #30283d;
  --purple: #b58aff;
  --purple-2: #c8aaff;
  --purple-3: #382b50;
  --purple-dark: #d9c1ff;
  --success: #47c99c;
  --danger: #ff829a;
  --shadow: 0 18px 50px rgba(0,0,0,.24);
  --sidebar: rgba(23,19,31,.86);
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #100e16;
  --surface: #191622;
  --surface-2: #211c2d;
  --surface-3: #302542;
  --text: #f5f0fc;
  --muted: #aaa0bb;
  --line: #30283d;
  --purple: #b58aff;
  --purple-2: #c8aaff;
  --purple-3: #382b50;
  --purple-dark: #d9c1ff;
  --success: #47c99c;
  --danger: #ff829a;
  --shadow: 0 18px 50px rgba(0,0,0,.24);
  --sidebar: rgba(23,19,31,.86);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: radial-gradient(ellipse at 12% 4%, rgba(174,139,255,.24), transparent 38%), radial-gradient(ellipse at 92% 82%, rgba(137,93,214,.15), transparent 34%), linear-gradient(135deg, #f5efff 0%, #f9f7ff 48%, #f0e9fc 100%); background-attachment: fixed; color: var(--text); font-family: "Manrope", "Inter", system-ui, sans-serif; font-weight: 600; }
html[data-theme="dark"], html[data-theme="dark"] body { background: radial-gradient(ellipse at 12% 4%, rgba(107,69,164,.32), transparent 38%), radial-gradient(ellipse at 92% 82%, rgba(91,56,139,.22), transparent 34%), linear-gradient(135deg, #100d18 0%, #171221 48%, #100e16 100%); background-attachment: fixed; }
body { min-height: 100vh; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
.hidden { display: none !important; }
.login-screen { min-height: 100vh; overflow: hidden; display: grid; place-items: center; padding: 24px; position: relative; background: radial-gradient(circle at 15% 20%, #e3d4ff 0, transparent 35%), radial-gradient(circle at 85% 80%, #eee2ff 0, transparent 30%), #f7f3ff; color: #241b34; }
html[data-theme="dark"] .login-screen { background: radial-gradient(circle at 15% 20%, #382451 0, transparent 35%), radial-gradient(circle at 85% 80%, #291c38 0, transparent 30%), #100e16; color: #f6efff; }
.login-card { width: min(100%, 440px); padding: 42px; background: rgba(255,255,255,.83); border: 1px solid rgba(255,255,255,.75); border-radius: 28px; box-shadow: 0 28px 90px rgba(88,52,142,.17); backdrop-filter: blur(18px); position: relative; z-index: 2; }
html[data-theme="dark"] .login-card { background: rgba(27,22,38,.88); border-color: #3b2b50; box-shadow: 0 28px 90px rgba(0,0,0,.32); }
.brand-mark { display: inline-grid; place-items: center; width: 40px; height: 40px; color: white; font-family: Manrope, sans-serif; font-weight: 800; font-size: 22px; border-radius: 13px; background: linear-gradient(145deg,#b99aff,#7b4ad5); box-shadow: 0 8px 20px rgba(139,92,246,.28); flex: 0 0 auto; }
.brand-mark.large { width: 58px; height: 58px; font-size: 29px; border-radius: 18px; margin-bottom: 28px; }
.eyebrow { color: #8b5cf6; font-size: 10px; font-weight: 800; letter-spacing: .2em; margin-bottom: 10px; }
.login-card h1 { font: 800 42px/1.1 Manrope, sans-serif; letter-spacing: -.05em; margin: 0 0 14px; }
.login-card h1 span { color: #9869ee; }
.login-card p { color: #80748f; line-height: 1.7; font-size: 14px; margin: 0 0 28px; }
html[data-theme="dark"] .login-card p { color: #b8adc9; }
.button { border: 0; border-radius: 12px; padding: 12px 17px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; min-height: 44px; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: linear-gradient(115deg,#a881ff,#8051da); color: white; box-shadow: 0 9px 20px rgba(139,92,246,.22); }
.button.secondary { background: var(--surface-3); color: var(--purple-dark); border: 1px solid var(--line); }
.button.danger { background: rgba(223,94,121,.12); color: var(--danger); border: 1px solid rgba(223,94,121,.2); }
.button.full { width: 100%; }
.discord-glyph { font-size: 18px; }
.login-message { margin-top: 18px; font-size: 11px; color: #8d8299; text-align: center; line-height: 1.6; }
.login-footer { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 30px; padding-top: 20px; border-top: 1px solid #eee7f7; font-size: 11px; color: #9489a3; }
html[data-theme="dark"] .login-footer { border-color: #3a3048; }
.login-orbit { position: absolute; border: 1px solid rgba(154,119,219,.2); border-radius: 50%; }
.orbit-one { width: 700px; height: 700px; top: -430px; right: -120px; }
.orbit-two { width: 850px; height: 850px; bottom: -660px; left: -180px; }
.login-decoration { position: absolute; bottom: 35px; right: 42px; display: flex; align-items: end; gap: 14px; color: #9a8dab; }
.login-decoration span { font-size: 9px; letter-spacing: .18em; }
.login-decoration strong { font: 800 28px Manrope; letter-spacing: -.08em; color: #a68ad0; }
.login-decoration strong span { color: #8051da; font-size: inherit; }

.app-shell { min-height: 100vh; }
.sidebar { width: 258px; position: fixed; inset: 0 auto 0 0; padding: 26px 17px calc(16px + env(safe-area-inset-bottom, 0px)); background: var(--sidebar); border-right: 1px solid var(--line); display: flex; flex-direction: column; z-index: 20; transition: transform .25s ease; box-sizing: border-box; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: thin; }
.sidebar > * { flex-shrink: 0; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 28px; }
.brand strong { display: block; font: 800 17px Manrope; letter-spacing: .08em; }
.brand small { display: block; font-size: 8px; letter-spacing: .17em; color: var(--muted); margin-top: 2px; }
.server-switcher { background: var(--surface-2); border: 1px solid var(--line); border-radius: 13px; padding: 10px; display: flex; gap: 10px; align-items: center; margin-bottom: 28px; }
.server-avatar { width: 35px; height: 35px; border-radius: 11px; display: grid; place-items: center; background: var(--purple-3); color: var(--purple-dark); font-weight: 800; }
.server-copy, .user-copy { display: flex; flex-direction: column; flex: 1; min-width: 0; gap: 3px; }
.server-copy strong, .user-copy strong { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.server-copy small, .user-copy small { font-size: 9px; color: var(--muted); }
.chevron { color: var(--muted); font-size: 16px; }
.nav-label { color: var(--muted); font-size: 9px; letter-spacing: .15em; font-weight: 800; padding: 0 12px 11px; }
.side-nav { display: grid; gap: 5px; }
.nav-item { border: 0; background: transparent; color: var(--muted); padding: 11px 13px; border-radius: 11px; text-align: left; display: flex; align-items: center; gap: 13px; font-size: 12px; font-weight: 600; transition: background .15s, color .15s; }
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active { background: var(--purple-3); color: var(--purple-dark); font-weight: 800; }
.nav-icon { font-size: 17px; width: 18px; text-align: center; }
.sidebar-bottom { margin-top: auto; flex-shrink: 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
.help-card { border-radius: 14px; background: linear-gradient(145deg,var(--purple-3),var(--surface-2)); padding: 15px; margin-bottom: 14px; border: 1px solid var(--line); position: relative; overflow: hidden; }
.help-spark { color: var(--purple); font-size: 19px; margin-bottom: 8px; }
.help-card strong { font: 700 11px Manrope; }
.help-card p { margin: 5px 0 10px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.help-card a { color: var(--purple-dark); font-size: 10px; font-weight: 800; }
.help-card a span { margin-left: 4px; }
.sidebar-user { border-top: 1px solid var(--line); padding: 14px 4px 5px; display: flex; align-items: center; gap: 10px; min-height: 56px; flex-shrink: 0; }
.avatar { width: 32px; height: 32px; min-width: 32px; min-height: 32px; flex: 0 0 32px; display: block; border-radius: 50%; background: var(--surface-3); object-fit: cover; }
.sidebar-user .icon-button { flex: 0 0 35px; }
.icon-button { width: 35px; height: 35px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 10px; display: inline-grid; place-items: center; }
.icon-button:hover { border-color: var(--purple-2); color: var(--purple-dark); }
.main-area { margin-left: 258px; min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 10; height: 72px; padding: 0 36px; border-bottom: 1px solid var(--line); background: color-mix(in srgb,var(--surface) 68%,transparent); backdrop-filter: blur(18px); display: flex; align-items: center; justify-content: space-between; }
.breadcrumbs { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 11px; }
.breadcrumbs b { color: var(--line); }
.breadcrumbs strong { color: var(--text); font-weight: 700; }
.top-actions { display: flex; gap: 13px; align-items: center; }
.bot-pill { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; padding-right: 10px; border-right: 1px solid var(--line); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #d3a34d; display: inline-block; box-shadow: 0 0 0 3px rgba(211,163,77,.12); }
.status-dot.online { background: #2bb98c; box-shadow: 0 0 0 3px rgba(43,185,140,.13); }
.theme-toggle, .profile-button { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--muted); padding: 8px 11px; font-size: 10px; font-weight: 700; }
.theme-toggle:hover, .profile-button:hover { color: var(--purple-dark); border-color: var(--purple-2); }
.profile-button { color: var(--text); }
.profile-button .avatar { width: 25px; height: 25px; }
.page-wrap { max-width: 1440px; margin: 0 auto; padding: 34px 36px 20px; }
.page-footer { display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; padding: 34px 0 10px; }
.page-footer b { color: var(--purple-dark); }

.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 25px; }
.page-heading .eyebrow { margin-bottom: 8px; }
.page-heading h1 { font: 800 clamp(25px,3vw,34px)/1.15 Manrope; letter-spacing: -.045em; margin: 0; }
.page-heading p { color: var(--muted); font-size: 12px; line-height: 1.65; margin: 8px 0 0; max-width: 600px; }
.heading-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.grid { display: grid; gap: 17px; }
.grid.two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.grid.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.grid.four { grid-template-columns: repeat(4,minmax(0,1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 17px; padding: 20px; box-shadow: var(--shadow); min-width: 0; }
.card.flat { box-shadow: none; }
.card-title { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-bottom: 16px; }
.card-title h2 { font: 700 13px Manrope; margin: 0; }
.card-title p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.card-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: var(--purple-3); color: var(--purple-dark); font-size: 17px; }
.hero-card { background: linear-gradient(115deg,#9262e4,#6d45b5); color: white; border: 0; box-shadow: 0 18px 40px rgba(117,72,194,.22); position: relative; overflow: hidden; }
.hero-card:after { content:""; position:absolute; width:280px; height:280px; border:1px solid rgba(255,255,255,.18); border-radius:50%; right:-60px; top:-170px; box-shadow:0 0 0 35px rgba(255,255,255,.04),0 0 0 70px rgba(255,255,255,.035); }
.hero-card .eyebrow { color: #eadfff; }
.hero-card h2 { font: 800 26px/1.2 Manrope; margin: 5px 0 9px; max-width: 500px; letter-spacing: -.04em; }
.hero-card p { color: rgba(255,255,255,.8); font-size: 11px; max-width: 570px; line-height: 1.65; margin: 0; }
.hero-card .hero-stat { display:flex; gap:10px; margin-top:24px; align-items:center; font-size:10px; color:rgba(255,255,255,.82); }
.hero-card .button { background:#fff; color:#7044bd; box-shadow:none; position:relative; z-index:1; }
.metric { display: flex; flex-direction: column; gap: 8px; }
.metric-label { color: var(--muted); font-size: 10px; font-weight: 600; }
.metric-value { font: 800 24px Manrope; letter-spacing: -.04em; }
.metric-foot { color: var(--muted); font-size: 9px; }
.badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 100px; background: var(--surface-3); color: var(--purple-dark); padding: 5px 8px; font-size: 9px; font-weight: 800; }
.badge.success { color: var(--success); background: color-mix(in srgb,var(--success) 12%,var(--surface)); }
.badge.warning { color: #c48e32; background: rgba(196,142,50,.12); }
.quick-action { width:100%; display:flex; align-items:center; gap:12px; border:1px solid var(--line); background:var(--surface); color:var(--text); border-radius:13px; padding:14px; text-align:left; }
.quick-action:hover { border-color:var(--purple-2); transform:translateY(-1px); }
.quick-action .card-icon { flex:0 0 auto; }
.quick-action strong { display:block; font-size:11px; }
.quick-action small { display:block; color:var(--muted); font-size:9px; margin-top:4px; }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px; }
.field { display:flex; flex-direction:column; gap:7px; min-width:0; }
.field.full { grid-column:1/-1; }
.field label { font-size:10px; font-weight:800; color:var(--text); }
.field small { color:var(--muted); font-size:9px; line-height:1.5; }
.input, .select, .textarea { width:100%; border:1px solid var(--line); background:var(--surface-2); color:var(--text); border-radius:10px; padding:11px 12px; outline:none; font-size:11px; min-width:0; transition:border .15s,box-shadow .15s; }
.input:focus, .select:focus, .textarea:focus { border-color:var(--purple-2); box-shadow:0 0 0 3px color-mix(in srgb,var(--purple) 14%,transparent); }
.textarea { resize:vertical; min-height:140px; line-height:1.65; }
.color-input { height:44px; padding:4px; }
.form-actions { display:flex; justify-content:flex-end; align-items:center; gap:9px; margin-top:18px; }
.switch-row { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:13px 0; border-bottom:1px solid var(--line); }
.switch-row:last-child { border:0; }
.switch-copy strong { display:block; font-size:11px; }
.switch-copy small { display:block; color:var(--muted); font-size:9px; margin-top:4px; }
.switch { width:38px; height:21px; background:var(--line); border:0; border-radius:99px; padding:3px; flex:0 0 auto; }
.switch:after { content:""; display:block; width:15px; height:15px; border-radius:50%; background:#fff; transition:transform .18s; box-shadow:0 1px 3px #0002; }
.switch[aria-checked="true"] { background:var(--purple); }
.switch[aria-checked="true"]:after { transform:translateX(17px); }
.info-line { display:flex; align-items:center; justify-content:space-between; gap:12px; border-bottom:1px solid var(--line); padding:12px 0; font-size:10px; }
.info-line:last-child { border:0; }
.info-line span { color:var(--muted); }
.info-line strong { font-size:10px; text-align:right; }
.panel-preview { border:1px solid var(--line); border-radius:14px; padding:18px; background:var(--surface-2); overflow:hidden; }
.panel-preview .preview-band { height:6px; width:100%; border-radius:20px; background:var(--preview-color,#8b5cf6); margin-bottom:15px; }
.panel-preview img { width:100%; max-height:145px; object-fit:cover; border-radius:9px; margin:7px 0 12px; }
.panel-preview h3 { font:700 12px Manrope; margin:0 0 6px; }
.panel-preview p { color:var(--muted); font-size:10px; line-height:1.6; margin:0; }
.preset-tabs { display:flex; gap:7px; flex-wrap:wrap; margin-bottom:17px; }
.preset-tab { border:1px solid var(--line); background:var(--surface-2); color:var(--muted); border-radius:9px; padding:8px 12px; font-size:10px; font-weight:800; }
.preset-tab.active { border-color:var(--purple); background:var(--purple-3); color:var(--purple-dark); }
.preset-tab .active-dot { display:inline-block; width:6px; height:6px; border-radius:50%; background:var(--success); margin-left:4px; }
.document-tabs { display:flex; gap:8px; margin-bottom:16px; }
.document-tab { border:1px solid var(--line); background:var(--surface-2); color:var(--muted); border-radius:9px; padding:9px 14px; font-size:10px; font-weight:800; }
.document-tab.active { background:var(--purple-3); color:var(--purple-dark); border-color:transparent; }
.log-list { display:grid; gap:8px; }
.log-entry { display:grid; grid-template-columns:115px 1fr; gap:13px; padding:12px 0; border-bottom:1px solid var(--line); }
.log-entry:last-child { border:0; }
.log-entry time { color:var(--muted); font-size:9px; }
.log-entry strong { display:block; font-size:10px; }
.log-entry p { color:var(--muted); font-size:9px; margin:4px 0 0; line-height:1.5; }
.empty-state { padding:28px 12px; text-align:center; color:var(--muted); font-size:10px; }
.note { border:1px solid color-mix(in srgb,var(--purple) 24%,var(--line)); background:var(--purple-3); color:var(--purple-dark); border-radius:12px; padding:12px 14px; font-size:10px; line-height:1.6; }
.toast-region { position:fixed; right:22px; bottom:22px; z-index:50; display:grid; gap:8px; }
.toast { padding:12px 16px; background:var(--surface); color:var(--text); border:1px solid var(--line); border-left:3px solid var(--success); border-radius:10px; box-shadow:var(--shadow); font-size:11px; max-width:min(360px,calc(100vw - 40px)); }
.toast.error { border-left-color:var(--danger); }
.loading-overlay { position:fixed; inset:0; z-index:100; background:color-mix(in srgb,var(--bg) 80%,transparent); display:grid; align-content:center; justify-items:center; gap:12px; color:var(--muted); font-size:11px; backdrop-filter:blur(5px); }
.loader { width:28px; height:28px; border-radius:50%; border:3px solid var(--line); border-top-color:var(--purple); animation:spin .8s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
.mobile-only { display:none; }

@media(max-width:1100px) {
  .grid.four { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .topbar { padding:0 22px; }
  .page-wrap { padding:27px 22px 18px; }
}
@media(max-width:760px) {
  .sidebar { transform:translateX(-105%); box-shadow:var(--shadow); }
  .sidebar.open { transform:translateX(0); }
  .main-area { margin-left:0; }
  .mobile-only { display:inline-grid; }
  .topbar { height:62px; padding:0 13px; gap:10px; }
  .top-actions { gap:7px; }
  .bot-pill { display:none; }
  .theme-toggle { padding:8px; }
  .theme-toggle span:last-child { display:none; }
  .profile-button { padding:4px; border:0; background:transparent; }
  .profile-button #top-username, .profile-button .chevron { display:none; }
  .page-wrap { padding:22px 14px 15px; }
  .page-heading { align-items:flex-start; flex-direction:column; }
  .grid.two, .grid.three, .grid.four, .form-grid { grid-template-columns:1fr; }
  .log-entry { grid-template-columns:1fr; gap:5px; }
  .page-footer { flex-direction:column; gap:8px; }
  .login-card { padding:30px 24px; }
  .login-decoration { display:none; }
}


/* Nexo social panels and bold typography */
.nav-icon { display:inline-grid; place-items:center; flex:0 0 20px; }
.nav-icon svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.nav-item { font-weight:750; letter-spacing:-.01em; }
.community-nav-label { margin-top:23px; }
.page-heading h1 { font-weight:850; }
.card-title h2 { font-weight:800; }
.social-card { min-height:190px; }
.social-icon { width:42px; height:42px; display:grid; place-items:center; border-radius:14px; font-size:22px; }
.social-icon svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.girls-icon { color:#bf5f9e; background:rgba(196,108,168,.14); }
.boys-icon { color:#657ee0; background:rgba(113,136,232,.14); }
.tellonym-icon { color:var(--purple-dark); background:var(--purple-3); }
.social-card .field { margin-top:13px; }
.note { font-weight:600; }
@media(max-width:760px) { .community-nav-label { margin-top:14px; } }



/* Site-only bot configuration */
.config-note {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  border-radius: 13px;
  padding: 13px 15px;
  margin: 0 0 15px;
  font-size: 11px;
  line-height: 1.65;
  font-weight: 650;
}
.config-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.config-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 10px 13px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 750;
  font-size: 11px;
  transition: background .15s ease, color .15s ease, border .15s ease;
}
.config-tab:hover { border-color: var(--purple-2); color: var(--purple-dark); }
.config-tab.active {
  background: var(--purple-3);
  border-color: var(--purple-2);
  color: var(--purple-dark);
}
.config-tab span { font-size: 16px; }
.config-groups { display: grid; gap: 14px; }
.config-group { min-width: 0; }
.config-group .card-title { margin-bottom: 15px; }
.config-form-grid { align-items: start; }
.config-multiselect { min-height: 135px; padding: 7px; }
.config-multiselect option { padding: 7px 8px; border-radius: 6px; }
.config-color { min-height: 43px; padding: 5px; }
.config-groups .field small { font-size: 10px; }
.config-group .form-grid { gap: 14px; }
@media(max-width:760px) {
  .config-tabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .config-tab { justify-content: flex-start; min-height: 42px; }
  .config-form-grid { grid-template-columns: 1fr; }
}


/* Keep the signed-in profile fully visible in short mobile menus. */
@media(max-width:760px) {
  .sidebar { max-height: 100vh; max-height: 100dvh; }
}

.config-loading-card { min-height: 130px; display: grid; place-items: center; }
.config-load-error { width: 100%; text-align: center; padding: 22px 12px; }
.config-load-error strong { color: var(--text); font-size: 14px; }
.config-load-error p { color: var(--muted); font-size: 11px; line-height: 1.6; margin: 9px 0 16px; }

/* Nexo visual language across every dashboard section */
.app-shell { background: transparent; }
.sidebar { background: color-mix(in srgb,var(--sidebar) 88%,transparent); backdrop-filter: blur(22px); }
.card, .quick-action { background: color-mix(in srgb,var(--surface) 86%,transparent); backdrop-filter: blur(14px); }
.log-list { display: grid; gap: 12px; }
.log-card { border: 1px solid var(--line); border-radius: 15px; padding: 15px 16px; background: color-mix(in srgb,var(--surface) 82%,transparent); box-shadow: 0 8px 24px rgba(64,38,106,.055); }
.log-person { display: flex; align-items: center; gap: 11px; min-width: 0; }
.log-avatar { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; object-fit: cover; background: var(--surface-3); border: 2px solid var(--purple-3); }
.log-person-copy { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 4px; }
.log-person-copy strong { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-person-copy small { color: var(--muted); font-size: 9px; }
.log-type-pill { max-width: 42%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-radius: 99px; background: var(--purple-3); color: var(--purple-dark); padding: 6px 9px; font-size: 9px; font-weight: 800; }
.log-summary { color: var(--text); font-size: 11px; line-height: 1.6; margin: 13px 0; }
.log-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 9px; border-top: 1px solid var(--line); padding-top: 10px; }
@media(max-width:760px) { .nav-item { min-height: 42px; } .log-card { padding: 13px; } .log-type-pill { max-width: 38%; } }

/* Contraste reforçado no destaque principal do painel em tema claro/roxo. */
.hero-card .eyebrow { color: #ffffff !important; opacity: 1; text-shadow: 0 1px 2px rgba(35, 18, 62, .35); }
.hero-card h2 { color: #ffffff !important; text-shadow: 0 1px 2px rgba(35, 18, 62, .28); }
.hero-card p { color: #ffffff !important; opacity: 1; text-shadow: 0 1px 2px rgba(35, 18, 62, .24); }
.hero-card .hero-stat { color: #ffffff !important; opacity: 1; text-shadow: 0 1px 2px rgba(35, 18, 62, .24); }


/* Seleção de emojis do servidor Discord */
.emoji-insert-trigger { display:inline-flex; align-items:center; gap:7px; border:1px solid var(--line); background:var(--surface-2); color:var(--purple-dark); border-radius:9px; padding:7px 10px; font-size:10px; font-weight:800; width:max-content; margin-top:7px; }
.emoji-insert-trigger:hover { border-color:var(--purple-2); background:var(--purple-3); transform:translateY(-1px); }
.emoji-picker-modal { position:fixed; inset:0; z-index:120; display:grid; place-items:center; padding:18px; }
.emoji-picker-modal.hidden { display:none; }
.emoji-picker-backdrop { position:absolute; inset:0; border:0; background:rgba(5,3,12,.72); backdrop-filter:blur(7px); }
.emoji-picker-dialog { position:relative; z-index:1; width:min(620px,100%); max-height:min(78vh,720px); display:flex; flex-direction:column; gap:14px; padding:22px; overflow:hidden; border:1px solid #4b3768; border-radius:20px; background:linear-gradient(145deg,#21192f,#171321); box-shadow:0 28px 90px rgba(0,0,0,.5); animation:emojiModalIn .2s ease-out both; }
.emoji-picker-header { display:flex; justify-content:space-between; gap:14px; align-items:flex-start; }
.emoji-picker-header h2 { margin:0; font-size:18px; color:var(--text); }
.emoji-picker-header p { margin:5px 0 0; font-size:10px; color:var(--muted); }
.emoji-picker-header .eyebrow { margin-bottom:5px; }
.emoji-search { flex:0 0 auto; }
.emoji-picker-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(78px,1fr)); gap:8px; overflow:auto; padding:3px 4px 5px 0; min-height:90px; }
.emoji-choice { min-height:74px; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:5px; border:1px solid var(--line); border-radius:12px; background:var(--surface-2); color:var(--muted); transition:transform .16s ease,border-color .16s ease,background .16s ease; animation:emojiChoiceIn .24s ease both; }
.emoji-choice:hover { transform:translateY(-3px) scale(1.03); border-color:var(--purple-2); background:var(--purple-3); color:var(--text); }
.emoji-choice img { width:30px; height:30px; object-fit:contain; }
.emoji-choice span { max-width:100%; padding:0 4px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:9px; font-weight:800; }
.emoji-empty { grid-column:1/-1; text-align:center; padding:30px 10px; color:var(--muted); font-size:11px; }
@keyframes emojiModalIn { from { opacity:0; transform:translateY(12px) scale(.98); } to { opacity:1; transform:translateY(0) scale(1); } }
@keyframes emojiChoiceIn { from { opacity:0; transform:scale(.86); } to { opacity:1; transform:scale(1); } }

/* Multi-seleção de cargos com contador e chips animados */
.role-picker-summary { display:grid; gap:10px; margin-top:10px; }
.role-picker-counter { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:10px 12px; border:1px solid color-mix(in srgb,var(--purple) 34%,var(--line)); border-radius:11px; background:linear-gradient(110deg,color-mix(in srgb,var(--purple) 15%,var(--surface-2)),var(--surface-2)); color:var(--purple-dark); font-size:10px; font-weight:900; }
.role-picker-counter strong { min-width:25px; height:25px; display:grid; place-items:center; border-radius:8px; background:var(--purple); color:white; font-size:11px; box-shadow:0 5px 14px rgba(139,92,246,.25); animation:roleCountPop .22s ease-out both; }
.role-selected-chips { display:flex; flex-wrap:wrap; gap:7px; min-height:4px; }
.role-selected-chip { display:inline-flex; align-items:center; gap:8px; max-width:100%; padding:7px 9px 7px 11px; border:1px solid #62468b; border-radius:999px; color:#f0e7ff; background:linear-gradient(115deg,#493064,#302341); font-size:9px; font-weight:800; animation:roleChipIn .23s cubic-bezier(.2,.8,.2,1) both; }
.role-selected-chip button { border:0; border-radius:50%; width:18px; height:18px; padding:0; background:rgba(255,255,255,.12); color:white; font-size:13px; line-height:18px; }
.role-selected-chip button:hover { background:var(--danger); }
.role-picker-empty { color:var(--muted); font-size:9px; padding:2px 1px; }
@keyframes roleChipIn { from { opacity:0; transform:translateY(5px) scale(.92); } to { opacity:1; transform:translateY(0) scale(1); } }
@keyframes roleCountPop { from { transform:scale(.7); } to { transform:scale(1); } }

@media(max-width:760px) {
  .emoji-picker-dialog { padding:17px; max-height:84vh; }
  .emoji-picker-grid { grid-template-columns:repeat(auto-fill,minmax(65px,1fr)); }
}
@media(prefers-reduced-motion:reduce) {
  .emoji-picker-dialog,.emoji-choice,.role-selected-chip,.role-picker-counter strong { animation:none !important; transition:none !important; }
}
