@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,400;0,500;0,600;1,400&family=IBM+Plex+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --font:
    "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  --mono:
    "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", monospace;

  --c-bg: #121212;
  --c-surface: #1a1a1a;
  --c-raised: #1f1f23;
  --c-raised-2: #242429;
  --c-field: #121212;
  --c-line: rgba(255, 255, 255, 0.07);
  --c-line-2: rgba(255, 255, 255, 0.12);
  --c-fg: #f3f4f6;
  --c-fg-2: #d1d5db;
  --c-fg-3: #9ca3af;

  --c-accent: #2563eb;
  --c-accent-2: #1d4ed8;
  --c-accent-soft: rgba(37, 99, 235, 0.12);
  --c-accent-fg: #2563eb;
  --c-ok: oklch(64% 0.17 155);
  --c-ok-fg: oklch(82% 0.15 155);
  --c-warn: oklch(70% 0.17 60);
  --c-warn-fg: oklch(84% 0.15 80);
  --c-bad: oklch(60% 0.22 25);
  --c-bad-fg: oklch(74% 0.16 25);
  --c-violet: #2563eb;
  --c-teal: #2563eb;
  --primary: #2563eb;
  --primary-h: #1d4ed8;
  --r-1: 6px;
  --r-2: 8px;
  --r-3: 12px;
  --r-4: 16px;
  --t: 160ms cubic-bezier(0.3, 0.7, 0.4, 1);
  --focus: none;
  --lift: 0 18px 40px -18px rgb(0 0 0 / 0.8), 0 2px 8px rgb(0 0 0 / 0.4);
}

*,
::before,
::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

html,
body,
button,
input,
select,
textarea,
table,
th,
td,
#sidebar,
.side,
.side-nav-wrapper > .side-nav,
.nav {
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  scrollbar-width: thin;
  scrollbar-color: #3b3b3b transparent;
}

html,
body,
*,
*::before,
*::after {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-button {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

::-webkit-scrollbar-track {
  background: transparent !important;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16) !important;
  border-radius: 99px !important;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.28) !important;
}

::-webkit-scrollbar-corner {
  background: transparent !important;
}

body {
  background: var(--c-bg);
  color: var(--c-fg);
  font: 13px/1.55 var(--font);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

b,
strong {
  font-weight: 600;
}

a {
  color: var(--c-accent-fg);
  text-decoration: none;
  transition: color var(--t);
}

a:hover {
  color: #fff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: #ffffff;
  font-weight: 600;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

code,
pre,
kbd,
samp,
.mono,
.lic-key,
input.mono,
textarea.mono {
  font-family: var(--mono) !important;
  font-feature-settings:
    "liga" 0,
    "calt" 0;
}

.lic-key {
  font-family: var(--mono) !important;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #f8fafc;
  text-transform: uppercase;
}

.btn-copy-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
  vertical-align: middle;
}

.btn-copy-icon:hover {
  color: #ffffff;
  background: #222226;
  border-color: #3b3b3b;
}

.btn-copy-icon .ic {
  width: 13px;
  height: 13px;
}

code {
  padding: 1px 6px;
  border-radius: var(--r-1);
  background: var(--c-raised-2);
  color: var(--c-accent-fg);
}

.ic {
  width: 16px;
  height: 16px;
  flex: none;
}

.muted {
  color: var(--c-fg-2);
}

.hidden {
  display: none !important;
}

::selection {
  background: var(--c-accent);
  color: #fff;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 19px;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.brand .ic {
  width: 26px;
  height: 26px;
  color: var(--c-accent-2);
  filter: drop-shadow(0 0 10px oklch(66% 0.19 262 / 0.55));
}

.brand b {
  font-weight: 400;
  background: linear-gradient(90deg, var(--c-accent-2), var(--c-violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand:hover {
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 35px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--r-2);
  background: var(--c-accent);
  color: #fff;
  font: 400 13px var(--font);
  cursor: pointer;
  white-space: nowrap;
  transition:
    background var(--t),
    border-color var(--t),
    filter var(--t),
    transform 80ms;
}

.btn:hover {
  color: #fff;
  filter: brightness(1.13);
}

.btn:active {
  transform: scale(0.98);
}

.btn:focus-visible {
  outline: 0;
  box-shadow: var(--focus);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: none;
}

.btn-ghost {
  background: var(--c-raised);
  border-color: var(--c-line);
  color: var(--c-fg);
}

.btn-ghost:hover {
  background: var(--c-raised-2);
  border-color: var(--c-line-2);
  filter: none;
}

.btn-danger-ghost {
  color: #f87171;
}

.btn-danger-ghost:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.btn-green {
  background: var(--c-ok);
}

.btn-violet {
  background: var(--c-violet);
}

.btn-teal {
  background: var(--c-teal);
}

.btn-orange {
  background: var(--c-warn);
}

.btn-red {
  background: var(--c-bad);
}

.btn-sm {
  height: 31px;
  padding: 0 11px;
  font-size: 12.5px;
  border-radius: var(--r-1);
}

.btn-icon {
  width: 31px;
  padding: 0;
}

.btn-block {
  width: 100%;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.field > label,
.label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--c-fg-2);
  font-size: 12.5px;
  font-weight: 400;
}

.req {
  color: var(--c-bad-fg);
}

.input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-2);
  background: var(--c-field);
  color: #fff;
  font: inherit;
  outline: 0;
  transition: border-color var(--t);
  box-shadow: none;
}

.input:hover {
  border-color: var(--c-line-2);
}

.input:focus,
.input:focus-visible {
  border-color: #3b82f6;
  box-shadow: none !important;
  outline: none !important;
}

.input::placeholder {
  color: var(--c-fg-3);
}

.input[readonly] {
  color: var(--c-fg-2);
}

textarea.input {
  height: auto;
  min-height: 84px;
  padding: 10px 12px;
  resize: vertical;
}

select.input {
  appearance: none;
  padding-right: 34px;
  cursor: pointer;
  background: var(--c-field)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa1b4' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right 11px center / 15px;
}

input[type="datetime-local"].input {
  color-scheme: dark;
}

.hint {
  color: var(--c-fg-3);
  font-size: 12px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}

.input-group {
  display: flex;
  gap: 8px;
}

.input-group > .input {
  flex: 1;
}

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 4px;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--c-fg-2);
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}

.check input {
  width: 16px;
  height: 16px;
  accent-color: var(--c-accent);
}

.float {
  position: relative;
  display: block;
  margin-bottom: 12px;
  padding: 7px 12px 6px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-2);
  background: var(--c-field);
  transition: border-color var(--t);
}

.float:focus-within {
  border-color: #3b82f6;
  box-shadow: none !important;
  outline: none !important;
}

.float > span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--c-fg-3);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.float > .input {
  height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.float > select.input {
  background-position: right 0 center;
}

.switch {
  position: relative;
  display: inline-block;
  flex: none;
  width: 40px;
  height: 22px;
}

.switch input {
  position: absolute;
  opacity: 0;
}

.switch i {
  position: absolute;
  inset: 0;
  border-radius: 99px;
  background: var(--c-line-2);
  cursor: pointer;
  transition: background var(--t);
}

.switch i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform var(--t);
}

.switch input:checked + i {
  background: var(--c-accent);
}

.switch input:checked + i::after {
  transform: translateX(18px);
}

.switch input:focus-visible + i {
  box-shadow: var(--focus);
}

.tip {
  position: relative;
  display: inline-flex;
  color: var(--c-fg-3);
  cursor: help;
  outline: 0;
}

.tip .ic {
  width: 14px;
  height: 14px;
}

.tip:hover,
.tip:focus {
  color: var(--c-accent-fg);
}

.tip::after {
  content: attr(data-tip);
  position: absolute;
  z-index: 60;
  bottom: calc(100% + 8px);
  left: 50%;
  width: max-content;
  max-width: 260px;
  padding: 8px 10px;
  border: 1px solid var(--c-line-2);
  border-radius: var(--r-1);
  background: var(--c-raised-2);
  color: var(--c-fg);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  text-transform: none;
  letter-spacing: 0;
  box-shadow: var(--lift);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition:
    opacity var(--t),
    transform var(--t);
}

.tip:hover::after,
.tip:focus::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.panel {
  border: 1px solid var(--c-line);
  border-radius: var(--r-3);
  background: var(--c-surface);
}

.panel + .panel {
  margin-top: 18px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--c-line);
}

.panel-head h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}

.panel-head h3 .ic {
  color: var(--c-accent-fg);
}

.panel-body {
  padding: 18px;
}

.tile {
  padding: 14px 16px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-2);
  background: var(--c-raised);
}

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

.columns > .panel + .panel {
  margin-top: 0;
}

.stack > * + * {
  margin-top: 18px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.stat {
  position: relative;
  overflow: hidden;
  padding: 16px 18px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-3);
  background: var(--c-surface);
}

.stat::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--c-accent), transparent);
}

.stat small {
  color: var(--c-fg-2);
  font-weight: 400;
}

.stat b {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: 26px;
  letter-spacing: -0.03em;
  font-weight: 400;
}

.stat .ic {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 20px;
  height: 20px;
  color: var(--c-fg-3);
}

.layout {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100vh;
  padding: 14px 10px;
  border-right: 1px solid var(--c-line);
  background: var(--c-surface);
}

.sidebar-head {
  display: flex;
  justify-content: center;
  padding-bottom: 4px;
}

.nav {
  display: grid;
  gap: 2px;
  overflow-y: auto;
}

.nav-label {
  padding: 8px 10px 4px;
  color: var(--c-fg-3);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 10px;
  min-height: 34px;
  border-radius: var(--r-2);
  color: var(--c-fg-2);
  font-weight: 400;
  transition:
    background var(--t),
    color var(--t);
}

.nav a:hover {
  background: var(--c-raised);
  color: #fff;
}

.nav a.active {
  background: rgba(26, 92, 255, 0.12) !important;
  color: #fff;
  font-weight: 500;
  border: 1px solid rgba(26, 92, 255, 0.28);
  box-shadow: none !important;
}

.nav a.active .ic {
  color: #3b82f6 !important;
}

.sidebar-foot {
  margin-top: auto;
  padding: 12px 10px 0;
  border-top: 1px solid var(--c-line);
  color: var(--c-fg-3);
  font-size: 12px;
}

.app-picker {
  position: relative;
}

.app-picker-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid oklch(66% 0.19 262 / 0.55);
  border-radius: var(--r-2);
  background: linear-gradient(180deg, var(--c-accent), oklch(52% 0.22 266));
  color: #fff;
  font: 400 14px var(--font);
  cursor: pointer;
  box-shadow: 0 6px 20px -8px var(--c-accent);
}

.app-picker-btn span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-picker-btn .ic {
  transition: transform var(--t);
}

.app-picker.open .app-picker-btn .ic {
  transform: rotate(180deg);
}

.app-picker-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: none;
  padding: 6px;
  border: 1px solid var(--c-line-2);
  border-radius: var(--r-2);
  background: var(--c-raised);
  box-shadow: var(--lift);
}

.app-picker.open .app-picker-menu {
  display: block;
  animation: drop 0.14s ease-out;
}

.app-picker-search {
  height: 34px;
  margin-bottom: 6px;
  font-size: 13px;
}

.app-picker-list {
  max-height: 240px;
  overflow-y: auto;
}

.app-picker-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: var(--r-1);
  background: none;
  color: var(--c-fg);
  font: 400 13px var(--font);
  text-align: left;
  cursor: pointer;
}

.app-picker-item:hover {
  background: var(--c-raised-2);
}

.app-picker-item.selected {
  background: var(--c-accent);
  color: #fff;
}

.app-picker-link {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 8px 10px;
  border-top: 1px solid var(--c-line);
  color: var(--c-fg-2);
  font-weight: 400;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-ok-fg);
  box-shadow: 0 0 8px var(--c-ok-fg);
}

.dot.off {
  background: var(--c-bad-fg);
  box-shadow: 0 0 8px var(--c-bad-fg);
}

.content {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--c-line);
  background: oklch(14% 0.015 265 / 0.82);
  backdrop-filter: blur(12px);
}

.search-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(440px, 100%);
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-2);
  background: var(--c-field);
  color: var(--c-fg-3);
  font: inherit;
  cursor: text;
}

.search-trigger:hover {
  border-color: var(--c-line-2);
}

.search-trigger span {
  flex: 1;
  text-align: left;
}

.kbd {
  padding: 1px 6px;
  border: 1px solid var(--c-line-2);
  border-radius: 5px;
  color: var(--c-fg-2);
  font: 400 11px var(--mono);
}

.account {
  position: relative;
}

.account-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: #1a1a1a;
  color: #f1f5f9;
  font: inherit;
  cursor: pointer;
  box-shadow: none !important;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.account-btn:hover,
.account.open .account-btn {
  border-color: rgba(255, 255, 255, 0.16);
  background: #222226;
  box-shadow: none !important;
}

.account-avatar-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #2563eb;
  box-shadow: none !important;
  flex-shrink: 0;
}

.account-avatar-badge .ic {
  width: 18px;
  height: 18px;
  color: #ffffff;
  stroke-width: 2;
}

.account-who {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.25;
}

.account-who .account-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.01em;
  display: block;
}

.account-who .account-sub {
  font-size: 11.5px;
  color: #9ca3af;
  font-weight: 400;
  margin-top: 1px;
  display: block;
}

.account-chevron {
  width: 13px;
  height: 13px;
  color: #9ca3af;
  margin-left: 6px;
  transition:
    transform 0.2s ease,
    color 0.2s ease;
  flex-shrink: 0;
}

.account-btn:hover .account-chevron,
.account.open .account-chevron {
  color: #ffffff;
}

.account.open .account-chevron {
  transform: rotate(180deg);
}

.avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-weight: 500;
}

.account-menu {
  position: absolute;
  z-index: 100;
  top: calc(100% + 8px);
  right: 0;
  display: none;
  min-width: 240px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: #1a1a1a;
  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.04);
}

.account.open .account-menu {
  display: block;
  animation: drop 0.14s ease-out;
}

.account-menu-title {
  padding: 8px 12px 10px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.account-menu-soon-badge {
  margin-left: auto;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #71717a;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}

.account-menu-soon-badge .soon-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #71717a;
  display: inline-block;
}

.b-purple {
  color: #c084fc;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.28);
}

.b-purple::before {
  background: #c084fc;
}

.account-menu-links {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.account-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #d1d5db;
  font: 500 13px var(--font);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.12s ease,
    color 0.12s ease;
  box-sizing: border-box;
}

.account-menu-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.account-menu-item .ic {
  width: 16px;
  height: 16px;
  color: #9ca3af;
  transition: color 0.12s ease;
  flex-shrink: 0;
}

.account-menu-item:hover .ic {
  color: #ffffff;
}

.account-menu-item.active {
  background: rgba(37, 99, 235, 0.15);
  color: #ffffff;
}

.account-menu-item.active .ic {
  color: #60a5fa;
}

.account-logout-form {
  margin: 0;
  padding: 0;
}

.account-menu-item.danger {
  color: #f87171;
}

.account-menu-item.danger .ic {
  color: #f87171;
}

.account-menu-item.danger:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

.account-menu-item.danger:hover .ic {
  color: #ef4444;
}

.menu-title {
  padding: 8px 10px;
  color: #fff;
  font-weight: 400;
}

.menu {
  position: fixed;
  z-index: 9999;
  display: none;
  min-width: 150px;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: #1a1a1a;
  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.04);
}

.menu.open {
  display: block;
  animation: drop 0.12s ease-out;
}

.menu form {
  margin: 0;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #d1d5db;
  font: 500 12.5px var(--font);
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.1s ease,
    color 0.1s ease;
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.menu-item .ic {
  width: 15px;
  height: 15px;
  color: #9ca3af;
  flex-shrink: 0;
  transition: color 0.1s ease;
}

.menu-item:hover .ic {
  color: #ffffff;
}

.menu-item.danger {
  color: #f87171;
}

.menu-item.danger .ic {
  color: #f87171;
}

.menu-item.danger:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

.menu-item.danger:hover .ic {
  color: #ef4444;
}

.menu-sep {
  height: 1px;
  margin: 5px 0;
  background: rgba(255, 255, 255, 0.08);
}

.btn-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  min-width: 30px;
  padding: 0;
  border-radius: 6px;
  background: #141416;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d1d5db;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.btn-actions:hover {
  background: #222226;
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.btn-actions .ic {
  width: 15px;
  height: 15px;
  color: #9ca3af;
  margin: 0;
}

.btn-actions:hover .ic {
  color: #ffffff;
}

.btn-icon {
  width: 28px;
  height: 28px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.btn-icon .ic {
  width: 16px;
  height: 16px;
}

@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}

.page {
  padding: 28px;
}

.page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.page-header h1 {
  font-size: 24px;
  font-weight: 400;
}

.page-header p {
  margin-top: 4px;
  color: var(--c-fg-2);
}

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

.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 18px;
  padding: 4px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-3);
  background: var(--c-surface);
  overflow-x: auto;
}

.tabs a {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: var(--r-2);
  color: var(--c-fg-2);
  font-weight: 400;
  white-space: nowrap;
}

.tabs a:hover {
  color: #fff;
}

.tabs a.active {
  background: var(--c-raised-2);
  color: #fff;
  box-shadow: inset 0 0 0 1px var(--c-line-2);
}

.setting {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 13px 15px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-2);
  background: var(--c-raised);
}

.setting + .setting {
  margin-top: 10px;
}

.setting .switch {
  margin-top: 2px;
}

.setting b {
  display: block;
  color: #fff;
  font-size: 13.5px;
  font-weight: 400;
}

.setting small {
  color: var(--c-fg-2);
  font-size: 12.5px;
}

.table-wrap {
  overflow-x: auto;
}

table.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  padding: 10px 16px;
  border-bottom: 1px solid var(--c-line);
  color: var(--c-fg-3);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--c-line);
  vertical-align: middle;
  font-size: 12.5px;
}

.table tr:last-child td {
  border-bottom: 0;
}

.table tbody tr {
  transition: background var(--t);
}

.table tbody tr:hover {
  background: oklch(20% 0.02 265 / 0.5);
}

.table .strong {
  color: #fff;
  font-weight: 400;
}

.table .cell-actions {
  width: 1%;
  text-align: right;
  white-space: nowrap;
}

.truncate {
  display: inline-block;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--c-line);
}

.toolbar .input {
  max-width: 300px;
  height: 35px;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 18px;
  border-top: 1px solid var(--c-line);
  color: var(--c-fg-2);
}

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 52px 20px;
  color: var(--c-fg-2);
  width: 100%;
  box-sizing: border-box;
}

.empty > .ic,
.empty > svg {
  width: 36px;
  height: 36px;
  margin: 0 auto 12px auto;
  color: #64748b;
  display: block;
  flex-shrink: 0;
}

.empty h3 {
  margin: 0 0 6px 0;
  font-size: 15px;
  font-weight: 500;
  color: #f1f5f9;
  text-align: center;
}

.empty p {
  margin: 0;
  font-size: 13.5px;
  color: #94a3b8;
  text-align: center;
  max-width: 480px;
  line-height: 1.5;
}

.empty .muted {
  color: #64748b;
  font-size: 13px;
  margin-top: 4px;
}

.empty .btn {
  margin-top: 14px;
}

.empty .btn .ic,
.empty .btn svg {
  width: 14px;
  height: 14px;
  margin: 0;
  display: inline-block;
  color: inherit;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border: 1px solid;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 400;
  white-space: nowrap;
}

.b-green {
  border-color: oklch(64% 0.17 155 / 0.35);
  background: oklch(64% 0.17 155 / 0.12);
  color: var(--c-ok-fg);
}

.b-blue {
  border-color: rgba(21, 87, 255, 0.4);
  background: rgba(21, 87, 255, 0.12);
  color: #3b82f6;
}

.b-red {
  border-color: oklch(60% 0.22 25 / 0.4);
  background: oklch(60% 0.22 25 / 0.12);
  color: var(--c-bad-fg);
}

.b-amber {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
}

.b-gray {
  border-color: var(--c-line-2);
  background: var(--c-raised-2);
  color: var(--c-fg-2);
}

.cred {
  position: relative;
  margin-bottom: 10px;
  padding: 11px 44px 11px 14px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-2);
  background: var(--c-raised);
}

.cred small {
  display: block;
  color: var(--c-fg-3);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cred div {
  overflow-x: auto;
  color: #fff;
  font: 400 13px var(--mono);
  white-space: nowrap;
}

.cred .btn {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
}

.cred.blur div {
  filter: blur(5px);
  transition: filter var(--t);
}

.cred.blur:hover div {
  filter: none;
}

pre.snippet {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  border: 1px solid var(--c-line);
  border-radius: var(--r-2);
  background: var(--c-field);
  color: var(--c-fg);
  font: 12.5px/1.7 var(--mono);
}

.snippet .k {
  color: #3b82f6;
}

.snippet .s {
  color: oklch(80% 0.14 150);
}

.snippet .c {
  color: var(--c-fg-3);
}

.notice {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(37, 99, 235, 0.4);
  border-radius: var(--r-2);
  background: rgba(37, 99, 235, 0.1);
  color: #3b82f6;
}

.notice b {
  color: #fff;
}

.notice.warn {
  border-color: oklch(70% 0.17 60 / 0.45);
  background: oklch(70% 0.17 60 / 0.1);
  color: var(--c-warn-fg);
}

.app-card {
  padding: 18px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-3);
  background: var(--c-raised);
}

.app-card + .app-card {
  margin-top: 12px;
}

.app-card.selected {
  border-color: #2563eb;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.3);
}

.app-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
}

.app-meta {
  display: flex;
  gap: 40px;
  margin: 12px 0 16px;
}

.app-meta small {
  display: block;
  color: var(--c-fg-3);
  font-size: 12px;
}

.app-meta b {
  color: #fff;
}

.app-card .page-actions form {
  margin: 0;
}

.modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(5px);
}

.modal.open {
  display: flex !important;
  animation: fade 0.15s;
}

.modal-card {
  width: 100%;
  max-width: 520px;
  margin: auto;
  border: 1px solid #27272a;
  border-radius: 12px;
  background: #121212;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
  animation: rise 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.modal-card.wide {
  max-width: 680px;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid #23262f;
}

.modal-head h3 {
  font-size: 15.5px;
  font-weight: 500;
  color: #f1f5f9;
}

.modal-x {
  padding: 0 4px;
  border: 0;
  background: none;
  color: #64748b;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease;
}

.modal-x:hover {
  color: #fff;
}

.modal-body {
  padding: 20px 22px 4px;
}

.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 22px;
  border-top: 1px solid #23262f;
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}

.palette {
  align-items: flex-start;
  padding-top: 12vh;
}

.palette-card {
  width: 100%;
  max-width: 620px;
  overflow: hidden;
  border: 1px solid var(--c-line-2);
  border-radius: var(--r-3);
  background: var(--c-surface);
  box-shadow: var(--lift);
  animation: rise 0.18s ease-out;
}

.palette-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-bottom: 1px solid var(--c-line);
  color: var(--c-fg-3);
}

.palette-search input {
  flex: 1;
  height: 52px;
  border: 0;
  background: none;
  color: #fff;
  font: 15px var(--font);
  outline: 0;
}

.palette-list {
  max-height: 360px;
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  list-style: none;
}

.palette-item a {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-1);
  color: #fff;
}

.palette-item a span {
  min-width: 120px;
  color: var(--c-fg-3);
}

.palette-item a span::after {
  content: "/";
  margin-left: 10px;
}

.palette-item.active a,
.palette-item a:hover {
  background: var(--c-raised-2);
}

.palette-empty {
  padding: 26px;
  color: var(--c-fg-2);
  text-align: center;
}

#toasts {
  position: fixed;
  z-index: 99999;
  bottom: 24px;
  right: 24px;
  top: auto !important;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 250px;
  max-width: 440px;
  padding: 11px 16px;
  border-radius: 10px;
  background: rgba(22, 22, 24, 0.96);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
  animation: toast-slide-up 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.toast::before {
  display: none !important;
}

.toast-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
}

.toast-icon svg {
  width: 13px;
  height: 13px;
}

.toast-icon-success {
  background: rgba(34, 197, 94, 0.16);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.toast-icon-error {
  background: rgba(239, 68, 68, 0.16);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.toast-icon-info {
  background: rgba(59, 130, 246, 0.16);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.toast-msg {
  flex: 1;
  color: #f1f5f9;
}

.toast.out {
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transition: all 0.25s ease;
}

@keyframes toast-slide-up {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.alert {
  margin-bottom: 16px;
  padding: 12px 16px;
  border: 1px solid;
  border-radius: 10px;
  font-size: 13px;
  word-break: break-word;
}

.alert-error {
  border-color: rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
}

.alert-success {
  border-color: rgba(34, 197, 94, 0.25);
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
}

.alert-info {
  border-color: rgba(37, 99, 235, 0.25);
  background: rgba(37, 99, 235, 0.12);
  color: #60a5fa;
}

.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background-color: #121212 !important;
  position: relative;
  overflow-x: hidden;
  font-family:
    "IBM Plex Sans",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
}

.auth-body::before {
  display: none !important;
}

.auth-wrapper {
  position: relative;
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  padding: 38px 32px 32px;
  background: #1a1a1a !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35) !important;
  text-align: center;
  position: relative;
  box-sizing: border-box;
}

.auth-brand-center {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 6px;
}

.auth-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #ffffff;
  transition: opacity 0.15s ease;
}

.auth-brand-link:hover {
  opacity: 0.92;
}

.auth-brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2563eb !important;
}

.auth-brand-logo .ic,
.auth-brand-logo svg {
  width: 28px;
  height: 28px;
  color: #2563eb !important;
  stroke-width: 2.2;
}

.auth-brand-text {
  color: #ffffff;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.auth-brand-text b {
  color: #2563eb !important;
  font-weight: 700;
}

.auth-subtitle {
  font-size: 13.5px;
  color: #9ca3af;
  margin: 0 0 26px 0;
  line-height: 1.4;
  font-weight: 400;
}

.auth-link-accent {
  color: #2563eb !important;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.auth-link-accent:hover {
  color: #1d4ed8 !important;
  text-decoration: underline;
}

.auth-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px;
}

.auth-sub {
  font-size: 13px;
  color: #9ca3af;
  margin: 0 0 20px;
  line-height: 1.45;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: left;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.auth-label {
  font-size: 12px;
  font-weight: 500;
  color: #9ca3af;
  margin: 0;
}

.auth-input {
  width: 100% !important;
  height: 42px !important;
  background: #121212 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 8px !important;
  padding: 0 14px !important;
  font-size: 13.5px !important;
  font-family: inherit !important;
  color: #ffffff !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease !important;
}

.auth-input::placeholder {
  color: #52525b !important;
  font-weight: 400;
}

.auth-input:hover {
  background: #151515 !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

.auth-input:focus {
  background: #121212 !important;
  border-color: #2563eb !important;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.22) !important;
  outline: none !important;
}

.auth-forgot-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
  margin-bottom: 2px;
}

.auth-forgot-link {
  font-size: 12px;
  color: #2563eb !important;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.auth-forgot-link:hover {
  color: #1d4ed8 !important;
  text-decoration: underline;
}

.btn-auth-submit {
  width: 100% !important;
  height: 42px !important;
  background: #141416 !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 8px !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  font-family: inherit !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  margin-top: 6px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
  transition: all 0.18s ease !important;
  user-select: none !important;
  text-decoration: none !important;
}

.btn-auth-submit:hover {
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4) !important;
  filter: none !important;
}

.btn-auth-submit .ic,
.btn-auth-submit svg {
  width: 15px !important;
  height: 15px !important;
  stroke-width: 2.2 !important;
  transition: transform 0.18s ease !important;
}

.btn-auth-submit:hover .ic,
.btn-auth-submit:hover svg {
  transform: translateX(3px) !important;
}

.auth-divider {
  position: relative;
  margin: 24px 0 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
}

.auth-divider span {
  position: relative;
  background: #1a1a1a;
  padding: 0 14px;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 500;
  text-transform: lowercase;
}

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

.auth-social-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  height: 42px !important;
  background: #121212 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  color: #d1d5db !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.18s ease !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

.auth-social-btn:hover {
  background: #18181c !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
}

.auth-social-btn .ic,
.auth-social-btn svg {
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0 !important;
}

.auth-support-pill {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 10px 14px 12px;
  background: #141416;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-right: none;
  border-radius: 8px 0 0 8px;
  color: #9ca3af;
  text-decoration: none;
  cursor: pointer;
  z-index: 50;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -4px 0 18px rgba(0, 0, 0, 0.45);
}

.auth-support-pill:hover {
  background: #1c1c20;
  color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.3);
  padding-left: 15px;
}

.auth-support-text {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1;
}

.auth-support-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: inherit;
}

.auth-foot {
  margin-top: 20px;
  font-size: 13px;
  color: #9ca3af;
  text-align: center;
}

.auth-foot a {
  color: #2563eb !important;
  text-decoration: none;
  font-weight: 500;
}

.auth-foot a:hover {
  text-decoration: underline;
  color: #1d4ed8 !important;
}

.landing-page {
  background: #121212 !important;
  color: #ffffff;
  font-family:
    "IBM Plex Sans",
    -apple-system,
    sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18, 18, 18, 0.92) !important;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.landing-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.landing-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.landing-brand-logo .ic {
  width: 24px;
  height: 24px;
  color: #2563eb;
  stroke-width: 2.2;
}

.landing-brand-text b {
  color: #2563eb;
}

.landing-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.landing-nav-item {
  font-size: 13.5px;
  font-weight: 500;
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.landing-nav-item:hover {
  color: #ffffff;
}

.landing-nav-discord:hover {
  color: #5865f2;
}

.landing-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 18px;
  background: #2563eb;
  color: #ffffff !important;
  border: 1px solid #2563eb;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
  transition: all 0.15s ease;
}

.btn-hero-primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  box-shadow: 0 6px 22px rgba(37, 99, 235, 0.45);
  transform: translateY(-1px);
}

.btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  background: #141416;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #e2e8f0 !important;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-hero-ghost:hover {
  background: #1e1e24;
  border-color: rgba(255, 255, 255, 0.16);
  color: #ffffff !important;
}

.btn-hero-primary.btn-lg,
.btn-hero-ghost.btn-lg {
  height: 44px;
  padding: 0 24px;
  font-size: 14.5px;
  border-radius: 10px;
}

.landing-hero {
  position: relative;
  padding: 90px 24px 60px;
  text-align: center;
  overflow: hidden;
}

.landing-hero-backdrop {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(
    circle at 50% 40%,
    rgba(37, 99, 235, 0.18) 0%,
    rgba(20, 35, 75, 0.05) 50%,
    transparent 75%
  );
  pointer-events: none;
  z-index: 0;
}

.landing-hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.28);
  border-radius: 99px;
  font-size: 13px;
  font-weight: 500;
  color: #93c5fd;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2563eb;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.6);
  flex-shrink: 0;
}

.landing-hero-title {
  font-size: clamp(38px, 5.5vw, 62px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #ffffff;
  margin: 0 0 20px;
}

.hero-gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #2563eb 50%, #93c5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.landing-hero-sub {
  max-width: 660px;
  margin: 0 auto 34px;
  font-size: 17px;
  line-height: 1.6;
  color: #9ca3af;
  font-weight: 400;
}

.landing-hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.code-showcase-container {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 56px auto 0;
  padding: 0 16px;
}

.code-window {
  background: #1a1a1a !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35) !important;
  overflow: hidden;
}

.code-window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #141416 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.code-window-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red {
  background: #ef4444;
}

.dot-yellow {
  background: #f59e0b;
}

.dot-green {
  background: #10b981;
}

.code-tabs {
  display: flex;
  gap: 4px;
}

.code-tab {
  padding: 5px 14px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 500;
  color: #9ca3af;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.code-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

.code-tab.active {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35);
}

.code-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
  color: #9ca3af;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.15s ease;
}

.code-copy-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
}

.code-copy-btn .ic {
  width: 13px;
  height: 13px;
}

.code-window-body {
  padding: 24px 28px !important;
  text-align: left;
  background: #121212 !important;
  min-height: 280px;
}

.code-pre {
  display: none;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  font-family:
    "IBM Plex Mono", "Fira Code", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, monospace !important;
  font-size: 13.5px !important;
  line-height: 1.8 !important;
  color: #cbd5e1 !important;
  overflow-x: auto;
}

.code-pre.active {
  display: block !important;
}

.code-showcase-container pre,
.code-showcase-container code,
.code-showcase-container span,
.code-pre code,
.code-window-body code,
.code-window code {
  display: block !important;
  background: transparent !important;
  background-color: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #cbd5e1 !important;
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
}

.code-pre span,
.code-window-body span,
.code-window span,
.code-showcase-container span {
  display: inline !important;
  background: transparent !important;
  background-color: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

.code-pre .kw {
  color: #3b82f6 !important;
  font-weight: 500 !important;
}

.code-pre .str {
  color: #4ade80 !important;
}

.code-pre .fn {
  color: #facc15 !important;
}

.code-pre .var {
  color: #c084fc !important;
}

.code-pre .cm {
  color: #64748b !important;
  font-style: italic !important;
}

.code-pre .num {
  color: #fb923c !important;
}

.landing-metrics {
  max-width: 1100px;
  margin: 70px auto 30px;
  padding: 0 24px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.metric-card {
  background: #1a1a1a !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 12px !important;
  padding: 22px 18px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.metric-val {
  display: block;
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.metric-label {
  display: block;
  font-size: 12.5px;
  color: #9ca3af;
  margin-top: 5px;
}

.landing-features {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}

.features-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.section-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #2563eb;
  text-transform: uppercase;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  margin: 8px 0 12px;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 15.5px;
  color: #9ca3af;
  line-height: 1.6;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.landing-card {
  background: #1a1a1a !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 12px !important;
  padding: 28px 24px;
  transition: all 0.2s ease;
  text-align: left;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.landing-card:hover {
  border-color: rgba(37, 99, 235, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
}

.landing-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.25);
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.landing-card-icon .ic {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.landing-card-title {
  font-size: 17px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
}

.landing-card-desc {
  font-size: 13.5px;
  color: #9ca3af;
  line-height: 1.6;
  margin: 0;
}

.landing-cta-banner {
  max-width: 1152px;
  margin: 20px auto 90px;
  padding: 0 24px;
}

.cta-banner-inner {
  position: relative;
  background: #1a1a1a !important;
  border: 1px solid rgba(37, 99, 235, 0.3) !important;
  border-radius: 14px !important;
  padding: 54px 32px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.cta-banner-glow {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 260px;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(37, 99, 235, 0.2) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.cta-banner-title {
  position: relative;
  font-size: 30px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.cta-banner-sub {
  position: relative;
  font-size: 15.5px;
  color: #9ca3af;
  margin: 0 auto 26px;
  max-width: 580px;
  line-height: 1.55;
}

.cta-banner-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.landing-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  background: #121212 !important;
  padding: 60px 24px 30px;
}

.landing-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 40px;
}

.footer-tagline {
  color: #9ca3af;
  font-size: 13px;
  line-height: 1.6;
  margin-top: 12px;
  max-width: 320px;
}

.footer-links-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-head {
  font-size: 12.5px;
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 13px;
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: #ffffff;
}

.landing-footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: #6b7280;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .landing-menu {
    display: none;
  }

  .landing-footer-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .landing-hero {
    padding: 60px 16px 40px;
  }

  .landing-hero-title {
    font-size: 34px;
  }
}

@media (max-width: 960px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .columns,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .topbar,
  .page {
    padding-left: 16px;
    padding-right: 16px;
  }

  .account-who {
    display: none;
  }
}

:root {
  color-scheme: dark;
}

body {
  font-family: var(--font);
  font-weight: 400;
}

::selection {
  background: #5379e750;
  color: #fff;
}

:focus-visible {
  outline: 2px solid #91adff;
  outline-offset: 3px;
}

html {
  scrollbar-color: #515151 #202020;
  scrollbar-width: thin;
}

a {
  color: #a5baff;
}

a:hover {
  color: #c5d3ff;
}

.brand {
  letter-spacing: -0.03em;
  font-size: 1.15rem;
  font-weight: 400;
}

.brand b {
  color: #fff;
  font-weight: 400;
}

.brand .ic {
  color: #96aeff;
}

.btn {
  border-radius: 8px;
  box-shadow: none;
  font-weight: 500;
}

.btn-ghost {
  background: #141416;
  border-color: rgba(255, 255, 255, 0.08);
  color: #d1d5db;
  box-shadow: none;
}

.btn-ghost:hover {
  background: #222226;
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.input {
  min-width: 0;
}

.input,
select.input,
textarea.input {
  background-color: #121212;
  border-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #ffffff;
  box-shadow: none;
}

.input::placeholder {
  color: #6b7280;
}

.card {
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.06);
  background: #1a1a1a;
}

.card-head {
  padding: 1.1rem 1.4rem;
  background: transparent;
  flex-wrap: wrap;
}

.card-head h3 {
  font-weight: 600;
  color: #ffffff;
}

.card-pad {
  padding: 1.4rem;
}

.shell {
  grid-template-columns: 216px minmax(0, 1fr);
  min-height: 100vh;
}

.side {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  max-height: 100vh;
  box-sizing: border-box;
  padding: 0 10px 14px;
  gap: 12px;
  background: #1a1a1a;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.side > .brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  min-height: 56px;
  padding: 12px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  gap: 9px;
  font-size: 16.5px;
  font-weight: 500;
}

.switch-label {
  display: block;
  margin: 0 2px 6px 2px;
  color: #9ca3af;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.app-switch {
  margin: 0 2px;
  position: relative;
  z-index: 50;
}

.custom-app-select {
  position: relative;
  width: 100%;
}

.custom-app-trigger {
  width: 100%;
  height: 38px;
  background: #161616;
  border: 1px solid #23262f;
  border-radius: 8px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  user-select: none;
  text-align: left;
}

.custom-app-trigger:hover {
  background: #1a1a1a;
  border-color: #333336;
}

.custom-app-select.is-open .custom-app-trigger {
  background: #1a1a1a;
  border-color: #1557ff;
  box-shadow:
    0 0 0 1px #1557ff,
    0 4px 14px rgba(21, 87, 255, 0.2);
}

.custom-app-trigger-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.custom-app-icon-badge {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(21, 87, 255, 0.12);
  border: 1px solid rgba(21, 87, 255, 0.28);
  color: #60a5fa;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.custom-app-icon-badge .ic {
  width: 13px;
  height: 13px;
}

.custom-app-current-name {
  font-size: 13px;
  font-weight: 500;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-app-chevron {
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.2s ease,
    color 0.2s ease;
  flex-shrink: 0;
  margin-left: 6px;
}

.custom-app-chevron .ic {
  width: 14px;
  height: 14px;
}

.custom-app-select.is-open .custom-app-chevron {
  transform: rotate(180deg);
  color: #3b82f6;
}

.custom-app-dropdown {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  z-index: 150;
  background: #141414;
  border: 1px solid #27272a;
  border-radius: 10px;
  box-shadow:
    0 16px 36px -4px rgba(0, 0, 0, 0.8),
    0 6px 16px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(14px);
  padding: 5px;
  display: none;
  animation: appDropdownAnim 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes appDropdownAnim {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.custom-app-select.is-open .custom-app-dropdown {
  display: block;
}

.custom-app-list {
  max-height: 220px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.custom-app-list::-webkit-scrollbar {
  width: 4px;
}

.custom-app-list::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 4px;
}

.custom-app-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 9px;
  border-radius: 7px;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
  user-select: none;
  margin-bottom: 2px;
}

.custom-app-option:hover {
  background: rgba(21, 87, 255, 0.12);
}

.custom-app-option.selected {
  background: rgba(21, 87, 255, 0.18);
}

.custom-app-opt-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.custom-app-opt-badge {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.custom-app-opt-badge .ic {
  width: 12px;
  height: 12px;
}

.custom-app-option.selected .custom-app-opt-badge {
  background: rgba(21, 87, 255, 0.25);
  color: #60a5fa;
}

.custom-app-opt-name {
  font-size: 13px;
  font-weight: 500;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-app-option.selected .custom-app-opt-name {
  color: #ffffff;
  font-weight: 600;
}

.custom-app-check {
  color: #3b82f6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 8px;
}

.custom-app-check .ic {
  width: 14px;
  height: 14px;
  stroke-width: 2.5;
}

.custom-app-dropdown-foot {
  border-top: 1px solid #27272a;
  margin-top: 4px;
  padding-top: 4px;
}

.custom-app-create-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: #60a5fa;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}

.custom-app-create-btn:hover {
  background: rgba(21, 87, 255, 0.12);
  color: #93c5fd;
}

.custom-app-create-btn .ic {
  width: 13px;
  height: 13px;
}

.side nav {
  gap: 2px;
}

.side .nav-title {
  color: #63738a;
  font-size: 9.5px;
  font-weight: 400;
  margin-bottom: 5px;
  padding-left: 10px;
}

.side nav a {
  min-height: 35px;
  padding: 6px 12px;
  gap: 10px;
  font-size: 13px;
  font-weight: 400 !important;
  color: #d1d5db;
  border: 1px solid transparent;
  border-left: 3px solid transparent;
  border-radius: 6px;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}

.side nav a .ic {
  width: 16px;
  height: 16px;
  color: #9ca3af;
}

.side nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.side nav a.active {
  color: #ffffff !important;
  background: rgba(37, 99, 235, 0.14) !important;
  border: 1px solid transparent !important;
  border-left: 3px solid #2563eb !important;
  padding-left: 12px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}

.side nav a.active .ic {
  color: #3b82f6 !important;
}

.side .me {
  border-color: rgba(255, 255, 255, 0.06);
  background: #161616;
  padding: 10px 8px;
  border-radius: 6px;
}

.avatar {
  background: #3d4664;
  border: 1px solid #566386;
}

.main {
  padding: 0 32px 44px;
}

.workspace-bar {
  min-height: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #9ca3af;
  font-size: 12px;
}

.workspace-bar > span {
  display: flex;
  align-items: center;
  gap: 12px;
}

.workspace-bar strong {
  color: #ffffff;
  font-weight: 500;
}

.workspace-account {
  color: #9ca3af;
}

.workspace-account .ic {
  color: #9ca3af;
}

.page-head {
  margin-bottom: 24px;
  align-items: center;
}

.page-head h1 {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.page-head p {
  font-size: 13px;
  margin-top: 6px;
}

.page-head .badge {
  padding: 6px 11px;
  align-self: center;
}

.b-green {
  color: #4ade80;
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.28);
}

.b-green::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.stats {
  gap: 18px;
  margin-bottom: 26px;
}

.stat {
  padding: 19px 22px;
  position: relative;
}

.stat-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stat small {
  color: #bfbfbf;
  font-size: 12px;
  font-weight: 400;
}

.stat-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #303030;
  background: #222226;
  border-radius: 7px;
  color: #c4c4c4;
}

.stat b {
  font-size: 30px;
  font-weight: 400;
  line-height: 1.3;
  margin-top: 5px;
  letter-spacing: -0.04em;
}

.stat-caption {
  display: block;
  margin-top: 7px;
  color: #aaa;
  font-size: 11px;
}

.creds {
  gap: 15px;
}

.cred {
  grid-template-columns: 90px minmax(0, 1fr) auto;
}

.cred label {
  color: #c2c2c2;
}

.cred .input {
  height: 39px;
  background: #141414;
  color: #dedede;
}

pre.snippet {
  padding: 20px 24px;
  background: #141414;
  line-height: 1.9;
  color: #c6cfdf;
  font-size: 12px;
}

.tbl th {
  text-align: left;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: #141416;
  vertical-align: middle !important;
}

.tbl td {
  padding: 8px 12px;
  vertical-align: middle !important;
}

.nav {
  border-bottom: 1px solid #35353d;
}

.hero {
  padding-top: 80px;
  padding-bottom: 48px;
}

.hero h1 {
  line-height: 1.12;
}

.hero h1 span {
  background-image: linear-gradient(100deg, #b6c6ff, #8e9ed0);
}

.pill {
  color: #c3cce4;
  background: #30343e;
  border-color: #4c5365;
}

.feature {
  background: #121212;
  border: 1px solid #23262f;
  border-radius: 10px;
  padding: 26px;
}

.feature .ic {
  color: #2563eb;
}

.feature p {
  line-height: 1.75;
  font-size: 13px;
}

.footer {
  color: #aaa;
}

.tip:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%);
}

@media (min-width: 1600px) {
  .main {
    padding-right: 56px;
    padding-left: 56px;
  }
}

@media (max-width: 1100px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .main {
    padding-right: 24px;
    padding-left: 24px;
  }
}

@media (max-width: 860px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .side {
    position: static;
    height: auto;
    overflow: visible;
    padding: 0 16px 16px;
    gap: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .side > .brand {
    min-height: 68px;
    justify-content: flex-start;
  }

  .side nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
  }

  .side .nav-title {
    display: none;
  }

  .side nav a {
    font-size: 12px;
    padding: 10px 8px;
    gap: 8px;
  }

  .side .me {
    margin-top: 0;
  }

  .app-switch {
    margin: 0;
  }

  .switch-label {
    margin-left: 0;
  }

  .main {
    padding: 0 20px 32px;
  }

  .workspace-bar {
    min-height: 58px;
    margin-bottom: 24px;
  }

  .workspace-account {
    display: none !important;
  }

  .cred {
    grid-template-columns: 70px minmax(0, 1fr) auto;
  }
}

@media (max-width: 520px) {
  .side nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .main {
    padding-left: 14px;
    padding-right: 14px;
  }

  .stats {
    gap: 10px;
  }

  .stat {
    padding: 15px;
  }

  .stat-heading {
    gap: 5px;
  }

  .stat-icon {
    width: 25px;
    height: 25px;
  }

  .stat small {
    font-size: 11px;
  }

  .card-head,
  .card-pad {
    padding: 16px;
  }

  .cred {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .cred label {
    grid-column: 1 / -1;
  }

  .auth-card {
    padding: 26px 22px;
  }

  .auth-body {
    padding: 20px 12px;
  }

  .page-head h1 {
    font-size: 24px;
  }

  .hero {
    padding-top: 48px;
  }
}

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

:root {
  --c-bg: #121212;
  --c-surface: #1a1a1a;
  --c-raised: #1f1f23;
  --c-raised-2: #242429;
  --c-field: #121212;
  --c-line: rgba(255, 255, 255, 0.07);
  --c-line-2: rgba(255, 255, 255, 0.12);
  --c-fg: #f3f4f6;
  --c-fg-2: #d1d5db;
  --c-fg-3: #9ca3af;
  --c-accent: #2563eb;
  --c-accent-2: #1d4ed8;
  --c-accent-fg: #2563eb;
  --bg: #121212;
  --bg-soft: #121212;
  --card: #1a1a1a;
  --border: rgba(255, 255, 255, 0.06);
  --text: var(--c-fg);
  --muted: #9ca3af;
  --font-sans: var(--font);
  --font-mono: var(--mono);
  --primary: #2563eb;
  --primary-h: #1d4ed8;
  --color-gray-200: #f1f5f9;
  --color-gray-300: #e2e8f0;
  --color-gray-400: #d1d5db;
  --color-gray-500: #9ca3af;
  --color-gray-700: #23262f;
  --color-gray-800: #121212;
  --color-blue-300: #93c5fd;
  --color-blue-400: #60a5fa;
  --color-blue-500: #3b82f6;
  --color-blue-600: #2563eb;
  --color-red-400: #fca5a5;
  --color-red-500: #ef4444;
  --color-red-600: #dc2626;
  --color-green-400: #86efac;
  --color-green-500: #22c55e;
  --color-amber-400: #fcd34d;
  --color-purple-400: #d8b4fe;
  --color-purple-500: #a855f7;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 10px;
  --radius-2xl: 12px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --swal2-backdrop: rgba(0, 0, 0, 0.75);
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.7);
}

.shell {
  display: grid;
  min-height: 100vh;
}

.side {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  background: #1a1a1a;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.side nav {
  display: flex;
  flex-direction: column;
}

.side nav a {
  display: flex;
  align-items: center;
  color: #d1d5db !important;
}

.side nav a .ic {
  color: #9ca3af !important;
}

.side nav a:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #ffffff !important;
}

.side nav a.active {
  background: rgba(37, 99, 235, 0.14) !important;
  border-left: 3px solid #2563eb !important;
  color: #ffffff !important;
}

.side .me {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #161616;
}

.me .who {
  flex: 1;
  min-width: 0;
}

.me .who b {
  display: block;
  font-size: 12px;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
}

.me .who small {
  color: #9ca3af;
  font-size: 10px;
}

.avatar {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
}

.main {
  min-width: 0;
}

.card {
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.card-head h3 {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.page-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.creds {
  display: grid;
}

.cred {
  display: grid;
  align-items: center;
  gap: 12px;
}

.cred .input {
  font-family: var(--mono);
  font-size: 12px;
}

.cred label {
  font-size: 12px;
}

pre.snippet {
  margin: 0;
  border-top: 1px solid var(--border);
  border-radius: 0 0 8px 8px;
  font-family: var(--mono);
  overflow-x: auto;
}

.stat::before {
  display: none;
}

.stat-icon .ic {
  position: static;
  width: 15px;
  height: 15px;
  color: inherit;
}

.btn-danger {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}

.btn-danger:hover {
  background: #b91c1c;
}

.brand b {
  background: none;
  -webkit-text-fill-color: #2563eb;
  color: #2563eb;
}

.brand .ic {
  filter: none;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.inline-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.switch span {
  position: absolute;
  inset: 0;
  background: #23262f;
  border-radius: 99px;
  cursor: pointer;
}

.switch span::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}

.switch input:checked + span {
  background: var(--primary);
}

.switch input:checked + span::before {
  transform: translateX(18px);
}

.switch input:focus-visible + span {
  outline: 2px solid #2563eb;
  outline-offset: 3px;
}

.tbl-wrap {
  overflow-x: auto !important;
  width: 100%;
  max-width: 100%;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
  -webkit-overflow-scrolling: touch;
}

.tbl-wrap::-webkit-scrollbar {
  height: 6px;
  width: 6px;
}

.tbl-wrap::-webkit-scrollbar-track {
  background: transparent;
}

.tbl-wrap::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
}

.tbl-wrap::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

table.tbl {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  background: #1a1a1a;
  table-layout: auto;
}

.tbl th {
  text-align: left;
  padding: 7px 12px;
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #141416;
  vertical-align: middle !important;
  height: 38px;
  line-height: 1.4;
}

.tbl td {
  padding: 7px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 13px;
  color: #d1d5db;
  white-space: nowrap;
  vertical-align: middle !important;
  height: 38px;
  line-height: 1.4;
}

.tbl td b,
.tbl td strong {
  font-weight: 500;
  color: #ffffff;
}

.tbl tr:last-child td {
  border-bottom: 0;
}

.tbl tbody tr {
  transition: background 0.12s ease;
}

.tbl tbody tr:hover {
  background: #202025 !important;
}

.tbl .acts {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
}

.toolbar .input {
  width: 280px;
  max-width: 100%;
  height: 38px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 400;
  background: #141416;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-radius: 8px;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.toolbar .input::placeholder {
  color: #71717a;
}

.toolbar .input:hover {
  background: #18181b;
  border-color: rgba(255, 255, 255, 0.14);
}

.toolbar .input:focus {
  background: #18181b;
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18) !important;
  outline: none !important;
}

.toolbar .btn {
  height: 38px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  background: #27272a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.toolbar .btn:hover {
  background: #3f3f46;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.16);
}

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 11px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12.5px;
  color: #9ca3af;
  background: transparent;
}

.pager-info {
  font-size: 12.5px;
  color: #8292ab;
  white-space: nowrap;
}

.pager-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.pager-limit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #8292ab;
}

.pager-limit-select {
  height: 32px;
  padding: 2px 28px 2px 10px;
  background: #18181b;
  color: #cbd5e1;
  border: 1px solid #27272a;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 400;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s ease;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238292ab' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}

.pager-limit-select:focus {
  border-color: #2563eb !important;
}

.pager-pages {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pager-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid #27272a;
  background: #18181b;
  color: #cbd5e1;
  font-size: 12.5px;
  font-weight: 400;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}

.pager-btn .ic {
  width: 14px;
  height: 14px;
}

.pager-btn:hover:not(.disabled):not(.active) {
  background: #222226;
  border-color: #35353d;
  color: #ffffff;
}

.pager-btn.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  font-weight: 500;
  cursor: default;
}

.pager-btn.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.pager-ellipsis {
  min-width: 24px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #55637a;
  font-size: 12.5px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  vertical-align: middle !important;
  margin: 0 !important;
  box-sizing: border-box;
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.b-blue {
  color: #60a5fa;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.25);
}

.b-red {
  color: #f87171;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.b-yellow {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.b-gray {
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.b-green {
  color: #4ade80;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.b-purple {
  color: #c084fc;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.alert-ok {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.28);
  color: #4ade80;
}

details.section {
  margin-bottom: 16px;
}

details.section > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px;
  font-weight: 400;
}

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

details.section[open] > summary .ic:first-child {
  transform: rotate(90deg);
}

details.section > .body {
  padding: 20px;
  border-top: 1px solid var(--border);
}

.set-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.set-row:last-child {
  border: 0;
}

.set-row .txt b {
  display: block;
  font-weight: 400;
}

.set-row .txt small {
  color: var(--muted);
}

.set-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0 16px;
}

.savebar {
  position: sticky;
  bottom: 16px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px;
  margin-top: 16px;
  background: rgba(18, 18, 18, 0.95);
  border: 1px solid var(--border);
  border-radius: 8px;
  backdrop-filter: blur(8px);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(5px);
  overflow-y: auto;
}

.modal.open {
  display: flex !important;
}

.modal-box {
  width: 100%;
  max-width: 512px;
  margin: auto;
  background: #121212;
  border: 1px solid #27272a;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
}

.modal-box.lg {
  max-width: 640px;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid #23262f;
}

.modal-head h3 {
  font-size: 15.5px;
  font-weight: 500;
  color: #f1f5f9;
}

.modal-x {
  border: 0;
  background: none;
  color: #64748b;
  font-size: 24px;
  cursor: pointer;
  transition: color 0.15s ease;
}

.modal-x:hover {
  color: #fff;
}

.modal-body {
  padding: 20px 22px 4px;
}

.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 22px;
  border-top: 1px solid #23262f;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1152px;
  margin: 0 auto;
  padding: 20px 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero .cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero .cta .btn {
  height: 44px;
  padding: 0 22px;
}

.hero::before {
  background: radial-gradient(
    closest-side,
    rgba(21, 87, 255, 0.08),
    transparent
  );
}

.codeblock {
  max-width: 896px;
  margin: 0 auto 64px;
  padding: 0 24px;
}

.codeblock pre {
  margin: 0;
  padding: 22px;
  overflow-x: auto;
  font: 12px/1.9 var(--mono);
  color: #d4d4d4;
}

.codeblock .k {
  color: #c6b8ee;
}

.codeblock .s {
  color: #4ade80;
}

.codeblock .c {
  color: #aaa;
}

.footer {
  padding: 32px;
  border-top: 1px solid var(--border);
  text-align: center;
}

@media (max-width: 860px) {
  .side {
    position: static;
    height: auto;
    border-right: 0;
  }

  .side nav {
    display: grid;
  }

  .side .me {
    margin-top: 0;
  }

  .row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .auth-body {
    padding: 20px 12px;
  }

  .cred {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .cred label {
    grid-column: 1 / -1;
  }

  .card-head .actions {
    gap: 6px;
  }

  .input-group {
    flex-wrap: wrap;
  }

  .input-group > .input {
    flex-basis: 100%;
  }
}

:root {
  --c-bg: #121212;
  --c-surface: #1a1a1a;
  --c-raised: #1f1f23;
  --c-raised-2: #242429;
  --c-field: #121212;
  --c-line: rgba(255, 255, 255, 0.06);
  --c-line-2: rgba(255, 255, 255, 0.12);
  --c-accent: #2563eb;
  --primary: #2563eb;
  --primary-h: #1d4ed8;
  --c-fg-2: #d1d5db;
  --muted: #9ca3af;
}

body {
  background: #121212;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 400;
  color: #d1d5db;
}

.btn {
  background: var(--primary);
  font-weight: 500;
  box-shadow: none;
  border-radius: 8px;
}

.btn-ghost {
  background: #141416;
  border-color: rgba(255, 255, 255, 0.08);
  color: #d1d5db;
}

.btn-ghost:hover {
  background: #222226;
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.btn-danger {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
}

.btn-selected {
  background: #166534;
  color: #bbf7d0;
}

.btn-selected:disabled {
  opacity: 1;
}

.btn:disabled {
  cursor: default;
}

.card {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.06);
  background: #1a1a1a;
  border-radius: 12px;
}

.shell {
  grid-template-columns: 216px minmax(0, 1fr);
  min-height: 100vh;
}

.side {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  max-height: 100vh;
  box-sizing: border-box;
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.06);
  gap: 12px;
  padding: 0 10px 14px;
  overflow: hidden;
}

.side > .brand {
  min-height: 56px;
  font-size: 16.5px;
  font-weight: 600;
  padding: 12px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
  color: #ffffff;
}

.side > .brand b {
  font-weight: 700;
  color: #2563eb;
}

.side > .brand .ic {
  color: #2563eb;
}

.app-switch {
  margin: 0 2px;
  flex-shrink: 0;
}

.side nav {
  gap: 3px;
  padding-top: 8px;
  border-top: 0;
}

.side nav a {
  min-height: 35px;
  padding: 6px 12px;
  gap: 10px;
  font-size: 13px;
  font-weight: 400 !important;
  color: #d1d5db;
  border: 1px solid transparent;
  border-left: 3px solid transparent;
  border-radius: 6px;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
  text-decoration: none;
  position: relative;
}

.side nav a .ic {
  width: 16px;
  height: 16px;
  color: #9ca3af;
  transition: color 0.15s ease;
}

.side nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.side nav a:hover .ic {
  color: #ffffff;
}

.side nav a.active {
  background: rgba(37, 99, 235, 0.14) !important;
  border: 1px solid transparent !important;
  border-left: 3px solid #2563eb !important;
  padding-left: 12px !important;
  box-shadow: none !important;
  color: #ffffff !important;
  font-weight: 500 !important;
}

.side nav a.active .ic {
  color: #3b82f6 !important;
}

.side-nav-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  flex: 1;
  min-height: 0;
}

.side-nav-wrapper > .side-nav {
  overflow-y: auto;
  flex-shrink: 1;
  scrollbar-width: thin;
  scrollbar-color: #3b3b3b transparent;
}

.side-sep-section {
  display: flex;
  flex-direction: column;
  margin-top: auto;
  padding-top: 8px;
  flex-shrink: 0;
}

.side-sep-line {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 6px 4px 6px;
}

.side-nav-secondary {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 0 !important;
  border-top: 0 !important;
}

.main {
  padding: 0 24px 32px;
}

.workspace-bar {
  min-height: 60px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.workspace-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #9ca3af;
  font-size: 13px;
  min-width: 0;
}

.workspace-title .ic {
  width: 16px;
  height: 16px;
  color: #2563eb;
}

.workspace-title strong {
  color: #ffffff;
  font-weight: 500;
  font-size: 13.5px;
}

.workspace-title .muted {
  color: #6b7280;
  margin: 0 3px;
}

.workspace-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.page-search-box {
  position: relative;
  display: inline-block;
}

.page-search {
  position: relative;
  display: flex;
  align-items: center;
  background: #141416;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0 12px;
  height: 38px;
  width: 240px;
  color: #d1d5db;
  transition:
    border-color 0.15s ease,
    width 0.2s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.page-search:hover {
  background: #18181b;
  border-color: rgba(255, 255, 255, 0.14);
}

.page-search:focus-within,
.page-search.has-dropdown {
  background: #18181b;
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18) !important;
  outline: none !important;
  width: 310px;
}

.page-search .ic {
  width: 15px;
  height: 15px;
  margin-right: 9px;
  color: #71717a;
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.page-search:focus-within .ic {
  color: #60a5fa;
}

.page-search input {
  background: transparent;
  border: 0;
  outline: none;
  color: #ffffff;
  font-size: 13px;
  width: 100%;
  font-weight: 400;
}

.page-search input::placeholder {
  color: #71717a;
}

.page-search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  min-width: 320px;
  max-height: 280px;
  overflow-y: auto;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  padding: 6px;
  z-index: 1050;
  scrollbar-width: thin;
  scrollbar-color: #3b3b3b transparent;
}

.page-search-dropdown::-webkit-scrollbar {
  width: 4px;
}

.page-search-dropdown::-webkit-scrollbar-track {
  background: transparent;
}

.page-search-dropdown::-webkit-scrollbar-thumb {
  background: #35353d;
  border-radius: 6px;
}

.page-search-item {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: #e2e8f0;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  transition:
    background 0.12s ease,
    color 0.12s ease;
  white-space: nowrap;
  line-height: 1.4;
}

.page-search-item:hover,
.page-search-item.active {
  background: #2563eb;
  color: #ffffff;
}

.page-search-item:hover .search-category,
.page-search-item.active .search-category {
  color: rgba(255, 255, 255, 0.75);
}

.page-search-item:hover .search-divider,
.page-search-item.active .search-divider {
  color: rgba(255, 255, 255, 0.5);
}

.page-search-item:hover .search-action,
.page-search-item.active .search-action {
  color: #ffffff;
}

.page-search-item .search-category {
  color: #8292ab;
  font-weight: 400;
}

.page-search-item .search-divider {
  color: #35353d;
  margin: 0 10px;
  user-select: none;
}

.page-search-item .search-action {
  color: #f1f5f9;
  font-weight: 500;
}

.page-search-empty {
  padding: 16px 14px;
  font-size: 13px;
  color: #8292ab;
  text-align: center;
}

.page-intro {
  padding: 25px 28px;
  min-height: 105px;
  background: #121212;
  border: 1px solid #23262f;
  border-radius: 10px;
  margin-bottom: 16px;
}

.page-head h1 {
  font-size: 22px;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: #f1f5f9;
}

.stats {
  gap: 16px;
  margin-bottom: 22px;
}

.app-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.app-stats .stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 22px 20px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  transition: border-color 0.15s ease;
}

.app-stats .stat:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.app-stats .stat b {
  display: block;
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.app-stats .stat small {
  display: block;
  color: #9ca3af;
  font-size: 13px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  margin-top: 6px;
}

.applications-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.65fr);
  align-items: start;
  gap: 18px;
}

.credentials-panel,
.applications-panel {
  min-width: 0;
}

.card-head {
  padding: 16px 20px;
  background: none;
}

.card-head h3 {
  color: #d7d7df;
  font-size: 13.5px;
  font-weight: 400;
}

.card-head > .muted {
  max-width: 45%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.card-pad {
  padding: 20px;
}

.creds {
  gap: 12px;
}

.cred {
  position: static;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  grid-template-columns: 57px minmax(0, 1fr) 30px;
  gap: 8px;
}

.cred label {
  font-size: 12px;
  color: #9ca3af;
}

.cred .input {
  height: 35px;
  padding: 0 9px;
  background: #141414;
  border-color: #23262f;
  font-size: 11px;
  color: #f1f5f9;
}

.cred .btn {
  position: static;
  transform: none;
  width: 30px;
  height: 30px;
}

.code-preview {
  margin: 3px 0;
  min-width: 0;
}

.code-preview summary {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8292ab;
  font-size: 12px;
  cursor: pointer;
  padding: 7px 0;
}

.code-preview pre.snippet {
  margin-top: 8px;
  padding: 14px;
  background: #141414;
  border: 1px solid #23262f;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.8;
  color: #cbd5e1;
}

.credentials-panel .actions {
  gap: 8px;
  margin-top: 4px;
}

.credentials-panel .btn-sm {
  font-size: 11px;
  padding: 0 9px;
}

.applications-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 165px;
  gap: 10px;
  padding: 16px 18px;
}

.search-field {
  position: relative;
  min-width: 0;
}

.search-field > .ic {
  position: absolute;
  top: 11px;
  left: 12px;
  color: #71717a;
  width: 15px;
  height: 15px;
  pointer-events: none;
  transition: color 0.15s ease;
}

.search-field:focus-within > .ic {
  color: #60a5fa;
}

.search-field .input {
  height: 38px;
  padding-left: 36px;
  padding-right: 12px;
  background: #141416;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #ffffff;
  font-size: 13px;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.search-field .input::placeholder {
  color: #71717a;
}

.search-field .input:hover {
  background: #18181b;
  border-color: rgba(255, 255, 255, 0.14);
}

.search-field .input:focus {
  background: #18181b;
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18) !important;
  outline: none !important;
}

.applications-toolbar .input {
  height: 38px;
  font-size: 13px;
  background-color: #141416;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
  border-radius: 8px;
}

.applications-toolbar select.input:hover {
  background-color: #18181b;
  border-color: rgba(255, 255, 255, 0.14);
}

.applications-toolbar select.input:focus {
  background-color: #18181b;
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18) !important;
}

.application-list {
  display: grid;
  gap: 14px;
  padding: 0 18px 18px;
}

.application-item {
  min-width: 0;
  padding: 20px 22px;
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}

.application-item.is-selected {
  border-color: rgba(255, 255, 255, 0.06);
}

.application-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.application-heading h3 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.app-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.app-status-pill.is-active {
  background: rgba(16, 185, 129, 0.16);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.25);
}

.app-status-pill.is-paused {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.application-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 20px;
}

.application-meta dt {
  color: #8292ab;
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 5px;
}

.application-meta dd {
  margin: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.app-actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.app-inline-form {
  display: inline-flex;
  margin: 0;
  padding: 0;
}

.btn-app-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
  box-shadow: none !important;
}

.btn-app-action .ic {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
  color: #ffffff !important;
}

.btn-app-selected {
  background: #16a34a !important;
  border: 1px solid #16a34a !important;
  color: #ffffff !important;
  cursor: default;
}

.btn-app-selected:hover {
  background: #15803d !important;
}

.btn-app-select {
  background: #2563eb !important;
  border: 1px solid #2563eb !important;
  color: #ffffff !important;
}

.btn-app-select:hover {
  background: #1d4ed8 !important;
}

.btn-app-rename {
  background: #9333ea !important;
  border: 1px solid #9333ea !important;
  color: #ffffff !important;
}

.btn-app-rename:hover {
  background: #7e22ce !important;
}

.btn-app-desc {
  background: #0891b2 !important;
  border: 1px solid #0891b2 !important;
  color: #ffffff !important;
}

.btn-app-desc:hover {
  background: #0e7490 !important;
}

.btn-app-pause {
  background: #ea580c !important;
  border: 1px solid #ea580c !important;
  color: #ffffff !important;
}

.btn-app-pause:hover {
  background: #c2410c !important;
}

.btn-app-delete {
  background: #dc2626 !important;
  border: 1px solid #dc2626 !important;
  color: #ffffff !important;
}

.btn-app-delete:hover {
  background: #b91c1c !important;
}

.savebar {
  background: rgba(18, 18, 18, 0.95);
  border-color: #23262f;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}

.savebar .btn:disabled {
  opacity: 0.4;
}

.unsaved-notice {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 210;
  max-width: min(440px, calc(100vw - 32px));
  padding: 14px 17px;
  background: #2563eb;
  color: #fff;
  border-radius: 7px;
  box-shadow: 0 6px 25px rgba(37, 99, 235, 0.4);
  font-size: 12px;
  line-height: 1.6;
  font-weight: 400;
}

.set-row .txt b {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 400;
}

.set-row .txt small {
  display: none;
}

#settings-form .field > label {
  font-weight: 400;
}

@media (min-width: 1600px) {
  .main {
    padding-left: 28px;
    padding-right: 28px;
  }
}

@media (max-width: 1150px) {
  .applications-layout {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .credentials-panel .code-preview,
  .credentials-panel .actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .side {
    border-right: 0;
  }

  .side nav {
    display: grid;
  }

  .main {
    padding: 0 16px 28px;
  }

  .workspace-bar {
    min-height: 54px;
    margin-bottom: 10px;
    flex-wrap: wrap;
  }

  .workspace-actions {
    gap: 10px;
  }

  .page-search {
    width: 170px;
  }

  .page-search:focus-within,
  .page-search.has-dropdown {
    width: 250px;
  }

  .page-search-dropdown {
    min-width: 260px;
    right: 0;
    left: auto;
  }

  .account-who .account-sub {
    display: none;
  }

  .side-nav-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .side-sep-line {
    margin: 8px 0;
  }

  .page-intro {
    padding: 20px;
  }
}

@media (max-width: 600px) {
  .app-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .applications-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .credentials-panel .creds {
    grid-template-columns: minmax(0, 1fr);
  }

  .application-item {
    padding: 16px;
  }

  .page-intro {
    gap: 14px;
  }

  .page-intro h1 {
    font-size: 22px;
  }

  .cred label {
    grid-column: auto;
  }

  .cred {
    grid-template-columns: 52px minmax(0, 1fr) 30px;
  }

  .application-heading {
    align-items: flex-start;
  }

  .application-meta {
    gap: 8px;
  }

  .unsaved-notice {
    top: 12px;
    right: 12px;
  }

  .page-search-box {
    display: none;
  }

  .account-who {
    display: none;
  }

  .account-btn {
    padding: 5px 8px;
    gap: 6px;
  }
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea,
.input {
  box-shadow: none !important;
  outline: none !important;
  -webkit-appearance: none;
}

input:not([type="checkbox"]):not([type="radio"]):focus,
input:not([type="checkbox"]):not([type="radio"]):focus-visible,
select:focus,
select:focus-visible,
textarea:focus,
textarea:focus-visible,
.input:focus,
.input:focus-visible {
  border-color: #2563eb !important;
  box-shadow: none !important;
  outline: none !important;
}

.account-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 6px;
  margin-bottom: 24px;
  width: fit-content;
  flex-wrap: wrap;
}

.account-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 7px;
  color: #9ca3af;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.account-tab:hover:not(.disabled) {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.account-tab.active {
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35);
}

.account-tab.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 20px;
  align-items: start;
}

@media (max-width: 960px) {
  .account-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.profile-info-card,
.security-card {
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.profile-info-card .card-head,
.security-card .card-head {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
}

.profile-info-card .card-head h3,
.security-card .card-head h3 {
  font-size: 14.5px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.profile-avatar-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-avatar {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: none;
}

.profile-avatar .ic {
  width: 22px;
  height: 22px;
  color: #ffffff;
}

.profile-user-info b {
  display: block;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
}

.profile-user-info small {
  color: #9ca3af;
  font-size: 12px;
}

.field-row {
  margin-bottom: 14px;
}

.field-row label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #9ca3af;
  margin-bottom: 6px;
}

.field-row .input {
  height: 38px;
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 13px;
  border-radius: 8px;
  padding: 0 12px;
}

.profile-info-card .actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.profile-info-card .actions .btn {
  background: #27272a !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #e2e8f0 !important;
  font-weight: 500;
  font-size: 13px;
  height: 36px;
  padding: 0 16px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
  cursor: pointer;
}

.profile-info-card .actions .btn:hover {
  background: #3f3f46 !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

.security-toggles {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.security-toggle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 12px 16px;
  transition: all 0.15s ease;
}

.security-toggle-item:hover {
  background: #161616;
  border-color: rgba(255, 255, 255, 0.1);
}

.security-toggle-info {
  flex: 1;
  min-width: 0;
}

.security-toggle-item .toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
}

.card-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 20px 0;
}

.security-subhead {
  font-size: 14.5px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 4px;
}

.security-subdesc {
  font-size: 12px;
  color: #9ca3af;
  margin: 0 0 12px;
  line-height: 1.4;
}

.tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #71717a;
  cursor: help;
  outline: none;
  vertical-align: middle;
}

.tip .ic {
  width: 14px;
  height: 14px;
  color: #71717a;
  transition: color 0.15s ease;
}

.tip:hover .ic,
.tip:focus .ic {
  color: #2563eb;
}

.tip::after {
  content: attr(data-tip);
  position: absolute;
  z-index: 1000;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translate(-50%, 4px);
  width: max-content;
  max-width: 320px;
  padding: 8px 12px;
  border: 1px solid #27272a;
  border-radius: 8px;
  background: #121212;
  color: #cbd5e1;
  font: 400 12px/1.5 var(--font);
  text-align: left;
  white-space: normal;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
}

.tip:hover::after,
.tip:focus::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.danger-zone-card {
  margin-top: 24px;
  border: 1px solid rgba(239, 68, 68, 0.25);
  background: #1a1a1a;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.danger-zone-card .card-head {
  border-bottom: 1px solid rgba(239, 68, 68, 0.15);
  padding: 14px 20px;
  background: rgba(239, 68, 68, 0.04);
}

.danger-zone-card .card-head h3 {
  color: #f87171;
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}

.danger-zone-body {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.danger-zone-desc {
  flex: 1;
  min-width: 250px;
}

.danger-zone-card .btn-danger {
  background: #dc2626 !important;
  border: 1px solid #dc2626 !important;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 13px;
  height: 38px;
  padding: 0 18px;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(220, 38, 38, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.danger-zone-card .btn-danger:hover {
  background: #b91c1c !important;
  border-color: #b91c1c !important;
}

.qr-container {
  background: #ffffff;
  padding: 14px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  margin: 0 auto;
  width: 204px;
  height: 204px;
  box-sizing: border-box;
}

.qr-container #qrcode-render {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 176px;
  height: 176px;
}

.qr-container #qrcode-render canvas,
.qr-container #qrcode-render img,
.qr-container #qrcode-render svg {
  display: block;
  width: 176px !important;
  height: 176px !important;
}

.qr-center-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  z-index: 5;
}

.qr-center-badge svg,
.qr-center-badge .ic {
  width: 20px;
  height: 20px;
  color: #ffffff !important;
  stroke: #ffffff !important;
}

.manual-code-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #141414;
  border: 1px solid #23262f;
  border-radius: 6px;
  padding: 6px 12px;
  margin: 0 auto;
  max-width: 320px;
}

.manual-code-text {
  color: #2563eb;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
  user-select: all;
}

.modal-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: #18181b;
  border: 1px solid #232328;
  border-radius: 9px;
  margin-bottom: 20px;
}

.modal-tab {
  flex: 1;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #8c909e;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
  user-select: none;
}

.modal-tab:hover {
  color: #e2e8f0;
}

.modal-tab.active {
  background: #242424;
  border-color: #383b47;
  color: #ffffff;
}

.modal-tab-content {
  display: none;
}

.modal-tab-content.active {
  display: block;
}

#edit-user-modal .modal-box,
#edit-license-modal .modal-box {
  max-width: 480px;
  background: #121212;
  border: 1px solid #27272a;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
  padding: 6px;
}

#edit-user-modal .modal-head,
#edit-license-modal .modal-head {
  padding: 18px 20px 10px;
  border-bottom: 1px solid #23262f;
}

#edit-user-modal .modal-body,
#edit-license-modal .modal-body {
  padding: 14px 20px;
}

#edit-user-modal .modal-foot,
#edit-license-modal .modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 10px 20px 18px;
  border-top: 1px solid #23262f;
}

#edit-user-modal .btn-cancel,
#edit-license-modal .btn-cancel {
  background: #222226 !important;
  color: #e2e8f0 !important;
  border: 1px solid #333336 !important;
  font-weight: 500;
  font-size: 13px;
  border-radius: 6px;
  padding: 8px 18px;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

#edit-user-modal .btn-cancel:hover,
#edit-license-modal .btn-cancel:hover {
  background: #262626 !important;
  color: #ffffff !important;
}

#edit-user-modal .btn-save,
#edit-license-modal .btn-save {
  background: #2563eb !important;
  color: #ffffff !important;
  border: 1px solid #2563eb !important;
  font-weight: 500;
  font-size: 13px;
  border-radius: 6px;
  padding: 8px 18px;
  cursor: pointer;
  transition: background 0.15s ease;
}

#edit-user-modal .btn-save:hover,
#edit-license-modal .btn-save:hover {
  background: #1d4ed8 !important;
}

.field-tip-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.field-tip-row .input {
  flex: 1;
}

.field-tip-row .tip .ic {
  width: 18px;
  height: 18px;
  color: #2563eb;
}

.field-tip-row .tip:hover .ic,
.field-tip-row .tip:focus .ic {
  color: #3b82f6;
}

.card-head-sub {
  font-size: 13px;
  color: #8c909e;
  font-weight: 400;
}

.snippet-toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.snippet-toggle-row .switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.snippet-toggle-row .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.snippet-toggle-row .switch span {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #23252d;
  border-radius: 99px;
  transition: 0.2s ease;
}

.snippet-toggle-row .switch span::before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  border-radius: 50%;
  transition: 0.2s ease;
}

.snippet-toggle-row .switch input:checked + span {
  background-color: #2563eb;
}

.snippet-toggle-row .switch input:checked + span::before {
  transform: translateX(20px);
}

.snippet-toggle-label {
  font-size: 13px;
  color: #e2e8f0;
  font-weight: 500;
}

.snippet-lang-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.snippet-lang-label {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 500;
}

.snippet-lang-select {
  width: auto;
  min-width: 140px;
  height: 38px;
  background: #141414;
  border: 1px solid #23252d;
  border-radius: 6px;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  padding: 0 14px;
}

.snippet-code-box {
  background: #121212 !important;
  border: 1px solid #1f1f23 !important;
  border-radius: 8px;
  padding: 18px 22px;
  margin-bottom: 18px;
  overflow-x: auto;
  box-shadow: none !important;
}

.snippet-code-box pre {
  margin: 0;
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: 13.5px;
  line-height: 1.7;
  color: #e2e8f0;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.snippet-code-box pre *,
.snippet-code-box code,
.snippet-code-box span {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
  outline: none !important;
  text-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

.syn-kw {
  color: #f87171 !important;
  font-weight: 500;
}

.syn-str {
  color: #60a5fa !important;
}

.syn-type {
  color: #38bdf8 !important;
}

.syn-com {
  color: #64748b !important;
  font-style: italic;
}

.snippet-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-copy-code {
  background: #2563eb !important;
  border: 1px solid #2563eb !important;
  color: #ffffff !important;
  font-weight: 500;
  font-size: 13px;
  height: 38px;
  padding: 0 16px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-copy-code:hover {
  background: #1d4ed8 !important;
}

.btn-view-example {
  background: #16a34a !important;
  border: 1px solid #16a34a !important;
  color: #ffffff !important;
  font-weight: 500;
  font-size: 13px;
  height: 38px;
  padding: 0 16px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-view-example:hover {
  background: #15803d !important;
}

.btn-view-tutorial {
  background: #27272a !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  font-weight: 500;
  font-size: 13px;
  height: 38px;
  padding: 0 16px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-view-tutorial:hover {
  background: #3f3f46 !important;
}

#edit-copy-hwid {
  background: transparent;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

#edit-copy-hwid:hover {
  color: #ffffff !important;
}

.menu {
  background: #121212;
  border: 1px solid #27272a;
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8);
  padding: 6px;
}

.menu-item {
  font-size: 13px;
  color: #cbd5e1;
  padding: 7px 12px;
  border-radius: 6px;
  transition:
    background 0.12s ease,
    color 0.12s ease;
}

.menu-item:hover {
  background: #23262f;
  color: #ffffff;
}

.menu-item.danger {
  color: #f87171;
}

.menu-item.danger:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

.th-checkbox,
.td-checkbox {
  width: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  text-align: center !important;
  padding: 0 6px !important;
  vertical-align: middle !important;
  line-height: 1 !important;
}

.th-checkbox input[type="checkbox"],
.td-checkbox input[type="checkbox"] {
  margin: 0 !important;
  display: inline-block !important;
  vertical-align: middle !important;
  cursor: pointer;
  position: relative;
  top: 0;
}

.th-actions,
.td-actions {
  width: 70px !important;
  min-width: 70px !important;
  max-width: 70px !important;
  text-align: right !important;
  padding-right: 12px !important;
  padding-left: 8px !important;
  vertical-align: middle !important;
}

.td-actions .btn-actions {
  display: inline-flex !important;
  margin-left: auto !important;
  vertical-align: middle !important;
}

table.tbl-licenses,
table.tbl-users,
table.tbl-files,
table.tbl-webhooks,
table.tbl-variables,
table.tbl-tokens,
table.tbl-sessions,
table.tbl-team,
table.tbl-subscriptions,
table.tbl-blacklists,
table.tbl-logs-users,
table.tbl-logs-audit {
  width: 100%;
  table-layout: auto;
}

.tbl th,
.tbl td,
.tbl-licenses th,
.tbl-licenses td,
.tbl-users th,
.tbl-users td,
.tbl-files th,
.tbl-files td,
.tbl-webhooks th,
.tbl-webhooks td,
.tbl-variables th,
.tbl-variables td,
.tbl-tokens th,
.tbl-tokens td,
.tbl-sessions th,
.tbl-sessions td,
.tbl-team th,
.tbl-team td,
.tbl-subscriptions th,
.tbl-subscriptions td,
.tbl-blacklists th,
.tbl-blacklists td,
.tbl-logs-users th,
.tbl-logs-users td,
.tbl-logs-audit th,
.tbl-logs-audit td {
  vertical-align: middle !important;
  white-space: nowrap;
}

.tbl td .badge,
.tbl th .badge {
  vertical-align: middle !important;
  margin: 0 !important;
  display: inline-flex !important;
}

.tbl-sessions .col-user {
  width: 15%;
}

.tbl-sessions .col-type {
  width: 9%;
}

.tbl-sessions .col-ip {
  width: 14%;
}

.tbl-sessions .col-hwid {
  width: 18%;
}

.tbl-sessions .col-status {
  width: 10%;
}

.tbl-sessions .col-lastact {
  width: 12%;
}

.tbl-sessions .col-expires {
  width: 15%;
}

.tbl-sessions .th-actions,
.tbl-sessions .td-actions {
  width: 70px;
  min-width: 70px;
  max-width: 70px;
  text-align: right;
}

.tbl-licenses .th-checkbox,
.tbl-licenses .td-checkbox {
  width: 38px;
  min-width: 38px;
  max-width: 38px;
}

.tbl-licenses .col-key {
  width: 17%;
}

.tbl-licenses .col-status {
  width: 8%;
}

.tbl-licenses .col-created {
  width: 13%;
}

.tbl-licenses .col-expires {
  width: 9%;
}

.tbl-licenses .col-genby {
  width: 9%;
}

.tbl-licenses .col-usedby {
  width: 9%;
}

.tbl-licenses .col-note {
  width: 9%;
}

.tbl-licenses .col-usedon {
  width: 12%;
}

.tbl-licenses .th-actions,
.tbl-licenses .td-actions {
  width: 70px;
  min-width: 70px;
  max-width: 70px;
  text-align: right;
}

.tbl-users .th-checkbox,
.tbl-users .td-checkbox {
  width: 38px;
  min-width: 38px;
  max-width: 38px;
}

.tbl-users .col-username {
  width: 17%;
}

.tbl-users .col-sub {
  width: 11%;
}

.tbl-users .col-expires {
  width: 15%;
}

.tbl-users .col-hwid {
  width: 17%;
}

.tbl-users .col-lastlogin {
  width: 15%;
}

.tbl-users .col-status {
  width: 11%;
}

.tbl-users .th-actions,
.tbl-users .td-actions {
  width: 70px;
  min-width: 70px;
  max-width: 70px;
  text-align: right;
}

.tbl-files .col-name {
  width: 22%;
}

.tbl-files .col-fileid {
  width: 20%;
}

.tbl-files .col-url {
  width: 36%;
}

.tbl-files .col-access {
  width: 14%;
}

.tbl-files .th-actions,
.tbl-files .td-actions {
  width: 70px;
  min-width: 70px;
  max-width: 70px;
  text-align: right;
}

.tbl-webhooks .col-webhookid {
  width: 20%;
}

.tbl-webhooks .col-url {
  width: 40%;
}

.tbl-webhooks .col-agent {
  width: 18%;
}

.tbl-webhooks .col-access {
  width: 14%;
}

.tbl-webhooks .th-actions,
.tbl-webhooks .td-actions {
  width: 70px;
  min-width: 70px;
  max-width: 70px;
  text-align: right;
}

.tbl-variables .col-key {
  width: 20%;
}

.tbl-variables .col-val {
  width: 33%;
}

.tbl-variables .col-access {
  width: 15%;
}

.tbl-variables .col-status {
  width: 10%;
}

.tbl-variables .col-updated {
  width: 14%;
}

.tbl-variables .th-actions,
.tbl-variables .td-actions {
  width: 70px;
  min-width: 70px;
  max-width: 70px;
  text-align: right;
}

.tbl-tokens .col-token {
  width: 38%;
}

.tbl-tokens .col-user {
  width: 20%;
}

.tbl-tokens .col-status {
  width: 16%;
}

.tbl-tokens .col-created {
  width: 18%;
}

.tbl-tokens .th-actions,
.tbl-tokens .td-actions {
  width: 70px;
  min-width: 70px;
  max-width: 70px;
  text-align: right;
}

.tbl-team .col-member {
  width: 25%;
}

.tbl-team .col-email {
  width: 32%;
}

.tbl-team .col-role {
  width: 15%;
}

.tbl-team .col-added {
  width: 20%;
}

.tbl-team .th-actions,
.tbl-team .td-actions {
  width: 70px;
  min-width: 70px;
  max-width: 70px;
  text-align: right;
}

.tbl-subscriptions .col-name {
  width: 26%;
}

.tbl-subscriptions .col-level {
  width: 12%;
}

.tbl-subscriptions .col-users {
  width: 14%;
}

.tbl-subscriptions .col-licenses {
  width: 14%;
}

.tbl-subscriptions .col-created {
  width: 26%;
}

.tbl-subscriptions .th-actions,
.tbl-subscriptions .td-actions {
  width: 70px;
  min-width: 70px;
  max-width: 70px;
  text-align: right;
}

.tbl-blacklists .col-ip {
  width: 22%;
}

.tbl-blacklists .col-hwid {
  width: 30%;
}

.tbl-blacklists .col-type {
  width: 12%;
}

.tbl-blacklists .col-reason {
  width: 28%;
}

.tbl-blacklists .col-addedby {
  width: 15%;
}

.tbl-blacklists .col-date {
  width: 15%;
}

.tbl-blacklists .th-actions,
.tbl-blacklists .td-actions {
  width: 70px;
  min-width: 70px;
  max-width: 70px;
  text-align: right;
}

.tbl-logs-users .col-user {
  width: 16%;
}

.tbl-logs-users .col-hwid {
  width: 20%;
}

.tbl-logs-users .col-ip {
  width: 14%;
}

.tbl-logs-users .col-logins {
  width: 10%;
}

.tbl-logs-users .col-firstseen {
  width: 14%;
}

.tbl-logs-users .col-lastseen {
  width: 14%;
}

.tbl-logs-users .col-blacklist {
  width: 12%;
}

.tbl-logs-users .th-actions,
.tbl-logs-users .td-actions {
  width: 80px;
  min-width: 80px;
  text-align: right;
}

.tbl-logs-audit .col-date {
  width: 18%;
}

.tbl-logs-audit .col-action {
  width: 14%;
}

.tbl-logs-audit .col-user {
  width: 16%;
}

.tbl-logs-audit .col-details {
  width: 36%;
}

.tbl-logs-audit .col-ip {
  width: 16%;
}

.key-cell,
.user-cell,
.hwid-cell {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  vertical-align: middle !important;
  line-height: 1.2;
  margin: 0 !important;
}

.user-cell-stacked {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  vertical-align: middle !important;
  line-height: 1.35;
}

.cell-truncate {
  display: inline-block;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle !important;
}

@media (min-width: 1400px) {
  .cell-truncate {
    max-width: 380px;
  }
}

.user-cell b {
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
}

.user-email {
  display: block;
  font-size: 11px;
  margin-top: 2px;
  color: #9ca3af;
}

.th-select-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  color: #f1f5f9;
  user-select: none;
}

.selected-items-box {
  max-height: 120px;
  overflow-y: auto;
  background: #141414;
  border: 1px solid #23262f;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
  margin-top: 6px;
}

.selected-items-box ul {
  margin: 0;
  padding-left: 16px;
}

.selected-items-box li {
  font-family: var(--mono);
  color: #cbd5e1;
  margin-bottom: 2px;
}

input[type="checkbox"]:not(.switch-native) {
  appearance: none;
  -webkit-appearance: none;
  width: 17px;
  height: 17px;
  border: 1.5px solid #27272a;
  border-radius: 4px;
  background: #141414;
  cursor: pointer;
  display: inline-grid;
  place-content: center;
  vertical-align: middle;
  margin: 0;
  transition: all 0.14s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  flex-shrink: 0;
}

input[type="checkbox"]:not(.switch-native):hover {
  border-color: #3b82f6;
  background: #1f1f23;
}

input[type="checkbox"]:not(.switch-native):focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.35);
}

input[type="checkbox"]:not(.switch-native):checked {
  background: #2563eb;
  border-color: #2563eb;
}

input[type="checkbox"]:not(.switch-native):checked::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: 4px;
  height: 8px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -60%) rotate(45deg);
  margin: 0;
}

input[type="checkbox"]:not(.switch-native):indeterminate {
  background: #2563eb;
  border-color: #2563eb;
}

input[type="checkbox"]:not(.switch-native):indeterminate::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: 8px;
  height: 2px;
  background: #ffffff;
  border: 0;
  margin: 0;
  transform: translate(-50%, -50%);
}

.resources-support-box {
  width: 100%;
  max-width: 440px;
  margin: auto;
  background: #161616;
  border: 1px solid #23252a;
  border-radius: 10px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  color: #e2e8f0;
  text-align: left;
}

.resources-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #23252a;
  background: #161616;
}

.resources-modal-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.resources-modal-close {
  border: 0;
  background: transparent;
  color: #8e8e93;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: color 0.15s ease;
}

.resources-modal-close:hover {
  color: #ffffff;
}

.resources-modal-body {
  padding: 20px 22px 18px;
  background: #161616;
}

.resources-section-title {
  font-size: 11px;
  font-weight: 700;
  color: #8b949e;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.resources-links-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.resources-item-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #f3f4f6;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  transition:
    color 0.15s ease,
    transform 0.15s ease;
  width: fit-content;
}

.resources-arrow {
  color: #cbd5e1;
  font-size: 14px;
  transition:
    transform 0.15s ease,
    color 0.15s ease;
}

.resources-item-link:hover {
  color: #38bdf8;
}

.resources-item-link:hover .resources-arrow {
  color: #38bdf8;
  transform: translateX(3px);
}

.resources-divider {
  height: 1px;
  background: #23252a;
  margin: 18px 0;
  border: 0;
}

.resources-modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #141414;
  border-top: 1px solid #23252a;
}

.resources-help-text {
  font-size: 12.5px;
  color: #8b949e;
}

.resources-chat-link {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  margin-left: 2px;
  transition: color 0.15s ease;
}

.resources-chat-link:hover {
  color: #38bdf8;
  text-decoration: underline;
}

.resources-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #262626;
  color: #e4e4e7;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.resources-close-btn:hover {
  background: #34363d;
  color: #ffffff;
}

.resources-page-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 16px 60px;
  width: 100%;
}

.settings-header-box {
  margin-bottom: 20px;
}

.settings-header-box h1 {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.02em;
}

.settings-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 6px;
  margin-bottom: 24px;
  width: fit-content;
  flex-wrap: wrap;
}

.settings-tab-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 7px;
  color: #9ca3af;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.settings-tab-pill .ic {
  width: 15px;
  height: 15px;
  stroke-width: 2;
  color: inherit;
}

.settings-tab-pill:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.settings-tab-pill.active {
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35);
}

.settings-tab-pill.active .ic {
  color: #ffffff !important;
}

#settings-form {
  padding-bottom: 30px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }
}

.settings-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.settings-panel-card {
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.settings-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
}

.settings-card-header .ic {
  color: #3b82f6;
  width: 17px;
  height: 17px;
  stroke-width: 2.2;
}

.settings-card-header h3 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  color: #ffffff;
}

.settings-card-body {
  padding: 20px;
}

.setting-toggle-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 8px;
  transition: all 0.15s ease;
}

.setting-toggle-box:last-child {
  margin-bottom: 0;
}

.setting-toggle-box:hover {
  background: #151515;
  border-color: rgba(255, 255, 255, 0.1);
}

.setting-toggle-content {
  flex: 1;
  min-width: 0;
}

.setting-toggle-content h4 {
  margin: 0 0 3px 0;
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
}

.setting-toggle-content p {
  margin: 0;
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.4;
}

.setting-toggle-box .switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 23px;
  flex-shrink: 0;
}

.setting-toggle-box .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.setting-toggle-box .switch span {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #27272a;
  border-radius: 99px;
  transition: background-color 0.2s ease;
}

.setting-toggle-box .switch span::before {
  position: absolute;
  content: "";
  height: 17px;
  width: 17px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.setting-toggle-box .switch input:checked + span {
  background-color: #2563eb;
}

.setting-toggle-box .switch input:checked + span::before {
  transform: translateX(19px);
}

.settings-input-row {
  margin-bottom: 16px;
}

.settings-input-row:last-child {
  margin-bottom: 0;
}

.settings-input-row label {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 500;
  color: #9ca3af;
}

.settings-input-row .input {
  width: 100%;
  height: 38px;
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 13px;
  transition: border-color 0.15s ease;
}

.settings-input-row .input:focus {
  border-color: #2563eb !important;
  outline: none !important;
}

.settings-save-bar {
  position: fixed;
  bottom: 24px;
  right: 28px;
  left: 244px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  background: rgba(20, 20, 22, 0.96);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 22px;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  z-index: 900;
  transform: translateY(140px);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.22s ease;
}

@media (max-width: 900px) {
  .settings-save-bar {
    left: 20px;
    right: 20px;
  }
}

.settings-save-bar.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.settings-save-bar .btn-discard {
  background: #27272a !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #cbd5e1 !important;
  font-weight: 500;
  font-size: 13px;
  height: 38px;
  padding: 0 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.settings-save-bar .btn-discard:hover {
  background: #3f3f46 !important;
  color: #ffffff !important;
}

.settings-save-bar .btn-save {
  background: #2563eb !important;
  border: 1px solid #2563eb !important;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 13px;
  height: 38px;
  padding: 0 20px;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.settings-save-bar .btn-save:hover {
  background: #1d4ed8 !important;
}

.settings-save-bar .btn-save .ic {
  width: 15px;
  height: 15px;
  stroke-width: 2.2;
  color: #ffffff;
}

.alert-messages-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.alert-message-box {
  display: flex;
  flex-direction: column;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 20px 18px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.alert-message-box:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: #1e1e22;
}

.alert-message-box:focus-within {
  border-color: rgba(37, 99, 235, 0.45);
  background: #1c1c20;
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(37, 99, 235, 0.25);
}

.alert-message-label {
  font-size: 13px;
  font-weight: 500;
  color: #e2e8f0;
  margin-bottom: 10px;
  line-height: 1.4;
  display: block;
}

.alert-message-input {
  width: 100%;
  height: 38px;
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 400;
  font-family: inherit;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.alert-message-input:hover {
  background: #141416;
  border-color: rgba(255, 255, 255, 0.14);
}

.alert-message-input:focus {
  background: #141416;
  border-color: #2563eb !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2) !important;
}

.alert-message-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #93c5fd;
  font-size: 12px;
  line-height: 1.45;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.22);
}

.functions-master-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.functions-master-toggle .switch {
  margin: 0;
}

.functions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
  margin-bottom: 24px;
}

@media (max-width: 1240px) {
  .functions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .functions-grid {
    grid-template-columns: 1fr;
  }

  .alert-messages-grid {
    grid-template-columns: 1fr;
  }
}

.function-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.function-category-card {
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.function-category-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
}

.function-category-header .ic {
  width: 17px;
  height: 17px;
  color: #9ca3af;
}

.function-category-header h3 {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.function-category-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.function-item-card {
  display: flex;
  align-items: center;
  background: #141416;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 11px 14px;
  transition: background 0.12s ease;
}

.function-item-card:hover {
  background: #1a1a1e;
}

.function-item-card .switch {
  flex-shrink: 0;
  margin-right: 14px;
}

.function-item-info {
  display: flex;
  flex-direction: column;
}

.function-item-title {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.25;
}

.function-item-desc {
  font-size: 11.5px;
  color: #8292ab;
  margin-top: 2px;
  line-height: 1.3;
}

.mobile-nav-toggle {
  display: none !important;
}

@media (max-width: 860px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .shell > .side {
    position: static;
    height: auto;
    max-height: none;
    overflow: visible;
    padding: 0 16px;
    gap: 0;
    border-bottom: 1px solid var(--c-line);
  }

  .side > .brand {
    min-height: 56px;
    border-bottom: 0;
  }

  .side .app-switch,
  .side .side-nav-wrapper {
    display: none;
  }

  .side.mobile-open .app-switch {
    display: block;
    margin-bottom: 12px;
  }

  .side.mobile-open .side-nav-wrapper {
    display: flex;
    padding-bottom: 16px;
  }

  .side-nav-wrapper > .side-nav {
    overflow: visible;
  }

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

  .side nav a {
    min-height: 44px;
  }

  .mobile-nav-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: none;
    width: 44px;
    height: 44px;
    padding: 0;
    font-size: 22px;
  }

  .workspace-bar {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    min-height: 64px;
  }

  .workspace-title {
    flex: 1;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
  }

  .workspace-title > .ic {
    flex: 0 0 16px;
    margin: 0;
  }

  .workspace-title > strong,
  .workspace-title > .muted {
    flex-shrink: 0;
  }

  .workspace-actions {
    flex: none;
  }

  .page-search-box {
    display: none;
  }

  .main {
    min-width: 0;
    padding: 0 16px 28px;
  }

  .docs-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .docs-layout > .card {
    min-width: 0;
    padding: 18px !important;
  }

  .applications-layout,
  .settings-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .panel,
  .card,
  .settings-col,
  .settings-panel-card,
  .application-item {
    min-width: 0;
  }

  .tbl-wrap,
  .table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tabs,
  .modal-tabs {
    max-width: 100%;
    overflow-x: auto;
  }

  .tabs > *,
  .modal-tabs > * {
    flex-shrink: 0;
  }

  .modal {
    padding: 12px;
  }

  .modal-box,
  .modal-card {
    min-width: 0;
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .modal-head,
  .modal-foot {
    padding: 14px 16px;
  }

  .modal-body {
    padding: 16px 16px 4px;
  }

  .modal-head h3 {
    overflow-wrap: anywhere;
  }

  .modal-x {
    min-width: 44px;
    min-height: 44px;
  }

  .account-menu {
    max-width: calc(100vw - 32px);
  }

  .input,
  input,
  select,
  textarea {
    min-width: 0;
  }

  .input {
    font-size: 16px;
  }

  .btn,
  .btn-sm {
    min-height: 44px;
  }

  .btn-icon {
    min-width: 44px;
  }

  .menu-item {
    min-height: 44px;
  }

  .input-group {
    flex-wrap: wrap;
  }

  .input-group > .input {
    flex-basis: 180px;
  }

  .setting > span:last-child,
  .function-item-info {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  pre {
    max-width: 100%;
    overflow-x: auto;
  }

  .cred,
  .hint,
  .settings-card-body code {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 520px) {
  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .stat {
    min-width: 0;
    padding: 14px;
  }

  .toolbar {
    padding: 12px;
    align-items: stretch;
  }

  .toolbar .input {
    width: 100%;
    max-width: none;
    flex: 1 1 100%;
    height: 44px;
  }

  .toolbar .btn {
    min-height: 44px;
  }

  .page-head,
  .panel-head,
  .card-head {
    flex-wrap: wrap;
  }

  .page-head .actions {
    width: 100%;
  }

  .page-head .actions > .btn {
    flex: 1;
  }

  .pager {
    flex-wrap: wrap;
    gap: 12px;
  }

  .modal-foot {
    flex-wrap: wrap;
  }

  .modal-foot .btn {
    flex: 1;
  }

  .auth-body,
  .auth-page {
    min-height: 100dvh;
    padding: 20px 12px;
  }

  .auth-card {
    min-width: 0;
    padding: 24px 18px;
  }

  .auth-card .input {
    font-size: 16px;
  }

  .nav {
    padding: 14px 12px;
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav-links {
    gap: 8px;
    flex-wrap: wrap;
  }

  .hero {
    padding: 42px 16px 28px;
  }

  .hero h1 {
    font-size: clamp(30px, 9vw, 42px);
    overflow-wrap: anywhere;
  }

  .hero p {
    font-size: 16px;
  }

  .hero .pill {
    max-width: 100%;
    white-space: normal;
  }

  .features {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px 12px 32px;
  }

  #toasts {
    max-width: calc(100vw - 24px);
    right: 12px;
  }
}

.mobile-nav-backdrop,
.mobile-nav-close {
  display: none;
}

@media (max-width: 860px) {
  body.mobile-navigation-open {
    overflow: hidden;
  }

  .shell > .side#mobile-navigation {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 920;
    width: min(300px, calc(100vw - 48px));
    height: 100dvh;
    max-height: 100dvh;
    padding: env(safe-area-inset-top, 0px) 14px
      max(16px, env(safe-area-inset-bottom, 0px));
    border-right: 1px solid var(--c-line-2);
    border-bottom: 0;
    gap: 14px;
    overflow: hidden;
    background: #171719;
    transform: translateX(-100%);
    visibility: hidden;
    transition:
      transform 0.22s ease,
      visibility 0.22s;
    box-shadow: 16px 0 48px #0006;
  }

  .shell > .side#mobile-navigation.mobile-open {
    transform: translateX(0);
    visibility: visible;
  }

  #mobile-navigation > .brand {
    min-height: 68px;
    padding-right: 42px;
    border-bottom: 1px solid var(--c-line);
  }

  #mobile-navigation .app-switch {
    display: block;
    margin: 0;
    flex-shrink: 0;
  }

  #mobile-navigation .side-nav-wrapper {
    display: flex;
    min-height: 0;
    overflow-y: auto;
    padding-bottom: 0;
    gap: 14px;
  }

  #mobile-navigation .side-nav {
    display: flex;
    flex-direction: column;
    overflow: visible;
    flex-shrink: 0;
    gap: 4px;
  }

  #mobile-navigation .side-nav a {
    min-height: 44px;
    padding: 11px 14px;
    font-size: 13px;
    gap: 12px;
    border-radius: 8px;
  }

  #mobile-navigation .side-sep-section {
    margin-top: auto;
    padding-top: 8px;
  }

  .mobile-nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: calc(12px + env(safe-area-inset-top, 0px));
    right: 12px;
    width: 40px;
    height: 40px;
    border: 1px solid var(--c-line);
    border-radius: 8px;
    background: #222225;
    color: #d1d5db;
    font-size: 26px;
    cursor: pointer;
  }

  .mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 910;
    border: 0;
    background: #0009;
    backdrop-filter: blur(3px);
  }

  .mobile-navigation-open .mobile-nav-backdrop {
    display: block;
  }

  .workspace-bar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: #121212;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shell > .side#mobile-navigation {
    transition: none;
  }
}

.docs-subtitle {
  color: #9ca3af;
  margin-top: 8px;
  max-width: 620px;
  line-height: 1.6;
}

.docs-navigation {
  padding: 14px;
  position: sticky;
  top: 20px;
}

.docs-nav-group + .docs-nav-group {
  border-top: 1px solid var(--c-line);
  margin-top: 14px;
  padding-top: 14px;
}

.docs-nav-group h2 {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #85858f;
  margin: 0 10px 8px;
}

.docs-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #a1a1aa;
  min-height: 44px;
}

.docs-nav-link span {
  flex: 1;
}

.docs-nav-link:hover {
  background: #ffffff05;
}

.docs-nav-link.active {
  background: #2563eb12;
  border-color: #2563eb30;
  color: #f4f4f5;
}

.docs-nav-link.active > .ic:first-child {
  color: #60a5fa;
}

.docs-nav-arrow {
  width: 12px;
  opacity: 0.4;
}

.docs-article {
  min-width: 0;
  font-size: 14px;
  line-height: 1.8;
}

.docs-article-label {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #a1a1aa;
  font-size: 12px;
  border-bottom: 1px solid var(--c-line);
  padding-bottom: 18px;
  margin-bottom: 24px;
}

.docs-article > h1 {
  font-size: 28px !important;
  line-height: 1.3;
  margin: 0 0 18px !important;
  letter-spacing: -0.025em;
}

.docs-article > h2 {
  font-size: 19px !important;
  margin-top: 32px !important;
  padding-top: 8px;
  line-height: 1.4;
}

.docs-article > p {
  font-size: 14px !important;
  line-height: 1.85 !important;
  color: #b6b6c0 !important;
  margin: 12px 0 !important;
}

.docs-article > div:not([class]) {
  margin: 10px 0 !important;
  font-size: 14px !important;
  line-height: 1.8 !important;
}

.docs-article :not(pre) > code {
  color: #dedee5 !important;
  background: #ffffff07 !important;
  border-color: #ffffff0c !important;
  font-size: 0.9em !important;
}

.docs-code-container {
  margin: 20px 0 24px;
  border: 1px solid #ffffff12;
  border-radius: 10px;
  overflow: hidden;
}

.docs-code-container > div {
  border: 0 !important;
  border-bottom: 1px solid #ffffff0c !important;
  padding: 10px 16px !important;
  background: #19191d !important;
  border-radius: 0 !important;
}

.docs-code-container pre {
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 20px !important;
  background: #101012 !important;
  line-height: 1.85 !important;
  tab-size: 4;
}

.docs-code-container pre code {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #d4d4dc;
  font-size: 12.5px;
  font-weight: 400;
  white-space: pre;
}

.docs-code-container .btn {
  min-height: 30px;
}

.docs-article .tbl th,
.docs-article .tbl td {
  white-space: normal;
  min-width: 130px;
  padding: 12px 16px;
  line-height: 1.6;
}

@media (max-width: 860px) {
  .docs-navigation {
    position: static;
  }

  .docs-layout {
    gap: 16px !important;
  }

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

  .docs-nav-group h2 {
    grid-column: 1 / -1;
  }

  .docs-nav-link {
    min-width: 0;
    font-size: 12px;
    padding: 10px 8px;
    gap: 8px;
  }

  .docs-nav-arrow {
    display: none;
  }

  .docs-code-container pre {
    padding: 16px !important;
  }

  .docs-article > h1 {
    font-size: 24px !important;
  }
}

@media (max-width: 380px) {
  .docs-nav-group {
    grid-template-columns: minmax(0, 1fr);
  }
}

.docs-navigation {
  padding: 10px;
}

.docs-nav-link {
  min-height: 34px;
  padding: 6px 9px;
  font-size: 12.5px;
  gap: 9px;
  border-radius: 6px;
}

.docs-nav-link > .ic {
  width: 15px;
  height: 15px;
}

.docs-nav-group + .docs-nav-group {
  margin-top: 10px;
  padding-top: 10px;
}

.docs-nav-group h2 {
  font-size: 9px;
  margin-bottom: 5px;
}

.docs-contents {
  margin: 0 0 24px;
  padding: 12px 14px;
  background: #ffffff03;
  border: 1px solid var(--c-line);
  border-radius: 8px;
}

.docs-contents summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  color: #e4e4e7;
}

.docs-contents > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 16px;
  margin-top: 12px;
}

.docs-contents a {
  color: #a1a1aa;
  font-size: 12px;
  padding: 4px 0;
}

.docs-contents a:hover {
  color: #fff;
}

.docs-article h2[id] {
  scroll-margin-top: 90px;
}

@media (max-width: 860px) {
  .docs-navigation .docs-nav-link {
    min-height: 36px;
    padding: 7px 8px;
  }

  .docs-contents > div {
    grid-template-columns: minmax(0, 1fr);
  }
}

.panel-guide-hint {
  margin: 8px 0 18px;
  color: #90909c;
  font-size: 12px;
  line-height: 1.7;
  max-width: 850px;
}

.panel-guide-hint a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #b4c5e4;
}

.panel-guide-hint .ic {
  width: 13px;
  height: 13px;
}

.account-email-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.account-email-input {
  position: relative;
  flex: 1 1 180px;
  min-width: 0;
}

.account-email-input > .input {
  display: block;
  width: 100%;
  height: 40px;
  padding-right: 44px;
  text-overflow: ellipsis;
}

.account-email-toggle {
  position: absolute;
  inset: 0 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  padding: 0;
  border: 0;
  border-radius: 0 8px 8px 0;
  background: transparent;
  color: #858591;
  cursor: pointer;
}

.account-email-toggle:hover {
  color: #f4f4f5;
  background: #ffffff05;
}

.account-email-toggle:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: -4px;
}

.account-email-toggle .ic {
  width: 17px;
  height: 17px;
}

.account-email-verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: none;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid #34d39926;
  border-radius: 7px;
  background: #34d3990a;
  color: #6ee7b7;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.account-email-verified .ic {
  width: 15px;
  height: 15px;
}

.account-email-verification {
  margin: 0;
  flex: none;
}

.account-email-verification .account-email-verify {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  padding: 0 12px;
  font-size: 12px;
  border-color: #3b82f635;
  background: #2563eb0d;
  color: #b8cff7;
}

.account-email-verify:hover {
  background: #2563eb20;
}

@media (max-width: 860px) {
  .account-email-input > .input {
    height: 44px;
  }

  .account-email-toggle {
    width: 44px;
  }

  .account-email-verification .account-email-verify {
    height: 44px;
  }
}

@media (max-width: 420px) {
  .account-email-row {
    flex-wrap: wrap;
    gap: 8px;
  }

  .account-email-input {
    flex-basis: 100%;
  }
}

[data-team-role] [hidden],
[data-open][hidden],
[data-team-blocked] [hidden] {
  display: none !important;
}

/* Notifications Bell & Dropdown */
.notif-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.notif-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: #1a1a1a;
  color: #9ca3af;
  cursor: pointer;
  padding: 0;
  box-shadow: none !important;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.notif-btn:hover,
.notif-wrap.open .notif-btn {
  background: #222226;
  border-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.notif-btn .ic {
  width: 18px;
  height: 18px;
}

.notif-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  background: #2563eb;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #1a1a1a;
  line-height: 1;
}

.notif-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 350px;
  max-width: 92vw;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  z-index: 100;
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: drop 0.14s ease-out;
}

.notif-wrap.open .notif-menu {
  display: flex;
}

.notif-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: #1a1a1a;
}

.notif-mark-btn {
  font-size: 11px !important;
  padding: 4px 10px !important;
  color: #60a5fa !important;
  background: rgba(37, 99, 235, 0.08) !important;
  border: 1px solid rgba(37, 99, 235, 0.2) !important;
  border-radius: 6px !important;
  font-weight: 500 !important;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease !important;
}

.notif-mark-btn:hover {
  background: rgba(37, 99, 235, 0.15) !important;
  border-color: rgba(37, 99, 235, 0.35) !important;
  color: #93c5fd !important;
}

.notif-dot {
  width: 4.5px;
  height: 4.5px;
  border-radius: 50%;
  background: #60a5fa;
  display: inline-block;
  margin-right: 4px;
}

.notif-list {
  max-height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.notif-item {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.12s ease;
  text-decoration: none;
  color: inherit;
  align-items: flex-start;
}

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

.notif-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.notif-item.unread {
  background: rgba(37, 99, 235, 0.04);
}

.notif-item.unread:hover {
  background: rgba(37, 99, 235, 0.08);
}

.notif-item-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #3b82f6;
}

.notif-item-icon .ic {
  width: 17px;
  height: 17px;
}

.notif-item-info {
  flex: 1;
  min-width: 0;
}

.notif-item-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.25;
}

.notif-item-desc {
  font-size: 11.5px;
  color: #9ca3af;
  line-height: 1.4;
  margin: 3px 0 4px 0;
  word-break: break-word;
}

.notif-item-time {
  font-size: 10.5px;
  color: #6b7280;
}

.notif-empty {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 36px 16px !important;
  color: #9ca3af !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-height: 130px !important;
}

.notif-empty-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  color: #6b7280 !important;
  margin: 0 auto 10px auto !important;
  flex-shrink: 0 !important;
}

.notif-empty-icon .ic,
.notif-empty-icon svg {
  width: 18px !important;
  height: 18px !important;
  display: block !important;
  margin: 0 auto !important;
  color: #6b7280 !important;
}

.notif-empty-text {
  margin: 0 !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  color: #9ca3af !important;
  text-align: center !important;
  width: 100% !important;
  line-height: 1.4 !important;
}


/* Global Dark Form Select Fixes */
select,
.select,
select.input {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  color-scheme: dark !important;
  background-color: #121215 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px !important;
  color: #f1f5f9 !important;
  font-size: 13.5px !important;
  padding: 9px 36px 9px 12px !important;
  outline: none !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

select:focus,
.select:focus,
select.input:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2) !important;
}

select option,
select optgroup,
.select option,
.input option {
  background-color: #141418 !important;
  color: #f1f5f9 !important;
  font-size: 13px !important;
  padding: 10px 14px !important;
}

select option:checked,
select option:hover,
.select option:checked,
.select option:hover {
  background-color: #2563eb !important;
  color: #ffffff !important;
}

/* Notifications Management Admin UI */
.notif-mgmt-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.notif-stat-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease;
}

.notif-stat-card:hover {
  border-color: var(--c-line-strong);
}

.notif-stat-val {
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.notif-stat-lbl {
  font-size: 12px;
  font-weight: 500;
  color: var(--c-fg-3);
  margin-top: 4px;
}

.notif-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.badge-public {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-size: 11px;
  font-weight: 600;
  padding: 2.5px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badge-private {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.25);
  font-size: 11px;
  font-weight: 600;
  padding: 2.5px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badge-target {
  background: rgba(99, 102, 241, 0.12);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.25);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 6px;
}


/* Notched Field UI (KeyAuth / GlobalAuth Style) */
.field-notch-group {
  position: relative;
  margin-bottom: 16px;
}

.field-notch-box {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  background: #101013;
  padding: 4px 10px 4px 16px;
  min-height: 48px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field-notch-box:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 1px #2563eb;
}

.field-notch-label {
  position: absolute;
  top: -7px;
  left: 12px;
  background: var(--c-surface, #18181b);
  padding: 0 6px;
  font-size: 11px;
  font-weight: 600;
  color: #3b82f6;
  letter-spacing: 0.02em;
  z-index: 2;
  pointer-events: none;
  line-height: 1;
}

.field-notch-input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 0;
  width: 100%;
}

.field-notch-btn {
  background: transparent;
  border: 0;
  color: #9ca3af;
  padding: 7px;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, background 0.15s ease;
  flex-shrink: 0;
}

.field-notch-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.field-notch-btn .ic {
  width: 18px;
  height: 18px;
}


/* Admin Modern Tables & Bulk Selection UI (Unified with app/) */
.filter-pills {
  display: inline-flex;
  align-items: center;
  background: #141416;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}

.filter-pill {
  padding: 4px 11px;
  font-size: 12px;
  font-weight: 500;
  color: #9ca3af;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.12s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.filter-pill:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

.filter-pill.active {
  color: #ffffff;
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(37, 99, 235, 0.35);
  font-weight: 600;
}

.bulk-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 18px;
  background: rgba(37, 99, 235, 0.08);
  border-bottom: 1px solid rgba(37, 99, 235, 0.22);
  color: #93c5fd;
  font-size: 12.5px;
  animation: drop 0.15s ease-out;
}

.bulk-toolbar .bulk-count {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
}

.bulk-toolbar .bulk-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 6px;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrap .input {
  padding-right: 32px;
}

.search-input-wrap .btn-icon {
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #9ca3af;
  padding: 6px;
}

.search-input-wrap .btn-icon:hover {
  color: #ffffff;
}

/* Custom modern checkbox */
input[type="checkbox"].app-checkbox,
input[type="checkbox"].notif-row-cb,
input[type="checkbox"].acc-row-cb,
input[type="checkbox"].apps-row-cb,
input[type="checkbox"].logs-row-cb,
input[type="checkbox"]#notif-select-all,
input[type="checkbox"]#acc-select-all,
input[type="checkbox"]#apps-select-all,
input[type="checkbox"]#logs-select-all {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 16px !important;
  height: 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 4px !important;
  background: #141416 !important;
  cursor: pointer !important;
  display: inline-grid !important;
  place-content: center !important;
  vertical-align: middle !important;
  transition: all 0.12s ease !important;
  margin: 0 !important;
}

input[type="checkbox"]:hover {
  border-color: rgba(255, 255, 255, 0.45) !important;
}

input[type="checkbox"]:checked {
  background: #2563eb !important;
  border-color: #2563eb !important;
}

input[type="checkbox"]:checked::after {
  content: "" !important;
  width: 9px !important;
  height: 5px !important;
  border-left: 2px solid #ffffff !important;
  border-bottom: 2px solid #ffffff !important;
  transform: rotate(-45deg) translate(0.5px, -0.5px) !important;
}

/* Table refinements for admin tables */
.tbl th.th-checkbox,
.tbl td.td-checkbox {
  width: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  text-align: center !important;
  padding: 7px 8px !important;
}

.tbl-notifications .td-actions,
.tbl-accounts .td-actions,
.tbl-apps .td-actions,
.tbl-logs .td-actions {
  text-align: right;
  white-space: nowrap;
}


/* Ensure only one separator line exists under GlobalAuth brand */
.side nav,
.side-nav-wrapper > .side-nav {
  border-top: 0 !important;
}


/* Universal Icon + Text Alignment in Card & Panel Headers */
.card-head,
.panel-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 16px 20px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  background: transparent !important;
}

.card-head h3,
.panel-head h3 {
  display: inline-flex !important;
  align-items: center !important;
  gap: 9px !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  margin: 0 !important;
  line-height: 1.3 !important;
}

.card-head h3 > .ic,
.card-head h3 > svg,
.panel-head h3 > .ic,
.panel-head h3 > svg {
  display: inline-flex !important;
  width: 17px !important;
  height: 17px !important;
  color: #60a5fa !important;
  flex-shrink: 0 !important;
  vertical-align: middle !important;
  margin: 0 !important;
}

/* Universal Button + Icon Alignment */
.btn,
.btn-sm,
.btn-ghost {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  vertical-align: middle !important;
}

.btn .ic,
.btn svg,
.btn-ghost .ic,
.btn-ghost svg {
  width: 15px !important;
  height: 15px !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  vertical-align: middle !important;
}

.btn-icon .ic,
.btn-icon svg {
  margin: 0 !important;
}

/* Global Textarea & Input Styling */
textarea.input,
.textarea {
  background-color: #090d18 !important;
  border: 1px solid #182238 !important;
  border-radius: 8px !important;
  color: #f1f5f9 !important;
  padding: 10px 12px !important;
  font-family: inherit !important;
  font-size: 13px !important;
  box-sizing: border-box !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

textarea.input:focus,
.textarea:focus {
  border-color: #3b82f6 !important;
  outline: none !important;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.4) !important;
}


/* Strict Mobile Toggle Visibility - Hide Completely on Desktop */
@media (min-width: 861px) {
  .mobile-nav-toggle,
  button.mobile-nav-toggle,
  .workspace-bar .mobile-nav-toggle,
  .workspace-bar > .mobile-nav-toggle {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }
}

/* Centered Confirm Modal (Aceptar / Cancelar) */
#confirm-modal .modal-box,
.confirm-box {
  max-width: 440px !important;
  background: #141416 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 14px !important;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
  overflow: hidden;
  animation: confirmRise 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes confirmRise {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

#confirm-modal .modal-head {
  padding: 16px 20px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

#confirm-modal .modal-head h3 {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #f1f5f9 !important;
}

#confirm-modal .modal-body {
  padding: 20px 20px 10px !important;
}

#confirm-modal .modal-foot {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  padding: 14px 20px 18px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: rgba(0, 0, 0, 0.2) !important;
}

#confirm-modal .btn-ghost {
  background: #222226 !important;
  color: #e2e8f0 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

#confirm-modal .btn-ghost:hover {
  background: #2a2a30 !important;
  color: #ffffff !important;
}

#confirm-modal #confirm-ok {
  background: #ef4444 !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
  font-weight: 500 !important;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25) !important;
}

#confirm-modal #confirm-ok:hover {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
}

/* Automatic Toolbar Search & Filter */
.toolbar > button.btn-sm:not([data-open]):not([data-export]):not(.btn-keep),
.toolbar button[type="submit"]:not([data-open]):not([data-export]):not(.btn-keep),
.toolbar .btn-search,
.toolbar .btn-filter {
  display: none !important;
}