:root {
  --linker-violet: #7547cd;
  --linker-rose: #9e68a6;
  --linker-purple: #6311d5;
  --linker-deep: #2c0c4d;
  --dash-text: #f8f6ff;
  --dash-muted: rgba(248, 246, 255, 0.58);
  --dash-line: rgba(255, 255, 255, 0.09);
  --dash-panel: rgba(15, 11, 24, 0.76);
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.dashboard-page {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 92% -5%, rgba(99, 17, 213, 0.24), transparent 34rem),
    radial-gradient(circle at -8% 42%, rgba(158, 104, 166, 0.14), transparent 32rem),
    linear-gradient(145deg, #050507 0%, #090610 58%, #08050d 100%);
  color: var(--dash-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.dashboard-page::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 52px 52px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 86%);
}

.dashboard-shell { width: min(100% - 2rem, 76rem); margin-inline: auto; }

.dashboard-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid var(--dash-line);
  background: rgba(5, 5, 8, 0.78);
  backdrop-filter: blur(20px);
}

.dashboard-header-inner { display: flex; min-height: 4.75rem; align-items: center; gap: 2rem; }
.dashboard-brand { display: flex; flex-shrink: 0; align-items: center; gap: .55rem; color: inherit; text-decoration: none; }
.dashboard-brand img { width: 2.5rem; height: 2.5rem; border-radius: .55rem; }
.dashboard-brand span { font-size: 1.45rem; font-weight: 750; }
.dashboard-gradient-text {
  background: linear-gradient(90deg, var(--linker-violet), var(--linker-rose) 33%, var(--linker-purple) 68%, var(--linker-deep));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.dashboard-nav { display: flex; align-self: stretch; gap: .3rem; }
.dashboard-nav a {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 .85rem;
  color: rgba(255,255,255,.55);
  font-size: .82rem;
  font-weight: 620;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease;
}
.dashboard-nav a:hover { color: #fff; }
.dashboard-nav a.active { color: #fff; }
.dashboard-nav a.active::after {
  position: absolute;
  right: .85rem;
  bottom: 0;
  left: .85rem;
  height: 2px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, var(--linker-rose), var(--linker-violet), var(--linker-purple));
  box-shadow: 0 0 16px rgba(117, 71, 205, .7);
  content: "";
}
.dashboard-account { margin-left: auto; }

.dashboard-main { padding: 4.5rem 0 6rem; }
.dashboard-hero { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.4rem; }
.dashboard-eyebrow { color: #b798ef; font-size: .68rem; font-weight: 760; letter-spacing: .15em; text-transform: uppercase; }
.dashboard-hero h1 { max-width: 760px; margin: .65rem 0 .8rem; font-size: clamp(2.45rem, 5vw, 4.5rem); font-weight: 760; letter-spacing: -.055em; line-height: .98; }
.dashboard-hero p { max-width: 660px; margin: 0; color: var(--dash-muted); line-height: 1.65; }

.dashboard-status { margin-bottom: 1.4rem; padding: .9rem 1rem; border: 1px solid rgba(117,71,205,.4); border-radius: .8rem; background: rgba(117,71,205,.1); color: #e5d8ff; }
.dashboard-status.error { border-color: rgba(239,68,68,.42); background: rgba(239,68,68,.1); color: #fecaca; }
.hidden { display: none !important; }

.dashboard-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.dashboard-stat, .dashboard-card, .dashboard-panel {
  border: 1px solid var(--dash-line);
  background: linear-gradient(145deg, rgba(255,255,255,.052), rgba(255,255,255,.016));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 22px 55px rgba(0,0,0,.22);
  backdrop-filter: blur(16px);
}
.dashboard-stat { position: relative; overflow: hidden; min-height: 9.5rem; padding: 1.25rem; border-radius: 1rem; }
.dashboard-stat::before { position: absolute; top: -3rem; right: -3rem; width: 7rem; height: 7rem; border-radius: 50%; content: ""; filter: blur(14px); opacity: .23; }
.dashboard-stat:nth-child(1)::before { background: var(--linker-violet); }
.dashboard-stat:nth-child(2)::before { background: var(--linker-rose); }
.dashboard-stat:nth-child(3)::before { background: var(--linker-purple); }
.dashboard-stat:nth-child(4)::before { background: var(--linker-deep); opacity: .7; }
.dashboard-stat-label { display: block; color: rgba(255,255,255,.42); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.dashboard-stat strong { display: block; margin-top: 1.25rem; font-size: 2rem; letter-spacing: -.04em; }
.dashboard-stat small { display: block; margin-top: .25rem; color: var(--dash-muted); }

.dashboard-section { margin-top: 2.5rem; }
.dashboard-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.dashboard-section-heading h2 { margin: 0; font-size: 1.45rem; letter-spacing: -.025em; }
.dashboard-section-heading p { margin: .35rem 0 0; color: var(--dash-muted); font-size: .85rem; }
.dashboard-action-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.dashboard-card { position: relative; min-height: 13rem; overflow: hidden; padding: 1.35rem; border-radius: 1.05rem; color: inherit; text-decoration: none; transition: transform 170ms ease, border-color 170ms ease; }
.dashboard-card:hover { border-color: rgba(157,123,224,.38); transform: translateY(-2px); }
.dashboard-card-index { color: #b698ee; font: 700 .65rem ui-monospace, monospace; letter-spacing: .08em; }
.dashboard-card h3 { margin: 3rem 0 .55rem; font-size: 1.2rem; }
.dashboard-card p { margin: 0; color: var(--dash-muted); font-size: .82rem; line-height: 1.55; }
.dashboard-card-arrow { position: absolute; top: 1.2rem; right: 1.2rem; color: rgba(255,255,255,.35); font-size: 1.1rem; }

.dashboard-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: .65rem 1rem;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: .72rem;
  background: rgba(255,255,255,.055);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.dashboard-button:hover { border-color: rgba(157,123,224,.5); background: rgba(117,71,205,.13); transform: translateY(-1px); }
.dashboard-button.primary { border-color: transparent; background: linear-gradient(135deg, var(--linker-rose), var(--linker-violet) 48%, var(--linker-purple)); box-shadow: 0 12px 28px rgba(99,17,213,.22); }
.dashboard-button.danger { border-color: rgba(239,68,68,.38); background: rgba(239,68,68,.09); color: #fecaca; }
.dashboard-button:disabled { cursor: not-allowed; opacity: .5; transform: none; }

.server-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
.server-card { display: flex; min-height: 13.5rem; flex-direction: column; padding: 1.2rem; border: 1px solid rgba(117,71,205,.28); border-radius: 1.05rem; background: radial-gradient(circle at 100% 0, rgba(99,17,213,.16), transparent 55%), rgba(255,255,255,.035); }
.server-card.offline { border-color: var(--dash-line); background: rgba(255,255,255,.025); filter: grayscale(.7); opacity: .62; }
.server-card-head { display: flex; align-items: center; gap: .9rem; }
.server-icon { display: grid; width: 3.25rem; height: 3.25rem; flex: 0 0 3.25rem; place-items: center; border-radius: .85rem; background: linear-gradient(145deg, var(--linker-rose), var(--linker-violet), var(--linker-purple)); font-size: 1.15rem; font-weight: 750; object-fit: cover; }
.server-card h3 { overflow: hidden; margin: 0; font-size: .95rem; text-overflow: ellipsis; white-space: nowrap; }
.server-card p { margin: .3rem 0 0; color: var(--dash-muted); font-size: .75rem; }
.server-card .dashboard-button { align-self: flex-start; margin-top: auto; font-size: .78rem; }

.dashboard-panel { padding: clamp(1.2rem, 3vw, 2rem); border-radius: 1.15rem; }
.server-manager { margin-top: 1rem; scroll-margin-top: 6rem; border-color: rgba(99,17,213,.35); background: radial-gradient(circle at 85% 0, rgba(99,17,213,.17), transparent 50%), var(--dash-panel); }
.dashboard-panel h3 { margin: 0; font-size: 1.2rem; }
.dashboard-panel-description { margin: .4rem 0 0; color: var(--dash-muted); font-size: .82rem; }
.dashboard-form { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; margin-top: 1.25rem; }
.dashboard-form[hidden] { display: none; }
.server-log-settings > p, .server-log-settings > fieldset { grid-column: 1 / -1; }
.server-log-settings > fieldset { min-width: 0; margin: 0; padding: .9rem; border: 1px solid var(--dash-line); border-radius: .8rem; }
.server-log-settings legend { color: rgba(255,255,255,.7); font-size: .8rem; padding: 0 .3rem; }
.dashboard-form-actions { flex-wrap: wrap; }
.dashboard-button[aria-pressed="true"] { border-color: var(--linker-violet); background: rgba(117,71,205,.16); }
.dashboard-field { display: grid; gap: .5rem; }
.dashboard-field span { color: rgba(255,255,255,.68); font-size: .78rem; font-weight: 650; }
.dashboard-select { width: 100%; padding: .75rem .8rem; border: 1px solid rgba(255,255,255,.13); border-radius: .7rem; outline: none; background: #0a0710; color: #fff; }
.dashboard-select:focus { border-color: var(--linker-violet); box-shadow: 0 0 0 3px rgba(117,71,205,.14); }
.dashboard-form-actions { display: flex; grid-column: 1 / -1; align-items: center; gap: .8rem; }
.dashboard-form-result { color: var(--dash-muted); font-size: .78rem; }

.data-panel { padding: 0; overflow: hidden; }
.data-summary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border-bottom: 1px solid var(--dash-line); }
.data-summary-item { padding: 1.2rem; }
.data-summary-item + .data-summary-item { border-left: 1px solid var(--dash-line); }
.data-summary-item span { display: block; color: rgba(255,255,255,.4); font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.data-summary-item strong { display: block; margin-top: .5rem; font-size: .9rem; }
.data-section { padding: 1.4rem; border-bottom: 1px solid var(--dash-line); }
.data-section:last-child { border-bottom: 0; }
.data-section h3 { margin: 0 0 1rem; }
.data-category-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; }
.data-category { padding: 1rem; border: 1px solid var(--dash-line); border-radius: .85rem; background: rgba(0,0,0,.18); }
.data-category h4 { margin: 0 0 .35rem; color: #c5abf2; }
.data-row { display: grid; grid-template-columns: minmax(8rem,.7fr) minmax(0,1.3fr); gap: .8rem; padding: .7rem 0; border-bottom: 1px solid rgba(255,255,255,.065); font-size: .78rem; }
.data-row:last-child { border-bottom: 0; }
.data-row strong { color: rgba(255,255,255,.52); font-weight: 600; }
.data-row span { min-width: 0; overflow-wrap: anywhere; }
.data-avatar { display: flex; align-items: center; gap: .7rem; }
.data-avatar img { width: 2.5rem; height: 2.5rem; border-radius: 50%; object-fit: cover; }
.data-avatar a { color: #c5abf2; }
.settings-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; }
.setting-toggle { display: flex; align-items: center; gap: .7rem; padding: .9rem; border: 1px solid var(--dash-line); border-radius: .8rem; background: rgba(0,0,0,.16); cursor: pointer; }
.setting-toggle input { width: 1rem; height: 1rem; accent-color: var(--linker-purple); }
.settings-actions { display: flex; grid-column: 1 / -1; align-items: center; gap: .8rem; margin-top: .35rem; }
.danger-zone { margin-top: 1rem; padding: 1.2rem; border: 1px solid rgba(239,68,68,.22); border-radius: 1rem; background: rgba(239,68,68,.045); }
.danger-zone h2 { margin: 0; font-size: 1rem; }
.danger-zone p { margin: .4rem 0 1rem; color: var(--dash-muted); font-size: .8rem; line-height: 1.55; }

.dashboard-dialog { width: min(92vw, 32rem); padding: 0; border: 1px solid rgba(255,255,255,.14); border-radius: 1rem; background: #100c1c; color: #fff; }
.dashboard-dialog::backdrop { background: rgba(0,0,0,.76); backdrop-filter: blur(5px); }
.dashboard-dialog form { padding: 1.4rem; }
.dashboard-dialog h2 { margin: 0; }
.dashboard-dialog p { color: var(--dash-muted); line-height: 1.55; }
.dialog-actions { display: flex; justify-content: flex-end; gap: .65rem; margin-top: 1.3rem; }

.profile-menu-wrapper { position: relative; }
.profile-avatar-button { display: grid; width: 2.75rem; height: 2.75rem; padding: 0; place-items: center; border: 2px solid rgba(157,123,224,.75); border-radius: 50%; background: rgba(255,255,255,.08); cursor: pointer; }
.profile-avatar { width: 2.35rem; height: 2.35rem; border-radius: 50%; object-fit: cover; }
.profile-dropdown { position: absolute; top: calc(100% + .65rem); right: 0; z-index: 80; width: 13rem; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: .8rem; background: rgba(13,10,22,.98); box-shadow: 0 18px 45px rgba(0,0,0,.45); }
.profile-dropdown-heading { overflow: hidden; padding: .8rem 1rem; border-bottom: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.65); font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.profile-dropdown a,.profile-dropdown button { display: block; width: 100%; padding: .75rem 1rem; border: 0; background: transparent; color: rgba(255,255,255,.85); cursor: pointer; text-align: left; text-decoration: none; }
.profile-dropdown a:hover,.profile-dropdown button:hover { background: rgba(117,71,205,.25); color: #fff; }

@media (max-width: 850px) {
  .dashboard-header-inner { flex-wrap: wrap; gap: .4rem 1rem; padding: .75rem 0; }
  .dashboard-nav { order: 3; width: 100%; min-height: 2.75rem; overflow-x: auto; }
  .dashboard-nav a { flex: 1 0 auto; justify-content: center; }
  .dashboard-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-action-grid,.server-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-main { padding-top: 3rem; }
}

@media (max-width: 600px) {
  .dashboard-shell { width: min(100% - 1.25rem, 76rem); }
  .dashboard-hero { display: block; }
  .dashboard-hero h1 { font-size: clamp(2.25rem, 13vw, 3.4rem); }
  .dashboard-grid,.dashboard-action-grid,.server-grid,.data-category-grid,.settings-grid,.data-summary,.dashboard-form { grid-template-columns: 1fr; }
  .data-summary-item + .data-summary-item { border-top: 1px solid var(--dash-line); border-left: 0; }
  .data-row { grid-template-columns: 1fr; gap: .25rem; }
  .dashboard-section-heading { display: block; }
  .dashboard-section-heading .dashboard-button { margin-top: .8rem; }
  .dashboard-form-actions,.settings-actions { grid-column: 1; flex-wrap: wrap; }
  .dashboard-brand span { font-size: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* Shared app shell: one navigation and account menu across every dashboard view. */
[hidden] { display: none !important; }
:root { --sidebar-width: 15.5rem; }
.dashboard-page { background: radial-gradient(ellipse at 90% 0, #2c0c4d66, transparent 45%), radial-gradient(ellipse at 30% 95%, #7547cd14, transparent 50%), #09080e; }
.dashboard-sidebar { position: fixed; z-index: 80; inset: 0 auto 0 0; display: flex; width: var(--sidebar-width); flex-direction: column; padding: 1.55rem 1rem 1rem; border-right: 1px solid var(--dash-line); background: linear-gradient(155deg, #161020ef, #0d0915f5 58%, #2c0c4d70); backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px); overflow-y: auto; }
.sidebar-brand-row { display: flex; align-items: center; justify-content: space-between; padding: 0 .5rem 1.9rem; }
.sidebar-brand-row .dashboard-brand img { width: 2.25rem; height: 2.25rem; }
.sidebar-brand-row .dashboard-brand span { font-size: 1.5rem; }
.sidebar-close { display: none; }
.sidebar-label { display: block; margin: 1.3rem .65rem .65rem; color: #a798b7; font-size: .6rem; font-weight: 700; letter-spacing: .14em; }
.sidebar-brand-row + .sidebar-label { margin-top: 0; }
.server-picker { position: relative; }
.server-picker-button { display: flex; width: 100%; align-items: center; gap: .65rem; min-height: 4rem; padding: .7rem; border: 1px solid #7547cd40; border-radius: .8rem; background: linear-gradient(120deg, #7547cd1c, #9e68a615); color: inherit; text-align: left; cursor: pointer; }
.server-picker-button > span:nth-child(2) { flex: 1; min-width: 0; }
.picker-symbol { display: grid; width: 2rem; height: 2rem; place-items: center; border-radius: .6rem; background: #7547cd25; color: #c6a8ff; font-size: 1.35rem; }
.server-picker-button small { display: block; margin-bottom: .25rem; color: var(--dash-muted); font-size: .62rem; }
.server-picker-button b { display: block; overflow: hidden; font-size: .75rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.picker-chevron { color: #c0a4ed; }
.server-picker-menu { position: absolute; top: calc(100% + .4rem); z-index: 100; width: 100%; max-height: 21rem; overflow-y: auto; padding: .35rem; border: 1px solid #9e68a645; border-radius: .8rem; background: #171020f5; backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px); box-shadow: 0 18px 40px #0008; }
.server-picker-menu p { padding: .5rem; color: var(--dash-muted); font-size: .75rem; }
.picker-option { display: flex; gap: .6rem; align-items: center; padding: .6rem; border-radius: .55rem; color: inherit; text-decoration: none; }
.picker-option:hover { background: #7547cd25; }
.picker-option > span:last-child { min-width: 0; }
.picker-option b { display: block; overflow: hidden; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.picker-option small { display: block; margin-top: .2rem; color: var(--dash-muted); font-size: .62rem; }
.picker-option-icon { display: grid; width: 1.8rem; height: 1.8rem; flex: 0 0 1.8rem; place-items: center; border-radius: .45rem; background: #7547cd30; color: #bfa0f0; }
.picker-symbol { flex-shrink: 0; }
.picker-symbol img, .picker-option-icon img { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.unavailable { opacity: .6; }
.sidebar-account-nav, .sidebar-module-nav { display: grid; gap: .2rem; }
.dashboard-sidebar nav a { display: flex; align-items: center; gap: .7rem; min-height: 2.7rem; padding: .65rem .75rem; border: 1px solid transparent; border-radius: .65rem; color: #c0b9cb; font-size: .77rem; text-decoration: none; }
.dashboard-sidebar nav a svg { width: 1.1rem; height: 1.1rem; color: #a59aaf; }
.dashboard-sidebar nav a:hover { background: #7547cd15; color: white; }
.dashboard-sidebar nav a[aria-current] { border-color: #9e68a629; background: linear-gradient(100deg, #7547cd35, #6311d517); color: #eee4ff; }
.dashboard-sidebar nav a[aria-current] svg { color: #b798ef; }
.dashboard-sidebar nav a i { width: .35rem; height: .35rem; margin-left: auto; border-radius: 50%; background: #b798ef; box-shadow: 0 0 9px #7547cd; }
.sidebar-bottom { margin-top: auto; padding-top: 2rem; }
.sidebar-support { display: flex; gap: .6rem; align-items: center; padding: .9rem .7rem; border: 1px solid #9e68a62c; border-radius: .75rem; background: linear-gradient(135deg, #9e68a619, #2c0c4d33); color: inherit; text-decoration: none; }
.sidebar-support b, .sidebar-support small { display: block; }
.sidebar-support b { font-size: .74rem; font-weight: 600; }
.sidebar-support small { margin-top: .2rem; color: var(--dash-muted); font-size: .6rem; }
.sidebar-support-symbol { display: grid; width: 1.5rem; height: 1.5rem; place-items: center; border: 1px solid #9e68a667; border-radius: 50%; color: #cc9dd4; font-size: .8rem; }
.sidebar-support svg { width: .85rem; margin-left: auto; color: var(--dash-muted); }
.sidebar-website { display: flex; justify-content: space-between; margin: 1rem .65rem; color: #c0b9cb; font-size: .7rem; text-decoration: none; }
.sidebar-signature { display: block; margin: 0 .65rem; color: #95879e; font-size: .6rem; }
.dashboard-header { margin-left: var(--sidebar-width); background: #0e0b14a6; -webkit-backdrop-filter: blur(20px); }
.dashboard-header-inner { width: 100%; min-height: 4.5rem; padding: .75rem 2.25rem; gap: 1.25rem; flex-wrap: nowrap; }
.dashboard-breadcrumb { display: flex; align-items: center; gap: .8rem; min-width: 0; font-size: .74rem; }
.dashboard-breadcrumb span { color: var(--dash-muted); }
.dashboard-breadcrumb i { color: #786784; font-style: normal; }
.dashboard-breadcrumb strong { font-weight: 550; }
.dashboard-mobile-brand { display: none; }
.dashboard-account { margin-left: 0; }
.dashboard-top-help { margin-left: auto; color: var(--dash-muted); font-size: .7rem; text-decoration: none; }
.dashboard-top-help:hover { color: white; }
.dashboard-menu-toggle { display: none; }
.dashboard-main { width: auto; max-width: 90rem; margin: 0 0 0 var(--sidebar-width); padding: 2.5rem 2.25rem 4rem; }
.dashboard-hero { margin-bottom: 1.9rem; }
.dashboard-hero h1 { margin: .6rem 0 .7rem; max-width: none; font-size: clamp(1.6rem, 2.5vw, 2.15rem); line-height: 1.2; letter-spacing: -.04em; overflow-wrap: anywhere; }
.dashboard-hero p { max-width: 42rem; font-size: .8rem; }
.dashboard-eyebrow { font-size: .6rem; color: #b79adb; }
.dashboard-grid { gap: 1rem; }
.dashboard-stat { min-height: 8.5rem; padding: 1.2rem; border-radius: .85rem; }
.dashboard-stat strong { margin-top: 1.05rem; font-size: 1.8rem; font-weight: 650; }
.dashboard-stat-label { font-size: .59rem; letter-spacing: .08em; color: #c1b2d0; }
.dashboard-stat small { font-size: .65rem; line-height: 1.55; }
.dashboard-stat:nth-child(3) strong { font-size: 1.25rem; padding-block: .25rem; }
.dashboard-overview-workspace { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1rem; margin-top: 1.4rem; }
.dashboard-panel { padding: 1.4rem; border-radius: 1rem; background: linear-gradient(145deg, #ffffff08, #ffffff02), #100d18a3; -webkit-backdrop-filter: blur(16px); }
.dashboard-section-heading { align-items: center; }
.dashboard-section-heading h2, .overview-shortcuts h2 { margin: .4rem 0; font-size: 1.05rem; font-weight: 600; }
.dashboard-section-heading p { font-size: .72rem; }
.dashboard-text-link { color: #c3a6f0; font-size: .7rem; text-decoration: none; white-space: nowrap; }
.dashboard-text-link:hover { color: #eee4ff; }
.overview-server { display: flex; align-items: center; gap: .85rem; padding: 1rem .2rem; border-bottom: 1px solid var(--dash-line); color: inherit; text-decoration: none; }
.overview-server:last-child { border: 0; }
.overview-server:hover b { color: #c8aaf1; }
.overview-server > span { min-width: 0; }
.overview-server .server-icon { width: 2.6rem; height: 2.6rem; flex-basis: 2.6rem; border-radius: .7rem; }
.overview-server b, .overview-server small { display: block; }
.overview-server b { overflow: hidden; font-size: .8rem; font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }
.overview-server small { margin-top: .3rem; color: var(--dash-muted); font-size: .65rem; }
.overview-server i { margin-left: auto; color: #a697b3; font-style: normal; }
.dashboard-shortcut { display: flex; align-items: center; gap: .75rem; margin-top: .8rem; padding: .85rem .5rem; border-radius: .65rem; color: inherit; text-decoration: none; }
.dashboard-shortcut:hover { background: #7547cd15; }
.shortcut-icon { display: grid; width: 2rem; height: 2rem; flex: 0 0 2rem; place-items: center; border: 1px solid #7547cd35; border-radius: .6rem; background: #7547cd18; color: #bea0ec; }
.dashboard-shortcut:nth-of-type(2) .shortcut-icon { background: #9e68a618; border-color: #9e68a635; color: #d0a1d9; }
.dashboard-shortcut:nth-of-type(3) .shortcut-icon { background: #6311d518; }
.dashboard-shortcut b, .dashboard-shortcut small { display: block; }
.dashboard-shortcut b { font-size: .76rem; font-weight: 550; }
.dashboard-shortcut small { margin-top: .3rem; color: var(--dash-muted); font-size: .65rem; line-height: 1.5; }
.dashboard-shortcut i { margin-left: auto; color: #a697b3; font-style: normal; }
.server-search { display: flex; align-items: center; gap: .8rem; width: min(100%, 28rem); margin: 1.5rem 0; }
.server-search span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.server-search input { width: 100%; padding: .85rem 1rem; border: 1px solid var(--dash-line); border-radius: .8rem; background: #ffffff05; color: white; font-size: .78rem; }
.server-search input::placeholder { color: #b5a7c4; }
.server-grid { gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.server-card { position: relative; min-height: 18rem; overflow: hidden; padding: 0 1.15rem 1.15rem; border-color: #7547cd35; background: linear-gradient(155deg, #1d142a9e, #130e1be0); }
.server-card-cover { position: relative; height: 6.5rem; margin: 0 -1.15rem; overflow: hidden; background: radial-gradient(ellipse at 20% 20%, #9e68a64a, transparent 60%), linear-gradient(120deg, #7547cd65, #6311d550, #2c0c4d); }
.server-card-cover::after { position: absolute; inset: 0; content: ""; background: linear-gradient(0deg, #171020b3, transparent); }
.server-card-cover > img { width: 100%; height: 100%; object-fit: cover; filter: blur(16px); transform: scale(1.3); opacity: .45; }
.server-card-badge { position: absolute; z-index: 1; top: .8rem; right: .8rem; padding: .3rem .6rem; border: 1px solid #ffffff20; border-radius: 2rem; background: #100d1870; color: #e3d5f7; font-size: .6rem; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.server-card-badges { position: absolute; z-index: 1; top: .8rem; right: .8rem; display: flex; flex-wrap: wrap; justify-content: end; gap: .35rem; }
.server-card-badges .server-card-badge { position: static; }
.server-premium-badge { --premium-color: #d6a84d; display: inline-flex; align-items: center; flex-shrink: 0; padding: .3rem .6rem; border: 1px solid var(--premium-color); border-radius: 2rem; background: #17110bbb; color: var(--premium-color); font-size: .6rem; font-weight: 700; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.server-card-head { position: relative; flex-direction: column; gap: .8rem; align-items: flex-start; margin-top: -1.5rem; margin-bottom: 1.3rem; }
.server-card-head > div:last-child { min-width: 0; width: 100%; }
.server-card .server-icon { width: 3.5rem; height: 3.5rem; flex-basis: 3.5rem; border: 3px solid #171020; box-shadow: 0 4px 16px #0004; }
.server-card h3 { font-size: .87rem; }
.server-card p { font-size: .67rem; margin-top: .4rem; }
.server-card .dashboard-button { width: 100%; font-size: .74rem; min-height: 2.6rem; }
.server-card.offline { opacity: .63; filter: grayscale(.8); }
.server-card.offline:hover { opacity: .85; }
.server-manager { margin-top: 0; background: linear-gradient(145deg, #7547cd08, #2c0c4d20), #100d18a3; }
.server-manager > h2 { margin: 0; font-size: 1.2rem; }
.server-back { display: inline-block; margin-bottom: 1.1rem; }
.module-tabs { display: flex; gap: 1.5rem; margin-bottom: 1.6rem; border-bottom: 1px solid var(--dash-line); overflow-x: auto; }
.module-tabs a { flex-shrink: 0; padding: .2rem 0 .85rem; border-bottom: 2px solid transparent; color: var(--dash-muted); font-size: .77rem; text-decoration: none; }
.module-tabs a[aria-current] { border-color: #9e68a6; color: #e6d8f7; }
.gc-template-section { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--dash-line); }
.gc-template-section > h3 { margin: 0; }
.gc-template-notice { margin-top: 1rem; padding: .85rem 1rem; border: 1px solid #7547cd55; border-radius: .8rem; background: #7547cd12; color: #d9c9f2; font-size: .8rem; line-height: 1.6; overflow-wrap: anywhere; }
.gc-template-form { display: grid; gap: 1rem; margin-top: 1.2rem; min-width: 0; }
.gc-template-form [hidden] { display: none; }
.gc-template-form .dashboard-field { min-width: 0; }
.gc-template-input { min-height: 3.3rem; resize: vertical; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .78rem; line-height: 1.6; }
.gc-template-variables, .gc-template-preview { min-width: 0; padding: 1rem; border: 1px solid var(--dash-line); border-radius: .85rem; background: #ffffff03; }
.gc-template-variables h4, .gc-template-preview h4 { margin: 0; font-size: .86rem; }
.gc-template-variables p, .gc-template-preview > p { margin: .4rem 0 .85rem; color: var(--dash-muted); font-size: .76rem; line-height: 1.6; }
.gc-variable-buttons { display: flex; flex-wrap: wrap; gap: .4rem; }
.gc-variable-buttons button { padding: .4rem .6rem; border: 1px solid #ffffff1a; border-radius: .5rem; background: #7547cd15; color: #d9c9f2; font: .73rem ui-monospace, SFMono-Regular, Consolas, monospace; cursor: pointer; }
.gc-variable-buttons button:hover, .gc-variable-buttons button:focus-visible { border-color: var(--linker-violet); background: #7547cd35; }
.gc-template-variables .gc-variable-copy-notice { min-height: 1.6em; margin: .6rem 0 0; color: #a8dfb8; user-select: text; }
.gc-template-variables .gc-variable-copy-notice.error { color: #f3bca8; }
.gc-template-preview-card { min-width: 0; padding: 1rem; border-left: 4px solid #5a5a5a; border-radius: .45rem; background: #2b2d31; overflow-wrap: anywhere; }
.gc-template-preview-card.plaintext { border-left: 0; background: #ffffff05; }
.gc-template-preview-card .gc-preview-author { display: flex; align-items: center; gap: .45rem; min-height: 1.5rem; color: #f2f3f5; font-size: .78rem; }
.gc-preview-author-icon { flex-shrink: 0; width: 1.25rem; height: 1.25rem; border-radius: 50%; object-fit: cover; }
.gc-preview-thumbnail { float: right; width: 4.5rem; height: 4.5rem; margin: 0 0 .8rem .8rem; border-radius: .25rem; object-fit: cover; }
.gc-preview-app-badge { padding: .08rem .2rem; border-radius: .2rem; background: #5865f2; color: white; font-size: .57rem; line-height: 1.2; }
.gc-template-preview-card h5 { margin: .65rem 0 0; font-size: .95rem; white-space: pre-wrap; }
.gc-template-preview-card a { color: #78bafa; text-decoration: none; }
.gc-template-preview-card a:hover { text-decoration: underline; }
.gc-template-preview-card code { padding: .08rem .2rem; border-radius: .2rem; background: #1e1f22; font-size: .85em; }
.gc-template-preview-card p { margin: .65rem 0; color: #eee9f6; font-size: .83rem; line-height: 1.6; white-space: pre-wrap; }
.gc-template-preview-card small { display: block; color: var(--dash-muted); font-size: .7rem; white-space: pre-wrap; }
.gc-preview-image { clear: both; display: grid; width: min(100%, 25rem); min-height: 8rem; aspect-ratio: 16 / 9; place-items: center; margin-top: .9rem; border: 1px solid #ffffff12; border-radius: .3rem; background: radial-gradient(ellipse at 70% 30%, #e1ecff55 0 10%, transparent 11%), linear-gradient(150deg, #719eb1 0 45%, #47646d 45% 65%, #31434b 65%); }
.gc-preview-image span { padding: .3rem .5rem; border-radius: .3rem; background: #1e1f22c9; color: #eef2f5; font-size: .72rem; }
.gc-template-preview-card .gc-preview-footer { display: flex; align-items: center; gap: .4rem; margin-top: .7rem; color: #b5bac1; }
.gc-preview-server-icon { display: grid; flex-shrink: 0; width: 1rem; height: 1rem; place-items: center; border-radius: 50%; background: #5865f2; color: #ffffff; font-size: .6rem; }
.gc-editor-reset-notice { margin: 0; color: #a8dfb8; font-size: .76rem; line-height: 1.6; }
.server-module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.server-module-card { position: relative; display: block; padding: 1.3rem; border: 1px solid #7547cd30; border-radius: .85rem; background: radial-gradient(circle at 100% 0, #6311d524, transparent 70%), #ffffff02; color: inherit; text-decoration: none; }
.server-module-card:hover { border-color: #9e68a670; background-color: #7547cd0b; }
.module-icon { display: grid; width: 2.3rem; height: 2.3rem; place-items: center; border-radius: .65rem; background: #7547cd25; color: #c1a2f2; }
.module-icon svg { width: 1.2rem; }
.module-logs .module-icon { background: #9e68a625; color: #d7addc; }
.module-state { display: inline-block; margin: 1rem 0 .4rem; color: #b7a4c8; font-size: .63rem; }
.server-module-card h4 { margin: 0; font-size: 1rem; font-weight: 600; }
.server-module-card p { margin: .55rem 0 1.5rem; color: var(--dash-muted); font-size: .73rem; line-height: 1.6; }
.module-action { color: #c5a4ee; font-size: .72rem; }
.server-sync-note { margin: 1.4rem 0 0; color: var(--dash-muted); font-size: .65rem; }
.dashboard-panel-description { line-height: 1.65; }
.data-summary-item strong { overflow-wrap: anywhere; }
.data-panel { padding: 0; }
.profile-dropdown { background: #191222dc; backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px); }
.dashboard-page :is(a,button,input,select):focus-visible { outline: 2px solid #c6a8ff; outline-offset: 4px; }
.dashboard-skip { position: fixed; z-index: 200; top: .5rem; left: 1rem; padding: .7rem; border-radius: .5rem; background: #7547cd; color: white; transform: translateY(-150%); }
.dashboard-skip:focus { transform: none; }
.sidebar-overlay { position: fixed; z-index: 70; inset: 0; border: 0; background: #03010699; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
@media (min-width: 901px) and (max-width: 1200px) {
  :root { --sidebar-width: 14rem; }
  .dashboard-main { padding: 2rem 1.5rem; }
  .dashboard-header-inner { padding-inline: 1.5rem; }
  .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-overview-workspace { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .dashboard-sidebar { width: min(19rem, calc(100vw - 3rem)); transform: translateX(-100%); transition: transform 180ms ease; }
  .sidebar-open .dashboard-sidebar { transform: translateX(0); }
  .sidebar-open { overflow: hidden; }
  .sidebar-close { display: grid; width: 2rem; height: 2rem; place-items: center; border: 1px solid var(--dash-line); border-radius: .55rem; background: #ffffff08; color: white; font-size: 1.4rem; cursor: pointer; }
  .dashboard-header, .dashboard-main { margin-left: 0; }
  .dashboard-header-inner { min-height: 4.5rem; gap: .85rem; padding: .75rem 1.5rem; }
  .dashboard-main { padding: 2rem 1.5rem 4rem; }
  .dashboard-menu-toggle { display: grid; width: 2.3rem; height: 2.3rem; flex-shrink: 0; place-items: center; border: 1px solid var(--dash-line); border-radius: .6rem; background: #ffffff06; color: white; cursor: pointer; }
  .dashboard-menu-toggle svg { width: 1.2rem; }
  .dashboard-menu-toggle { order: 4; }
  .dashboard-account { order: 3; }
  .dashboard-top-help { order: 2; }
  .dashboard-mobile-brand { display: flex; align-items: center; gap: .4rem; color: inherit; text-decoration: none; }
  .dashboard-mobile-brand img { width: 1.8rem; height: 1.8rem; border-radius: .5rem; }
  .dashboard-mobile-brand span { font-size: 1.15rem; font-weight: 750; }
  .dashboard-breadcrumb .breadcrumb-workspace { display: none; }
  .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-overview-workspace { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .dashboard-header-inner { padding: .65rem 1rem; }
  .dashboard-top-help { display: none; }
  .dashboard-account { margin-left: auto; }
  .dashboard-breadcrumb { gap: .55rem; font-size: .7rem; }
  .dashboard-breadcrumb .dashboard-mobile-brand span { display: inline; }
  .dashboard-breadcrumb strong { display: none; }
  .dashboard-breadcrumb i { display: none; }
  .dashboard-main { padding: 1.8rem 1rem 3rem; }
  .dashboard-hero h1 { font-size: 1.75rem; }
  .dashboard-hero p { font-size: .76rem; }
  .dashboard-grid { gap: .65rem; }
  .dashboard-stat { min-height: 8.6rem; padding: .95rem; }
  .dashboard-stat-label { font-size: .55rem; }
  .dashboard-stat small { font-size: .61rem; }
  .dashboard-stat:nth-child(3) strong { font-size: 1.1rem; }
  .dashboard-panel { padding: 1.1rem; }
  .dashboard-section-heading { display: flex; align-items: center; }
  .dashboard-section-heading .dashboard-button { margin-top: 0; }
  .dashboard-overview-workspace { gap: .9rem; }
  .server-module-grid { grid-template-columns: minmax(0, 1fr); }
  .server-manager .module-tabs { gap: 1.1rem; }
  .server-manager .module-tabs a { font-size: .72rem; }
  .data-panel { padding: 0; }
  .settings-grid, .dashboard-form, .data-category-grid { grid-template-columns: minmax(0, 1fr); }
  .profile-avatar-button { width: 2.5rem; height: 2.5rem; }
  .profile-avatar { width: 2.15rem; height: 2.15rem; }
}
