@font-face {
  font-family: Outfit;
  src: url("/fonts/Outfit.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  font-family: Outfit, "Segoe UI", sans-serif;
  color-scheme: dark;
  --bg: #09090f;
  --panel: #111117;
  --surface: #191525;
  --text: #f5f2ff;
  --muted: #9692a7;
  --border: #282532;
  --accent: #b9a1ff;
  --purple: #7950f2;
  --green: #8edabf;
  --orange: #e6b87c;
  --red: #ff9da8;
  --shadow: 0 24px 90px #0006;
  background: var(--bg);
  color: var(--text);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f5f9;
  --panel: #fff;
  --surface: #eee9fa;
  --text: #24202f;
  --muted: #716b7e;
  --border: #e3deed;
  --accent: #6741cc;
  --green: #25775c;
  --orange: #98651b;
  --red: #aa334c;
  --shadow: 0 24px 90px #20123618;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 15px;
  transition: background 0.16s;
}
button:hover:not(:disabled) {
  background: var(--border);
}
button.primary {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}
button.primary:hover {
  background: #885ff7;
}
button.danger {
  color: var(--red);
}
button.quiet {
  background: none;
}
.brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  font-size: 32px;
  letter-spacing: -1.9px;
  white-space: nowrap;
}
.brand img {
  width: 47px;
  height: 47px;
  object-fit: cover;
}
.brand-dot {
  color: var(--accent);
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 255px;
  padding: 24px 20px;
  background: var(--panel);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 10;
}
.workspace-label {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1.6px;
  margin: 45px 12px 20px;
}
.sidebar nav {
  display: grid;
  gap: 6px;
}
.sidebar nav button {
  text-align: left;
  border: 0;
  background: transparent;
  font-size: 14px;
  padding: 13px 14px;
  color: var(--muted);
}
.sidebar nav button i {
  font-style: normal;
  font-size: 18px;
  display: inline-block;
  width: 30px;
  color: var(--muted);
}
.sidebar nav button.selected {
  background: var(--surface);
  color: var(--accent);
}
.sidebar nav button.selected i {
  color: var(--accent);
}
.sidebar-bottom {
  margin-top: auto;
  display: grid;
  gap: 7px;
}
.sidebar-bottom button {
  text-align: left;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 13px;
}
.sandbox-note {
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: 12px;
  font-size: 13px;
  margin-bottom: 18px;
}
.sandbox-note small {
  display: block;
  color: var(--muted);
  padding: 5px 0 0 14px;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 5px;
}
.workspace {
  margin-left: 255px;
}
.topbar {
  height: 83px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  font-size: 13px;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.avatar {
  width: 33px;
  height: 33px;
  border: 1px solid #baa7ff55;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--accent);
}
.breadcrumb {
  color: var(--border);
  padding: 0 14px;
}
#menu {
  display: none;
}
main#content {
  padding: 37px 42px 20px;
  max-width: 1800px;
  margin: auto;
  min-height: calc(100vh - 145px);
}
h1 {
  font-weight: 450;
  font-size: 36px;
  letter-spacing: -1.2px;
  margin: 8px 0 10px;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.3px;
  font-weight: 450;
  margin: 0;
}
h3 {
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 10px;
}
p {
  line-height: 1.55;
}
.subtle,
.description {
  color: var(--muted);
  font-weight: 350;
}
.description {
  margin: 0;
  font-size: 14px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: var(--accent);
  font-weight: 500;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}
.page-actions,
.actions {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.filters {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  padding: 18px 0;
  margin-bottom: 12px;
}
.filters label {
  min-width: 135px;
  flex: 1;
  max-width: 240px;
}
.filters label.wide {
  min-width: 220px;
  max-width: 340px;
}
.filters button {
  margin-bottom: 1px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 22px;
}
.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}
.stat-symbol {
  color: var(--accent);
  font-size: 19px;
}
.stat-value {
  font-size: 38px;
  font-weight: 420;
  letter-spacing: -1.2px;
  line-height: 1.3;
  margin: 17px 0 10px;
}
.stat-foot {
  font-size: 12px;
  color: var(--muted);
}
.stat-foot em {
  font-style: normal;
  color: var(--green);
}
.grid-main {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(290px, 1fr);
  gap: 22px;
  margin-bottom: 24px;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 23px;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
}
.panel-header p {
  font-size: 12px;
  margin: 6px 0 0;
  color: var(--muted);
}
.panel-body {
  padding: 24px;
}
.chart {
  height: 240px;
  display: flex;
  align-items: end;
  gap: 10px;
  padding: 25px 5px 20px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.bar-group {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  gap: 12px;
  min-width: 10px;
}
.bar {
  color: var(--accent);
  width: 100%;
  max-width: 38px;
  height: 170px;
  min-height: 2px;
}
.bar-group small {
  font-size: 10px;
  color: var(--muted);
}
.chart-summary {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  margin-top: 15px;
}
.performance-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 19px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.performance-row:first-child {
  padding-top: 0;
}
.performance-row strong {
  font-weight: 500;
}
.performance-row small {
  display: block;
  color: var(--muted);
  margin-top: 6px;
  font-size: 11px;
}
.performance-note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  margin: 17px 0 0;
}
.table-scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  white-space: nowrap;
}
th {
  padding: 14px 22px;
  text-align: left;
  background: var(--bg);
  color: var(--muted);
  font-weight: 400;
  font-size: 11px;
}
td {
  border-top: 1px solid var(--border);
  padding: 17px 22px;
}
td strong {
  font-weight: 450;
}
td small {
  color: var(--muted);
  display: block;
  margin-top: 4px;
  font-size: 11px;
}
td button {
  padding: 6px 11px;
  font-size: 12px;
}
.badge,
.tag {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 10px;
  white-space: nowrap;
}
.badge {
  background: var(--surface);
  color: var(--accent);
}
.badge.active,
.badge.completed,
.badge.confirmed {
  background: #4ad6a20b;
  color: var(--green);
  border-color: #4ad6a226;
}
.badge.failed,
.badge.cancelled,
.badge.restricted {
  color: var(--red);
  background: #ff52650b;
}
.badge.demo {
  color: var(--orange);
  background: #e6b87c0a;
}
.tag {
  color: var(--muted);
  letter-spacing: 1px;
}
.empty {
  text-align: center;
  padding: 55px 20px;
  color: var(--muted);
  font-size: 14px;
}
.notice {
  border: 1px solid #baa7ff40;
  background: var(--surface);
  padding: 14px 18px;
  border-radius: 10px;
  color: var(--accent);
  font-size: 13px;
  margin-bottom: 20px;
  line-height: 1.5;
}
footer {
  display: flex;
  justify-content: space-between;
  padding: 25px 42px;
  color: var(--muted);
  font-size: 11px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
input,
select,
textarea {
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg);
  color: var(--text);
  padding: 11px 12px;
  min-width: 0;
  width: 100%;
}
input[type="checkbox"] {
  accent-color: var(--purple);
  width: 18px;
  height: 18px;
}
textarea {
  min-height: 85px;
  resize: vertical;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .full {
  grid-column: 1/-1;
}
.form-actions {
  display: flex;
  justify-content: end;
  gap: 10px;
  border-top: 1px solid var(--border);
  margin-top: 25px;
  padding-top: 20px;
}
.feature {
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
dialog {
  width: min(660px, calc(100% - 28px));
  max-height: 90vh;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 25px;
  box-shadow: var(--shadow);
}
dialog::backdrop {
  background: #030208b8;
  backdrop-filter: blur(6px);
}
.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}
.dialog-header button {
  font-size: 24px;
  line-height: 1;
  padding: 2px 8px;
  background: transparent;
  border: 0;
}
.error {
  color: var(--red);
  font-size: 13px;
}
.error:empty {
  display: none;
}
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90vw;
  background: var(--surface);
  border: 1px solid var(--accent);
  padding: 15px 25px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  z-index: 100;
  font-size: 14px;
}
.type-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.type-card {
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--panel);
}
.type-icon {
  display: grid;
  place-items: center;
  width: 47px;
  height: 47px;
  border: 1px solid #baa7ff44;
  color: var(--accent);
  background: var(--surface);
  border-radius: 13px;
  font-size: 23px;
  margin-bottom: 30px;
}
.type-card p {
  font-size: 13px;
  color: var(--muted);
  min-height: 45px;
}
.type-card .actions {
  margin-top: 25px;
}
.login-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.login-brand {
  padding: 45px 60px;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 0% 100%, #4e288b44, transparent 70%), #09090f;
  color: #f5f2ff;
  position: relative;
  overflow: hidden;
}
.brand-copy {
  margin: auto 0;
  position: relative;
  z-index: 1;
}
.brand-copy h1 {
  font-size: clamp(42px, 4vw, 72px);
  line-height: 1.1;
  margin: 25px 0;
  font-weight: 400;
  letter-spacing: -2px;
}
.brand-copy p {
  color: #aaa3bb;
  font-size: 16px;
}
.login-brand small {
  color: #9a8bad;
}
.wave {
  height: 130px;
  width: 100%;
  margin-top: 70px;
  border-top: 1px solid #9365ff99;
  border-radius: 50%;
  transform: rotate(-10deg);
  box-shadow:
    0 -7px #7950f214,
    0 -14px #7950f212,
    0 -21px #7950f210,
    0 -28px #7950f20b;
}
.login-form {
  margin: auto;
  width: min(410px, 80%);
  padding: 50px 0;
}
.login-form h2 {
  font-size: 30px;
  margin-bottom: 12px;
}
.login-form form {
  display: grid;
  gap: 20px;
  margin: 30px 0;
}
.login-form .subtle {
  font-size: 12px;
  line-height: 1.6;
}
.login-form img.qr {
  width: 200px;
  max-width: 100%;
  background: white;
  padding: 10px;
  border-radius: 8px;
}
.secret {
  font-family: monospace;
  overflow-wrap: anywhere;
  color: var(--accent);
  font-size: 12px;
}
.pagination {
  display: flex;
  justify-content: space-between;
  padding: 16px 23px;
  font-size: 12px;
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
details {
  margin-top: 20px;
}
summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--accent);
}
.metric-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.metric-box {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
}
.metric-box strong {
  font-size: 28px;
  font-weight: 450;
  display: block;
  margin: 13px 0;
}
.metric-box small {
  color: var(--muted);
  font-size: 11px;
}
.status-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.loading {
  padding: 70px;
  color: var(--muted);
  text-align: center;
}
@media (max-width: 1150px) {
  .sidebar {
    width: 215px;
    padding: 22px 13px;
  }
  .brand {
    font-size: 29px;
  }
  .workspace {
    margin-left: 215px;
  }
  main#content {
    padding: 28px;
  }
  .topbar,
  footer {
    padding-left: 28px;
    padding-right: 28px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 17px;
  }
  .stat-value {
    font-size: 32px;
  }
  .grid-main {
    grid-template-columns: 1.5fr 1fr;
  }
  .type-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 820px) {
  .sidebar {
    transform: translateX(-100%);
    width: 250px;
    transition: transform 0.2s;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow);
  }
  .workspace {
    margin-left: 0;
  }
  #menu {
    display: block;
    padding: 7px 10px;
  }
  .topbar {
    height: 70px;
    gap: 14px;
  }
  .topbar-right #admin-email {
    display: none;
  }
  .topbar-right {
    margin-left: auto;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .grid-main {
    grid-template-columns: 1fr;
  }
  .page-heading {
    align-items: start;
  }
  .login-layout {
    grid-template-columns: 1fr;
  }
  .login-brand {
    padding: 25px;
    min-height: auto;
  }
  .brand-copy {
    display: none;
  }
  .login-brand small {
    display: none;
  }
  .login-form {
    margin: 25px auto;
  }
  .chart {
    height: 190px;
  }
}
@media (max-width: 520px) {
  main#content {
    padding: 24px 16px;
  }
  h1 {
    font-size: 30px;
  }
  .page-heading {
    flex-direction: column;
  }
  .topbar {
    padding: 0 16px;
  }
  .topbar .tag {
    display: none;
  }
  .stat {
    padding: 15px;
  }
  .stat-value {
    font-size: 30px;
  }
  .stat-foot {
    font-size: 10px;
  }
  .type-cards,
  .form-grid,
  .metric-list {
    grid-template-columns: 1fr;
  }
  .form-grid .full {
    grid-column: auto;
  }
  .panel-header {
    padding: 18px;
  }
  .panel-body {
    padding: 18px;
  }
  td,
  th {
    padding: 14px 16px;
  }
  footer {
    padding: 20px 16px;
    gap: 20px;
    line-height: 1.5;
  }
  .filters label {
    max-width: none;
    min-width: 120px;
  }
  .filters .wide {
    min-width: 100%;
    max-width: none;
  }
  .filters button {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
