/* CoreX workspace: Koya-inspired charcoal surfaces and restrained violet accents. */
:root {
  --bg: #232428; --bg-soft: #2b2d33; --bg-darker: #202126; --bg-deepest: #191a1e;
  --bg-hover: #33353d; --bg-active: #3c3d49; --text: #f5f5f8; --muted: #aeb0bd;
  --text-secondary: #bfc0ca; --white-border: #3a3c45;
  --accent: #7770fa; --accent-2: #625be0; --accent-3: #4e478d;
  --accent-soft: rgba(119,112,250,.13); --accent-mid: rgba(119,112,250,.38);
  --accent-grad: #7770fa; --shadow: 0 8px 24px #00000014;
  color-scheme: dark;
}
body, button, input, select, textarea, body * { font-family: 'Outfit', system-ui, sans-serif; }
a { color: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #a7a2ff; outline-offset: 4px; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 20000; padding: 12px 20px; background: var(--accent-2); border-radius: 8px; }
.skip-link:focus { top: 12px; }
.workspace-page .navbar, .workspace-page .navbar.scrolled {
  position: relative; top: 0; left: 0; transform: none; width: 100%; max-width: none;
  min-height: 80px; padding: 16px max(24px, calc((100vw - 1160px)/2));
  border: 0; border-bottom: 1px solid var(--white-border); border-radius: 0;
  background: #2b2c32; box-shadow: none; backdrop-filter: none;
}
.workspace-page .logo { gap: 0 !important; font-size: 25px !important; }
.workspace-page .nav-logo { margin-right: 10px; }
.workspace-page .nav-links { border: 0 !important; background: transparent !important; gap: 8px !important; }
.workspace-page .nav-links > a { border-radius: 7px !important; padding: 9px 12px !important; }
.workspace-page .nav-links > a.active { background: var(--accent-soft) !important; color: #bdb9ff !important; }
.workspace-page .login-btn { border-radius: 8px !important; background: var(--accent-2) !important; }
.dashboard-section { max-width: 1208px; padding: 48px 24px 32px; }
.workspace-breadcrumb { display: flex; gap: 10px; font-size: 13px; color: var(--muted); margin-bottom: 30px; }
.workspace-breadcrumb a { text-decoration: none; }
.workspace-breadcrumb span:last-child { color: var(--text); }
.dashboard-head { padding: 0; margin-bottom: 30px; background: none; border: 0; box-shadow: none; align-items: flex-end; }
.dashboard-head .tag { color: #aaa5ff; font-size: 11px; font-weight: 600; letter-spacing: 2px; }
.dashboard-head h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 600; letter-spacing: -1px; margin: 10px 0; }
.dashboard-head p { font-size: 15px; line-height: 1.6; max-width: none; }
.workspace-tip { display: flex; align-items: center; gap: 16px; padding: 22px 26px; margin-bottom: 32px; border: 1px solid #494465; border-radius: 12px; background: linear-gradient(110deg, #353147, #2b2b35 80%); }
.workspace-tip-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #7770fa24; flex-shrink: 0; }
.workspace-tip-icon img { width: 24px; height: 24px; }
.workspace-tip h2 { font-size: 16px; font-weight: 500; margin-bottom: 5px; }
.workspace-tip p { font-size: 13px; color: var(--muted); line-height: 1.6; }
.workspace-tip a { margin-left: auto; text-decoration: none; color: #c6c2ff; font-size: 13px; white-space: nowrap; }
.server-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.server-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.server-filter { border: 1px solid transparent; background: transparent; color: var(--muted); border-radius: 8px; padding: 10px 14px; cursor: pointer; font-size: 13px; }
.server-filter[aria-pressed="true"] { background: var(--bg-soft); border-color: var(--white-border); color: var(--text); }
.server-filter:hover { color: white; background: var(--bg-hover); }
.server-filter span { margin-left: 8px; font-size: 11px; border-radius: 4px; padding: 2px 6px; background: #ffffff0c; }
.server-search-box input, .server-search-box input:focus { width: 240px; height: 42px; font-size: 13px !important; }
.refresh-btn { height: 42px; background: var(--bg-soft); font-weight: 500; }
.server-grid { gap: 22px; }
.server-card { background: var(--bg-soft); border-radius: 12px; box-shadow: none; }
.server-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px #0002; }
.server-card-banner { height: 84px; background: radial-gradient(ellipse at 80% 0%, #8076c04d, transparent 70%), #343140; border-bottom: 1px solid #ffffff05; }
.server-card:nth-child(3n+2) .server-card-banner { background: radial-gradient(ellipse at 80% 0%, #477f8f55, transparent 70%), #2c363d; }
.server-card:nth-child(3n+3) .server-card-banner { background: radial-gradient(ellipse at 80% 0%, #a8795955, transparent 70%), #393330; }
.server-card-body { padding: 0 22px 22px; gap: 14px; }
.server-card .server-icon { border-radius: 18px; border: 4px solid var(--bg-soft); box-shadow: none; }
.server-card .server-name { font-size: 18px; font-weight: 500; }
.server-role-badge { font-size: 9px; letter-spacing: .7px; padding: 3px 7px; border-radius: 4px; }
.server-role-badge.manager { color: #bcb7ff; }
.server-status { font-size: 12px; margin-top: 3px; }
.server-status.connected { color: #70cfa8; }
.server-status .status-check { display: none; }
.server-status.connected .status-dot { box-shadow: none; }
.server-action { border-radius: 7px; font-size: 13px; font-weight: 500; flex-direction: row-reverse; justify-content: space-between; }
.manage-server { background: #625be0; box-shadow: none; }
.invite-server { background: #35363e; }
.server-action:hover { box-shadow: none; }
.dashboard-message { gap: 20px; flex-wrap: wrap; box-shadow: none; font-size: 14px; }
.dashboard-message .server-action { width: auto; background: var(--accent-2); }
.dashboard-message a { flex-shrink: 0; }
.workspace-footer { display: flex; justify-content: space-between; gap: 16px; margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--white-border); font-size: 12px; color: var(--muted); line-height: 1.6; }
.workspace-footer a { text-decoration: none; color: #c4c1f5; }
.zen-sidebar { background: #292a30; padding: 24px 14px; }
.zen-brand { padding: 0 10px 20px; margin-bottom: 16px; border-bottom: 1px solid var(--white-border); border-radius: 0; }
.brand-text { display: flex; flex-direction: column; gap: 3px; }
.brand-name { font-size: 23px; font-weight: 600; }
.brand-tag { font-size: 10px; color: var(--muted); font-weight: 400; letter-spacing: 1px; text-transform: uppercase; }
.workspace-back { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; padding: 8px 12px 20px; text-decoration: none; }
.workspace-back:hover { color: white; }
.zen-server-btn { padding: 13px 10px; background: #32333b; }
.menu-group-label { color: #9092a2; font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; padding: 24px 12px 10px; }
.zen-menu-btn { padding: 13px 12px; margin-bottom: 3px; font-size: 13px; }
.zen-menu-btn.active { color: #c7c3ff; background: #7770fa20; font-weight: 500; }
.zen-menu-btn.active::before { background: #928bff; }
.zen-main { min-width: 0; }
.zen-topbar { min-height: 88px; background: #292a30; padding: 20px 36px; }
.zen-topbar h1 { font-size: 19px; font-weight: 500; }
.zen-content { width: 100%; max-width: 1440px; margin: 0 auto; padding: 34px 36px 140px; }
.settings-panel { border-radius: 12px; box-shadow: none; }
.settings-head { background: #ffffff02; padding: 28px 30px; }
.settings-head h1 { font-size: 27px; font-weight: 500; letter-spacing: -.5px; }
.settings-head .tag { color: #bab5ff; border: 0; border-radius: 5px; font-size: 9px; }
.glass-card { box-shadow: none; }
.workspace-help { margin: 22px 4px; padding: 18px 12px; border: 1px solid var(--white-border); border-radius: 10px; }
.workspace-help strong { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.workspace-help p { color: var(--muted); font-size: 12px; line-height: 1.7; }
.workspace-help a { display: inline-block; margin-top: 10px; color: #bcb7ff; font-size: 12px; text-decoration: none; }
@media (max-width: 1000px) {
  .workspace-page .navbar { padding: 16px 24px; }
  .workspace-page .nav-links > a { padding: 9px 8px !important; }
  .dashboard-head { align-items: flex-start; }
}
@media (max-width: 768px) {
  .workspace-page .navbar { position: relative !important; top: 0 !important; width: 100% !important; min-height: 72px; padding: 12px 18px !important; }
  .workspace-page .nav-links.open { left: 12px !important; right: 12px !important; background: #2b2c32 !important; border: 1px solid var(--white-border) !important; }
  .dashboard-section { padding: 28px 18px; }
  .dashboard-head { flex-direction: column; gap: 16px; }
  .workspace-tip { padding: 18px; flex-wrap: wrap; }
  .workspace-tip > div:nth-child(2) { flex: 1; min-width: 160px; }
  .workspace-tip a { margin-left: 60px; }
  .server-toolbar, .dashboard-head-actions { width: 100%; }
  .server-search-box { flex: 1; min-width: 0; }
  .server-search-box input, .server-search-box input:focus { width: 100%; }
  .server-filter { padding: 9px 10px; }
  .workspace-footer { flex-direction: column; }
  .zen-content { padding-bottom: 140px !important; }
  .settings-head { padding: 22px 20px; }
  .settings-head h1 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
