:root {
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  color: #eaf0f8;
  background: #0a1017;
  color-scheme: dark;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html, body, #root { width: 100%; min-width: 320px; min-height: 100%; margin: 0; }
body { min-height: 100dvh; background: #0a1017; }
button, input, textarea { font: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { opacity: .55; cursor: not-allowed; }
input, textarea { color: #edf3fa; }
input::placeholder, textarea::placeholder { color: #718096; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid #00dffc; outline-offset: 2px; }

.login-page {
  display: grid;
  min-height: 100dvh;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(ellipse at 12% 5%, #17497d42, transparent 42%),
    radial-gradient(ellipse at 92% 95%, #173c3530, transparent 38%),
    #0a1017;
}

.login-card {
  width: min(100%, 440px);
  padding: clamp(23px, 6vw, 36px);
  border: 1px solid #273647;
  border-radius: 23px;
  background: #111b27;
  box-shadow: 0 25px 80px #0006;
}

.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.login-card > .brand { margin-bottom: 35px; }
.brand-mark {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid #4069a1;
  border-radius: 14px;
  background: linear-gradient(145deg, #168bff, #0878e8);
  color: white;
  font-size: 21px;
  font-weight: 850;
  box-shadow: 0 7px 23px #236ac733;
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 17px; font-weight: 800; letter-spacing: -.3px; }
.brand small { margin-top: 4px; color: #8093a8; font-size: 9px; letter-spacing: 1px; }

.eyebrow { color: #7eb9ff; font-size: 10px; font-weight: 800; letter-spacing: 1.8px; }
h1 { margin: 12px 0 9px; font-size: clamp(25px, 5vw, 33px); letter-spacing: -1px; line-height: 1.2; }
h2 { font-size: 17px; }
p { overflow-wrap: anywhere; }
.subtext { color: #9baabd; font-size: 13px; line-height: 1.7; }

.login-card form, .create-form { display: grid; gap: 15px; }
.login-card form { margin-top: 26px; }
.login-card label, .create-form label {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: #d9e5f3;
  font-size: 12px;
  font-weight: 650;
}

input, textarea {
  width: 100%;
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid #324459;
  border-radius: 11px;
  background: #0c141e;
  color: #edf4fb;
  font-size: 12px;
  outline: 0;
}
input:focus, textarea:focus { border-color: #4b91e4; box-shadow: 0 0 0 3px #357fd51c; }
.primary, .secondary, .danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
}
.primary { background: linear-gradient(120deg, #2878cf, #2564ad); color: white; }
.primary:hover:not(:disabled) { filter: brightness(1.12); }
.secondary { border-color: #334458; background: #1a2837; color: #d7e4f1; }
.secondary:hover:not(:disabled) { background: #233448; }
.danger { border-color: #673944; background: #461e2a; color: #ffc1c6; }
.danger:hover:not(:disabled) { background: #642733; }
.compact { min-height: 33px; padding: 7px 10px; }
.full { width: 100%; }

.fine-print { margin-top: 18px; color: #788b9f; font-size: 10px; line-height: 1.8; }
.notice {
  margin: 10px 0;
  padding: 11px 13px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 11px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.notice.error { border-color: #713a49; background: #4e202d42; color: #ffbac5; }
.notice.success { border-color: #245a4a; background: #0b463635; color: #a7f1d2; }

/* Main owner console */
.panel-app {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100dvh;
  background:
    radial-gradient(ellipse at 80% 0%, #1d3f5b20, transparent 42%),
    #0a1017;
}

.panel-header {
  display: flex;
  position: sticky;
  top: 0;
  z-index: 5;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 20px;
  border-bottom: 1px solid #253442;
  background: #101a25f5;
  backdrop-filter: blur(18px);
}

.header-right { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.owner-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 9px;
  border: 1px solid #315c83;
  border-radius: 8px;
  background: #17304b;
  color: #9ccaff;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 1px;
  white-space: nowrap;
}

.panel-layout {
  display: grid;
  flex: 1;
  grid-template-columns: 228px minmax(0, 1fr);
  min-height: 0;
}

.panel-sidebar {
  position: sticky;
  top: 72px;
  display: flex;
  flex-direction: column;
  align-self: start;
  height: calc(100dvh - 72px);
  min-height: 480px;
  padding: 17px 12px;
  border-right: 1px solid #253442;
  background: #0d151e;
}

.side-label {
  margin: 10px 10px 15px;
  color: #61788e;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.8px;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  margin-bottom: 5px;
  padding: 12px 11px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: #94a5b6;
  text-align: left;
  font-size: 11px;
  font-weight: 650;
}

.side-link > span:first-child { width: 19px; color: #8ba5bd; font-size: 17px; text-align: center; }
.side-link:hover { background: #172635; color: #e5eff8; }
.side-link-active { border-color: #294c6d; background: #19324b; color: #d1e7ff; }
.side-link-active > span:first-child { color: #87bdff; }

.count-badge {
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  margin-left: auto;
  padding: 0 5px;
  border-radius: 7px;
  background: #a33b47;
  color: white;
  font-size: 10px;
}

.sidebar-foot {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding: 16px 10px 6px;
  border-top: 1px solid #253442;
  color: #8195a8;
  font-size: 10px;
}
.sidebar-foot small { color: #5f7489; font-size: 9px; }
.secure-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #36c693; box-shadow: 0 0 0 4px #36c6931c; }

.panel-content {
  width: 100%;
  max-width: 1250px;
  min-width: 0;
  margin: 0 auto;
  padding: clamp(14px, 3vw, 28px);
}

.page-title { margin-bottom: 23px; }
.page-title h1 { margin-top: 7px; font-size: clamp(26px, 4vw, 33px); }
.page-title p { margin: 0; color: #8297aa; font-size: 12px; line-height: 1.7; }

.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-bottom: 20px; }
.stat-card {
  min-width: 0;
  padding: 17px;
  border: 1px solid #2b3d4f;
  border-radius: 15px;
  background: linear-gradient(145deg, #152535, #111b27);
}
.stat-icon { display: grid; width: 35px; height: 35px; place-items: center; margin-bottom: 13px; border: 1px solid #314d69; border-radius: 11px; background: #1b344d; color: #91c6ff; font-size: 17px; }
.stat-card > span { display: block; color: #91a4b8; font-size: 10px; }
.stat-card > strong { display: block; margin-top: 7px; color: #eff6ff; font-size: clamp(21px, 4vw, 29px); letter-spacing: -.5px; }

.surface {
  min-width: 0;
  margin-bottom: 17px;
  padding: clamp(13px, 2.5vw, 20px);
  border: 1px solid #29394a;
  border-radius: 16px;
  background: #111b27;
  box-shadow: 0 12px 32px #0002;
}

.surface-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.surface-heading h2 { margin: 0; color: #e4edf6; font-size: 14px; }
.surface-heading p { margin: 5px 0 0; color: #8499ad; font-size: 10px; line-height: 1.65; }

.security-surface { background: #111d26; border-color: #2e4654; }

.field-inline { display: flex; align-items: stretch; gap: 7px; min-width: 0; }
.field-inline input { flex: 1; width: 0; }
.field-inline button { flex: 0 0 auto; }

.create-form { gap: 13px; }
.create-form textarea { resize: vertical; }

.filter-input { margin: 0 0 14px; }

.table-wrap { width: 100%; overflow-x: auto; border: 1px solid #293b4c; border-radius: 11px; }
table { width: 100%; border-collapse: collapse; font-size: 10px; text-align: left; }
thead { background: #172635; }
th { padding: 11px; color: #8ba2b8; font-size: 9px; font-weight: 800; letter-spacing: .5px; white-space: nowrap; }
td { max-width: 260px; padding: 12px 11px; border-top: 1px solid #243443; vertical-align: top; }
td strong, td small { display: block; overflow-wrap: anywhere; }
td strong { color: #e0ebf5; font-size: 11px; }
td small { margin-top: 5px; color: #8297a9; font-size: 9px; line-height: 1.5; }

.status-badge, .report-status {
  display: inline-block;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 9px;
  font-weight: 800;
}
.status-active, .report-actioned { border-color: #275a48; background: #113729; color: #9ae4c0; }
.status-disabled { border-color: #66552d; background: #352d19; color: #ebcf87; }
.status-banned { border-color: #713b47; background: #421f29; color: #ffb6c2; }

.row-actions { display: flex; flex-wrap: wrap; gap: 5px; min-width: 95px; }
.action-button { padding: 6px 8px; border: 1px solid #34485a; border-radius: 7px; background: #1b2a38; color: #cbdbea; font-size: 9px; font-weight: 750; }
.action-disable { border-color: #66552d; background: #352d19; color: #f0d289; }
.action-enable { border-color: #285a48; background: #103729; color: #a3efca; }
.action-ban { border-color: #713b47; background: #421f29; color: #ffb6c2; }

.pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 9px; margin-top: 14px; color: #8397ab; font-size: 10px; }
.inline-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.credential-result { margin-bottom: 17px; padding: 17px; border: 1px solid #316b54; border-radius: 15px; background: #10291f; }
.credential-title { display: flex; align-items: center; gap: 9px; color: #b8f4d5; font-size: 13px; font-weight: 800; }
.credential-result > p { color: #93b9a6; font-size: 11px; line-height: 1.7; }
.credential-lines { display: grid; gap: 10px; margin: 14px 0; }
.credential-lines div { display: grid; gap: 4px; padding: 10px; border: 1px solid #285441; border-radius: 9px; background: #0b2119; }
.credential-lines small { color: #83a995; font-size: 9px; }
.credential-lines strong { overflow-wrap: anywhere; color: #dff9eb; font-size: 11px; }
.password-value { user-select: all; }

.report-card { min-width: 0; margin-bottom: 13px; padding: clamp(13px, 2.5vw, 19px); border: 1px solid #2c3d4d; border-radius: 15px; background: #121e2a; }
.report-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 9px; margin-bottom: 16px; }
.report-header time { color: #8498ab; font-size: 9px; }
.report-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.report-status { text-transform: uppercase; letter-spacing: .4px; }
.report-pending { border-color: #6b582e; background: #332d1e; color: #eed18a; }
.report-dismissed { border-color: #44515f; background: #222e39; color: #a9b9c8; }
.report-category { color: #91b8e0; font-size: 10px; font-weight: 750; text-transform: capitalize; }
.report-parties { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 11px; padding: 13px; border: 1px solid #2a3c4b; border-radius: 11px; background: #0e1822; }
.report-parties > div { display: grid; min-width: 0; gap: 6px; }
.report-parties small, .report-reason > small { color: #7e96ab; font-size: 8px; font-weight: 800; letter-spacing: .8px; }
.report-parties strong { color: #dce8f3; font-size: 11px; overflow-wrap: anywhere; }
.report-parties span:not(.report-arrow) { color: #8fa3b7; font-size: 10px; overflow-wrap: anywhere; }
.report-arrow { color: #6c90b4; font-size: 18px; }

.report-reason { margin-top: 13px; padding: 13px; border: 1px solid #293a49; border-radius: 11px; background: #0e1822; }
.report-reason p { margin: 8px 0 0; color: #d6e0e9; font-size: 12px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.report-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 13px; }
.report-footer > small { color: #71869a; font-size: 9px; overflow-wrap: anywhere; }
.reviewed-label { color: #8bd3b1; font-size: 10px; font-weight: 700; }
.review-note { padding-top: 10px; border-top: 1px solid #293a49; color: #90a5b8; font-size: 10px; line-height: 1.7; }

.report-summary { display: flex; align-items: center; gap: 10px; margin-bottom: 17px; padding: 12px 14px; border: 1px solid #493f2b; border-radius: 12px; background: #211e17; color: #d6c493; font-size: 11px; }
.summary-number { color: #f2d38b; font-size: 20px; font-weight: 850; }
.report-summary .secondary { margin-left: auto; }

.audit-row { display: flex; gap: 12px; padding: 13px 0; border-top: 1px solid #293846; }
.audit-icon { display: grid; flex: 0 0 35px; width: 35px; height: 35px; place-items: center; border: 1px solid #304b68; border-radius: 10px; background: #182d43; color: #a5d0ff; }
.audit-content { flex: 1; min-width: 0; }
.audit-content strong { display: block; color: #dce7f2; font-size: 11px; text-transform: capitalize; }
.audit-content small { display: block; margin-top: 5px; color: #8297a9; font-size: 9px; overflow-wrap: anywhere; }
.audit-content pre { margin: 10px 0 0; padding: 10px; overflow-x: auto; border-radius: 8px; background: #0b141e; color: #99b1c8; font-size: 9px; white-space: pre-wrap; overflow-wrap: anywhere; }

.empty-state { display: grid; justify-items: center; gap: 9px; padding: 27px 12px; text-align: center; }
.empty-symbol { display: grid; width: 47px; height: 47px; place-items: center; border: 1px solid #315071; border-radius: 15px; background: #192d42; color: #a2ceff; font-size: 20px; font-weight: 850; }
.empty-state strong { color: #dce7f2; font-size: 12px; }
.empty-state p { max-width: 290px; margin: 0; color: #8297a9; font-size: 10px; line-height: 1.8; }

.panel-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 17px 2px 4px; color: #6f8397; font-size: 9px; }

@media (max-width: 780px) {
  .panel-layout { grid-template-columns: 1fr; }
  .panel-sidebar { position: static; height: auto; min-height: 0; flex-direction: row; align-items: center; gap: 5px; padding: 8px; overflow-x: auto; border-right: 0; border-bottom: 1px solid #253442; }
  .side-label, .sidebar-foot { display: none; }
  .side-link { flex: 0 0 auto; gap: 7px; margin: 0; padding: 10px; font-size: 10px; white-space: nowrap; }
  .side-link > span:first-child { width: auto; }
  .count-badge { min-width: 18px; height: 18px; }
  .panel-content { padding: 16px 12px 25px; }
}

@media (max-width: 480px) {
  .panel-header { gap: 7px; padding: 9px 10px; }
  .panel-header .brand { gap: 7px; }
  .panel-header .brand-mark { flex-basis: 35px; width: 35px; height: 35px; border-radius: 11px; font-size: 18px; }
  .panel-header .brand strong { font-size: 14px; }
  .panel-header .brand small { font-size: 7px; letter-spacing: .6px; }
  .header-right { gap: 5px; }
  .header-right .compact { min-height: 30px; padding: 6px 7px; font-size: 9px; }
  .owner-chip { padding: 5px 6px; font-size: 8px; }

  .side-link { gap: 5px; padding: 9px 8px; font-size: 9px; }
  .side-link > span:first-child { font-size: 14px; }

  .stats-grid { gap: 7px; }
  .stat-card { padding: 11px; border-radius: 12px; }
  .stat-icon { width: 30px; height: 30px; margin-bottom: 10px; }
  .stat-card > span { font-size: 9px; }
  .stat-card > strong { font-size: 20px; }

  .surface-heading { align-items: flex-start; flex-wrap: wrap; }
  .field-inline { flex-wrap: wrap; }
  .field-inline input { flex-basis: 100%; }
  .field-inline button { flex: 1; }
  .report-parties { gap: 7px; padding: 10px; }
  .report-parties small { font-size: 7px; }
  .report-parties strong { font-size: 10px; }
  .report-parties span:not(.report-arrow) { font-size: 9px; }
  .report-footer { align-items: flex-start; }
  .report-summary { flex-wrap: wrap; }
  .report-summary .secondary { margin-left: 0; }
  .panel-footer { flex-direction: column; align-items: flex-start; line-height: 1.7; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* =========================================
   VexPanel mobile-first UI polish
   ========================================= */

.surface {
  border: 1px solid rgba(148, 169, 198, .16);
  border-radius: 22px;
  background:
    radial-gradient(ellipse at top left, rgba(67, 126, 190, .075), transparent 55%),
    linear-gradient(145deg, rgba(20, 31, 44, .98), rgba(13, 23, 34, .98));
  box-shadow: 0 12px 32px rgba(0, 0, 0, .13);
  overflow: hidden;
}

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

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

.surface-heading h2 {
  margin: 0;
  color: #edf4ff;
  font-size: clamp(17px, 4vw, 21px);
  letter-spacing: -.025em;
  line-height: 1.35;
}

.surface-heading p {
  margin: 6px 0 0;
  color: #8e9fb4;
  font-size: 13px;
  line-height: 1.6;
}

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

.surface form label {
  display: grid;
  gap: 8px;
  color: #d2deed;
  font-size: 13px;
  font-weight: 700;
}

.surface input:not([type="checkbox"]):not([type="radio"]),
.surface select,
.surface textarea,
.filter-input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #2b3b4d;
  border-radius: 13px;
  background: #0c1620;
  color: #edf4ff;
  font: inherit;
  font-size: 14px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.surface textarea {
  resize: vertical;
  line-height: 1.6;
}

.surface input:focus,
.surface select:focus,
.surface textarea:focus,
.filter-input:focus {
  outline: none;
  border-color: #5299f7;
  box-shadow: 0 0 0 3px rgba(66, 139, 242, .13);
}

.surface input::placeholder,
.surface textarea::placeholder,
.filter-input::placeholder {
  color: #687c91;
}

.surface button,
.row-actions button {
  transition: transform .16s ease, filter .16s ease, border-color .16s ease;
}

.surface button:active,
.row-actions button:active {
  transform: scale(.985);
}

.surface button:disabled,
.row-actions button:disabled {
  opacity: .58;
  cursor: not-allowed;
}

.filter-input {
  margin: 2px 0 16px;
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border: 1px solid rgba(143, 167, 197, .14);
  border-radius: 15px;
  background: rgba(7, 15, 23, .34);
}

.table-wrap table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.table-wrap th {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(143, 167, 197, .16);
  background: rgba(28, 44, 61, .62);
  color: #93a8c1;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.table-wrap td {
  padding: 14px;
  border-bottom: 1px solid rgba(143, 167, 197, .1);
  color: #d6e1ef;
  font-size: 13px;
  line-height: 1.55;
  vertical-align: middle;
}

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

.table-wrap tbody tr:hover {
  background: rgba(67, 126, 190, .06);
}

.table-wrap td strong,
.table-wrap td small {
  display: block;
}

.table-wrap td small {
  margin-top: 3px;
  color: #8396ac;
  font-size: 11px;
  overflow-wrap: anywhere;
}

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

.row-actions .action-button {
  min-height: 36px;
  padding: 8px 11px;
  border: 1px solid rgba(140, 166, 199, .22);
  border-radius: 10px;
  background: rgba(41, 59, 79, .76);
  color: #dbeafe;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.row-actions .action-button:hover {
  border-color: rgba(117, 169, 233, .55);
  filter: brightness(1.09);
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 5px;
  border-radius: 50%;
  background: #1687ff;
  color: white;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  vertical-align: middle;
}

@media (max-width: 640px) {
  .surface {
    border-radius: 18px;
    padding: 16px !important;
  }

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

  .surface-heading button {
    min-height: 40px;
  }

  .table-wrap {
    border-radius: 13px;
  }

  .table-wrap th,
  .table-wrap td {
    padding: 11px 10px;
  }

  .row-actions {
    min-width: 110px;
    align-items: stretch;
  }

  .row-actions .action-button {
    white-space: normal;
    text-align: center;
  }
}

/* VEXPANEL PREMIUM SAFE V1 */
:root {
  --vp-border: rgba(151, 180, 216, .16);
  --vp-blue: #65aaff;
}

html { scrollbar-color: #344c69 #0a111b; }

.panel-app {
  background:
    radial-gradient(ellipse at 70% 0%, rgba(39, 108, 181, .15), transparent 44%),
    #0a1017;
}

.panel-header {
  min-height: 68px;
  padding: 12px clamp(12px, 2.5vw, 28px);
  border-bottom-color: var(--vp-border);
  background: rgba(10, 17, 28, .94);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .12);
}

.brand-mark {
  border-color: rgba(117, 178, 255, .4);
  background: linear-gradient(145deg, #65eaff, #0878e8);
  box-shadow: 0 6px 22px rgba(40, 115, 220, .2);
}

.owner-chip {
  border-radius: 999px;
  border-color: rgba(91, 157, 235, .3);
}

.panel-layout { grid-template-columns: 238px minmax(0, 1fr); }

.panel-sidebar {
  border-right-color: var(--vp-border);
  background: rgba(10, 18, 30, .9);
}

.side-link {
  min-height: 43px;
  border-radius: 12px;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.side-link:hover {
  border-color: rgba(142, 181, 231, .12);
  background: rgba(81, 132, 193, .11);
}

.side-link-active {
  border-color: rgba(91, 159, 243, .3);
  background: linear-gradient(100deg, rgba(46, 116, 196, .23), rgba(46, 116, 196, .06));
  box-shadow: inset 3px 0 #68aaff;
}

.panel-content { max-width: 1440px; }

.page-title h1 {
  color: #f2f6ff;
  font-weight: 800;
  letter-spacing: -1px;
}

.page-title .eyebrow { color: #83bcff; }

.stats-grid { gap: 14px; margin-bottom: 24px; }

.stat-card {
  position: relative;
  overflow: hidden;
  min-height: 140px;
  border-color: var(--vp-border);
  border-radius: 17px;
  background: linear-gradient(145deg, #17283d, #101a28);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .12);
  transition: transform .18s ease, border-color .18s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(103, 166, 243, .36);
}

.stat-icon {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border: 1px solid rgba(103, 166, 243, .2);
  border-radius: 12px;
  background: rgba(66, 133, 219, .12);
  color: #8ec2ff;
}

.stat-card > strong { color: #f2f6ff; }

.surface {
  border-color: var(--vp-border);
  border-radius: 18px;
  background: linear-gradient(145deg, #121e2d, #0e1724);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .1);
}

.surface-heading h2 { color: #edf4ff; }

.primary, .secondary, .danger {
  min-height: 39px;
  border-radius: 11px;
  transition: filter .16s ease, transform .16s ease;
}

.primary {
  background: linear-gradient(130deg, #3488e8, #245fbb);
  box-shadow: 0 4px 14px rgba(34, 105, 194, .13);
}

.secondary {
  border-color: rgba(145, 174, 210, .2);
  background: rgba(34, 49, 68, .8);
}

.danger {
  border-color: rgba(255, 126, 145, .24);
  background: rgba(131, 39, 57, .48);
}

.primary:hover:not(:disabled),
.secondary:hover:not(:disabled),
.danger:hover:not(:disabled) {
  filter: brightness(1.12);
}

.table-wrap {
  border-color: var(--vp-border);
  border-radius: 14px;
  background: rgba(5, 12, 21, .32);
}

.table-wrap th { background: rgba(30, 47, 68, .72); }
.table-wrap tbody tr:hover { background: rgba(62, 128, 204, .09); }

.report-card {
  border-color: var(--vp-border);
  border-radius: 16px;
  background: rgba(7, 15, 25, .5);
}

.report-card:hover { border-color: rgba(113, 163, 223, .28); }

.notice { border-radius: 13px; }

.empty-state {
  border-color: var(--vp-border);
  border-radius: 15px;
}

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

  .panel-sidebar {
    position: sticky;
    z-index: 4;
    top: 61px;
    height: auto;
    min-height: 0;
    flex-direction: row;
    gap: 5px;
    padding: 8px 10px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--vp-border);
    background: rgba(9, 16, 27, .97);
  }

  .panel-sidebar .side-label,
  .panel-sidebar .sidebar-foot { display: none; }

  .side-link {
    flex: 0 0 auto;
    margin: 0;
    white-space: nowrap;
  }

  .panel-content { padding: 20px 15px 28px; }
}

@media (max-width: 480px) {
  .panel-header { gap: 7px; padding: 9px 10px; }
  .header-right { gap: 5px; }
  .header-right .owner-chip { display: none; }
  .header-right .compact { padding: 7px 8px; font-size: 10px; }

  .panel-content { padding: 18px 12px 24px; }

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

  .stat-card {
    min-height: 124px;
    padding: 14px;
    border-radius: 15px;
  }

  .stat-card > strong { font-size: 27px; }

  .surface {
    padding: 15px !important;
    border-radius: 16px;
  }

  .table-wrap th, .table-wrap td { padding: 10px 9px; }
}

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

/* VEXPANEL MEMBER QUICK EDIT V2 */
.member-actions-cell { width: 68px; text-align: center; }

.member-more-trigger {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid #3b5472;
  border-radius: 12px;
  background: #17283c;
  color: #e5f1ff;
  font-size: 25px;
  font-weight: 800;
}
.member-more-trigger:hover { background: #234568; }

.member-quick-overlay {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 14px;
  background: rgba(3, 8, 15, .78);
  backdrop-filter: blur(8px);
}

.member-quick-backdrop {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.member-quick-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 490px);
  max-height: 90dvh;
  overflow-y: auto;
  padding: 21px;
  border: 1px solid #304966;
  border-radius: 21px;
  background: linear-gradient(145deg, #15263b, #0c1522);
  color: #edf4ff;
  box-shadow: 0 28px 90px #0009;
}

.member-quick-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}
.member-quick-eyebrow {
  color: #8dc2ff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.3px;
}
.member-quick-header h2 { margin: 8px 0 5px; }
.member-quick-header p { margin: 0; color: #91a5be; font-size: 12px; }
.member-quick-close {
  width: 38px;
  height: 38px;
  border: 1px solid #344a65;
  border-radius: 11px;
  background: #1b2e44;
  color: #e5f1ff;
  font-size: 24px;
}
.member-quick-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid #293e56;
  border-radius: 15px;
  background: #0b1522;
}
.member-quick-avatar {
  display: grid;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, #3984d5, #1b3e70);
  color: white;
  font-size: 20px;
  font-weight: 800;
}
.member-quick-name { display: grid; gap: 4px; min-width: 0; }
.member-quick-name strong { overflow-wrap: anywhere; }
.member-quick-name span, .member-quick-name small {
  overflow-wrap: anywhere;
  color: #9aafc8;
  font-size: 11px;
}
.member-quick-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 19px;
}
.member-quick-details > div {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
  min-height: 70px;
  padding: 11px;
  border: 1px solid #293e56;
  border-radius: 12px;
  background: #111f30;
}
.member-quick-details > div > span { color: #8fa6c0; font-size: 10px; }
.member-quick-details > div > strong {
  color: #e2edfc;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.member-quick-section-title {
  margin-bottom: 9px;
  color: #8aa3bf;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.3px;
}
.member-quick-actions { display: grid; gap: 8px; }
.member-quick-action {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 11px;
  border: 1px solid #2c425b;
  border-radius: 12px;
  background: #14253a;
  color: #e7f0fd;
  text-align: left;
}
.member-quick-action:hover:not(:disabled) { background: #203c5a; }
.member-quick-action:disabled { opacity: .55; }
.member-action-icon {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: #203c5d;
  color: #a7d0ff;
  font-weight: 800;
}
.member-quick-action > span:nth-child(2) {
  display: grid;
  flex: 1;
  min-width: 0;
  gap: 4px;
}
.member-quick-action strong { font-size: 12px; }
.member-quick-action small { color: #94a9c1; font-size: 10px; line-height: 1.4; }
.member-action-arrow { color: #7e9fc4; font-size: 23px; }
.member-quick-danger .member-action-icon { background: #522633; color: #ffbac6; }
.member-quick-footer {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid #283b51;
  color: #91a5bd;
  font-size: 10px;
}
@media (max-width: 480px) {
  .member-quick-overlay { align-items: end; padding: 7px; }
  .member-quick-dialog { width: 100%; max-height: 91dvh; padding: 17px 14px; border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .member-quick-dialog { animation: none; }
}

/* VexPanel: password reset request queue */

/* VexPanel: password reset request queue */
.reset-request-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.reset-request-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--border, rgba(148,163,184,.2));
  border-radius: 14px;
}
.reset-request-details {
  flex: 1;
  min-width: 180px;
}
.reset-request-details h3 {
  margin: 8px 0 5px;
  overflow-wrap: anywhere;
  font-size: 15px;
}
.reset-request-details p,
.reset-request-help {
  color: var(--muted, #98a2b3);
  font-size: 12px;
  line-height: 1.6;
}
.reset-request-status {
  color: #bdf8ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}
.reset-request-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.reset-request-actions button {
  min-height: 38px;
  border-radius: 9px;
}
.reset-request-reject {
  padding: 9px 13px;
  border: 1px solid rgba(248,113,113,.3);
  border-radius: 9px;
  background: rgba(239,68,68,.08);
  color: #fca5a5;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.reset-request-reject:disabled {
  opacity: .55;
  cursor: not-allowed;
}
.reset-request-help {
  margin-top: 18px;
}
@media (max-width: 600px) {
  .reset-request-actions {
    width: 100%;
    flex-direction: column;
  }
  .reset-request-actions button {
    width: 100%;
  }
}

/* VexPanel: report counts and refresh */
.report-count-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid rgba(167,139,250,.22);
  border-radius: 10px;
  background: rgba(0, 220, 255,.07);
  color: var(--muted,#a7a1b8);
  font-size: 12px;
}
.report-count-line strong {
  color: #bdf8ff;
  font-size: 18px;
  font-weight: 850;
}

/* VexPanel: Quick Edit E2EE status v1 */
.member-quick-e2ee {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid rgba(167, 139, 250, .22);
  border-radius: 18px;
  background: linear-gradient(
    145deg, rgba(255,255,255,.045), rgba(0, 220, 255,.09)
  );
}
.member-quick-e2ee > strong {
  overflow-wrap: anywhere;
}
.member-quick-e2ee > p,
.member-quick-e2ee > small {
  margin: 0;
  opacity: .78;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.member-quick-e2ee > code {
  display: block;
  padding: 9px 10px;
  border-radius: 11px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(0,0,0,.13);
  font-size: .76rem;
  white-space: normal;
  overflow-wrap: anywhere;
  user-select: text;
}
.member-quick-e2ee .member-quick-action {
  width: 100%;
  min-width: 0;
  text-align: left;
}

/* VexApp & VexPanel Cyan Blue Theme v1 */
:root {
  color-scheme: dark;
  --vp-blue: #00dffc;
  --vp-border: rgba(0,220,255,.18);
  --accent: #00dffc;
  --accent-color: #00dffc;
  --primary: #168bff;
  --primary-color: #168bff;
  --focus-color: #65eaff;
  --brand: #00dffc;
  --brand-color: #00dffc;
}

.brand-mark {
  border-color: rgba(0,220,255,.30) !important;
  background: linear-gradient(145deg,#00dffc,#168bff) !important;
  color: #03111d !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.4),
    0 0 24px rgba(0,180,255,.13);
}

.primary {
  border-color: rgba(0,220,255,.46) !important;
  background: linear-gradient(125deg,#00dffc,#168bff) !important;
  color: #03111d !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.36),
    0 5px 22px rgba(0,180,255,.16) !important;
}

.primary:hover:not(:disabled) {
  filter: brightness(1.1);
  box-shadow: 0 8px 27px rgba(0,180,255,.23) !important;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #65eaff !important;
  outline-offset: 3px;
}

.panel-header .brand-mark,
.brand-mark {
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
}

.panel-header {
  border-color: rgba(0,220,255,.14);
}

.panel,
.card,
section {
  --vp-blue: #00dffc;
}

@media (prefers-reduced-motion: no-preference) {
  .primary,
  .secondary,
  .brand-mark {
    transition: filter 180ms ease, box-shadow 220ms ease, transform 180ms ease;
  }
}

/* VEXPANEL_ACTIVATION_CODES_UI_V1 */
.activation-generator > .primary {
  width: 100%;
  min-height: 46px;
}

.activation-code-result {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #315a78;
  border-radius: 15px;
  background: #10263a;
}

.activation-code-result > strong {
  overflow-wrap: anywhere;
  color: #d9edff;
  font-size: clamp(22px, 5vw, 32px);
  letter-spacing: 3px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.activation-code-list {
  display: grid;
  gap: 10px;
}

.activation-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px;
  border: 1px solid #263b50;
  border-radius: 13px;
  background: #101e2c;
}

.activation-code-meta {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.activation-code-meta strong {
  color: #e5eff8;
  font-size: 13px;
}

.activation-code-meta small {
  color: #91a6ba;
  font-size: 10px;
  overflow-wrap: anywhere;
}

.activation-code-meta .activation-id {
  opacity: .7;
}

.activation-code-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
  flex: 0 0 auto;
}

.activation-status {
  padding: 5px 8px;
  border-radius: 7px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .5px;
}

.activation-status-unused { color: #9be8c2; background: #174632; }
.activation-status-reserved { color: #f6d38b; background: #4b3a1d; }
.activation-status-used { color: #a9c8e8; background: #203b55; }
.activation-status-revoked { color: #f0aab5; background: #4b2630; }

@media (max-width: 520px) {
  .activation-code-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .activation-code-actions {
    display: flex;
    align-items: center;
    justify-items: start;
  }
}

/* VEXPANEL_ACTIVATION_CODES_BULK_V2 */
.activation-quantity-label {
  display: grid;
  gap: 8px;
  color: #b6c9db;
  font-size: 12px;
}

.activation-quantity-label input {
  width: 100%;
  min-height: 43px;
  padding: 10px 12px;
  border: 1px solid #30465d;
  border-radius: 10px;
  background: #0d1a28;
  color: #e8f2fc;
  font: inherit;
}

.activation-code-result .activation-generated-list {
  width: 100%;
  min-height: 130px;
  max-height: 320px;
  overflow: auto;
  resize: vertical;
  padding: 12px;
  border: 1px solid #31506b;
  border-radius: 10px;
  background: #0b1723;
  color: #d8eaff;
  font-family: monospace;
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: .6px;
  white-space: pre;
}
