:root {
  color-scheme: dark;
  --bg: #09090b;
  --panel: #121215;
  --panel2: #18181c;
  --line: #2b2b31;
  --muted: #92929d;
  --text: #f4f0e8;
  --red: #a20d22;
  --red2: #e12b43;
  --green: #57c98b;
  --amber: #e3ae55;
  --radius: 14px;
  font:
    16px Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background:
    radial-gradient(circle at 90% -10%, #26070e 0, transparent 30%), var(--bg);
  color: var(--text);
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
.hidden {
  display: none !important;
}
.shell {
  min-height: 100vh;
}
aside {
  position: fixed;
  inset: 0 auto 0 0;
  width: 252px;
  padding: 26px 18px;
  background: rgba(13, 13, 16, 0.96);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  z-index: 2;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 28px;
}
.brand img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 50%;
  filter: drop-shadow(0 0 12px #a20d2266);
}
.brand b,
.brand span {
  display: block;
  letter-spacing: 0.12em;
}
.brand span {
  font-size: 0.72rem;
  color: #aaa;
  margin-top: 3px;
}
nav {
  display: grid;
  gap: 5px;
}
nav button {
  border: 0;
  background: transparent;
  color: #aaa;
  padding: 11px 13px;
  text-align: left;
  border-radius: 9px;
  display: flex;
  gap: 11px;
  align-items: center;
}
nav button:hover {
  color: white;
  background: #ffffff08;
}
nav button.active {
  color: white;
  background: linear-gradient(90deg, #a20d223d, transparent);
  box-shadow: inset 3px 0 var(--red2);
}
nav button span {
  font-size: 1.1rem;
  width: 22px;
  text-align: center;
}
.aside-foot {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 18px 8px 0;
  display: grid;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--muted);
}
main {
  margin-left: 252px;
  padding: 42px clamp(24px, 4vw, 64px);
  max-width: 1680px;
}
.top,
.toolbar,
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.top {
  margin-bottom: 30px;
}
.eyebrow {
  margin: 0 0 8px;
  color: #b76470;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  font-weight: 700;
}
.top h1 {
  margin: 0;
  font-family: Georgia, serif;
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.3rem);
}
.status {
  color: var(--muted);
  font-size: 0.8rem;
}
.status i {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--green);
  margin-right: 7px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.card,
.panel {
  background: linear-gradient(145deg, #17171b, #111114);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 55px #0004;
}
.card {
  padding: 19px;
}
.card small {
  color: var(--muted);
  font-size: 0.78rem;
}
.card strong {
  display: block;
  font-size: 1.65rem;
  margin: 11px 0 4px;
}
.card .trend {
  font-size: 0.74rem;
  color: var(--muted);
}
.positive {
  color: var(--green) !important;
}
.negative {
  color: #ff6e7e !important;
}
.panel {
  padding: 22px;
  margin-bottom: 18px;
}
.split {
  display: grid;
  grid-template-columns: 1.05fr 1.95fr;
  gap: 18px;
}
.section-head {
  margin-bottom: 16px;
}
.section-head h2 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.04em;
}
.toolbar {
  margin-bottom: 18px;
}
.toolbar p {
  margin: 4px 0;
  color: var(--muted);
}
button,
.button {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 14px;
  color: var(--text);
  background: #202027;
  text-decoration: none;
}
.primary {
  background: linear-gradient(135deg, #bd102a, #790817);
  border-color: #cf1b34;
  font-weight: 700;
}
.ghost {
  background: transparent;
}
.scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 690px;
}
th,
td {
  text-align: left;
  padding: 13px 11px;
  border-bottom: 1px solid #29292e;
  font-size: 0.84rem;
}
th {
  color: #888893;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
tbody tr:hover {
  background: #ffffff03;
}
.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 99px;
  background: #ffffff0c;
  color: #bbb;
  font-size: 0.7rem;
}
.badge.red {
  background: #a20d222f;
  color: #ff8997;
}
.badge.green {
  background: #57c98b20;
  color: #7ce0a9;
}
.vault {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.vault:last-child {
  border: 0;
}
.vault span {
  color: var(--muted);
}
.empty {
  text-align: center;
  color: var(--muted);
  padding: 40px;
}
.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
}
.login-card {
  width: min(430px, 100%);
  padding: 42px;
  background: #121215e8;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 40px 100px #000a;
  text-align: center;
}
.login-card img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  filter: drop-shadow(0 0 24px #a20d2288);
}
.login-card h1 {
  font:
    500 2.2rem Georgia,
    serif;
  margin: 5px;
}
.login-card form {
  display: grid;
  gap: 15px;
  text-align: left;
  margin-top: 28px;
}
label {
  display: grid;
  gap: 7px;
  color: #bbb;
  font-size: 0.8rem;
}
input,
select,
textarea {
  width: 100%;
  background: #0d0d10;
  border: 1px solid #36363c;
  border-radius: 8px;
  color: white;
  padding: 11px 12px;
}
textarea {
  min-height: 84px;
  resize: vertical;
}
.error,
#notice {
  color: #ff7a89;
  min-height: 20px;
  font-size: 0.82rem;
}
#notice.success {
  color: var(--green);
}
dialog {
  width: min(680px, calc(100% - 30px));
  background: #151519;
  color: var(--text);
  border: 1px solid #37373d;
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 30px 100px #000c;
}
dialog::backdrop {
  background: #000b;
  backdrop-filter: blur(4px);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 {
  margin: 0;
}
.modal-head button {
  font-size: 1.4rem;
  border: 0;
  background: transparent;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  padding: 22px;
}
.form-grid .wide {
  grid-column: 1/-1;
}
.form-grid button {
  grid-column: 1/-1;
}
.metric-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.metric-row .badge {
  padding: 7px 10px;
}
@media (max-width: 1050px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .split {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  aside {
    position: static;
    width: auto;
    padding: 14px;
  }
  .brand {
    padding: 0 4px 12px;
  }
  .brand img {
    width: 42px;
    height: 42px;
  }
  nav {
    display: flex;
    overflow: auto;
  }
  nav button {
    white-space: nowrap;
  }
  .aside-foot {
    display: none;
  }
  main {
    margin: 0;
    padding: 24px 16px;
  }
  .top {
    align-items: flex-start;
  }
  .status {
    display: none;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .wide {
    grid-column: auto;
  }
}
