:root {
  color-scheme: dark;
  --bg: #060608;
  --surface: #0d0b0e;
  --surface2: #131015;
  --line: #30202a;
  --muted: #8b7f88;
  --text: #f6edf2;
  --red: #ff315b;
  --red2: #ad173b;
  --violet: #ff4f9a;
  --good: #5ce6ab;
  --warn: #ffc45c;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background:
    radial-gradient(circle at 82% 5%, #240913 0, transparent 34%), var(--bg);
  color: var(--text);
  min-height: 100vh;
}
.hidden {
  display: none !important;
}
.boot-screen {
  height: 100vh;
  display: grid;
  place-content: center;
  text-align: center;
  letter-spacing: 0.22em;
  color: #d95b79;
  position: relative;
  overflow: hidden;
}
.boot-screen img {
  width: 150px;
  margin: auto;
  filter: drop-shadow(0 0 30px #ff174f88);
}
.scanline {
  position: fixed;
  inset: 0;
  background: linear-gradient(transparent 48%, #ff315b0d 50%, transparent 52%);
  background-size: 100% 8px;
  pointer-events: none;
}
.app {
  display: grid;
  grid-template-columns: 245px 1fr;
  min-height: 100vh;
}
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: 245px;
  background: linear-gradient(180deg, #17070d, #0a070b 72%);
  border-right: 1px solid #48202e;
  padding: 24px 15px;
  display: flex;
  flex-direction: column;
  z-index: 3;
  transition: 0.2s;
}
.rail.collapsed {
  width: 78px;
}
.rail.collapsed .brand-copy,
.rail.collapsed .nav-copy,
.rail.collapsed .nav-label,
.rail.collapsed .nav-item b {
  display: none;
}
.rail.collapsed ~ main {
  margin-left: 78px;
}
.collapse {
  position: absolute;
  right: -13px;
  top: 83px;
  width: 26px;
  height: 32px;
  border: 1px solid #5b2638;
  background: #17090f;
  color: #ff7592;
  border-radius: 4px;
  cursor: pointer;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 0 6px 30px;
}
.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px #ff315b77);
}
.brand strong {
  display: block;
  font-size: 18px;
  letter-spacing: 0.08em;
}
.brand span {
  display: block;
  color: #b87589;
  font-size: 9px;
  letter-spacing: 0.2em;
  margin-top: 4px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: #d65378;
  font-weight: 800;
  margin: 0 0 8px;
}
.nav-label {
  padding: 0 10px;
  margin-bottom: 10px;
  color: #7e5360;
}
.rail nav {
  display: grid;
  gap: 7px;
}
.nav-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: #a8959e;
  padding: 12px;
  border-radius: 3px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.nav-item:hover,
.nav-item.active {
  background: #2a0b15;
  color: #fff;
  border-color: #6e233a;
}
.nav-item.active {
  box-shadow: inset 3px 0 var(--red);
}
.nav-icon {
  font-size: 19px;
  color: #ff5b7c;
  min-width: 20px;
  text-align: center;
}
.nav-item b {
  margin-left: auto;
  background: #4d1324;
  color: #ff90a7;
  padding: 2px 7px;
  font-size: 11px;
}
.rail-bottom {
  margin-top: auto;
}
.commandline-link {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid #3a3037;
  color: #ddd;
  text-decoration: none;
  padding: 11px;
  margin-bottom: 10px;
  font-size: 12px;
}
.commandline-link small {
  display: block;
  color: #786c74;
  font-size: 8px;
  letter-spacing: 0.15em;
}
.identity {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px;
}
.avatar {
  width: 34px;
  height: 34px;
  border: 1px solid #a82f50;
  background: #240b14;
  display: grid;
  place-content: center;
  color: #ff7595;
  font-size: 11px;
}
.identity-copy {
  min-width: 0;
}
.identity-copy strong,
.identity-copy span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.identity-copy strong {
  font-size: 12px;
}
.identity-copy span {
  color: #8c7c84;
  font-size: 10px;
  margin-top: 3px;
}
.identity button {
  margin-left: auto;
  background: transparent;
  border: 0;
  color: #826c76;
  cursor: pointer;
}
main {
  margin-left: 245px;
  min-width: 0;
  transition: 0.2s;
}
.topbar {
  height: 65px;
  border-bottom: 1px solid #261820;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: #756d72;
  background: #080709cc;
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 2;
}
.topbar i {
  margin: 0 12px;
}
.topbar strong {
  color: #c8bfc4;
}
.top-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c3b4bc;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff4770;
  box-shadow: 0 0 12px #ff315b;
  animation: pulse 1.8s infinite;
}
.admin-badge {
  border: 1px solid #a02c58;
  background: #4a102b;
  color: #ff9ccb;
  padding: 7px 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin-right: 6px;
}
@keyframes pulse {
  50% {
    opacity: 0.4;
    transform: scale(0.7);
  }
}
.content {
  padding: 42px clamp(24px, 4vw, 62px);
  max-width: 1600px;
}
.view {
  display: none;
}
.active-view {
  display: block;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
  margin-bottom: 30px;
}
.page-heading h1 {
  font-size: clamp(34px, 5vw, 60px);
  margin: 0;
  line-height: 1;
  letter-spacing: -0.04em;
}
.page-heading > div > p:last-child {
  color: #948a90;
  margin: 13px 0 0;
}
.primary,
.ghost {
  border: 1px solid #a32548;
  background: linear-gradient(135deg, #c31944, #7e1230);
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 12px 18px;
  cursor: pointer;
}
.ghost {
  background: transparent;
  color: #da7890;
  border-color: #522333;
  font-size: 10px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.metrics.two {
  grid-template-columns: repeat(2, minmax(0, 280px));
}
.metrics article {
  background: linear-gradient(140deg, #130e12, #0b090b);
  border: 1px solid #2f2028;
  padding: 20px;
  min-height: 132px;
  position: relative;
  overflow: hidden;
}
.metrics article:after {
  content: "";
  position: absolute;
  inset: auto -35px -45px auto;
  width: 100px;
  height: 100px;
  border: 1px solid #8a183455;
  transform: rotate(45deg);
}
.metrics span,
.metrics small {
  display: block;
  color: #8e7f87;
  font-size: 10px;
  letter-spacing: 0.12em;
}
.metrics strong {
  display: block;
  font-size: 40px;
  margin: 10px 0 4px;
}
.metrics .channel-live {
  color: var(--good);
  font-size: 29px;
}
.panel {
  background: #090a0caa;
  border: 1px solid #30202a;
  min-width: 0;
}
.panel-head {
  padding: 20px 22px;
  border-bottom: 1px solid #291b23;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.panel-head h2 {
  margin: 0;
  font-size: 20px;
}
.incident-list,
.notification-list,
.release-list {
  padding: 10px;
}
.empty {
  padding: 60px 20px;
  text-align: center;
  color: #766b72;
}
.incident {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 17px;
  border-bottom: 1px solid #241820;
  background: #0d0b0e;
  margin-bottom: 5px;
}
.incident:hover {
  background: #150d12;
}
.severity {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  padding: 8px;
  text-align: center;
  border: 1px solid;
}
.sev1 {
  color: #ff4a5f;
  border-color: #a5243a;
  background: #2e0b12;
}
.sev2 {
  color: #ff8e5b;
  border-color: #804325;
  background: #27140b;
}
.sev3 {
  color: #ffc45c;
  border-color: #705625;
  background: #211b0e;
}
.sev4 {
  color: #98a8bb;
  border-color: #405064;
  background: #101722;
}
.incident h3,
.notification h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.incident p,
.notification p {
  margin: 0;
  color: #968a91;
  font-size: 13px;
  line-height: 1.45;
}
.incident-meta {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  color: #695f65;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.actions button {
  background: #141015;
  border: 1px solid #432633;
  color: #c9b3bd;
  padding: 8px 10px;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}
.notification {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid #261820;
}
.notification-dot {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: #ff315b;
  box-shadow: 0 0 10px #ff315b;
}
.notification a {
  color: #ff7897;
  text-decoration: none;
  font-size: 10px;
  font-weight: 800;
}
.release-grid {
  display: grid;
  grid-template-columns: minmax(300px, 440px) 1fr;
  gap: 16px;
}
.form-panel {
  padding-bottom: 20px;
}
.form-panel > label,
.dialog-head ~ label,
.form-grid label {
  display: grid;
  gap: 7px;
  margin: 15px 22px;
  color: #9c8c94;
  font-size: 11px;
  letter-spacing: 0.08em;
}
.form-panel input,
.form-panel textarea,
dialog input,
dialog textarea,
dialog select {
  width: 100%;
  background: #0a080a;
  border: 1px solid #432431;
  color: #fff;
  padding: 11px;
  font: inherit;
}
.form-panel .check {
  display: flex;
  align-items: center;
}
.form-panel .check input {
  width: auto;
}
.file-drop {
  border: 1px dashed #713047 !important;
  padding: 20px;
  text-align: center;
}
.file-drop input {
  margin-top: 10px;
}
.form-panel > .primary,
.form-message {
  margin: 4px 22px;
}
.release-list > article {
  padding: 17px;
  border-bottom: 1px solid #271a22;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.release-list strong,
.release-list span {
  display: block;
}
.release-list span {
  color: #8b7f86;
  font-size: 11px;
  margin-top: 5px;
}
.release-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  min-width: 145px;
}
.release-actions button {
  background: transparent;
  border: 1px solid #75263c;
  color: #ff7897;
  padding: 8px 10px;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}
.release-actions button:disabled {
  opacity: 0.5;
  cursor: wait;
}
dialog {
  width: min(620px, calc(100vw - 32px));
  background: #100c0f;
  color: #fff;
  border: 1px solid #713048;
  padding: 0;
  box-shadow: 0 25px 100px #000;
}
dialog::backdrop {
  background: #030203dd;
  backdrop-filter: blur(5px);
}
dialog form {
  padding-bottom: 22px;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  padding: 22px;
  border-bottom: 1px solid #34202a;
}
.dialog-head h2 {
  margin: 0;
}
.close {
  border: 0;
  background: transparent;
  color: #aaa;
  font-size: 26px;
  cursor: pointer;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.form-grid label {
  margin-bottom: 0;
}
dialog > .primary,
dialog form > .primary {
  margin: 8px 22px;
}
.form-message {
  color: #ffbd67;
  font-size: 12px;
}
@media (max-width: 950px) {
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .release-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .app {
    grid-template-columns: 78px 1fr;
  }
  .rail {
    width: 78px;
  }
  .rail .brand-copy,
  .rail .nav-copy,
  .rail .nav-label,
  .rail .nav-item b {
    display: none;
  }
  .rail ~ main {
    margin-left: 78px;
  }
  .collapse {
    display: none;
  }
  .content {
    padding: 28px 16px;
  }
  .topbar {
    padding: 0 16px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .incident {
    grid-template-columns: 65px 1fr;
  }
  .actions {
    grid-column: 1/-1;
    justify-content: flex-start;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}
