@import url("./assets/colors.css");

@import url("./assets/navigation.css?v=2");
@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@600;700;800&display=swap");

:root {
  color-scheme: dark;
  --bg: #15171f;
  --panel: #101218;
  --line: rgba(255, 255, 255, 0.055);
  --text: #f7f7fb;
  --muted: #8f94a3;
  --accent: #1f6feb;
  --accent-hover: #2d7dff;
  --danger: #ed4245;
  --success: #3ba55d;
  --warning: #faa61a;
  --soft: #1a1d27;
  --soft-2: #0c0e13;
  --sidebar: #090b10;
  --panel-alt: #171a23;
  --row: #1b1e28;
  --row-hover: #202431;
  --shadow: none;
}

/* Dashboard guild switchers */
.selenium-dashboard .topbar-actions {
  flex-wrap: wrap;
}

.selenium-dashboard .topbar-server-form {
  display: block;
  margin: 0;
  flex: 0 1 280px;
  min-width: 230px;
}

* {
  box-sizing: border-box;
}

html {
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #191919;
  color: var(--text);
}

.auth-shell {
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(90deg, #090b10 0 180px, #15171f 180px 100%),
    var(--bg);
}

.auth-card {
  width: min(92vw, 520px);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

h1 {
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 1.15;
}

p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.6;
}

a.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}



button:not(:disabled):hover {
  background: var(--accent-hover);
}

button:disabled,
.button.is-disabled {
  background: #3a3f4d;
  color: #a8afbd;
  cursor: not-allowed;
}

.danger {
  background: var(--danger);
}

.ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  box-shadow: none;
}

.ghost:hover {
  background: var(--soft);
}

.dashboard-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 184px minmax(0, 1fr);
  background: var(--bg);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 16px 22px;
}

.brand-mark,
.guild-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(31, 111, 235, 0.14);
  color: white;
  font-weight: 800;
}

.brand-mark {
  width: 30px;
  height: 30px;
  color: #45a3ff;
}

.brand strong,
.user-card strong,
.selected-guild strong {
  display: block;
}

.brand span,
.user-card span,
.selected-guild span,
.sidebar-server span {
  display: block;
  color: #656a78;
  font-size: 12px;
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.sidebar-server {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin: 0 6px 22px;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

.sidebar-server .guild-mark {
  width: 38px;
  height: 38px;
}

.sidebar-server strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav {
  display: grid;
  gap: 8px;
  margin: 14px 0 20px;
}

.nav a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 32px;
  padding: 0 12px 0 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #d6d8de;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.nav a.is-active {
  background: var(--accent);
  color: white;
}

.nav a:hover {
  background: rgba(31, 111, 235, 0.16);
  color: white;
}

.nav svg,
.button svg,
button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.react-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2em;       /* или фиксированная пиксельная ширина */
  height: 2em;      /* делаем квадрат */
  line-height: 1;   /* нормальное значение */
}

.react-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.button.ghost .react-icon {
  margin-right: 8px; /* можно регулировать */
  vertical-align: middle; /* чтобы текст выровнялся по центру с иконкой */
}

.user-card {
  position: absolute;
  right: 10px;
  bottom: 18px;
  left: 10px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  object-fit: cover;
}

.dashboard-main {
  min-width: 0;
  background: var(--bg);
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(145px, 0.42fr) minmax(320px, 1fr) auto;
  gap: 22px;
  align-items: center;
  min-height: 70px;
  padding: 14px 28px 14px 30px;
  border-bottom: 0;
  background: #080a10;
  backdrop-filter: none;
}

.topbar-context {
  min-width: 0;
}

.topbar-context span {
  display: block;
  color: #5f6471;
  font-size: 11px;
  font-weight: 700;
}

.topbar-context strong {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: #f7f7fb;
  font-size: 14px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-width: 0;
}

.topbar-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  min-height: 26px;
  padding: 0 18px;
  border-radius: 999px;
  background: #151821;
  color: #f3f4f8;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}

.topbar-pill:hover,
.topbar-pill.is-active {
  background: #1f6feb;
  color: white;
}

.guild-switcher {
  display: flex;
  align-items: center;
  gap: 12px;
}

.guild-switcher form {
  margin: 0;
}

select {
  min-width: 240px;
  max-width: min(46vw, 360px);
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--text);
  padding: 0 12px;
  font: inherit;
  box-shadow: none;
}

input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--text);
  padding: 0 12px;
  font: inherit;
  box-shadow: none;
}

input::placeholder {
  color: #798294;
}

.content {
  width: 100%;
  max-width: none;
  padding: 18px 28px 32px;
  background: var(--bg);
}

.hero-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(88, 101, 242, 0.1), rgba(88, 101, 242, 0.03));
  box-shadow: var(--shadow);
}

.selected-guild {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-width: 0;
}

.selected-guild > div {
  min-width: 0;
}

.selected-guild strong {
  font-size: 20px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.guild-mark {
  width: 64px;
  height: 64px;
  overflow: hidden;
  font-size: 24px;
}

.guild-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.status-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  max-width: 100%;
  min-width: 0;
}

.pill {
    min-height: 28px;
    padding: 0 10px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 11px;
    backdrop-filter: blur(12px);
    background: rgb(193 214 255 / 7%);
    border: 1px solid rgb(187 212 237 / 12%);
}

.pill.success {
  border-color: rgba(59, 165, 93, 0.35);
  color: #9ce2b0;
}

.pill.warning {
  border-color: rgba(250, 166, 26, 0.35);
  color: #ffd18a;
}

.grid {
  display: grid;
  gap: 16px;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

.panel-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  align-items: start;
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.stat-card,
.section-card {
  padding: 18px;
}

.stat-card span,
.section-card header span,
.activity-time {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
  line-height: 1;
}

.section-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.section-card h2 {
  margin: 0;
  font-size: 18px;
}

.server-list,
.activity-list,
.action-grid {
  display: grid;
  gap: 10px;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-bottom: 16px;
}

.server-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 64px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.03);
}

.server-row:hover,
.server-row.is-active {
  border-color: rgba(88, 101, 242, 0.65);
  background: rgba(88, 101, 242, 0.14);
}

.server-row .guild-mark {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  font-size: 17px;
}

.server-row strong,
.activity-item strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-row span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}

.activity-item {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.activity-item:last-child {
  border-bottom: 0;
}

.activity-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.action-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quick-action {
  width: 100%;
  min-height: 54px;
  justify-content: flex-start;
  padding: 0 14px;
}

.notice {
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(250, 166, 26, 0.35);
  border-radius: 8px;
  background: rgba(250, 166, 26, 0.08);
  color: #ffd18a;
}

.success-notice {
  border-color: rgba(59, 165, 93, 0.35);
  background: rgba(59, 165, 93, 0.12);
  color: #a8efbf;
}

.role-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.role-chip {
  display: inline-flex;
  align-items: center;
  max-width: 180px;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(88, 101, 242, 0.12);
  color: #d6dcff;
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.role-action {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto auto;
  gap: 8px;
}

.compact-select {
  min-width: 0;
  max-width: 100%;
}

.small-button {
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
}

.empty-state {
  padding: 26px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 14px;
  margin: 0;
}

dt {
  color: var(--muted);
}

dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 16px;
  align-items: start;
}

.command-card {
  background:
    linear-gradient(180deg, rgba(88, 101, 242, 0.075), rgba(255, 255, 255, 0.025)),
    var(--panel);
}

.primary-command {
  border-color: rgba(88, 101, 242, 0.34);
  background:
    linear-gradient(135deg, rgba(88, 101, 242, 0.16), rgba(255, 255, 255, 0.025) 55%),
    var(--panel);
}

.section-card header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.role-create-line {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 96px auto;
  gap: 12px;
  align-items: end;
}

.color-field input[type='color'] {
  min-width: 0;
  width: 96px;
  padding: 4px;
}

.form-stack {
  display: grid;
  gap: 14px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.toggle-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
}

.toggle-chip input {
  width: 16px;
  min-height: 16px;
  margin: 0;
  accent-color: var(--accent);
}

.permission-group {
  display: grid;
  gap: 10px;
}

.permission-group strong {
  font-size: 13px;
  color: var(--muted);
}

.permission-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.compact-permissions .toggle-chip {
  min-height: 34px;
  font-size: 13px;
}

.resource-list {
  display: grid;
  gap: 12px;
}

.role-editor-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02)),
    var(--panel);
  transition: border-color 120ms ease, background 120ms ease, transform 120ms ease;
}

.role-editor-row:hover {
  border-color: rgba(88, 101, 242, 0.42);
  background:
    linear-gradient(180deg, rgba(88, 101, 242, 0.08), rgba(255, 255, 255, 0.02)),
    var(--panel);
  transform: translateY(-1px);
}

.role-editor-row.is-locked {
  opacity: 0.76;
}

.resource-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.resource-row.compact {
  padding: 12px;
}

.resource-meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.resource-meta strong,
.template-head strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resource-meta span,
.template-head span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}

.resource-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.16);
}

.swatch.large {
  width: 24px;
  height: 24px;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.template-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.mini-template {
  padding: 12px;
}

.mini-template .actions {
  justify-content: flex-start;
}

.mini-template button {
  width: 100%;
}

.template-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.details-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.details-card summary {
  list-style: none;
  cursor: pointer;
}

.details-card summary::-webkit-details-marker {
  display: none;
}

.details-card .form-stack {
  padding: 16px;
  border-top: 1px solid var(--line);
  background: rgba(17, 18, 20, 0.32);
}

.role-editor-form {
  gap: 16px;
}

.editor-heading {
  display: grid;
  gap: 4px;
}

.editor-heading strong {
  font-size: 15px;
}

.editor-heading span {
  color: var(--muted);
  font-size: 13px;
}

.top-gap {
  margin-top: 14px;
}

.backup-card {
  background:
    linear-gradient(180deg, rgba(59, 165, 93, 0.1), rgba(255, 255, 255, 0.025)),
    var(--panel);
}

.dashboard-page .brand strong {
  font-size: 17px;
  letter-spacing: 0;
}

.dashboard-page .brand-mark {
  background: transparent;
  font-size: 0;
  position: relative;
}

.dashboard-page .brand-mark::before,
.dashboard-page .brand-mark::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 10px;
  border: 3px solid #1f8bff;
  border-left: 0;
  border-bottom: 0;
  border-radius: 100% 100% 0 0;
  transform: rotate(-24deg);
}

.dashboard-page .brand-mark::after {
  transform: rotate(156deg);
  opacity: 0.9;
}

.dashboard-page .guild-switcher select {
  min-width: 172px;
  max-width: 220px;
  border-radius: 999px;
  background: #171a23;
  color: #e7e9ee;
  font-size: 12px;
}

.dashboard-page .guild-switcher .button,
.dashboard-page .guild-switcher button {
  min-height: 30px;
  border-radius: 999px;
  padding: 0 14px;
  font-size: 12px;
}

.dashboard-page .guild-switcher .danger {
  background: #1b1e27;
  color: #f06b6e;
}

.dashboard-page .hero-band {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.dashboard-page .guild-mark {
  border-radius: 50%;
  background: #10131c;
}

.dashboard-page .stats-grid {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.dashboard-page .stat-card {
  background: #101218;
  border-color: rgba(255, 255, 255, 0.035);
}

.dashboard-page .section-card {
  background: #101218;
  border-color: rgba(255, 255, 255, 0.04);
}

.dashboard-page .command-card,
.dashboard-page .primary-command,
.dashboard-page .backup-card {
  background: #101218;
}

.dashboard-page .primary-command {
  border-color: rgba(31, 111, 235, 0.34);
}

.dashboard-page .server-row,
.dashboard-page .member-row,
.dashboard-page .role-editor-row,
.dashboard-page .resource-row,
.dashboard-page .channel-row,
.dashboard-page .template-card,
.dashboard-page .details-card {
  border: 0;
  border-radius: 8px;
  background: var(--row);
  box-shadow: none;
}

.dashboard-page .server-row:hover,
.dashboard-page .server-row.is-active,
.dashboard-page .member-row:hover,
.dashboard-page .role-editor-row:hover,
.dashboard-page .resource-row:hover,
.dashboard-page .channel-row:hover {
  background: var(--row-hover);
  transform: none;
}

.dashboard-page .role-list {
  margin-top: 7px;
}

.dashboard-page .role-chip {
  min-height: 18px;
  max-width: 150px;
  border: 0;
  border-radius: 4px;
  padding: 0 8px;
  font-size: 10px;
  font-weight: 650;
}

.dashboard-page .role-editor-row {
  align-items: start;
}

.dashboard-page .resource-meta {
  grid-template-columns: 22px minmax(0, 1fr);
}

.dashboard-page .swatch.large {
  width: 18px;
  height: 18px;
}

.dashboard-page .toggle-chip {
  min-height: 32px;
  border-radius: 6px;
  background: #171a23;
  font-size: 12px;
}

.dashboard-page .toggle-chip input {
  width: 14px;
  min-height: 14px;
}

.dashboard-page .permission-grid {
  gap: 6px;
}

.dashboard-page .small-button {
  min-height: 32px;
}

.dashboard-page .details-card .form-stack {
  background: #11141c;
}

.members-frame-page .moderation-actions,
.members-frame-page .role-action {
  display: none;
}

.benefit {
  position: absolute;
  max-width: 360px;
}

.benefit h3 {
  margin: 0 0 16px;
  color: #e3e5ec;
  font-size: 31px;
  font-weight: 550;
}

.benefit p {
  margin: 0;
  color: #a6adbc;
  font-size: 16px;
  line-height: 1.24;
}

.benefit-left {
  top: 132px;
  left: 58px;
}

.benefit-audit {
  top: 500px;
  left: 58px;
}

.benefit-mod {
  top: 306px;
  right: 138px;
}

.benefit-visual {
  position: absolute;
  display: grid;
  place-items: center;
  color: #1f7af0;
}

.benefit-visual svg {
  width: 92px;
  height: 92px;
}

.visual-code {
  top: 155px;
  right: 310px;
}

.visual-shield {
  top: 360px;
  left: 360px;
}

.visual-audit {
  top: 530px;
  right: 320px;
}

.benefit-line {
  position: absolute;
  border-color: #828896;
  border-style: dotted;
  opacity: 0.75;
}

.line-one {
  top: 250px;
  left: 540px;
  width: 86px;
  border-width: 0 0 2px;
}

.line-two {
  top: 250px;
  left: 626px;
  height: 280px;
  border-width: 0 0 0 2px;
}

.line-three {
  top: 530px;
  left: 626px;
  width: 78px;
  border-width: 0 0 2px;
}

.selenium-dashboard {
  --bg: #15171b;
  --panel: #0f1117;
  --panel-alt: #171a22;
  --row: #20232d;
  --row-hover: #252936;
  --sidebar: #0b0d13;
  background: #15171b;
}

.selenium-dashboard .dashboard-shell {
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 100vh;
  background: #15171b;
}

.selenium-dashboard .dashboard-main {
  background: #15171b;
}

.selenium-dashboard .topbar {
  position: sticky;
  min-height: 60px;
  padding: 0 25px 0 0;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0;
  background: #0b0d13;
}

.selenium-dashboard .topbar-context,
.selenium-dashboard .guild-switcher form {
  display: none;
}

.selenium-dashboard .topbar-menu {
  position: absolute;
  top: 15px;
  left: calc(50vw - 240px);
  gap: 30px;
  transform: translateX(-50%);
}

.selenium-dashboard .topbar-pill,
.selenium-dashboard .topbar-pill.is-active {
  min-width: 148px;
  min-height: 30px;
  padding: 0 20px;
  background: #151821;
  color: #f4f5fb;
  font-size: 14px;
  font-weight: 650;
}

.selenium-dashboard .topbar-pill:hover {
  border-color: rgba(37, 112, 240, 0.62);
  box-shadow: 0 0 24px rgba(37, 112, 240, 0.32);
}

.selenium-dashboard .guild-switcher {
  justify-self: end;
  gap: 14px;
}

.selenium-dashboard .guild-switcher .button {
  min-width: 192px;
  min-height: 30px;
  padding: 0 20px;
  border: 0;
  background: #151821;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.selenium-dashboard .guild-switcher .button svg {
  display: none;
}

.selenium-dashboard .topbar-avatar {
  width: 38px;
  height: 38px;
  border: 2px solid #1f6feb;
  border-radius: 50%;
  object-fit: cover;
}

.bot-loading-banner {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid rgba(250, 166, 26, 0.28);
  background: rgba(15, 18, 27, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  transform: translateX(-50%);
  animation: bot-loading-in 0.25s ease-out;
}

.bot-loading-banner strong {
  display: block;
  color: #f7f8fc;
  font-size: 13px;
  font-weight: 800;
}

.bot-loading-banner small {
  display: block;
  margin-top: 2px;
  color: rgba(224, 231, 246, 0.5);
  font-size: 11.5px;
}

.bot-loading-spinner {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(250, 166, 26, 0.25);
  border-top-color: #faa61a;
  border-radius: 50%;
  animation: bot-loading-spin 0.8s linear infinite;
}

@keyframes bot-loading-spin {
  to { transform: rotate(360deg); }
}

@keyframes bot-loading-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 640px) {
  .bot-loading-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    transform: none;
  }
}

.selenium-dashboard .content {
  padding: 0;
  background: #15171b;
}

.settings-content {
  padding: 0 25px 0 0 !important;
}

.settings-frame {
  display: grid;
  grid-template-columns: 376px minmax(0, 1fr);
  gap: 24px;
  min-height: 522px;
  margin: 0;
  padding: 26px 24px;
  border: 0;
  border-radius: 8px;
  background: #171a22;
}

.settings-left-column,
.settings-right-column {
  display: grid;
  gap: 26px;
  align-content: start;
}

.settings-card {
  display: grid;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 12px;
  background: #0f1117;
}

.settings-card h2 {
  margin: 0;
  color: #f4f5fb;
  font-size: 17px;
  font-weight: 760;
}

.settings-card select,
.settings-card input {
  width: 100%;
  max-width: none;
}

.settings-card input[type='number'] {
  padding-right: 54px;
}

.settings-card .pretty-check {
  width: 100%;
  justify-content: flex-start;
  min-height: 38px;
  border-radius: 10px;
}

.settings-card .pretty-check > span:last-child {
  overflow: hidden;
  color: #d9dce6;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selenium-dashboard .field {
  gap: 6px;
}

.selenium-dashboard .field span {
  color: #6f7482;
  font-size: 12px;
  font-weight: 600;
}

.selenium-dashboard input,
.selenium-dashboard select {
    width: 100%;
    min-height: 45px;
    resize: vertical;
    padding: 13px 14px;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 16px;
    color: #6f7482;
    font: inherit;
    line-height: 1.45;
    background: none;
    font-size: 15px;
    outline: none;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}



.selenium-dashboard input:focus-visible {
      border-color: rgba(37, 112, 240, 0.62);
    box-shadow: 0 0 24px rgba(37, 112, 240, 0.32);
    cursor: text;
}


.selenium-dashboard input[type='checkbox'] {
  width: 15px;
  min-height: 15px;
  padding: 0;
  border-radius: 2px;
}

.check-line {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #d7d9e2;
  font-size: 13px;
}

.check-line input {
  width: 15px;
  min-height: 15px;
  accent-color: #1f6feb;
}

.with-suffix {
  position: relative;
}

.with-suffix em {
  position: absolute;
  right: 16px;
  bottom: 12px;
  color: #f0f1f6;
  font-size: 12px;
  font-style: normal;
}

.settings-actions {
  display: flex;
  justify-content: flex-end;
}

.settings-actions button {
  min-width: 205px;
  min-height: 32px;
  border-radius: 999px;
  font-size: 13px;
}

.role-frame-list {
  display: grid;
  gap: 16px;
  width: 272px;
}

.role-frame-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 18px 16px;
  gap: 18px;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #0f1117;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.role-frame-row:hover,
.role-frame-row.is-selected {
  border-color: rgba(31, 111, 235, 0.2);
  background: #151a24;
}

.role-frame-row:focus-visible {
  outline: 2px solid rgba(31, 111, 235, 0.78);
  outline-offset: 2px;
}

.role-frame-row.is-locked {
  opacity: 0.78;
}

.role-check {
  position: relative;
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border: 1px solid #5b606b;
  border-radius: 2px;
  background: #2a2d34;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: background 140ms ease, border-color 140ms ease;
}

.role-check::after {
  width: 8px;
  height: 4px;
  border: solid #fff;
  border-width: 0 0 2px 2px;
  content: '';
  opacity: 0;
  transform: translateY(-1px) rotate(-45deg);
}

.role-frame-row.is-selected .role-check {
  border-color: #1f7af0;
  background: #1f6feb;
}

.role-frame-row.is-selected .role-check::after {
  opacity: 1;
}

.role-frame-name {
  overflow: hidden;
  color: #f1f2f7;
  font-size: 16px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trash-button {
  width: 18px;
  min-height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ed4245;
}

.trash-button:hover {
  background: transparent;
  color: #ff5960;
}

.trash-button svg {
  width: 15px;
  height: 15px;
}

.role-edit-frame {
  position: relative;
  min-width: 0;
  padding-left: 12px;
}

.role-edit-frame header {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.role-edit-frame header span {
  color: #737887;
  font-size: 12px;
}

.role-edit-divider {
  position: absolute;
  top: 40px;
  left: 0;
  width: 2px;
  height: 170px;
  background: #252a3a;
}

.role-panel-stack {
  width: min(100%, 690px);
  margin: 18px 0 0 28px;
}

.role-editor-panel[hidden] {
  display: none;
}

.role-panel-card {
  display: grid;
  gap: 18px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 12px;
  background: #0f1117;
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.2);
}

.role-panel-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.role-panel-head h3 {
  margin: 0;
  color: #f3f4fb;
  font-size: 20px;
  font-weight: 760;
}

.role-panel-head p {
  margin: 4px 0 0;
  color: #7d8291;
  font-size: 12px;
  line-height: 1.3;
}

.role-panel-empty {
  color: #dfe2ea;
}

.role-panel-empty strong {
  display: block;
  margin-bottom: 6px;
}

.role-panel-empty span {
  display: block;
  color: #858b99;
  font-size: 13px;
  line-height: 1.45;
}

.pretty-check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pretty-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 0 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: #e8eaf1;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.pretty-check:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
}

.pretty-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pretty-box {
  position: relative;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: rgba(8, 13, 22, 0.7);
  transition: border-color 0.15s, background 0.15s;
}

.pretty-box::after {
  width: 9px;
  height: 5px;
  border: solid #fff;
  border-width: 0 0 2px 2px;
  content: '';
  opacity: 0;
  transform: translateY(-1px) rotate(-45deg);
  transition: opacity 0.1s;
}

.pretty-check input:checked + .pretty-box {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.16);
}

.pretty-check input:checked + .pretty-box::after {
  opacity: 1;
}

.role-panel-permissions {
  display: grid;
  gap: 10px;
}

.role-panel-permissions .compact-permissions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.role-panel-permissions .toggle-chip {
  min-height: 34px;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  background: #151821;
  font-size: 12px;
}

.role-panel-permissions .toggle-chip input {
  position: relative;
  width: 15px;
  min-height: 15px;
  margin: 0;
  padding: 0;
  border: 1px solid #5b606b;
  border-radius: 3px;
  appearance: none;
  background: #252932;
}

.role-panel-permissions .toggle-chip input:checked {
  border-color: #1f7af0;
  background:
    linear-gradient(135deg, transparent 0 45%, #fff 45% 55%, transparent 55%) center / 9px 9px no-repeat,
    #1f6feb;
}

.role-panel-actions {
  display: flex;
  justify-content: flex-end;
}

.role-panel-actions button {
  min-width: 178px;
  min-height: 34px;
  border-radius: 999px;
}

.role-frame-search {
  position: absolute;
  top: 24px;
  right: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 156px;
  margin: 0;
  color: #7e8391;
}

.role-frame-search svg {
  width: 20px;
  height: 20px;
}

.role-frame-search input {
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9297a6;
  font-size: 12px;
}

.selenium-dashboard input:disabled,
.selenium-dashboard select:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.pretty-check:has(input:disabled) {
  opacity: 0.65;
  cursor: default;
}

.pretty-switch {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: none;
  cursor: pointer;
}

.pretty-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pretty-switch-track {
  position: relative;
  flex: 0 0 auto;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.pretty-switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #d7dff0;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, background 0.2s ease;
}

.pretty-switch-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.pretty-switch-copy strong {
  color: #eef3ff;
  font-size: 14px;
  font-weight: 820;
}

.pretty-switch-copy small {
  color: rgba(187, 200, 226, 0.58);
  line-height: 1.45;
}

.pretty-switch input:checked + .pretty-switch-track {
  border-color: rgba(59, 130, 246, 0.42);
  background: linear-gradient(180deg, #3b82f6, #2563eb);
}

.pretty-switch input:checked + .pretty-switch-track .pretty-switch-thumb {
  transform: translateX(20px);
  background: #ffffff;
}

.pretty-switch:has(input:disabled) {
  opacity: 0.65;
  cursor: default;
}

.role-chip-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--role-color);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.benefit {
  max-width: 282px;
}

.benefit h3 {
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 560;
}

.benefit p {
  color: #aeb4c2;
  font-size: 11px;
  line-height: 1.3;
}

.benefit-left {
  top: 118px;
  left: 36px;
}

.benefit-audit {
  top: 356px;
  left: 36px;
}

.benefit-mod {
  top: 226px;
  right: 78px;
  max-width: 270px;
}

.benefit-visual svg {
  width: 72px;
  height: 72px;
}

.visual-code {
  top: 150px;
  right: 214px;
}

.visual-shield {
  top: 300px;
  left: 226px;
}

.visual-audit {
  top: 462px;
  right: 220px;
}

.line-one {
  top: 266px;
  left: 300px;
  width: 68px;
}

.line-two {
  top: 266px;
  left: 368px;
  height: 226px;
}

.line-three {
  top: 492px;
  left: 368px;
  width: 60px;
}

@media (max-width: 640px) {
  .topbar,
  .content {
    padding: 18px;
  }

  .nav,
  .stats-grid,
  .action-grid,
  .guild-switcher,
  .toolbar,
  .member-search,
  .member-row,
  .member-profile,
  .role-action,
  .role-create-line,
  .form-grid.two-col,
  .template-grid,
  .resource-row,
  .role-editor-row,
  .channel-row {
    grid-template-columns: 1fr;
  }

  .nav a {
    justify-content: center;
  }

  .topbar-menu {
    gap: 8px;
  }

  .topbar-pill {
    min-width: 0;
    flex: 1 0 auto;
  }

  .member-actions {
    justify-content: flex-start;
  }

  .moderation-actions {
    justify-content: flex-start;
  }

  .resource-tags {
    justify-content: flex-start;
  }

  .guild-switcher {
    display: grid;
  }

  select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
}

.home-shell {
  width: min(1280px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px 58px 54px;
}

.home-topbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 52px;
  padding: 4px 0;
}

.home-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f4f6fb;
  text-decoration: none;
}

.home-brand-mark {
  width: 30px;
  height: 24px;
}

.home-brand strong {
  font-size: 14px;
  font-weight: 760;
}

.home-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
}

.home-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  min-height: 36px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(21, 24, 34, 0.78);
  color: #eef1f8;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  backdrop-filter: blur(6px);
}

.home-nav a:hover {
  border-color: rgba(59, 135, 255, 0.55);
  background: rgba(31, 111, 235, 0.22);
}

.home-login {
  min-height: 36px;
  border-radius: 999px;
  padding: 0 16px;
  font-size: 13px;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(280px, 1.1fr);
  align-items: center;
  min-height: 420px;
  gap: 18px;
}

.home-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 14px;
  border: 1px solid rgba(95, 159, 255, 0.45);
  border-radius: 999px;
  background: rgba(31, 111, 235, 0.16);
  color: #d2e6ff;
  font-size: 12px;
  font-weight: 650;
}

.home-copy h1 {
  margin: 20px 0 20px;
  color: #eff3f9;
  font-size: clamp(48px, 7vw, 74px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0;
}

.home-copy h1 span {
  font-weight: 700;
}

.home-copy p {
  width: min(100%, 382px);
  margin: 0 0 28px;
  color: #aeb6c8;
  font-size: 18px;
  line-height: 1.38;
}

.home-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.home-cta .button {
  min-height: 44px;
  border-radius: 999px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 700;
}

.home-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.home-kpis article {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: rgba(12, 15, 24, 0.6);
}

.home-kpis strong {
  display: block;
  color: #edf3ff;
  font-size: 13px;
  font-weight: 700;
}

.home-kpis span {
  display: block;
  margin-top: 4px;
  color: #9da8bc;
  font-size: 12px;
  line-height: 1.3;
}

.home-hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 360px;
}

.home-orb {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(10, 14, 24, 0.72);
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.35);
}

.home-orb-main {
  position: relative;
  display: grid;
  place-items: center;
  width: 300px;
  height: 250px;
  border-radius: 26px;
  background:
    radial-gradient(180px 110px at 40% 40%, rgba(46, 129, 255, 0.2), transparent 72%),
    rgba(10, 14, 24, 0.78);
}

.home-hero-logo {
  width: 168px;
  height: 126px;
  filter: drop-shadow(0 8px 25px rgba(31, 111, 235, 0.4));
}

.home-orb-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  top: 18px;
  right: 10px;
  border-radius: 999px;
  color: #d9e8ff;
  font-size: 12px;
  font-weight: 650;
}

.home-orb-chip svg {
  width: 16px;
  height: 16px;
  color: #4f93ff;
}

.home-orb-chip.alt {
  top: auto;
  right: auto;
  left: 16px;
  bottom: 18px;
}

.home-orb-chip.tiny {
  top: auto;
  right: 30px;
  bottom: -16px;
  min-height: 34px;
  min-width: 34px;
  padding: 0;
  justify-content: center;
}

.home-orb-chip.tiny span {
  display: none;
}

.home-features {
  margin-top: 16px;
  padding: 28px 26px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(19, 23, 34, 0.94);
}

.home-features-head h2 {
  margin: 0;
  color: #edf2fb;
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 760;
  line-height: 1.1;
}

.home-features-head p {
  width: min(100%, 720px);
  margin: 12px 0 0;
  color: #9ca6ba;
  font-size: 16px;
  line-height: 1.45;
}

.home-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.home-feature {
  padding: 20px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(15, 19, 30, 0.86), rgba(9, 12, 20, 0.86));
}

.home-feature-icon {
  display: inline-grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(31, 111, 235, 0.14);
  color: #2d7dff;
}

.home-feature-icon svg {
  width: 26px;
  height: 26px;
}

.home-feature h3 {
  margin: 14px 0 10px;
  color: #edf1f8;
  font-size: 24px;
  font-weight: 760;
}

.home-feature p {
  margin: 0;
  color: #aab3c4;
  font-size: 14px;
  line-height: 1.4;
}

@media (max-width: 980px) {
  .home-shell {
    padding: 16px 20px 30px;
  }

  .home-topbar {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .home-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .home-hero {
    grid-template-columns: 1fr;
    gap: 16px;
    min-height: auto;
  }

  .home-hero-art {
    justify-content: flex-start;
    min-height: 280px;
  }

  .home-orb-main {
    width: 240px;
    height: 200px;
  }

  .home-hero-logo {
    width: 140px;
    height: 104px;
  }

  .home-kpis,
  .home-feature-grid {
    grid-template-columns: 1fr;
  }
}

.fresh-home-shell {
  width: min(1360px, 100%);
  margin: 0 auto;
  padding: 28px 24px 28px;
  display: grid;
  gap: 20px;
}

.fresh-home-topbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 20px;
  min-height: 84px;
}

.fresh-home-brand-stack {
  display: grid;
  gap: 10px;
}

.fresh-home-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f3f7ff;
  text-decoration: none;
}

.fresh-home-brand-mark {
  width: 30px;
  height: 24px;
}

.fresh-home-brand strong {
  font-size: 16px;
  font-weight: 780;
}

.fresh-home-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 30px;
  padding: 0 14px;
  border: 1px solid rgba(74, 144, 255, 0.55);
  border-radius: 999px;
  background: rgba(18, 29, 52, 0.82);
  color: #cfe1ff;
  font-size: 13px;
  font-weight: 650;
}

.fresh-home-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding-top: 10px;
}

.fresh-home-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  min-height: 38px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  background: rgba(18, 24, 37, 0.86);
  color: #eef2fa;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.fresh-home-nav a:hover {
  border-color: rgba(89, 155, 255, 0.56);
  background: rgba(31, 111, 235, 0.24);
}

.fresh-home-login {
  margin-top: 6px;
  min-height: 42px;
  border-radius: 10px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 750;
}

.fresh-home-hero {
  display: grid;
  grid-template-columns: minmax(480px, 0.9fr) minmax(420px, 1.1fr);
  align-items: start;
  gap: 44px;
  min-height: 305px;
}

.fresh-home-copy h1 {
  margin: 48px 0 16px;
  font-size: 76px;
  font-weight: 320;
  line-height: 0.95;
}

.fresh-home-copy h1 span {
  font-weight: 760;
}

.fresh-home-copy p {
  width: 555px;
  max-width: 100%;
  margin: 0 0 24px;
  color: #b4bfd4;
  font-size: 16px;
  line-height: 1.42;
}

.fresh-home-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.fresh-home-cta .button {
  min-height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid rgba(112, 176, 255, 0.2);
  font-size: 14px;
  font-weight: 760;
}

.fresh-home-visual {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 305px;
  padding-top: 36px;
}

.fresh-home-panel {
  position: relative;
  display: grid;
  place-items: center;
  width: 300px;
  height: 250px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 28px;
  background: radial-gradient(200px 110px at 35% 36%, rgba(31, 111, 235, 0.25), rgba(4, 8, 16, 0.92) 72%);
  overflow: hidden;
}

.fresh-home-panel-glow {
  position: absolute;
  top: -120px;
  left: -90px;
  width: 290px;
  height: 230px;
  background: radial-gradient(circle, rgba(37, 127, 255, 0.34) 0, transparent 70%);
}

.fresh-home-panel-logo {
  position: relative;
  width: 50px;
  height: 38px;
}

.fresh-home-pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  background: rgba(9, 14, 24, 0.92);
  color: #e8eefb;
  font-size: 12px;
  font-weight: 700;
}

.fresh-home-pill svg {
  width: 15px;
  height: 15px;
  color: #5ca3ff;
}

.fresh-home-pill-top {
  top: 0;
  right: 92px;
}

.fresh-home-pill-bottom {
  left: 0;
  bottom: 0;
}

.fresh-home-fab {
  position: absolute;
  right: 118px;
  bottom: 16px;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  background: rgba(7, 12, 22, 0.9);
  color: #8eb8ff;
}

.fresh-home-fab svg {
  width: 18px;
  height: 18px;
}

.fresh-home-strip {
  display: flex;
  gap: 10px;
  align-items: stretch;
  margin-top: -8px;
  padding-bottom: 0;
}

.fresh-home-card {
  width: 165px;
  min-height: 74px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  background: rgba(7, 11, 19, 0.82);
}

.fresh-home-card h2 {
  margin: 0;
  color: #eef2fc;
  font-size: 15px;
  font-weight: 720;
}

.fresh-home-card p {
  margin: 5px 0 0;
  color: #9daac2;
  font-size: 13px;
  line-height: 1.3;
}

@media (max-width: 980px) {
  .fresh-home-shell {
    padding: 16px 14px 16px;
    gap: 14px;
  }

  .fresh-home-topbar {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .fresh-home-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 0;
  }

  .fresh-home-hero {
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: auto;
  }

  .fresh-home-visual {
    justify-items: start;
    min-height: 310px;
    padding-top: 20px;
  }

  .fresh-home-pill-top {
    right: auto;
    left: 180px;
  }

  .fresh-home-strip {
    flex-wrap: wrap;
  }
}

.start-home-shell {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 28px 18px 0;
  background:
    linear-gradient(180deg, #071f3e 0 430px, #04070d 430px 100%);
}

.start-home-header {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr) 150px;
  align-items: start;
  gap: 18px;
  min-height: 102px;
}

.start-home-brand-block {
  display: grid;
  gap: 10px;
}

.start-home-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: #f3f7ff;
  text-decoration: none;
}

.start-home-brand-mark {
  width: 30px;
  height: 24px;
}

.start-home-brand strong {
  color: #f4f7ff;
  font-size: 16px;
  font-weight: 800;
}

.start-home-brand-block > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 14px;
  border: 1px solid rgba(78, 146, 255, 0.68);
  border-radius: 999px;
  background: rgba(16, 34, 66, 0.72);
  color: #f0f5ff;
  font-size: 13px;
  font-weight: 700;
}

.start-home-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding-top: 7px;
}

.start-home-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 999px;
  background: rgba(17, 23, 35, 0.9);
  color: #f2f6ff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.start-home-nav a:hover {
  border-color: rgba(56, 136, 255, 0.6);
  background: rgba(31, 111, 235, 0.22);
}

.start-home-login {
  justify-self: end;
  min-width: 102px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 7px;
  font-size: 15px;
  font-weight: 800;
}

.start-home-hero {
  display: grid;
  grid-template-columns: 575px minmax(420px, 1fr);
  gap: 36px;
  align-items: start;
  min-height: 315px;
}

.start-home-copy {
  padding-top: 54px;
}

.start-home-copy h1 {
  margin: 0 0 16px;
  color: #f2f7ff;
  font-size: 76px;
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: 0;
}

.start-home-copy h1 span {
  font-weight: 800;
}

.start-home-copy p {
  width: 565px;
  max-width: 100%;
  margin: 0 0 24px;
  color: #ccd7eb;
  font-size: 16px;
  line-height: 1.45;
}

.start-home-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.start-home-cta .button {
  min-width: 188px;
  min-height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  background: #1f7af0;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.start-home-cta .button:hover,
.start-home-login:hover {
  background: #2d83ff;
}

.start-home-preview {
  position: relative;
  min-height: 315px;
  padding-top: 56px;
}

.start-home-panel {
  position: relative;
  display: grid;
  place-items: center;
  width: 300px;
  height: 250px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 28px;
  background: radial-gradient(210px 100px at 34% 37%, rgba(31, 111, 235, 0.24), rgba(5, 9, 17, 0.96) 72%);
  overflow: hidden;
}

.start-home-panel-light {
  position: absolute;
  top: 52px;
  left: 0;
  width: 260px;
  height: 80px;
  background: radial-gradient(ellipse at center, rgba(42, 126, 255, 0.16), transparent 72%);
}

.start-home-panel-logo {
  position: relative;
  width: 50px;
  height: 38px;
}

.start-home-pill {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  background: #070b12;
  color: #eef4ff;
  font-size: 12px;
  font-weight: 800;
}

.start-home-pill svg {
  width: 15px;
  height: 15px;
  color: #5ca3ff;
}

.start-home-pill-raid {
  top: 10px;
  right: 115px;
}

.start-home-pill-members {
  left: 26px;
  bottom: 1px;
}

.start-home-fab {
  position: absolute;
  right: 86px;
  bottom: 39px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  background: #07101d;
  color: #8dbaff;
}

.start-home-fab svg {
  width: 18px;
  height: 18px;
}

.start-home-cards {
  display: flex;
  gap: 10px;
  align-items: stretch;
  margin-top: 0;
}

.start-home-card {
  width: 165px;
  min-height: 84px;
  padding: 13px 12px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 8px;
  background: rgba(7, 11, 19, 0.82);
}

.start-home-card h2 {
  margin: 0;
  color: #f3f7ff;
  font-size: 15px;
  font-weight: 800;
}

.start-home-card p {
  margin: 7px 0 0;
  color: #aebbd2;
  font-size: 13px;
  line-height: 1.32;
}

@media (max-width: 980px) {
  .start-home-shell {
    padding: 18px 14px 28px;
  }

  .start-home-header,
  .start-home-hero {
    grid-template-columns: 1fr;
  }

  .start-home-header {
    gap: 14px;
  }

  .start-home-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 0;
  }

  .start-home-login {
    justify-self: start;
  }

  .start-home-copy {
    padding-top: 18px;
  }

  .start-home-copy h1 {
    font-size: 54px;
  }

  .start-home-preview {
    min-height: 320px;
    padding-top: 28px;
  }

  .start-home-panel {
    margin: 0;
  }

  .start-home-pill-raid {
    right: auto;
    left: 210px;
  }

  .start-home-pill-members {
    left: 0;
  }

  .start-home-fab {
    right: auto;
    left: 310px;
  }

  .start-home-cards {
    flex-wrap: wrap;
  }
}

.selenium-benefits {
  padding: 42px 50px 46px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 42%, rgba(37, 112, 240, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 44%),
    #111522;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.24);
}

.selenium-benefits h2 {
  margin: 0 0 36px;
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0;
  text-align: center;
}

.selenium-benefits-grid {
  display: grid;
  grid-template-columns: minmax(300px, 360px) 300px minmax(310px, 370px);
  align-items: start;
  justify-content: space-between;
  gap: 46px;
  min-height: 552px;
}

.selenium-benefits-left {
  display: flex;
  flex-direction: column;
  gap: 116px;
  padding-top: 10px;
}

.selenium-benefits-right {
  padding-top: 78px;
}

.selenium-benefit-text h3 {
  margin: 0;
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
}

.selenium-benefit-text p {
  max-width: 340px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
  line-height: 1.56;
}

.selenium-benefits-map {
  position: relative;
  height: 548px;
}

.map-line,
.map-dot,
.benefit-visual-card,
.benefit-visual-shield {
  position: absolute;
}

.map-line {
  z-index: 1;
  border-color: rgba(255, 255, 255, 0.2);
  border-style: dashed;
}

.map-line-vertical {
  left: 50%;
  top: 116px;
  height: 314px;
  border-left-width: 1px;
}

.map-line-top {
  left: 50%;
  top: 116px;
  width: 32px;
  border-top-width: 1px;
}

.map-line-middle {
  left: 126px;
  top: 278px;
  width: 24px;
  border-top-width: 1px;
}

.map-line-bottom {
  left: 50%;
  top: 430px;
  width: 32px;
  border-top-width: 1px;
}

.map-dot {
  z-index: 2;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.04);
}

.map-dot-top {
  left: calc(50% + 32px);
  top: 113px;
}

.map-dot-middle {
  left: 121px;
  top: 275px;
}

.map-dot-bottom {
  left: calc(50% + 32px);
  top: 427px;
}

.benefit-visual-card {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  left: 176px;
  width: 98px;
  height: 98px;
  color: #2570f0;
  filter: drop-shadow(0 18px 26px rgba(37, 112, 240, 0.18));
}

.benefit-visual-card svg {
  width: 92px;
  height: 92px;
}

.visual-card-code {
  top: 54px;
}

.visual-card-audit {
  top: 370px;
}

.benefit-visual-shield {
  z-index: 3;
  left: 22px;
  top: 226px;
  color: #2570f0;
  filter: drop-shadow(0 16px 26px rgba(37, 112, 240, 0.18));
}

.benefit-visual-shield svg {
  width: 104px;
  height: 104px;
}

@media (max-width: 980px) {

  .selenium-benefits {
    padding: 34px 24px;
  }

  .selenium-benefits-grid {
    min-height: auto;
    gap: 36px;
  }

  .selenium-benefits-map {
    display: none;
  }

  .selenium-benefits-right {
    padding-top: 0;
  }
}

.selenium-dashboard .dashboard-shell {
  grid-template-columns: 240px minmax(0, 1fr);
  grid-template-rows: 72px minmax(0, 1fr);
  background: #15171b;
}

.selenium-dashboard .topbar {
  grid-column: 1 / -1;
  grid-row: 1;
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 240px minmax(360px, 1fr) auto;
  align-items: center;
  min-height: 72px;
  padding: 0 28px 0 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.035);
  background: #080a10;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.16);
}

.selenium-dashboard .topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  color: #fff;
  text-decoration: none;
}

.selenium-dashboard .topbar-logo {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  background: transparent;
}

.selenium-dashboard .topbar-logo img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.selenium-dashboard .topbar-brand strong {
  color: #f5f7fb;
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.selenium-dashboard .topbar-menu {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  min-width: 0;
  transform: none;
}

.selenium-dashboard .topbar-pill,
.selenium-dashboard .topbar-pill.is-active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  min-height: 30px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.035);
  border-radius: 999px;
  background: #151821;
  color: #f4f5fb;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}



.selenium-dashboard .topbar-pill.is-active {
  border-color: rgba(37, 112, 240, 0.18);
}

.selenium-dashboard .topbar-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 14px;
}

.selenium-dashboard .topbar-server-form {
  display: none;
}

.selenium-dashboard .topbar-actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 220px;
  min-height: 32px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.035);
  border-radius: 999px;
  background: #151821;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.selenium-dashboard .topbar-actions .button:hover {
  background: #191d29;
}

.selenium-dashboard .topbar-actions .button svg {
  display: none;
}

.selenium-dashboard .guild-switcher .topbar-logout-form {
  display: block;
  margin: 0;
}

.selenium-dashboard .topbar-icon-button {
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  background: #151821;
  color: #8f96a6;
}

.selenium-dashboard .topbar-icon-button:hover {
  background: #1b202c;
  color: #f06b6e;
}

.selenium-dashboard .topbar-icon-button svg {
  width: 16px;
  height: 16px;
}

.selenium-dashboard .topbar-avatar {
  width: 40px;
  height: 40px;
  border: 2px solid #1f6feb;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.08);
}

.selenium-dashboard .dashboard-main {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
}

.selenium-dashboard .content {
  min-height: calc(100vh - 72px);
}

.selenium-dashboard.is-dashboard-loading .dashboard-main {
  opacity: 0.94;
  transition: opacity 0.18s ease;
}

.selenium-dashboard.is-dashboard-loading {
  cursor: progress;
}

@media (max-width: 1100px) {
  .selenium-dashboard .topbar {
    grid-template-columns: auto minmax(240px, 1fr) auto;
    padding-right: 18px;
    padding-left: 18px;
  }

  .selenium-dashboard .topbar-menu {
    gap: 12px;
  }

  .selenium-dashboard .topbar-pill {
    min-width: 118px;
  }

  .selenium-dashboard .topbar-actions .button {
    min-width: 156px;
  }
}

@media (max-width: 760px) {
  .selenium-dashboard .dashboard-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto minmax(0, 1fr);
  }

  .selenium-dashboard .topbar {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px 16px;
  }

  .selenium-dashboard .topbar-menu {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .selenium-dashboard .topbar-actions {
    justify-self: stretch;
  }

  .selenium-dashboard .topbar-actions .button {
    flex: 1 1 auto;
    min-width: 0;
  }

  .selenium-dashboard .sidebar,
  .selenium-dashboard .dashboard-main {
    grid-column: 1;
  }

  .selenium-dashboard .sidebar {
    grid-row: 2;
    position: static;
    width: auto;
    height: auto;
  }

  .selenium-dashboard .dashboard-main {
    grid-row: 3;
  }
}

/* Toast notifications */
.notice.notice-toast {
  position: fixed;
  top: 84px;
  right: 18px;
  z-index: 1300;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 32px;
  gap: 14px;
  align-items: start;
  width: min(460px, calc(100vw - 36px));
  margin: 0;
  padding: 14px 13px 14px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    rgba(10, 16, 29, 0.98);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.42);
  color: #e8edf8;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(24px, 0, 0) scale(0.98);
  transition: transform 220ms ease, opacity 220ms ease;
}

.notice.notice-toast.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
}

.notice.notice-toast.is-leaving {
  opacity: 0;
  pointer-events: none;
  transform: translate3d(26px, 0, 0) scale(0.98);
}

.notice.notice-toast.is-success {
  border-color: rgba(59, 165, 93, 0.34);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.42), inset 3px 0 0 rgba(59, 165, 93, 0.72);
}

.notice.notice-toast.is-error {
  border-color: rgba(237, 66, 69, 0.34);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.42), inset 3px 0 0 rgba(237, 66, 69, 0.82);
}

.notice.notice-toast.is-warning {
  border-color: rgba(250, 166, 26, 0.35);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.42), inset 3px 0 0 rgba(250, 166, 26, 0.78);
}

.notice-toast-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.045);
  color: #c8d7ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.notice-toast-icon .react-icon {
  width: 18px;
  height: 18px;
}

.notice-toast-icon.is-success {
  border-color: rgba(59, 165, 93, 0.2);
  background: rgba(59, 165, 93, 0.14);
  color: #8df5bc;
}

.notice-toast-icon.is-error {
  border-color: rgba(237, 66, 69, 0.2);
  background: rgba(237, 66, 69, 0.14);
  color: #ff9fa2;
}

.notice-toast-icon.is-warning {
  border-color: rgba(250, 166, 26, 0.2);
  background: rgba(250, 166, 26, 0.14);
  color: #ffd889;
}

.notice-toast-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding-top: 1px;
}

.notice-toast-title {
  color: #f6f8ff;
  font-size: 13px;
  font-weight: 860;
  letter-spacing: -0.01em;
}

.notice-toast-text {
  overflow-wrap: anywhere;
  color: #f5f8ff;
  font-size: 15px;
  font-weight: 740;
  line-height: 1.42;
}

.notice-toast-detail {
  color: rgba(214, 223, 243, 0.6);
  font-size: 12px;
  line-height: 1.5;
}

.notice-toast-close {
  display: inline-flex;
  width: 32px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.notice-toast-close:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

@media (max-width: 760px) {
  .notice.notice-toast {
    top: 14px;
    right: 12px;
    left: 12px;
    width: auto;
    border-radius: 14px;
  }
}

/* Final dashboard shell and roles redesign */
.selenium-dashboard .dashboard-shell {
  grid-template-columns: 308px minmax(0, 1fr);
  grid-template-rows: 72px minmax(0, 1fr);
  min-height: 100vh;
  background: #070d17;
}

.selenium-dashboard .topbar {
  grid-column: 1 / -1;
  grid-row: 1;
  min-height: 72px;
  display: grid;
  grid-template-columns: 308px minmax(360px, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 0 26px 0 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
  background: rgba(5, 10, 19, 0.94);
  backdrop-filter: blur(18px);
}

.selenium-dashboard .topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #f8fbff;
  text-decoration: none;
}

.selenium-dashboard .topbar-logo,
.selenium-dashboard .topbar-logo img {
  width: 36px;
  height: 36px;
}

.selenium-dashboard .topbar-brand strong {
  font-size: 22px;
  font-weight: 850;
  letter-spacing: 0;
}

.selenium-dashboard .topbar-menu {
  position: static;
  justify-content: center;
  gap: 14px;
  overflow: visible;
}

.selenium-dashboard .topbar-pill,
.selenium-dashboard .topbar-pill.is-active{
  min-width: 150px;
  min-height: 38px;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(245, 248, 255, 0.82);
  font-size: 14px;
  font-weight: 760;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.selenium-dashboard .topbar-pill.is-active {
  border-color: rgba(45, 116, 255, 0.36);
  background: #2d74ff;
  color: #fff;
  box-shadow: 0 14px 32px rgba(45, 116, 255, 0.24);
}

.selenium-dashboard .topbar-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

.selenium-dashboard .topbar-server-form {
  display: none;
}

.selenium-dashboard .topbar-actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 184px;
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.045);
  color: #f7f9ff;
  font-size: 14px;
  font-weight: 780;
  text-decoration: none;
}

.selenium-dashboard .topbar-actions .button svg {
  width: 16px;
  height: 16px;
}

.selenium-dashboard .topbar-icon-button {
  width: 42px;
  min-width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.75);
}

.selenium-dashboard .topbar-avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 2px solid #2d74ff;
}

.selenium-dashboard .dashboard-main {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
}

/* Moderation page */
.selenium-dashboard .topbar-menu {
  gap: 10px;
  overflow: visible;
  scrollbar-width: none;
}

.selenium-dashboard .topbar-menu::-webkit-scrollbar {
  display: none;
}

.selenium-dashboard .topbar-pill,
.selenium-dashboard .topbar-pill.is-active {
  min-width: 0;
  width: auto;
  padding: 0 16px;
  white-space: nowrap;
}

/* -----------------------------------------------------
   Dashboard topbar redesign (v4)
----------------------------------------------------- */
.selenium-dashboard .topbar {
  grid-column: 1 / -1;
  grid-row: 1;
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(190px, max-content) minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  border-bottom: 1px solid rgba(109, 147, 226, 0.2);
  background: linear-gradient(180deg, rgba(8, 14, 26, 0.98) 0%, rgba(7, 12, 22, 0.92) 100%);
  backdrop-filter: blur(14px);
}

.selenium-dashboard .topbar-left {
  min-width: 0;
}

.selenium-dashboard .topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(17, 29, 53, 0.82), rgba(10, 20, 38, 0.84));
  padding: 0 16px 0 12px;
  color: #f8fbff;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 8px 26px rgba(0, 0, 0, 0.24);
}

.selenium-dashboard .topbar-logo,
.selenium-dashboard .topbar-logo img {
  width: 44px;
  height: 44px;
  border-radius: 14px;
}

.selenium-dashboard .topbar-logo {
  flex: 0 0 44px;
}

.selenium-dashboard .topbar-brand-copy {
  display: grid;
  min-width: 0;
  font-family: "Manrope", Inter, "Segoe UI", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

.selenium-dashboard .topbar-brand-copy strong {
  overflow: hidden;
  color: #f8fbff;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.06;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selenium-dashboard .topbar-brand-copy small {
  margin-top: 2px;
  overflow: hidden;
  color: rgba(192, 209, 241, 0.66);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selenium-dashboard .topbar-center {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(13, 24, 45, 0.72), rgba(10, 19, 36, 0.78));
  padding: 5px;
}

.selenium-dashboard .topbar-menu {
  position: static;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 2px;
  scrollbar-width: none;
}

.selenium-dashboard .topbar-menu::-webkit-scrollbar {
  display: none;
}

.selenium-dashboard .topbar-pill,
.selenium-dashboard .topbar-pill.is-active,
.selenium-dashboard .topbar-pill:hover {
  flex: 0 0 auto;
  min-width: 108px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(236, 244, 255, 0.83);
  font-size: 13px;
  font-weight: 760;
  line-height: 1;
  white-space: nowrap;
  box-shadow: none;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.selenium-dashboard .topbar-pill:hover {
  border-color: rgba(72, 133, 255, 0.36);
  background: rgba(45, 116, 255, 0.13);
  color: #fff;
}

.selenium-dashboard .topbar-pill.is-active {
  border-color: rgba(49, 121, 255, 0.46);
  background: linear-gradient(180deg, #3c86ff, #2d74ff);
  color: #fff;
  box-shadow: 0 8px 20px rgba(45, 116, 255, 0.3);
}

.selenium-dashboard .topbar-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.selenium-dashboard .topbar-server-form {
  min-width: 0;
}

.selenium-dashboard .topbar-actions .button {
  min-width: 160px;
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
  color: #f4f8ff;
  font-size: 13px;
  font-weight: 760;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.selenium-dashboard .topbar-actions .button:hover {
  border-color: rgba(136, 176, 255, 0.36);
  background: rgba(45, 116, 255, 0.14);
  color: #fff;
}

.selenium-dashboard .topbar-icon-button {
  width: 40px;
  min-width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(232, 241, 255, 0.9);
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.selenium-dashboard .topbar-icon-button:hover {
  border-color: rgba(237, 66, 69, 0.42);
  background: rgba(237, 66, 69, 0.15);
  color: #fff;
}

.selenium-dashboard .topbar-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(69, 129, 245, 0.44);
  box-shadow: 0 8px 20px rgba(45, 116, 255, 0.24);
}

@media (max-width: 1480px) {
  .selenium-dashboard .topbar {
    grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px 14px;
  }

  .selenium-dashboard .topbar-pill,
  .selenium-dashboard .topbar-pill.is-active,
  .selenium-dashboard .topbar-pill:hover {
    min-width: 96px;
    padding: 0 11px;
  }

  .selenium-dashboard .topbar-actions .button {
    min-width: 132px;
  }
}

@media (max-width: 1220px) {
  .selenium-dashboard .topbar {
    grid-template-columns: minmax(180px, 1fr) auto;
  }

  .selenium-dashboard .topbar-center {
    grid-column: 1 / -1;
    order: 3;
  }

  .selenium-dashboard .topbar-brand-copy small {
    display: none;
  }
}

@media (max-width: 900px) {
  .selenium-dashboard .topbar {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .selenium-dashboard .topbar-left,
  .selenium-dashboard .topbar-center,
  .selenium-dashboard .topbar-actions {
    grid-column: 1;
  }

  .selenium-dashboard .topbar-actions {
    justify-self: stretch;
  }

  .selenium-dashboard .topbar-actions .button {
    min-width: 0;
    flex: 1 1 auto;
  }
}

/* -----------------------------------------------------
   Dashboard topbar redesign (v5)
----------------------------------------------------- */
.selenium-dashboard .topbar {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  min-height: 78px;
  padding: 11px 22px;
  border-bottom: 1px solid rgba(112, 150, 225, 0.16);
  background:
    radial-gradient(circle at 16% 0%, rgba(45, 116, 255, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(5, 10, 19, 0.98), rgba(5, 10, 18, 0.94));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.selenium-dashboard .topbar-left {
  min-width: 0;
}

.selenium-dashboard .topbar-brand {
  min-height: 56px;
  gap: 12px;
  padding: 0 16px 0 12px;
  border-color: rgba(95, 143, 237, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(20, 36, 68, 0.92), rgba(8, 17, 32, 0.9)),
    rgba(12, 23, 42, 0.95);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 14px 28px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(45, 116, 255, 0.03);
}

.selenium-dashboard .topbar-brand:hover {
  border-color: rgba(94, 151, 255, 0.38);
  background:
    linear-gradient(145deg, rgba(25, 45, 84, 0.98), rgba(10, 20, 38, 0.94)),
    rgba(12, 23, 42, 0.98);
}

.selenium-dashboard .topbar-logo,
.selenium-dashboard .topbar-logo img {
  width: 42px;
  height: 42px;
  border-radius: 14px;
}

.selenium-dashboard .topbar-logo {
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  background: rgba(45, 116, 255, 0.1);
}

.selenium-dashboard .topbar-logo img {
  object-fit: contain;
}

.selenium-dashboard .topbar-brand-copy strong {
  font-size: 19px;
  font-weight: 820;
  letter-spacing: 0;
}

.selenium-dashboard .topbar-brand-copy small {
  margin-top: 3px;
  color: rgba(181, 204, 242, 0.72);
  font-size: 10px;
  font-weight: 780;
  letter-spacing: 0.04em;
}

.selenium-dashboard .topbar-center {
  justify-self: center;
  width: fit-content;
  max-width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.selenium-dashboard .topbar-menu {
  max-width: min(100%, 920px);
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(132, 165, 232, 0.13);
  border-radius: 20px;
  background: rgba(11, 19, 34, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 12px 32px rgba(0, 0, 0, 0.2);
}

.selenium-dashboard .topbar-pill,
.selenium-dashboard .topbar-pill.is-active,
.selenium-dashboard .topbar-pill:hover {
  min-width: auto;
  min-height: 38px;
  padding: 0 17px;
  border: 0;
  border-radius: 15px;
  background: transparent;
  color: rgba(216, 229, 251, 0.74);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0;
  box-shadow: none;
}

.selenium-dashboard .topbar-pill:hover {
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
}

.selenium-dashboard .topbar-pill.is-active {
  background: linear-gradient(180deg, #4a93ff, #2d74ff);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 10px 22px rgba(45, 116, 255, 0.34);
}

.selenium-dashboard .topbar-actions {
  justify-self: end;
  flex-wrap: nowrap;
  gap: 9px;
}

.selenium-dashboard .topbar-server-form {
  display: none;
}

.selenium-dashboard .topbar-actions .button {
  min-width: 184px;
  min-height: 46px;
  padding: 0 21px;
  border-radius: 18px;
  border-color: rgba(118, 151, 218, 0.16);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.selenium-dashboard .topbar-actions .button:hover {
  border-color: rgba(85, 144, 255, 0.42);
  background: rgba(45, 116, 255, 0.13);
}

.selenium-dashboard .topbar-icon-button,
.selenium-dashboard .topbar-avatar {
  width: 46px;
  min-width: 46px;
  height: 46px;
  border-radius: 16px;
}

.selenium-dashboard .topbar-icon-button {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
}

.selenium-dashboard .topbar-avatar {
  border-color: rgba(91, 148, 255, 0.42);
  box-shadow: 0 10px 24px rgba(45, 116, 255, 0.22);
}

@media (max-width: 1500px) {
  .selenium-dashboard .topbar {
    gap: 11px;
    padding: 10px 16px;
  }

  .selenium-dashboard .topbar-brand {
    min-height: 52px;
    padding-right: 14px;
  }

  .selenium-dashboard .topbar-logo,
  .selenium-dashboard .topbar-logo img {
    width: 38px;
    height: 38px;
  }

  .selenium-dashboard .topbar-logo {
    flex-basis: 38px;
  }

  .selenium-dashboard .topbar-pill,
  .selenium-dashboard .topbar-pill.is-active,
  .selenium-dashboard .topbar-pill:hover {
    min-width: auto;
    padding: 0 13px;
  }

  .selenium-dashboard .topbar-actions .button {
    min-width: 154px;
  }
}

@media (max-width: 1220px) {
  .selenium-dashboard .topbar {
    grid-template-columns: auto auto;
  }

  .selenium-dashboard .topbar-center {
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .selenium-dashboard .topbar-menu {
    max-width: none;
  }

  .selenium-dashboard .topbar-brand-copy small {
    display: none;
  }
}

@media (max-width: 900px) {
  .selenium-dashboard .topbar {
    grid-template-columns: 1fr;
    padding: 10px 12px;
  }

  .selenium-dashboard .topbar-brand,
  .selenium-dashboard .topbar-center,
  .selenium-dashboard .topbar-actions {
    width: 100%;
  }

  .selenium-dashboard .topbar-actions {
    justify-self: stretch;
  }

  .selenium-dashboard .topbar-actions .button {
    min-width: 0;
    flex: 1 1 auto;
  }
}

/* ─────────────────────────────────────────────────────────────
   Dashboard topbar v6 — clean precision
   ───────────────────────────────────────────────────────────── */

/* Shell row height */
.selenium-dashboard .dashboard-shell {
  grid-template-rows: 60px minmax(0, 1fr);
}

/* Bar itself */
.selenium-dashboard .topbar {
  min-height: 60px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: #07090c;
  backdrop-filter: none;
  box-shadow: none;
}

/* ── Brand ── */
.selenium-dashboard .topbar-left { min-width: 0; }

.selenium-dashboard .topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 12px 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: #f0f3fb;
  text-decoration: none;
  transition: background 0.14s, border-color 0.14s;
  box-shadow: none;
}

.selenium-dashboard .topbar-brand:hover {
  border-color: rgba(168, 255, 87, 0.2);
  background: rgba(168, 255, 87, 0.04);
}

.selenium-dashboard .topbar-logo {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 6px;
  background: rgba(168, 255, 87, 0.1);
}

.selenium-dashboard .topbar-logo,
.selenium-dashboard .topbar-logo img {
  width: 30px;
  height: 30px;
  border-radius: 6px;
}

.selenium-dashboard .topbar-logo img {
  object-fit: contain;
}

.selenium-dashboard .topbar-brand-copy {
  display: grid;
  min-width: 0;
  font-family: inherit;
}

.selenium-dashboard .topbar-brand-copy strong {
  overflow: hidden;
  color: #f0f3fb;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selenium-dashboard .topbar-brand-copy small {
  margin-top: 3px;
  overflow: hidden;
  color: rgba(168, 255, 87, 0.6);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Nav ── */
.selenium-dashboard .topbar-center {
  justify-self: center;
  width: fit-content;
  max-width: 100%;
  padding: 0;
  border: none;
  background: transparent;
}

.selenium-dashboard .topbar-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  max-width: min(100%, 880px);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.selenium-dashboard .topbar-menu::-webkit-scrollbar { display: none; }

.selenium-dashboard .topbar-pill,
.selenium-dashboard .topbar-pill.is-active,
.selenium-dashboard .topbar-pill:hover {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 11px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: rgba(182, 192, 218, 0.56);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: none;
  transition: background 0.12s, color 0.12s;
}

.selenium-dashboard .topbar-pill:hover {
  background: rgba(255, 255, 255, 0.055);
  color: rgba(240, 245, 255, 0.9);
}

.selenium-dashboard .topbar-pill.is-active {
  background: rgba(45, 116, 255, 0.14);
  color: #c8daff;
  font-weight: 700;
}

/* ── Actions ── */
.selenium-dashboard .topbar-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: nowrap;
  min-width: 0;
}

.selenium-dashboard .topbar-server-form { display: none; }

.selenium-dashboard .topbar-actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(218, 228, 250, 0.88);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: none;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.selenium-dashboard .topbar-actions .button:hover {
  border-color: rgba(168, 255, 87, 0.22);
  background: rgba(168, 255, 87, 0.06);
  color: #f0f3fb;
}

.selenium-dashboard .topbar-actions .button svg {
  width: 14px;
  height: 14px;
}

.selenium-dashboard .topbar-icon-button {
  width: 34px;
  min-width: 34px;
  height: 34px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(182, 192, 218, 0.65);
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.selenium-dashboard .topbar-icon-button:hover {
  border-color: rgba(239, 68, 68, 0.28);
  background: rgba(239, 68, 68, 0.09);
  color: #fca5a5;
}

.selenium-dashboard .topbar-icon-button svg {
  width: 15px;
  height: 15px;
}

.selenium-dashboard .topbar-avatar {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 6px;
  border: 1px solid rgba(168, 255, 87, 0.22);
  box-shadow: 0 0 10px rgba(168, 255, 87, 0.08);
}

/* ── Responsive ── */
@media (max-width: 1400px) {
  .selenium-dashboard .topbar { gap: 10px; padding: 0 14px; }
}

@media (max-width: 1200px) {
  .selenium-dashboard .topbar {
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    gap: 0;
    padding: 0;
    min-height: auto;
  }

  .selenium-dashboard .topbar-left { padding: 8px 12px 8px 14px; }
  .selenium-dashboard .topbar-actions { padding: 8px 14px 8px 8px; }

  .selenium-dashboard .topbar-center {
    grid-column: 1 / -1;
    justify-self: stretch;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0 14px;
  }

  .selenium-dashboard .topbar-menu { max-width: none; width: 100%; padding: 5px 0; }
  .selenium-dashboard .topbar-brand-copy small { display: none; }
  .selenium-dashboard .dashboard-shell { grid-template-rows: auto minmax(0, 1fr); }
}

@media (max-width: 680px) {
  .selenium-dashboard .topbar-left,
  .selenium-dashboard .topbar-actions { padding-top: 10px; padding-bottom: 10px; }
}

/* ─────────────────────────────────────────────────────────────
   Topbar v6 polish — blue accent, depth, less sharp/flat
   ───────────────────────────────────────────────────────────── */
.selenium-dashboard .topbar {
  min-height: 64px;
  background:
    linear-gradient(180deg, rgba(8, 13, 26, 0.98) 0%, rgba(6, 10, 20, 0.96) 100%);
  border-bottom: 1px solid rgba(55, 100, 210, 0.15);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.025), 0 4px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(18px);
}

.selenium-dashboard .topbar-logo {
  border-radius: 10px;
  background: rgba(45, 116, 255, 0.14);
}

.selenium-dashboard .topbar-logo,
.selenium-dashboard .topbar-logo img {
  border-radius: 10px;
}

.selenium-dashboard .topbar-brand {
  border-radius: 16px;
  border-color: rgba(55, 110, 240, 0.2);
  background: linear-gradient(145deg, rgba(14, 24, 48, 0.92), rgba(8, 15, 32, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 8px 24px rgba(0, 0, 0, 0.32);
}

.selenium-dashboard .topbar-brand:hover {
  border-color: rgba(65, 130, 255, 0.36);
  background: linear-gradient(145deg, rgba(18, 32, 64, 0.96), rgba(10, 20, 42, 0.94));
}

.selenium-dashboard .topbar-brand-copy small {
  color: rgba(110, 162, 255, 0.72);
  text-transform: none;
  letter-spacing: 0;
}

.selenium-dashboard .topbar-pill.is-active {
  background: linear-gradient(180deg, #3f8bff 0%, #2870ff 100%);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(40, 112, 255, 0.32);
}

.selenium-dashboard .topbar-pill:hover {
  background: rgba(45, 116, 255, 0.1);
  color: rgba(200, 220, 255, 0.92);
}

.selenium-dashboard .topbar-actions .button {
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.selenium-dashboard .topbar-actions .button:hover {
  border-color: rgba(65, 130, 255, 0.32);
  background: rgba(45, 116, 255, 0.1);
  color: #e0ecff;
}

.selenium-dashboard .topbar-icon-button {
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.selenium-dashboard .topbar-icon-button:hover {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
}

.selenium-dashboard .topbar-avatar {
  border-radius: 12px;
  border: 2px solid rgba(45, 116, 255, 0.45);
  box-shadow: 0 0 16px rgba(45, 116, 255, 0.22);
}

.selenium-dashboard .dashboard-shell {
  grid-template-rows: 64px minmax(0, 1fr);
}

/* ─────────────────────────────────────────────────────────────
   Sidebar separation & main content spacing
   ───────────────────────────────────────────────────────────── */

/* Sidebar: right border + very subtle tint */
.selenium-dashboard .sidebar {
  border-right: 1px solid rgba(255, 255, 255, 0.065);
  background: rgba(255, 255, 255, 0.01);
}



/* Keep media-query override: on mobile sidebar stacks, no left padding needed */
@media (max-width: 900px) {
  .selenium-dashboard .dashboard-main {
    padding-left: 0;
  }
}

/* ── Feedback widget ── */
.fb-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  font-family: inherit;
}

.fb-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  min-height: 46px;
  border-radius: 23px;
  border: 1px solid rgba(45, 116, 255, 0.35);
  background:
    linear-gradient(135deg, rgba(45, 116, 255, 0.18), rgba(45, 116, 255, 0.06)),
    rgba(10, 14, 22, 0.92);
  color: #a8c4ff;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  backdrop-filter: blur(16px);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  transition: background 0.18s, border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}

.fb-trigger:hover {
  background:
    linear-gradient(135deg, rgba(45, 116, 255, 0.28), rgba(45, 116, 255, 0.12)),
    rgba(10, 14, 22, 0.96);
  border-color: rgba(45, 116, 255, 0.55);
  transform: translateY(-1px);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.5),
    0 0 24px -4px rgba(45, 116, 255, 0.2);
}

.fb-trigger .react-icon {
  width: 16px;
  height: 16px;
}

.fb-trigger-label {
  line-height: 1;
}

.fb-widget.is-open .fb-trigger {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

/* ── Panel ── */
.fb-panel {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 340px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.05)),
    #0c1019;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  z-index: 901;
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
}

.fb-widget.is-open .fb-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.fb-panel[hidden] {
  display: block;
}

.fb-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 0;
}

.fb-panel-head strong {
  font-size: 16px;
  font-weight: 800;
  color: #f7f8fc;
  letter-spacing: -0.01em;
}

.fb-panel-close {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.04);
  color: #7e8594;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  min-height: unset;
  transition: background 0.15s, color 0.15s;
}

.fb-panel-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #c8cdd8;
}

.fb-panel-desc {
  padding: 8px 22px 0;
  margin: 0;
  font-size: 12.5px;
  color: #7e8594;
  line-height: 1.5;
}

/* ── Type buttons ── */
.fb-types {
  display: flex;
  gap: 8px;
  padding: 14px 22px 0;
}

.fb-type-btn {
  flex: 1;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  color: #8f94a3;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.fb-type-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #c8cdd8;
}

.fb-type-btn.is-active {
  background: rgba(45, 116, 255, 0.12);
  border-color: rgba(45, 116, 255, 0.38);
  color: #a8c4ff;
}

/* ── Textarea ── */
.fb-textarea-wrap {
  padding: 14px 22px 0;
}

.fb-textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 10px 14px;
  min-height: 56px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(8, 13, 22, 0.7);
  color: #f7f8fc;
  font: inherit;
  font-size: 13px;
  line-height: 1.6;
  resize: vertical;
  transition: border-color 0.15s;
}

.fb-textarea:focus {
  outline: none;
  border-color: rgba(45, 116, 255, 0.4);
}

.fb-textarea::placeholder {
  color: #555b6a;
}

/* ── Footer ── */
.fb-panel-foot {
  padding: 14px 22px 18px;
}

.fb-submit {
  width: 100%;
  min-height: 40px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #2d74ff, #1f5fd9);
  color: #fff;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
}

.fb-submit:hover {
  background: linear-gradient(135deg, #3b82f6, #2968e0);
  box-shadow: 0 4px 18px rgba(45, 116, 255, 0.3);
}

.fb-submit:active {
  transform: scale(0.98);
}

.fb-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ── Success state ── */
.fb-sent {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 36px 22px 32px;
  text-align: center;
}

.fb-sent:not([hidden]) {
  display: flex;
}

.fb-sent .react-icon {
  width: 36px;
  height: 36px;
  color: #3ba55d;
}

.fb-sent strong {
  font-size: 16px;
  font-weight: 800;
  color: #f7f8fc;
}

.fb-sent span {
  font-size: 12.5px;
  color: #7e8594;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .fb-widget {
    bottom: 16px;
    right: 16px;
  }

  .fb-panel {
    width: calc(100vw - 32px);
    right: 16px;
    bottom: 16px;
  }
}
